tizen 2.3 release
[external/gmp.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.11 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GNU MP 4.2.1.
5 #
6 # Report bugs to <gmp-bugs@swox.com>.
7 #
8 #
9 #
10 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
11 # Free Software Foundation, Inc.
12 #
13 # This file is part of the GNU MP Library.
14 #
15 # The GNU MP Library is free software; you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License as published
17 # by the Free Software Foundation; either version 2.1 of the License, or (at
18 # your option) any later version.
19 #
20 # The GNU MP Library is distributed in the hope that it will be useful, but
21 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
23 # License for more details.
24 #
25 # You should have received a copy of the GNU Lesser General Public License
26 # along with the GNU MP Library; see the file COPYING.LIB.  If not, write to
27 # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
28 # MA 02110-1301, USA.
29 #
30 #
31 # Copyright (C) 2003 Free Software Foundation, Inc.
32 # This configure script is free software; the Free Software Foundation
33 # gives unlimited permission to copy, distribute and modify it.
34 ## --------------------- ##
35 ## M4sh Initialization.  ##
36 ## --------------------- ##
37
38 # Be Bourne compatible
39 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40   emulate sh
41   NULLCMD=:
42   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43   # is contrary to our usage.  Disable this feature.
44   alias -g '${1+"$@"}'='"$@"'
45 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
46   set -o posix
47 fi
48 DUALCASE=1; export DUALCASE # for MKS sh
49
50 # Support unset when possible.
51 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52   as_unset=unset
53 else
54   as_unset=false
55 fi
56
57
58 # Work around bugs in pre-3.0 UWIN ksh.
59 $as_unset ENV MAIL MAILPATH
60 PS1='$ '
61 PS2='> '
62 PS4='+ '
63
64 # NLS nuisances.
65 for as_var in \
66   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
67   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
68   LC_TELEPHONE LC_TIME
69 do
70   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
71     eval $as_var=C; export $as_var
72   else
73     $as_unset $as_var
74   fi
75 done
76
77 # Required to use basename.
78 if expr a : '\(a\)' >/dev/null 2>&1; then
79   as_expr=expr
80 else
81   as_expr=false
82 fi
83
84 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
85   as_basename=basename
86 else
87   as_basename=false
88 fi
89
90
91 # Name of the executable.
92 as_me=`$as_basename "$0" ||
93 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
94          X"$0" : 'X\(//\)$' \| \
95          X"$0" : 'X\(/\)$' \| \
96          .     : '\(.\)' 2>/dev/null ||
97 echo X/"$0" |
98     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
99           /^X\/\(\/\/\)$/{ s//\1/; q; }
100           /^X\/\(\/\).*/{ s//\1/; q; }
101           s/.*/./; q'`
102
103
104 # PATH needs CR, and LINENO needs CR and PATH.
105 # Avoid depending upon Character Ranges.
106 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
107 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
108 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
109 as_cr_digits='0123456789'
110 as_cr_alnum=$as_cr_Letters$as_cr_digits
111
112 # The user is always right.
113 if test "${PATH_SEPARATOR+set}" != set; then
114   echo "#! /bin/sh" >conf$$.sh
115   echo  "exit 0"   >>conf$$.sh
116   chmod +x conf$$.sh
117   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
118     PATH_SEPARATOR=';'
119   else
120     PATH_SEPARATOR=:
121   fi
122   rm -f conf$$.sh
123 fi
124
125
126   as_lineno_1=$LINENO
127   as_lineno_2=$LINENO
128   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
129   test "x$as_lineno_1" != "x$as_lineno_2" &&
130   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
131   # Find who we are.  Look in the path if we contain no path at all
132   # relative or not.
133   case $0 in
134     *[\\/]* ) as_myself=$0 ;;
135     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
136 for as_dir in $PATH
137 do
138   IFS=$as_save_IFS
139   test -z "$as_dir" && as_dir=.
140   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
141 done
142
143        ;;
144   esac
145   # We did not find ourselves, most probably we were run as `sh COMMAND'
146   # in which case we are not to be found in the path.
147   if test "x$as_myself" = x; then
148     as_myself=$0
149   fi
150   if test ! -f "$as_myself"; then
151     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
152    { (exit 1); exit 1; }; }
153   fi
154   case $CONFIG_SHELL in
155   '')
156     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
157 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
158 do
159   IFS=$as_save_IFS
160   test -z "$as_dir" && as_dir=.
161   for as_base in sh bash ksh sh5; do
162          case $as_dir in
163          /*)
164            if ("$as_dir/$as_base" -c '
165   as_lineno_1=$LINENO
166   as_lineno_2=$LINENO
167   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
168   test "x$as_lineno_1" != "x$as_lineno_2" &&
169   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
170              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
171              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
172              CONFIG_SHELL=$as_dir/$as_base
173              export CONFIG_SHELL
174              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
175            fi;;
176          esac
177        done
178 done
179 ;;
180   esac
181
182   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
183   # uniformly replaced by the line number.  The first 'sed' inserts a
184   # line-number line before each line; the second 'sed' does the real
185   # work.  The second script uses 'N' to pair each line-number line
186   # with the numbered line, and appends trailing '-' during
187   # substitution so that $LINENO is not a special case at line end.
188   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
189   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
190   sed '=' <$as_myself |
191     sed '
192       N
193       s,$,-,
194       : loop
195       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
196       t loop
197       s,-$,,
198       s,^['$as_cr_digits']*\n,,
199     ' >$as_me.lineno &&
200   chmod +x $as_me.lineno ||
201     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
202    { (exit 1); exit 1; }; }
203
204   # Don't try to exec as it changes $[0], causing all sort of problems
205   # (the dirname of $[0] is not the place where we might find the
206   # original and so on.  Autoconf is especially sensible to this).
207   . ./$as_me.lineno
208   # Exit status is that of the last command.
209   exit
210 }
211
212
213 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
214   *c*,-n*) ECHO_N= ECHO_C='
215 ' ECHO_T='      ' ;;
216   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
217   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
218 esac
219
220 if expr a : '\(a\)' >/dev/null 2>&1; then
221   as_expr=expr
222 else
223   as_expr=false
224 fi
225
226 rm -f conf$$ conf$$.exe conf$$.file
227 echo >conf$$.file
228 if ln -s conf$$.file conf$$ 2>/dev/null; then
229   # We could just check for DJGPP; but this test a) works b) is more generic
230   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
231   if test -f conf$$.exe; then
232     # Don't use ln at all; we don't have any links
233     as_ln_s='cp -p'
234   else
235     as_ln_s='ln -s'
236   fi
237 elif ln conf$$.file conf$$ 2>/dev/null; then
238   as_ln_s=ln
239 else
240   as_ln_s='cp -p'
241 fi
242 rm -f conf$$ conf$$.exe conf$$.file
243
244 if mkdir -p . 2>/dev/null; then
245   as_mkdir_p=:
246 else
247   test -d ./-p && rmdir ./-p
248   as_mkdir_p=false
249 fi
250
251 as_executable_p="test -f"
252
253 # Sed expression to map a string onto a valid CPP name.
254 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
255
256 # Sed expression to map a string onto a valid variable name.
257 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
258
259
260 # IFS
261 # We need space, tab and new line, in precisely that order.
262 as_nl='
263 '
264 IFS="   $as_nl"
265
266 # CDPATH.
267 $as_unset CDPATH
268
269
270
271 # Check that we are running under the correct shell.
272 SHELL=${CONFIG_SHELL-/bin/sh}
273
274 case X$ECHO in
275 X*--fallback-echo)
276   # Remove one level of quotation (which was required for Make).
277   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
278   ;;
279 esac
280
281 echo=${ECHO-echo}
282 if test "X$1" = X--no-reexec; then
283   # Discard the --no-reexec flag, and continue.
284   shift
285 elif test "X$1" = X--fallback-echo; then
286   # Avoid inline document here, it may be left over
287   :
288 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
289   # Yippee, $echo works!
290   :
291 else
292   # Restart under the correct shell.
293   exec $SHELL "$0" --no-reexec ${1+"$@"}
294 fi
295
296 if test "X$1" = X--fallback-echo; then
297   # used as fallback echo
298   shift
299   cat <<EOF
300 $*
301 EOF
302   exit 0
303 fi
304
305 # The HP-UX ksh and POSIX shell print the target directory to stdout
306 # if CDPATH is set.
307 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
308
309 if test -z "$ECHO"; then
310 if test "X${echo_test_string+set}" != Xset; then
311 # find a string as large as possible, as long as the shell can cope with it
312   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
313     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
314     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
315        echo_test_string="`eval $cmd`" &&
316        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
317     then
318       break
319     fi
320   done
321 fi
322
323 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
324    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
325    test "X$echo_testing_string" = "X$echo_test_string"; then
326   :
327 else
328   # The Solaris, AIX, and Digital Unix default echo programs unquote
329   # backslashes.  This makes it impossible to quote backslashes using
330   #   echo "$something" | sed 's/\\/\\\\/g'
331   #
332   # So, first we look for a working echo in the user's PATH.
333
334   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
335   for dir in $PATH /usr/ucb; do
336     IFS="$lt_save_ifs"
337     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
338        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
339        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
340        test "X$echo_testing_string" = "X$echo_test_string"; then
341       echo="$dir/echo"
342       break
343     fi
344   done
345   IFS="$lt_save_ifs"
346
347   if test "X$echo" = Xecho; then
348     # We didn't find a better echo, so look for alternatives.
349     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
350        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
351        test "X$echo_testing_string" = "X$echo_test_string"; then
352       # This shell has a builtin print -r that does the trick.
353       echo='print -r'
354     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
355          test "X$CONFIG_SHELL" != X/bin/ksh; then
356       # If we have ksh, try running configure again with it.
357       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
358       export ORIGINAL_CONFIG_SHELL
359       CONFIG_SHELL=/bin/ksh
360       export CONFIG_SHELL
361       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
362     else
363       # Try using printf.
364       echo='printf %s\n'
365       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
366          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
367          test "X$echo_testing_string" = "X$echo_test_string"; then
368         # Cool, printf works
369         :
370       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
371            test "X$echo_testing_string" = 'X\t' &&
372            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
373            test "X$echo_testing_string" = "X$echo_test_string"; then
374         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
375         export CONFIG_SHELL
376         SHELL="$CONFIG_SHELL"
377         export SHELL
378         echo="$CONFIG_SHELL $0 --fallback-echo"
379       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
380            test "X$echo_testing_string" = 'X\t' &&
381            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
382            test "X$echo_testing_string" = "X$echo_test_string"; then
383         echo="$CONFIG_SHELL $0 --fallback-echo"
384       else
385         # maybe with a smaller string...
386         prev=:
387
388         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
389           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
390           then
391             break
392           fi
393           prev="$cmd"
394         done
395
396         if test "$prev" != 'sed 50q "$0"'; then
397           echo_test_string=`eval $prev`
398           export echo_test_string
399           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
400         else
401           # Oops.  We lost completely, so just stick with echo.
402           echo=echo
403         fi
404       fi
405     fi
406   fi
407 fi
408 fi
409
410 # Copy echo and quote the copy suitably for passing to libtool from
411 # the Makefile, instead of quoting the original, which is used later.
412 ECHO=$echo
413 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
414    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
415 fi
416
417
418
419
420 tagnames=${tagnames+${tagnames},}CXX
421
422 tagnames=${tagnames+${tagnames},}F77
423
424 # Name of the host.
425 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
426 # so uname gets run too.
427 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
428
429 exec 6>&1
430
431 #
432 # Initializations.
433 #
434 ac_default_prefix=/usr/local
435 ac_config_libobj_dir=.
436 cross_compiling=no
437 subdirs=
438 MFLAGS=
439 MAKEFLAGS=
440 SHELL=${CONFIG_SHELL-/bin/sh}
441
442 # Maximum number of lines to put in a shell here document.
443 # This variable seems obsolete.  It should probably be removed, and
444 # only ac_max_sed_lines should be used.
445 : ${ac_max_here_lines=38}
446
447 # Identity of this package.
448 PACKAGE_NAME='GNU MP'
449 PACKAGE_TARNAME='gmp'
450 PACKAGE_VERSION='4.2.1'
451 PACKAGE_STRING='GNU MP 4.2.1'
452 PACKAGE_BUGREPORT='gmp-bugs@swox.com'
453
454 ac_unique_file="gmp-impl.h"
455 # Factoring default headers for most tests.
456 ac_includes_default="\
457 #include <stdio.h>
458 #if HAVE_SYS_TYPES_H
459 # include <sys/types.h>
460 #endif
461 #if HAVE_SYS_STAT_H
462 # include <sys/stat.h>
463 #endif
464 #if STDC_HEADERS
465 # include <stdlib.h>
466 # include <stddef.h>
467 #else
468 # if HAVE_STDLIB_H
469 #  include <stdlib.h>
470 # endif
471 #endif
472 #if HAVE_STRING_H
473 # if !STDC_HEADERS && HAVE_MEMORY_H
474 #  include <memory.h>
475 # endif
476 # include <string.h>
477 #endif
478 #if HAVE_STRINGS_H
479 # include <strings.h>
480 #endif
481 #if HAVE_INTTYPES_H
482 # include <inttypes.h>
483 #else
484 # if HAVE_STDINT_H
485 #  include <stdint.h>
486 # endif
487 #endif
488 #if HAVE_UNISTD_H
489 # include <unistd.h>
490 #endif"
491
492 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT WANT_MPBSD_TRUE WANT_MPBSD_FALSE GMP_NAIL_BITS ABI HAVE_HOST_CPU_FAMILY_power HAVE_HOST_CPU_FAMILY_powerpc GMP_LDFLAGS LIBGMP_LDFLAGS LIBGMPXX_LDFLAGS SPEED_CYCLECOUNTER_OBJ CALLING_CONVENTIONS_OBJS DEFN_LONG_LONG_LIMB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP CC_FOR_BUILD CPP_FOR_BUILD EXEEXT_FOR_BUILD U_FOR_BUILD LIBM_FOR_BUILD CCAS CXX CXXFLAGS ac_ct_CXX WANT_CXX_TRUE WANT_CXX_FALSE CXXCPP EGREP U ANSI2KNR AR ac_ct_AR LIBGMP_DLL LN_S ECHO RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP LIBTOOL ENABLE_STATIC_TRUE ENABLE_STATIC_FALSE LIBM TAL_OBJECT M4 BITS_PER_MP_LIMB mpn_objs_in_libmp mpn_objects mpn_objs_in_libgmp gmp_srclinks TUNE_SQR_OBJ HAVE_CLOCK_01 HAVE_CPUTIME_01 HAVE_GETRUSAGE_01 HAVE_GETTIMEOFDAY_01 HAVE_SIGACTION_01 HAVE_SIGALTSTACK_01 HAVE_SIGSTACK_01 HAVE_SYS_RESOURCE_H_01 HAVE_STACK_T_01 LIBCURSES WITH_READLINE_01 LIBREADLINE YACC LEX LEXLIB LEX_OUTPUT_ROOT LIBOBJS LTLIBOBJS'
493 ac_subst_files=''
494
495 # Initialize some variables set by options.
496 ac_init_help=
497 ac_init_version=false
498 # The variables have the same names as the options, with
499 # dashes changed to underlines.
500 cache_file=/dev/null
501 exec_prefix=NONE
502 no_create=
503 no_recursion=
504 prefix=NONE
505 program_prefix=NONE
506 program_suffix=NONE
507 program_transform_name=s,x,x,
508 silent=
509 site=
510 srcdir=
511 verbose=
512 x_includes=NONE
513 x_libraries=NONE
514
515 # Installation directory options.
516 # These are left unexpanded so users can "make install exec_prefix=/foo"
517 # and all the variables that are supposed to be based on exec_prefix
518 # by default will actually change.
519 # Use braces instead of parens because sh, perl, etc. also accept them.
520 bindir='${exec_prefix}/bin'
521 sbindir='${exec_prefix}/sbin'
522 libexecdir='${exec_prefix}/libexec'
523 datadir='${prefix}/share'
524 sysconfdir='${prefix}/etc'
525 sharedstatedir='${prefix}/com'
526 localstatedir='${prefix}/var'
527 libdir='${exec_prefix}/lib'
528 includedir='${prefix}/include'
529 oldincludedir='/usr/include'
530 infodir='${prefix}/info'
531 mandir='${prefix}/man'
532
533 ac_prev=
534 for ac_option
535 do
536   # If the previous option needs an argument, assign it.
537   if test -n "$ac_prev"; then
538     eval "$ac_prev=\$ac_option"
539     ac_prev=
540     continue
541   fi
542
543   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
544
545   # Accept the important Cygnus configure options, so we can diagnose typos.
546
547   case $ac_option in
548
549   -bindir | --bindir | --bindi | --bind | --bin | --bi)
550     ac_prev=bindir ;;
551   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
552     bindir=$ac_optarg ;;
553
554   -build | --build | --buil | --bui | --bu)
555     ac_prev=build_alias ;;
556   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
557     build_alias=$ac_optarg ;;
558
559   -cache-file | --cache-file | --cache-fil | --cache-fi \
560   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
561     ac_prev=cache_file ;;
562   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
563   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
564     cache_file=$ac_optarg ;;
565
566   --config-cache | -C)
567     cache_file=config.cache ;;
568
569   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
570     ac_prev=datadir ;;
571   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
572   | --da=*)
573     datadir=$ac_optarg ;;
574
575   -disable-* | --disable-*)
576     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
577     # Reject names that are not valid shell variable names.
578     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
579       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
580    { (exit 1); exit 1; }; }
581     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
582     eval "enable_$ac_feature=no" ;;
583
584   -enable-* | --enable-*)
585     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
586     # Reject names that are not valid shell variable names.
587     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
589    { (exit 1); exit 1; }; }
590     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
591     case $ac_option in
592       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
593       *) ac_optarg=yes ;;
594     esac
595     eval "enable_$ac_feature='$ac_optarg'" ;;
596
597   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
598   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
599   | --exec | --exe | --ex)
600     ac_prev=exec_prefix ;;
601   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
602   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
603   | --exec=* | --exe=* | --ex=*)
604     exec_prefix=$ac_optarg ;;
605
606   -gas | --gas | --ga | --g)
607     # Obsolete; use --with-gas.
608     with_gas=yes ;;
609
610   -help | --help | --hel | --he | -h)
611     ac_init_help=long ;;
612   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
613     ac_init_help=recursive ;;
614   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
615     ac_init_help=short ;;
616
617   -host | --host | --hos | --ho)
618     ac_prev=host_alias ;;
619   -host=* | --host=* | --hos=* | --ho=*)
620     host_alias=$ac_optarg ;;
621
622   -includedir | --includedir | --includedi | --included | --include \
623   | --includ | --inclu | --incl | --inc)
624     ac_prev=includedir ;;
625   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
626   | --includ=* | --inclu=* | --incl=* | --inc=*)
627     includedir=$ac_optarg ;;
628
629   -infodir | --infodir | --infodi | --infod | --info | --inf)
630     ac_prev=infodir ;;
631   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
632     infodir=$ac_optarg ;;
633
634   -libdir | --libdir | --libdi | --libd)
635     ac_prev=libdir ;;
636   -libdir=* | --libdir=* | --libdi=* | --libd=*)
637     libdir=$ac_optarg ;;
638
639   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
640   | --libexe | --libex | --libe)
641     ac_prev=libexecdir ;;
642   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
643   | --libexe=* | --libex=* | --libe=*)
644     libexecdir=$ac_optarg ;;
645
646   -localstatedir | --localstatedir | --localstatedi | --localstated \
647   | --localstate | --localstat | --localsta | --localst \
648   | --locals | --local | --loca | --loc | --lo)
649     ac_prev=localstatedir ;;
650   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
651   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
652   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
653     localstatedir=$ac_optarg ;;
654
655   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
656     ac_prev=mandir ;;
657   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
658     mandir=$ac_optarg ;;
659
660   -nfp | --nfp | --nf)
661     # Obsolete; use --without-fp.
662     with_fp=no ;;
663
664   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
665   | --no-cr | --no-c | -n)
666     no_create=yes ;;
667
668   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
669   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
670     no_recursion=yes ;;
671
672   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
673   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
674   | --oldin | --oldi | --old | --ol | --o)
675     ac_prev=oldincludedir ;;
676   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
677   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
678   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
679     oldincludedir=$ac_optarg ;;
680
681   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
682     ac_prev=prefix ;;
683   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
684     prefix=$ac_optarg ;;
685
686   -program-prefix | --program-prefix | --program-prefi | --program-pref \
687   | --program-pre | --program-pr | --program-p)
688     ac_prev=program_prefix ;;
689   -program-prefix=* | --program-prefix=* | --program-prefi=* \
690   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
691     program_prefix=$ac_optarg ;;
692
693   -program-suffix | --program-suffix | --program-suffi | --program-suff \
694   | --program-suf | --program-su | --program-s)
695     ac_prev=program_suffix ;;
696   -program-suffix=* | --program-suffix=* | --program-suffi=* \
697   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698     program_suffix=$ac_optarg ;;
699
700   -program-transform-name | --program-transform-name \
701   | --program-transform-nam | --program-transform-na \
702   | --program-transform-n | --program-transform- \
703   | --program-transform | --program-transfor \
704   | --program-transfo | --program-transf \
705   | --program-trans | --program-tran \
706   | --progr-tra | --program-tr | --program-t)
707     ac_prev=program_transform_name ;;
708   -program-transform-name=* | --program-transform-name=* \
709   | --program-transform-nam=* | --program-transform-na=* \
710   | --program-transform-n=* | --program-transform-=* \
711   | --program-transform=* | --program-transfor=* \
712   | --program-transfo=* | --program-transf=* \
713   | --program-trans=* | --program-tran=* \
714   | --progr-tra=* | --program-tr=* | --program-t=*)
715     program_transform_name=$ac_optarg ;;
716
717   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
718   | -silent | --silent | --silen | --sile | --sil)
719     silent=yes ;;
720
721   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
722     ac_prev=sbindir ;;
723   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
724   | --sbi=* | --sb=*)
725     sbindir=$ac_optarg ;;
726
727   -sharedstatedir | --sharedstatedir | --sharedstatedi \
728   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
729   | --sharedst | --shareds | --shared | --share | --shar \
730   | --sha | --sh)
731     ac_prev=sharedstatedir ;;
732   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
733   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
734   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
735   | --sha=* | --sh=*)
736     sharedstatedir=$ac_optarg ;;
737
738   -site | --site | --sit)
739     ac_prev=site ;;
740   -site=* | --site=* | --sit=*)
741     site=$ac_optarg ;;
742
743   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
744     ac_prev=srcdir ;;
745   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
746     srcdir=$ac_optarg ;;
747
748   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
749   | --syscon | --sysco | --sysc | --sys | --sy)
750     ac_prev=sysconfdir ;;
751   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
752   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
753     sysconfdir=$ac_optarg ;;
754
755   -target | --target | --targe | --targ | --tar | --ta | --t)
756     ac_prev=target_alias ;;
757   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
758     target_alias=$ac_optarg ;;
759
760   -v | -verbose | --verbose | --verbos | --verbo | --verb)
761     verbose=yes ;;
762
763   -version | --version | --versio | --versi | --vers | -V)
764     ac_init_version=: ;;
765
766   -with-* | --with-*)
767     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
768     # Reject names that are not valid shell variable names.
769     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770       { echo "$as_me: error: invalid package name: $ac_package" >&2
771    { (exit 1); exit 1; }; }
772     ac_package=`echo $ac_package| sed 's/-/_/g'`
773     case $ac_option in
774       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
775       *) ac_optarg=yes ;;
776     esac
777     eval "with_$ac_package='$ac_optarg'" ;;
778
779   -without-* | --without-*)
780     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
781     # Reject names that are not valid shell variable names.
782     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
783       { echo "$as_me: error: invalid package name: $ac_package" >&2
784    { (exit 1); exit 1; }; }
785     ac_package=`echo $ac_package | sed 's/-/_/g'`
786     eval "with_$ac_package=no" ;;
787
788   --x)
789     # Obsolete; use --with-x.
790     with_x=yes ;;
791
792   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
793   | --x-incl | --x-inc | --x-in | --x-i)
794     ac_prev=x_includes ;;
795   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
796   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
797     x_includes=$ac_optarg ;;
798
799   -x-libraries | --x-libraries | --x-librarie | --x-librari \
800   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
801     ac_prev=x_libraries ;;
802   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
803   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
804     x_libraries=$ac_optarg ;;
805
806   -*) { echo "$as_me: error: unrecognized option: $ac_option
807 Try \`$0 --help' for more information." >&2
808    { (exit 1); exit 1; }; }
809     ;;
810
811   *=*)
812     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
813     # Reject names that are not valid shell variable names.
814     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
815       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
816    { (exit 1); exit 1; }; }
817     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
818     eval "$ac_envvar='$ac_optarg'"
819     export $ac_envvar ;;
820
821   *)
822     # FIXME: should be removed in autoconf 3.0.
823     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
824     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
825       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
826     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
827     ;;
828
829   esac
830 done
831
832 if test -n "$ac_prev"; then
833   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
834   { echo "$as_me: error: missing argument to $ac_option" >&2
835    { (exit 1); exit 1; }; }
836 fi
837
838 # Be sure to have absolute paths.
839 for ac_var in exec_prefix prefix
840 do
841   eval ac_val=$`echo $ac_var`
842   case $ac_val in
843     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
844     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845    { (exit 1); exit 1; }; };;
846   esac
847 done
848
849 # Be sure to have absolute paths.
850 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
851               localstatedir libdir includedir oldincludedir infodir mandir
852 do
853   eval ac_val=$`echo $ac_var`
854   case $ac_val in
855     [\\/$]* | ?:[\\/]* ) ;;
856     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
857    { (exit 1); exit 1; }; };;
858   esac
859 done
860
861 # There might be people who depend on the old broken behavior: `$host'
862 # used to hold the argument of --host etc.
863 # FIXME: To remove some day.
864 build=$build_alias
865 host=$host_alias
866 target=$target_alias
867
868 # FIXME: To remove some day.
869 if test "x$host_alias" != x; then
870   if test "x$build_alias" = x; then
871     cross_compiling=maybe
872     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
873     If a cross compiler is detected then cross compile mode will be used." >&2
874   elif test "x$build_alias" != "x$host_alias"; then
875     cross_compiling=yes
876   fi
877 fi
878
879 ac_tool_prefix=
880 test -n "$host_alias" && ac_tool_prefix=$host_alias-
881
882 test "$silent" = yes && exec 6>/dev/null
883
884
885 # Find the source files, if location was not specified.
886 if test -z "$srcdir"; then
887   ac_srcdir_defaulted=yes
888   # Try the directory containing this script, then its parent.
889   ac_confdir=`(dirname "$0") 2>/dev/null ||
890 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
891          X"$0" : 'X\(//\)[^/]' \| \
892          X"$0" : 'X\(//\)$' \| \
893          X"$0" : 'X\(/\)' \| \
894          .     : '\(.\)' 2>/dev/null ||
895 echo X"$0" |
896     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
897           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
898           /^X\(\/\/\)$/{ s//\1/; q; }
899           /^X\(\/\).*/{ s//\1/; q; }
900           s/.*/./; q'`
901   srcdir=$ac_confdir
902   if test ! -r $srcdir/$ac_unique_file; then
903     srcdir=..
904   fi
905 else
906   ac_srcdir_defaulted=no
907 fi
908 if test ! -r $srcdir/$ac_unique_file; then
909   if test "$ac_srcdir_defaulted" = yes; then
910     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
911    { (exit 1); exit 1; }; }
912   else
913     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
914    { (exit 1); exit 1; }; }
915   fi
916 fi
917 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
918   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
919    { (exit 1); exit 1; }; }
920 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
921 ac_env_build_alias_set=${build_alias+set}
922 ac_env_build_alias_value=$build_alias
923 ac_cv_env_build_alias_set=${build_alias+set}
924 ac_cv_env_build_alias_value=$build_alias
925 ac_env_host_alias_set=${host_alias+set}
926 ac_env_host_alias_value=$host_alias
927 ac_cv_env_host_alias_set=${host_alias+set}
928 ac_cv_env_host_alias_value=$host_alias
929 ac_env_target_alias_set=${target_alias+set}
930 ac_env_target_alias_value=$target_alias
931 ac_cv_env_target_alias_set=${target_alias+set}
932 ac_cv_env_target_alias_value=$target_alias
933 ac_env_ABI_set=${ABI+set}
934 ac_env_ABI_value=$ABI
935 ac_cv_env_ABI_set=${ABI+set}
936 ac_cv_env_ABI_value=$ABI
937 ac_env_CC_set=${CC+set}
938 ac_env_CC_value=$CC
939 ac_cv_env_CC_set=${CC+set}
940 ac_cv_env_CC_value=$CC
941 ac_env_CFLAGS_set=${CFLAGS+set}
942 ac_env_CFLAGS_value=$CFLAGS
943 ac_cv_env_CFLAGS_set=${CFLAGS+set}
944 ac_cv_env_CFLAGS_value=$CFLAGS
945 ac_env_LDFLAGS_set=${LDFLAGS+set}
946 ac_env_LDFLAGS_value=$LDFLAGS
947 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
948 ac_cv_env_LDFLAGS_value=$LDFLAGS
949 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
950 ac_env_CPPFLAGS_value=$CPPFLAGS
951 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
952 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
953 ac_env_CPP_set=${CPP+set}
954 ac_env_CPP_value=$CPP
955 ac_cv_env_CPP_set=${CPP+set}
956 ac_cv_env_CPP_value=$CPP
957 ac_env_CC_FOR_BUILD_set=${CC_FOR_BUILD+set}
958 ac_env_CC_FOR_BUILD_value=$CC_FOR_BUILD
959 ac_cv_env_CC_FOR_BUILD_set=${CC_FOR_BUILD+set}
960 ac_cv_env_CC_FOR_BUILD_value=$CC_FOR_BUILD
961 ac_env_CPP_FOR_BUILD_set=${CPP_FOR_BUILD+set}
962 ac_env_CPP_FOR_BUILD_value=$CPP_FOR_BUILD
963 ac_cv_env_CPP_FOR_BUILD_set=${CPP_FOR_BUILD+set}
964 ac_cv_env_CPP_FOR_BUILD_value=$CPP_FOR_BUILD
965 ac_env_CXX_set=${CXX+set}
966 ac_env_CXX_value=$CXX
967 ac_cv_env_CXX_set=${CXX+set}
968 ac_cv_env_CXX_value=$CXX
969 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
970 ac_env_CXXFLAGS_value=$CXXFLAGS
971 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
972 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
973 ac_env_CXXCPP_set=${CXXCPP+set}
974 ac_env_CXXCPP_value=$CXXCPP
975 ac_cv_env_CXXCPP_set=${CXXCPP+set}
976 ac_cv_env_CXXCPP_value=$CXXCPP
977 ac_env_M4_set=${M4+set}
978 ac_env_M4_value=$M4
979 ac_cv_env_M4_set=${M4+set}
980 ac_cv_env_M4_value=$M4
981
982 #
983 # Report the --help message.
984 #
985 if test "$ac_init_help" = "long"; then
986   # Omit some internal or obsolete options to make the list less imposing.
987   # This message is too long to be a string in the A/UX 3.1 sh.
988   cat <<_ACEOF
989 \`configure' configures GNU MP 4.2.1 to adapt to many kinds of systems.
990
991 Usage: $0 [OPTION]... [VAR=VALUE]...
992
993 To assign environment variables (e.g., CC, CFLAGS...), specify them as
994 VAR=VALUE.  See below for descriptions of some of the useful variables.
995
996 Defaults for the options are specified in brackets.
997
998 Configuration:
999   -h, --help              display this help and exit
1000       --help=short        display options specific to this package
1001       --help=recursive    display the short help of all the included packages
1002   -V, --version           display version information and exit
1003   -q, --quiet, --silent   do not print \`checking...' messages
1004       --cache-file=FILE   cache test results in FILE [disabled]
1005   -C, --config-cache      alias for \`--cache-file=config.cache'
1006   -n, --no-create         do not create output files
1007       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1008
1009 _ACEOF
1010
1011   cat <<_ACEOF
1012 Installation directories:
1013   --prefix=PREFIX         install architecture-independent files in PREFIX
1014                           [$ac_default_prefix]
1015   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1016                           [PREFIX]
1017
1018 By default, \`make install' will install all the files in
1019 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1020 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1021 for instance \`--prefix=\$HOME'.
1022
1023 For better control, use the options below.
1024
1025 Fine tuning of the installation directories:
1026   --bindir=DIR           user executables [EPREFIX/bin]
1027   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1028   --libexecdir=DIR       program executables [EPREFIX/libexec]
1029   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1030   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1031   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1032   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1033   --libdir=DIR           object code libraries [EPREFIX/lib]
1034   --includedir=DIR       C header files [PREFIX/include]
1035   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1036   --infodir=DIR          info documentation [PREFIX/info]
1037   --mandir=DIR           man documentation [PREFIX/man]
1038 _ACEOF
1039
1040   cat <<\_ACEOF
1041
1042 Program names:
1043   --program-prefix=PREFIX            prepend PREFIX to installed program names
1044   --program-suffix=SUFFIX            append SUFFIX to installed program names
1045   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1046
1047 System types:
1048   --build=BUILD     configure for building on BUILD [guessed]
1049   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1050 _ACEOF
1051 fi
1052
1053 if test -n "$ac_init_help"; then
1054   case $ac_init_help in
1055      short | recursive ) echo "Configuration of GNU MP 4.2.1:";;
1056    esac
1057   cat <<\_ACEOF
1058
1059 Optional Features:
1060   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1061   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1062   --enable-maintainer-mode  enable make rules and dependencies not useful
1063                           (and sometimes confusing) to the casual installer
1064   --enable-assert         enable ASSERT checking [default=no]
1065   --enable-alloca         how to get temp memory [default=reentrant]
1066   --enable-cxx            enable C++ support [default=no]
1067   --enable-fft            enable FFTs for multiplication [default=yes]
1068   --enable-mpbsd          build Berkeley MP compatibility library
1069                           [default=no]
1070   --enable-nails          use nails on limbs [default=no]
1071   --enable-profiling      build with profiler support [default=no]
1072   --enable-fat            build a fat binary on systems that support it
1073                           [default=no]
1074   --enable-shared[=PKGS]
1075                           build shared libraries [default=yes]
1076   --enable-static[=PKGS]
1077                           build static libraries [default=yes]
1078   --enable-fast-install[=PKGS]
1079                           optimize for fast installation [default=yes]
1080   --disable-libtool-lock  avoid locking (might break parallel builds)
1081
1082 Optional Packages:
1083   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1084   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1085   --with-readline         readline support in calc demo program
1086                           [default=detect]
1087   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1088   --with-pic              try to use only PIC/non-PIC objects [default=use
1089                           both]
1090   --with-tags[=TAGS]
1091                           include additional configurations [automatic]
1092
1093 Some influential environment variables:
1094   ABI         desired ABI (for processors supporting more than one ABI)
1095   CC          C compiler command
1096   CFLAGS      C compiler flags
1097   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1098               nonstandard directory <lib dir>
1099   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1100               headers in a nonstandard directory <include dir>
1101   CPP         C preprocessor
1102   CC_FOR_BUILD
1103               build system C compiler
1104   CPP_FOR_BUILD
1105               build system C preprocessor
1106   CXX         C++ compiler command
1107   CXXFLAGS    C++ compiler flags
1108   CXXCPP      C++ preprocessor
1109   M4          m4 macro processor
1110
1111 Use these variables to override the choices made by `configure' or to help
1112 it to find libraries and programs with nonstandard names/locations.
1113
1114 Report bugs to <gmp-bugs@swox.com>.
1115 _ACEOF
1116 fi
1117
1118 if test "$ac_init_help" = "recursive"; then
1119   # If there are subdirs, report their specific --help.
1120   ac_popdir=`pwd`
1121   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1122     test -d $ac_dir || continue
1123     ac_builddir=.
1124
1125 if test "$ac_dir" != .; then
1126   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1127   # A "../" for each directory in $ac_dir_suffix.
1128   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1129 else
1130   ac_dir_suffix= ac_top_builddir=
1131 fi
1132
1133 case $srcdir in
1134   .)  # No --srcdir option.  We are building in place.
1135     ac_srcdir=.
1136     if test -z "$ac_top_builddir"; then
1137        ac_top_srcdir=.
1138     else
1139        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1140     fi ;;
1141   [\\/]* | ?:[\\/]* )  # Absolute path.
1142     ac_srcdir=$srcdir$ac_dir_suffix;
1143     ac_top_srcdir=$srcdir ;;
1144   *) # Relative path.
1145     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1146     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1147 esac
1148
1149 # Do not use `cd foo && pwd` to compute absolute paths, because
1150 # the directories may not exist.
1151 case `pwd` in
1152 .) ac_abs_builddir="$ac_dir";;
1153 *)
1154   case "$ac_dir" in
1155   .) ac_abs_builddir=`pwd`;;
1156   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1157   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1158   esac;;
1159 esac
1160 case $ac_abs_builddir in
1161 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1162 *)
1163   case ${ac_top_builddir}. in
1164   .) ac_abs_top_builddir=$ac_abs_builddir;;
1165   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1166   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1167   esac;;
1168 esac
1169 case $ac_abs_builddir in
1170 .) ac_abs_srcdir=$ac_srcdir;;
1171 *)
1172   case $ac_srcdir in
1173   .) ac_abs_srcdir=$ac_abs_builddir;;
1174   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1175   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1176   esac;;
1177 esac
1178 case $ac_abs_builddir in
1179 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1180 *)
1181   case $ac_top_srcdir in
1182   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1183   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1184   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1185   esac;;
1186 esac
1187
1188     cd $ac_dir
1189     # Check for guested configure; otherwise get Cygnus style configure.
1190     if test -f $ac_srcdir/configure.gnu; then
1191       echo
1192       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1193     elif test -f $ac_srcdir/configure; then
1194       echo
1195       $SHELL $ac_srcdir/configure  --help=recursive
1196     elif test -f $ac_srcdir/configure.ac ||
1197            test -f $ac_srcdir/configure.in; then
1198       echo
1199       $ac_configure --help
1200     else
1201       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1202     fi
1203     cd $ac_popdir
1204   done
1205 fi
1206
1207 test -n "$ac_init_help" && exit 0
1208 if $ac_init_version; then
1209   cat <<\_ACEOF
1210 GNU MP configure 4.2.1
1211 generated by GNU Autoconf 2.59
1212
1213 Copyright (C) 2003 Free Software Foundation, Inc.
1214 This configure script is free software; the Free Software Foundation
1215 gives unlimited permission to copy, distribute and modify it.
1216
1217
1218
1219 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
1220 Free Software Foundation, Inc.
1221
1222 This file is part of the GNU MP Library.
1223
1224 The GNU MP Library is free software; you can redistribute it and/or modify
1225 it under the terms of the GNU Lesser General Public License as published
1226 by the Free Software Foundation; either version 2.1 of the License, or (at
1227 your option) any later version.
1228
1229 The GNU MP Library is distributed in the hope that it will be useful, but
1230 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1231 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
1232 License for more details.
1233
1234 You should have received a copy of the GNU Lesser General Public License
1235 along with the GNU MP Library; see the file COPYING.LIB.  If not, write to
1236 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
1237 MA 02110-1301, USA.
1238
1239 _ACEOF
1240   exit 0
1241 fi
1242 exec 5>config.log
1243 cat >&5 <<_ACEOF
1244 This file contains any messages produced by compilers while
1245 running configure, to aid debugging if configure makes a mistake.
1246
1247 It was created by GNU MP $as_me 4.2.1, which was
1248 generated by GNU Autoconf 2.59.  Invocation command line was
1249
1250   $ $0 $@
1251
1252 _ACEOF
1253 {
1254 cat <<_ASUNAME
1255 ## --------- ##
1256 ## Platform. ##
1257 ## --------- ##
1258
1259 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1260 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1261 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1262 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1263 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1264
1265 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1266 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1267
1268 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1269 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1270 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1271 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1272 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1273 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1274 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1275
1276 _ASUNAME
1277
1278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1279 for as_dir in $PATH
1280 do
1281   IFS=$as_save_IFS
1282   test -z "$as_dir" && as_dir=.
1283   echo "PATH: $as_dir"
1284 done
1285
1286 } >&5
1287
1288 cat >&5 <<_ACEOF
1289
1290
1291 ## ----------- ##
1292 ## Core tests. ##
1293 ## ----------- ##
1294
1295 _ACEOF
1296
1297
1298 # Keep a trace of the command line.
1299 # Strip out --no-create and --no-recursion so they do not pile up.
1300 # Strip out --silent because we don't want to record it for future runs.
1301 # Also quote any args containing shell meta-characters.
1302 # Make two passes to allow for proper duplicate-argument suppression.
1303 ac_configure_args=
1304 ac_configure_args0=
1305 ac_configure_args1=
1306 ac_sep=
1307 ac_must_keep_next=false
1308 for ac_pass in 1 2
1309 do
1310   for ac_arg
1311   do
1312     case $ac_arg in
1313     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1314     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1315     | -silent | --silent | --silen | --sile | --sil)
1316       continue ;;
1317     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1319     esac
1320     case $ac_pass in
1321     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1322     2)
1323       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1324       if test $ac_must_keep_next = true; then
1325         ac_must_keep_next=false # Got value, back to normal.
1326       else
1327         case $ac_arg in
1328           *=* | --config-cache | -C | -disable-* | --disable-* \
1329           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1330           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1331           | -with-* | --with-* | -without-* | --without-* | --x)
1332             case "$ac_configure_args0 " in
1333               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1334             esac
1335             ;;
1336           -* ) ac_must_keep_next=true ;;
1337         esac
1338       fi
1339       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1340       # Get rid of the leading space.
1341       ac_sep=" "
1342       ;;
1343     esac
1344   done
1345 done
1346 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1347 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1348
1349 # When interrupted or exit'd, cleanup temporary files, and complete
1350 # config.log.  We remove comments because anyway the quotes in there
1351 # would cause problems or look ugly.
1352 # WARNING: Be sure not to use single quotes in there, as some shells,
1353 # such as our DU 5.0 friend, will then `close' the trap.
1354 trap 'exit_status=$?
1355   # Save into config.log some information that might help in debugging.
1356   {
1357     echo
1358
1359     cat <<\_ASBOX
1360 ## ---------------- ##
1361 ## Cache variables. ##
1362 ## ---------------- ##
1363 _ASBOX
1364     echo
1365     # The following way of writing the cache mishandles newlines in values,
1366 {
1367   (set) 2>&1 |
1368     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1369     *ac_space=\ *)
1370       sed -n \
1371         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1372           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1373       ;;
1374     *)
1375       sed -n \
1376         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1377       ;;
1378     esac;
1379 }
1380     echo
1381
1382     cat <<\_ASBOX
1383 ## ----------------- ##
1384 ## Output variables. ##
1385 ## ----------------- ##
1386 _ASBOX
1387     echo
1388     for ac_var in $ac_subst_vars
1389     do
1390       eval ac_val=$`echo $ac_var`
1391       echo "$ac_var='"'"'$ac_val'"'"'"
1392     done | sort
1393     echo
1394
1395     if test -n "$ac_subst_files"; then
1396       cat <<\_ASBOX
1397 ## ------------- ##
1398 ## Output files. ##
1399 ## ------------- ##
1400 _ASBOX
1401       echo
1402       for ac_var in $ac_subst_files
1403       do
1404         eval ac_val=$`echo $ac_var`
1405         echo "$ac_var='"'"'$ac_val'"'"'"
1406       done | sort
1407       echo
1408     fi
1409
1410     if test -s confdefs.h; then
1411       cat <<\_ASBOX
1412 ## ----------- ##
1413 ## confdefs.h. ##
1414 ## ----------- ##
1415 _ASBOX
1416       echo
1417       sed "/^$/d" confdefs.h | sort
1418       echo
1419     fi
1420     test "$ac_signal" != 0 &&
1421       echo "$as_me: caught signal $ac_signal"
1422     echo "$as_me: exit $exit_status"
1423   } >&5
1424   rm -f core *.core &&
1425   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1426     exit $exit_status
1427      ' 0
1428 for ac_signal in 1 2 13 15; do
1429   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1430 done
1431 ac_signal=0
1432
1433 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1434 rm -rf conftest* confdefs.h
1435 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1436 echo >confdefs.h
1437
1438 # Predefined preprocessor variables.
1439
1440 cat >>confdefs.h <<_ACEOF
1441 #define PACKAGE_NAME "$PACKAGE_NAME"
1442 _ACEOF
1443
1444
1445 cat >>confdefs.h <<_ACEOF
1446 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1447 _ACEOF
1448
1449
1450 cat >>confdefs.h <<_ACEOF
1451 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1452 _ACEOF
1453
1454
1455 cat >>confdefs.h <<_ACEOF
1456 #define PACKAGE_STRING "$PACKAGE_STRING"
1457 _ACEOF
1458
1459
1460 cat >>confdefs.h <<_ACEOF
1461 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1462 _ACEOF
1463
1464
1465 # Let the site file select an alternate cache file if it wants to.
1466 # Prefer explicitly selected file to automatically selected ones.
1467 if test -z "$CONFIG_SITE"; then
1468   if test "x$prefix" != xNONE; then
1469     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1470   else
1471     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1472   fi
1473 fi
1474 for ac_site_file in $CONFIG_SITE; do
1475   if test -r "$ac_site_file"; then
1476     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1477 echo "$as_me: loading site script $ac_site_file" >&6;}
1478     sed 's/^/| /' "$ac_site_file" >&5
1479     . "$ac_site_file"
1480   fi
1481 done
1482
1483 if test -r "$cache_file"; then
1484   # Some versions of bash will fail to source /dev/null (special
1485   # files actually), so we avoid doing that.
1486   if test -f "$cache_file"; then
1487     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1488 echo "$as_me: loading cache $cache_file" >&6;}
1489     case $cache_file in
1490       [\\/]* | ?:[\\/]* ) . $cache_file;;
1491       *)                      . ./$cache_file;;
1492     esac
1493   fi
1494 else
1495   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1496 echo "$as_me: creating cache $cache_file" >&6;}
1497   >$cache_file
1498 fi
1499
1500 # Check that the precious variables saved in the cache have kept the same
1501 # value.
1502 ac_cache_corrupted=false
1503 for ac_var in `(set) 2>&1 |
1504                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1505   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1506   eval ac_new_set=\$ac_env_${ac_var}_set
1507   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1508   eval ac_new_val="\$ac_env_${ac_var}_value"
1509   case $ac_old_set,$ac_new_set in
1510     set,)
1511       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1512 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1513       ac_cache_corrupted=: ;;
1514     ,set)
1515       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1516 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1517       ac_cache_corrupted=: ;;
1518     ,);;
1519     *)
1520       if test "x$ac_old_val" != "x$ac_new_val"; then
1521         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1522 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1523         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1524 echo "$as_me:   former value:  $ac_old_val" >&2;}
1525         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1526 echo "$as_me:   current value: $ac_new_val" >&2;}
1527         ac_cache_corrupted=:
1528       fi;;
1529   esac
1530   # Pass precious variables to config.status.
1531   if test "$ac_new_set" = set; then
1532     case $ac_new_val in
1533     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1534       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1535     *) ac_arg=$ac_var=$ac_new_val ;;
1536     esac
1537     case " $ac_configure_args " in
1538       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1539       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1540     esac
1541   fi
1542 done
1543 if $ac_cache_corrupted; then
1544   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1545 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1546   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1547 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1548    { (exit 1); exit 1; }; }
1549 fi
1550
1551 ac_ext=c
1552 ac_cpp='$CPP $CPPFLAGS'
1553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591 # If --target is not used then $target_alias is empty, but if say
1592 # "./configure athlon-pc-freebsd3.5" is used, then all three of
1593 # $build_alias, $host_alias and $target_alias are set to
1594 # "athlon-pc-freebsd3.5".
1595 #
1596 if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then
1597   { { echo "$as_me:$LINENO: error: --target is not appropriate for GMP
1598 Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
1599 explicitly.  Use --host if cross-compiling (see \"Installing GMP\" in the
1600 manual for more on this)." >&5
1601 echo "$as_me: error: --target is not appropriate for GMP
1602 Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
1603 explicitly.  Use --host if cross-compiling (see \"Installing GMP\" in the
1604 manual for more on this)." >&2;}
1605    { (exit 1); exit 1; }; }
1606 fi
1607
1608 gmp_configm4="config.m4"
1609 gmp_tmpconfigm4=cnfm4.tmp
1610 gmp_tmpconfigm4i=cnfm4i.tmp
1611 gmp_tmpconfigm4p=cnfm4p.tmp
1612 rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p
1613
1614 # CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir.
1615 # The pattern here tests for an absolute path the same way as
1616 # _AC_OUTPUT_FILES in autoconf acgeneral.m4.
1617 case $srcdir in
1618 [\\/]* | ?:[\\/]* )  tmp="$srcdir"    ;;
1619 *)                       tmp="../$srcdir" ;;
1620 esac
1621 echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4
1622
1623 # All CPUs use asm-defs.m4
1624 echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i
1625
1626
1627 ac_aux_dir=
1628 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1629   if test -f $ac_dir/install-sh; then
1630     ac_aux_dir=$ac_dir
1631     ac_install_sh="$ac_aux_dir/install-sh -c"
1632     break
1633   elif test -f $ac_dir/install.sh; then
1634     ac_aux_dir=$ac_dir
1635     ac_install_sh="$ac_aux_dir/install.sh -c"
1636     break
1637   elif test -f $ac_dir/shtool; then
1638     ac_aux_dir=$ac_dir
1639     ac_install_sh="$ac_aux_dir/shtool install -c"
1640     break
1641   fi
1642 done
1643 if test -z "$ac_aux_dir"; then
1644   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1645 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1646    { (exit 1); exit 1; }; }
1647 fi
1648 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1649 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1650 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1651
1652 # Make sure we can run config.sub.
1653 $ac_config_sub sun4 >/dev/null 2>&1 ||
1654   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1655 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1656    { (exit 1); exit 1; }; }
1657
1658 echo "$as_me:$LINENO: checking build system type" >&5
1659 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1660 if test "${ac_cv_build+set}" = set; then
1661   echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663   ac_cv_build_alias=$build_alias
1664 test -z "$ac_cv_build_alias" &&
1665   ac_cv_build_alias=`$ac_config_guess`
1666 test -z "$ac_cv_build_alias" &&
1667   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1668 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1669    { (exit 1); exit 1; }; }
1670 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1671   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1673    { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1677 echo "${ECHO_T}$ac_cv_build" >&6
1678 build=$ac_cv_build
1679 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 echo "$as_me:$LINENO: checking host system type" >&5
1685 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1686 if test "${ac_cv_host+set}" = set; then
1687   echo $ECHO_N "(cached) $ECHO_C" >&6
1688 else
1689   ac_cv_host_alias=$host_alias
1690 test -z "$ac_cv_host_alias" &&
1691   ac_cv_host_alias=$ac_cv_build_alias
1692 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1693   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1694 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1695    { (exit 1); exit 1; }; }
1696
1697 fi
1698 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1699 echo "${ECHO_T}$ac_cv_host" >&6
1700 host=$ac_cv_host
1701 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1702 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1703 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1704
1705
1706
1707 am__api_version="1.8"
1708 # Find a good install program.  We prefer a C program (faster),
1709 # so one script is as good as another.  But avoid the broken or
1710 # incompatible versions:
1711 # SysV /etc/install, /usr/sbin/install
1712 # SunOS /usr/etc/install
1713 # IRIX /sbin/install
1714 # AIX /bin/install
1715 # AmigaOS /C/install, which installs bootblocks on floppy discs
1716 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1717 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1718 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1719 # OS/2's system install, which has a completely different semantic
1720 # ./install, which can be erroneously created by make from ./install.sh.
1721 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1722 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1723 if test -z "$INSTALL"; then
1724 if test "${ac_cv_path_install+set}" = set; then
1725   echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 for as_dir in $PATH
1729 do
1730   IFS=$as_save_IFS
1731   test -z "$as_dir" && as_dir=.
1732   # Account for people who put trailing slashes in PATH elements.
1733 case $as_dir/ in
1734   ./ | .// | /cC/* | \
1735   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1736   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1737   /usr/ucb/* ) ;;
1738   *)
1739     # OSF1 and SCO ODT 3.0 have their own names for install.
1740     # Don't use installbsd from OSF since it installs stuff as root
1741     # by default.
1742     for ac_prog in ginstall scoinst install; do
1743       for ac_exec_ext in '' $ac_executable_extensions; do
1744         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1745           if test $ac_prog = install &&
1746             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1747             # AIX install.  It has an incompatible calling convention.
1748             :
1749           elif test $ac_prog = install &&
1750             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1751             # program-specific install script used by HP pwplus--don't use.
1752             :
1753           else
1754             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1755             break 3
1756           fi
1757         fi
1758       done
1759     done
1760     ;;
1761 esac
1762 done
1763
1764
1765 fi
1766   if test "${ac_cv_path_install+set}" = set; then
1767     INSTALL=$ac_cv_path_install
1768   else
1769     # As a last resort, use the slow shell script.  We don't cache a
1770     # path for INSTALL within a source directory, because that will
1771     # break other packages using the cache if that directory is
1772     # removed, or if the path is relative.
1773     INSTALL=$ac_install_sh
1774   fi
1775 fi
1776 echo "$as_me:$LINENO: result: $INSTALL" >&5
1777 echo "${ECHO_T}$INSTALL" >&6
1778
1779 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1780 # It thinks the first close brace ends the variable substitution.
1781 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1782
1783 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1784
1785 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1786
1787 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1788 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1789 # Just in case
1790 sleep 1
1791 echo timestamp > conftest.file
1792 # Do `set' in a subshell so we don't clobber the current shell's
1793 # arguments.  Must try -L first in case configure is actually a
1794 # symlink; some systems play weird games with the mod time of symlinks
1795 # (eg FreeBSD returns the mod time of the symlink's containing
1796 # directory).
1797 if (
1798    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1799    if test "$*" = "X"; then
1800       # -L didn't work.
1801       set X `ls -t $srcdir/configure conftest.file`
1802    fi
1803    rm -f conftest.file
1804    if test "$*" != "X $srcdir/configure conftest.file" \
1805       && test "$*" != "X conftest.file $srcdir/configure"; then
1806
1807       # If neither matched, then we have a broken ls.  This can happen
1808       # if, for instance, CONFIG_SHELL is bash and it inherits a
1809       # broken ls alias from the environment.  This has actually
1810       # happened.  Such a system could not be considered "sane".
1811       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1812 alias in your environment" >&5
1813 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1814 alias in your environment" >&2;}
1815    { (exit 1); exit 1; }; }
1816    fi
1817
1818    test "$2" = conftest.file
1819    )
1820 then
1821    # Ok.
1822    :
1823 else
1824    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1825 Check your system clock" >&5
1826 echo "$as_me: error: newly created file is older than distributed files!
1827 Check your system clock" >&2;}
1828    { (exit 1); exit 1; }; }
1829 fi
1830 echo "$as_me:$LINENO: result: yes" >&5
1831 echo "${ECHO_T}yes" >&6
1832 test "$program_prefix" != NONE &&
1833   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1834 # Use a double $ so make ignores it.
1835 test "$program_suffix" != NONE &&
1836   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1837 # Double any \ or $.  echo might interpret backslashes.
1838 # By default was `s,x,x', remove it if useless.
1839 cat <<\_ACEOF >conftest.sed
1840 s/[\\$]/&&/g;s/;s,x,x,$//
1841 _ACEOF
1842 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1843 rm conftest.sed
1844
1845 # expand $ac_aux_dir to an absolute path
1846 am_aux_dir=`cd $ac_aux_dir && pwd`
1847
1848 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1849 # Use eval to expand $SHELL
1850 if eval "$MISSING --run true"; then
1851   am_missing_run="$MISSING --run "
1852 else
1853   am_missing_run=
1854   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1855 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1856 fi
1857
1858 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1859   # Keeping the `.' argument allows $(mkdir_p) to be used without
1860   # argument.  Indeed, we sometimes output rules like
1861   #   $(mkdir_p) $(somedir)
1862   # where $(somedir) is conditionally defined.
1863   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1864   # expensive solution, as it forces Make to start a sub-shell.)
1865   mkdir_p='mkdir -p -- .'
1866 else
1867   # On NextStep and OpenStep, the `mkdir' command does not
1868   # recognize any option.  It will interpret all options as
1869   # directories to create, and then abort because `.' already
1870   # exists.
1871   for d in ./-p ./--version;
1872   do
1873     test -d $d && rmdir $d
1874   done
1875   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1876   if test -f "$ac_aux_dir/mkinstalldirs"; then
1877     mkdir_p='$(mkinstalldirs)'
1878   else
1879     mkdir_p='$(install_sh) -d'
1880   fi
1881 fi
1882
1883 for ac_prog in gawk mawk nawk awk
1884 do
1885   # Extract the first word of "$ac_prog", so it can be a program name with args.
1886 set dummy $ac_prog; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_AWK+set}" = set; then
1890   echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892   if test -n "$AWK"; then
1893   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1894 else
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1897 do
1898   IFS=$as_save_IFS
1899   test -z "$as_dir" && as_dir=.
1900   for ac_exec_ext in '' $ac_executable_extensions; do
1901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902     ac_cv_prog_AWK="$ac_prog"
1903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904     break 2
1905   fi
1906 done
1907 done
1908
1909 fi
1910 fi
1911 AWK=$ac_cv_prog_AWK
1912 if test -n "$AWK"; then
1913   echo "$as_me:$LINENO: result: $AWK" >&5
1914 echo "${ECHO_T}$AWK" >&6
1915 else
1916   echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918 fi
1919
1920   test -n "$AWK" && break
1921 done
1922
1923 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1924 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1925 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1926 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1927   echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929   cat >conftest.make <<\_ACEOF
1930 all:
1931         @echo 'ac_maketemp="$(MAKE)"'
1932 _ACEOF
1933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1934 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1935 if test -n "$ac_maketemp"; then
1936   eval ac_cv_prog_make_${ac_make}_set=yes
1937 else
1938   eval ac_cv_prog_make_${ac_make}_set=no
1939 fi
1940 rm -f conftest.make
1941 fi
1942 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1943   echo "$as_me:$LINENO: result: yes" >&5
1944 echo "${ECHO_T}yes" >&6
1945   SET_MAKE=
1946 else
1947   echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949   SET_MAKE="MAKE=${MAKE-make}"
1950 fi
1951
1952 rm -rf .tst 2>/dev/null
1953 mkdir .tst 2>/dev/null
1954 if test -d .tst; then
1955   am__leading_dot=.
1956 else
1957   am__leading_dot=_
1958 fi
1959 rmdir .tst 2>/dev/null
1960
1961 # test to see if srcdir already configured
1962 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1963    test -f $srcdir/config.status; then
1964   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1965 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1966    { (exit 1); exit 1; }; }
1967 fi
1968
1969 # test whether we have cygpath
1970 if test -z "$CYGPATH_W"; then
1971   if (cygpath --version) >/dev/null 2>/dev/null; then
1972     CYGPATH_W='cygpath -w'
1973   else
1974     CYGPATH_W=echo
1975   fi
1976 fi
1977
1978
1979 # Define the identity of the package.
1980  PACKAGE='gmp'
1981  VERSION='4.2.1'
1982
1983
1984 cat >>confdefs.h <<_ACEOF
1985 #define PACKAGE "$PACKAGE"
1986 _ACEOF
1987
1988
1989 cat >>confdefs.h <<_ACEOF
1990 #define VERSION "$VERSION"
1991 _ACEOF
1992
1993 # Some tools Automake needs.
1994
1995 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1996
1997
1998 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1999
2000
2001 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2002
2003
2004 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2005
2006
2007 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2008
2009
2010 AMTAR=${AMTAR-"${am_missing_run}tar"}
2011
2012 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2013
2014 # Installed binaries are usually stripped using `strip' when the user
2015 # run `make install-strip'.  However `strip' might not be the right
2016 # tool to use in cross-compilation environments, therefore Automake
2017 # will honor the `STRIP' environment variable to overrule this program.
2018 if test "$cross_compiling" != no; then
2019   if test -n "$ac_tool_prefix"; then
2020   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2021 set dummy ${ac_tool_prefix}strip; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_STRIP+set}" = set; then
2025   echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027   if test -n "$STRIP"; then
2028   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2029 else
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2032 do
2033   IFS=$as_save_IFS
2034   test -z "$as_dir" && as_dir=.
2035   for ac_exec_ext in '' $ac_executable_extensions; do
2036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039     break 2
2040   fi
2041 done
2042 done
2043
2044 fi
2045 fi
2046 STRIP=$ac_cv_prog_STRIP
2047 if test -n "$STRIP"; then
2048   echo "$as_me:$LINENO: result: $STRIP" >&5
2049 echo "${ECHO_T}$STRIP" >&6
2050 else
2051   echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2053 fi
2054
2055 fi
2056 if test -z "$ac_cv_prog_STRIP"; then
2057   ac_ct_STRIP=$STRIP
2058   # Extract the first word of "strip", so it can be a program name with args.
2059 set dummy strip; ac_word=$2
2060 echo "$as_me:$LINENO: checking for $ac_word" >&5
2061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2062 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2063   echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065   if test -n "$ac_ct_STRIP"; then
2066   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2067 else
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 for as_dir in $PATH
2070 do
2071   IFS=$as_save_IFS
2072   test -z "$as_dir" && as_dir=.
2073   for ac_exec_ext in '' $ac_executable_extensions; do
2074   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2075     ac_cv_prog_ac_ct_STRIP="strip"
2076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077     break 2
2078   fi
2079 done
2080 done
2081
2082   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2083 fi
2084 fi
2085 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2086 if test -n "$ac_ct_STRIP"; then
2087   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2088 echo "${ECHO_T}$ac_ct_STRIP" >&6
2089 else
2090   echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2092 fi
2093
2094   STRIP=$ac_ct_STRIP
2095 else
2096   STRIP="$ac_cv_prog_STRIP"
2097 fi
2098
2099 fi
2100 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2101
2102 # We need awk for the "check" target.  The system "awk" is bad on
2103 # some platforms.
2104
2105
2106
2107           ac_config_headers="$ac_config_headers config.h:config.in"
2108
2109 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2110 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2111     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2112 if test "${enable_maintainer_mode+set}" = set; then
2113   enableval="$enable_maintainer_mode"
2114   USE_MAINTAINER_MODE=$enableval
2115 else
2116   USE_MAINTAINER_MODE=no
2117 fi;
2118   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2119 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2120
2121
2122 if test $USE_MAINTAINER_MODE = yes; then
2123   MAINTAINER_MODE_TRUE=
2124   MAINTAINER_MODE_FALSE='#'
2125 else
2126   MAINTAINER_MODE_TRUE='#'
2127   MAINTAINER_MODE_FALSE=
2128 fi
2129
2130   MAINT=$MAINTAINER_MODE_TRUE
2131
2132
2133
2134
2135 # Check whether --enable-assert or --disable-assert was given.
2136 if test "${enable_assert+set}" = set; then
2137   enableval="$enable_assert"
2138   case $enableval in
2139 yes|no) ;;
2140 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-assert, need yes or no" >&5
2141 echo "$as_me: error: bad value $enableval for --enable-assert, need yes or no" >&2;}
2142    { (exit 1); exit 1; }; } ;;
2143 esac
2144 else
2145   enable_assert=no
2146 fi;
2147
2148 if test "$enable_assert" = "yes"; then
2149
2150 cat >>confdefs.h <<\_ACEOF
2151 #define WANT_ASSERT 1
2152 _ACEOF
2153
2154   want_assert_01=1
2155 else
2156   want_assert_01=0
2157 fi
2158
2159 echo "define(<WANT_ASSERT>,$want_assert_01)" >> $gmp_tmpconfigm4
2160
2161
2162
2163 # Check whether --enable-alloca or --disable-alloca was given.
2164 if test "${enable_alloca+set}" = set; then
2165   enableval="$enable_alloca"
2166   case $enableval in
2167 alloca|malloc-reentrant|malloc-notreentrant) ;;
2168 yes|no|reentrant|notreentrant) ;;
2169 debug) ;;
2170 *)
2171   { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-alloca, need one of:
2172 yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" >&5
2173 echo "$as_me: error: bad value $enableval for --enable-alloca, need one of:
2174 yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" >&2;}
2175    { (exit 1); exit 1; }; } ;;
2176 esac
2177 else
2178   enable_alloca=reentrant
2179 fi;
2180
2181
2182 # IMPROVE ME: The default for C++ is disabled.  The tests currently
2183 # performed below for a working C++ compiler are not particularly strong,
2184 # and in general can't be expected to get the right setup on their own.  The
2185 # most significant problem is getting the ABI the same.  Defaulting CXXFLAGS
2186 # to CFLAGS takes only a small step towards this.  It's also probably worth
2187 # worrying whether the C and C++ runtimes from say gcc and a vendor C++ can
2188 # work together.  Some rather broken C++ installations were encountered
2189 # during testing, and though such things clearly aren't GMP's problem, if
2190 # --enable-cxx=detect were to be the default then some careful checks of
2191 # which, if any, C++ compiler on the system is up to scratch would be
2192 # wanted.
2193 #
2194 # Check whether --enable-cxx or --disable-cxx was given.
2195 if test "${enable_cxx+set}" = set; then
2196   enableval="$enable_cxx"
2197   case $enableval in
2198 yes|no|detect) ;;
2199 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cxx, need yes/no/detect" >&5
2200 echo "$as_me: error: bad value $enableval for --enable-cxx, need yes/no/detect" >&2;}
2201    { (exit 1); exit 1; }; } ;;
2202 esac
2203 else
2204   enable_cxx=no
2205 fi;
2206
2207
2208 # Check whether --enable-fft or --disable-fft was given.
2209 if test "${enable_fft+set}" = set; then
2210   enableval="$enable_fft"
2211   case $enableval in
2212 yes|no) ;;
2213 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-fft, need yes or no" >&5
2214 echo "$as_me: error: bad value $enableval for --enable-fft, need yes or no" >&2;}
2215    { (exit 1); exit 1; }; } ;;
2216 esac
2217 else
2218   enable_fft=yes
2219 fi;
2220
2221 if test "$enable_fft" = "yes"; then
2222
2223 cat >>confdefs.h <<\_ACEOF
2224 #define WANT_FFT 1
2225 _ACEOF
2226
2227 fi
2228
2229
2230 # Check whether --enable-mpbsd or --disable-mpbsd was given.
2231 if test "${enable_mpbsd+set}" = set; then
2232   enableval="$enable_mpbsd"
2233   case $enableval in
2234 yes|no) ;;
2235 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-mpbsd, need yes or no" >&5
2236 echo "$as_me: error: bad value $enableval for --enable-mpbsd, need yes or no" >&2;}
2237    { (exit 1); exit 1; }; } ;;
2238 esac
2239 else
2240   enable_mpbsd=no
2241 fi;
2242
2243
2244 if test "$enable_mpbsd" = "yes"; then
2245   WANT_MPBSD_TRUE=
2246   WANT_MPBSD_FALSE='#'
2247 else
2248   WANT_MPBSD_TRUE='#'
2249   WANT_MPBSD_FALSE=
2250 fi
2251
2252
2253
2254 # Check whether --enable-nails or --disable-nails was given.
2255 if test "${enable_nails+set}" = set; then
2256   enableval="$enable_nails"
2257   case $enableval in
2258 yes|no|[0-9]|[0-9][0-9]) ;;
2259 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-nails, need yes/no/number" >&5
2260 echo "$as_me: error: bad value $enableval for --enable-nails, need yes/no/number" >&2;}
2261    { (exit 1); exit 1; }; } ;;
2262 esac
2263 else
2264   enable_nails=no
2265 fi;
2266
2267 case $enable_nails in
2268 yes) GMP_NAIL_BITS=2 ;;
2269 no)  GMP_NAIL_BITS=0 ;;
2270 *)   GMP_NAIL_BITS=$enable_nails ;;
2271 esac
2272
2273
2274
2275 # Check whether --enable-profiling or --disable-profiling was given.
2276 if test "${enable_profiling+set}" = set; then
2277   enableval="$enable_profiling"
2278   case $enableval in
2279 no|prof|gprof|instrument) ;;
2280 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" >&5
2281 echo "$as_me: error: bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" >&2;}
2282    { (exit 1); exit 1; }; } ;;
2283 esac
2284 else
2285   enable_profiling=no
2286 fi;
2287
2288 case $enable_profiling in
2289   prof)
2290
2291 cat >>confdefs.h <<\_ACEOF
2292 #define WANT_PROFILING_PROF 1
2293 _ACEOF
2294
2295     ;;
2296   gprof)
2297
2298 cat >>confdefs.h <<\_ACEOF
2299 #define WANT_PROFILING_GPROF 1
2300 _ACEOF
2301
2302     ;;
2303   instrument)
2304
2305 cat >>confdefs.h <<\_ACEOF
2306 #define WANT_PROFILING_INSTRUMENT 1
2307 _ACEOF
2308
2309     ;;
2310 esac
2311
2312
2313 echo "define(<WANT_PROFILING>,<\`$enable_profiling'>)" >> $gmp_tmpconfigm4
2314
2315
2316 # -fomit-frame-pointer is incompatible with -pg on some chips
2317 if test "$enable_profiling" = gprof; then
2318   fomit_frame_pointer=
2319 else
2320   fomit_frame_pointer="-fomit-frame-pointer"
2321 fi
2322
2323
2324
2325 # Check whether --with-readline or --without-readline was given.
2326 if test "${with_readline+set}" = set; then
2327   withval="$with_readline"
2328   case $withval in
2329 yes|no|detect) ;;
2330 *) { { echo "$as_me:$LINENO: error: bad value $withval for --with-readline, need yes/no/detect" >&5
2331 echo "$as_me: error: bad value $withval for --with-readline, need yes/no/detect" >&2;}
2332    { (exit 1); exit 1; }; } ;;
2333 esac
2334 else
2335   with_readline=detect
2336 fi;
2337
2338
2339 # Check whether --enable-fat or --disable-fat was given.
2340 if test "${enable_fat+set}" = set; then
2341   enableval="$enable_fat"
2342   case $enableval in
2343 yes|no) ;;
2344 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-fat, need yes or no" >&5
2345 echo "$as_me: error: bad value $enableval for --enable-fat, need yes or no" >&2;}
2346    { (exit 1); exit 1; }; } ;;
2347 esac
2348 else
2349   enable_fat=no
2350 fi;
2351
2352
2353
2354 tmp_host=`echo $host_cpu | sed 's/\./_/'`
2355 cat >>confdefs.h <<_ACEOF
2356 #define HAVE_HOST_CPU_$tmp_host 1
2357 _ACEOF
2358
2359
2360 echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p
2361
2362
2363
2364
2365
2366
2367
2368 # Table of compilers, options, and mpn paths.  This code has various related
2369 # purposes
2370 #
2371 #   - better default CC/CFLAGS selections than autoconf otherwise gives
2372 #   - default CC/CFLAGS selections for extra CPU types specific to GMP
2373 #   - a few tests for known bad compilers
2374 #   - choice of ABIs on suitable systems
2375 #   - selection of corresponding mpn search path
2376 #
2377 # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is
2378 # called.  User selections of CC etc are respected.
2379 #
2380 # Care is taken not to use macros like AC_TRY_COMPILE during the GMP
2381 # pre-testing, since they of course depend on AC_PROG_CC, and also some of
2382 # them cache their results, which is not wanted.
2383 #
2384 # The ABI selection mechanism is unique to GMP.  All that reaches autoconf
2385 # is a different selection of CC/CFLAGS according to the best ABI the system
2386 # supports, and/or what the user selects.  Naturally the mpn assembler code
2387 # selected is very dependent on the ABI.
2388 #
2389 # The closest the standard tools come to a notion of ABI is something like
2390 # "sparc64" which encodes a CPU and an ABI together.  This doesn't seem to
2391 # scale well for GMP, where exact CPU types like "ultrasparc2" are wanted,
2392 # separate from the ABI used on them.
2393 #
2394 #
2395 # The variables set here are
2396 #
2397 #   cclist              the compiler choices
2398 #   xx_cflags           flags for compiler xx
2399 #   xx_cflags_maybe     flags for compiler xx, if they work
2400 #   xx_cppflags         cpp flags for compiler xx
2401 #   xx_cflags_optlist   list of sets of optional flags
2402 #   xx_cflags_yyy       set yyy of optional flags for compiler xx
2403 #   xx_ldflags          -Wc,-foo flags for libtool linking with compiler xx
2404 #   ar_flags            extra flags for $AR
2405 #   nm_flags            extra flags for $NM
2406 #   limb                limb size, can be "longlong"
2407 #   path                mpn search path
2408 #   extra_functions     extra mpn functions
2409 #   fat_path            fat binary mpn search path [if fat binary desired]
2410 #   fat_functions       fat functions
2411 #   fat_thresholds      fat thresholds
2412 #
2413 # Suppose xx_cflags_optlist="arch", then flags from $xx_cflags_arch are
2414 # tried, and the first flag that works will be used.  An optlist like "arch
2415 # cpu optimize" can be used to get multiple independent sets of flags tried.
2416 # The first that works from each will be used.  If no flag in a set works
2417 # then nothing from that set is added.
2418 #
2419 # For multiple ABIs, the scheme extends as follows.
2420 #
2421 #   abilist               set of ABI choices
2422 #   cclist_aa             compiler choices in ABI aa
2423 #   xx_aa_cflags          flags for xx in ABI aa
2424 #   xx_aa_cflags_maybe    flags for xx in ABI aa, if they work
2425 #   xx_aa_cppflags        cpp flags for xx in ABI aa
2426 #   xx_aa_cflags_optlist  list of sets of optional flags in ABI aa
2427 #   xx_aa_cflags_yyy      set yyy of optional flags for compiler xx in ABI aa
2428 #   xx_aa_ldflags         -Wc,-foo flags for libtool linking
2429 #   ar_aa_flags           extra flags for $AR in ABI aa
2430 #   nm_aa_flags           extra flags for $NM in ABI aa
2431 #   limb_aa               limb size in ABI aa, can be "longlong"
2432 #   path_aa               mpn search path in ABI aa
2433 #   extra_functions_aa    extra mpn functions in ABI aa
2434 #
2435 # As a convenience, the unadorned xx_cflags (etc) are used for the last ABI
2436 # in ablist, if an xx_aa_cflags for that ABI isn't given.  For example if
2437 # abilist="64 32" then $cc_64_cflags will be used for the 64-bit ABI, but
2438 # for the 32-bit either $cc_32_cflags or $cc_cflags is used, whichever is
2439 # defined.  This makes it easy to add some 64-bit compilers and flags to an
2440 # unadorned 32-bit set.
2441 #
2442 # limb=longlong (or limb_aa=longlong) applies to all compilers within that
2443 # ABI.  It won't work to have some needing long long and some not, since a
2444 # single instantiated gmp.h will be used by both.
2445 #
2446 # SPEED_CYCLECOUNTER, cyclecounter_size and CALLING_CONVENTIONS_OBJS are
2447 # also set here, with an ABI suffix.
2448 #
2449 #
2450 #
2451 # A table-driven approach like this to mapping cpu type to good compiler
2452 # options is a bit of a maintenance burden, but there's not much uniformity
2453 # between options specifications on different compilers.  Some sort of
2454 # separately updatable tool might be cute.
2455 #
2456 # The use of lots of variables like this, direct and indirect, tends to
2457 # obscure when and how various things are done, but unfortunately it's
2458 # pretty much the only way.  If shell subroutines were portable then actual
2459 # code like "if this .. do that" could be written, but attempting the same
2460 # with full copies of GMP_PROG_CC_WORKS etc expanded at every point would
2461 # hugely bloat the output.
2462
2463
2464
2465
2466 # abilist needs to be non-empty, "standard" is just a generic name here
2467 abilist="standard"
2468
2469 # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring
2470 # c89 over cc here.  But note that on HP-UX c89 provides a castrated
2471 # environment, and would want to be excluded somehow.  Maybe
2472 # AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and
2473 # we don't need to worry.
2474 #
2475 cclist="gcc cc"
2476
2477 gcc_cflags="-O3"
2478 gcc_64_cflags="-O3"
2479 cc_cflags="-O"
2480 cc_64_cflags="-O"
2481
2482 SPEED_CYCLECOUNTER_OBJ=
2483 cyclecounter_size=2
2484
2485 HAVE_HOST_CPU_FAMILY_power=0
2486
2487 HAVE_HOST_CPU_FAMILY_powerpc=0
2488
2489
2490 case $host in
2491
2492   a29k*-*-*)
2493     path="a29k"
2494     ;;
2495
2496
2497   alpha*-*-*)
2498     cat >>confdefs.h <<\_ACEOF
2499 #define HAVE_HOST_CPU_FAMILY_alpha 1
2500 _ACEOF
2501
2502     case $host_cpu in
2503       alphaev5* | alphapca5*) path="alpha/ev5 alpha" ;;
2504       alphaev67 | alphaev68 | alphaev7*)
2505         path="alpha/ev67 alpha/ev6 alpha/ev5 alpha" ;;
2506       alphaev6* | alphaev7*)  path="alpha/ev6 alpha/ev5 alpha" ;;
2507       *)                      path="alpha" ;;
2508     esac
2509     extra_functions="cntlz"
2510     gcc_cflags_optlist="asm cpu oldas" # need asm ahead of cpu, see below
2511     gcc_cflags_oldas="-Wa,-oldas"     # see GMP_GCC_WA_OLDAS.
2512
2513     # gcc 2.7.2.3 doesn't know any -mcpu= for alpha, apparently.
2514     # gcc 2.95 knows -mcpu= ev4, ev5, ev56, pca56, ev6.
2515     # gcc 3.0 adds nothing.
2516     # gcc 3.1 adds ev45, ev67 (but ev45 is the same as ev4).
2517     # gcc 3.2 adds nothing.
2518     #
2519     # gcc version "2.9-gnupro-99r1" under "-O2 -mcpu=ev6" strikes internal
2520     # compiler errors too easily and is rejected by GMP_PROG_CC_WORKS.  Each
2521     # -mcpu=ev6 below has a fallback to -mcpu=ev56 for this reason.
2522     #
2523     case $host_cpu in
2524       alpha)        gcc_cflags_cpu="-mcpu=ev4" ;;
2525       alphaev5)     gcc_cflags_cpu="-mcpu=ev5" ;;
2526       alphaev56)    gcc_cflags_cpu="-mcpu=ev56" ;;
2527       alphapca56 | alphapca57)
2528                     gcc_cflags_cpu="-mcpu=pca56" ;;
2529       alphaev6)     gcc_cflags_cpu="-mcpu=ev6 -mcpu=ev56" ;;
2530       alphaev67 | alphaev68 | alphaev7*)
2531                     gcc_cflags_cpu="-mcpu=ev67 -mcpu=ev6 -mcpu=ev56" ;;
2532     esac
2533
2534     # gcc version "2.9-gnupro-99r1" on alphaev68-dec-osf5.1 has been seen
2535     # accepting -mcpu=ev6, but not putting the assembler in the right mode
2536     # for what it produces.  We need to do this for it, and need to do it
2537     # before testing the -mcpu options.
2538     #
2539     # On old versions of gcc, which don't know -mcpu=, we believe an
2540     # explicit -Wa,-mev5 etc will be necessary to put the assembler in
2541     # the right mode for our .asm files and longlong.h asm blocks.
2542     #
2543     # On newer versions of gcc, when -mcpu= is known, we must give a -Wa
2544     # which is at least as high as the code gcc will generate.  gcc
2545     # establishes what it needs with a ".arch" directive, our command line
2546     # option seems to override that.
2547     #
2548     # gas prior to 2.14 doesn't accept -mev67, but -mev6 seems enough for
2549     # ctlz and cttz (in 2.10.0 at least).
2550     #
2551     # OSF `as' accepts ev68 but stupidly treats it as ev4.  -arch only seems
2552     # to affect insns like ldbu which are expanded as macros when necessary.
2553     # Insns like ctlz which were never available as macros are always
2554     # accepted and always generate their plain code.
2555     #
2556     case $host_cpu in
2557       alpha)        gcc_cflags_asm="-Wa,-arch,ev4 -Wa,-mev4" ;;
2558       alphaev5)     gcc_cflags_asm="-Wa,-arch,ev5 -Wa,-mev5" ;;
2559       alphaev56)    gcc_cflags_asm="-Wa,-arch,ev56 -Wa,-mev56" ;;
2560       alphapca56 | alphapca57)
2561                     gcc_cflags_asm="-Wa,-arch,pca56 -Wa,-mpca56" ;;
2562       alphaev6)     gcc_cflags_asm="-Wa,-arch,ev6 -Wa,-mev6" ;;
2563       alphaev67 | alphaev68 | alphaev7*)
2564                     gcc_cflags_asm="-Wa,-arch,ev67 -Wa,-mev67 -Wa,-arch,ev6 -Wa,-mev6" ;;
2565     esac
2566
2567     # It might be better to ask "cc" whether it's Cray C or DEC C,
2568     # instead of relying on the OS part of $host.  But it's hard to
2569     # imagine either of those compilers anywhere except their native
2570     # systems.
2571     #
2572
2573 echo "include_mpn(\`alpha/alpha-defs.m4')" >> $gmp_tmpconfigm4i
2574
2575     case $host in
2576       *-cray-unicos*)
2577         cc_cflags="-O"          # no -g, it silently disables all optimizations
2578
2579 echo "include_mpn(\`alpha/unicos.m4')" >> $gmp_tmpconfigm4i
2580
2581         # Don't perform any assembly syntax tests on this beast.
2582         gmp_asm_syntax_testing=no
2583         ;;
2584       *-*-osf*)
2585
2586 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
2587
2588         cc_cflags=""
2589         cc_cflags_optlist="opt cpu"
2590
2591         # not sure if -fast works on old versions, so make it optional
2592         cc_cflags_opt="-fast -O2"
2593
2594         # DEC C V5.9-005 knows ev4, ev5, ev56, pca56, ev6.
2595         # Compaq C V6.3-029 adds ev67.
2596         #
2597         case $host_cpu in
2598           alpha)       cc_cflags_cpu="-arch~ev4~-tune~ev4" ;;
2599           alphaev5)    cc_cflags_cpu="-arch~ev5~-tune~ev5" ;;
2600           alphaev56)   cc_cflags_cpu="-arch~ev56~-tune~ev56" ;;
2601           alphapca56 | alphapca57)
2602             cc_cflags_cpu="-arch~pca56~-tune~pca56" ;;
2603           alphaev6)    cc_cflags_cpu="-arch~ev6~-tune~ev6" ;;
2604           alphaev67 | alphaev68 | alphaev7*)
2605             cc_cflags_cpu="-arch~ev67~-tune~ev67 -arch~ev6~-tune~ev6" ;;
2606         esac
2607         ;;
2608       *)
2609
2610 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
2611
2612         ;;
2613     esac
2614
2615     case $host in
2616       *-*-unicos*)
2617         # tune/alpha.asm assumes int==4bytes but unicos uses int==8bytes
2618         ;;
2619       *)
2620         SPEED_CYCLECOUNTER_OBJ=alpha.lo
2621         cyclecounter_size=1 ;;
2622     esac
2623     ;;
2624
2625
2626   # Cray vector machines.
2627   # This must come after alpha* so that we can recognize present and future
2628   # vector processors with a wildcard.
2629   *-cray-unicos*)
2630     gmp_asm_syntax_testing=no
2631     cclist="cc"
2632     # We used to have -hscalar0 here as a workaround for miscompilation of
2633     # mpz/import.c, but let's hope Cray fixes their bugs instead, since
2634     # -hscalar0 causes disastrously poor code to be generated.
2635     cc_cflags="-O3 -hnofastmd -htask0 -Wa,-B"
2636     path="cray"
2637     ;;
2638
2639
2640   arm*-*-*)
2641     path="arm"
2642     gcc_cflags="$gcc_cflags $fomit_frame_pointer"
2643     gcc_testlist="gcc-arm-umodsi"
2644
2645 echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i
2646
2647     ;;
2648
2649
2650   clipper*-*-*)
2651     path="clipper"
2652     ;;
2653
2654
2655   # Fujitsu
2656   f30[01]-fujitsu-sysv*)
2657     cclist="gcc vcc"
2658     # FIXME: flags for vcc?
2659     vcc_cflags="-g"
2660     path="fujitsu"
2661     ;;
2662
2663
2664   hppa*-*-*)
2665     # HP cc (the one sold separately) is K&R by default, but AM_C_PROTOTYPES
2666     # will add "-Ae", or "-Aa -D_HPUX_SOURCE", to put it into ansi mode, if
2667     # possible.
2668     #
2669     # gcc for hppa 2.0 can be built either for 2.0n (32-bit) or 2.0w
2670     # (64-bit), but not both, so there's no option to choose the desired
2671     # mode, we must instead detect which of the two it is.  This is done by
2672     # checking sizeof(long), either 4 or 8 bytes respectively.  Do this in
2673     # ABI=1.0 too, in case someone tries to build that with a 2.0w gcc.
2674     #
2675     gcc_cflags="-O2"
2676     gcc_cflags_optlist="arch"
2677     gcc_testlist="sizeof-long-4"
2678     SPEED_CYCLECOUNTER_OBJ=hppa.lo
2679     cyclecounter_size=1
2680
2681     # FIXME: For hppa2.0*, path should be "pa32/hppa2_0 pa32/hppa1_1 pa32".
2682     # (Can't remember why this isn't done already, have to check what .asm
2683     # files are available in each and how they run on a typical 2.0 cpu.)
2684     #
2685     case $host_cpu in
2686       hppa1.0*)    path="pa32" ;;
2687       hppa7000*)   path="pa32/hppa1_1 pa32" ;;
2688       hppa2.0* | hppa64)
2689                    path="pa32/hppa2_0 pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
2690       *)           # default to 7100
2691                    path="pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
2692     esac
2693
2694     # gcc 2.7.2.3 knows -mpa-risc-1-0 and -mpa-risc-1-1
2695     # gcc 2.95 adds -mpa-risc-2-0, plus synonyms -march=1.0, 1.1 and 2.0
2696     #
2697     # We don't use -mpa-risc-2-0 in ABI=1.0 because 64-bit registers may not
2698     # be saved by the kernel on an old system.  Actually gcc (as of 3.2)
2699     # only adds a few float instructions with -mpa-risc-2-0, so it would
2700     # probably be safe, but let's not take the chance.  In any case, a
2701     # configuration like --host=hppa2.0 ABI=1.0 is far from optimal.
2702     #
2703     case $host_cpu in
2704       hppa1.0*)           gcc_cflags_arch="-mpa-risc-1-0" ;;
2705       *)                  # default to 7100
2706                           gcc_cflags_arch="-mpa-risc-1-1" ;;
2707     esac
2708
2709     case $host_cpu in
2710       hppa1.0*)    cc_cflags="+O2" ;;
2711       *)           # default to 7100
2712                    cc_cflags="+DA1.1 +O2" ;;
2713     esac
2714
2715     case $host in
2716       hppa2.0*-*-* | hppa64-*-*)
2717         cclist_20n="gcc cc"
2718         abilist="2.0n 1.0"
2719         path_20n="pa64"
2720         limb_20n=longlong
2721         any_20n_testlist="sizeof-long-4"
2722         SPEED_CYCLECOUNTER_OBJ_20n=hppa2.lo
2723         cyclecounter_size_20n=2
2724
2725         # -mpa-risc-2-0 is only an optional flag, in case an old gcc is
2726         # used.  Assembler support for 2.0 is essential though, for our asm
2727         # files.
2728         gcc_20n_cflags="-O2"
2729         gcc_20n_cflags_optlist="arch"
2730         gcc_20n_cflags_arch="-mpa-risc-2-0 -mpa-risc-1-1"
2731         gcc_20n_testlist="sizeof-long-4 hppa-level-2.0"
2732
2733         cc_20n_cflags="+DA2.0 +e +O2 -Wl,+vnocompatwarnings"
2734         cc_20n_testlist="hpc-hppa-2-0"
2735
2736         # ABI=2.0w is available for hppa2.0w and hppa2.0, but not for
2737         # hppa2.0n, on the assumption that that the latter indicates a
2738         # desire for ABI=2.0n.
2739         case $host in
2740         hppa2.0n-*-*) ;;
2741         *)
2742           # HPUX 10 and earlier cannot run 2.0w.  Not sure about other
2743           # systems (GNU/Linux for instance), but lets assume they're ok.
2744           case $host in
2745             *-*-hpux[1-9] | *-*-hpux[1-9].* | *-*-hpux10 | *-*-hpux10.*) ;;
2746             *)    abilist="2.0w $abilist" ;;
2747           esac
2748
2749           cclist_20w="gcc cc"
2750           gcc_20w_cflags="-O2 -mpa-risc-2-0"
2751           cc_20w_cflags="+DD64 +O2"
2752           cc_20w_testlist="hpc-hppa-2-0"
2753           path_20w="pa64"
2754           any_20w_testlist="sizeof-long-8"
2755           SPEED_CYCLECOUNTER_OBJ_20w=hppa2w.lo
2756           cyclecounter_size_20w=2
2757           ;;
2758         esac
2759         ;;
2760     esac
2761     ;;
2762
2763
2764   i960*-*-*)
2765     path="i960"
2766     ;;
2767
2768
2769   ia64*-*-* | itanium-*-* | itanium2-*-*)
2770     abilist="64"
2771
2772 echo "include_mpn(\`ia64/ia64-defs.m4')" >> $gmp_tmpconfigm4i
2773
2774     SPEED_CYCLECOUNTER_OBJ=ia64.lo
2775
2776     case $host_cpu in
2777       itanium)   path="ia64/itanium  ia64" ;;
2778       itanium2)  path="ia64/itanium2 ia64" ;;
2779       *)         path="ia64" ;;
2780     esac
2781
2782     gcc_64_cflags_optlist="tune"
2783     gcc_32_cflags_optlist=$gcc_64_cflags_optlist
2784
2785     # gcc pre-release 3.4 adds -mtune itanium and itanium2
2786     case $host_cpu in
2787       itanium)   gcc_cflags_tune="-mtune=itanium" ;;
2788       itanium2)  gcc_cflags_tune="-mtune=itanium2" ;;
2789     esac
2790
2791     case $host in
2792       *-*-linux*)
2793         cclist="gcc icc"
2794         icc_cflags="-no-gcc"
2795         icc_cflags_optlist="opt"
2796         # FIXME: Check if -O3 is really right.  The manual warns it is for
2797         # large data sets, for which GMP uses assembly loops.
2798         icc_cflags_opt="-O3 -O2 -O1"
2799         ;;
2800
2801       *-*-hpux*)
2802         # HP cc sometimes gets internal errors if the optimization level is
2803         # too high.  GMP_PROG_CC_WORKS detects this, the "_opt" fallbacks
2804         # let us use whatever seems to work.
2805         #
2806         abilist="32 64"
2807
2808         cclist_32="gcc cc"
2809         path_32="ia64"
2810         cc_32_cflags=""
2811         cc_32_cflags_optlist="opt"
2812         cc_32_cflags_opt="+O3 +O2 +O1"
2813         gcc_32_cflags="-milp32 -O2"
2814         limb_32=longlong
2815         SPEED_CYCLECOUNTER_OBJ_32=ia64.lo
2816         cyclecounter_size_32=2
2817
2818         # Must have +DD64 in CPPFLAGS to get the right __LP64__ for headers,
2819         # but also need it in CFLAGS for linking programs, since automake
2820         # only uses CFLAGS when linking, not CPPFLAGS.
2821         # FIXME: Maybe should use cc_64_ldflags for this, but that would
2822         # need GMP_LDFLAGS used consistently by all the programs.
2823         #
2824         cc_64_cflags="+DD64"
2825         cc_64_cppflags="+DD64"
2826         cc_64_cflags_optlist="opt"
2827         cc_64_cflags_opt="+O3 +O2 +O1"
2828         gcc_64_cflags="-mlp64 -O2"
2829         ;;
2830     esac
2831     ;;
2832
2833
2834   # Motorola 68k
2835   #
2836   m68k-*-* | m68[0-9][0-9][0-9]-*-*)
2837     cat >>confdefs.h <<\_ACEOF
2838 #define HAVE_HOST_CPU_FAMILY_m68k 1
2839 _ACEOF
2840
2841
2842 echo "include_mpn(\`m68k/m68k-defs.m4')" >> $gmp_tmpconfigm4i
2843
2844     gcc_cflags="-O2 $fomit_frame_pointer"
2845     gcc_cflags_optlist="arch"
2846
2847     # gcc 2.7.2 knows -m68000, -m68020, -m68030, -m68040.
2848     # gcc 2.95 adds -mcpu32, -m68060.
2849     # FIXME: Maybe "-m68020 -mnobitfield" would suit cpu32 on 2.7.2.
2850     #
2851     case $host_cpu in
2852     m68020)  gcc_cflags_arch="-m68020" ;;
2853     m68030)  gcc_cflags_arch="-m68030" ;;
2854     m68040)  gcc_cflags_arch="-m68040" ;;
2855     m68060)  gcc_cflags_arch="-m68060 -m68000" ;;
2856     m68360)  gcc_cflags_arch="-mcpu32 -m68000" ;;
2857     *)       gcc_cflags_arch="-m68000" ;;
2858     esac
2859
2860     # FIXME: m68k/mc68020 looks like it's ok for cpu32, but this wants to be
2861     # tested.  Will need to introduce an m68k/cpu32 if m68k/mc68020 ever uses
2862     # the bitfield instructions.
2863     case $host_cpu in
2864     m680[234]0 | m68360)  path="m68k/mc68020 m68k" ;;
2865     *)                      path="m68k" ;;
2866     esac
2867     ;;
2868
2869
2870   # Motorola 88k
2871   m88k*-*-*)
2872     path="m88k"
2873     ;;
2874   m88110*-*-*)
2875     # FIXME: Use `-O2'?
2876     gcc_cflags="-O -m88110"
2877     path="m88k/mc88110 m88k"
2878     ;;
2879
2880
2881   # National Semiconductor 32k
2882   ns32k*-*-*)
2883     path="ns32k"
2884     ;;
2885
2886
2887   # IRIX 5 and earlier can only run 32-bit o32.
2888   #
2889   # IRIX 6 and up always has a 64-bit mips CPU can run n32 or 64.  n32 is
2890   # preferred over 64, but only because that's been the default in past
2891   # versions of GMP.  The two are equally efficient.
2892   #
2893   # Linux kernel 2.2.13 arch/mips/kernel/irixelf.c has a comment about not
2894   # supporting n32 or 64.
2895   #
2896   # For reference, libtool (eg. 1.5.6) recognises the n32 ABI and knows the
2897   # right options to use when linking (both cc and gcc), so no need for
2898   # anything special from us.
2899   #
2900   mips*-*-*)
2901     abilist="o32"
2902     gcc_cflags_optlist="abi"
2903     gcc_cflags_abi="-mabi=32"
2904     gcc_testlist="gcc-mips-o32"
2905     path="mips32"
2906     cc_cflags="-O2 -o32"   # no -g, it disables all optimizations
2907     # this suits both mips32 and mips64
2908
2909 echo "include_mpn(\`mips32/mips-defs.m4')" >> $gmp_tmpconfigm4i
2910
2911
2912     case $host in
2913       mips64*-*-* | mips*-*-irix[6789]*)
2914         abilist="n32 64 o32"
2915
2916         cclist_n32="gcc cc"
2917         gcc_n32_cflags="-O2 -mabi=n32"
2918         cc_n32_cflags="-O2 -n32"        # no -g, it disables all optimizations
2919         limb_n32=longlong
2920         path_n32="mips64"
2921
2922         cclist_64="gcc cc"
2923         gcc_64_cflags="-O2 -mabi=64"
2924         gcc_64_ldflags="-Wc,-mabi=64"
2925         cc_64_cflags="-O2 -64"          # no -g, it disables all optimizations
2926         cc_64_ldflags="-Wc,-64"
2927         path_64="mips64"
2928         ;;
2929     esac
2930     ;;
2931
2932
2933   # Darwin (powerpc-apple-darwin1.3) has it's hacked gcc installed as cc.
2934   # Our usual "gcc in disguise" detection means gcc_cflags etc here gets
2935   # used.
2936   #
2937   # The darwin pre-compiling preprocessor is disabled with -no-cpp-precomp
2938   # since it doesn't like "__attribute__ ((mode (SI)))" etc in gmp-impl.h,
2939   # and so always ends up running the plain preprocessor anyway.  This could
2940   # be done in CPPFLAGS rather than CFLAGS, but there's not many places
2941   # preprocessing is done separately, and this is only a speedup, the normal
2942   # preprocessor gets run if there's any problems.
2943   #
2944   # We used to use -Wa,-mppc with gcc, but can't remember exactly why.
2945   # Presumably it was for old versions of gcc where -mpowerpc doesn't put
2946   # the assembler in the right mode.  In any case -Wa,-mppc is not good, for
2947   # instance -mcpu=604 makes recent gcc use -m604 to get access to the
2948   # "fsel" instruction, but a -Wa,-mppc overrides that, making code that
2949   # comes out with fsel fail.
2950   #
2951   # (Note also that the darwin assembler doesn't accept "-mppc", so any
2952   # -Wa,-mppc was used only if it worked.  The right flag on darwin would be
2953   # "-arch ppc" or some such, but that's already the default.)
2954   #
2955   powerpc*-*-* | power[3-9]-*-*)
2956     cat >>confdefs.h <<\_ACEOF
2957 #define HAVE_HOST_CPU_FAMILY_powerpc 1
2958 _ACEOF
2959
2960     HAVE_HOST_CPU_FAMILY_powerpc=1
2961     abilist="32"
2962     cclist="gcc cc"
2963     cc_cflags="-O2"
2964     gcc_cflags="-O2 -mpowerpc"
2965     gcc_cflags_optlist="precomp subtype cpu"
2966     gcc_cflags_precomp="-no-cpp-precomp"
2967     gcc_cflags_subtype="-force_cpusubtype_ALL"  # for vmx on darwin
2968
2969     # grab this object, though it's not a true cycle counter routine
2970     SPEED_CYCLECOUNTER_OBJ=powerpc.lo
2971     cyclecounter_size=0
2972
2973     case $host_cpu in
2974       powerpc740 | powerpc750)
2975         path="powerpc32/750 powerpc32" ;;
2976       powerpc7400)
2977         path="powerpc32/vmx powerpc32/750 powerpc32" ;;
2978       powerpc745?)
2979         path="powerpc32/vmx powerpc32 powerpc32" ;;
2980       *)
2981         path="powerpc32" ;;
2982     esac
2983
2984     # gcc 2.7.2 knows -mcpu=403, 601, 603, 604.
2985     # gcc 2.95 adds 401, 505, 602, 603e, ec603e, 604e, 620, 740, 750,
2986     #   801, 821, 823, 860.
2987     # gcc 3.0 adds 630, rs64a.
2988     # gcc 3.1 adds 405, 7400, 7450.
2989     # gcc 3.2 adds nothing.
2990     # gcc 3.3 adds power3, power4, 8540.  power3 seems to be a synonym for 630.
2991     # gcc pre-release 3.4 adds 405fp, 440, 440fp, 970.
2992     #
2993     # FIXME: The way 603e falls back to 603 for gcc 2.7.2 should be
2994     # done for all the others too.  But what would be the correct
2995     # arrangements?
2996     #
2997     case $host_cpu in
2998       powerpc401)   gcc_cflags_cpu="-mcpu=401" ;;
2999       powerpc403)   gcc_cflags_cpu="-mcpu=403" ;;
3000       powerpc405)   gcc_cflags_cpu="-mcpu=405" ;;
3001       powerpc505)   gcc_cflags_cpu="-mcpu=505" ;;
3002       powerpc601)   gcc_cflags_cpu="-mcpu=601" ;;
3003       powerpc602)   gcc_cflags_cpu="-mcpu=602" ;;
3004       powerpc603)   gcc_cflags_cpu="-mcpu=603" ;;
3005       powerpc603e)  gcc_cflags_cpu="-mcpu=603e -mcpu=603" ;;
3006       powerpc604)   gcc_cflags_cpu="-mcpu=604" ;;
3007       powerpc604e)  gcc_cflags_cpu="-mcpu=604e -mcpu=604" ;;
3008       powerpc620)   gcc_cflags_cpu="-mcpu=620" ;;
3009       powerpc630)   gcc_cflags_cpu="-mcpu=630" ;;
3010       powerpc740)   gcc_cflags_cpu="-mcpu=740" ;;
3011       powerpc7400 | powerpc7410)
3012                     gcc_cflags_cpu="-mcpu=7400 -mcpu=750" ;;
3013       powerpc745?)  gcc_cflags_cpu="-mcpu=7450" ;;
3014       powerpc750)   gcc_cflags_cpu="-mcpu=750" ;;
3015       powerpc801)   gcc_cflags_cpu="-mcpu=801" ;;
3016       powerpc821)   gcc_cflags_cpu="-mcpu=821" ;;
3017       powerpc823)   gcc_cflags_cpu="-mcpu=823" ;;
3018       powerpc860)   gcc_cflags_cpu="-mcpu=860" ;;
3019       powerpc970)   gcc_cflags_cpu="-mcpu=970" ;;
3020     esac
3021
3022     case $host in
3023       *-*-aix*)
3024         cclist="gcc xlc cc"
3025         xlc_cflags="-O2 -qmaxmem=20000"
3026         xlc_cflags_optlist="arch"
3027
3028         # xlc (what version?) knows -qarch=ppc, ppcgr, 601, 602, 603, 604,
3029         # 403, rs64a
3030         # -qarch=ppc is needed, so ensure everything falls back to that.
3031         # FIXME: Perhaps newer versions know more flavours.
3032         #
3033         case $host_cpu in
3034           powerpc403)   xlc_cflags_arch="-qarch=403 -qarch=ppc" ;;
3035           powerpc601)   xlc_cflags_arch="-qarch=601 -qarch=ppc" ;;
3036           powerpc602)   xlc_cflags_arch="-qarch=602 -qarch=ppc" ;;
3037           powerpc603)   xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
3038           powerpc603e)  xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
3039           powerpc604)   xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
3040           powerpc604e)  xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
3041           *)            xlc_cflags_arch="-qarch=ppc" ;;
3042         esac
3043         ;;
3044     esac
3045
3046     case $host in
3047       powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-*)
3048         case $host_cpu in
3049           powerpc970)           vmx_path="powerpc64/vmx" ;;
3050           *)                    vmx_path="" ;;
3051         esac
3052         case $host in
3053           *-*-aix*)
3054             # On AIX a true 64-bit ABI is available.
3055             # Need -Wc to pass object type flags through to the linker.
3056             abilist="aix64 $abilist"
3057             cclist_aix64="gcc xlc"
3058             gcc_aix64_cflags="-O2 -maix64 -mpowerpc64"
3059             gcc_aix64_cflags_optlist="cpu"
3060             gcc_aix64_ldflags="-Wc,-maix64"
3061             xlc_aix64_cflags="-O2 -q64 -qtune=pwr3 -qmaxmem=20000"
3062             xlc_aix64_ldflags="-Wc,-q64"
3063             # Must indicate object type to ar and nm
3064             ar_aix64_flags="-X64"
3065             nm_aix64_flags="-X64"
3066             path_aix64="powerpc64/mode64 $vmx_path powerpc64"
3067             # grab this object, though it's not a true cycle counter routine
3068             SPEED_CYCLECOUNTER_OBJ_aix64=powerpc64.lo
3069             cyclecounter_size_aix64=0
3070             ;;
3071           *-*-darwin*)
3072             # On Darwin we can use 64-bit instructions with a longlong limb,
3073             # but the chip still in 32-bit mode.
3074             # In theory this can be used on any OS which knows how to save
3075             # 64-bit registers in a context switch.
3076             #
3077             # Note that we must use -mpowerpc64 with gcc, since the
3078             # longlong.h macros expect limb operands in a single 64-bit
3079             # register, not two 32-bit registers as would be given for a
3080             # long long without -mpowerpc64.  In theory we could detect and
3081             # accomodate both styles, but the proper 64-bit registers will
3082             # be fastest and are what we really want to use.
3083             #
3084             # One would think -mpowerpc64 would set the assembler in the right
3085             # mode to handle 64-bit instructions.  But for that, also
3086             # -force_cpusubtype_ALL is needed.
3087             #
3088             # Do not use -fast for Darwin, it actually adds options
3089             # incompatible with a shared library.
3090             #
3091             abilist="mode64 mode32 $abilist"
3092             gcc_cflags_opt="-O3 -O2 -O1"        # will this become used?
3093             cclist_mode32="gcc"
3094             gcc_mode32_cflags="-mpowerpc64"
3095             gcc_mode32_cflags_optlist="subtype cpu opt"
3096             gcc_mode32_cflags_subtype="-force_cpusubtype_ALL"
3097             gcc_mode32_cflags_opt="-O3 -O2 -O1"
3098             path_mode32="powerpc64/mode32 $vmx_path powerpc64"
3099             limb_mode32=longlong
3100             cclist_mode64="gcc"
3101             gcc_mode64_cflags="-m64"
3102             gcc_mode64_cflags_optlist="cpu opt"
3103             gcc_mode64_cflags_opt="-O3 -O2 -O1"
3104             path_mode64="powerpc64/mode64 $vmx_path powerpc64"
3105             SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
3106             cyclecounter_size_mode64=0
3107             any_mode64_testlist="sizeof-long-8"
3108             ;;
3109           *-*-linux* | *-*-*bsd*)
3110             # On GNU/Linux, assume the processor is in 64-bit mode.  Some
3111             # environments have a gcc that is always in 64-bit mode, while
3112             # others require -m64, hence the use of cflags_maybe.  The
3113             # sizeof-long-8 test checks the mode is right (for the no option
3114             # case).
3115             #
3116             # -mpowerpc64 is not used, since it should be the default in
3117             # 64-bit mode.  (We need its effect for the various longlong.h
3118             # asm macros to be right of course.)
3119             #
3120             # gcc64 was an early port of gcc to 64-bit mode, but should be
3121             # obsolete before too long.  We prefer plain gcc when it knows
3122             # 64-bits.
3123             #
3124             abilist="mode64 mode32 $abilist"
3125             cclist_mode32="gcc"
3126             gcc_mode32_cflags="-mpowerpc64 -Wa,-mppc64"
3127             gcc_mode32_cflags_optlist="cpu opt"
3128             gcc_mode32_cflags_opt="-O3 -O2 -O1"
3129             path_mode32="powerpc64/mode32 $vmx_path powerpc64"
3130             limb_mode32=longlong
3131             cclist_mode64="gcc gcc64"
3132             gcc_mode64_cflags_maybe="-m64"
3133             gcc_mode64_cflags_optlist="cpu opt"
3134             gcc_mode64_cflags_opt="-O3 -O2 -O1"
3135             path_mode64="powerpc64/mode64 $vmx_path powerpc64"
3136             SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
3137             cyclecounter_size_mode64=0
3138             any_mode64_testlist="sizeof-long-8"
3139             ;;
3140         esac
3141         ;;
3142     esac
3143     ;;
3144
3145
3146   # POWER
3147   power-*-* | power[12]-*-* | power2sc-*-*)
3148     cat >>confdefs.h <<\_ACEOF
3149 #define HAVE_HOST_CPU_FAMILY_power 1
3150 _ACEOF
3151
3152     HAVE_HOST_CPU_FAMILY_power=1
3153     cclist="gcc"
3154     extra_functions="udiv_w_sdiv"
3155     path="power"
3156
3157     # gcc 2.7.2 knows rios1, rios2, rsc
3158     #
3159     # -mcpu=rios2 can tickle an AIX assembler bug (see GMP_PROG_CC_WORKS) so
3160     # there needs to be a fallback to just -mpower.
3161     #
3162     gcc_cflags_optlist="cpu"
3163     case $host in
3164       power-*-*)    gcc_cflags_cpu="-mcpu=power -mpower" ;;
3165       power1-*-*)   gcc_cflags_cpu="-mcpu=rios1 -mpower" ;;
3166       power2-*-*)   gcc_cflags_cpu="-mcpu=rios2 -mpower" ;;
3167       power2sc-*-*) gcc_cflags_cpu="-mcpu=rsc   -mpower" ;;
3168     esac
3169     case $host in
3170     *-*-aix*)
3171       cclist="gcc xlc"
3172       xlc_cflags="-O2 -qarch=pwr -qmaxmem=20000"
3173       ;;
3174     esac
3175     ;;
3176
3177
3178   pyramid-*-*)
3179     path="pyr"
3180     ;;
3181
3182
3183   # IBM s/370 and similar
3184   s3[6-9]0*-*-*)
3185     gcc_cflags="-O2 $fomit_frame_pointer"
3186     path="s390"
3187     extra_functions="udiv_w_sdiv"
3188     ;;
3189
3190
3191   sh-*-*)   path="sh" ;;
3192   sh2-*-*)  path="sh/sh2 sh" ;;
3193
3194
3195   *sparc*-*-*)
3196     # sizeof(long)==4 or 8 is tested, to ensure we get the right ABI.  We've
3197     # had various bug reports where users have set CFLAGS for their desired
3198     # mode, but not set our ABI.  For some reason it's sparc where this
3199     # keeps coming up, presumably users there are accustomed to driving the
3200     # compiler mode that way.  The effect of our testlist setting is to
3201     # reject ABI=64 in favour of ABI=32 if the user has forced the flags to
3202     # 32-bit mode.
3203     #
3204     abilist="32"
3205     cclist="gcc acc cc"
3206     any_testlist="sizeof-long-4"
3207
3208 echo "include_mpn(\`sparc32/sparc-defs.m4')" >> $gmp_tmpconfigm4i
3209
3210
3211     case $host_cpu in
3212       sparcv8 | microsparc | turbosparc)
3213         path="sparc32/v8 sparc32" ;;
3214       supersparc)
3215         path="sparc32/v8/supersparc sparc32/v8 sparc32" ;;
3216       sparc64 | sparcv9* | ultrasparc*)
3217         path="sparc32/v9 sparc32/v8 sparc32" ;;
3218       *)
3219         path="sparc32" ;;
3220     esac
3221
3222     # gcc 2.7.2 doesn't know about v9 and doesn't pass -xarch=v8plus to the
3223     # assembler.  Add it explicitly since the solaris assembler won't accept
3224     # our sparc32/v9 asm code without it.  gas accepts -xarch=v8plus too, so
3225     # it can be in the cflags unconditionally (though gas doesn't need it).
3226     #
3227     # gcc -m32 is needed to force 32-bit mode on a dual-ABI system, but past
3228     # gcc doesn't know that flag, hence cflags_maybe.  Note that -m32 cannot
3229     # be done through the optlist since the plain cflags would be run first
3230     # and we don't want to require the default mode (whatever it is) works.
3231     #
3232     # Note it's gcc_32_cflags_maybe and not gcc_cflags_maybe because the
3233     # latter would be used in the 64-bit ABI on systems like "*bsd" where
3234     # abilist="64" only.
3235     #
3236     case $host_cpu in
3237       sparc64 | sparcv9* | ultrasparc*)
3238         gcc_cflags="-O2 -Wa,-xarch=v8plus" ;;
3239       *)
3240         gcc_cflags="-O2" ;;
3241     esac
3242     gcc_32_cflags_maybe="-m32"
3243     gcc_cflags_optlist="cpu"
3244
3245     # gcc 2.7.2 knows -mcypress, -msupersparc, -mv8, -msparclite.
3246     # gcc 2.95 knows -mcpu= v7, hypersparc, sparclite86x, f930, f934,
3247     #   sparclet, tsc701, v9, ultrasparc.  A warning is given that the
3248     #   plain -m forms will disappear.
3249     # gcc 3.0 adds nothing.
3250     # gcc 3.1 adds nothing.
3251     # gcc 3.2 adds nothing.
3252     # gcc 3.3 adds ultrasparc3.
3253     #
3254     case $host_cpu in
3255       supersparc)           gcc_cflags_cpu="-mcpu=supersparc -msupersparc" ;;
3256       sparcv8 | microsparc | turbosparc)
3257                             gcc_cflags_cpu="-mcpu=v8 -mv8" ;;
3258       sparc64 | sparcv9*)   gcc_cflags_cpu="-mcpu=v9 -mv8" ;;
3259       ultrasparc3)          gcc_cflags_cpu="-mcpu=ultrasparc3 -mcpu=ultrasparc -mv8" ;;
3260       ultrasparc*)          gcc_cflags_cpu="-mcpu=ultrasparc -mv8" ;;
3261       *)                    gcc_cflags_cpu="-mcpu=v7 -mcypress" ;;
3262     esac
3263
3264     # SunPRO cc and acc, and SunOS bundled cc
3265     case $host in
3266       *-*-solaris* | *-*-sunos*)
3267         # Note no -g, it disables all optimizations.
3268         cc_cflags=
3269         cc_cflags_optlist="opt arch cpu"
3270
3271         # SunOS cc doesn't know -xO4, fallback to -O2.
3272         cc_cflags_opt="-xO4 -O2"
3273
3274         # SunOS cc doesn't know -xarch, apparently always generating v7
3275         # code, so make this optional
3276         case $host_cpu in
3277           sparcv8 | microsparc | supersparc | turbosparc)
3278                                               cc_cflags_arch="-xarch=v8" ;;
3279           sparc64 | sparcv9* | ultrasparc*)   cc_cflags_arch="-xarch=v8plus" ;;
3280           *)                                  cc_cflags_arch="-xarch=v7" ;;
3281         esac
3282
3283         # SunOS cc doesn't know -xchip and doesn't seem to have an equivalent.
3284         # SunPRO cc 5 recognises -xchip=generic, old, super, super2, micro,
3285         #   micro2, hyper, hyper2, powerup, ultra, ultra2, ultra2i.
3286         # SunPRO cc 6 adds -xchip=ultra2e, ultra3cu.
3287         #
3288         # FIXME: Which of ultra, ultra2 or ultra2i is the best fallback for
3289         # ultrasparc3?
3290         #
3291         case $host_cpu in
3292           supersparc)   cc_cflags_cpu="-xchip=super" ;;
3293           microsparc)   cc_cflags_cpu="-xchip=micro" ;;
3294           turbosparc)   cc_cflags_cpu="-xchip=micro2" ;;
3295           ultrasparc)   cc_cflags_cpu="-xchip=ultra" ;;
3296           ultrasparc2)  cc_cflags_cpu="-xchip=ultra2" ;;
3297           ultrasparc2i) cc_cflags_cpu="-xchip=ultra2i" ;;
3298           ultrasparc3)  cc_cflags_cpu="-xchip=ultra3 -xchip=ultra" ;;
3299           *)            cc_cflags_cpu="-xchip=generic" ;;
3300         esac
3301     esac
3302
3303     case $host_cpu in
3304       sparc64 | sparcv9* | ultrasparc*)
3305         case $host in
3306           # Solaris 6 and earlier cannot run ABI=64 since it doesn't save
3307           # registers properly, so ABI=32 is left as the only choice.
3308           #
3309           *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3310
3311           # BSD sparc64 ports are 64-bit-only systems, so ABI=64 is the only
3312           # choice.  In fact they need no special compiler flags, gcc -m64
3313           # is the default, but it doesn't hurt to add it.  v9 CPUs always
3314           # use the sparc64 port, since the plain 32-bit sparc ports don't
3315           # run on a v9.
3316           #
3317           *-*-*bsd*) abilist="64" ;;
3318
3319           # For all other systems, we try both 64 and 32.
3320           #
3321           # GNU/Linux sparc64 has only recently gained a 64-bit user mode.
3322           # In the past sparc64 meant a v9 cpu, but there were no 64-bit
3323           # operations in user mode.  We assume that if "gcc -m64" works
3324           # then the system is suitable.  Hopefully even if someone attempts
3325           # to put a new gcc and/or glibc on an old system it won't run.
3326           #
3327           *) abilist="64 32" ;;
3328         esac
3329
3330         path_64="sparc64"
3331         cclist_64="gcc"
3332         any_64_testlist="sizeof-long-8"
3333
3334         # gcc -mptr64 is probably implied by -m64, but we're not sure if
3335         # this was always so.  On Solaris in the past we always used both
3336         # "-m64 -mptr64".
3337         #
3338         # gcc -Wa,-xarch=v9 is thought to be necessary in some cases on
3339         # solaris, but it would seem likely that if gcc is going to generate
3340         # 64-bit code it will have to add that option itself where needed.
3341         # An extra copy of this option should be harmless though, but leave
3342         # it until we're sure.  (Might want -xarch=v9a or -xarch=v9b for the
3343         # higher cpu types instead.)
3344         #
3345         gcc_64_cflags="-O2 -m64 -mptr64"
3346         gcc_64_ldflags="-Wc,-m64"
3347         gcc_64_cflags_optlist="cpu"
3348
3349         case $host in
3350           *-*-solaris*)
3351             # Sun cc.
3352             #
3353             # -fast enables different optimizations depending on compiler
3354             # version.  Unfortunately it does things according to the native
3355             # system, which may not be optimal when cross compiling (to a
3356             # different sparc).  -xchip from cc_cflags_cpu will override at
3357             # least that part of its selections.
3358             #
3359             # -fns=no and -fsimple=1 disable some transformations that
3360             # conflict with IEEE 754, which some compiler versions perform
3361             # under -fast.
3362             #
3363             cclist_64="$cclist_64 cc"
3364             cc_64_cflags="-fast -fns=no -fsimple=1 -xarch=v9"
3365             cc_64_cflags_optlist="cpu"
3366             ;;
3367         esac
3368
3369         # using the v9 %tick register
3370         SPEED_CYCLECOUNTER_OBJ_32=sparcv9.lo
3371         SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo
3372         cyclecounter_size_32=2
3373         cyclecounter_size_64=2
3374         ;;
3375     esac
3376     ;;
3377
3378
3379   # VAX
3380   vax*-*-*)
3381     # Currently gcc (version 3.0) on vax always uses a frame pointer
3382     # (config/vax/vax.h FRAME_POINTER_REQUIRED=1), so -fomit-frame-pointer
3383     # will be ignored.
3384     #
3385     gcc_cflags="-O2 $fomit_frame_pointer"
3386     path="vax"
3387     extra_functions="udiv_w_sdiv"
3388     ;;
3389
3390
3391   # AMD and Intel x86 configurations, including AMD64
3392   #
3393   # Rumour has it gcc -O2 used to give worse register allocation than just
3394   # -O, but lets assume that's no longer true.
3395   #
3396   # -m32 forces 32-bit mode on a bi-arch 32/64 amd64 build of gcc.  -m64 is
3397   # the default in such a build (we think), so -m32 is essential for ABI=32.
3398   # This is, of course, done for any $host_cpu, not just x86_64, so we can
3399   # get such a gcc into the right mode to cross-compile to say i486-*-*.
3400   #
3401   # -m32 is not available in gcc 2.95 and earlier, hence cflags_maybe to use
3402   # it when it works.  We check sizeof(long)==4 to ensure we get the right
3403   # mode, in case -m32 has failed not because it's an old gcc, but because
3404   # it's a dual 32/64-bit gcc without a 32-bit libc, or whatever.
3405   #
3406   i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | x86_64-*-*)
3407     abilist="32"
3408     cclist="gcc icc"
3409     gcc_cflags="-O2 $fomit_frame_pointer"
3410     gcc_32_cflags_maybe="-m32"
3411     icc_cflags="-no-gcc"
3412     icc_cflags_optlist="opt"
3413     icc_cflags_opt="-O3 -O2 -O1"
3414     any_32_testlist="sizeof-long-4"
3415     CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
3416
3417     # Availability of rdtsc is checked at run-time.
3418     SPEED_CYCLECOUNTER_OBJ=pentium.lo
3419
3420     # gcc 2.7.2 only knows i386 and i486, using -m386 or -m486.  These
3421     #     represent -mcpu= since -m486 doesn't generate 486 specific insns.
3422     # gcc 2.95 adds k6, pentium and pentiumpro, and takes -march= and -mcpu=.
3423     # gcc 3.0 adds athlon.
3424     # gcc 3.1 adds k6-2, k6-3, pentium-mmx, pentium2, pentium3, pentium4,
3425     #     athlon-tbird, athlon-4, athlon-xp, athlon-mp.
3426     # gcc 3.2 adds winchip2.
3427     # gcc 3.3 adds winchip-c6.
3428     # gcc 3.3.1 from mandrake adds k8 and knows -mtune.
3429     # gcc 3.4 adds c3, c3-2, k8, and deprecates -mcpu in favour of -mtune.
3430     #
3431     # In gcc 2.95.[0123], -march=pentiumpro provoked a stack slot bug in an
3432     # old version of mpz/powm.c.  Seems to be fine with the current code, so
3433     # no need for any restrictions on that option.
3434     #
3435     # -march=pentiumpro can fail if the assembler doesn't know "cmov"
3436     # (eg. solaris 2.8 native "as"), so always have -march=pentium after
3437     # that as a fallback.
3438     #
3439     # -march=pentium4 and -march=k8 enable SSE2 instructions, which may or
3440     # may not be supported by the assembler and/or the OS, and is bad in gcc
3441     # prior to 3.3.  The tests will reject these if no good, so fallbacks
3442     # like "-march=pentium4 -mno-sse2" are given to try also without SSE2.
3443     # Note the relevant -march types are listed in the optflags handling
3444     # below, be sure to update there if adding new types emitting SSE2.
3445     #
3446     # -mtune is used at the start of each cpu option list to give something
3447     # gcc 3.4 will use, thereby avoiding warnings from -mcpu.  -mcpu forms
3448     # are retained for use by prior gcc.  For example pentium has
3449     # "-mtune=pentium -mcpu=pentium ...", the -mtune is for 3.4 and the
3450     # -mcpu for prior.  If there's a brand new choice in 3.4 for a chip,
3451     # like k8 for x86_64, then it can be the -mtune at the start, no need to
3452     # duplicate anything.
3453     #
3454     gcc_cflags_optlist="cpu arch"
3455     case $host_cpu in
3456       i386*)
3457         gcc_cflags_cpu="-mtune=i386 -mcpu=i386 -m386"
3458         gcc_cflags_arch="-march=i386"
3459         ;;
3460       i486*)
3461         gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
3462         gcc_cflags_arch="-march=i486"
3463         ;;
3464       i586 | pentium)
3465         gcc_cflags_cpu="-mtune=pentium -mcpu=pentium -m486"
3466         gcc_cflags_arch="-march=pentium"
3467         ;;
3468       pentiummmx)
3469         gcc_cflags_cpu="-mtune=pentium-mmx -mcpu=pentium-mmx -mcpu=pentium -m486"
3470         gcc_cflags_arch="-march=pentium-mmx -march=pentium"
3471         ;;
3472       i686 | pentiumpro)
3473         gcc_cflags_cpu="-mtune=pentiumpro -mcpu=pentiumpro -mcpu=i486 -m486"
3474         gcc_cflags_arch="-march=pentiumpro -march=pentium"
3475         ;;
3476       pentium2)
3477         gcc_cflags_cpu="-mtune=pentium2 -mcpu=pentium2 -mcpu=pentiumpro -mcpu=i486 -m486"
3478         gcc_cflags_arch="-march=pentium2 -march=pentiumpro -march=pentium"
3479         ;;
3480       pentium3)
3481         gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
3482         gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
3483         ;;
3484       k6)
3485         gcc_cflags_cpu="-mtune=k6 -mcpu=k6 -mcpu=i486 -m486"
3486         gcc_cflags_arch="-march=k6"
3487         ;;
3488       k62)
3489         gcc_cflags_cpu="-mtune=k6-2 -mcpu=k6-2 -mcpu=k6 -mcpu=i486 -m486"
3490         gcc_cflags_arch="-march=k6-2 -march=k6"
3491         ;;
3492       k63)
3493         gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
3494         gcc_cflags_arch="-march=k6-3 -march=k6"
3495         ;;
3496       athlon)
3497         # Athlon instruction costs are close to P6 (3 cycle load latency,
3498         # 4-6 cycle mul, 40 cycle div, pairable adc, etc) so if gcc doesn't
3499         # know athlon (eg. 2.95.2 doesn't) then fall back on pentiumpro.
3500         gcc_cflags_cpu="-mtune=athlon -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
3501         gcc_cflags_arch="-march=athlon -march=pentiumpro -march=pentium"
3502         ;;
3503       i786 | pentium4)
3504         # pentiumpro is the primary fallback when gcc doens't know pentium4.
3505         # This gets us cmov to eliminate branches.  Maybe "athlon" would be
3506         # a possibility on gcc 3.0.
3507         #
3508         gcc_cflags_cpu="-mtune=pentium4 -mcpu=pentium4 -mcpu=pentiumpro -mcpu=i486 -m486"
3509         gcc_cflags_arch="-march=pentium4 -march=pentium4~-mno-sse2 -march=pentiumpro -march=pentium"
3510         ;;
3511       viac32)
3512         # Not sure of the best fallbacks here for -mcpu.
3513         # c3-2 has sse and mmx, so pentium3 is good for -march.
3514         gcc_cflags_cpu="-mtune=c3-2 -mcpu=c3-2 -mcpu=i486 -m486"
3515         gcc_cflags_arch="-march=c3-2 -march=pentium3 -march=pentiumpro -march=pentium"
3516         ;;
3517       viac3*)
3518         # Not sure of the best fallbacks here.
3519         gcc_cflags_cpu="-mtune=c3 -mcpu=c3 -mcpu=i486 -m486"
3520         gcc_cflags_arch="-march=c3 -march=pentium-mmx -march=pentium"
3521         ;;
3522       x86_64)
3523         gcc_cflags_cpu="-mtune=k8 -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
3524         gcc_cflags_arch="-march=k8 -march=k8~-mno-sse2 -march=athlon -march=pentiumpro -march=pentium"
3525         ;;
3526       *)
3527         gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
3528         gcc_cflags_arch="-march=i486"
3529         ;;
3530     esac
3531
3532     case $host_cpu in
3533       i386*)                path="x86" ;;
3534       i486*)                path="x86/i486 x86" ;;
3535       i586 | pentium)       path="x86/pentium x86" ;;
3536       pentiummmx)           path="x86/pentium/mmx x86/pentium x86" ;;
3537       i686 | pentiumpro)    path="x86/p6 x86" ;;
3538       pentium2)             path="x86/p6/mmx x86/p6 x86" ;;
3539       pentium3)             path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86";;
3540       k6[23])             path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86" ;;
3541       k6)                   path="x86/k6/mmx x86/k6 x86" ;;
3542       # we don't have any specific 32-bit code for opteron (x86_64), the
3543       # athlon code should be reasonable
3544       athlon | x86_64)      path="x86/k7/mmx x86/k7 x86" ;;
3545       i786 | pentium4)      path="x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86" ;;
3546       # VIA/Centaur processors, sold as CyrixIII and C3.
3547       viac32)               path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86";;
3548       viac3*)               path="x86/pentium/mmx x86/pentium x86";;
3549       *)                    path="x86" ;;
3550     esac
3551
3552     # If the user asked for a fat build, override the path set above
3553     if test $enable_fat = yes; then
3554       extra_functions="$extra_functions fat fat_entry"
3555       path="x86/fat x86"
3556       fat_path="x86 x86/fat x86/i486
3557                 x86/k6 x86/k6/mmx x86/k6/k62mmx
3558                 x86/k7 x86/k7/mmx
3559                 x86/pentium x86/pentium/mmx
3560                 x86/p6 x86/p6/mmx x86/p6/p3mmx
3561                 x86/pentium4 x86/pentium4/mmx x86/pentium4/sse2"
3562       fat_functions="add_n addmul_1 copyd copyi
3563                      dive_1 diveby3 divrem_1 gcd_1 lshift
3564                      mod_1 mod_34lsub1 mode1o mul_1 mul_basecase
3565                      pre_divrem_1 pre_mod_1 rshift
3566                      sqr_basecase sub_n submul_1"
3567       fat_thresholds="MUL_KARATSUBA_THRESHOLD MUL_TOOM3_THRESHOLD
3568                       SQR_KARATSUBA_THRESHOLD SQR_TOOM3_THRESHOLD"
3569     fi
3570
3571     case $host in
3572       x86_64-*-*)
3573         abilist="64 32"
3574         path_64="x86_64"
3575         cclist_64="gcc"
3576         gcc_64_cflags="-O2 -m64"
3577         gcc_64_cflags_optlist="cpu"
3578         CALLING_CONVENTIONS_OBJS_64='amd64call.lo amd64check$U.lo'
3579         SPEED_CYCLECOUNTER_OBJ_64=x86_64.lo
3580         cyclecounter_size_64=2
3581         ;;
3582     esac
3583     ;;
3584
3585
3586   # FIXME: z8kx won't get through config.sub.  Could make 16 versus 32 bit
3587   # limb an ABI option perhaps.
3588   z8kx*-*-*)
3589     path="z8000x"
3590     extra_functions="udiv_w_sdiv"
3591     ;;
3592   z8k*-*-*)
3593     path="z8000"
3594     extra_functions="udiv_w_sdiv"
3595     ;;
3596
3597
3598   # Special CPU "none" selects generic C.  -DNO_ASM is used to disable gcc
3599   # asm blocks in longlong.h (since they're driven by cpp pre-defined
3600   # symbols like __alpha rather than the configured $host_cpu).
3601   #
3602   none-*-*)
3603     abilist="long longlong"
3604     cclist_long=$cclist
3605     gcc_long_cflags=$gcc_cflags
3606     gcc_long_cppflags="-DNO_ASM"
3607     cc_long_cflags=$cc_cflags
3608     cclist_longlong=$cclist
3609     gcc_longlong_cflags=$gcc_cflags
3610     gcc_longlong_cppflags="-DNO_ASM"
3611     cc_longlong_cflags=$cc_cflags
3612     limb_longlong=longlong
3613     ;;
3614
3615 esac
3616
3617 # mingw can be built by the cygwin gcc if -mno-cygwin is added.  For
3618 # convenience add this automatically if it works.  Actual mingw gcc accepts
3619 # -mno-cygwin too, but of course is the default.  mingw only runs on the
3620 # x86s, but allow any CPU here so as to catch "none" too.
3621 #
3622 case $host in
3623   *-*-mingw*)
3624     gcc_cflags_optlist="$gcc_cflags_optlist nocygwin"
3625     gcc_cflags_nocygwin="-mno-cygwin"
3626     ;;
3627 esac
3628
3629
3630 CFLAGS_or_unset=${CFLAGS-'(unset)'}
3631 CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'}
3632
3633 cat >&5 <<EOF
3634 User:
3635 ABI=$ABI
3636 CC=$CC
3637 CFLAGS=$CFLAGS_or_unset
3638 CPPFLAGS=$CPPFLAGS_or_unset
3639 MPN_PATH=$MPN_PATH
3640 GMP:
3641 abilist=$abilist
3642 cclist=$cclist
3643 EOF
3644
3645
3646 test_CFLAGS=${CFLAGS+set}
3647 test_CPPFLAGS=${CPPFLAGS+set}
3648
3649 for abi in $abilist; do
3650   abi_last="$abi"
3651 done
3652
3653 # If the user specifies an ABI then it must be in $abilist, after that
3654 # $abilist is restricted to just that choice.
3655 #
3656 if test -n "$ABI"; then
3657   found=no
3658   for abi in $abilist; do
3659     if test $abi = "$ABI"; then found=yes; break; fi
3660   done
3661   if test $found = no; then
3662     { { echo "$as_me:$LINENO: error: ABI=$ABI is not among the following valid choices: $abilist" >&5
3663 echo "$as_me: error: ABI=$ABI is not among the following valid choices: $abilist" >&2;}
3664    { (exit 1); exit 1; }; }
3665   fi
3666   abilist="$ABI"
3667 fi
3668
3669 found_compiler=no
3670
3671 for abi in $abilist; do
3672
3673   echo "checking ABI=$abi"
3674
3675   # Suppose abilist="64 32", then for abi=64, will have abi1="_64" and
3676   # abi2="_64".  For abi=32, will have abi1="_32" and abi2="".  This is how
3677   # $gcc_cflags becomes a fallback for $gcc_32_cflags (the last in the
3678   # abilist), but there's no fallback for $gcc_64_cflags.
3679   #
3680   abi1=`echo _$abi | sed 's/[.]//g'`
3681   if test $abi = $abi_last; then abi2=; else abi2="$abi1"; fi
3682
3683   # Compiler choices under this ABI
3684                               eval cclist_chosen=\"\$cclist$abi1\"
3685   test -n "$cclist_chosen" || eval cclist_chosen=\"\$cclist$abi2\"
3686
3687   # If there's a user specified $CC then don't use a list for
3688   # $cclist_chosen, just a single value for $ccbase.
3689   #
3690   if test -n "$CC"; then
3691
3692     # The first word of $CC, stripped of any directory.  For instance
3693     # CC="/usr/local/bin/gcc -pipe" will give "gcc".
3694     #
3695     for ccbase in $CC; do break; done
3696     ccbase=`echo $ccbase | sed 's:.*/::'`
3697
3698     # If this $ccbase is in $cclist_chosen then it's a compiler we know and
3699     # we can do flags defaulting with it.  If not, then $cclist_chosen is
3700     # set to "unrecognised" so no default flags are used.
3701     #
3702     # "unrecognised" is used to avoid bad effects with eval if $ccbase has
3703     # non-symbol characters.  For instance ccbase=my+cc would end up with
3704     # something like cflags="$my+cc_cflags" which would give
3705     # cflags="+cc_cflags" rather than the intended empty string for an
3706     # unknown compiler.
3707     #
3708     found=unrecognised
3709     for i in $cclist_chosen; do
3710       if test "$ccbase" = $i; then
3711         found=$ccbase
3712         break
3713       fi
3714     done
3715     cclist_chosen=$found
3716   fi
3717
3718   for ccbase in $cclist_chosen; do
3719
3720     # When cross compiling, look for a compiler with the $host_alias as a
3721     # prefix, the same way that AC_CHECK_TOOL does.  But don't do this to a
3722     # user-selected $CC.
3723     #
3724     # $cross_compiling will be yes/no/maybe at this point.  Do the host
3725     # prefixing for "maybe" as well as "yes".
3726     #
3727     if test "$cross_compiling" != no && test -z "$CC"; then
3728       cross_compiling_prefix="${host_alias}-"
3729     fi
3730
3731     for ccprefix in $cross_compiling_prefix ""; do
3732
3733       cc="$CC"
3734       test -n "$cc" || cc="$ccprefix$ccbase"
3735
3736       # If the compiler is gcc but installed under another name, then change
3737       # $ccbase so as to use the flags we know for gcc.  This helps for
3738       # instance when specifying CC=gcc272 on Debian GNU/Linux, or the
3739       # native cc which is really gcc on NeXT or MacOS-X.
3740       #
3741       # FIXME: There's a slight misfeature here.  If cc is actually gcc but
3742       # gcc is not a known compiler under this $abi then we'll end up
3743       # testing it with no flags and it'll work, but chances are it won't be
3744       # in the right mode for the ABI we desire.  Let's quietly hope this
3745       # doesn't happen.
3746       #
3747       if test $ccbase != gcc; then
3748         cat >conftest.c <<EOF
3749 #if ! defined (__GNUC__) || defined (__INTEL_COMPILER)
3750   choke me
3751 #endif
3752 EOF
3753 gmp_compile="$cc -c conftest.c >&5"
3754 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
3755   (eval $gmp_compile) 2>&5
3756   ac_status=$?
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); }; then
3759   rm -f conftest*
3760   echo "$as_me:$LINENO: checking whether $cc is gcc" >&5
3761 echo $ECHO_N "checking whether $cc is gcc... $ECHO_C" >&6
3762   echo "$as_me:$LINENO: result: yes" >&5
3763 echo "${ECHO_T}yes" >&6
3764   ccbase=gcc
3765 else
3766   rm -f conftest*
3767   :
3768 fi
3769
3770       fi
3771
3772       # Similarly if the compiler is IBM xlc but invoked as cc or whatever
3773       # then change $ccbase and make the default xlc flags available.
3774       if test $ccbase != xlc; then
3775         gmp_command="$cc 2>&1 | grep xlc >/dev/null"
3776 if { (eval echo "$as_me:$LINENO: \"$gmp_command\"") >&5
3777   (eval $gmp_command) 2>&5
3778   ac_status=$?
3779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780   (exit $ac_status); }; then
3781   echo "$as_me:$LINENO: checking whether $cc is xlc" >&5
3782 echo $ECHO_N "checking whether $cc is xlc... $ECHO_C" >&6
3783   echo "$as_me:$LINENO: result: yes" >&5
3784 echo "${ECHO_T}yes" >&6
3785   ccbase=xlc
3786 else
3787   :
3788 fi
3789
3790       fi
3791
3792       # acc was Sun's first unbundled compiler back in the SunOS days, or
3793       # something like that, but today its man page says it's not meant to
3794       # be used directly (instead via /usr/ucb/cc).  The options are pretty
3795       # much the same as the main SunPRO cc, so share those configs.
3796       #
3797       case $host in
3798         *sparc*-*-solaris* | *sparc*-*-sunos*)
3799           if test "$ccbase" = acc; then ccbase=cc; fi ;;
3800       esac
3801
3802       for tmp_cflags_maybe in yes no; do
3803                              eval cflags=\"\$${ccbase}${abi1}_cflags\"
3804         test -n "$cflags" || eval cflags=\"\$${ccbase}${abi2}_cflags\"
3805
3806         if test "$tmp_cflags_maybe" = yes; then
3807           # don't try cflags_maybe when the user set CFLAGS
3808           if test "$test_CFLAGS" = set; then continue; fi
3809                                      eval cflags_maybe=\"\$${ccbase}${abi1}_cflags_maybe\"
3810           test -n "$cflags_maybe" || eval cflags_maybe=\"\$${ccbase}${abi2}_cflags_maybe\"
3811           # don't try cflags_maybe if there's nothing set
3812           if test -z "$cflags_maybe"; then continue; fi
3813           cflags="$cflags_maybe $cflags"
3814         fi
3815
3816         # Any user CFLAGS, even an empty string, takes precendence
3817         if test "$test_CFLAGS" = set; then cflags=$CFLAGS; fi
3818
3819         # Any user CPPFLAGS, even an empty string, takes precendence
3820                                eval cppflags=\"\$${ccbase}${abi1}_cppflags\"
3821         test -n "$cppflags" || eval cppflags=\"\$${ccbase}${abi2}_cppflags\"
3822         if test "$test_CPPFLAGS" = set; then cppflags=$CPPFLAGS; fi
3823
3824         # --enable-profiling adds -p/-pg even to user-specified CFLAGS.
3825         # This is convenient, but it's perhaps a bit naughty to modify user
3826         # CFLAGS.
3827         case "$enable_profiling" in
3828           prof)       cflags="$cflags -p" ;;
3829           gprof)      cflags="$cflags -pg" ;;
3830           instrument) cflags="$cflags -finstrument-functions" ;;
3831         esac
3832
3833         echo "$as_me:$LINENO: checking compiler $cc $cflags $cppflags" >&5
3834 echo $ECHO_N "checking compiler $cc $cflags $cppflags... $ECHO_C" >&6
3835 gmp_prog_cc_works=yes
3836
3837 # first see a simple "main()" works, then go on to other checks
3838 if test "$gmp_prog_cc_works" = yes; then
3839   # remove anything that might look like compiler output to our "||" expression
3840   rm -f conftest* a.out b.out a.exe a_out.exe
3841   cat >conftest.c <<EOF
3842
3843 int main () { return 0; }
3844 EOF
3845   echo "Test compile: " >&5
3846   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
3847   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
3848   (eval $gmp_compile) 2>&5
3849   ac_status=$?
3850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851   (exit $ac_status); }; then
3852     cc_works_part=yes
3853     if test "$cross_compiling" = no; then
3854       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
3855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856   (eval $ac_try) 2>&5
3857   ac_status=$?
3858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859   (exit $ac_status); }; }; then :;
3860       else
3861         cc_works_part=norun
3862       fi
3863     fi
3864   else
3865     cc_works_part=no
3866   fi
3867   if test "$cc_works_part" != yes; then
3868     echo "failed program was:" >&5
3869     cat conftest.c >&5
3870   fi
3871   rm -f conftest* a.out b.out a.exe a_out.exe
3872   case $cc_works_part in
3873     yes)
3874
3875       ;;
3876     no)
3877       gmp_prog_cc_works="no"
3878       ;;
3879     norun)
3880       gmp_prog_cc_works="no, program does not run"
3881       ;;
3882   esac
3883 fi
3884
3885
3886
3887
3888 if test "$gmp_prog_cc_works" = yes; then
3889   # remove anything that might look like compiler output to our "||" expression
3890   rm -f conftest* a.out b.out a.exe a_out.exe
3891   cat >conftest.c <<EOF
3892 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
3893    (without -maix64), hence detecting an unusable compiler */
3894 void *g() { return (void *) 0; }
3895 void *f() { return g(); }
3896
3897 int main () { return 0; }
3898 EOF
3899   echo "Test compile: function pointer return" >&5
3900   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
3901   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
3902   (eval $gmp_compile) 2>&5
3903   ac_status=$?
3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); }; then
3906     cc_works_part=yes
3907     if test "$cross_compiling" = no; then
3908       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
3909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910   (eval $ac_try) 2>&5
3911   ac_status=$?
3912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); }; }; then :;
3914       else
3915         cc_works_part=norun
3916       fi
3917     fi
3918   else
3919     cc_works_part=no
3920   fi
3921   if test "$cc_works_part" != yes; then
3922     echo "failed program was:" >&5
3923     cat conftest.c >&5
3924   fi
3925   rm -f conftest* a.out b.out a.exe a_out.exe
3926   case $cc_works_part in
3927     yes)
3928
3929       ;;
3930     no)
3931       gmp_prog_cc_works="no, function pointer return"
3932       ;;
3933     norun)
3934       gmp_prog_cc_works="no, function pointer return, program does not run"
3935       ;;
3936   esac
3937 fi
3938
3939
3940
3941
3942 if test "$gmp_prog_cc_works" = yes; then
3943   # remove anything that might look like compiler output to our "||" expression
3944   rm -f conftest* a.out b.out a.exe a_out.exe
3945   cat >conftest.c <<EOF
3946 /* The following provokes an invalid instruction syntax from i386 gcc
3947    -march=pentiumpro on Solaris 2.8.  The native sun assembler
3948    requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
3949    least) doesn't know.  */
3950 int n;
3951 int cmov () { return (n >= 0 ? n : 0); }
3952
3953 int main () { return 0; }
3954 EOF
3955   echo "Test compile: cmov instruction" >&5
3956   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
3957   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
3958   (eval $gmp_compile) 2>&5
3959   ac_status=$?
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); }; then
3962     cc_works_part=yes
3963     if test "$cross_compiling" = no; then
3964       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
3965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966   (eval $ac_try) 2>&5
3967   ac_status=$?
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); }; }; then :;
3970       else
3971         cc_works_part=norun
3972       fi
3973     fi
3974   else
3975     cc_works_part=no
3976   fi
3977   if test "$cc_works_part" != yes; then
3978     echo "failed program was:" >&5
3979     cat conftest.c >&5
3980   fi
3981   rm -f conftest* a.out b.out a.exe a_out.exe
3982   case $cc_works_part in
3983     yes)
3984
3985       ;;
3986     no)
3987       gmp_prog_cc_works="no, cmov instruction"
3988       ;;
3989     norun)
3990       gmp_prog_cc_works="no, cmov instruction, program does not run"
3991       ;;
3992   esac
3993 fi
3994
3995
3996
3997
3998 if test "$gmp_prog_cc_works" = yes; then
3999   # remove anything that might look like compiler output to our "||" expression
4000   rm -f conftest* a.out b.out a.exe a_out.exe
4001   cat >conftest.c <<EOF
4002 /* The following provokes a linker invocation problem with gcc 3.0.3
4003    on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630".  The -mcpu=630
4004    option causes gcc to incorrectly select the 32-bit libgcc.a, not
4005    the 64-bit one, and consequently it misses out on the __fixunsdfdi
4006    helper (double -> uint64 conversion).  */
4007 double d;
4008 unsigned long gcc303 () { return (unsigned long) d; }
4009
4010 int main () { return 0; }
4011 EOF
4012   echo "Test compile: double -> ulong conversion" >&5
4013   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4014   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4015   (eval $gmp_compile) 2>&5
4016   ac_status=$?
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); }; then
4019     cc_works_part=yes
4020     if test "$cross_compiling" = no; then
4021       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023   (eval $ac_try) 2>&5
4024   ac_status=$?
4025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026   (exit $ac_status); }; }; then :;
4027       else
4028         cc_works_part=norun
4029       fi
4030     fi
4031   else
4032     cc_works_part=no
4033   fi
4034   if test "$cc_works_part" != yes; then
4035     echo "failed program was:" >&5
4036     cat conftest.c >&5
4037   fi
4038   rm -f conftest* a.out b.out a.exe a_out.exe
4039   case $cc_works_part in
4040     yes)
4041
4042       ;;
4043     no)
4044       gmp_prog_cc_works="no, double -> ulong conversion"
4045       ;;
4046     norun)
4047       gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
4048       ;;
4049   esac
4050 fi
4051
4052
4053
4054
4055 if test "$gmp_prog_cc_works" = yes; then
4056   # remove anything that might look like compiler output to our "||" expression
4057   rm -f conftest* a.out b.out a.exe a_out.exe
4058   cat >conftest.c <<EOF
4059 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
4060    the assembler doesn't know hppa 2.0 instructions.  fneg is a 2.0
4061    instruction, and a negation like this comes out using it.  */
4062 double fneg_data;
4063 unsigned long fneg () { return -fneg_data; }
4064
4065 int main () { return 0; }
4066 EOF
4067   echo "Test compile: double negation" >&5
4068   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4069   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4070   (eval $gmp_compile) 2>&5
4071   ac_status=$?
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); }; then
4074     cc_works_part=yes
4075     if test "$cross_compiling" = no; then
4076       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078   (eval $ac_try) 2>&5
4079   ac_status=$?
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); }; }; then :;
4082       else
4083         cc_works_part=norun
4084       fi
4085     fi
4086   else
4087     cc_works_part=no
4088   fi
4089   if test "$cc_works_part" != yes; then
4090     echo "failed program was:" >&5
4091     cat conftest.c >&5
4092   fi
4093   rm -f conftest* a.out b.out a.exe a_out.exe
4094   case $cc_works_part in
4095     yes)
4096
4097       ;;
4098     no)
4099       gmp_prog_cc_works="no, double negation"
4100       ;;
4101     norun)
4102       gmp_prog_cc_works="no, double negation, program does not run"
4103       ;;
4104   esac
4105 fi
4106
4107
4108
4109
4110 if test "$gmp_prog_cc_works" = yes; then
4111   # remove anything that might look like compiler output to our "||" expression
4112   rm -f conftest* a.out b.out a.exe a_out.exe
4113   cat >conftest.c <<EOF
4114 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
4115    (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
4116    those instructions.  Not sure how much of the gmp code will come out
4117    wanting sse2, but it's easiest to reject an option we know is bad.  */
4118 double ftod_data;
4119 float ftod () { return (float) ftod_data; }
4120
4121 int main () { return 0; }
4122 EOF
4123   echo "Test compile: double -> float conversion" >&5
4124   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4125   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4126   (eval $gmp_compile) 2>&5
4127   ac_status=$?
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); }; then
4130     cc_works_part=yes
4131     if test "$cross_compiling" = no; then
4132       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134   (eval $ac_try) 2>&5
4135   ac_status=$?
4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); }; }; then :;
4138       else
4139         cc_works_part=norun
4140       fi
4141     fi
4142   else
4143     cc_works_part=no
4144   fi
4145   if test "$cc_works_part" != yes; then
4146     echo "failed program was:" >&5
4147     cat conftest.c >&5
4148   fi
4149   rm -f conftest* a.out b.out a.exe a_out.exe
4150   case $cc_works_part in
4151     yes)
4152
4153       ;;
4154     no)
4155       gmp_prog_cc_works="no, double -> float conversion"
4156       ;;
4157     norun)
4158       gmp_prog_cc_works="no, double -> float conversion, program does not run"
4159       ;;
4160   esac
4161 fi
4162
4163
4164
4165
4166 if test "$gmp_prog_cc_works" = yes; then
4167   # remove anything that might look like compiler output to our "||" expression
4168   rm -f conftest* a.out b.out a.exe a_out.exe
4169   cat >conftest.c <<EOF
4170 /* The following provokes an internal compiler error from gcc version
4171    "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
4172    values being spilled into floating point registers.  The problem doesn't
4173    show up all the time, but has occurred enough in GMP for us to reject
4174    this compiler+flags.  */
4175 struct try_t
4176 {
4177  char dst[2];
4178  char size;
4179  long d0, d1, d2, d3, d4, d5, d6;
4180  char overlap;
4181 };
4182 struct try_t param[6];
4183 int
4184 param_init ()
4185 {
4186  struct try_t *p;
4187  memcpy (p, &param[ 2 ], sizeof (*p));
4188  memcpy (p, &param[ 2 ], sizeof (*p));
4189  p->size = 2;
4190  memcpy (p, &param[ 1 ], sizeof (*p));
4191  p->dst[0] = 1;
4192  p->overlap = 2;
4193  memcpy (p, &param[ 3 ], sizeof (*p));
4194  p->dst[0] = 1;
4195  p->overlap = 8;
4196  memcpy (p, &param[ 4 ], sizeof (*p));
4197  memcpy (p, &param[ 4 ], sizeof (*p));
4198  p->overlap = 8;
4199  memcpy (p, &param[ 5 ], sizeof (*p));
4200  memcpy (p, &param[ 5 ], sizeof (*p));
4201  memcpy (p, &param[ 5 ], sizeof (*p));
4202  return 0;
4203 }
4204
4205 int main () { return 0; }
4206 EOF
4207   echo "Test compile: gnupro alpha ev6 char spilling" >&5
4208   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4209   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4210   (eval $gmp_compile) 2>&5
4211   ac_status=$?
4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213   (exit $ac_status); }; then
4214     cc_works_part=yes
4215     if test "$cross_compiling" = no; then
4216       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218   (eval $ac_try) 2>&5
4219   ac_status=$?
4220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221   (exit $ac_status); }; }; then :;
4222       else
4223         cc_works_part=norun
4224       fi
4225     fi
4226   else
4227     cc_works_part=no
4228   fi
4229   if test "$cc_works_part" != yes; then
4230     echo "failed program was:" >&5
4231     cat conftest.c >&5
4232   fi
4233   rm -f conftest* a.out b.out a.exe a_out.exe
4234   case $cc_works_part in
4235     yes)
4236
4237       ;;
4238     no)
4239       gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
4240       ;;
4241     norun)
4242       gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
4243       ;;
4244   esac
4245 fi
4246
4247
4248
4249
4250 # __builtin_alloca is not available everywhere, check it exists before
4251 # seeing that it works
4252 if test "$gmp_prog_cc_works" = yes; then
4253   # remove anything that might look like compiler output to our "||" expression
4254   rm -f conftest* a.out b.out a.exe a_out.exe
4255   cat >conftest.c <<EOF
4256 int k; int foo () { __builtin_alloca (k); }
4257 EOF
4258   echo "Test compile: __builtin_alloca availability" >&5
4259   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4260   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4261   (eval $gmp_compile) 2>&5
4262   ac_status=$?
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); }; then
4265     cc_works_part=yes
4266     if test "$cross_compiling" = no; then
4267       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269   (eval $ac_try) 2>&5
4270   ac_status=$?
4271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272   (exit $ac_status); }; }; then :;
4273       else
4274         cc_works_part=norun
4275       fi
4276     fi
4277   else
4278     cc_works_part=no
4279   fi
4280   if test "$cc_works_part" != yes; then
4281     echo "failed program was:" >&5
4282     cat conftest.c >&5
4283   fi
4284   rm -f conftest* a.out b.out a.exe a_out.exe
4285   case $cc_works_part in
4286     yes)
4287       if test "$gmp_prog_cc_works" = yes; then
4288   # remove anything that might look like compiler output to our "||" expression
4289   rm -f conftest* a.out b.out a.exe a_out.exe
4290   cat >conftest.c <<EOF
4291 /* The following provokes an internal compiler error from Itanium HP-UX cc
4292     under +O2 or higher.  We use this sort of code in mpn/generic/mul_fft.c. */
4293 int k;
4294 int foo ()
4295 {
4296   int i, **a;
4297   a = __builtin_alloca (k);
4298   for (i = 0; i <= k; i++)
4299     a[i] = __builtin_alloca (1 << i);
4300 }
4301
4302 int main () { return 0; }
4303 EOF
4304   echo "Test compile: alloca array" >&5
4305   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4306   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4307   (eval $gmp_compile) 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); }; then
4311     cc_works_part=yes
4312     if test "$cross_compiling" = no; then
4313       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315   (eval $ac_try) 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); }; }; then :;
4319       else
4320         cc_works_part=norun
4321       fi
4322     fi
4323   else
4324     cc_works_part=no
4325   fi
4326   if test "$cc_works_part" != yes; then
4327     echo "failed program was:" >&5
4328     cat conftest.c >&5
4329   fi
4330   rm -f conftest* a.out b.out a.exe a_out.exe
4331   case $cc_works_part in
4332     yes)
4333
4334       ;;
4335     no)
4336       gmp_prog_cc_works="no, alloca array"
4337       ;;
4338     norun)
4339       gmp_prog_cc_works="no, alloca array, program does not run"
4340       ;;
4341   esac
4342 fi
4343
4344
4345
4346       ;;
4347     no)
4348
4349       ;;
4350     norun)
4351
4352       ;;
4353   esac
4354 fi
4355
4356
4357 if test "$gmp_prog_cc_works" = yes; then
4358   # remove anything that might look like compiler output to our "||" expression
4359   rm -f conftest* a.out b.out a.exe a_out.exe
4360   cat >conftest.c <<EOF
4361 /* The following provokes an internal error from the assembler on
4362    power2-ibm-aix4.3.1.0.  gcc -mrios2 compiles to nabs+fcirz, and this
4363    results in "Internal error related to the source program domain".
4364
4365    For reference it seems to be the combination of nabs+fcirz which is bad,
4366    not either alone.  This sort of thing occurs in mpz/get_str.c with the
4367    way double chars_per_bit_exactly is applied in MPN_SIZEINBASE.  Perhaps
4368    if that code changes to a scaled-integer style then we won't need this
4369    test.  */
4370
4371 double fp[1];
4372 int x;
4373 int f ()
4374 {
4375   int a;
4376   a = (x >= 0 ? x : -x);
4377   return a * fp[0];
4378 }
4379
4380 int main () { return 0; }
4381 EOF
4382   echo "Test compile: abs int -> double conversion" >&5
4383   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4384   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4385   (eval $gmp_compile) 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }; then
4389     cc_works_part=yes
4390     if test "$cross_compiling" = no; then
4391       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393   (eval $ac_try) 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }; }; then :;
4397       else
4398         cc_works_part=norun
4399       fi
4400     fi
4401   else
4402     cc_works_part=no
4403   fi
4404   if test "$cc_works_part" != yes; then
4405     echo "failed program was:" >&5
4406     cat conftest.c >&5
4407   fi
4408   rm -f conftest* a.out b.out a.exe a_out.exe
4409   case $cc_works_part in
4410     yes)
4411
4412       ;;
4413     no)
4414       gmp_prog_cc_works="no, abs int -> double conversion"
4415       ;;
4416     norun)
4417       gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
4418       ;;
4419   esac
4420 fi
4421
4422
4423
4424
4425 if test "$gmp_prog_cc_works" = yes; then
4426   # remove anything that might look like compiler output to our "||" expression
4427   rm -f conftest* a.out b.out a.exe a_out.exe
4428   cat >conftest.c <<EOF
4429 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
4430    Extracted from tests/mpn/t-iord_u.c.  Causes Apple's gcc 3.3 build 1640 and
4431    1666 to segfault with e.g., -O2 -mpowerpc64.  */
4432
4433 #ifdef __GNUC__
4434 typedef unsigned long long t1;typedef t1*t2;
4435 __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
4436 {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
4437 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
4438 for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}}
4439 h(){}g(){}
4440 #else
4441 int dummy;
4442 #endif
4443
4444 int main () { return 0; }
4445 EOF
4446   echo "Test compile: long long reliability test 1" >&5
4447   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4448   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4449   (eval $gmp_compile) 2>&5
4450   ac_status=$?
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); }; then
4453     cc_works_part=yes
4454     if test "$cross_compiling" = no; then
4455       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457   (eval $ac_try) 2>&5
4458   ac_status=$?
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); }; }; then :;
4461       else
4462         cc_works_part=norun
4463       fi
4464     fi
4465   else
4466     cc_works_part=no
4467   fi
4468   if test "$cc_works_part" != yes; then
4469     echo "failed program was:" >&5
4470     cat conftest.c >&5
4471   fi
4472   rm -f conftest* a.out b.out a.exe a_out.exe
4473   case $cc_works_part in
4474     yes)
4475
4476       ;;
4477     no)
4478       gmp_prog_cc_works="no, long long reliability test 1"
4479       ;;
4480     norun)
4481       gmp_prog_cc_works="no, long long reliability test 1, program does not run"
4482       ;;
4483   esac
4484 fi
4485
4486
4487
4488
4489 if test "$gmp_prog_cc_works" = yes; then
4490   # remove anything that might look like compiler output to our "||" expression
4491   rm -f conftest* a.out b.out a.exe a_out.exe
4492   cat >conftest.c <<EOF
4493 /* The following provokes an internal compiler error on powerpc-apple-darwin.
4494    Extracted from mpz/cfdiv_q_2exp.c.  Causes Apple's gcc 3.3 build 1640 and
4495    1666 to get an ICE with -O1 -mpowerpc64.  */
4496
4497 #ifdef __GNUC__
4498 f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}
4499 g(){}
4500 #else
4501 int dummy;
4502 #endif
4503
4504 int main () { return 0; }
4505 EOF
4506   echo "Test compile: long long reliability test 2" >&5
4507   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4508   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4509   (eval $gmp_compile) 2>&5
4510   ac_status=$?
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); }; then
4513     cc_works_part=yes
4514     if test "$cross_compiling" = no; then
4515       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517   (eval $ac_try) 2>&5
4518   ac_status=$?
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); }; }; then :;
4521       else
4522         cc_works_part=norun
4523       fi
4524     fi
4525   else
4526     cc_works_part=no
4527   fi
4528   if test "$cc_works_part" != yes; then
4529     echo "failed program was:" >&5
4530     cat conftest.c >&5
4531   fi
4532   rm -f conftest* a.out b.out a.exe a_out.exe
4533   case $cc_works_part in
4534     yes)
4535
4536       ;;
4537     no)
4538       gmp_prog_cc_works="no, long long reliability test 2"
4539       ;;
4540     norun)
4541       gmp_prog_cc_works="no, long long reliability test 2, program does not run"
4542       ;;
4543   esac
4544 fi
4545
4546
4547
4548
4549 if test "$gmp_prog_cc_works" = yes; then
4550   # remove anything that might look like compiler output to our "||" expression
4551   rm -f conftest* a.out b.out a.exe a_out.exe
4552   cat >conftest.c <<EOF
4553 /* The following is mis-compiled by HP ia-64 cc version
4554         cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
4555    under "cc +O3", both in +DD32 and +DD64 modes.  The mpn_lshift_com gets
4556    inlined and its return value somehow botched to be 0 instead of 1.  This
4557    arises in the real mpn_lshift_com in mul_fft.c.  A lower optimization
4558    level, like +O2 seems ok.  This code needs to be run to show the problem,
4559    but that's fine, the offending cc is a native-only compiler so we don't
4560    have to worry about cross compiling.  */
4561
4562 unsigned long
4563 lshift_com (rp, up, n, cnt)
4564   unsigned long *rp;
4565   unsigned long *up;
4566   long n;
4567   unsigned cnt;
4568 {
4569   unsigned long retval, high_limb, low_limb;
4570   unsigned tnc;
4571   long i;
4572   tnc = 8 * sizeof (unsigned long) - cnt;
4573   low_limb = *up++;
4574   retval = low_limb >> tnc;
4575   high_limb = low_limb << cnt;
4576   for (i = n - 1; i != 0; i--)
4577     {
4578       low_limb = *up++;
4579       *rp++ = ~(high_limb | (low_limb >> tnc));
4580       high_limb = low_limb << cnt;
4581     }
4582   return retval;
4583 }
4584 int
4585 main ()
4586 {
4587   unsigned long cy, rp[2], up[2];
4588   up[0] = ~ 0L;
4589   up[1] = 0;
4590   cy = lshift_com (rp, up, 2L, 1);
4591   if (cy != 1L)
4592     return 1;
4593   return 0;
4594 }
4595
4596 EOF
4597   echo "Test compile: mpn_lshift_com optimization" >&5
4598   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4599   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4600   (eval $gmp_compile) 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); }; then
4604     cc_works_part=yes
4605     if test "$cross_compiling" = no; then
4606       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608   (eval $ac_try) 2>&5
4609   ac_status=$?
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); }; }; then :;
4612       else
4613         cc_works_part=norun
4614       fi
4615     fi
4616   else
4617     cc_works_part=no
4618   fi
4619   if test "$cc_works_part" != yes; then
4620     echo "failed program was:" >&5
4621     cat conftest.c >&5
4622   fi
4623   rm -f conftest* a.out b.out a.exe a_out.exe
4624   case $cc_works_part in
4625     yes)
4626
4627       ;;
4628     no)
4629       gmp_prog_cc_works="no, mpn_lshift_com optimization"
4630       ;;
4631     norun)
4632       gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
4633       ;;
4634   esac
4635 fi
4636
4637
4638
4639 if test "$gmp_prog_cc_works" = yes; then
4640   # remove anything that might look like compiler output to our "||" expression
4641   rm -f conftest* a.out b.out a.exe a_out.exe
4642   cat >conftest.c <<EOF
4643 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
4644     "icc -O3",  After several calls, the function writes parial garbage to
4645     the result vector.  Perhaps relates to the chk.a.nc insn.  This code needs
4646     to be run to show the problem, but that's fine, the offending cc is a
4647     native-only compiler so we don't have to worry about cross compiling.  */
4648
4649 #include <stdlib.h>
4650 void
4651 lshift_com (rp, up, n, cnt)
4652   unsigned long *rp;
4653   unsigned long *up;
4654   long n;
4655   unsigned cnt;
4656 {
4657   unsigned long high_limb, low_limb;
4658   unsigned tnc;
4659   long i;
4660   up += n;
4661   rp += n;
4662   tnc = 8 * sizeof (unsigned long) - cnt;
4663   low_limb = *--up;
4664   high_limb = low_limb << cnt;
4665   for (i = n - 1; i != 0; i--)
4666     {
4667       low_limb = *--up;
4668       *--rp = ~(high_limb | (low_limb >> tnc));
4669       high_limb = low_limb << cnt;
4670     }
4671   *--rp = ~high_limb;
4672 }
4673 int
4674 main ()
4675 {
4676   unsigned long *r, *r2;
4677   unsigned long a[88 + 1];
4678   long i;
4679   for (i = 0; i < 88 + 1; i++)
4680     a[i] = ~0L;
4681   r = malloc (10000 * sizeof (unsigned long));
4682   r2 = r;
4683   for (i = 0; i < 528; i += 22)
4684     {
4685       lshift_com (r2, a,
4686                   i / (8 * sizeof (unsigned long)) + 1,
4687                   i % (8 * sizeof (unsigned long)));
4688       r2 += 88 + 1;
4689     }
4690   if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
4691       r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
4692     abort ();
4693   return 0;
4694 }
4695
4696 EOF
4697   echo "Test compile: mpn_lshift_com optimization 2" >&5
4698   gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4699   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4700   (eval $gmp_compile) 2>&5
4701   ac_status=$?
4702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); }; then
4704     cc_works_part=yes
4705     if test "$cross_compiling" = no; then
4706       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708   (eval $ac_try) 2>&5
4709   ac_status=$?
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); }; }; then :;
4712       else
4713         cc_works_part=norun
4714       fi
4715     fi
4716   else
4717     cc_works_part=no
4718   fi
4719   if test "$cc_works_part" != yes; then
4720     echo "failed program was:" >&5
4721     cat conftest.c >&5
4722   fi
4723   rm -f conftest* a.out b.out a.exe a_out.exe
4724   case $cc_works_part in
4725     yes)
4726
4727       ;;
4728     no)
4729       gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
4730       ;;
4731     norun)
4732       gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
4733       ;;
4734   esac
4735 fi
4736
4737
4738
4739
4740 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
4741 # by recent versions of gcc.
4742 #
4743 if test "$gmp_prog_cc_works" = yes; then
4744   case $host in
4745     i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-*)
4746       # this problem only arises in PIC code, so don't need to test when
4747       # --disable-shared.  We don't necessarily have $enable_shared set to
4748       # yes at this point, it will still be unset for the default (which is
4749       # yes); hence the use of "!= no".
4750       if test "$enable_shared" != no; then
4751         echo "Testing gcc GOT with eax emitted" >&5
4752 cat >conftest.c <<\EOF
4753 int foo;
4754 int bar () { return foo; }
4755 EOF
4756 tmp_got_emitted=no
4757 gmp_compile="$cc $cflags $cppflags -fPIC -S conftest.c >&5 2>&1"
4758 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4759   (eval $gmp_compile) 2>&5
4760   ac_status=$?
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); }; then
4763   if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
4764     tmp_got_emitted=yes
4765   fi
4766 fi
4767 rm -f conftest.*
4768 echo "Result: $tmp_got_emitted" >&5
4769 if test "$tmp_got_emitted" = yes; then
4770   echo "Testing gas GOT with eax good" >&5
4771 cat >conftest.awk <<\EOF
4772 BEGIN {
4773   want[0]  = "001"
4774   want[1]  = "043"
4775   want[2]  = "105"
4776   want[3]  = "147"
4777   want[4]  = "211"
4778   want[5]  = "253"
4779   want[6]  = "315"
4780   want[7]  = "357"
4781
4782   want[8]  = "005"
4783   want[9]  = "002"
4784   want[10] = "000"
4785   want[11] = "000"
4786   want[12] = "000"
4787
4788   want[13] = "376"
4789   want[14] = "334"
4790   want[15] = "272"
4791   want[16] = "230"
4792   want[17] = "166"
4793   want[18] = "124"
4794   want[19] = "062"
4795   want[20] = "020"
4796
4797   result = "yes"
4798 }
4799 {
4800   for (f = 2; f <= NF; f++)
4801     {
4802       for (i = 0; i < 20; i++)
4803         got[i] = got[i+1];
4804       got[20] = $f;
4805
4806       found = 1
4807       for (i = 0; i < 21; i++)
4808         if (got[i] != want[i])
4809           {
4810             found = 0
4811             break
4812           }
4813       if (found)
4814         {
4815           result = "no"
4816           exit
4817         }
4818     }
4819 }
4820 END {
4821   print result
4822 }
4823 EOF
4824 cat >conftest.s <<\EOF
4825         .text
4826         .byte   1, 35, 69, 103, 137, 171, 205, 239
4827         addl    $_GLOBAL_OFFSET_TABLE_, %eax
4828         .byte   254, 220, 186, 152, 118, 84, 50, 16
4829 EOF
4830 tmp_got_good=yes
4831 gmp_compile="$cc $cflags $cppflags -fPIC -o conftest.o -c conftest.s >&5 2>&1"
4832 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4833   (eval $gmp_compile) 2>&5
4834   ac_status=$?
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); }; then
4837   tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
4838 fi
4839 rm -f conftest.*
4840 echo "Result: $tmp_got_good" >&5
4841 if test "$tmp_got_good" = no; then
4842   gmp_prog_cc_works="no, bad gas GOT with eax"
4843 else
4844   :
4845 fi
4846
4847 else
4848   :
4849 fi
4850
4851       fi
4852       ;;
4853   esac
4854 fi
4855
4856 echo "$as_me:$LINENO: result: $gmp_prog_cc_works" >&5
4857 echo "${ECHO_T}$gmp_prog_cc_works" >&6
4858 case $gmp_prog_cc_works in
4859   yes)
4860
4861     ;;
4862   *)
4863     continue
4864     ;;
4865 esac
4866
4867
4868         # If we're supposed to be using a "long long" for a limb, check that
4869         # it works.
4870                                   eval limb_chosen=\"\$limb$abi1\"
4871         test -n "$limb_chosen" || eval limb_chosen=\"\$limb$abi2\"
4872         if test "$limb_chosen" = longlong; then
4873           echo "$as_me:$LINENO: checking compiler $cc $cflags $cppflags has long long" >&5
4874 echo $ECHO_N "checking compiler $cc $cflags $cppflags has long long... $ECHO_C" >&6
4875 cat >conftest.c <<EOF
4876 long long  foo;
4877 long long  bar () { return foo; }
4878 int main () { return 0; }
4879 EOF
4880 gmp_prog_cc_works=no
4881 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5"
4882 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4883   (eval $gmp_compile) 2>&5
4884   ac_status=$?
4885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886   (exit $ac_status); }; then
4887   gmp_prog_cc_works=yes
4888 else
4889   echo "failed program was:" >&5
4890   cat conftest.c >&5
4891 fi
4892 rm -f conftest* a.out b.out a.exe a_out.exe
4893 echo "$as_me:$LINENO: result: $gmp_prog_cc_works" >&5
4894 echo "${ECHO_T}$gmp_prog_cc_works" >&6
4895 if test $gmp_prog_cc_works = yes; then
4896   :
4897 else
4898   continue
4899 fi
4900
4901         fi
4902
4903         # The tests to perform on this $cc, if any
4904                                eval testlist=\"\$${ccbase}${abi1}_testlist\"
4905         test -n "$testlist" || eval testlist=\"\$${ccbase}${abi2}_testlist\"
4906         test -n "$testlist" || eval testlist=\"\$any${abi1}_testlist\"
4907         test -n "$testlist" || eval testlist=\"\$any${abi2}_testlist\"
4908
4909         testlist_pass=yes
4910         for tst in $testlist; do
4911           case $tst in
4912           hpc-hppa-2-0)   echo "$as_me:$LINENO: checking whether HP compiler $cc is good for 64-bits" >&5
4913 echo $ECHO_N "checking whether HP compiler $cc is good for 64-bits... $ECHO_C" >&6
4914 # Bad compiler output:
4915 #   ccom: HP92453-01 G.10.32.05 HP C Compiler
4916 # Good compiler output:
4917 #   ccom: HP92453-01 A.10.32.30 HP C Compiler
4918 # Let A.10.32.30 or higher be ok.
4919 echo >conftest.c
4920 gmp_tmp_vs=`$cc  -V -c -o conftest.$OBJEXT conftest.c 2>&1 | grep "^ccom:"`
4921 echo "Version string: $gmp_tmp_vs" >&5
4922 rm conftest*
4923 gmp_tmp_v1=`echo $gmp_tmp_vs | sed 's/.* .\.\([0-9]*\).*/\1/'`
4924 gmp_tmp_v2=`echo $gmp_tmp_vs | sed 's/.* .\..*\.\(.*\)\..* HP C.*/\1/'`
4925 gmp_tmp_v3=`echo $gmp_tmp_vs | sed 's/.* .\..*\..*\.\(.*\) HP C.*/\1/'`
4926 echo "Version number: $gmp_tmp_v1.$gmp_tmp_v2.$gmp_tmp_v3" >&5
4927 if test -z "$gmp_tmp_v1"; then
4928   gmp_hpc_64bit=not-applicable
4929 else
4930   gmp_compare_ge=no
4931 if test -n "$gmp_tmp_v1"; then
4932   if test "$gmp_tmp_v1" -gt 10; then
4933     gmp_compare_ge=yes
4934   else
4935     if test "$gmp_tmp_v1" -eq 10; then
4936       if test -n "$gmp_tmp_v2"; then
4937   if test "$gmp_tmp_v2" -gt 32; then
4938     gmp_compare_ge=yes
4939   else
4940     if test "$gmp_tmp_v2" -eq 32; then
4941       if test -n "$gmp_tmp_v3" && test "$gmp_tmp_v3" -ge 30; then
4942   gmp_compare_ge=yes
4943 fi
4944
4945     fi
4946   fi
4947 fi
4948
4949     fi
4950   fi
4951 fi
4952
4953
4954   gmp_hpc_64bit=$gmp_compare_ge
4955 fi
4956 echo "$as_me:$LINENO: result: $gmp_hpc_64bit" >&5
4957 echo "${ECHO_T}$gmp_hpc_64bit" >&6
4958 if test $gmp_hpc_64bit = yes; then
4959   :
4960 else
4961   testlist_pass=no
4962 fi
4963  ;;
4964           gcc-arm-umodsi) echo "$as_me:$LINENO: checking whether ARM gcc unsigned division works" >&5
4965 echo $ECHO_N "checking whether ARM gcc unsigned division works... $ECHO_C" >&6
4966 tmp_version=`$cc --version`
4967 echo "$tmp_version" >&5
4968 case $tmp_version in
4969   2.95 | 2.95.[123])
4970     testlist_pass=no
4971     gmp_gcc_arm_umodsi_result="no, gcc 2.95.[0123]" ;;
4972   *)
4973     :
4974     gmp_gcc_arm_umodsi_result=yes ;;
4975 esac
4976 echo "$as_me:$LINENO: result: $gmp_gcc_arm_umodsi_result" >&5
4977 echo "${ECHO_T}$gmp_gcc_arm_umodsi_result" >&6
4978  ;;
4979           gcc-mips-o32)   echo "$as_me:$LINENO: checking whether gcc supports o32" >&5
4980 echo $ECHO_N "checking whether gcc supports o32... $ECHO_C" >&6
4981 echo 'int x;' >conftest.c
4982 echo "$cc -mabi=32 -c conftest.c" >&5
4983 if $cc -mabi=32 -c conftest.c >conftest.out 2>&1; then
4984   result=yes
4985 else
4986   cat conftest.out >&5
4987   if grep "cc1: Invalid option \`abi=32'" conftest.out >/dev/null; then
4988     result=yes
4989   else
4990     result=no
4991   fi
4992 fi
4993 rm -f conftest.*
4994 echo "$as_me:$LINENO: result: $result" >&5
4995 echo "${ECHO_T}$result" >&6
4996 if test $result = yes; then
4997   :
4998 else
4999   testlist_pass=no
5000 fi
5001  ;;
5002           hppa-level-2.0) echo "$as_me:$LINENO: checking $cc $cflags assembler knows hppa 2.0" >&5
5003 echo $ECHO_N "checking $cc $cflags assembler knows hppa 2.0... $ECHO_C" >&6
5004 result=no
5005 cat >conftest.s <<EOF
5006         .level 2.0
5007 EOF
5008 gmp_compile="$cc $cflags -c conftest.s >&5 2>&1"
5009 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5010   (eval $gmp_compile) 2>&5
5011   ac_status=$?
5012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013   (exit $ac_status); }; then
5014   result=yes
5015 else
5016   echo "failed program was" >&5
5017   cat conftest.s >&5
5018 fi
5019 rm -f conftest*
5020 echo "$as_me:$LINENO: result: $result" >&5
5021 echo "${ECHO_T}$result" >&6
5022 if test "$result" = yes; then
5023   :
5024 else
5025   testlist_pass=no
5026 fi
5027  ;;
5028           sizeof*)       echo "configure: testlist $tst" >&5
5029 gmp_sizeof_type=`echo "$tst" | sed 's/sizeof-\([a-z]*\).*/\1/'`
5030 gmp_sizeof_want=`echo "$tst" | sed 's/sizeof-[a-z]*-\([0-9]*\).*/\1/'`
5031 echo "$as_me:$LINENO: checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want" >&5
5032 echo $ECHO_N "checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want... $ECHO_C" >&6
5033 cat >conftest.c <<EOF
5034 int
5035 main ()
5036 {
5037   static int test_array [1 - 2 * (long) (sizeof ($gmp_sizeof_type) != $gmp_sizeof_want)];
5038   test_array[0] = 0;
5039   return 0;
5040 }
5041 EOF
5042 gmp_c_testlist_sizeof=no
5043 gmp_compile="$cc $cflags -c conftest.c >&5"
5044 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5045   (eval $gmp_compile) 2>&5
5046   ac_status=$?
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); }; then
5049   gmp_c_testlist_sizeof=yes
5050 fi
5051 rm -f conftest*
5052 echo "$as_me:$LINENO: result: $gmp_c_testlist_sizeof" >&5
5053 echo "${ECHO_T}$gmp_c_testlist_sizeof" >&6
5054 if test $gmp_c_testlist_sizeof = yes; then
5055   :
5056 else
5057   testlist_pass=no
5058 fi
5059  ;;
5060           esac
5061           if test $testlist_pass = no; then break; fi
5062         done
5063
5064         if test $testlist_pass = yes; then
5065           found_compiler=yes
5066           break
5067         fi
5068       done
5069
5070       if test $found_compiler = yes; then break; fi
5071     done
5072
5073     if test $found_compiler = yes; then break; fi
5074   done
5075
5076   if test $found_compiler = yes; then break; fi
5077 done
5078
5079
5080 # If we recognised the CPU, as indicated by $path being set, then insist
5081 # that we have a working compiler, either from our $cclist choices or from
5082 # $CC.  We can't let AC_PROG_CC look around for a compiler because it might
5083 # find one that we've rejected (for not supporting the modes our asm code
5084 # demands, etc).
5085 #
5086 # If we didn't recognise the CPU (and this includes host_cpu=none), then
5087 # fall through and let AC_PROG_CC look around for a compiler too.  This is
5088 # mostly in the interests of following a standard autoconf setup, after all
5089 # we've already tested cc and gcc adequately (hopefully).  As of autoconf
5090 # 2.50 the only thing AC_PROG_CC really adds is a check for "cl" (Microsoft
5091 # C on MS-DOS systems).
5092 #
5093 if test $found_compiler = no && test -n "$path"; then
5094   { { echo "$as_me:$LINENO: error: could not find a working compiler, see config.log for details" >&5
5095 echo "$as_me: error: could not find a working compiler, see config.log for details" >&2;}
5096    { (exit 1); exit 1; }; }
5097 fi
5098
5099
5100 if test $found_compiler = yes; then
5101
5102   # If we're creating CFLAGS, then look for optional additions.  If the user
5103   # set CFLAGS then leave it alone.
5104   #
5105   if test "$test_CFLAGS" != set; then
5106                           eval optlist=\"\$${ccbase}${abi1}_cflags_optlist\"
5107     test -n "$optlist" || eval optlist=\"\$${ccbase}${abi2}_cflags_optlist\"
5108
5109     for opt in $optlist; do
5110                              eval optflags=\"\$${ccbase}${abi1}_cflags_${opt}\"
5111       test -n "$optflags" || eval optflags=\"\$${ccbase}${abi2}_cflags_${opt}\"
5112       test -n "$optflags" || eval optflags=\"\$${ccbase}_cflags_${opt}\"
5113
5114       for flag in $optflags; do
5115
5116         # ~ respresents a space in an option spec
5117         flag=`echo "$flag" | tr '~' ' '`
5118
5119         case $flag in
5120           -march=pentium4 | -march=k8)
5121             # For -march settings which enable SSE2 we exclude certain bad
5122             # gcc versions and we need an OS knowing how to save xmm regs.
5123             #
5124             # This is only for ABI=32, any 64-bit gcc is good and any OS
5125             # knowing x86_64 will know xmm.
5126             #
5127             # -march=k8 was only introduced in gcc 3.3, so we shouldn't need
5128             # the GMP_GCC_PENTIUM4_SSE2 check (for gcc 3.2 and prior).  But
5129             # it doesn't hurt to run it anyway, sharing code with the
5130             # pentium4 case.
5131             #
5132             if test "$abi" = 32; then
5133               echo "$as_me:$LINENO: checking whether gcc is good for sse2" >&5
5134 echo $ECHO_N "checking whether gcc is good for sse2... $ECHO_C" >&6
5135 case `$cc $cflags $cppflags -dumpversion` in
5136   3.[012] | 3.[012].*) result=no ;;
5137   *)                     result=yes ;;
5138 esac
5139 echo "$as_me:$LINENO: result: $result" >&5
5140 echo "${ECHO_T}$result" >&6
5141 if test "$result" = yes; then
5142   :
5143 else
5144   continue
5145 fi
5146
5147               echo "$as_me:$LINENO: checking whether the operating system supports XMM registers" >&5
5148 echo $ECHO_N "checking whether the operating system supports XMM registers... $ECHO_C" >&6
5149 if test "${gmp_cv_os_x86_xmm+set}" = set; then
5150   echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152   if test "$build" = "$host"; then
5153   # remove anything that might look like compiler output to our "||" expression
5154   rm -f conftest* a.out b.out a.exe a_out.exe
5155   cat >conftest.s <<EOF
5156         .text
5157 main:
5158 _main:
5159         .globl  main
5160         .globl  _main
5161         .byte   0x0f, 0x57, 0xc0
5162         xorl    %eax, %eax
5163         ret
5164 EOF
5165   gmp_compile="$cc $cflags $cppflags conftest.s -o conftest >&5"
5166   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5167   (eval $gmp_compile) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); }; then
5171     if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173   (eval $ac_try) 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }; }; then
5177       gmp_cv_os_x86_xmm=yes
5178     else
5179       gmp_cv_os_x86_xmm=no
5180     fi
5181   else
5182     { echo "$as_me:$LINENO: WARNING: Oops, cannot compile test program" >&5
5183 echo "$as_me: WARNING: Oops, cannot compile test program" >&2;}
5184   fi
5185   rm -f conftest*
5186 fi
5187
5188 if test -z "$gmp_cv_os_x86_xmm"; then
5189   case $host_os in
5190     freebsd[123] | freebsd[123].*)
5191       gmp_cv_os_x86_xmm=no ;;
5192     freebsd*)
5193       gmp_cv_os_x86_xmm=yes ;;
5194     *)
5195       gmp_cv_os_x86_xmm=probably ;;
5196   esac
5197 fi
5198
5199 fi
5200 echo "$as_me:$LINENO: result: $gmp_cv_os_x86_xmm" >&5
5201 echo "${ECHO_T}$gmp_cv_os_x86_xmm" >&6
5202
5203 if test "$gmp_cv_os_x86_xmm" = probably; then
5204   { echo "$as_me:$LINENO: WARNING: Not certain of OS support for xmm when cross compiling." >&5
5205 echo "$as_me: WARNING: Not certain of OS support for xmm when cross compiling." >&2;}
5206   { echo "$as_me:$LINENO: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&5
5207 echo "$as_me: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&2;}
5208 fi
5209
5210 case $gmp_cv_os_x86_xmm in
5211 no)
5212   continue
5213   ;;
5214 *)
5215
5216   ;;
5217 esac
5218
5219             fi
5220             ;;
5221           -no-cpp-precomp)
5222             # special check, avoiding a warning
5223             if test "$ccbase" = gcc; then
5224   echo "$as_me:$LINENO: checking compiler $cc $cflags -no-cpp-precomp" >&5
5225 echo $ECHO_N "checking compiler $cc $cflags -no-cpp-precomp... $ECHO_C" >&6
5226   result=no
5227   cat >conftest.c <<EOF
5228 int main () { return 0; }
5229 EOF
5230   gmp_compile="$cc $cflags -no-cpp-precomp conftest.c >conftest.out 2>&1"
5231   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5232   (eval $gmp_compile) 2>&5
5233   ac_status=$?
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); }; then
5236     if grep "unrecognized option.*-no-cpp-precomp" conftest.out >/dev/null; then : ;
5237     else
5238       result=yes
5239     fi
5240   fi
5241   cat conftest.out >&5
5242   rm -f conftest* a.out b.out a.exe a_out.exe
5243   echo "$as_me:$LINENO: result: $result" >&5
5244 echo "${ECHO_T}$result" >&6
5245   if test "$result" = yes; then
5246       cflags="$cflags $flag"
5247                                    break
5248   else
5249       continue
5250   fi
5251 fi
5252
5253             ;;
5254           -Wa,-m*)
5255             case $host in
5256               alpha*-*-*)
5257                 echo "$as_me:$LINENO: checking assembler $cc $cflags $flag" >&5
5258 echo $ECHO_N "checking assembler $cc $cflags $flag... $ECHO_C" >&6
5259 result=no
5260 cat >conftest.c <<EOF
5261 int main () {}
5262 EOF
5263 gmp_compile="$cc $cflags $flag -c conftest.c >conftest.out 2>&1"
5264 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5265   (eval $gmp_compile) 2>&5
5266   ac_status=$?
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); }; then
5269   if grep "Unknown CPU identifier" conftest.out >/dev/null; then : ;
5270   else
5271     result=yes
5272   fi
5273 fi
5274 cat conftest.out >&5
5275 rm -f conftest*
5276 echo "$as_me:$LINENO: result: $result" >&5
5277 echo "${ECHO_T}$result" >&6
5278 if test "$result" = yes; then
5279   :
5280 else
5281   continue
5282 fi
5283
5284               ;;
5285             esac
5286             ;;
5287           -Wa,-oldas)
5288             echo "$as_me:$LINENO: checking for $cc $cflags $cppflags -Wa,-oldas" >&5
5289 echo $ECHO_N "checking for $cc $cflags $cppflags -Wa,-oldas... $ECHO_C" >&6
5290 result=no
5291 cat >conftest.c <<EOF
5292 EOF
5293 echo "with empty conftest.c" >&5
5294 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5 2>&1"
5295 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5296   (eval $gmp_compile) 2>&5
5297   ac_status=$?
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); }; then : ;
5300 else
5301   # empty fails
5302   gmp_compile="$cc $cflags $cppflags -Wa,-oldas -c conftest.c >&5 2>&1"
5303   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5304   (eval $gmp_compile) 2>&5
5305   ac_status=$?
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); }; then
5308     # but with -Wa,-oldas it works
5309     result=yes
5310   fi
5311 fi
5312 rm -f conftest*
5313 echo "$as_me:$LINENO: result: $result" >&5
5314 echo "${ECHO_T}$result" >&6
5315 if test "$result" = yes; then
5316   cflags="$cflags $flag"
5317                              break
5318 else
5319   continue
5320 fi
5321
5322             ;;
5323         esac
5324
5325         echo "$as_me:$LINENO: checking compiler $cc $cflags $cppflags $flag" >&5
5326 echo $ECHO_N "checking compiler $cc $cflags $cppflags $flag... $ECHO_C" >&6
5327 gmp_prog_cc_works=yes
5328
5329 # first see a simple "main()" works, then go on to other checks
5330 if test "$gmp_prog_cc_works" = yes; then
5331   # remove anything that might look like compiler output to our "||" expression
5332   rm -f conftest* a.out b.out a.exe a_out.exe
5333   cat >conftest.c <<EOF
5334
5335 int main () { return 0; }
5336 EOF
5337   echo "Test compile: " >&5
5338   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5339   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5340   (eval $gmp_compile) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; then
5344     cc_works_part=yes
5345     if test "$cross_compiling" = no; then
5346       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348   (eval $ac_try) 2>&5
5349   ac_status=$?
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); }; }; then :;
5352       else
5353         cc_works_part=norun
5354       fi
5355     fi
5356   else
5357     cc_works_part=no
5358   fi
5359   if test "$cc_works_part" != yes; then
5360     echo "failed program was:" >&5
5361     cat conftest.c >&5
5362   fi
5363   rm -f conftest* a.out b.out a.exe a_out.exe
5364   case $cc_works_part in
5365     yes)
5366
5367       ;;
5368     no)
5369       gmp_prog_cc_works="no"
5370       ;;
5371     norun)
5372       gmp_prog_cc_works="no, program does not run"
5373       ;;
5374   esac
5375 fi
5376
5377
5378
5379
5380 if test "$gmp_prog_cc_works" = yes; then
5381   # remove anything that might look like compiler output to our "||" expression
5382   rm -f conftest* a.out b.out a.exe a_out.exe
5383   cat >conftest.c <<EOF
5384 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
5385    (without -maix64), hence detecting an unusable compiler */
5386 void *g() { return (void *) 0; }
5387 void *f() { return g(); }
5388
5389 int main () { return 0; }
5390 EOF
5391   echo "Test compile: function pointer return" >&5
5392   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5393   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5394   (eval $gmp_compile) 2>&5
5395   ac_status=$?
5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397   (exit $ac_status); }; then
5398     cc_works_part=yes
5399     if test "$cross_compiling" = no; then
5400       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402   (eval $ac_try) 2>&5
5403   ac_status=$?
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); }; }; then :;
5406       else
5407         cc_works_part=norun
5408       fi
5409     fi
5410   else
5411     cc_works_part=no
5412   fi
5413   if test "$cc_works_part" != yes; then
5414     echo "failed program was:" >&5
5415     cat conftest.c >&5
5416   fi
5417   rm -f conftest* a.out b.out a.exe a_out.exe
5418   case $cc_works_part in
5419     yes)
5420
5421       ;;
5422     no)
5423       gmp_prog_cc_works="no, function pointer return"
5424       ;;
5425     norun)
5426       gmp_prog_cc_works="no, function pointer return, program does not run"
5427       ;;
5428   esac
5429 fi
5430
5431
5432
5433
5434 if test "$gmp_prog_cc_works" = yes; then
5435   # remove anything that might look like compiler output to our "||" expression
5436   rm -f conftest* a.out b.out a.exe a_out.exe
5437   cat >conftest.c <<EOF
5438 /* The following provokes an invalid instruction syntax from i386 gcc
5439    -march=pentiumpro on Solaris 2.8.  The native sun assembler
5440    requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
5441    least) doesn't know.  */
5442 int n;
5443 int cmov () { return (n >= 0 ? n : 0); }
5444
5445 int main () { return 0; }
5446 EOF
5447   echo "Test compile: cmov instruction" >&5
5448   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5449   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5450   (eval $gmp_compile) 2>&5
5451   ac_status=$?
5452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453   (exit $ac_status); }; then
5454     cc_works_part=yes
5455     if test "$cross_compiling" = no; then
5456       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458   (eval $ac_try) 2>&5
5459   ac_status=$?
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); }; }; then :;
5462       else
5463         cc_works_part=norun
5464       fi
5465     fi
5466   else
5467     cc_works_part=no
5468   fi
5469   if test "$cc_works_part" != yes; then
5470     echo "failed program was:" >&5
5471     cat conftest.c >&5
5472   fi
5473   rm -f conftest* a.out b.out a.exe a_out.exe
5474   case $cc_works_part in
5475     yes)
5476
5477       ;;
5478     no)
5479       gmp_prog_cc_works="no, cmov instruction"
5480       ;;
5481     norun)
5482       gmp_prog_cc_works="no, cmov instruction, program does not run"
5483       ;;
5484   esac
5485 fi
5486
5487
5488
5489
5490 if test "$gmp_prog_cc_works" = yes; then
5491   # remove anything that might look like compiler output to our "||" expression
5492   rm -f conftest* a.out b.out a.exe a_out.exe
5493   cat >conftest.c <<EOF
5494 /* The following provokes a linker invocation problem with gcc 3.0.3
5495    on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630".  The -mcpu=630
5496    option causes gcc to incorrectly select the 32-bit libgcc.a, not
5497    the 64-bit one, and consequently it misses out on the __fixunsdfdi
5498    helper (double -> uint64 conversion).  */
5499 double d;
5500 unsigned long gcc303 () { return (unsigned long) d; }
5501
5502 int main () { return 0; }
5503 EOF
5504   echo "Test compile: double -> ulong conversion" >&5
5505   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5506   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5507   (eval $gmp_compile) 2>&5
5508   ac_status=$?
5509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510   (exit $ac_status); }; then
5511     cc_works_part=yes
5512     if test "$cross_compiling" = no; then
5513       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515   (eval $ac_try) 2>&5
5516   ac_status=$?
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); }; }; then :;
5519       else
5520         cc_works_part=norun
5521       fi
5522     fi
5523   else
5524     cc_works_part=no
5525   fi
5526   if test "$cc_works_part" != yes; then
5527     echo "failed program was:" >&5
5528     cat conftest.c >&5
5529   fi
5530   rm -f conftest* a.out b.out a.exe a_out.exe
5531   case $cc_works_part in
5532     yes)
5533
5534       ;;
5535     no)
5536       gmp_prog_cc_works="no, double -> ulong conversion"
5537       ;;
5538     norun)
5539       gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
5540       ;;
5541   esac
5542 fi
5543
5544
5545
5546
5547 if test "$gmp_prog_cc_works" = yes; then
5548   # remove anything that might look like compiler output to our "||" expression
5549   rm -f conftest* a.out b.out a.exe a_out.exe
5550   cat >conftest.c <<EOF
5551 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
5552    the assembler doesn't know hppa 2.0 instructions.  fneg is a 2.0
5553    instruction, and a negation like this comes out using it.  */
5554 double fneg_data;
5555 unsigned long fneg () { return -fneg_data; }
5556
5557 int main () { return 0; }
5558 EOF
5559   echo "Test compile: double negation" >&5
5560   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5561   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5562   (eval $gmp_compile) 2>&5
5563   ac_status=$?
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); }; then
5566     cc_works_part=yes
5567     if test "$cross_compiling" = no; then
5568       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570   (eval $ac_try) 2>&5
5571   ac_status=$?
5572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573   (exit $ac_status); }; }; then :;
5574       else
5575         cc_works_part=norun
5576       fi
5577     fi
5578   else
5579     cc_works_part=no
5580   fi
5581   if test "$cc_works_part" != yes; then
5582     echo "failed program was:" >&5
5583     cat conftest.c >&5
5584   fi
5585   rm -f conftest* a.out b.out a.exe a_out.exe
5586   case $cc_works_part in
5587     yes)
5588
5589       ;;
5590     no)
5591       gmp_prog_cc_works="no, double negation"
5592       ;;
5593     norun)
5594       gmp_prog_cc_works="no, double negation, program does not run"
5595       ;;
5596   esac
5597 fi
5598
5599
5600
5601
5602 if test "$gmp_prog_cc_works" = yes; then
5603   # remove anything that might look like compiler output to our "||" expression
5604   rm -f conftest* a.out b.out a.exe a_out.exe
5605   cat >conftest.c <<EOF
5606 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
5607    (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
5608    those instructions.  Not sure how much of the gmp code will come out
5609    wanting sse2, but it's easiest to reject an option we know is bad.  */
5610 double ftod_data;
5611 float ftod () { return (float) ftod_data; }
5612
5613 int main () { return 0; }
5614 EOF
5615   echo "Test compile: double -> float conversion" >&5
5616   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5617   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5618   (eval $gmp_compile) 2>&5
5619   ac_status=$?
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); }; then
5622     cc_works_part=yes
5623     if test "$cross_compiling" = no; then
5624       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626   (eval $ac_try) 2>&5
5627   ac_status=$?
5628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629   (exit $ac_status); }; }; then :;
5630       else
5631         cc_works_part=norun
5632       fi
5633     fi
5634   else
5635     cc_works_part=no
5636   fi
5637   if test "$cc_works_part" != yes; then
5638     echo "failed program was:" >&5
5639     cat conftest.c >&5
5640   fi
5641   rm -f conftest* a.out b.out a.exe a_out.exe
5642   case $cc_works_part in
5643     yes)
5644
5645       ;;
5646     no)
5647       gmp_prog_cc_works="no, double -> float conversion"
5648       ;;
5649     norun)
5650       gmp_prog_cc_works="no, double -> float conversion, program does not run"
5651       ;;
5652   esac
5653 fi
5654
5655
5656
5657
5658 if test "$gmp_prog_cc_works" = yes; then
5659   # remove anything that might look like compiler output to our "||" expression
5660   rm -f conftest* a.out b.out a.exe a_out.exe
5661   cat >conftest.c <<EOF
5662 /* The following provokes an internal compiler error from gcc version
5663    "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
5664    values being spilled into floating point registers.  The problem doesn't
5665    show up all the time, but has occurred enough in GMP for us to reject
5666    this compiler+flags.  */
5667 struct try_t
5668 {
5669  char dst[2];
5670  char size;
5671  long d0, d1, d2, d3, d4, d5, d6;
5672  char overlap;
5673 };
5674 struct try_t param[6];
5675 int
5676 param_init ()
5677 {
5678  struct try_t *p;
5679  memcpy (p, &param[ 2 ], sizeof (*p));
5680  memcpy (p, &param[ 2 ], sizeof (*p));
5681  p->size = 2;
5682  memcpy (p, &param[ 1 ], sizeof (*p));
5683  p->dst[0] = 1;
5684  p->overlap = 2;
5685  memcpy (p, &param[ 3 ], sizeof (*p));
5686  p->dst[0] = 1;
5687  p->overlap = 8;
5688  memcpy (p, &param[ 4 ], sizeof (*p));
5689  memcpy (p, &param[ 4 ], sizeof (*p));
5690  p->overlap = 8;
5691  memcpy (p, &param[ 5 ], sizeof (*p));
5692  memcpy (p, &param[ 5 ], sizeof (*p));
5693  memcpy (p, &param[ 5 ], sizeof (*p));
5694  return 0;
5695 }
5696
5697 int main () { return 0; }
5698 EOF
5699   echo "Test compile: gnupro alpha ev6 char spilling" >&5
5700   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5701   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5702   (eval $gmp_compile) 2>&5
5703   ac_status=$?
5704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705   (exit $ac_status); }; then
5706     cc_works_part=yes
5707     if test "$cross_compiling" = no; then
5708       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710   (eval $ac_try) 2>&5
5711   ac_status=$?
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); }; }; then :;
5714       else
5715         cc_works_part=norun
5716       fi
5717     fi
5718   else
5719     cc_works_part=no
5720   fi
5721   if test "$cc_works_part" != yes; then
5722     echo "failed program was:" >&5
5723     cat conftest.c >&5
5724   fi
5725   rm -f conftest* a.out b.out a.exe a_out.exe
5726   case $cc_works_part in
5727     yes)
5728
5729       ;;
5730     no)
5731       gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
5732       ;;
5733     norun)
5734       gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
5735       ;;
5736   esac
5737 fi
5738
5739
5740
5741
5742 # __builtin_alloca is not available everywhere, check it exists before
5743 # seeing that it works
5744 if test "$gmp_prog_cc_works" = yes; then
5745   # remove anything that might look like compiler output to our "||" expression
5746   rm -f conftest* a.out b.out a.exe a_out.exe
5747   cat >conftest.c <<EOF
5748 int k; int foo () { __builtin_alloca (k); }
5749 EOF
5750   echo "Test compile: __builtin_alloca availability" >&5
5751   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5752   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5753   (eval $gmp_compile) 2>&5
5754   ac_status=$?
5755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756   (exit $ac_status); }; then
5757     cc_works_part=yes
5758     if test "$cross_compiling" = no; then
5759       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761   (eval $ac_try) 2>&5
5762   ac_status=$?
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); }; }; then :;
5765       else
5766         cc_works_part=norun
5767       fi
5768     fi
5769   else
5770     cc_works_part=no
5771   fi
5772   if test "$cc_works_part" != yes; then
5773     echo "failed program was:" >&5
5774     cat conftest.c >&5
5775   fi
5776   rm -f conftest* a.out b.out a.exe a_out.exe
5777   case $cc_works_part in
5778     yes)
5779       if test "$gmp_prog_cc_works" = yes; then
5780   # remove anything that might look like compiler output to our "||" expression
5781   rm -f conftest* a.out b.out a.exe a_out.exe
5782   cat >conftest.c <<EOF
5783 /* The following provokes an internal compiler error from Itanium HP-UX cc
5784     under +O2 or higher.  We use this sort of code in mpn/generic/mul_fft.c. */
5785 int k;
5786 int foo ()
5787 {
5788   int i, **a;
5789   a = __builtin_alloca (k);
5790   for (i = 0; i <= k; i++)
5791     a[i] = __builtin_alloca (1 << i);
5792 }
5793
5794 int main () { return 0; }
5795 EOF
5796   echo "Test compile: alloca array" >&5
5797   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5798   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5799   (eval $gmp_compile) 2>&5
5800   ac_status=$?
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); }; then
5803     cc_works_part=yes
5804     if test "$cross_compiling" = no; then
5805       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807   (eval $ac_try) 2>&5
5808   ac_status=$?
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); }; }; then :;
5811       else
5812         cc_works_part=norun
5813       fi
5814     fi
5815   else
5816     cc_works_part=no
5817   fi
5818   if test "$cc_works_part" != yes; then
5819     echo "failed program was:" >&5
5820     cat conftest.c >&5
5821   fi
5822   rm -f conftest* a.out b.out a.exe a_out.exe
5823   case $cc_works_part in
5824     yes)
5825
5826       ;;
5827     no)
5828       gmp_prog_cc_works="no, alloca array"
5829       ;;
5830     norun)
5831       gmp_prog_cc_works="no, alloca array, program does not run"
5832       ;;
5833   esac
5834 fi
5835
5836
5837
5838       ;;
5839     no)
5840
5841       ;;
5842     norun)
5843
5844       ;;
5845   esac
5846 fi
5847
5848
5849 if test "$gmp_prog_cc_works" = yes; then
5850   # remove anything that might look like compiler output to our "||" expression
5851   rm -f conftest* a.out b.out a.exe a_out.exe
5852   cat >conftest.c <<EOF
5853 /* The following provokes an internal error from the assembler on
5854    power2-ibm-aix4.3.1.0.  gcc -mrios2 compiles to nabs+fcirz, and this
5855    results in "Internal error related to the source program domain".
5856
5857    For reference it seems to be the combination of nabs+fcirz which is bad,
5858    not either alone.  This sort of thing occurs in mpz/get_str.c with the
5859    way double chars_per_bit_exactly is applied in MPN_SIZEINBASE.  Perhaps
5860    if that code changes to a scaled-integer style then we won't need this
5861    test.  */
5862
5863 double fp[1];
5864 int x;
5865 int f ()
5866 {
5867   int a;
5868   a = (x >= 0 ? x : -x);
5869   return a * fp[0];
5870 }
5871
5872 int main () { return 0; }
5873 EOF
5874   echo "Test compile: abs int -> double conversion" >&5
5875   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5876   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5877   (eval $gmp_compile) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; then
5881     cc_works_part=yes
5882     if test "$cross_compiling" = no; then
5883       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885   (eval $ac_try) 2>&5
5886   ac_status=$?
5887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); }; }; then :;
5889       else
5890         cc_works_part=norun
5891       fi
5892     fi
5893   else
5894     cc_works_part=no
5895   fi
5896   if test "$cc_works_part" != yes; then
5897     echo "failed program was:" >&5
5898     cat conftest.c >&5
5899   fi
5900   rm -f conftest* a.out b.out a.exe a_out.exe
5901   case $cc_works_part in
5902     yes)
5903
5904       ;;
5905     no)
5906       gmp_prog_cc_works="no, abs int -> double conversion"
5907       ;;
5908     norun)
5909       gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
5910       ;;
5911   esac
5912 fi
5913
5914
5915
5916
5917 if test "$gmp_prog_cc_works" = yes; then
5918   # remove anything that might look like compiler output to our "||" expression
5919   rm -f conftest* a.out b.out a.exe a_out.exe
5920   cat >conftest.c <<EOF
5921 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
5922    Extracted from tests/mpn/t-iord_u.c.  Causes Apple's gcc 3.3 build 1640 and
5923    1666 to segfault with e.g., -O2 -mpowerpc64.  */
5924
5925 #ifdef __GNUC__
5926 typedef unsigned long long t1;typedef t1*t2;
5927 __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
5928 {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
5929 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
5930 for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}}
5931 h(){}g(){}
5932 #else
5933 int dummy;
5934 #endif
5935
5936 int main () { return 0; }
5937 EOF
5938   echo "Test compile: long long reliability test 1" >&5
5939   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5940   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5941   (eval $gmp_compile) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }; then
5945     cc_works_part=yes
5946     if test "$cross_compiling" = no; then
5947       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949   (eval $ac_try) 2>&5
5950   ac_status=$?
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); }; }; then :;
5953       else
5954         cc_works_part=norun
5955       fi
5956     fi
5957   else
5958     cc_works_part=no
5959   fi
5960   if test "$cc_works_part" != yes; then
5961     echo "failed program was:" >&5
5962     cat conftest.c >&5
5963   fi
5964   rm -f conftest* a.out b.out a.exe a_out.exe
5965   case $cc_works_part in
5966     yes)
5967
5968       ;;
5969     no)
5970       gmp_prog_cc_works="no, long long reliability test 1"
5971       ;;
5972     norun)
5973       gmp_prog_cc_works="no, long long reliability test 1, program does not run"
5974       ;;
5975   esac
5976 fi
5977
5978
5979
5980
5981 if test "$gmp_prog_cc_works" = yes; then
5982   # remove anything that might look like compiler output to our "||" expression
5983   rm -f conftest* a.out b.out a.exe a_out.exe
5984   cat >conftest.c <<EOF
5985 /* The following provokes an internal compiler error on powerpc-apple-darwin.
5986    Extracted from mpz/cfdiv_q_2exp.c.  Causes Apple's gcc 3.3 build 1640 and
5987    1666 to get an ICE with -O1 -mpowerpc64.  */
5988
5989 #ifdef __GNUC__
5990 f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}
5991 g(){}
5992 #else
5993 int dummy;
5994 #endif
5995
5996 int main () { return 0; }
5997 EOF
5998   echo "Test compile: long long reliability test 2" >&5
5999   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
6000   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6001   (eval $gmp_compile) 2>&5
6002   ac_status=$?
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); }; then
6005     cc_works_part=yes
6006     if test "$cross_compiling" = no; then
6007       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009   (eval $ac_try) 2>&5
6010   ac_status=$?
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); }; }; then :;
6013       else
6014         cc_works_part=norun
6015       fi
6016     fi
6017   else
6018     cc_works_part=no
6019   fi
6020   if test "$cc_works_part" != yes; then
6021     echo "failed program was:" >&5
6022     cat conftest.c >&5
6023   fi
6024   rm -f conftest* a.out b.out a.exe a_out.exe
6025   case $cc_works_part in
6026     yes)
6027
6028       ;;
6029     no)
6030       gmp_prog_cc_works="no, long long reliability test 2"
6031       ;;
6032     norun)
6033       gmp_prog_cc_works="no, long long reliability test 2, program does not run"
6034       ;;
6035   esac
6036 fi
6037
6038
6039
6040
6041 if test "$gmp_prog_cc_works" = yes; then
6042   # remove anything that might look like compiler output to our "||" expression
6043   rm -f conftest* a.out b.out a.exe a_out.exe
6044   cat >conftest.c <<EOF
6045 /* The following is mis-compiled by HP ia-64 cc version
6046         cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
6047    under "cc +O3", both in +DD32 and +DD64 modes.  The mpn_lshift_com gets
6048    inlined and its return value somehow botched to be 0 instead of 1.  This
6049    arises in the real mpn_lshift_com in mul_fft.c.  A lower optimization
6050    level, like +O2 seems ok.  This code needs to be run to show the problem,
6051    but that's fine, the offending cc is a native-only compiler so we don't
6052    have to worry about cross compiling.  */
6053
6054 unsigned long
6055 lshift_com (rp, up, n, cnt)
6056   unsigned long *rp;
6057   unsigned long *up;
6058   long n;
6059   unsigned cnt;
6060 {
6061   unsigned long retval, high_limb, low_limb;
6062   unsigned tnc;
6063   long i;
6064   tnc = 8 * sizeof (unsigned long) - cnt;
6065   low_limb = *up++;
6066   retval = low_limb >> tnc;
6067   high_limb = low_limb << cnt;
6068   for (i = n - 1; i != 0; i--)
6069     {
6070       low_limb = *up++;
6071       *rp++ = ~(high_limb | (low_limb >> tnc));
6072       high_limb = low_limb << cnt;
6073     }
6074   return retval;
6075 }
6076 int
6077 main ()
6078 {
6079   unsigned long cy, rp[2], up[2];
6080   up[0] = ~ 0L;
6081   up[1] = 0;
6082   cy = lshift_com (rp, up, 2L, 1);
6083   if (cy != 1L)
6084     return 1;
6085   return 0;
6086 }
6087
6088 EOF
6089   echo "Test compile: mpn_lshift_com optimization" >&5
6090   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
6091   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6092   (eval $gmp_compile) 2>&5
6093   ac_status=$?
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); }; then
6096     cc_works_part=yes
6097     if test "$cross_compiling" = no; then
6098       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100   (eval $ac_try) 2>&5
6101   ac_status=$?
6102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103   (exit $ac_status); }; }; then :;
6104       else
6105         cc_works_part=norun
6106       fi
6107     fi
6108   else
6109     cc_works_part=no
6110   fi
6111   if test "$cc_works_part" != yes; then
6112     echo "failed program was:" >&5
6113     cat conftest.c >&5
6114   fi
6115   rm -f conftest* a.out b.out a.exe a_out.exe
6116   case $cc_works_part in
6117     yes)
6118
6119       ;;
6120     no)
6121       gmp_prog_cc_works="no, mpn_lshift_com optimization"
6122       ;;
6123     norun)
6124       gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
6125       ;;
6126   esac
6127 fi
6128
6129
6130
6131 if test "$gmp_prog_cc_works" = yes; then
6132   # remove anything that might look like compiler output to our "||" expression
6133   rm -f conftest* a.out b.out a.exe a_out.exe
6134   cat >conftest.c <<EOF
6135 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
6136     "icc -O3",  After several calls, the function writes parial garbage to
6137     the result vector.  Perhaps relates to the chk.a.nc insn.  This code needs
6138     to be run to show the problem, but that's fine, the offending cc is a
6139     native-only compiler so we don't have to worry about cross compiling.  */
6140
6141 #include <stdlib.h>
6142 void
6143 lshift_com (rp, up, n, cnt)
6144   unsigned long *rp;
6145   unsigned long *up;
6146   long n;
6147   unsigned cnt;
6148 {
6149   unsigned long high_limb, low_limb;
6150   unsigned tnc;
6151   long i;
6152   up += n;
6153   rp += n;
6154   tnc = 8 * sizeof (unsigned long) - cnt;
6155   low_limb = *--up;
6156   high_limb = low_limb << cnt;
6157   for (i = n - 1; i != 0; i--)
6158     {
6159       low_limb = *--up;
6160       *--rp = ~(high_limb | (low_limb >> tnc));
6161       high_limb = low_limb << cnt;
6162     }
6163   *--rp = ~high_limb;
6164 }
6165 int
6166 main ()
6167 {
6168   unsigned long *r, *r2;
6169   unsigned long a[88 + 1];
6170   long i;
6171   for (i = 0; i < 88 + 1; i++)
6172     a[i] = ~0L;
6173   r = malloc (10000 * sizeof (unsigned long));
6174   r2 = r;
6175   for (i = 0; i < 528; i += 22)
6176     {
6177       lshift_com (r2, a,
6178                   i / (8 * sizeof (unsigned long)) + 1,
6179                   i % (8 * sizeof (unsigned long)));
6180       r2 += 88 + 1;
6181     }
6182   if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
6183       r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
6184     abort ();
6185   return 0;
6186 }
6187
6188 EOF
6189   echo "Test compile: mpn_lshift_com optimization 2" >&5
6190   gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
6191   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6192   (eval $gmp_compile) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); }; then
6196     cc_works_part=yes
6197     if test "$cross_compiling" = no; then
6198       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200   (eval $ac_try) 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); }; }; then :;
6204       else
6205         cc_works_part=norun
6206       fi
6207     fi
6208   else
6209     cc_works_part=no
6210   fi
6211   if test "$cc_works_part" != yes; then
6212     echo "failed program was:" >&5
6213     cat conftest.c >&5
6214   fi
6215   rm -f conftest* a.out b.out a.exe a_out.exe
6216   case $cc_works_part in
6217     yes)
6218
6219       ;;
6220     no)
6221       gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
6222       ;;
6223     norun)
6224       gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
6225       ;;
6226   esac
6227 fi
6228
6229
6230
6231
6232 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
6233 # by recent versions of gcc.
6234 #
6235 if test "$gmp_prog_cc_works" = yes; then
6236   case $host in
6237     i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-*)
6238       # this problem only arises in PIC code, so don't need to test when
6239       # --disable-shared.  We don't necessarily have $enable_shared set to
6240       # yes at this point, it will still be unset for the default (which is
6241       # yes); hence the use of "!= no".
6242       if test "$enable_shared" != no; then
6243         echo "Testing gcc GOT with eax emitted" >&5
6244 cat >conftest.c <<\EOF
6245 int foo;
6246 int bar () { return foo; }
6247 EOF
6248 tmp_got_emitted=no
6249 gmp_compile="$cc $cflags $cppflags $flag -fPIC -S conftest.c >&5 2>&1"
6250 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6251   (eval $gmp_compile) 2>&5
6252   ac_status=$?
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); }; then
6255   if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
6256     tmp_got_emitted=yes
6257   fi
6258 fi
6259 rm -f conftest.*
6260 echo "Result: $tmp_got_emitted" >&5
6261 if test "$tmp_got_emitted" = yes; then
6262   echo "Testing gas GOT with eax good" >&5
6263 cat >conftest.awk <<\EOF
6264 BEGIN {
6265   want[0]  = "001"
6266   want[1]  = "043"
6267   want[2]  = "105"
6268   want[3]  = "147"
6269   want[4]  = "211"
6270   want[5]  = "253"
6271   want[6]  = "315"
6272   want[7]  = "357"
6273
6274   want[8]  = "005"
6275   want[9]  = "002"
6276   want[10] = "000"
6277   want[11] = "000"
6278   want[12] = "000"
6279
6280   want[13] = "376"
6281   want[14] = "334"
6282   want[15] = "272"
6283   want[16] = "230"
6284   want[17] = "166"
6285   want[18] = "124"
6286   want[19] = "062"
6287   want[20] = "020"
6288
6289   result = "yes"
6290 }
6291 {
6292   for (f = 2; f <= NF; f++)
6293     {
6294       for (i = 0; i < 20; i++)
6295         got[i] = got[i+1];
6296       got[20] = $f;
6297
6298       found = 1
6299       for (i = 0; i < 21; i++)
6300         if (got[i] != want[i])
6301           {
6302             found = 0
6303             break
6304           }
6305       if (found)
6306         {
6307           result = "no"
6308           exit
6309         }
6310     }
6311 }
6312 END {
6313   print result
6314 }
6315 EOF
6316 cat >conftest.s <<\EOF
6317         .text
6318         .byte   1, 35, 69, 103, 137, 171, 205, 239
6319         addl    $_GLOBAL_OFFSET_TABLE_, %eax
6320         .byte   254, 220, 186, 152, 118, 84, 50, 16
6321 EOF
6322 tmp_got_good=yes
6323 gmp_compile="$cc $cflags $cppflags $flag -fPIC -o conftest.o -c conftest.s >&5 2>&1"
6324 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6325   (eval $gmp_compile) 2>&5
6326   ac_status=$?
6327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328   (exit $ac_status); }; then
6329   tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
6330 fi
6331 rm -f conftest.*
6332 echo "Result: $tmp_got_good" >&5
6333 if test "$tmp_got_good" = no; then
6334   gmp_prog_cc_works="no, bad gas GOT with eax"
6335 else
6336   :
6337 fi
6338
6339 else
6340   :
6341 fi
6342
6343       fi
6344       ;;
6345   esac
6346 fi
6347
6348 echo "$as_me:$LINENO: result: $gmp_prog_cc_works" >&5
6349 echo "${ECHO_T}$gmp_prog_cc_works" >&6
6350 case $gmp_prog_cc_works in
6351   yes)
6352     cflags="$cflags $flag"
6353           break
6354     ;;
6355   *)
6356
6357     ;;
6358 esac
6359
6360       done
6361     done
6362   fi
6363
6364   ABI="$abi"
6365   CC="$cc"
6366   CFLAGS="$cflags"
6367   CPPFLAGS="$cppflags"
6368
6369
6370   # Could easily have this in config.h too, if desired.
6371   ABI_nodots=`echo $ABI | sed 's/\./_/'`
6372
6373 echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p
6374
6375
6376
6377   # GMP_LDFLAGS substitution, selected according to ABI.
6378   # These are needed on libgmp.la and libmp.la, but currently not on
6379   # convenience libraries like tune/libspeed.la or mpz/libmpz.la.
6380   #
6381                             eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
6382   test -n "$GMP_LDFLAGS" || eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
6383
6384
6385
6386
6387   # extra_functions, selected according to ABI
6388                     eval tmp=\"\$extra_functions$abi1\"
6389   test -n "$tmp" || eval tmp=\"\$extra_functions$abi2\"
6390   extra_functions="$tmp"
6391
6392
6393   # Cycle counter, selected according to ABI.
6394   #
6395                     eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi1\"
6396   test -n "$tmp" || eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi2\"
6397   SPEED_CYCLECOUNTER_OBJ="$tmp"
6398                     eval tmp=\"\$cyclecounter_size$abi1\"
6399   test -n "$tmp" || eval tmp=\"\$cyclecounter_size$abi2\"
6400   cyclecounter_size="$tmp"
6401
6402   if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
6403
6404 cat >>confdefs.h <<_ACEOF
6405 #define HAVE_SPEED_CYCLECOUNTER $cyclecounter_size
6406 _ACEOF
6407
6408   fi
6409
6410
6411
6412   # Calling conventions checking, selected according to ABI.
6413   #
6414                     eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi1\"
6415   test -n "$tmp" || eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi2\"
6416   CALLING_CONVENTIONS_OBJS="$tmp"
6417
6418   if test -n "$CALLING_CONVENTIONS_OBJS"; then
6419
6420 cat >>confdefs.h <<\_ACEOF
6421 #define HAVE_CALLING_CONVENTIONS 1
6422 _ACEOF
6423
6424   fi
6425
6426
6427 fi
6428
6429
6430 # If the user gave an MPN_PATH, use that verbatim, otherwise choose
6431 # according to the ABI and add "generic".
6432 #
6433 if test -n "$MPN_PATH"; then
6434   path="$MPN_PATH"
6435 else
6436                     eval tmp=\"\$path$abi1\"
6437   test -n "$tmp" || eval tmp=\"\$path$abi2\"
6438   path="$tmp generic"
6439 fi
6440
6441
6442 # Long long limb setup for gmp.h.
6443 case $limb_chosen in
6444 longlong) DEFN_LONG_LONG_LIMB="#define _LONG_LONG_LIMB 1"    ;;
6445 *)        DEFN_LONG_LONG_LIMB="/* #undef _LONG_LONG_LIMB */" ;;
6446 esac
6447
6448
6449
6450 # The C compiler and preprocessor, put into ANSI mode if possible.
6451 ac_ext=c
6452 ac_cpp='$CPP $CPPFLAGS'
6453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6456 if test -n "$ac_tool_prefix"; then
6457   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6458 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6459 echo "$as_me:$LINENO: checking for $ac_word" >&5
6460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6461 if test "${ac_cv_prog_CC+set}" = set; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464   if test -n "$CC"; then
6465   ac_cv_prog_CC="$CC" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470   IFS=$as_save_IFS
6471   test -z "$as_dir" && as_dir=.
6472   for ac_exec_ext in '' $ac_executable_extensions; do
6473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6474     ac_cv_prog_CC="${ac_tool_prefix}gcc"
6475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476     break 2
6477   fi
6478 done
6479 done
6480
6481 fi
6482 fi
6483 CC=$ac_cv_prog_CC
6484 if test -n "$CC"; then
6485   echo "$as_me:$LINENO: result: $CC" >&5
6486 echo "${ECHO_T}$CC" >&6
6487 else
6488   echo "$as_me:$LINENO: result: no" >&5
6489 echo "${ECHO_T}no" >&6
6490 fi
6491
6492 fi
6493 if test -z "$ac_cv_prog_CC"; then
6494   ac_ct_CC=$CC
6495   # Extract the first word of "gcc", so it can be a program name with args.
6496 set dummy gcc; ac_word=$2
6497 echo "$as_me:$LINENO: checking for $ac_word" >&5
6498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6500   echo $ECHO_N "(cached) $ECHO_C" >&6
6501 else
6502   if test -n "$ac_ct_CC"; then
6503   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508   IFS=$as_save_IFS
6509   test -z "$as_dir" && as_dir=.
6510   for ac_exec_ext in '' $ac_executable_extensions; do
6511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512     ac_cv_prog_ac_ct_CC="gcc"
6513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514     break 2
6515   fi
6516 done
6517 done
6518
6519 fi
6520 fi
6521 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6522 if test -n "$ac_ct_CC"; then
6523   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6524 echo "${ECHO_T}$ac_ct_CC" >&6
6525 else
6526   echo "$as_me:$LINENO: result: no" >&5
6527 echo "${ECHO_T}no" >&6
6528 fi
6529
6530   CC=$ac_ct_CC
6531 else
6532   CC="$ac_cv_prog_CC"
6533 fi
6534
6535 if test -z "$CC"; then
6536   if test -n "$ac_tool_prefix"; then
6537   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6538 set dummy ${ac_tool_prefix}cc; ac_word=$2
6539 echo "$as_me:$LINENO: checking for $ac_word" >&5
6540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6541 if test "${ac_cv_prog_CC+set}" = set; then
6542   echo $ECHO_N "(cached) $ECHO_C" >&6
6543 else
6544   if test -n "$CC"; then
6545   ac_cv_prog_CC="$CC" # Let the user override the test.
6546 else
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6549 do
6550   IFS=$as_save_IFS
6551   test -z "$as_dir" && as_dir=.
6552   for ac_exec_ext in '' $ac_executable_extensions; do
6553   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6554     ac_cv_prog_CC="${ac_tool_prefix}cc"
6555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6556     break 2
6557   fi
6558 done
6559 done
6560
6561 fi
6562 fi
6563 CC=$ac_cv_prog_CC
6564 if test -n "$CC"; then
6565   echo "$as_me:$LINENO: result: $CC" >&5
6566 echo "${ECHO_T}$CC" >&6
6567 else
6568   echo "$as_me:$LINENO: result: no" >&5
6569 echo "${ECHO_T}no" >&6
6570 fi
6571
6572 fi
6573 if test -z "$ac_cv_prog_CC"; then
6574   ac_ct_CC=$CC
6575   # Extract the first word of "cc", so it can be a program name with args.
6576 set dummy cc; ac_word=$2
6577 echo "$as_me:$LINENO: checking for $ac_word" >&5
6578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6580   echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582   if test -n "$ac_ct_CC"; then
6583   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588   IFS=$as_save_IFS
6589   test -z "$as_dir" && as_dir=.
6590   for ac_exec_ext in '' $ac_executable_extensions; do
6591   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6592     ac_cv_prog_ac_ct_CC="cc"
6593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594     break 2
6595   fi
6596 done
6597 done
6598
6599 fi
6600 fi
6601 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6602 if test -n "$ac_ct_CC"; then
6603   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6604 echo "${ECHO_T}$ac_ct_CC" >&6
6605 else
6606   echo "$as_me:$LINENO: result: no" >&5
6607 echo "${ECHO_T}no" >&6
6608 fi
6609
6610   CC=$ac_ct_CC
6611 else
6612   CC="$ac_cv_prog_CC"
6613 fi
6614
6615 fi
6616 if test -z "$CC"; then
6617   # Extract the first word of "cc", so it can be a program name with args.
6618 set dummy cc; ac_word=$2
6619 echo "$as_me:$LINENO: checking for $ac_word" >&5
6620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6621 if test "${ac_cv_prog_CC+set}" = set; then
6622   echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624   if test -n "$CC"; then
6625   ac_cv_prog_CC="$CC" # Let the user override the test.
6626 else
6627   ac_prog_rejected=no
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in $PATH
6630 do
6631   IFS=$as_save_IFS
6632   test -z "$as_dir" && as_dir=.
6633   for ac_exec_ext in '' $ac_executable_extensions; do
6634   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6636        ac_prog_rejected=yes
6637        continue
6638      fi
6639     ac_cv_prog_CC="cc"
6640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641     break 2
6642   fi
6643 done
6644 done
6645
6646 if test $ac_prog_rejected = yes; then
6647   # We found a bogon in the path, so make sure we never use it.
6648   set dummy $ac_cv_prog_CC
6649   shift
6650   if test $# != 0; then
6651     # We chose a different compiler from the bogus one.
6652     # However, it has the same basename, so the bogon will be chosen
6653     # first if we set CC to just the basename; use the full file name.
6654     shift
6655     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6656   fi
6657 fi
6658 fi
6659 fi
6660 CC=$ac_cv_prog_CC
6661 if test -n "$CC"; then
6662   echo "$as_me:$LINENO: result: $CC" >&5
6663 echo "${ECHO_T}$CC" >&6
6664 else
6665   echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6
6667 fi
6668
6669 fi
6670 if test -z "$CC"; then
6671   if test -n "$ac_tool_prefix"; then
6672   for ac_prog in cl
6673   do
6674     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6676 echo "$as_me:$LINENO: checking for $ac_word" >&5
6677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6678 if test "${ac_cv_prog_CC+set}" = set; then
6679   echo $ECHO_N "(cached) $ECHO_C" >&6
6680 else
6681   if test -n "$CC"; then
6682   ac_cv_prog_CC="$CC" # Let the user override the test.
6683 else
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6686 do
6687   IFS=$as_save_IFS
6688   test -z "$as_dir" && as_dir=.
6689   for ac_exec_ext in '' $ac_executable_extensions; do
6690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6691     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693     break 2
6694   fi
6695 done
6696 done
6697
6698 fi
6699 fi
6700 CC=$ac_cv_prog_CC
6701 if test -n "$CC"; then
6702   echo "$as_me:$LINENO: result: $CC" >&5
6703 echo "${ECHO_T}$CC" >&6
6704 else
6705   echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6
6707 fi
6708
6709     test -n "$CC" && break
6710   done
6711 fi
6712 if test -z "$CC"; then
6713   ac_ct_CC=$CC
6714   for ac_prog in cl
6715 do
6716   # Extract the first word of "$ac_prog", so it can be a program name with args.
6717 set dummy $ac_prog; ac_word=$2
6718 echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   if test -n "$ac_ct_CC"; then
6724   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731   for ac_exec_ext in '' $ac_executable_extensions; do
6732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733     ac_cv_prog_ac_ct_CC="$ac_prog"
6734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738 done
6739
6740 fi
6741 fi
6742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6743 if test -n "$ac_ct_CC"; then
6744   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6745 echo "${ECHO_T}$ac_ct_CC" >&6
6746 else
6747   echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6
6749 fi
6750
6751   test -n "$ac_ct_CC" && break
6752 done
6753
6754   CC=$ac_ct_CC
6755 fi
6756
6757 fi
6758
6759
6760 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6761 See \`config.log' for more details." >&5
6762 echo "$as_me: error: no acceptable C compiler found in \$PATH
6763 See \`config.log' for more details." >&2;}
6764    { (exit 1); exit 1; }; }
6765
6766 # Provide some information about the compiler.
6767 echo "$as_me:$LINENO:" \
6768      "checking for C compiler version" >&5
6769 ac_compiler=`set X $ac_compile; echo $2`
6770 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6771   (eval $ac_compiler --version </dev/null >&5) 2>&5
6772   ac_status=$?
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); }
6775 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6776   (eval $ac_compiler -v </dev/null >&5) 2>&5
6777   ac_status=$?
6778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); }
6780 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6781   (eval $ac_compiler -V </dev/null >&5) 2>&5
6782   ac_status=$?
6783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); }
6785
6786 cat >conftest.$ac_ext <<_ACEOF
6787 /* confdefs.h.  */
6788 _ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h.  */
6792
6793 int
6794 main ()
6795 {
6796
6797   ;
6798   return 0;
6799 }
6800 _ACEOF
6801 ac_clean_files_save=$ac_clean_files
6802 ac_clean_files="$ac_clean_files a.out a.exe b.out"
6803 # Try to create an executable without -o first, disregard a.out.
6804 # It will help us diagnose broken compilers, and finding out an intuition
6805 # of exeext.
6806 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
6807 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
6808 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6809 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
6810   (eval $ac_link_default) 2>&5
6811   ac_status=$?
6812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813   (exit $ac_status); }; then
6814   # Find the output, starting from the most likely.  This scheme is
6815 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
6816 # resort.
6817
6818 # Be careful to initialize this variable, since it used to be cached.
6819 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
6820 ac_cv_exeext=
6821 # b.out is created by i960 compilers.
6822 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
6823 do
6824   test -f "$ac_file" || continue
6825   case $ac_file in
6826     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
6827         ;;
6828     conftest.$ac_ext )
6829         # This is the source file.
6830         ;;
6831     [ab].out )
6832         # We found the default executable, but exeext='' is most
6833         # certainly right.
6834         break;;
6835     *.* )
6836         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6837         # FIXME: I believe we export ac_cv_exeext for Libtool,
6838         # but it would be cool to find out if it's true.  Does anybody
6839         # maintain Libtool? --akim.
6840         export ac_cv_exeext
6841         break;;
6842     * )
6843         break;;
6844   esac
6845 done
6846 else
6847   echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6849
6850 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
6851 See \`config.log' for more details." >&5
6852 echo "$as_me: error: C compiler cannot create executables
6853 See \`config.log' for more details." >&2;}
6854    { (exit 77); exit 77; }; }
6855 fi
6856
6857 ac_exeext=$ac_cv_exeext
6858 echo "$as_me:$LINENO: result: $ac_file" >&5
6859 echo "${ECHO_T}$ac_file" >&6
6860
6861 # Check the compiler produces executables we can run.  If not, either
6862 # the compiler is broken, or we cross compile.
6863 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
6864 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
6865 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
6866 # If not cross compiling, check that we can run a simple program.
6867 if test "$cross_compiling" != yes; then
6868   if { ac_try='./$ac_file'
6869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870   (eval $ac_try) 2>&5
6871   ac_status=$?
6872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873   (exit $ac_status); }; }; then
6874     cross_compiling=no
6875   else
6876     if test "$cross_compiling" = maybe; then
6877         cross_compiling=yes
6878     else
6879         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
6880 If you meant to cross compile, use \`--host'.
6881 See \`config.log' for more details." >&5
6882 echo "$as_me: error: cannot run C compiled programs.
6883 If you meant to cross compile, use \`--host'.
6884 See \`config.log' for more details." >&2;}
6885    { (exit 1); exit 1; }; }
6886     fi
6887   fi
6888 fi
6889 echo "$as_me:$LINENO: result: yes" >&5
6890 echo "${ECHO_T}yes" >&6
6891
6892 rm -f a.out a.exe conftest$ac_cv_exeext b.out
6893 ac_clean_files=$ac_clean_files_save
6894 # Check the compiler produces executables we can run.  If not, either
6895 # the compiler is broken, or we cross compile.
6896 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
6897 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
6898 echo "$as_me:$LINENO: result: $cross_compiling" >&5
6899 echo "${ECHO_T}$cross_compiling" >&6
6900
6901 echo "$as_me:$LINENO: checking for suffix of executables" >&5
6902 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
6903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6904   (eval $ac_link) 2>&5
6905   ac_status=$?
6906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907   (exit $ac_status); }; then
6908   # If both `conftest.exe' and `conftest' are `present' (well, observable)
6909 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
6910 # work properly (i.e., refer to `conftest.exe'), while it won't with
6911 # `rm'.
6912 for ac_file in conftest.exe conftest conftest.*; do
6913   test -f "$ac_file" || continue
6914   case $ac_file in
6915     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
6916     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6917           export ac_cv_exeext
6918           break;;
6919     * ) break;;
6920   esac
6921 done
6922 else
6923   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
6924 See \`config.log' for more details." >&5
6925 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
6926 See \`config.log' for more details." >&2;}
6927    { (exit 1); exit 1; }; }
6928 fi
6929
6930 rm -f conftest$ac_cv_exeext
6931 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
6932 echo "${ECHO_T}$ac_cv_exeext" >&6
6933
6934 rm -f conftest.$ac_ext
6935 EXEEXT=$ac_cv_exeext
6936 ac_exeext=$EXEEXT
6937 echo "$as_me:$LINENO: checking for suffix of object files" >&5
6938 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
6939 if test "${ac_cv_objext+set}" = set; then
6940   echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942   cat >conftest.$ac_ext <<_ACEOF
6943 /* confdefs.h.  */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h.  */
6948
6949 int
6950 main ()
6951 {
6952
6953   ;
6954   return 0;
6955 }
6956 _ACEOF
6957 rm -f conftest.o conftest.obj
6958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6959   (eval $ac_compile) 2>&5
6960   ac_status=$?
6961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962   (exit $ac_status); }; then
6963   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
6964   case $ac_file in
6965     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
6966     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
6967        break;;
6968   esac
6969 done
6970 else
6971   echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6973
6974 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
6975 See \`config.log' for more details." >&5
6976 echo "$as_me: error: cannot compute suffix of object files: cannot compile
6977 See \`config.log' for more details." >&2;}
6978    { (exit 1); exit 1; }; }
6979 fi
6980
6981 rm -f conftest.$ac_cv_objext conftest.$ac_ext
6982 fi
6983 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
6984 echo "${ECHO_T}$ac_cv_objext" >&6
6985 OBJEXT=$ac_cv_objext
6986 ac_objext=$OBJEXT
6987 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6988 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
6989 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6990   echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992   cat >conftest.$ac_ext <<_ACEOF
6993 /* confdefs.h.  */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h.  */
6998
6999 int
7000 main ()
7001 {
7002 #ifndef __GNUC__
7003        choke me
7004 #endif
7005
7006   ;
7007   return 0;
7008 }
7009 _ACEOF
7010 rm -f conftest.$ac_objext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7012   (eval $ac_compile) 2>conftest.er1
7013   ac_status=$?
7014   grep -v '^ *+' conftest.er1 >conftest.err
7015   rm -f conftest.er1
7016   cat conftest.err >&5
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); } &&
7019          { ac_try='test -z "$ac_c_werror_flag"
7020                          || test ! -s conftest.err'
7021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022   (eval $ac_try) 2>&5
7023   ac_status=$?
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); }; } &&
7026          { ac_try='test -s conftest.$ac_objext'
7027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028   (eval $ac_try) 2>&5
7029   ac_status=$?
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); }; }; then
7032   ac_compiler_gnu=yes
7033 else
7034   echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7036
7037 ac_compiler_gnu=no
7038 fi
7039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7040 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7041
7042 fi
7043 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7044 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7045 GCC=`test $ac_compiler_gnu = yes && echo yes`
7046 ac_test_CFLAGS=${CFLAGS+set}
7047 ac_save_CFLAGS=$CFLAGS
7048 CFLAGS="-g"
7049 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7050 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7051 if test "${ac_cv_prog_cc_g+set}" = set; then
7052   echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054   cat >conftest.$ac_ext <<_ACEOF
7055 /* confdefs.h.  */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h.  */
7060
7061 int
7062 main ()
7063 {
7064
7065   ;
7066   return 0;
7067 }
7068 _ACEOF
7069 rm -f conftest.$ac_objext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7071   (eval $ac_compile) 2>conftest.er1
7072   ac_status=$?
7073   grep -v '^ *+' conftest.er1 >conftest.err
7074   rm -f conftest.er1
7075   cat conftest.err >&5
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); } &&
7078          { ac_try='test -z "$ac_c_werror_flag"
7079                          || test ! -s conftest.err'
7080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081   (eval $ac_try) 2>&5
7082   ac_status=$?
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); }; } &&
7085          { ac_try='test -s conftest.$ac_objext'
7086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087   (eval $ac_try) 2>&5
7088   ac_status=$?
7089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090   (exit $ac_status); }; }; then
7091   ac_cv_prog_cc_g=yes
7092 else
7093   echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7095
7096 ac_cv_prog_cc_g=no
7097 fi
7098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7099 fi
7100 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7101 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7102 if test "$ac_test_CFLAGS" = set; then
7103   CFLAGS=$ac_save_CFLAGS
7104 elif test $ac_cv_prog_cc_g = yes; then
7105   if test "$GCC" = yes; then
7106     CFLAGS="-g -O2"
7107   else
7108     CFLAGS="-g"
7109   fi
7110 else
7111   if test "$GCC" = yes; then
7112     CFLAGS="-O2"
7113   else
7114     CFLAGS=
7115   fi
7116 fi
7117 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
7118 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7119 if test "${ac_cv_prog_cc_stdc+set}" = set; then
7120   echo $ECHO_N "(cached) $ECHO_C" >&6
7121 else
7122   ac_cv_prog_cc_stdc=no
7123 ac_save_CC=$CC
7124 cat >conftest.$ac_ext <<_ACEOF
7125 /* confdefs.h.  */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h.  */
7130 #include <stdarg.h>
7131 #include <stdio.h>
7132 #include <sys/types.h>
7133 #include <sys/stat.h>
7134 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7135 struct buf { int x; };
7136 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7137 static char *e (p, i)
7138      char **p;
7139      int i;
7140 {
7141   return p[i];
7142 }
7143 static char *f (char * (*g) (char **, int), char **p, ...)
7144 {
7145   char *s;
7146   va_list v;
7147   va_start (v,p);
7148   s = g (p, va_arg (v,int));
7149   va_end (v);
7150   return s;
7151 }
7152
7153 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
7154    function prototypes and stuff, but not '\xHH' hex character constants.
7155    These don't provoke an error unfortunately, instead are silently treated
7156    as 'x'.  The following induces an error, until -std1 is added to get
7157    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
7158    array size at least.  It's necessary to write '\x00'==0 to get something
7159    that's true only with -std1.  */
7160 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7161
7162 int test (int i, double x);
7163 struct s1 {int (*f) (int a);};
7164 struct s2 {int (*f) (double a);};
7165 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7166 int argc;
7167 char **argv;
7168 int
7169 main ()
7170 {
7171 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7172   ;
7173   return 0;
7174 }
7175 _ACEOF
7176 # Don't try gcc -ansi; that turns off useful extensions and
7177 # breaks some systems' header files.
7178 # AIX                   -qlanglvl=ansi
7179 # Ultrix and OSF/1      -std1
7180 # HP-UX 10.20 and later -Ae
7181 # HP-UX older versions  -Aa -D_HPUX_SOURCE
7182 # SVR4                  -Xc -D__EXTENSIONS__
7183 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7184 do
7185   CC="$ac_save_CC $ac_arg"
7186   rm -f conftest.$ac_objext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7188   (eval $ac_compile) 2>conftest.er1
7189   ac_status=$?
7190   grep -v '^ *+' conftest.er1 >conftest.err
7191   rm -f conftest.er1
7192   cat conftest.err >&5
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); } &&
7195          { ac_try='test -z "$ac_c_werror_flag"
7196                          || test ! -s conftest.err'
7197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198   (eval $ac_try) 2>&5
7199   ac_status=$?
7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); }; } &&
7202          { ac_try='test -s conftest.$ac_objext'
7203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204   (eval $ac_try) 2>&5
7205   ac_status=$?
7206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); }; }; then
7208   ac_cv_prog_cc_stdc=$ac_arg
7209 break
7210 else
7211   echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7213
7214 fi
7215 rm -f conftest.err conftest.$ac_objext
7216 done
7217 rm -f conftest.$ac_ext conftest.$ac_objext
7218 CC=$ac_save_CC
7219
7220 fi
7221
7222 case "x$ac_cv_prog_cc_stdc" in
7223   x|xno)
7224     echo "$as_me:$LINENO: result: none needed" >&5
7225 echo "${ECHO_T}none needed" >&6 ;;
7226   *)
7227     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
7228 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7229     CC="$CC $ac_cv_prog_cc_stdc" ;;
7230 esac
7231
7232 # Some people use a C++ compiler to compile C.  Since we use `exit',
7233 # in C++ we need to declare it.  In case someone uses the same compiler
7234 # for both compiling C and C++ we need to have the C++ compiler decide
7235 # the declaration of exit, since it's the most demanding environment.
7236 cat >conftest.$ac_ext <<_ACEOF
7237 #ifndef __cplusplus
7238   choke me
7239 #endif
7240 _ACEOF
7241 rm -f conftest.$ac_objext
7242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7243   (eval $ac_compile) 2>conftest.er1
7244   ac_status=$?
7245   grep -v '^ *+' conftest.er1 >conftest.err
7246   rm -f conftest.er1
7247   cat conftest.err >&5
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); } &&
7250          { ac_try='test -z "$ac_c_werror_flag"
7251                          || test ! -s conftest.err'
7252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253   (eval $ac_try) 2>&5
7254   ac_status=$?
7255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256   (exit $ac_status); }; } &&
7257          { ac_try='test -s conftest.$ac_objext'
7258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259   (eval $ac_try) 2>&5
7260   ac_status=$?
7261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262   (exit $ac_status); }; }; then
7263   for ac_declaration in \
7264    '' \
7265    'extern "C" void std::exit (int) throw (); using std::exit;' \
7266    'extern "C" void std::exit (int); using std::exit;' \
7267    'extern "C" void exit (int) throw ();' \
7268    'extern "C" void exit (int);' \
7269    'void exit (int);'
7270 do
7271   cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h.  */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h.  */
7277 $ac_declaration
7278 #include <stdlib.h>
7279 int
7280 main ()
7281 {
7282 exit (42);
7283   ;
7284   return 0;
7285 }
7286 _ACEOF
7287 rm -f conftest.$ac_objext
7288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7289   (eval $ac_compile) 2>conftest.er1
7290   ac_status=$?
7291   grep -v '^ *+' conftest.er1 >conftest.err
7292   rm -f conftest.er1
7293   cat conftest.err >&5
7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); } &&
7296          { ac_try='test -z "$ac_c_werror_flag"
7297                          || test ! -s conftest.err'
7298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299   (eval $ac_try) 2>&5
7300   ac_status=$?
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); }; } &&
7303          { ac_try='test -s conftest.$ac_objext'
7304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305   (eval $ac_try) 2>&5
7306   ac_status=$?
7307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308   (exit $ac_status); }; }; then
7309   :
7310 else
7311   echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7313
7314 continue
7315 fi
7316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7317   cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h.  */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h.  */
7323 $ac_declaration
7324 int
7325 main ()
7326 {
7327 exit (42);
7328   ;
7329   return 0;
7330 }
7331 _ACEOF
7332 rm -f conftest.$ac_objext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7334   (eval $ac_compile) 2>conftest.er1
7335   ac_status=$?
7336   grep -v '^ *+' conftest.er1 >conftest.err
7337   rm -f conftest.er1
7338   cat conftest.err >&5
7339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340   (exit $ac_status); } &&
7341          { ac_try='test -z "$ac_c_werror_flag"
7342                          || test ! -s conftest.err'
7343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344   (eval $ac_try) 2>&5
7345   ac_status=$?
7346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347   (exit $ac_status); }; } &&
7348          { ac_try='test -s conftest.$ac_objext'
7349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350   (eval $ac_try) 2>&5
7351   ac_status=$?
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); }; }; then
7354   break
7355 else
7356   echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7358
7359 fi
7360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7361 done
7362 rm -f conftest*
7363 if test -n "$ac_declaration"; then
7364   echo '#ifdef __cplusplus' >>confdefs.h
7365   echo $ac_declaration      >>confdefs.h
7366   echo '#endif'             >>confdefs.h
7367 fi
7368
7369 else
7370   echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7372
7373 fi
7374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7375 ac_ext=c
7376 ac_cpp='$CPP $CPPFLAGS'
7377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7380
7381
7382 ac_ext=c
7383 ac_cpp='$CPP $CPPFLAGS'
7384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7387 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7388 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7389 # On Suns, sometimes $CPP names a directory.
7390 if test -n "$CPP" && test -d "$CPP"; then
7391   CPP=
7392 fi
7393 if test -z "$CPP"; then
7394   if test "${ac_cv_prog_CPP+set}" = set; then
7395   echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397       # Double quotes because CPP needs to be expanded
7398     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7399     do
7400       ac_preproc_ok=false
7401 for ac_c_preproc_warn_flag in '' yes
7402 do
7403   # Use a header file that comes with gcc, so configuring glibc
7404   # with a fresh cross-compiler works.
7405   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7406   # <limits.h> exists even on freestanding compilers.
7407   # On the NeXT, cc -E runs the code through the compiler's parser,
7408   # not just through cpp. "Syntax error" is here to catch this case.
7409   cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h.  */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h.  */
7415 #ifdef __STDC__
7416 # include <limits.h>
7417 #else
7418 # include <assert.h>
7419 #endif
7420                      Syntax error
7421 _ACEOF
7422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7423   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7424   ac_status=$?
7425   grep -v '^ *+' conftest.er1 >conftest.err
7426   rm -f conftest.er1
7427   cat conftest.err >&5
7428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429   (exit $ac_status); } >/dev/null; then
7430   if test -s conftest.err; then
7431     ac_cpp_err=$ac_c_preproc_warn_flag
7432     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7433   else
7434     ac_cpp_err=
7435   fi
7436 else
7437   ac_cpp_err=yes
7438 fi
7439 if test -z "$ac_cpp_err"; then
7440   :
7441 else
7442   echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7444
7445   # Broken: fails on valid input.
7446 continue
7447 fi
7448 rm -f conftest.err conftest.$ac_ext
7449
7450   # OK, works on sane cases.  Now check whether non-existent headers
7451   # can be detected and how.
7452   cat >conftest.$ac_ext <<_ACEOF
7453 /* confdefs.h.  */
7454 _ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h.  */
7458 #include <ac_nonexistent.h>
7459 _ACEOF
7460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7462   ac_status=$?
7463   grep -v '^ *+' conftest.er1 >conftest.err
7464   rm -f conftest.er1
7465   cat conftest.err >&5
7466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); } >/dev/null; then
7468   if test -s conftest.err; then
7469     ac_cpp_err=$ac_c_preproc_warn_flag
7470     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7471   else
7472     ac_cpp_err=
7473   fi
7474 else
7475   ac_cpp_err=yes
7476 fi
7477 if test -z "$ac_cpp_err"; then
7478   # Broken: success on invalid input.
7479 continue
7480 else
7481   echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7483
7484   # Passes both tests.
7485 ac_preproc_ok=:
7486 break
7487 fi
7488 rm -f conftest.err conftest.$ac_ext
7489
7490 done
7491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7492 rm -f conftest.err conftest.$ac_ext
7493 if $ac_preproc_ok; then
7494   break
7495 fi
7496
7497     done
7498     ac_cv_prog_CPP=$CPP
7499
7500 fi
7501   CPP=$ac_cv_prog_CPP
7502 else
7503   ac_cv_prog_CPP=$CPP
7504 fi
7505 echo "$as_me:$LINENO: result: $CPP" >&5
7506 echo "${ECHO_T}$CPP" >&6
7507 ac_preproc_ok=false
7508 for ac_c_preproc_warn_flag in '' yes
7509 do
7510   # Use a header file that comes with gcc, so configuring glibc
7511   # with a fresh cross-compiler works.
7512   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7513   # <limits.h> exists even on freestanding compilers.
7514   # On the NeXT, cc -E runs the code through the compiler's parser,
7515   # not just through cpp. "Syntax error" is here to catch this case.
7516   cat >conftest.$ac_ext <<_ACEOF
7517 /* confdefs.h.  */
7518 _ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h.  */
7522 #ifdef __STDC__
7523 # include <limits.h>
7524 #else
7525 # include <assert.h>
7526 #endif
7527                      Syntax error
7528 _ACEOF
7529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7530   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7531   ac_status=$?
7532   grep -v '^ *+' conftest.er1 >conftest.err
7533   rm -f conftest.er1
7534   cat conftest.err >&5
7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); } >/dev/null; then
7537   if test -s conftest.err; then
7538     ac_cpp_err=$ac_c_preproc_warn_flag
7539     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7540   else
7541     ac_cpp_err=
7542   fi
7543 else
7544   ac_cpp_err=yes
7545 fi
7546 if test -z "$ac_cpp_err"; then
7547   :
7548 else
7549   echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7551
7552   # Broken: fails on valid input.
7553 continue
7554 fi
7555 rm -f conftest.err conftest.$ac_ext
7556
7557   # OK, works on sane cases.  Now check whether non-existent headers
7558   # can be detected and how.
7559   cat >conftest.$ac_ext <<_ACEOF
7560 /* confdefs.h.  */
7561 _ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h.  */
7565 #include <ac_nonexistent.h>
7566 _ACEOF
7567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7568   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7569   ac_status=$?
7570   grep -v '^ *+' conftest.er1 >conftest.err
7571   rm -f conftest.er1
7572   cat conftest.err >&5
7573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574   (exit $ac_status); } >/dev/null; then
7575   if test -s conftest.err; then
7576     ac_cpp_err=$ac_c_preproc_warn_flag
7577     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7578   else
7579     ac_cpp_err=
7580   fi
7581 else
7582   ac_cpp_err=yes
7583 fi
7584 if test -z "$ac_cpp_err"; then
7585   # Broken: success on invalid input.
7586 continue
7587 else
7588   echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7590
7591   # Passes both tests.
7592 ac_preproc_ok=:
7593 break
7594 fi
7595 rm -f conftest.err conftest.$ac_ext
7596
7597 done
7598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7599 rm -f conftest.err conftest.$ac_ext
7600 if $ac_preproc_ok; then
7601   :
7602 else
7603   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7604 See \`config.log' for more details." >&5
7605 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7606 See \`config.log' for more details." >&2;}
7607    { (exit 1); exit 1; }; }
7608 fi
7609
7610 ac_ext=c
7611 ac_cpp='$CPP $CPPFLAGS'
7612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7615
7616
7617
7618 case $ac_cv_prog_cc_stdc in
7619   no)
7620     ;;
7621   *)
7622     cat >conftest.$ac_ext <<_ACEOF
7623 /* confdefs.h.  */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h.  */
7628 #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
7629 #define GMP_NAIL_BITS $GMP_NAIL_BITS
7630 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
7631 #define GMP_LIMB_BITS 123
7632 $DEFN_LONG_LONG_LIMB
7633 #include "$srcdir/gmp-h.in"
7634
7635 #if ! __GMP_HAVE_PROTOTYPES
7636 die die die
7637 #endif
7638
7639 int
7640 main ()
7641 {
7642
7643   ;
7644   return 0;
7645 }
7646 _ACEOF
7647 rm -f conftest.$ac_objext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649   (eval $ac_compile) 2>conftest.er1
7650   ac_status=$?
7651   grep -v '^ *+' conftest.er1 >conftest.err
7652   rm -f conftest.er1
7653   cat conftest.err >&5
7654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655   (exit $ac_status); } &&
7656          { ac_try='test -z "$ac_c_werror_flag"
7657                          || test ! -s conftest.err'
7658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659   (eval $ac_try) 2>&5
7660   ac_status=$?
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); }; } &&
7663          { ac_try='test -s conftest.$ac_objext'
7664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665   (eval $ac_try) 2>&5
7666   ac_status=$?
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); }; }; then
7669   :
7670 else
7671   echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7673
7674 { echo "$as_me:$LINENO: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&5
7675 echo "$as_me: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&2;}
7676 fi
7677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7678     ;;
7679 esac
7680
7681
7682
7683 # The C compiler on the build system, and associated tests.
7684
7685 if test -n "$CC_FOR_BUILD"; then
7686   echo "$as_me:$LINENO: checking build system compiler $CC_FOR_BUILD" >&5
7687 echo $ECHO_N "checking build system compiler $CC_FOR_BUILD... $ECHO_C" >&6
7688 # remove anything that might look like compiler output to our "||" expression
7689 rm -f conftest* a.out b.out a.exe a_out.exe
7690 cat >conftest.c <<EOF
7691 int
7692 main ()
7693 {
7694   exit(0);
7695 }
7696 EOF
7697 gmp_compile="$CC_FOR_BUILD conftest.c"
7698 cc_for_build_works=no
7699 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7700   (eval $gmp_compile) 2>&5
7701   ac_status=$?
7702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703   (exit $ac_status); }; then
7704   if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
7705     cc_for_build_works=yes
7706   fi
7707 fi
7708 rm -f conftest* a.out b.out a.exe a_out.exe
7709 echo "$as_me:$LINENO: result: $cc_for_build_works" >&5
7710 echo "${ECHO_T}$cc_for_build_works" >&6
7711 if test "$cc_for_build_works" = yes; then
7712   :
7713 else
7714   { { echo "$as_me:$LINENO: error: Specified CC_FOR_BUILD doesn't seem to work" >&5
7715 echo "$as_me: error: Specified CC_FOR_BUILD doesn't seem to work" >&2;}
7716    { (exit 1); exit 1; }; }
7717 fi
7718
7719 elif test -n "$HOST_CC"; then
7720   echo "$as_me:$LINENO: checking build system compiler $HOST_CC" >&5
7721 echo $ECHO_N "checking build system compiler $HOST_CC... $ECHO_C" >&6
7722 # remove anything that might look like compiler output to our "||" expression
7723 rm -f conftest* a.out b.out a.exe a_out.exe
7724 cat >conftest.c <<EOF
7725 int
7726 main ()
7727 {
7728   exit(0);
7729 }
7730 EOF
7731 gmp_compile="$HOST_CC conftest.c"
7732 cc_for_build_works=no
7733 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7734   (eval $gmp_compile) 2>&5
7735   ac_status=$?
7736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737   (exit $ac_status); }; then
7738   if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
7739     cc_for_build_works=yes
7740   fi
7741 fi
7742 rm -f conftest* a.out b.out a.exe a_out.exe
7743 echo "$as_me:$LINENO: result: $cc_for_build_works" >&5
7744 echo "${ECHO_T}$cc_for_build_works" >&6
7745 if test "$cc_for_build_works" = yes; then
7746   CC_FOR_BUILD=$HOST_CC
7747 else
7748   { { echo "$as_me:$LINENO: error: Specified HOST_CC doesn't seem to work" >&5
7749 echo "$as_me: error: Specified HOST_CC doesn't seem to work" >&2;}
7750    { (exit 1); exit 1; }; }
7751 fi
7752
7753 else
7754   for i in "$CC" "$CC $CFLAGS $CPPFLAGS" cc gcc c89 c99; do
7755     echo "$as_me:$LINENO: checking build system compiler $i" >&5
7756 echo $ECHO_N "checking build system compiler $i... $ECHO_C" >&6
7757 # remove anything that might look like compiler output to our "||" expression
7758 rm -f conftest* a.out b.out a.exe a_out.exe
7759 cat >conftest.c <<EOF
7760 int
7761 main ()
7762 {
7763   exit(0);
7764 }
7765 EOF
7766 gmp_compile="$i conftest.c"
7767 cc_for_build_works=no
7768 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7769   (eval $gmp_compile) 2>&5
7770   ac_status=$?
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); }; then
7773   if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
7774     cc_for_build_works=yes
7775   fi
7776 fi
7777 rm -f conftest* a.out b.out a.exe a_out.exe
7778 echo "$as_me:$LINENO: result: $cc_for_build_works" >&5
7779 echo "${ECHO_T}$cc_for_build_works" >&6
7780 if test "$cc_for_build_works" = yes; then
7781   CC_FOR_BUILD=$i
7782        break
7783 else
7784   :
7785 fi
7786
7787   done
7788   if test -z "$CC_FOR_BUILD"; then
7789     { { echo "$as_me:$LINENO: error: Cannot find a build system compiler" >&5
7790 echo "$as_me: error: Cannot find a build system compiler" >&2;}
7791    { (exit 1); exit 1; }; }
7792   fi
7793 fi
7794
7795
7796
7797
7798
7799 echo "$as_me:$LINENO: checking for build system preprocessor" >&5
7800 echo $ECHO_N "checking for build system preprocessor... $ECHO_C" >&6
7801 if test -z "$CPP_FOR_BUILD"; then
7802   if test "${gmp_cv_prog_cpp_for_build+set}" = set; then
7803   echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805   cat >conftest.c <<EOF
7806 #define FOO BAR
7807 EOF
7808   for i in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"; do
7809     gmp_compile="$i conftest.c"
7810     if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7811   (eval $gmp_compile) 2>&5
7812   ac_status=$?
7813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); } >&5 2>&1; then
7815       gmp_cv_prog_cpp_for_build=$i
7816       break
7817     fi
7818   done
7819   rm -f conftest* a.out b.out a.exe a_out.exe
7820   if test -z "$gmp_cv_prog_cpp_for_build"; then
7821     { { echo "$as_me:$LINENO: error: Cannot find build system C preprocessor." >&5
7822 echo "$as_me: error: Cannot find build system C preprocessor." >&2;}
7823    { (exit 1); exit 1; }; }
7824   fi
7825
7826 fi
7827
7828   CPP_FOR_BUILD=$gmp_cv_prog_cpp_for_build
7829 fi
7830 echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
7831 echo "${ECHO_T}$CPP_FOR_BUILD" >&6
7832
7833
7834
7835
7836
7837 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7838 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7839 if test "${gmp_cv_prog_exeext_for_build+set}" = set; then
7840   echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842   cat >conftest.c <<EOF
7843 int
7844 main ()
7845 {
7846   exit (0);
7847 }
7848 EOF
7849 for i in .exe ,ff8 ""; do
7850   gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i"
7851   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7852   (eval $gmp_compile) 2>&5
7853   ac_status=$?
7854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855   (exit $ac_status); }; then
7856     if (./conftest) 2>&5; then
7857       gmp_cv_prog_exeext_for_build=$i
7858       break
7859     fi
7860   fi
7861 done
7862 rm -f conftest*
7863 if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
7864   { { echo "$as_me:$LINENO: error: Cannot determine executable suffix" >&5
7865 echo "$as_me: error: Cannot determine executable suffix" >&2;}
7866    { (exit 1); exit 1; }; }
7867 fi
7868
7869 fi
7870 echo "$as_me:$LINENO: result: $gmp_cv_prog_exeext_for_build" >&5
7871 echo "${ECHO_T}$gmp_cv_prog_exeext_for_build" >&6
7872 EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build
7873
7874
7875
7876 echo "$as_me:$LINENO: checking whether build system compiler is ANSI" >&5
7877 echo $ECHO_N "checking whether build system compiler is ANSI... $ECHO_C" >&6
7878 if test "${gmp_cv_c_for_build_ansi+set}" = set; then
7879   echo $ECHO_N "(cached) $ECHO_C" >&6
7880 else
7881   cat >conftest.c <<EOF
7882 int
7883 main (int argc, char *argv)
7884 {
7885   exit(0);
7886 }
7887 EOF
7888 gmp_compile="$CC_FOR_BUILD conftest.c"
7889 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7890   (eval $gmp_compile) 2>&5
7891   ac_status=$?
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   (exit $ac_status); }; then
7894   gmp_cv_c_for_build_ansi=yes
7895 else
7896   gmp_cv_c_for_build_ansi=no
7897 fi
7898 rm -f conftest* a.out b.out a.exe a_out.exe
7899
7900 fi
7901 echo "$as_me:$LINENO: result: $gmp_cv_c_for_build_ansi" >&5
7902 echo "${ECHO_T}$gmp_cv_c_for_build_ansi" >&6
7903 if test "$gmp_cv_c_for_build_ansi" = yes; then
7904   U_FOR_BUILD=
7905 else
7906   U_FOR_BUILD=_
7907
7908 fi
7909
7910
7911 echo "$as_me:$LINENO: checking for build system compiler math library" >&5
7912 echo $ECHO_N "checking for build system compiler math library... $ECHO_C" >&6
7913 if test "${gmp_cv_check_libm_for_build+set}" = set; then
7914   echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916   cat >conftest.c <<EOF
7917 int
7918 main ()
7919 {
7920   exit(0);
7921 }
7922 double d;
7923 double
7924 foo ()
7925 {
7926   return log (d);
7927 }
7928 EOF
7929 gmp_compile="$CC_FOR_BUILD conftest.c -lm"
7930 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7931   (eval $gmp_compile) 2>&5
7932   ac_status=$?
7933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934   (exit $ac_status); }; then
7935   gmp_cv_check_libm_for_build=-lm
7936 else
7937   gmp_cv_check_libm_for_build=no
7938 fi
7939 rm -f conftest* a.out b.out a.exe a_out.exe
7940
7941 fi
7942 echo "$as_me:$LINENO: result: $gmp_cv_check_libm_for_build" >&5
7943 echo "${ECHO_T}$gmp_cv_check_libm_for_build" >&6
7944 case $gmp_cv_check_libm_for_build in
7945   yes) LIBM_FOR_BUILD=-lm
7946  ;;
7947   no)  LIBM_FOR_BUILD= ;;
7948   *)   LIBM_FOR_BUILD=$gmp_cv_check_libm_for_build ;;
7949 esac
7950
7951
7952
7953 # How to assemble, used with CFLAGS etc, see mpn/Makeasm.am.
7954 # Using the compiler is a lot easier than figuring out how to invoke the
7955 # assembler directly.
7956 #
7957 test -n "$CCAS" || CCAS="$CC -c"
7958
7959
7960
7961 # The C++ compiler, if desired.
7962 want_cxx=no
7963 if test $enable_cxx != no; then
7964   test_CXXFLAGS=${CXXFLAGS+set}
7965   ac_ext=cc
7966 ac_cpp='$CXXCPP $CPPFLAGS'
7967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7970 if test -n "$ac_tool_prefix"; then
7971   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7972   do
7973     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7974 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7975 echo "$as_me:$LINENO: checking for $ac_word" >&5
7976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7977 if test "${ac_cv_prog_CXX+set}" = set; then
7978   echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980   if test -n "$CXX"; then
7981   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7985 do
7986   IFS=$as_save_IFS
7987   test -z "$as_dir" && as_dir=.
7988   for ac_exec_ext in '' $ac_executable_extensions; do
7989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7992     break 2
7993   fi
7994 done
7995 done
7996
7997 fi
7998 fi
7999 CXX=$ac_cv_prog_CXX
8000 if test -n "$CXX"; then
8001   echo "$as_me:$LINENO: result: $CXX" >&5
8002 echo "${ECHO_T}$CXX" >&6
8003 else
8004   echo "$as_me:$LINENO: result: no" >&5
8005 echo "${ECHO_T}no" >&6
8006 fi
8007
8008     test -n "$CXX" && break
8009   done
8010 fi
8011 if test -z "$CXX"; then
8012   ac_ct_CXX=$CXX
8013   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8014 do
8015   # Extract the first word of "$ac_prog", so it can be a program name with args.
8016 set dummy $ac_prog; ac_word=$2
8017 echo "$as_me:$LINENO: checking for $ac_word" >&5
8018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8019 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8020   echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
8022   if test -n "$ac_ct_CXX"; then
8023   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028   IFS=$as_save_IFS
8029   test -z "$as_dir" && as_dir=.
8030   for ac_exec_ext in '' $ac_executable_extensions; do
8031   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032     ac_cv_prog_ac_ct_CXX="$ac_prog"
8033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8034     break 2
8035   fi
8036 done
8037 done
8038
8039 fi
8040 fi
8041 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8042 if test -n "$ac_ct_CXX"; then
8043   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8044 echo "${ECHO_T}$ac_ct_CXX" >&6
8045 else
8046   echo "$as_me:$LINENO: result: no" >&5
8047 echo "${ECHO_T}no" >&6
8048 fi
8049
8050   test -n "$ac_ct_CXX" && break
8051 done
8052 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8053
8054   CXX=$ac_ct_CXX
8055 fi
8056
8057
8058 # Provide some information about the compiler.
8059 echo "$as_me:$LINENO:" \
8060      "checking for C++ compiler version" >&5
8061 ac_compiler=`set X $ac_compile; echo $2`
8062 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8063   (eval $ac_compiler --version </dev/null >&5) 2>&5
8064   ac_status=$?
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); }
8067 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8068   (eval $ac_compiler -v </dev/null >&5) 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }
8072 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8073   (eval $ac_compiler -V </dev/null >&5) 2>&5
8074   ac_status=$?
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); }
8077
8078 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8079 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8080 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8081   echo $ECHO_N "(cached) $ECHO_C" >&6
8082 else
8083   cat >conftest.$ac_ext <<_ACEOF
8084 /* confdefs.h.  */
8085 _ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h.  */
8089
8090 int
8091 main ()
8092 {
8093 #ifndef __GNUC__
8094        choke me
8095 #endif
8096
8097   ;
8098   return 0;
8099 }
8100 _ACEOF
8101 rm -f conftest.$ac_objext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8103   (eval $ac_compile) 2>conftest.er1
8104   ac_status=$?
8105   grep -v '^ *+' conftest.er1 >conftest.err
8106   rm -f conftest.er1
8107   cat conftest.err >&5
8108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109   (exit $ac_status); } &&
8110          { ac_try='test -z "$ac_cxx_werror_flag"
8111                          || test ! -s conftest.err'
8112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113   (eval $ac_try) 2>&5
8114   ac_status=$?
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); }; } &&
8117          { ac_try='test -s conftest.$ac_objext'
8118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119   (eval $ac_try) 2>&5
8120   ac_status=$?
8121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); }; }; then
8123   ac_compiler_gnu=yes
8124 else
8125   echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128 ac_compiler_gnu=no
8129 fi
8130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8131 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8132
8133 fi
8134 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8135 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8136 GXX=`test $ac_compiler_gnu = yes && echo yes`
8137 ac_test_CXXFLAGS=${CXXFLAGS+set}
8138 ac_save_CXXFLAGS=$CXXFLAGS
8139 CXXFLAGS="-g"
8140 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8141 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8142 if test "${ac_cv_prog_cxx_g+set}" = set; then
8143   echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145   cat >conftest.$ac_ext <<_ACEOF
8146 /* confdefs.h.  */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h.  */
8151
8152 int
8153 main ()
8154 {
8155
8156   ;
8157   return 0;
8158 }
8159 _ACEOF
8160 rm -f conftest.$ac_objext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8162   (eval $ac_compile) 2>conftest.er1
8163   ac_status=$?
8164   grep -v '^ *+' conftest.er1 >conftest.err
8165   rm -f conftest.er1
8166   cat conftest.err >&5
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } &&
8169          { ac_try='test -z "$ac_cxx_werror_flag"
8170                          || test ! -s conftest.err'
8171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172   (eval $ac_try) 2>&5
8173   ac_status=$?
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); }; } &&
8176          { ac_try='test -s conftest.$ac_objext'
8177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178   (eval $ac_try) 2>&5
8179   ac_status=$?
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); }; }; then
8182   ac_cv_prog_cxx_g=yes
8183 else
8184   echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8186
8187 ac_cv_prog_cxx_g=no
8188 fi
8189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8190 fi
8191 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8192 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8193 if test "$ac_test_CXXFLAGS" = set; then
8194   CXXFLAGS=$ac_save_CXXFLAGS
8195 elif test $ac_cv_prog_cxx_g = yes; then
8196   if test "$GXX" = yes; then
8197     CXXFLAGS="-g -O2"
8198   else
8199     CXXFLAGS="-g"
8200   fi
8201 else
8202   if test "$GXX" = yes; then
8203     CXXFLAGS="-O2"
8204   else
8205     CXXFLAGS=
8206   fi
8207 fi
8208 for ac_declaration in \
8209    '' \
8210    'extern "C" void std::exit (int) throw (); using std::exit;' \
8211    'extern "C" void std::exit (int); using std::exit;' \
8212    'extern "C" void exit (int) throw ();' \
8213    'extern "C" void exit (int);' \
8214    'void exit (int);'
8215 do
8216   cat >conftest.$ac_ext <<_ACEOF
8217 /* confdefs.h.  */
8218 _ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h.  */
8222 $ac_declaration
8223 #include <stdlib.h>
8224 int
8225 main ()
8226 {
8227 exit (42);
8228   ;
8229   return 0;
8230 }
8231 _ACEOF
8232 rm -f conftest.$ac_objext
8233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8234   (eval $ac_compile) 2>conftest.er1
8235   ac_status=$?
8236   grep -v '^ *+' conftest.er1 >conftest.err
8237   rm -f conftest.er1
8238   cat conftest.err >&5
8239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240   (exit $ac_status); } &&
8241          { ac_try='test -z "$ac_cxx_werror_flag"
8242                          || test ! -s conftest.err'
8243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244   (eval $ac_try) 2>&5
8245   ac_status=$?
8246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); }; } &&
8248          { ac_try='test -s conftest.$ac_objext'
8249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250   (eval $ac_try) 2>&5
8251   ac_status=$?
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); }; }; then
8254   :
8255 else
8256   echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8258
8259 continue
8260 fi
8261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8262   cat >conftest.$ac_ext <<_ACEOF
8263 /* confdefs.h.  */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h.  */
8268 $ac_declaration
8269 int
8270 main ()
8271 {
8272 exit (42);
8273   ;
8274   return 0;
8275 }
8276 _ACEOF
8277 rm -f conftest.$ac_objext
8278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8279   (eval $ac_compile) 2>conftest.er1
8280   ac_status=$?
8281   grep -v '^ *+' conftest.er1 >conftest.err
8282   rm -f conftest.er1
8283   cat conftest.err >&5
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); } &&
8286          { ac_try='test -z "$ac_cxx_werror_flag"
8287                          || test ! -s conftest.err'
8288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289   (eval $ac_try) 2>&5
8290   ac_status=$?
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); }; } &&
8293          { ac_try='test -s conftest.$ac_objext'
8294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295   (eval $ac_try) 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); }; }; then
8299   break
8300 else
8301   echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8303
8304 fi
8305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8306 done
8307 rm -f conftest*
8308 if test -n "$ac_declaration"; then
8309   echo '#ifdef __cplusplus' >>confdefs.h
8310   echo $ac_declaration      >>confdefs.h
8311   echo '#endif'             >>confdefs.h
8312 fi
8313
8314 ac_ext=c
8315 ac_cpp='$CPP $CPPFLAGS'
8316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8319
8320
8321   echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&5
8322   cxxflags_ac_prog_cxx=$CXXFLAGS
8323   cxxflags_list=ac_prog_cxx
8324
8325   # If the user didn't specify $CXXFLAGS, then try $CFLAGS, with -g removed
8326   # if AC_PROG_CXX thinks that doesn't work.  $CFLAGS stands a good chance
8327   # of working, eg. on a GNU system where CC=gcc and CXX=g++.
8328   #
8329   if test "$test_CXXFLAGS" != set; then
8330     cxxflags_cflags=$CFLAGS
8331     cxxflags_list="cflags $cxxflags_list"
8332     if test "$ac_prog_cxx_g" = no; then
8333       cxxflags_cflags=`echo "$cxxflags_cflags" | sed -e 's/ -g //' -e 's/^-g //' -e 's/ -g$//'`
8334     fi
8335   fi
8336
8337   # See if the C++ compiler works.  If the user specified CXXFLAGS then all
8338   # we're doing is checking whether AC_PROG_CXX succeeded, since it doesn't
8339   # give a fatal error, just leaves CXX set to a default g++.  If on the
8340   # other hand the user didn't specify CXXFLAGS then we get to try here our
8341   # $cxxflags_list alternatives.
8342   #
8343   # Automake includes $CPPFLAGS in a C++ compile, so we do the same here.
8344   #
8345   for cxxflags_choice in $cxxflags_list; do
8346     eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\"
8347     echo "$as_me:$LINENO: checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS" >&5
8348 echo $ECHO_N "checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS... $ECHO_C" >&6
8349 gmp_prog_cxx_works=yes
8350
8351 # start with a plain "main()", then go on to further checks
8352 if test "$gmp_prog_cxx_works" = yes; then
8353   # remove anything that might look like compiler output to our "||" expression
8354   rm -f conftest* a.out b.out a.exe a_out.exe
8355   cat >conftest.cc <<EOF
8356
8357 int main (void) { return 0; }
8358 EOF
8359   echo "Test compile: " >&5
8360   gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
8361   if { (eval echo "$as_me:$LINENO: \"$gmp_cxxcompile\"") >&5
8362   (eval $gmp_cxxcompile) 2>&5
8363   ac_status=$?
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); }; then
8366     if test "$cross_compiling" = no; then
8367       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369   (eval $ac_try) 2>&5
8370   ac_status=$?
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); }; }; then :;
8373       else
8374         gmp_prog_cxx_works="no, program does not run"
8375       fi
8376     fi
8377   else
8378     gmp_prog_cxx_works="no"
8379   fi
8380   case $gmp_prog_cxx_works in
8381     no*)
8382       echo "failed program was:" >&5
8383       cat conftest.cc >&5
8384       ;;
8385   esac
8386   rm -f conftest* a.out b.out a.exe a_out.exe
8387 fi
8388
8389
8390 if test "$gmp_prog_cxx_works" = yes; then
8391   # remove anything that might look like compiler output to our "||" expression
8392   rm -f conftest* a.out b.out a.exe a_out.exe
8393   cat >conftest.cc <<EOF
8394 namespace foo { }
8395 using namespace foo;
8396
8397 int main (void) { return 0; }
8398 EOF
8399   echo "Test compile: namespace" >&5
8400   gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
8401   if { (eval echo "$as_me:$LINENO: \"$gmp_cxxcompile\"") >&5
8402   (eval $gmp_cxxcompile) 2>&5
8403   ac_status=$?
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); }; then
8406     if test "$cross_compiling" = no; then
8407       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409   (eval $ac_try) 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }; }; then :;
8413       else
8414         gmp_prog_cxx_works="no, namespace, program does not run"
8415       fi
8416     fi
8417   else
8418     gmp_prog_cxx_works="no, namespace"
8419   fi
8420   case $gmp_prog_cxx_works in
8421     no*)
8422       echo "failed program was:" >&5
8423       cat conftest.cc >&5
8424       ;;
8425   esac
8426   rm -f conftest* a.out b.out a.exe a_out.exe
8427 fi
8428
8429
8430 # GMP requires the standard C++ iostream classes
8431 if test "$gmp_prog_cxx_works" = yes; then
8432   # remove anything that might look like compiler output to our "||" expression
8433   rm -f conftest* a.out b.out a.exe a_out.exe
8434   cat >conftest.cc <<EOF
8435 /* This test rejects g++ 2.7.2 which doesn't have <iostream>, only a
8436     pre-standard iostream.h. */
8437 #include <iostream>
8438
8439 /* This test rejects OSF 5.1 Compaq C++ in its default pre-standard iostream
8440    mode, since that mode puts cout in the global namespace, not "std".  */
8441 void someoutput (void) { std::cout << 123; }
8442
8443 int main (void) { return 0; }
8444 EOF
8445   echo "Test compile: std iostream" >&5
8446   gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
8447   if { (eval echo "$as_me:$LINENO: \"$gmp_cxxcompile\"") >&5
8448   (eval $gmp_cxxcompile) 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); }; then
8452     if test "$cross_compiling" = no; then
8453       if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455   (eval $ac_try) 2>&5
8456   ac_status=$?
8457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458   (exit $ac_status); }; }; then :;
8459       else
8460         gmp_prog_cxx_works="no, std iostream, program does not run"
8461       fi
8462     fi
8463   else
8464     gmp_prog_cxx_works="no, std iostream"
8465   fi
8466   case $gmp_prog_cxx_works in
8467     no*)
8468       echo "failed program was:" >&5
8469       cat conftest.cc >&5
8470       ;;
8471   esac
8472   rm -f conftest* a.out b.out a.exe a_out.exe
8473 fi
8474
8475
8476 echo "$as_me:$LINENO: result: $gmp_prog_cxx_works" >&5
8477 echo "${ECHO_T}$gmp_prog_cxx_works" >&6
8478 case $gmp_prog_cxx_works in
8479   yes)
8480     want_cxx=yes
8481       break
8482     ;;
8483   *)
8484
8485     ;;
8486 esac
8487
8488   done
8489
8490   # If --enable-cxx=yes but a C++ compiler can't be found, then abort.
8491   if test $want_cxx = no && test $enable_cxx = yes; then
8492     { { echo "$as_me:$LINENO: error: C++ compiler not available, see config.log for details" >&5
8493 echo "$as_me: error: C++ compiler not available, see config.log for details" >&2;}
8494    { (exit 1); exit 1; }; }
8495   fi
8496 fi
8497
8498
8499
8500 if test $want_cxx = yes; then
8501   WANT_CXX_TRUE=
8502   WANT_CXX_FALSE='#'
8503 else
8504   WANT_CXX_TRUE='#'
8505   WANT_CXX_FALSE=
8506 fi
8507
8508
8509 # FIXME: We're not interested in CXXCPP for ourselves, but if we don't do it
8510 # here then AC_PROG_LIBTOOL will AC_REQUIRE it (via _LT_AC_TAGCONFIG) and
8511 # hence execute it unconditionally, and that will fail if there's no C++
8512 # compiler (and no generic /lib/cpp).
8513 #
8514 if test $want_cxx = yes; then
8515   ac_ext=cc
8516 ac_cpp='$CXXCPP $CPPFLAGS'
8517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8520 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8521 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8522 if test -z "$CXXCPP"; then
8523   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8524   echo $ECHO_N "(cached) $ECHO_C" >&6
8525 else
8526       # Double quotes because CXXCPP needs to be expanded
8527     for CXXCPP in "$CXX -E" "/lib/cpp"
8528     do
8529       ac_preproc_ok=false
8530 for ac_cxx_preproc_warn_flag in '' yes
8531 do
8532   # Use a header file that comes with gcc, so configuring glibc
8533   # with a fresh cross-compiler works.
8534   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8535   # <limits.h> exists even on freestanding compilers.
8536   # On the NeXT, cc -E runs the code through the compiler's parser,
8537   # not just through cpp. "Syntax error" is here to catch this case.
8538   cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h.  */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h.  */
8544 #ifdef __STDC__
8545 # include <limits.h>
8546 #else
8547 # include <assert.h>
8548 #endif
8549                      Syntax error
8550 _ACEOF
8551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8552   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8553   ac_status=$?
8554   grep -v '^ *+' conftest.er1 >conftest.err
8555   rm -f conftest.er1
8556   cat conftest.err >&5
8557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   (exit $ac_status); } >/dev/null; then
8559   if test -s conftest.err; then
8560     ac_cpp_err=$ac_cxx_preproc_warn_flag
8561     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8562   else
8563     ac_cpp_err=
8564   fi
8565 else
8566   ac_cpp_err=yes
8567 fi
8568 if test -z "$ac_cpp_err"; then
8569   :
8570 else
8571   echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8573
8574   # Broken: fails on valid input.
8575 continue
8576 fi
8577 rm -f conftest.err conftest.$ac_ext
8578
8579   # OK, works on sane cases.  Now check whether non-existent headers
8580   # can be detected and how.
8581   cat >conftest.$ac_ext <<_ACEOF
8582 /* confdefs.h.  */
8583 _ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h.  */
8587 #include <ac_nonexistent.h>
8588 _ACEOF
8589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8590   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8591   ac_status=$?
8592   grep -v '^ *+' conftest.er1 >conftest.err
8593   rm -f conftest.er1
8594   cat conftest.err >&5
8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); } >/dev/null; then
8597   if test -s conftest.err; then
8598     ac_cpp_err=$ac_cxx_preproc_warn_flag
8599     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8600   else
8601     ac_cpp_err=
8602   fi
8603 else
8604   ac_cpp_err=yes
8605 fi
8606 if test -z "$ac_cpp_err"; then
8607   # Broken: success on invalid input.
8608 continue
8609 else
8610   echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613   # Passes both tests.
8614 ac_preproc_ok=:
8615 break
8616 fi
8617 rm -f conftest.err conftest.$ac_ext
8618
8619 done
8620 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8621 rm -f conftest.err conftest.$ac_ext
8622 if $ac_preproc_ok; then
8623   break
8624 fi
8625
8626     done
8627     ac_cv_prog_CXXCPP=$CXXCPP
8628
8629 fi
8630   CXXCPP=$ac_cv_prog_CXXCPP
8631 else
8632   ac_cv_prog_CXXCPP=$CXXCPP
8633 fi
8634 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8635 echo "${ECHO_T}$CXXCPP" >&6
8636 ac_preproc_ok=false
8637 for ac_cxx_preproc_warn_flag in '' yes
8638 do
8639   # Use a header file that comes with gcc, so configuring glibc
8640   # with a fresh cross-compiler works.
8641   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8642   # <limits.h> exists even on freestanding compilers.
8643   # On the NeXT, cc -E runs the code through the compiler's parser,
8644   # not just through cpp. "Syntax error" is here to catch this case.
8645   cat >conftest.$ac_ext <<_ACEOF
8646 /* confdefs.h.  */
8647 _ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h.  */
8651 #ifdef __STDC__
8652 # include <limits.h>
8653 #else
8654 # include <assert.h>
8655 #endif
8656                      Syntax error
8657 _ACEOF
8658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8659   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8660   ac_status=$?
8661   grep -v '^ *+' conftest.er1 >conftest.err
8662   rm -f conftest.er1
8663   cat conftest.err >&5
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); } >/dev/null; then
8666   if test -s conftest.err; then
8667     ac_cpp_err=$ac_cxx_preproc_warn_flag
8668     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8669   else
8670     ac_cpp_err=
8671   fi
8672 else
8673   ac_cpp_err=yes
8674 fi
8675 if test -z "$ac_cpp_err"; then
8676   :
8677 else
8678   echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8680
8681   # Broken: fails on valid input.
8682 continue
8683 fi
8684 rm -f conftest.err conftest.$ac_ext
8685
8686   # OK, works on sane cases.  Now check whether non-existent headers
8687   # can be detected and how.
8688   cat >conftest.$ac_ext <<_ACEOF
8689 /* confdefs.h.  */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h.  */
8694 #include <ac_nonexistent.h>
8695 _ACEOF
8696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8697   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8698   ac_status=$?
8699   grep -v '^ *+' conftest.er1 >conftest.err
8700   rm -f conftest.er1
8701   cat conftest.err >&5
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); } >/dev/null; then
8704   if test -s conftest.err; then
8705     ac_cpp_err=$ac_cxx_preproc_warn_flag
8706     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8707   else
8708     ac_cpp_err=
8709   fi
8710 else
8711   ac_cpp_err=yes
8712 fi
8713 if test -z "$ac_cpp_err"; then
8714   # Broken: success on invalid input.
8715 continue
8716 else
8717   echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8719
8720   # Passes both tests.
8721 ac_preproc_ok=:
8722 break
8723 fi
8724 rm -f conftest.err conftest.$ac_ext
8725
8726 done
8727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8728 rm -f conftest.err conftest.$ac_ext
8729 if $ac_preproc_ok; then
8730   :
8731 else
8732   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8733 See \`config.log' for more details." >&5
8734 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8735 See \`config.log' for more details." >&2;}
8736    { (exit 1); exit 1; }; }
8737 fi
8738
8739 ac_ext=c
8740 ac_cpp='$CPP $CPPFLAGS'
8741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8744
8745 fi
8746
8747
8748 # Path setups for Cray, according to IEEE or CFP.  These must come after
8749 # deciding the compiler.
8750 #
8751
8752 echo "$as_me:$LINENO: checking for egrep" >&5
8753 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
8754 if test "${ac_cv_prog_egrep+set}" = set; then
8755   echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
8758     then ac_cv_prog_egrep='grep -E'
8759     else ac_cv_prog_egrep='egrep'
8760     fi
8761 fi
8762 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
8763 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
8764  EGREP=$ac_cv_prog_egrep
8765
8766
8767 case $host_cpu in
8768   c90 | t90)
8769     cat >conftest.$ac_ext <<_ACEOF
8770 /* confdefs.h.  */
8771 _ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h.  */
8775 #ifdef _CRAYIEEE
8776 yes
8777 #endif
8778 _ACEOF
8779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8780   $EGREP "yes" >/dev/null 2>&1; then
8781   add_path="cray/ieee"
8782 else
8783   add_path="cray/cfp"; extra_functions="mulwwc90"
8784 fi
8785 rm -f conftest*
8786
8787     ;;
8788   j90 | sv1)
8789     add_path="cray/cfp"; extra_functions="mulwwj90"
8790     ;;
8791 esac
8792
8793
8794
8795 if test -z "$MPN_PATH"; then
8796   path="$add_path $path"
8797 fi
8798
8799 # For a nail build, also look in "nails" subdirectories.
8800 #
8801 if test $GMP_NAIL_BITS != 0 && test -z "$MPN_PATH"; then
8802   new_path=
8803   for i in $path; do
8804     case $i in
8805     generic) new_path="$new_path $i" ;;
8806     *)       new_path="$new_path $i/nails $i" ;;
8807     esac
8808   done
8809   path=$new_path
8810 fi
8811
8812
8813 # Put all directories into CPUVEC_list so as to get a full set of
8814 # CPUVEC_SETUP_$tmp_suffix defines into config.h, even if some of them are
8815 # empty because mmx and/or sse2 had to be dropped.
8816 #
8817 for i in $fat_path; do
8818   tmp_suffix=`echo $i | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
8819   CPUVEC_list="$CPUVEC_list CPUVEC_SETUP_$tmp_suffix"
8820 done
8821
8822
8823 # If there's any sse2 or mmx in the path, check whether the assembler
8824 # supports it, and remove if not.
8825 #
8826 # We only need this in ABI=32, for ABI=64 on x86_64 we can assume a new
8827 # enough assembler.
8828 #
8829 case $host in
8830   i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | x86_64-*-*)
8831     if test "$ABI" = 32; then
8832       case "$path $fat_path" in
8833         *mmx*)   echo "$as_me:$LINENO: checking if the assembler knows about MMX instructions" >&5
8834 echo $ECHO_N "checking if the assembler knows about MMX instructions... $ECHO_C" >&6
8835 if test "${gmp_cv_asm_x86_mmx+set}" = set; then
8836   echo $ECHO_N "(cached) $ECHO_C" >&6
8837 else
8838   cat >conftest.s <<EOF
8839         .text
8840         movq    %mm0, %mm1
8841 EOF
8842 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
8843 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
8844   (eval $gmp_assemble) 2>&5
8845   ac_status=$?
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); }; then
8848   cat conftest.out >&5
8849   gmp_cv_asm_x86_mmx=yes
8850 case $host in
8851 *-*-solaris*)
8852   if (dis conftest.$OBJEXT >conftest.out) 2>/dev/null; then
8853     if grep "0f 6f c1" conftest.out >/dev/null; then
8854       gmp_cv_asm_x86_mmx=movq-bug
8855     fi
8856   else
8857     { echo "$as_me:$LINENO: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5
8858 echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;}
8859   fi
8860 esac
8861 else
8862   cat conftest.out >&5
8863   echo "configure: failed program was:" >&5
8864   cat conftest.s >&5
8865   gmp_cv_asm_x86_mmx=no
8866 fi
8867 rm -f conftest*
8868
8869 fi
8870 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_mmx" >&5
8871 echo "${ECHO_T}$gmp_cv_asm_x86_mmx" >&6
8872
8873 case $gmp_cv_asm_x86_mmx in
8874 movq-bug)
8875   { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8876 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8877   { echo "$as_me:$LINENO: WARNING: | WARNING WARNING WARNING" >&5
8878 echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
8879   { echo "$as_me:$LINENO: WARNING: | Host CPU has MMX code, but the assembler" >&5
8880 echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;}
8881   { echo "$as_me:$LINENO: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&5
8882 echo "$as_me: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&2;}
8883   { echo "$as_me:$LINENO: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5
8884 echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;}
8885   { echo "$as_me:$LINENO: WARNING: | movq operands are reversed." >&5
8886 echo "$as_me: WARNING: | movq operands are reversed." >&2;}
8887   { echo "$as_me:$LINENO: WARNING: | Non-MMX replacements will be used." >&5
8888 echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
8889   { echo "$as_me:$LINENO: WARNING: | This will be an inferior build." >&5
8890 echo "$as_me: WARNING: | This will be an inferior build." >&2;}
8891   { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8892 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8893   ;;
8894 no)
8895   { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8896 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8897   { echo "$as_me:$LINENO: WARNING: | WARNING WARNING WARNING" >&5
8898 echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
8899   { echo "$as_me:$LINENO: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5
8900 echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;}
8901   { echo "$as_me:$LINENO: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&5
8902 echo "$as_me: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&2;}
8903   { echo "$as_me:$LINENO: WARNING: | Non-MMX replacements will be used." >&5
8904 echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
8905   { echo "$as_me:$LINENO: WARNING: | This will be an inferior build." >&5
8906 echo "$as_me: WARNING: | This will be an inferior build." >&2;}
8907   { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8908 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8909   ;;
8910 esac
8911 if test "$gmp_cv_asm_x86_mmx" = yes; then
8912   :
8913 else
8914   tmp_path=
8915 for i in $path; do
8916   case $i in
8917     */*mmx*) ;;
8918     *) tmp_path="$tmp_path $i" ;;
8919   esac
8920 done
8921 path="$tmp_path"
8922
8923 tmp_path=
8924 for i in $fat_path; do
8925   case $i in
8926     */*mmx*) ;;
8927     *) tmp_path="$tmp_path $i" ;;
8928   esac
8929 done
8930 fat_path="$tmp_path"
8931
8932
8933 fi
8934  ;;
8935       esac
8936       case "$path $fat_path" in
8937         *sse2*)  echo "$as_me:$LINENO: checking if the assembler knows about SSE2 instructions" >&5
8938 echo $ECHO_N "checking if the assembler knows about SSE2 instructions... $ECHO_C" >&6
8939 if test "${gmp_cv_asm_x86_sse2+set}" = set; then
8940   echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942   cat >conftest.s <<EOF
8943         .text
8944         paddq   %mm0, %mm1
8945 EOF
8946 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
8947 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
8948   (eval $gmp_assemble) 2>&5
8949   ac_status=$?
8950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   (exit $ac_status); }; then
8952   cat conftest.out >&5
8953   gmp_cv_asm_x86_sse2=yes
8954 else
8955   cat conftest.out >&5
8956   echo "configure: failed program was:" >&5
8957   cat conftest.s >&5
8958   gmp_cv_asm_x86_sse2=no
8959 fi
8960 rm -f conftest*
8961
8962
8963 fi
8964 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_sse2" >&5
8965 echo "${ECHO_T}$gmp_cv_asm_x86_sse2" >&6
8966 case $gmp_cv_asm_x86_sse2 in
8967 yes)
8968   :
8969   ;;
8970 *)
8971   { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8972 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8973   { echo "$as_me:$LINENO: WARNING: | WARNING WARNING WARNING" >&5
8974 echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
8975   { echo "$as_me:$LINENO: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5
8976 echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;}
8977   { echo "$as_me:$LINENO: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&5
8978 echo "$as_me: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&2;}
8979   { echo "$as_me:$LINENO: WARNING: | Non-SSE2 replacements will be used." >&5
8980 echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;}
8981   { echo "$as_me:$LINENO: WARNING: | This will be an inferior build." >&5
8982 echo "$as_me: WARNING: | This will be an inferior build." >&2;}
8983   { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8984 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8985   tmp_path=
8986 for i in $path; do
8987   case $i in
8988     */sse2) ;;
8989     *) tmp_path="$tmp_path $i" ;;
8990   esac
8991 done
8992 path="$tmp_path"
8993
8994 tmp_path=
8995 for i in $fat_path; do
8996   case $i in
8997     */sse2) ;;
8998     *) tmp_path="$tmp_path $i" ;;
8999   esac
9000 done
9001 fat_path="$tmp_path"
9002
9003
9004   ;;
9005 esac
9006  ;;
9007       esac
9008     fi
9009     ;;
9010 esac
9011
9012
9013 cat >&5 <<EOF
9014 Decided:
9015 ABI=$ABI
9016 CC=$CC
9017 CFLAGS=$CFLAGS
9018 CPPFLAGS=$CPPFLAGS
9019 GMP_LDFLAGS=$GMP_LDFLAGS
9020 CXX=$CXX
9021 CXXFLAGS=$CXXFLAGS
9022 path=$path
9023 EOF
9024 echo "using ABI=\"$ABI\""
9025 echo "      CC=\"$CC\""
9026 echo "      CFLAGS=\"$CFLAGS\""
9027 echo "      CPPFLAGS=\"$CPPFLAGS\""
9028 if test $want_cxx = yes; then
9029   echo "      CXX=\"$CXX\""
9030   echo "      CXXFLAGS=\"$CXXFLAGS\""
9031 fi
9032 echo "      MPN_PATH=\"$path\""
9033
9034
9035 # Automake ansi2knr support.
9036 echo "$as_me:$LINENO: checking for function prototypes" >&5
9037 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
9038 if test "$ac_cv_prog_cc_stdc" != no; then
9039   echo "$as_me:$LINENO: result: yes" >&5
9040 echo "${ECHO_T}yes" >&6
9041
9042 cat >>confdefs.h <<\_ACEOF
9043 #define PROTOTYPES 1
9044 _ACEOF
9045
9046
9047 cat >>confdefs.h <<\_ACEOF
9048 #define __PROTOTYPES 1
9049 _ACEOF
9050
9051 else
9052   echo "$as_me:$LINENO: result: no" >&5
9053 echo "${ECHO_T}no" >&6
9054 fi
9055
9056 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9057 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9058 if test "${ac_cv_header_stdc+set}" = set; then
9059   echo $ECHO_N "(cached) $ECHO_C" >&6
9060 else
9061   cat >conftest.$ac_ext <<_ACEOF
9062 /* confdefs.h.  */
9063 _ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h.  */
9067 #include <stdlib.h>
9068 #include <stdarg.h>
9069 #include <string.h>
9070 #include <float.h>
9071
9072 int
9073 main ()
9074 {
9075
9076   ;
9077   return 0;
9078 }
9079 _ACEOF
9080 rm -f conftest.$ac_objext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9082   (eval $ac_compile) 2>conftest.er1
9083   ac_status=$?
9084   grep -v '^ *+' conftest.er1 >conftest.err
9085   rm -f conftest.er1
9086   cat conftest.err >&5
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); } &&
9089          { ac_try='test -z "$ac_c_werror_flag"
9090                          || test ! -s conftest.err'
9091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092   (eval $ac_try) 2>&5
9093   ac_status=$?
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); }; } &&
9096          { ac_try='test -s conftest.$ac_objext'
9097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098   (eval $ac_try) 2>&5
9099   ac_status=$?
9100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101   (exit $ac_status); }; }; then
9102   ac_cv_header_stdc=yes
9103 else
9104   echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9106
9107 ac_cv_header_stdc=no
9108 fi
9109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9110
9111 if test $ac_cv_header_stdc = yes; then
9112   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9113   cat >conftest.$ac_ext <<_ACEOF
9114 /* confdefs.h.  */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h.  */
9119 #include <string.h>
9120
9121 _ACEOF
9122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9123   $EGREP "memchr" >/dev/null 2>&1; then
9124   :
9125 else
9126   ac_cv_header_stdc=no
9127 fi
9128 rm -f conftest*
9129
9130 fi
9131
9132 if test $ac_cv_header_stdc = yes; then
9133   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9134   cat >conftest.$ac_ext <<_ACEOF
9135 /* confdefs.h.  */
9136 _ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h.  */
9140 #include <stdlib.h>
9141
9142 _ACEOF
9143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9144   $EGREP "free" >/dev/null 2>&1; then
9145   :
9146 else
9147   ac_cv_header_stdc=no
9148 fi
9149 rm -f conftest*
9150
9151 fi
9152
9153 if test $ac_cv_header_stdc = yes; then
9154   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9155   if test "$cross_compiling" = yes; then
9156   :
9157 else
9158   cat >conftest.$ac_ext <<_ACEOF
9159 /* confdefs.h.  */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h.  */
9164 #include <ctype.h>
9165 #if ((' ' & 0x0FF) == 0x020)
9166 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9167 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9168 #else
9169 # define ISLOWER(c) \
9170                    (('a' <= (c) && (c) <= 'i') \
9171                      || ('j' <= (c) && (c) <= 'r') \
9172                      || ('s' <= (c) && (c) <= 'z'))
9173 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9174 #endif
9175
9176 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9177 int
9178 main ()
9179 {
9180   int i;
9181   for (i = 0; i < 256; i++)
9182     if (XOR (islower (i), ISLOWER (i))
9183         || toupper (i) != TOUPPER (i))
9184       exit(2);
9185   exit (0);
9186 }
9187 _ACEOF
9188 rm -f conftest$ac_exeext
9189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9190   (eval $ac_link) 2>&5
9191   ac_status=$?
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195   (eval $ac_try) 2>&5
9196   ac_status=$?
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); }; }; then
9199   :
9200 else
9201   echo "$as_me: program exited with status $ac_status" >&5
9202 echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9204
9205 ( exit $ac_status )
9206 ac_cv_header_stdc=no
9207 fi
9208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9209 fi
9210 fi
9211 fi
9212 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9213 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9214 if test $ac_cv_header_stdc = yes; then
9215
9216 cat >>confdefs.h <<\_ACEOF
9217 #define STDC_HEADERS 1
9218 _ACEOF
9219
9220 fi
9221
9222 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9233                   inttypes.h stdint.h unistd.h
9234 do
9235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9236 echo "$as_me:$LINENO: checking for $ac_header" >&5
9237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9239   echo $ECHO_N "(cached) $ECHO_C" >&6
9240 else
9241   cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h.  */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h.  */
9247 $ac_includes_default
9248
9249 #include <$ac_header>
9250 _ACEOF
9251 rm -f conftest.$ac_objext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9253   (eval $ac_compile) 2>conftest.er1
9254   ac_status=$?
9255   grep -v '^ *+' conftest.er1 >conftest.err
9256   rm -f conftest.er1
9257   cat conftest.err >&5
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); } &&
9260          { ac_try='test -z "$ac_c_werror_flag"
9261                          || test ! -s conftest.err'
9262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263   (eval $ac_try) 2>&5
9264   ac_status=$?
9265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266   (exit $ac_status); }; } &&
9267          { ac_try='test -s conftest.$ac_objext'
9268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269   (eval $ac_try) 2>&5
9270   ac_status=$?
9271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272   (exit $ac_status); }; }; then
9273   eval "$as_ac_Header=yes"
9274 else
9275   echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9277
9278 eval "$as_ac_Header=no"
9279 fi
9280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9281 fi
9282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9285   cat >>confdefs.h <<_ACEOF
9286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9287 _ACEOF
9288
9289 fi
9290
9291 done
9292
9293
9294
9295 if test "$ac_cv_prog_cc_stdc" != no; then
9296   U= ANSI2KNR=
9297 else
9298   U=_ ANSI2KNR=./ansi2knr
9299 fi
9300 # Ensure some checks needed by ansi2knr itself.
9301
9302
9303 for ac_header in string.h
9304 do
9305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9307   echo "$as_me:$LINENO: checking for $ac_header" >&5
9308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9310   echo $ECHO_N "(cached) $ECHO_C" >&6
9311 fi
9312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9314 else
9315   # Is the header compilable?
9316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9318 cat >conftest.$ac_ext <<_ACEOF
9319 /* confdefs.h.  */
9320 _ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h.  */
9324 $ac_includes_default
9325 #include <$ac_header>
9326 _ACEOF
9327 rm -f conftest.$ac_objext
9328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9329   (eval $ac_compile) 2>conftest.er1
9330   ac_status=$?
9331   grep -v '^ *+' conftest.er1 >conftest.err
9332   rm -f conftest.er1
9333   cat conftest.err >&5
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); } &&
9336          { ac_try='test -z "$ac_c_werror_flag"
9337                          || test ! -s conftest.err'
9338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339   (eval $ac_try) 2>&5
9340   ac_status=$?
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); }; } &&
9343          { ac_try='test -s conftest.$ac_objext'
9344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345   (eval $ac_try) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); }; }; then
9349   ac_header_compiler=yes
9350 else
9351   echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9353
9354 ac_header_compiler=no
9355 fi
9356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9358 echo "${ECHO_T}$ac_header_compiler" >&6
9359
9360 # Is the header present?
9361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9363 cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h.  */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h.  */
9369 #include <$ac_header>
9370 _ACEOF
9371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9372   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9373   ac_status=$?
9374   grep -v '^ *+' conftest.er1 >conftest.err
9375   rm -f conftest.er1
9376   cat conftest.err >&5
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); } >/dev/null; then
9379   if test -s conftest.err; then
9380     ac_cpp_err=$ac_c_preproc_warn_flag
9381     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9382   else
9383     ac_cpp_err=
9384   fi
9385 else
9386   ac_cpp_err=yes
9387 fi
9388 if test -z "$ac_cpp_err"; then
9389   ac_header_preproc=yes
9390 else
9391   echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9393
9394   ac_header_preproc=no
9395 fi
9396 rm -f conftest.err conftest.$ac_ext
9397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9398 echo "${ECHO_T}$ac_header_preproc" >&6
9399
9400 # So?  What about this header?
9401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9402   yes:no: )
9403     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9407     ac_header_preproc=yes
9408     ;;
9409   no:yes:* )
9410     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9412     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9413 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9414     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9416     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9417 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9420     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9422     (
9423       cat <<\_ASBOX
9424 ## -------------------------------- ##
9425 ## Report this to gmp-bugs@swox.com ##
9426 ## -------------------------------- ##
9427 _ASBOX
9428     ) |
9429       sed "s/^/$as_me: WARNING:     /" >&2
9430     ;;
9431 esac
9432 echo "$as_me:$LINENO: checking for $ac_header" >&5
9433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9435   echo $ECHO_N "(cached) $ECHO_C" >&6
9436 else
9437   eval "$as_ac_Header=\$ac_header_preproc"
9438 fi
9439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9441
9442 fi
9443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9444   cat >>confdefs.h <<_ACEOF
9445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9446 _ACEOF
9447
9448 fi
9449
9450 done
9451
9452
9453
9454
9455 gmp_user_AR=$AR
9456 if test -n "$ac_tool_prefix"; then
9457   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9458 set dummy ${ac_tool_prefix}ar; ac_word=$2
9459 echo "$as_me:$LINENO: checking for $ac_word" >&5
9460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9461 if test "${ac_cv_prog_AR+set}" = set; then
9462   echo $ECHO_N "(cached) $ECHO_C" >&6
9463 else
9464   if test -n "$AR"; then
9465   ac_cv_prog_AR="$AR" # Let the user override the test.
9466 else
9467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9468 for as_dir in $PATH
9469 do
9470   IFS=$as_save_IFS
9471   test -z "$as_dir" && as_dir=.
9472   for ac_exec_ext in '' $ac_executable_extensions; do
9473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9474     ac_cv_prog_AR="${ac_tool_prefix}ar"
9475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9476     break 2
9477   fi
9478 done
9479 done
9480
9481 fi
9482 fi
9483 AR=$ac_cv_prog_AR
9484 if test -n "$AR"; then
9485   echo "$as_me:$LINENO: result: $AR" >&5
9486 echo "${ECHO_T}$AR" >&6
9487 else
9488   echo "$as_me:$LINENO: result: no" >&5
9489 echo "${ECHO_T}no" >&6
9490 fi
9491
9492 fi
9493 if test -z "$ac_cv_prog_AR"; then
9494   ac_ct_AR=$AR
9495   # Extract the first word of "ar", so it can be a program name with args.
9496 set dummy ar; ac_word=$2
9497 echo "$as_me:$LINENO: checking for $ac_word" >&5
9498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9499 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9500   echo $ECHO_N "(cached) $ECHO_C" >&6
9501 else
9502   if test -n "$ac_ct_AR"; then
9503   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9504 else
9505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9506 for as_dir in $PATH
9507 do
9508   IFS=$as_save_IFS
9509   test -z "$as_dir" && as_dir=.
9510   for ac_exec_ext in '' $ac_executable_extensions; do
9511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9512     ac_cv_prog_ac_ct_AR="ar"
9513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9514     break 2
9515   fi
9516 done
9517 done
9518
9519   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
9520 fi
9521 fi
9522 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9523 if test -n "$ac_ct_AR"; then
9524   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9525 echo "${ECHO_T}$ac_ct_AR" >&6
9526 else
9527   echo "$as_me:$LINENO: result: no" >&5
9528 echo "${ECHO_T}no" >&6
9529 fi
9530
9531   AR=$ac_ct_AR
9532 else
9533   AR="$ac_cv_prog_AR"
9534 fi
9535
9536 if test -z "$gmp_user_AR"; then
9537                         eval arflags=\"\$ar${abi1}_flags\"
9538   test -n "$arflags" || eval arflags=\"\$ar${abi2}_flags\"
9539   if test -n "$arflags"; then
9540     echo "$as_me:$LINENO: checking for extra ar flags" >&5
9541 echo $ECHO_N "checking for extra ar flags... $ECHO_C" >&6
9542     AR="$AR $arflags"
9543     ac_cv_prog_AR="$AR $arflags"
9544     ac_cv_prog_ac_ct_AR="$AR $arflags"
9545     echo "$as_me:$LINENO: result: $arflags" >&5
9546 echo "${ECHO_T}$arflags" >&6
9547   fi
9548 fi
9549 if test -z "$AR_FLAGS"; then
9550   AR_FLAGS=cq
9551 fi
9552
9553
9554 gmp_user_NM=$NM
9555 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9556 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
9557 if test "${lt_cv_path_NM+set}" = set; then
9558   echo $ECHO_N "(cached) $ECHO_C" >&6
9559 else
9560   if test -n "$NM"; then
9561   # Let the user override the test.
9562   lt_cv_path_NM="$NM"
9563 else
9564   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9565   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
9566     IFS="$lt_save_ifs"
9567     test -z "$ac_dir" && ac_dir=.
9568     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
9569     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9570       # Check to see if the nm accepts a BSD-compat flag.
9571       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9572       #   nm: unknown option "B" ignored
9573       # Tru64's nm complains that /dev/null is an invalid object file
9574       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9575       */dev/null* | *'Invalid file or object type'*)
9576         lt_cv_path_NM="$tmp_nm -B"
9577         break
9578         ;;
9579       *)
9580         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9581         */dev/null*)
9582           lt_cv_path_NM="$tmp_nm -p"
9583           break
9584           ;;
9585         *)
9586           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9587           continue # so that we can try to find one that supports BSD flags
9588           ;;
9589         esac
9590       esac
9591     fi
9592   done
9593   IFS="$lt_save_ifs"
9594   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9595 fi
9596 fi
9597 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9598 echo "${ECHO_T}$lt_cv_path_NM" >&6
9599 NM="$lt_cv_path_NM"
9600
9601
9602 # FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool
9603 # defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found.  In this
9604 # case run it again to try the native "nm", firstly so that likely locations
9605 # are searched, secondly so that -B or -p are added if necessary for BSD
9606 # format.  This is necessary for instance on OSF with "./configure
9607 # --build=alphaev5-dec-osf --host=alphaev6-dec-osf".
9608 #
9609 if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm; then
9610   $as_unset lt_cv_path_NM
9611   gmp_save_ac_tool_prefix=$ac_tool_prefix
9612   ac_tool_prefix=
9613   NM=
9614   echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9615 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
9616 if test "${lt_cv_path_NM+set}" = set; then
9617   echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619   if test -n "$NM"; then
9620   # Let the user override the test.
9621   lt_cv_path_NM="$NM"
9622 else
9623   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9624   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
9625     IFS="$lt_save_ifs"
9626     test -z "$ac_dir" && ac_dir=.
9627     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
9628     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9629       # Check to see if the nm accepts a BSD-compat flag.
9630       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9631       #   nm: unknown option "B" ignored
9632       # Tru64's nm complains that /dev/null is an invalid object file
9633       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9634       */dev/null* | *'Invalid file or object type'*)
9635         lt_cv_path_NM="$tmp_nm -B"
9636         break
9637         ;;
9638       *)
9639         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9640         */dev/null*)
9641           lt_cv_path_NM="$tmp_nm -p"
9642           break
9643           ;;
9644         *)
9645           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9646           continue # so that we can try to find one that supports BSD flags
9647           ;;
9648         esac
9649       esac
9650     fi
9651   done
9652   IFS="$lt_save_ifs"
9653   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9654 fi
9655 fi
9656 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9657 echo "${ECHO_T}$lt_cv_path_NM" >&6
9658 NM="$lt_cv_path_NM"
9659
9660   ac_tool_prefix=$gmp_save_ac_tool_prefix
9661 fi
9662
9663 if test -z "$gmp_user_NM"; then
9664                         eval nmflags=\"\$nm${abi1}_flags\"
9665   test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\"
9666   if test -n "$nmflags"; then
9667     echo "$as_me:$LINENO: checking for extra nm flags" >&5
9668 echo $ECHO_N "checking for extra nm flags... $ECHO_C" >&6
9669     NM="$NM $nmflags"
9670     echo "$as_me:$LINENO: result: $nmflags" >&5
9671 echo "${ECHO_T}$nmflags" >&6
9672   fi
9673 fi
9674
9675
9676 case $host in
9677   # FIXME: On AIX 3 and 4, $libname.a is included in libtool
9678   # $library_names_spec, so libgmp.a becomes a symlink to libgmp.so, making
9679   # it impossible to build shared and static libraries simultaneously.
9680   # Disable shared libraries by default, but let the user override with
9681   # --enable-shared --disable-static.
9682   #
9683   # FIXME: This $libname.a problem looks like it might apply to *-*-amigaos*
9684   # and *-*-os2* too, but wait for someone to test this before worrying
9685   # about it.  If there is a problem then of course libtool is the right
9686   # place to fix it.
9687   #
9688   *-*-aix[34]*)
9689     if test -z "$enable_shared"; then enable_shared=no; fi ;;
9690 esac
9691
9692
9693 # Configs for Windows DLLs.
9694
9695
9696
9697
9698 LIBGMP_DLL=0
9699
9700 case $host in
9701   *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
9702     # By default, build only static.
9703     if test -z "$enable_shared"; then
9704       enable_shared=no
9705     fi
9706     # Don't allow both static and DLL.
9707     if test "$enable_shared" != no && test "$enable_static" != no; then
9708       { { echo "$as_me:$LINENO: error: cannot build both static and DLL, since gmp.h is different for each.
9709 Use \"--disable-static --enable-shared\" to build just a DLL." >&5
9710 echo "$as_me: error: cannot build both static and DLL, since gmp.h is different for each.
9711 Use \"--disable-static --enable-shared\" to build just a DLL." >&2;}
9712    { (exit 1); exit 1; }; }
9713     fi
9714
9715     # "-no-undefined" is required when building a DLL, see documentation on
9716     # AC_LIBTOOL_WIN32_DLL.
9717     #
9718     # "-Wl,--export-all-symbols" is a bit of a hack, it gets all libgmp and
9719     # libgmpxx functions and variables exported.  This is what libtool did
9720     # in the past, and it's convenient for us in the test programs.
9721     #
9722     # Maybe it'd be prudent to check for --export-all-symbols before using
9723     # it, but it seems to have been in ld since at least 2000, and there's
9724     # not really any alternative we want to take up at the moment.
9725     #
9726     # "-Wl,output-def" is used to get a .def file for use by MS lib to make
9727     # a .lib import library, described in the manual.  libgmp-3.dll.def
9728     # corresponds to the libmp-3.dll.def generated by libtool (as a result
9729     # of -export-symbols on that library).
9730     #
9731     # Incidentally, libtool does generate an import library libgmp.dll.a,
9732     # but it's "ar" format and cannot be used by the MS linker.  There
9733     # doesn't seem to be any GNU tool for generating or converting to .lib.
9734     #
9735     # FIXME: The .def files produced by -Wl,output-def include isascii,
9736     # iscsym, iscsymf and toascii, apparently because mingw ctype.h doesn't
9737     # inline isascii (used in gmp).  It gives an extern inline for
9738     # __isascii, but for some reason not the plain isascii.
9739     #
9740     if test "$enable_shared" = yes; then
9741       GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined -Wl,--export-all-symbols"
9742       LIBGMP_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmp-3.dll.def"
9743       LIBGMPXX_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmpxx-3.dll.def"
9744       LIBGMP_DLL=1
9745     fi
9746     ;;
9747 esac
9748
9749
9750 # Ensure that $CONFIG_SHELL is available for AC_LIBTOOL_SYS_MAX_CMD_LEN.
9751 # It's often set already by _LT_AC_PROG_ECHO_BACKSLASH or
9752 # _AS_LINENO_PREPARE, but not always.
9753 #
9754 # The symptom of CONFIG_SHELL unset is some "expr" errors during the test,
9755 # and an empty result.  This only happens when invoked as "sh configure",
9756 # ie. no path, and can be seen for instance on ia64-*-hpux*.
9757 #
9758 # FIXME: Newer libtool should have it's own fix for this.
9759 #
9760 if test -z "$CONFIG_SHELL"; then
9761   CONFIG_SHELL=$SHELL
9762 fi
9763
9764 # Enable CXX in libtool only if we want it, and never enable GCJ, nor RC on
9765 # mingw and cygwin.  Under --disable-cxx this avoids some error messages
9766 # from libtool arising from the fact we didn't actually run AC_PROG_CXX.
9767 # Notice that any user-supplied --with-tags setting takes precedence.
9768 #
9769 # FIXME: Is this the right way to get this effect?  Very possibly not, but
9770 # the current _LT_AC_TAGCONFIG doesn't really suggest an alternative.
9771 #
9772 if test "${with_tags+set}" != set; then
9773   if test $want_cxx = yes; then
9774     with_tags=CXX
9775   else
9776     with_tags=
9777   fi
9778 fi
9779
9780 # The dead hand of AC_REQUIRE makes AC_PROG_LIBTOOL expand and execute
9781 # AC_PROG_F77, even when F77 is not in the selected with_tags.  This is
9782 # probably harmless, but it's unsightly and bloats our configure, so pretend
9783 # AC_PROG_F77 has been expanded already.
9784 #
9785 # FIXME: Rumour has it libtool will one day provide a way for a configure.in
9786 # to say what it wants from among supported languages etc.
9787 #
9788
9789
9790 # Check whether --enable-shared or --disable-shared was given.
9791 if test "${enable_shared+set}" = set; then
9792   enableval="$enable_shared"
9793   p=${PACKAGE-default}
9794     case $enableval in
9795     yes) enable_shared=yes ;;
9796     no) enable_shared=no ;;
9797     *)
9798       enable_shared=no
9799       # Look at the argument we got.  We use all the common list separators.
9800       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9801       for pkg in $enableval; do
9802         IFS="$lt_save_ifs"
9803         if test "X$pkg" = "X$p"; then
9804           enable_shared=yes
9805         fi
9806       done
9807       IFS="$lt_save_ifs"
9808       ;;
9809     esac
9810 else
9811   enable_shared=yes
9812 fi;
9813
9814 # Check whether --enable-static or --disable-static was given.
9815 if test "${enable_static+set}" = set; then
9816   enableval="$enable_static"
9817   p=${PACKAGE-default}
9818     case $enableval in
9819     yes) enable_static=yes ;;
9820     no) enable_static=no ;;
9821     *)
9822      enable_static=no
9823       # Look at the argument we got.  We use all the common list separators.
9824       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9825       for pkg in $enableval; do
9826         IFS="$lt_save_ifs"
9827         if test "X$pkg" = "X$p"; then
9828           enable_static=yes
9829         fi
9830       done
9831       IFS="$lt_save_ifs"
9832       ;;
9833     esac
9834 else
9835   enable_static=yes
9836 fi;
9837
9838 # Check whether --enable-fast-install or --disable-fast-install was given.
9839 if test "${enable_fast_install+set}" = set; then
9840   enableval="$enable_fast_install"
9841   p=${PACKAGE-default}
9842     case $enableval in
9843     yes) enable_fast_install=yes ;;
9844     no) enable_fast_install=no ;;
9845     *)
9846       enable_fast_install=no
9847       # Look at the argument we got.  We use all the common list separators.
9848       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9849       for pkg in $enableval; do
9850         IFS="$lt_save_ifs"
9851         if test "X$pkg" = "X$p"; then
9852           enable_fast_install=yes
9853         fi
9854       done
9855       IFS="$lt_save_ifs"
9856       ;;
9857     esac
9858 else
9859   enable_fast_install=yes
9860 fi;
9861
9862 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9863 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9864 if test "${lt_cv_path_SED+set}" = set; then
9865   echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867   # Loop through the user's path and test for sed and gsed.
9868 # Then use that list of sed's as ones to test for truncation.
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870 for as_dir in $PATH
9871 do
9872   IFS=$as_save_IFS
9873   test -z "$as_dir" && as_dir=.
9874   for lt_ac_prog in sed gsed; do
9875     for ac_exec_ext in '' $ac_executable_extensions; do
9876       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9877         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9878       fi
9879     done
9880   done
9881 done
9882 lt_ac_max=0
9883 lt_ac_count=0
9884 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9885 # along with /bin/sed that truncates output.
9886 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9887   test ! -f $lt_ac_sed && break
9888   cat /dev/null > conftest.in
9889   lt_ac_count=0
9890   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9891   # Check for GNU sed and select it if it is found.
9892   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9893     lt_cv_path_SED=$lt_ac_sed
9894     break
9895   fi
9896   while true; do
9897     cat conftest.in conftest.in >conftest.tmp
9898     mv conftest.tmp conftest.in
9899     cp conftest.in conftest.nl
9900     echo >>conftest.nl
9901     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9902     cmp -s conftest.out conftest.nl || break
9903     # 10000 chars as input seems more than enough
9904     test $lt_ac_count -gt 10 && break
9905     lt_ac_count=`expr $lt_ac_count + 1`
9906     if test $lt_ac_count -gt $lt_ac_max; then
9907       lt_ac_max=$lt_ac_count
9908       lt_cv_path_SED=$lt_ac_sed
9909     fi
9910   done
9911 done
9912 SED=$lt_cv_path_SED
9913
9914 fi
9915
9916 echo "$as_me:$LINENO: result: $SED" >&5
9917 echo "${ECHO_T}$SED" >&6
9918
9919
9920 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9921 if test "${with_gnu_ld+set}" = set; then
9922   withval="$with_gnu_ld"
9923   test "$withval" = no || with_gnu_ld=yes
9924 else
9925   with_gnu_ld=no
9926 fi;
9927 ac_prog=ld
9928 if test "$GCC" = yes; then
9929   # Check if gcc -print-prog-name=ld gives a path.
9930   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9931 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9932   case $host in
9933   *-*-mingw*)
9934     # gcc leaves a trailing carriage return which upsets mingw
9935     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9936   *)
9937     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9938   esac
9939   case $ac_prog in
9940     # Accept absolute paths.
9941     [\\/]* | ?:[\\/]*)
9942       re_direlt='/[^/][^/]*/\.\./'
9943       # Canonicalize the pathname of ld
9944       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9945       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9946         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9947       done
9948       test -z "$LD" && LD="$ac_prog"
9949       ;;
9950   "")
9951     # If it fails, then pretend we aren't using GCC.
9952     ac_prog=ld
9953     ;;
9954   *)
9955     # If it is relative, then search for the first ld in PATH.
9956     with_gnu_ld=unknown
9957     ;;
9958   esac
9959 elif test "$with_gnu_ld" = yes; then
9960   echo "$as_me:$LINENO: checking for GNU ld" >&5
9961 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9962 else
9963   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9964 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9965 fi
9966 if test "${lt_cv_path_LD+set}" = set; then
9967   echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969   if test -z "$LD"; then
9970   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9971   for ac_dir in $PATH; do
9972     IFS="$lt_save_ifs"
9973     test -z "$ac_dir" && ac_dir=.
9974     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9975       lt_cv_path_LD="$ac_dir/$ac_prog"
9976       # Check to see if the program is GNU ld.  I'd rather use --version,
9977       # but apparently some GNU ld's only accept -v.
9978       # Break only if it was the GNU/non-GNU ld that we prefer.
9979       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9980       *GNU* | *'with BFD'*)
9981         test "$with_gnu_ld" != no && break
9982         ;;
9983       *)
9984         test "$with_gnu_ld" != yes && break
9985         ;;
9986       esac
9987     fi
9988   done
9989   IFS="$lt_save_ifs"
9990 else
9991   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9992 fi
9993 fi
9994
9995 LD="$lt_cv_path_LD"
9996 if test -n "$LD"; then
9997   echo "$as_me:$LINENO: result: $LD" >&5
9998 echo "${ECHO_T}$LD" >&6
9999 else
10000   echo "$as_me:$LINENO: result: no" >&5
10001 echo "${ECHO_T}no" >&6
10002 fi
10003 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10004 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10005    { (exit 1); exit 1; }; }
10006 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10007 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10008 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10009   echo $ECHO_N "(cached) $ECHO_C" >&6
10010 else
10011   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10012 case `$LD -v 2>&1 </dev/null` in
10013 *GNU* | *'with BFD'*)
10014   lt_cv_prog_gnu_ld=yes
10015   ;;
10016 *)
10017   lt_cv_prog_gnu_ld=no
10018   ;;
10019 esac
10020 fi
10021 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10022 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10023 with_gnu_ld=$lt_cv_prog_gnu_ld
10024
10025
10026 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10027 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10028 if test "${lt_cv_ld_reload_flag+set}" = set; then
10029   echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031   lt_cv_ld_reload_flag='-r'
10032 fi
10033 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10034 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10035 reload_flag=$lt_cv_ld_reload_flag
10036 case $reload_flag in
10037 "" | " "*) ;;
10038 *) reload_flag=" $reload_flag" ;;
10039 esac
10040 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10041
10042 echo "$as_me:$LINENO: checking whether ln -s works" >&5
10043 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10044 LN_S=$as_ln_s
10045 if test "$LN_S" = "ln -s"; then
10046   echo "$as_me:$LINENO: result: yes" >&5
10047 echo "${ECHO_T}yes" >&6
10048 else
10049   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10050 echo "${ECHO_T}no, using $LN_S" >&6
10051 fi
10052
10053 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10054 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10055 if test "${lt_cv_deplibs_check_method+set}" = set; then
10056   echo $ECHO_N "(cached) $ECHO_C" >&6
10057 else
10058   lt_cv_file_magic_cmd='$MAGIC_CMD'
10059 lt_cv_file_magic_test_file=
10060 lt_cv_deplibs_check_method='unknown'
10061 # Need to set the preceding variable on all platforms that support
10062 # interlibrary dependencies.
10063 # 'none' -- dependencies not supported.
10064 # `unknown' -- same as none, but documents that we really don't know.
10065 # 'pass_all' -- all dependencies passed with no checks.
10066 # 'test_compile' -- check by making test program.
10067 # 'file_magic [[regex]]' -- check by looking for files in library path
10068 # which responds to the $file_magic_cmd with a given extended regex.
10069 # If you have `file' or equivalent on your system and you're not sure
10070 # whether `pass_all' will *always* work, you probably want this one.
10071
10072 case $host_os in
10073 aix4* | aix5*)
10074   lt_cv_deplibs_check_method=pass_all
10075   ;;
10076
10077 beos*)
10078   lt_cv_deplibs_check_method=pass_all
10079   ;;
10080
10081 bsdi4*)
10082   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10083   lt_cv_file_magic_cmd='/usr/bin/file -L'
10084   lt_cv_file_magic_test_file=/shlib/libc.so
10085   ;;
10086
10087 cygwin*)
10088   # func_win32_libid is a shell function defined in ltmain.sh
10089   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10090   lt_cv_file_magic_cmd='func_win32_libid'
10091   ;;
10092
10093 mingw* | pw32*)
10094   # Base MSYS/MinGW do not provide the 'file' command needed by
10095   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10096   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10097   lt_cv_file_magic_cmd='$OBJDUMP -f'
10098   ;;
10099
10100 darwin* | rhapsody*)
10101   lt_cv_deplibs_check_method=pass_all
10102   ;;
10103
10104 freebsd* | kfreebsd*-gnu)
10105   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10106     case $host_cpu in
10107     i*86 )
10108       # Not sure whether the presence of OpenBSD here was a mistake.
10109       # Let's accept both of them until this is cleared up.
10110       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10111       lt_cv_file_magic_cmd=/usr/bin/file
10112       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10113       ;;
10114     esac
10115   else
10116     lt_cv_deplibs_check_method=pass_all
10117   fi
10118   ;;
10119
10120 gnu*)
10121   lt_cv_deplibs_check_method=pass_all
10122   ;;
10123
10124 hpux10.20* | hpux11*)
10125   lt_cv_file_magic_cmd=/usr/bin/file
10126   case "$host_cpu" in
10127   ia64*)
10128     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10129     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10130     ;;
10131   hppa*64*)
10132     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]'
10133     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10134     ;;
10135   *)
10136     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10137     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10138     ;;
10139   esac
10140   ;;
10141
10142 irix5* | irix6* | nonstopux*)
10143   case $LD in
10144   *-32|*"-32 ") libmagic=32-bit;;
10145   *-n32|*"-n32 ") libmagic=N32;;
10146   *-64|*"-64 ") libmagic=64-bit;;
10147   *) libmagic=never-match;;
10148   esac
10149   lt_cv_deplibs_check_method=pass_all
10150   ;;
10151
10152 # This must be Linux ELF.
10153 linux*)
10154   case $host_cpu in
10155   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
10156     lt_cv_deplibs_check_method=pass_all ;;
10157   *)
10158     # glibc up to 2.1.1 does not perform some relocations on ARM
10159     # this will be overridden with pass_all, but let us keep it just in case
10160     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
10161   esac
10162   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
10163   lt_cv_deplibs_check_method=pass_all
10164   ;;
10165
10166 netbsd*)
10167   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10168     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10169   else
10170     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10171   fi
10172   ;;
10173
10174 newos6*)
10175   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10176   lt_cv_file_magic_cmd=/usr/bin/file
10177   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10178   ;;
10179
10180 nto-qnx*)
10181   lt_cv_deplibs_check_method=unknown
10182   ;;
10183
10184 openbsd*)
10185   lt_cv_file_magic_cmd=/usr/bin/file
10186   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10187   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10188     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
10189   else
10190     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
10191   fi
10192   ;;
10193
10194 osf3* | osf4* | osf5*)
10195   lt_cv_deplibs_check_method=pass_all
10196   ;;
10197
10198 sco3.2v5*)
10199   lt_cv_deplibs_check_method=pass_all
10200   ;;
10201
10202 solaris*)
10203   lt_cv_deplibs_check_method=pass_all
10204   ;;
10205
10206 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10207   case $host_vendor in
10208   motorola)
10209     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]'
10210     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10211     ;;
10212   ncr)
10213     lt_cv_deplibs_check_method=pass_all
10214     ;;
10215   sequent)
10216     lt_cv_file_magic_cmd='/bin/file'
10217     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10218     ;;
10219   sni)
10220     lt_cv_file_magic_cmd='/bin/file'
10221     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10222     lt_cv_file_magic_test_file=/lib/libc.so
10223     ;;
10224   siemens)
10225     lt_cv_deplibs_check_method=pass_all
10226     ;;
10227   esac
10228   ;;
10229
10230 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10231   lt_cv_deplibs_check_method=pass_all
10232   ;;
10233 esac
10234
10235 fi
10236 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10237 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10238 file_magic_cmd=$lt_cv_file_magic_cmd
10239 deplibs_check_method=$lt_cv_deplibs_check_method
10240 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10241
10242
10243
10244
10245 # If no C compiler was specified, use CC.
10246 LTCC=${LTCC-"$CC"}
10247
10248 # Allow CC to be a program name with arguments.
10249 compiler=$CC
10250
10251 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10252 if test "${enable_libtool_lock+set}" = set; then
10253   enableval="$enable_libtool_lock"
10254
10255 fi;
10256 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10257
10258 # Some flags need to be propagated to the compiler or linker for good
10259 # libtool support.
10260 case $host in
10261 ia64-*-hpux*)
10262   # Find out which ABI we are using.
10263   echo 'int i;' > conftest.$ac_ext
10264   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10265   (eval $ac_compile) 2>&5
10266   ac_status=$?
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); }; then
10269     case `/usr/bin/file conftest.$ac_objext` in
10270     *ELF-32*)
10271       HPUX_IA64_MODE="32"
10272       ;;
10273     *ELF-64*)
10274       HPUX_IA64_MODE="64"
10275       ;;
10276     esac
10277   fi
10278   rm -rf conftest*
10279   ;;
10280 *-*-irix6*)
10281   # Find out which ABI we are using.
10282   echo '#line 10282 "configure"' > conftest.$ac_ext
10283   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10284   (eval $ac_compile) 2>&5
10285   ac_status=$?
10286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287   (exit $ac_status); }; then
10288    if test "$lt_cv_prog_gnu_ld" = yes; then
10289     case `/usr/bin/file conftest.$ac_objext` in
10290     *32-bit*)
10291       LD="${LD-ld} -melf32bsmip"
10292       ;;
10293     *N32*)
10294       LD="${LD-ld} -melf32bmipn32"
10295       ;;
10296     *64-bit*)
10297       LD="${LD-ld} -melf64bmip"
10298       ;;
10299     esac
10300    else
10301     case `/usr/bin/file conftest.$ac_objext` in
10302     *32-bit*)
10303       LD="${LD-ld} -32"
10304       ;;
10305     *N32*)
10306       LD="${LD-ld} -n32"
10307       ;;
10308     *64-bit*)
10309       LD="${LD-ld} -64"
10310       ;;
10311     esac
10312    fi
10313   fi
10314   rm -rf conftest*
10315   ;;
10316
10317 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10318   # Find out which ABI we are using.
10319   echo 'int i;' > conftest.$ac_ext
10320   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10321   (eval $ac_compile) 2>&5
10322   ac_status=$?
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); }; then
10325     case "`/usr/bin/file conftest.o`" in
10326     *32-bit*)
10327       case $host in
10328         x86_64-*linux*)
10329           LD="${LD-ld} -m elf_i386"
10330           ;;
10331         ppc64-*linux*|powerpc64-*linux*)
10332           LD="${LD-ld} -m elf32ppclinux"
10333           ;;
10334         s390x-*linux*)
10335           LD="${LD-ld} -m elf_s390"
10336           ;;
10337         sparc64-*linux*)
10338           LD="${LD-ld} -m elf32_sparc"
10339           ;;
10340       esac
10341       ;;
10342     *64-bit*)
10343       case $host in
10344         x86_64-*linux*)
10345           LD="${LD-ld} -m elf_x86_64"
10346           ;;
10347         ppc*-*linux*|powerpc*-*linux*)
10348           LD="${LD-ld} -m elf64ppc"
10349           ;;
10350         s390*-*linux*)
10351           LD="${LD-ld} -m elf64_s390"
10352           ;;
10353         sparc*-*linux*)
10354           LD="${LD-ld} -m elf64_sparc"
10355           ;;
10356       esac
10357       ;;
10358     esac
10359   fi
10360   rm -rf conftest*
10361   ;;
10362
10363 *-*-sco3.2v5*)
10364   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10365   SAVE_CFLAGS="$CFLAGS"
10366   CFLAGS="$CFLAGS -belf"
10367   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10368 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10369 if test "${lt_cv_cc_needs_belf+set}" = set; then
10370   echo $ECHO_N "(cached) $ECHO_C" >&6
10371 else
10372   ac_ext=c
10373 ac_cpp='$CPP $CPPFLAGS'
10374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10377
10378      cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h.  */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h.  */
10384
10385 int
10386 main ()
10387 {
10388
10389   ;
10390   return 0;
10391 }
10392 _ACEOF
10393 rm -f conftest.$ac_objext conftest$ac_exeext
10394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10395   (eval $ac_link) 2>conftest.er1
10396   ac_status=$?
10397   grep -v '^ *+' conftest.er1 >conftest.err
10398   rm -f conftest.er1
10399   cat conftest.err >&5
10400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401   (exit $ac_status); } &&
10402          { ac_try='test -z "$ac_c_werror_flag"
10403                          || test ! -s conftest.err'
10404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405   (eval $ac_try) 2>&5
10406   ac_status=$?
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); }; } &&
10409          { ac_try='test -s conftest$ac_exeext'
10410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10411   (eval $ac_try) 2>&5
10412   ac_status=$?
10413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414   (exit $ac_status); }; }; then
10415   lt_cv_cc_needs_belf=yes
10416 else
10417   echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10419
10420 lt_cv_cc_needs_belf=no
10421 fi
10422 rm -f conftest.err conftest.$ac_objext \
10423       conftest$ac_exeext conftest.$ac_ext
10424      ac_ext=c
10425 ac_cpp='$CPP $CPPFLAGS'
10426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10429
10430 fi
10431 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10432 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10433   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10434     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10435     CFLAGS="$SAVE_CFLAGS"
10436   fi
10437   ;;
10438 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
10439   if test -n "$ac_tool_prefix"; then
10440   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10441 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10442 echo "$as_me:$LINENO: checking for $ac_word" >&5
10443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10444 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10445   echo $ECHO_N "(cached) $ECHO_C" >&6
10446 else
10447   if test -n "$DLLTOOL"; then
10448   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10449 else
10450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451 for as_dir in $PATH
10452 do
10453   IFS=$as_save_IFS
10454   test -z "$as_dir" && as_dir=.
10455   for ac_exec_ext in '' $ac_executable_extensions; do
10456   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10457     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10459     break 2
10460   fi
10461 done
10462 done
10463
10464 fi
10465 fi
10466 DLLTOOL=$ac_cv_prog_DLLTOOL
10467 if test -n "$DLLTOOL"; then
10468   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10469 echo "${ECHO_T}$DLLTOOL" >&6
10470 else
10471   echo "$as_me:$LINENO: result: no" >&5
10472 echo "${ECHO_T}no" >&6
10473 fi
10474
10475 fi
10476 if test -z "$ac_cv_prog_DLLTOOL"; then
10477   ac_ct_DLLTOOL=$DLLTOOL
10478   # Extract the first word of "dlltool", so it can be a program name with args.
10479 set dummy dlltool; ac_word=$2
10480 echo "$as_me:$LINENO: checking for $ac_word" >&5
10481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10482 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
10483   echo $ECHO_N "(cached) $ECHO_C" >&6
10484 else
10485   if test -n "$ac_ct_DLLTOOL"; then
10486   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10487 else
10488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489 for as_dir in $PATH
10490 do
10491   IFS=$as_save_IFS
10492   test -z "$as_dir" && as_dir=.
10493   for ac_exec_ext in '' $ac_executable_extensions; do
10494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10495     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10497     break 2
10498   fi
10499 done
10500 done
10501
10502   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
10503 fi
10504 fi
10505 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10506 if test -n "$ac_ct_DLLTOOL"; then
10507   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
10508 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
10509 else
10510   echo "$as_me:$LINENO: result: no" >&5
10511 echo "${ECHO_T}no" >&6
10512 fi
10513
10514   DLLTOOL=$ac_ct_DLLTOOL
10515 else
10516   DLLTOOL="$ac_cv_prog_DLLTOOL"
10517 fi
10518
10519   if test -n "$ac_tool_prefix"; then
10520   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10521 set dummy ${ac_tool_prefix}as; ac_word=$2
10522 echo "$as_me:$LINENO: checking for $ac_word" >&5
10523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10524 if test "${ac_cv_prog_AS+set}" = set; then
10525   echo $ECHO_N "(cached) $ECHO_C" >&6
10526 else
10527   if test -n "$AS"; then
10528   ac_cv_prog_AS="$AS" # Let the user override the test.
10529 else
10530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10531 for as_dir in $PATH
10532 do
10533   IFS=$as_save_IFS
10534   test -z "$as_dir" && as_dir=.
10535   for ac_exec_ext in '' $ac_executable_extensions; do
10536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10537     ac_cv_prog_AS="${ac_tool_prefix}as"
10538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10539     break 2
10540   fi
10541 done
10542 done
10543
10544 fi
10545 fi
10546 AS=$ac_cv_prog_AS
10547 if test -n "$AS"; then
10548   echo "$as_me:$LINENO: result: $AS" >&5
10549 echo "${ECHO_T}$AS" >&6
10550 else
10551   echo "$as_me:$LINENO: result: no" >&5
10552 echo "${ECHO_T}no" >&6
10553 fi
10554
10555 fi
10556 if test -z "$ac_cv_prog_AS"; then
10557   ac_ct_AS=$AS
10558   # Extract the first word of "as", so it can be a program name with args.
10559 set dummy as; ac_word=$2
10560 echo "$as_me:$LINENO: checking for $ac_word" >&5
10561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10562 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
10563   echo $ECHO_N "(cached) $ECHO_C" >&6
10564 else
10565   if test -n "$ac_ct_AS"; then
10566   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10567 else
10568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569 for as_dir in $PATH
10570 do
10571   IFS=$as_save_IFS
10572   test -z "$as_dir" && as_dir=.
10573   for ac_exec_ext in '' $ac_executable_extensions; do
10574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10575     ac_cv_prog_ac_ct_AS="as"
10576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10577     break 2
10578   fi
10579 done
10580 done
10581
10582   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
10583 fi
10584 fi
10585 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10586 if test -n "$ac_ct_AS"; then
10587   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
10588 echo "${ECHO_T}$ac_ct_AS" >&6
10589 else
10590   echo "$as_me:$LINENO: result: no" >&5
10591 echo "${ECHO_T}no" >&6
10592 fi
10593
10594   AS=$ac_ct_AS
10595 else
10596   AS="$ac_cv_prog_AS"
10597 fi
10598
10599   if test -n "$ac_tool_prefix"; then
10600   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10601 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10602 echo "$as_me:$LINENO: checking for $ac_word" >&5
10603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10604 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
10605   echo $ECHO_N "(cached) $ECHO_C" >&6
10606 else
10607   if test -n "$OBJDUMP"; then
10608   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10609 else
10610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611 for as_dir in $PATH
10612 do
10613   IFS=$as_save_IFS
10614   test -z "$as_dir" && as_dir=.
10615   for ac_exec_ext in '' $ac_executable_extensions; do
10616   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10617     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10619     break 2
10620   fi
10621 done
10622 done
10623
10624 fi
10625 fi
10626 OBJDUMP=$ac_cv_prog_OBJDUMP
10627 if test -n "$OBJDUMP"; then
10628   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
10629 echo "${ECHO_T}$OBJDUMP" >&6
10630 else
10631   echo "$as_me:$LINENO: result: no" >&5
10632 echo "${ECHO_T}no" >&6
10633 fi
10634
10635 fi
10636 if test -z "$ac_cv_prog_OBJDUMP"; then
10637   ac_ct_OBJDUMP=$OBJDUMP
10638   # Extract the first word of "objdump", so it can be a program name with args.
10639 set dummy objdump; ac_word=$2
10640 echo "$as_me:$LINENO: checking for $ac_word" >&5
10641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10642 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
10643   echo $ECHO_N "(cached) $ECHO_C" >&6
10644 else
10645   if test -n "$ac_ct_OBJDUMP"; then
10646   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10647 else
10648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10649 for as_dir in $PATH
10650 do
10651   IFS=$as_save_IFS
10652   test -z "$as_dir" && as_dir=.
10653   for ac_exec_ext in '' $ac_executable_extensions; do
10654   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10655     ac_cv_prog_ac_ct_OBJDUMP="objdump"
10656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10657     break 2
10658   fi
10659 done
10660 done
10661
10662   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
10663 fi
10664 fi
10665 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10666 if test -n "$ac_ct_OBJDUMP"; then
10667   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
10668 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
10669 else
10670   echo "$as_me:$LINENO: result: no" >&5
10671 echo "${ECHO_T}no" >&6
10672 fi
10673
10674   OBJDUMP=$ac_ct_OBJDUMP
10675 else
10676   OBJDUMP="$ac_cv_prog_OBJDUMP"
10677 fi
10678
10679   ;;
10680
10681 esac
10682
10683 need_locks="$enable_libtool_lock"
10684
10685
10686
10687 for ac_header in dlfcn.h
10688 do
10689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10691   echo "$as_me:$LINENO: checking for $ac_header" >&5
10692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10694   echo $ECHO_N "(cached) $ECHO_C" >&6
10695 fi
10696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10698 else
10699   # Is the header compilable?
10700 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10702 cat >conftest.$ac_ext <<_ACEOF
10703 /* confdefs.h.  */
10704 _ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h.  */
10708 $ac_includes_default
10709 #include <$ac_header>
10710 _ACEOF
10711 rm -f conftest.$ac_objext
10712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10713   (eval $ac_compile) 2>conftest.er1
10714   ac_status=$?
10715   grep -v '^ *+' conftest.er1 >conftest.err
10716   rm -f conftest.er1
10717   cat conftest.err >&5
10718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); } &&
10720          { ac_try='test -z "$ac_c_werror_flag"
10721                          || test ! -s conftest.err'
10722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723   (eval $ac_try) 2>&5
10724   ac_status=$?
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); }; } &&
10727          { ac_try='test -s conftest.$ac_objext'
10728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10729   (eval $ac_try) 2>&5
10730   ac_status=$?
10731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732   (exit $ac_status); }; }; then
10733   ac_header_compiler=yes
10734 else
10735   echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10737
10738 ac_header_compiler=no
10739 fi
10740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10742 echo "${ECHO_T}$ac_header_compiler" >&6
10743
10744 # Is the header present?
10745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10747 cat >conftest.$ac_ext <<_ACEOF
10748 /* confdefs.h.  */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h.  */
10753 #include <$ac_header>
10754 _ACEOF
10755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10756   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10757   ac_status=$?
10758   grep -v '^ *+' conftest.er1 >conftest.err
10759   rm -f conftest.er1
10760   cat conftest.err >&5
10761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762   (exit $ac_status); } >/dev/null; then
10763   if test -s conftest.err; then
10764     ac_cpp_err=$ac_c_preproc_warn_flag
10765     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10766   else
10767     ac_cpp_err=
10768   fi
10769 else
10770   ac_cpp_err=yes
10771 fi
10772 if test -z "$ac_cpp_err"; then
10773   ac_header_preproc=yes
10774 else
10775   echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.$ac_ext >&5
10777
10778   ac_header_preproc=no
10779 fi
10780 rm -f conftest.err conftest.$ac_ext
10781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10782 echo "${ECHO_T}$ac_header_preproc" >&6
10783
10784 # So?  What about this header?
10785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10786   yes:no: )
10787     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10791     ac_header_preproc=yes
10792     ;;
10793   no:yes:* )
10794     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10796     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10797 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10798     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10800     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10801 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10804     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10806     (
10807       cat <<\_ASBOX
10808 ## -------------------------------- ##
10809 ## Report this to gmp-bugs@swox.com ##
10810 ## -------------------------------- ##
10811 _ASBOX
10812     ) |
10813       sed "s/^/$as_me: WARNING:     /" >&2
10814     ;;
10815 esac
10816 echo "$as_me:$LINENO: checking for $ac_header" >&5
10817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10819   echo $ECHO_N "(cached) $ECHO_C" >&6
10820 else
10821   eval "$as_ac_Header=\$ac_header_preproc"
10822 fi
10823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10825
10826 fi
10827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10828   cat >>confdefs.h <<_ACEOF
10829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10830 _ACEOF
10831
10832 fi
10833
10834 done
10835
10836
10837
10838
10839 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10840
10841 # find the maximum length of command line arguments
10842 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10843 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10844 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10845   echo $ECHO_N "(cached) $ECHO_C" >&6
10846 else
10847     i=0
10848   teststring="ABCD"
10849
10850   case $build_os in
10851   msdosdjgpp*)
10852     # On DJGPP, this test can blow up pretty badly due to problems in libc
10853     # (any single argument exceeding 2000 bytes causes a buffer overrun
10854     # during glob expansion).  Even if it were fixed, the result of this
10855     # check would be larger than it should be.
10856     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10857     ;;
10858
10859   gnu*)
10860     # Under GNU Hurd, this test is not required because there is
10861     # no limit to the length of command line arguments.
10862     # Libtool will interpret -1 as no limit whatsoever
10863     lt_cv_sys_max_cmd_len=-1;
10864     ;;
10865
10866   cygwin* | mingw*)
10867     # On Win9x/ME, this test blows up -- it succeeds, but takes
10868     # about 5 minutes as the teststring grows exponentially.
10869     # Worse, since 9x/ME are not pre-emptively multitasking,
10870     # you end up with a "frozen" computer, even though with patience
10871     # the test eventually succeeds (with a max line length of 256k).
10872     # Instead, let's just punt: use the minimum linelength reported by
10873     # all of the supported platforms: 8192 (on NT/2K/XP).
10874     lt_cv_sys_max_cmd_len=8192;
10875     ;;
10876
10877   amigaos*)
10878     # On AmigaOS with pdksh, this test takes hours, literally.
10879     # So we just punt and use a minimum line length of 8192.
10880     lt_cv_sys_max_cmd_len=8192;
10881     ;;
10882
10883  *)
10884     # If test is not a shell built-in, we'll probably end up computing a
10885     # maximum length that is only half of the actual maximum length, but
10886     # we can't tell.
10887     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10888                = "XX$teststring") >/dev/null 2>&1 &&
10889             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10890             lt_cv_sys_max_cmd_len=$new_result &&
10891             test $i != 17 # 1/2 MB should be enough
10892     do
10893       i=`expr $i + 1`
10894       teststring=$teststring$teststring
10895     done
10896     teststring=
10897     # Add a significant safety factor because C++ compilers can tack on massive
10898     # amounts of additional arguments before passing them to the linker.
10899     # It appears as though 1/2 is a usable value.
10900     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10901     ;;
10902   esac
10903
10904 fi
10905
10906 if test -n $lt_cv_sys_max_cmd_len ; then
10907   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10908 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10909 else
10910   echo "$as_me:$LINENO: result: none" >&5
10911 echo "${ECHO_T}none" >&6
10912 fi
10913
10914
10915
10916
10917 # Check for command to grab the raw symbol name followed by C symbol from nm.
10918 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10919 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10920 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10921   echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923
10924 # These are sane defaults that work on at least a few old systems.
10925 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10926
10927 # Character class describing NM global symbol codes.
10928 symcode='[BCDEGRST]'
10929
10930 # Regexp to match symbols that can be accessed directly from C.
10931 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10932
10933 # Transform the above into a raw symbol and a C symbol.
10934 symxfrm='\1 \2\3 \3'
10935
10936 # Transform an extracted symbol line into a proper C declaration
10937 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10938
10939 # Transform an extracted symbol line into symbol name and symbol address
10940 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'"
10941
10942 # Define system-specific variables.
10943 case $host_os in
10944 aix*)
10945   symcode='[BCDT]'
10946   ;;
10947 cygwin* | mingw* | pw32*)
10948   symcode='[ABCDGISTW]'
10949   ;;
10950 hpux*) # Its linker distinguishes data from code symbols
10951   if test "$host_cpu" = ia64; then
10952     symcode='[ABCDEGRST]'
10953   fi
10954   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10955   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'"
10956   ;;
10957 irix* | nonstopux*)
10958   symcode='[BCDEGRST]'
10959   ;;
10960 osf*)
10961   symcode='[BCDEGQRST]'
10962   ;;
10963 solaris* | sysv5*)
10964   symcode='[BDRT]'
10965   ;;
10966 sysv4)
10967   symcode='[DFNSTU]'
10968   ;;
10969 esac
10970
10971 # Handle CRLF in mingw tool chain
10972 opt_cr=
10973 case $build_os in
10974 mingw*)
10975   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10976   ;;
10977 esac
10978
10979 # If we're using GNU nm, then use its standard symbol codes.
10980 case `$NM -V 2>&1` in
10981 *GNU* | *'with BFD'*)
10982   symcode='[ABCDGIRSTW]' ;;
10983 esac
10984
10985 # Try without a prefix undercore, then with it.
10986 for ac_symprfx in "" "_"; do
10987
10988   # Write the raw and C identifiers.
10989   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10990
10991   # Check to see that the pipe works correctly.
10992   pipe_works=no
10993
10994   rm -f conftest*
10995   cat > conftest.$ac_ext <<EOF
10996 #ifdef __cplusplus
10997 extern "C" {
10998 #endif
10999 char nm_test_var;
11000 void nm_test_func(){}
11001 #ifdef __cplusplus
11002 }
11003 #endif
11004 int main(){nm_test_var='a';nm_test_func();return(0);}
11005 EOF
11006
11007   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008   (eval $ac_compile) 2>&5
11009   ac_status=$?
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); }; then
11012     # Now try to grab the symbols.
11013     nlist=conftest.nm
11014     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11015   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); } && test -s "$nlist"; then
11019       # Try sorting and uniquifying the output.
11020       if sort "$nlist" | uniq > "$nlist"T; then
11021         mv -f "$nlist"T "$nlist"
11022       else
11023         rm -f "$nlist"T
11024       fi
11025
11026       # Make sure that we snagged all the symbols we need.
11027       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11028         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11029           cat <<EOF > conftest.$ac_ext
11030 #ifdef __cplusplus
11031 extern "C" {
11032 #endif
11033
11034 EOF
11035           # Now generate the symbol file.
11036           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11037
11038           cat <<EOF >> conftest.$ac_ext
11039 #if defined (__STDC__) && __STDC__
11040 # define lt_ptr_t void *
11041 #else
11042 # define lt_ptr_t char *
11043 # define const
11044 #endif
11045
11046 /* The mapping between symbol names and symbols. */
11047 const struct {
11048   const char *name;
11049   lt_ptr_t address;
11050 }
11051 lt_preloaded_symbols[] =
11052 {
11053 EOF
11054           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11055           cat <<\EOF >> conftest.$ac_ext
11056   {0, (lt_ptr_t) 0}
11057 };
11058
11059 #ifdef __cplusplus
11060 }
11061 #endif
11062 EOF
11063           # Now try linking the two files.
11064           mv conftest.$ac_objext conftstm.$ac_objext
11065           lt_save_LIBS="$LIBS"
11066           lt_save_CFLAGS="$CFLAGS"
11067           LIBS="conftstm.$ac_objext"
11068           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11069           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11070   (eval $ac_link) 2>&5
11071   ac_status=$?
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11074             pipe_works=yes
11075           fi
11076           LIBS="$lt_save_LIBS"
11077           CFLAGS="$lt_save_CFLAGS"
11078         else
11079           echo "cannot find nm_test_func in $nlist" >&5
11080         fi
11081       else
11082         echo "cannot find nm_test_var in $nlist" >&5
11083       fi
11084     else
11085       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11086     fi
11087   else
11088     echo "$progname: failed program was:" >&5
11089     cat conftest.$ac_ext >&5
11090   fi
11091   rm -f conftest* conftst*
11092
11093   # Do not use the global_symbol_pipe unless it works.
11094   if test "$pipe_works" = yes; then
11095     break
11096   else
11097     lt_cv_sys_global_symbol_pipe=
11098   fi
11099 done
11100
11101 fi
11102
11103 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11104   lt_cv_sys_global_symbol_to_cdecl=
11105 fi
11106 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11107   echo "$as_me:$LINENO: result: failed" >&5
11108 echo "${ECHO_T}failed" >&6
11109 else
11110   echo "$as_me:$LINENO: result: ok" >&5
11111 echo "${ECHO_T}ok" >&6
11112 fi
11113
11114 echo "$as_me:$LINENO: checking for objdir" >&5
11115 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11116 if test "${lt_cv_objdir+set}" = set; then
11117   echo $ECHO_N "(cached) $ECHO_C" >&6
11118 else
11119   rm -f .libs 2>/dev/null
11120 mkdir .libs 2>/dev/null
11121 if test -d .libs; then
11122   lt_cv_objdir=.libs
11123 else
11124   # MS-DOS does not allow filenames that begin with a dot.
11125   lt_cv_objdir=_libs
11126 fi
11127 rmdir .libs 2>/dev/null
11128 fi
11129 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11130 echo "${ECHO_T}$lt_cv_objdir" >&6
11131 objdir=$lt_cv_objdir
11132
11133
11134
11135
11136
11137 case $host_os in
11138 aix3*)
11139   # AIX sometimes has problems with the GCC collect2 program.  For some
11140   # reason, if we set the COLLECT_NAMES environment variable, the problems
11141   # vanish in a puff of smoke.
11142   if test "X${COLLECT_NAMES+set}" != Xset; then
11143     COLLECT_NAMES=
11144     export COLLECT_NAMES
11145   fi
11146   ;;
11147 esac
11148
11149 # Sed substitution that helps us do robust quoting.  It backslashifies
11150 # metacharacters that are still active within double-quoted strings.
11151 Xsed='sed -e s/^X//'
11152 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11153
11154 # Same as above, but do not quote variable references.
11155 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11156
11157 # Sed substitution to delay expansion of an escaped shell variable in a
11158 # double_quote_subst'ed string.
11159 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11160
11161 # Sed substitution to avoid accidental globbing in evaled expressions
11162 no_glob_subst='s/\*/\\\*/g'
11163
11164 # Constants:
11165 rm="rm -f"
11166
11167 # Global variables:
11168 default_ofile=libtool
11169 can_build_shared=yes
11170
11171 # All known linkers require a `.a' archive for static linking (except M$VC,
11172 # which needs '.lib').
11173 libext=a
11174 ltmain="$ac_aux_dir/ltmain.sh"
11175 ofile="$default_ofile"
11176 with_gnu_ld="$lt_cv_prog_gnu_ld"
11177
11178 if test -n "$ac_tool_prefix"; then
11179   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11180 set dummy ${ac_tool_prefix}ar; ac_word=$2
11181 echo "$as_me:$LINENO: checking for $ac_word" >&5
11182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11183 if test "${ac_cv_prog_AR+set}" = set; then
11184   echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186   if test -n "$AR"; then
11187   ac_cv_prog_AR="$AR" # Let the user override the test.
11188 else
11189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190 for as_dir in $PATH
11191 do
11192   IFS=$as_save_IFS
11193   test -z "$as_dir" && as_dir=.
11194   for ac_exec_ext in '' $ac_executable_extensions; do
11195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11196     ac_cv_prog_AR="${ac_tool_prefix}ar"
11197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11198     break 2
11199   fi
11200 done
11201 done
11202
11203 fi
11204 fi
11205 AR=$ac_cv_prog_AR
11206 if test -n "$AR"; then
11207   echo "$as_me:$LINENO: result: $AR" >&5
11208 echo "${ECHO_T}$AR" >&6
11209 else
11210   echo "$as_me:$LINENO: result: no" >&5
11211 echo "${ECHO_T}no" >&6
11212 fi
11213
11214 fi
11215 if test -z "$ac_cv_prog_AR"; then
11216   ac_ct_AR=$AR
11217   # Extract the first word of "ar", so it can be a program name with args.
11218 set dummy ar; ac_word=$2
11219 echo "$as_me:$LINENO: checking for $ac_word" >&5
11220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11221 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11222   echo $ECHO_N "(cached) $ECHO_C" >&6
11223 else
11224   if test -n "$ac_ct_AR"; then
11225   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11226 else
11227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228 for as_dir in $PATH
11229 do
11230   IFS=$as_save_IFS
11231   test -z "$as_dir" && as_dir=.
11232   for ac_exec_ext in '' $ac_executable_extensions; do
11233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11234     ac_cv_prog_ac_ct_AR="ar"
11235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11236     break 2
11237   fi
11238 done
11239 done
11240
11241   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11242 fi
11243 fi
11244 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11245 if test -n "$ac_ct_AR"; then
11246   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11247 echo "${ECHO_T}$ac_ct_AR" >&6
11248 else
11249   echo "$as_me:$LINENO: result: no" >&5
11250 echo "${ECHO_T}no" >&6
11251 fi
11252
11253   AR=$ac_ct_AR
11254 else
11255   AR="$ac_cv_prog_AR"
11256 fi
11257
11258 if test -n "$ac_tool_prefix"; then
11259   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11260 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11261 echo "$as_me:$LINENO: checking for $ac_word" >&5
11262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11263 if test "${ac_cv_prog_RANLIB+set}" = set; then
11264   echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266   if test -n "$RANLIB"; then
11267   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11268 else
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11271 do
11272   IFS=$as_save_IFS
11273   test -z "$as_dir" && as_dir=.
11274   for ac_exec_ext in '' $ac_executable_extensions; do
11275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11276     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11278     break 2
11279   fi
11280 done
11281 done
11282
11283 fi
11284 fi
11285 RANLIB=$ac_cv_prog_RANLIB
11286 if test -n "$RANLIB"; then
11287   echo "$as_me:$LINENO: result: $RANLIB" >&5
11288 echo "${ECHO_T}$RANLIB" >&6
11289 else
11290   echo "$as_me:$LINENO: result: no" >&5
11291 echo "${ECHO_T}no" >&6
11292 fi
11293
11294 fi
11295 if test -z "$ac_cv_prog_RANLIB"; then
11296   ac_ct_RANLIB=$RANLIB
11297   # Extract the first word of "ranlib", so it can be a program name with args.
11298 set dummy ranlib; ac_word=$2
11299 echo "$as_me:$LINENO: checking for $ac_word" >&5
11300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11301 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11302   echo $ECHO_N "(cached) $ECHO_C" >&6
11303 else
11304   if test -n "$ac_ct_RANLIB"; then
11305   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11306 else
11307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11308 for as_dir in $PATH
11309 do
11310   IFS=$as_save_IFS
11311   test -z "$as_dir" && as_dir=.
11312   for ac_exec_ext in '' $ac_executable_extensions; do
11313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11314     ac_cv_prog_ac_ct_RANLIB="ranlib"
11315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11316     break 2
11317   fi
11318 done
11319 done
11320
11321   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11322 fi
11323 fi
11324 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11325 if test -n "$ac_ct_RANLIB"; then
11326   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11327 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11328 else
11329   echo "$as_me:$LINENO: result: no" >&5
11330 echo "${ECHO_T}no" >&6
11331 fi
11332
11333   RANLIB=$ac_ct_RANLIB
11334 else
11335   RANLIB="$ac_cv_prog_RANLIB"
11336 fi
11337
11338 if test -n "$ac_tool_prefix"; then
11339   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11340 set dummy ${ac_tool_prefix}strip; ac_word=$2
11341 echo "$as_me:$LINENO: checking for $ac_word" >&5
11342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11343 if test "${ac_cv_prog_STRIP+set}" = set; then
11344   echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346   if test -n "$STRIP"; then
11347   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11348 else
11349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in $PATH
11351 do
11352   IFS=$as_save_IFS
11353   test -z "$as_dir" && as_dir=.
11354   for ac_exec_ext in '' $ac_executable_extensions; do
11355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11356     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11358     break 2
11359   fi
11360 done
11361 done
11362
11363 fi
11364 fi
11365 STRIP=$ac_cv_prog_STRIP
11366 if test -n "$STRIP"; then
11367   echo "$as_me:$LINENO: result: $STRIP" >&5
11368 echo "${ECHO_T}$STRIP" >&6
11369 else
11370   echo "$as_me:$LINENO: result: no" >&5
11371 echo "${ECHO_T}no" >&6
11372 fi
11373
11374 fi
11375 if test -z "$ac_cv_prog_STRIP"; then
11376   ac_ct_STRIP=$STRIP
11377   # Extract the first word of "strip", so it can be a program name with args.
11378 set dummy strip; ac_word=$2
11379 echo "$as_me:$LINENO: checking for $ac_word" >&5
11380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11381 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11382   echo $ECHO_N "(cached) $ECHO_C" >&6
11383 else
11384   if test -n "$ac_ct_STRIP"; then
11385   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11386 else
11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388 for as_dir in $PATH
11389 do
11390   IFS=$as_save_IFS
11391   test -z "$as_dir" && as_dir=.
11392   for ac_exec_ext in '' $ac_executable_extensions; do
11393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11394     ac_cv_prog_ac_ct_STRIP="strip"
11395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11396     break 2
11397   fi
11398 done
11399 done
11400
11401   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11402 fi
11403 fi
11404 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11405 if test -n "$ac_ct_STRIP"; then
11406   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11407 echo "${ECHO_T}$ac_ct_STRIP" >&6
11408 else
11409   echo "$as_me:$LINENO: result: no" >&5
11410 echo "${ECHO_T}no" >&6
11411 fi
11412
11413   STRIP=$ac_ct_STRIP
11414 else
11415   STRIP="$ac_cv_prog_STRIP"
11416 fi
11417
11418
11419 old_CC="$CC"
11420 old_CFLAGS="$CFLAGS"
11421
11422 # Set sane defaults for various variables
11423 test -z "$AR" && AR=ar
11424 test -z "$AR_FLAGS" && AR_FLAGS=cru
11425 test -z "$AS" && AS=as
11426 test -z "$CC" && CC=cc
11427 test -z "$LTCC" && LTCC=$CC
11428 test -z "$DLLTOOL" && DLLTOOL=dlltool
11429 test -z "$LD" && LD=ld
11430 test -z "$LN_S" && LN_S="ln -s"
11431 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11432 test -z "$NM" && NM=nm
11433 test -z "$SED" && SED=sed
11434 test -z "$OBJDUMP" && OBJDUMP=objdump
11435 test -z "$RANLIB" && RANLIB=:
11436 test -z "$STRIP" && STRIP=:
11437 test -z "$ac_objext" && ac_objext=o
11438
11439 # Determine commands to create old-style static archives.
11440 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11441 old_postinstall_cmds='chmod 644 $oldlib'
11442 old_postuninstall_cmds=
11443
11444 if test -n "$RANLIB"; then
11445   case $host_os in
11446   openbsd*)
11447     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11448     ;;
11449   *)
11450     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11451     ;;
11452   esac
11453   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11454 fi
11455
11456 # Only perform the check for file, if the check method requires it
11457 case $deplibs_check_method in
11458 file_magic*)
11459   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11460     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11461 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11462 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11463   echo $ECHO_N "(cached) $ECHO_C" >&6
11464 else
11465   case $MAGIC_CMD in
11466 [\\/*] |  ?:[\\/]*)
11467   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11468   ;;
11469 *)
11470   lt_save_MAGIC_CMD="$MAGIC_CMD"
11471   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11472   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11473   for ac_dir in $ac_dummy; do
11474     IFS="$lt_save_ifs"
11475     test -z "$ac_dir" && ac_dir=.
11476     if test -f $ac_dir/${ac_tool_prefix}file; then
11477       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11478       if test -n "$file_magic_test_file"; then
11479         case $deplibs_check_method in
11480         "file_magic "*)
11481           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11482           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11483           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11484             $EGREP "$file_magic_regex" > /dev/null; then
11485             :
11486           else
11487             cat <<EOF 1>&2
11488
11489 *** Warning: the command libtool uses to detect shared libraries,
11490 *** $file_magic_cmd, produces output that libtool cannot recognize.
11491 *** The result is that libtool may fail to recognize shared libraries
11492 *** as such.  This will affect the creation of libtool libraries that
11493 *** depend on shared libraries, but programs linked with such libtool
11494 *** libraries will work regardless of this problem.  Nevertheless, you
11495 *** may want to report the problem to your system manager and/or to
11496 *** bug-libtool@gnu.org
11497
11498 EOF
11499           fi ;;
11500         esac
11501       fi
11502       break
11503     fi
11504   done
11505   IFS="$lt_save_ifs"
11506   MAGIC_CMD="$lt_save_MAGIC_CMD"
11507   ;;
11508 esac
11509 fi
11510
11511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11512 if test -n "$MAGIC_CMD"; then
11513   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11514 echo "${ECHO_T}$MAGIC_CMD" >&6
11515 else
11516   echo "$as_me:$LINENO: result: no" >&5
11517 echo "${ECHO_T}no" >&6
11518 fi
11519
11520 if test -z "$lt_cv_path_MAGIC_CMD"; then
11521   if test -n "$ac_tool_prefix"; then
11522     echo "$as_me:$LINENO: checking for file" >&5
11523 echo $ECHO_N "checking for file... $ECHO_C" >&6
11524 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11525   echo $ECHO_N "(cached) $ECHO_C" >&6
11526 else
11527   case $MAGIC_CMD in
11528 [\\/*] |  ?:[\\/]*)
11529   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11530   ;;
11531 *)
11532   lt_save_MAGIC_CMD="$MAGIC_CMD"
11533   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11534   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11535   for ac_dir in $ac_dummy; do
11536     IFS="$lt_save_ifs"
11537     test -z "$ac_dir" && ac_dir=.
11538     if test -f $ac_dir/file; then
11539       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11540       if test -n "$file_magic_test_file"; then
11541         case $deplibs_check_method in
11542         "file_magic "*)
11543           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11544           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11545           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11546             $EGREP "$file_magic_regex" > /dev/null; then
11547             :
11548           else
11549             cat <<EOF 1>&2
11550
11551 *** Warning: the command libtool uses to detect shared libraries,
11552 *** $file_magic_cmd, produces output that libtool cannot recognize.
11553 *** The result is that libtool may fail to recognize shared libraries
11554 *** as such.  This will affect the creation of libtool libraries that
11555 *** depend on shared libraries, but programs linked with such libtool
11556 *** libraries will work regardless of this problem.  Nevertheless, you
11557 *** may want to report the problem to your system manager and/or to
11558 *** bug-libtool@gnu.org
11559
11560 EOF
11561           fi ;;
11562         esac
11563       fi
11564       break
11565     fi
11566   done
11567   IFS="$lt_save_ifs"
11568   MAGIC_CMD="$lt_save_MAGIC_CMD"
11569   ;;
11570 esac
11571 fi
11572
11573 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11574 if test -n "$MAGIC_CMD"; then
11575   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11576 echo "${ECHO_T}$MAGIC_CMD" >&6
11577 else
11578   echo "$as_me:$LINENO: result: no" >&5
11579 echo "${ECHO_T}no" >&6
11580 fi
11581
11582   else
11583     MAGIC_CMD=:
11584   fi
11585 fi
11586
11587   fi
11588   ;;
11589 esac
11590
11591 enable_dlopen=no
11592 enable_win32_dll=yes
11593
11594 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11595 if test "${enable_libtool_lock+set}" = set; then
11596   enableval="$enable_libtool_lock"
11597
11598 fi;
11599 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11600
11601
11602 # Check whether --with-pic or --without-pic was given.
11603 if test "${with_pic+set}" = set; then
11604   withval="$with_pic"
11605   pic_mode="$withval"
11606 else
11607   pic_mode=default
11608 fi;
11609 test -z "$pic_mode" && pic_mode=default
11610
11611 # Use C for the default configuration in the libtool script
11612 tagname=
11613 lt_save_CC="$CC"
11614 ac_ext=c
11615 ac_cpp='$CPP $CPPFLAGS'
11616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11619
11620
11621 # Source file extension for C test sources.
11622 ac_ext=c
11623
11624 # Object file extension for compiled C test sources.
11625 objext=o
11626 objext=$objext
11627
11628 # Code to be used in simple compile tests
11629 lt_simple_compile_test_code="int some_variable = 0;\n"
11630
11631 # Code to be used in simple link tests
11632 lt_simple_link_test_code='int main(){return(0);}\n'
11633
11634
11635 # If no C compiler was specified, use CC.
11636 LTCC=${LTCC-"$CC"}
11637
11638 # Allow CC to be a program name with arguments.
11639 compiler=$CC
11640
11641
11642 #
11643 # Check for any special shared library compilation flags.
11644 #
11645 lt_prog_cc_shlib=
11646 if test "$GCC" = no; then
11647   case $host_os in
11648   sco3.2v5*)
11649     lt_prog_cc_shlib='-belf'
11650     ;;
11651   esac
11652 fi
11653 if test -n "$lt_prog_cc_shlib"; then
11654   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11655 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11656   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11657   else
11658     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11659 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11660     lt_cv_prog_cc_can_build_shared=no
11661   fi
11662 fi
11663
11664
11665 #
11666 # Check to make sure the static flag actually works.
11667 #
11668 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11669 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11670 if test "${lt_prog_compiler_static_works+set}" = set; then
11671   echo $ECHO_N "(cached) $ECHO_C" >&6
11672 else
11673   lt_prog_compiler_static_works=no
11674    save_LDFLAGS="$LDFLAGS"
11675    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11676    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11677    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11678      # The compiler can only warn and ignore the option if not recognized
11679      # So say no if there are warnings
11680      if test -s conftest.err; then
11681        # Append any errors to the config.log.
11682        cat conftest.err 1>&5
11683      else
11684        lt_prog_compiler_static_works=yes
11685      fi
11686    fi
11687    $rm conftest*
11688    LDFLAGS="$save_LDFLAGS"
11689
11690 fi
11691 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11692 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11693
11694 if test x"$lt_prog_compiler_static_works" = xyes; then
11695     :
11696 else
11697     lt_prog_compiler_static=
11698 fi
11699
11700
11701
11702
11703 lt_prog_compiler_no_builtin_flag=
11704
11705 if test "$GCC" = yes; then
11706   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11707
11708
11709 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11710 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11711 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11712   echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714   lt_cv_prog_compiler_rtti_exceptions=no
11715   ac_outfile=conftest.$ac_objext
11716    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11717    lt_compiler_flag="-fno-rtti -fno-exceptions"
11718    # Insert the option either (1) after the last *FLAGS variable, or
11719    # (2) before a word containing "conftest.", or (3) at the end.
11720    # Note that $ac_compile itself does not contain backslashes and begins
11721    # with a dollar sign (not a hyphen), so the echo should work correctly.
11722    # The option is referenced via a variable to avoid confusing sed.
11723    lt_compile=`echo "$ac_compile" | $SED \
11724    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11725    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11726    -e 's:$: $lt_compiler_flag:'`
11727    (eval echo "\"\$as_me:11727: $lt_compile\"" >&5)
11728    (eval "$lt_compile" 2>conftest.err)
11729    ac_status=$?
11730    cat conftest.err >&5
11731    echo "$as_me:11731: \$? = $ac_status" >&5
11732    if (exit $ac_status) && test -s "$ac_outfile"; then
11733      # The compiler can only warn and ignore the option if not recognized
11734      # So say no if there are warnings
11735      if test ! -s conftest.err; then
11736        lt_cv_prog_compiler_rtti_exceptions=yes
11737      fi
11738    fi
11739    $rm conftest*
11740
11741 fi
11742 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11743 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11744
11745 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11746     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11747 else
11748     :
11749 fi
11750
11751 fi
11752
11753 lt_prog_compiler_wl=
11754 lt_prog_compiler_pic=
11755 lt_prog_compiler_static=
11756
11757 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11758 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11759
11760   if test "$GCC" = yes; then
11761     lt_prog_compiler_wl='-Wl,'
11762     lt_prog_compiler_static='-static'
11763
11764     case $host_os in
11765       aix*)
11766       # All AIX code is PIC.
11767       if test "$host_cpu" = ia64; then
11768         # AIX 5 now supports IA64 processor
11769         lt_prog_compiler_static='-Bstatic'
11770       fi
11771       ;;
11772
11773     amigaos*)
11774       # FIXME: we need at least 68020 code to build shared libraries, but
11775       # adding the `-m68020' flag to GCC prevents building anything better,
11776       # like `-m68040'.
11777       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11778       ;;
11779
11780     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11781       # PIC is the default for these OSes.
11782       ;;
11783
11784     mingw* | pw32* | os2*)
11785       # This hack is so that the source file can tell whether it is being
11786       # built for inclusion in a dll (and should export symbols for example).
11787       lt_prog_compiler_pic='-DDLL_EXPORT'
11788       ;;
11789
11790     darwin* | rhapsody*)
11791       # PIC is the default on this platform
11792       # Common symbols not allowed in MH_DYLIB files
11793       lt_prog_compiler_pic='-fno-common'
11794       ;;
11795
11796     msdosdjgpp*)
11797       # Just because we use GCC doesn't mean we suddenly get shared libraries
11798       # on systems that don't support them.
11799       lt_prog_compiler_can_build_shared=no
11800       enable_shared=no
11801       ;;
11802
11803     sysv4*MP*)
11804       if test -d /usr/nec; then
11805         lt_prog_compiler_pic=-Kconform_pic
11806       fi
11807       ;;
11808
11809     hpux*)
11810       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11811       # not for PA HP-UX.
11812       case "$host_cpu" in
11813       hppa*64*|ia64*)
11814         # +Z the default
11815         ;;
11816       *)
11817         lt_prog_compiler_pic='-fPIC'
11818         ;;
11819       esac
11820       ;;
11821
11822     *)
11823       lt_prog_compiler_pic='-fPIC'
11824       ;;
11825     esac
11826   else
11827     # PORTME Check for flag to pass linker flags through the system compiler.
11828     case $host_os in
11829     aix*)
11830       lt_prog_compiler_wl='-Wl,'
11831       if test "$host_cpu" = ia64; then
11832         # AIX 5 now supports IA64 processor
11833         lt_prog_compiler_static='-Bstatic'
11834       else
11835         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11836       fi
11837       ;;
11838
11839     mingw* | pw32* | os2*)
11840       # This hack is so that the source file can tell whether it is being
11841       # built for inclusion in a dll (and should export symbols for example).
11842       lt_prog_compiler_pic='-DDLL_EXPORT'
11843       ;;
11844
11845     hpux9* | hpux10* | hpux11*)
11846       lt_prog_compiler_wl='-Wl,'
11847       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11848       # not for PA HP-UX.
11849       case "$host_cpu" in
11850       hppa*64*|ia64*)
11851         # +Z the default
11852         ;;
11853       *)
11854         lt_prog_compiler_pic='+Z'
11855         ;;
11856       esac
11857       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11858       lt_prog_compiler_static='${wl}-a ${wl}archive'
11859       ;;
11860
11861     irix5* | irix6* | nonstopux*)
11862       lt_prog_compiler_wl='-Wl,'
11863       # PIC (with -KPIC) is the default.
11864       lt_prog_compiler_static='-non_shared'
11865       ;;
11866
11867     newsos6)
11868       lt_prog_compiler_pic='-KPIC'
11869       lt_prog_compiler_static='-Bstatic'
11870       ;;
11871
11872     linux*)
11873       case $CC in
11874       icc* | ecc*)
11875         lt_prog_compiler_wl='-Wl,'
11876         lt_prog_compiler_pic='-KPIC'
11877         lt_prog_compiler_static='-static'
11878         ;;
11879       ccc*)
11880         lt_prog_compiler_wl='-Wl,'
11881         # All Alpha code is PIC.
11882         lt_prog_compiler_static='-non_shared'
11883         ;;
11884       esac
11885       ;;
11886
11887     osf3* | osf4* | osf5*)
11888       lt_prog_compiler_wl='-Wl,'
11889       # All OSF/1 code is PIC.
11890       lt_prog_compiler_static='-non_shared'
11891       ;;
11892
11893     sco3.2v5*)
11894       lt_prog_compiler_pic='-Kpic'
11895       lt_prog_compiler_static='-dn'
11896       ;;
11897
11898     solaris*)
11899       lt_prog_compiler_wl='-Wl,'
11900       lt_prog_compiler_pic='-KPIC'
11901       lt_prog_compiler_static='-Bstatic'
11902       ;;
11903
11904     sunos4*)
11905       lt_prog_compiler_wl='-Qoption ld '
11906       lt_prog_compiler_pic='-PIC'
11907       lt_prog_compiler_static='-Bstatic'
11908       ;;
11909
11910     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11911       lt_prog_compiler_wl='-Wl,'
11912       lt_prog_compiler_pic='-KPIC'
11913       lt_prog_compiler_static='-Bstatic'
11914       ;;
11915
11916     sysv4*MP*)
11917       if test -d /usr/nec ;then
11918         lt_prog_compiler_pic='-Kconform_pic'
11919         lt_prog_compiler_static='-Bstatic'
11920       fi
11921       ;;
11922
11923     uts4*)
11924       lt_prog_compiler_pic='-pic'
11925       lt_prog_compiler_static='-Bstatic'
11926       ;;
11927
11928     *)
11929       lt_prog_compiler_can_build_shared=no
11930       ;;
11931     esac
11932   fi
11933
11934 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11935 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11936
11937 #
11938 # Check to make sure the PIC flag actually works.
11939 #
11940 if test -n "$lt_prog_compiler_pic"; then
11941
11942 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11943 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11944 if test "${lt_prog_compiler_pic_works+set}" = set; then
11945   echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947   lt_prog_compiler_pic_works=no
11948   ac_outfile=conftest.$ac_objext
11949    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11950    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11951    # Insert the option either (1) after the last *FLAGS variable, or
11952    # (2) before a word containing "conftest.", or (3) at the end.
11953    # Note that $ac_compile itself does not contain backslashes and begins
11954    # with a dollar sign (not a hyphen), so the echo should work correctly.
11955    # The option is referenced via a variable to avoid confusing sed.
11956    lt_compile=`echo "$ac_compile" | $SED \
11957    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11958    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11959    -e 's:$: $lt_compiler_flag:'`
11960    (eval echo "\"\$as_me:11960: $lt_compile\"" >&5)
11961    (eval "$lt_compile" 2>conftest.err)
11962    ac_status=$?
11963    cat conftest.err >&5
11964    echo "$as_me:11964: \$? = $ac_status" >&5
11965    if (exit $ac_status) && test -s "$ac_outfile"; then
11966      # The compiler can only warn and ignore the option if not recognized
11967      # So say no if there are warnings
11968      if test ! -s conftest.err; then
11969        lt_prog_compiler_pic_works=yes
11970      fi
11971    fi
11972    $rm conftest*
11973
11974 fi
11975 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11976 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11977
11978 if test x"$lt_prog_compiler_pic_works" = xyes; then
11979     case $lt_prog_compiler_pic in
11980      "" | " "*) ;;
11981      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11982      esac
11983 else
11984     lt_prog_compiler_pic=
11985      lt_prog_compiler_can_build_shared=no
11986 fi
11987
11988 fi
11989 case "$host_os" in
11990   # For platforms which do not support PIC, -DPIC is meaningless:
11991   *djgpp*)
11992     lt_prog_compiler_pic=
11993     ;;
11994   *)
11995     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11996     ;;
11997 esac
11998
11999 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12000 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12001 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12002   echo $ECHO_N "(cached) $ECHO_C" >&6
12003 else
12004   lt_cv_prog_compiler_c_o=no
12005    $rm -r conftest 2>/dev/null
12006    mkdir conftest
12007    cd conftest
12008    mkdir out
12009    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12010
12011    lt_compiler_flag="-o out/conftest2.$ac_objext"
12012    # Insert the option either (1) after the last *FLAGS variable, or
12013    # (2) before a word containing "conftest.", or (3) at the end.
12014    # Note that $ac_compile itself does not contain backslashes and begins
12015    # with a dollar sign (not a hyphen), so the echo should work correctly.
12016    lt_compile=`echo "$ac_compile" | $SED \
12017    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12018    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12019    -e 's:$: $lt_compiler_flag:'`
12020    (eval echo "\"\$as_me:12020: $lt_compile\"" >&5)
12021    (eval "$lt_compile" 2>out/conftest.err)
12022    ac_status=$?
12023    cat out/conftest.err >&5
12024    echo "$as_me:12024: \$? = $ac_status" >&5
12025    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12026    then
12027      # The compiler can only warn and ignore the option if not recognized
12028      # So say no if there are warnings
12029      if test ! -s out/conftest.err; then
12030        lt_cv_prog_compiler_c_o=yes
12031      fi
12032    fi
12033    chmod u+w .
12034    $rm conftest*
12035    # SGI C++ compiler will create directory out/ii_files/ for
12036    # template instantiation
12037    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12038    $rm out/* && rmdir out
12039    cd ..
12040    rmdir conftest
12041    $rm conftest*
12042
12043 fi
12044 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12045 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12046
12047
12048 hard_links="nottested"
12049 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12050   # do not overwrite the value of need_locks provided by the user
12051   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12052 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12053   hard_links=yes
12054   $rm conftest*
12055   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12056   touch conftest.a
12057   ln conftest.a conftest.b 2>&5 || hard_links=no
12058   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12059   echo "$as_me:$LINENO: result: $hard_links" >&5
12060 echo "${ECHO_T}$hard_links" >&6
12061   if test "$hard_links" = no; then
12062     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12063 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12064     need_locks=warn
12065   fi
12066 else
12067   need_locks=no
12068 fi
12069
12070 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12071 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12072
12073   runpath_var=
12074   allow_undefined_flag=
12075   enable_shared_with_static_runtimes=no
12076   archive_cmds=
12077   archive_expsym_cmds=
12078   old_archive_From_new_cmds=
12079   old_archive_from_expsyms_cmds=
12080   export_dynamic_flag_spec=
12081   whole_archive_flag_spec=
12082   thread_safe_flag_spec=
12083   hardcode_libdir_flag_spec=
12084   hardcode_libdir_flag_spec_ld=
12085   hardcode_libdir_separator=
12086   hardcode_direct=no
12087   hardcode_minus_L=no
12088   hardcode_shlibpath_var=unsupported
12089   link_all_deplibs=unknown
12090   hardcode_automatic=no
12091   module_cmds=
12092   module_expsym_cmds=
12093   always_export_symbols=no
12094   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12095   # include_expsyms should be a list of space-separated symbols to be *always*
12096   # included in the symbol list
12097   include_expsyms=
12098   # exclude_expsyms can be an extended regexp of symbols to exclude
12099   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12100   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12101   # as well as any symbol that contains `d'.
12102   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12103   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12104   # platforms (ab)use it in PIC code, but their linkers get confused if
12105   # the symbol is explicitly referenced.  Since portable code cannot
12106   # rely on this symbol name, it's probably fine to never include it in
12107   # preloaded symbol tables.
12108   extract_expsyms_cmds=
12109
12110   case $host_os in
12111   cygwin* | mingw* | pw32*)
12112     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12113     # When not using gcc, we currently assume that we are using
12114     # Microsoft Visual C++.
12115     if test "$GCC" != yes; then
12116       with_gnu_ld=no
12117     fi
12118     ;;
12119   openbsd*)
12120     with_gnu_ld=no
12121     ;;
12122   esac
12123
12124   ld_shlibs=yes
12125   if test "$with_gnu_ld" = yes; then
12126     # If archive_cmds runs LD, not CC, wlarc should be empty
12127     wlarc='${wl}'
12128
12129     # See if GNU ld supports shared libraries.
12130     case $host_os in
12131     aix3* | aix4* | aix5*)
12132       # On AIX/PPC, the GNU linker is very broken
12133       if test "$host_cpu" != ia64; then
12134         ld_shlibs=no
12135         cat <<EOF 1>&2
12136
12137 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12138 *** to be unable to reliably create shared libraries on AIX.
12139 *** Therefore, libtool is disabling shared libraries support.  If you
12140 *** really care for shared libraries, you may want to modify your PATH
12141 *** so that a non-GNU linker is found, and then restart.
12142
12143 EOF
12144       fi
12145       ;;
12146
12147     amigaos*)
12148       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)'
12149       hardcode_libdir_flag_spec='-L$libdir'
12150       hardcode_minus_L=yes
12151
12152       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12153       # that the semantics of dynamic libraries on AmigaOS, at least up
12154       # to version 4, is to share data among multiple programs linked
12155       # with the same dynamic library.  Since this doesn't match the
12156       # behavior of shared libraries on other platforms, we can't use
12157       # them.
12158       ld_shlibs=no
12159       ;;
12160
12161     beos*)
12162       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12163         allow_undefined_flag=unsupported
12164         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12165         # support --undefined.  This deserves some investigation.  FIXME
12166         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12167       else
12168         ld_shlibs=no
12169       fi
12170       ;;
12171
12172     cygwin* | mingw* | pw32*)
12173       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12174       # as there is no search path for DLLs.
12175       hardcode_libdir_flag_spec='-L$libdir'
12176       allow_undefined_flag=unsupported
12177       always_export_symbols=no
12178       enable_shared_with_static_runtimes=yes
12179       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12180
12181       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12182         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12183         # If the export-symbols file already is a .def file (1st line
12184         # is EXPORTS), use it as is; otherwise, prepend...
12185         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12186           cp $export_symbols $output_objdir/$soname.def;
12187         else
12188           echo EXPORTS > $output_objdir/$soname.def;
12189           cat $export_symbols >> $output_objdir/$soname.def;
12190         fi~
12191         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12192       else
12193         ld_shlibs=no
12194       fi
12195       ;;
12196
12197     netbsd*)
12198       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12199         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12200         wlarc=
12201       else
12202         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12203         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12204       fi
12205       ;;
12206
12207     solaris* | sysv5*)
12208       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12209         ld_shlibs=no
12210         cat <<EOF 1>&2
12211
12212 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12213 *** create shared libraries on Solaris systems.  Therefore, libtool
12214 *** is disabling shared libraries support.  We urge you to upgrade GNU
12215 *** binutils to release 2.9.1 or newer.  Another option is to modify
12216 *** your PATH or compiler configuration so that the native linker is
12217 *** used, and then restart.
12218
12219 EOF
12220       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12221         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12222         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12223       else
12224         ld_shlibs=no
12225       fi
12226       ;;
12227
12228     sunos4*)
12229       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12230       wlarc=
12231       hardcode_direct=yes
12232       hardcode_shlibpath_var=no
12233       ;;
12234
12235   linux*)
12236     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12237         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12238         archive_cmds="$tmp_archive_cmds"
12239       supports_anon_versioning=no
12240       case `$LD -v 2>/dev/null` in
12241         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12242         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12243         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12244         *\ 2.11.*) ;; # other 2.11 versions
12245         *) supports_anon_versioning=yes ;;
12246       esac
12247       if test $supports_anon_versioning = yes; then
12248         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12249 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12250 $echo "local: *; };" >> $output_objdir/$libname.ver~
12251         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12252       else
12253         archive_expsym_cmds="$tmp_archive_cmds"
12254       fi
12255     else
12256       ld_shlibs=no
12257     fi
12258     ;;
12259
12260     *)
12261       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12262         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12263         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12264       else
12265         ld_shlibs=no
12266       fi
12267       ;;
12268     esac
12269
12270     if test "$ld_shlibs" = yes; then
12271       runpath_var=LD_RUN_PATH
12272       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12273       export_dynamic_flag_spec='${wl}--export-dynamic'
12274       # ancient GNU ld didn't support --whole-archive et. al.
12275       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12276         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12277       else
12278         whole_archive_flag_spec=
12279       fi
12280     fi
12281   else
12282     # PORTME fill in a description of your system's linker (not GNU ld)
12283     case $host_os in
12284     aix3*)
12285       allow_undefined_flag=unsupported
12286       always_export_symbols=yes
12287       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'
12288       # Note: this linker hardcodes the directories in LIBPATH if there
12289       # are no directories specified by -L.
12290       hardcode_minus_L=yes
12291       if test "$GCC" = yes && test -z "$link_static_flag"; then
12292         # Neither direct hardcoding nor static linking is supported with a
12293         # broken collect2.
12294         hardcode_direct=unsupported
12295       fi
12296       ;;
12297
12298     aix4* | aix5*)
12299       if test "$host_cpu" = ia64; then
12300         # On IA64, the linker does run time linking by default, so we don't
12301         # have to do anything special.
12302         aix_use_runtimelinking=no
12303         exp_sym_flag='-Bexport'
12304         no_entry_flag=""
12305       else
12306         # If we're using GNU nm, then we don't want the "-C" option.
12307         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12308         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12309           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'
12310         else
12311           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'
12312         fi
12313         aix_use_runtimelinking=no
12314
12315         # Test if we are trying to use run time linking or normal
12316         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12317         # need to do runtime linking.
12318         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12319           for ld_flag in $LDFLAGS; do
12320           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12321             aix_use_runtimelinking=yes
12322             break
12323           fi
12324           done
12325         esac
12326
12327         exp_sym_flag='-bexport'
12328         no_entry_flag='-bnoentry'
12329       fi
12330
12331       # When large executables or shared objects are built, AIX ld can
12332       # have problems creating the table of contents.  If linking a library
12333       # or program results in "error TOC overflow" add -mminimal-toc to
12334       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12335       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12336
12337       archive_cmds=''
12338       hardcode_direct=yes
12339       hardcode_libdir_separator=':'
12340       link_all_deplibs=yes
12341
12342       if test "$GCC" = yes; then
12343         case $host_os in aix4.012|aix4.012.*)
12344         # We only want to do this on AIX 4.2 and lower, the check
12345         # below for broken collect2 doesn't work under 4.3+
12346           collect2name=`${CC} -print-prog-name=collect2`
12347           if test -f "$collect2name" && \
12348            strings "$collect2name" | grep resolve_lib_name >/dev/null
12349           then
12350           # We have reworked collect2
12351           hardcode_direct=yes
12352           else
12353           # We have old collect2
12354           hardcode_direct=unsupported
12355           # It fails to find uninstalled libraries when the uninstalled
12356           # path is not listed in the libpath.  Setting hardcode_minus_L
12357           # to unsupported forces relinking
12358           hardcode_minus_L=yes
12359           hardcode_libdir_flag_spec='-L$libdir'
12360           hardcode_libdir_separator=
12361           fi
12362         esac
12363         shared_flag='-shared'
12364       else
12365         # not using gcc
12366         if test "$host_cpu" = ia64; then
12367         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12368         # chokes on -Wl,-G. The following line is correct:
12369           shared_flag='-G'
12370         else
12371         if test "$aix_use_runtimelinking" = yes; then
12372             shared_flag='${wl}-G'
12373           else
12374             shared_flag='${wl}-bM:SRE'
12375         fi
12376         fi
12377       fi
12378
12379       # It seems that -bexpall does not export symbols beginning with
12380       # underscore (_), so it is better to generate a list of symbols to export.
12381       always_export_symbols=yes
12382       if test "$aix_use_runtimelinking" = yes; then
12383         # Warning - without using the other runtime loading flags (-brtl),
12384         # -berok will link without error, but may produce a broken library.
12385         allow_undefined_flag='-berok'
12386        # Determine the default libpath from the value encoded in an empty executable.
12387        cat >conftest.$ac_ext <<_ACEOF
12388 /* confdefs.h.  */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h.  */
12393
12394 int
12395 main ()
12396 {
12397
12398   ;
12399   return 0;
12400 }
12401 _ACEOF
12402 rm -f conftest.$ac_objext conftest$ac_exeext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12404   (eval $ac_link) 2>conftest.er1
12405   ac_status=$?
12406   grep -v '^ *+' conftest.er1 >conftest.err
12407   rm -f conftest.er1
12408   cat conftest.err >&5
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); } &&
12411          { ac_try='test -z "$ac_c_werror_flag"
12412                          || test ! -s conftest.err'
12413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414   (eval $ac_try) 2>&5
12415   ac_status=$?
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); }; } &&
12418          { ac_try='test -s conftest$ac_exeext'
12419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420   (eval $ac_try) 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); }; }; then
12424
12425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12426 }'`
12427 # Check for a 64-bit object if we didn't find anything.
12428 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; }
12429 }'`; fi
12430 else
12431   echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12433
12434 fi
12435 rm -f conftest.err conftest.$ac_objext \
12436       conftest$ac_exeext conftest.$ac_ext
12437 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12438
12439        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12440         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12441        else
12442         if test "$host_cpu" = ia64; then
12443           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12444           allow_undefined_flag="-z nodefs"
12445           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12446         else
12447          # Determine the default libpath from the value encoded in an empty executable.
12448          cat >conftest.$ac_ext <<_ACEOF
12449 /* confdefs.h.  */
12450 _ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h.  */
12454
12455 int
12456 main ()
12457 {
12458
12459   ;
12460   return 0;
12461 }
12462 _ACEOF
12463 rm -f conftest.$ac_objext conftest$ac_exeext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12465   (eval $ac_link) 2>conftest.er1
12466   ac_status=$?
12467   grep -v '^ *+' conftest.er1 >conftest.err
12468   rm -f conftest.er1
12469   cat conftest.err >&5
12470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471   (exit $ac_status); } &&
12472          { ac_try='test -z "$ac_c_werror_flag"
12473                          || test ! -s conftest.err'
12474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475   (eval $ac_try) 2>&5
12476   ac_status=$?
12477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); }; } &&
12479          { ac_try='test -s conftest$ac_exeext'
12480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481   (eval $ac_try) 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); }; }; then
12485
12486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12487 }'`
12488 # Check for a 64-bit object if we didn't find anything.
12489 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; }
12490 }'`; fi
12491 else
12492   echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.$ac_ext >&5
12494
12495 fi
12496 rm -f conftest.err conftest.$ac_objext \
12497       conftest$ac_exeext conftest.$ac_ext
12498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12499
12500          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12501           # Warning - without using the other run time loading flags,
12502           # -berok will link without error, but may produce a broken library.
12503           no_undefined_flag=' ${wl}-bernotok'
12504           allow_undefined_flag=' ${wl}-berok'
12505           # -bexpall does not export symbols beginning with underscore (_)
12506           always_export_symbols=yes
12507           # Exported symbols can be pulled into shared objects from archives
12508           whole_archive_flag_spec=' '
12509           archive_cmds_need_lc=yes
12510           # This is similar to how AIX traditionally builds it's shared libraries.
12511           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12512         fi
12513       fi
12514       ;;
12515
12516     amigaos*)
12517       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)'
12518       hardcode_libdir_flag_spec='-L$libdir'
12519       hardcode_minus_L=yes
12520       # see comment about different semantics on the GNU ld section
12521       ld_shlibs=no
12522       ;;
12523
12524     bsdi4*)
12525       export_dynamic_flag_spec=-rdynamic
12526       ;;
12527
12528     cygwin* | mingw* | pw32*)
12529       # When not using gcc, we currently assume that we are using
12530       # Microsoft Visual C++.
12531       # hardcode_libdir_flag_spec is actually meaningless, as there is
12532       # no search path for DLLs.
12533       hardcode_libdir_flag_spec=' '
12534       allow_undefined_flag=unsupported
12535       # Tell ltmain to make .lib files, not .a files.
12536       libext=lib
12537       # Tell ltmain to make .dll files, not .so files.
12538       shrext_cmds=".dll"
12539       # FIXME: Setting linknames here is a bad hack.
12540       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12541       # The linker will automatically build a .lib file if we build a DLL.
12542       old_archive_From_new_cmds='true'
12543       # FIXME: Should let the user specify the lib program.
12544       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12545       fix_srcfile_path='`cygpath -w "$srcfile"`'
12546       enable_shared_with_static_runtimes=yes
12547       ;;
12548
12549     darwin* | rhapsody*)
12550     if test "$GXX" = yes ; then
12551       archive_cmds_need_lc=no
12552       case "$host_os" in
12553       rhapsody* | darwin1.[012])
12554         allow_undefined_flag='-undefined suppress'
12555         ;;
12556       *) # Darwin 1.3 on
12557       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12558         allow_undefined_flag='-flat_namespace -undefined suppress'
12559       else
12560         case ${MACOSX_DEPLOYMENT_TARGET} in
12561           10.[012])
12562             allow_undefined_flag='-flat_namespace -undefined suppress'
12563             ;;
12564           10.*)
12565             allow_undefined_flag='-undefined dynamic_lookup'
12566             ;;
12567         esac
12568       fi
12569         ;;
12570       esac
12571         lt_int_apple_cc_single_mod=no
12572         output_verbose_link_cmd='echo'
12573         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12574           lt_int_apple_cc_single_mod=yes
12575         fi
12576         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12577           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12578         else
12579         archive_cmds='$CC -r ${wl}-bind_at_load -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'
12580       fi
12581       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12582       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12583         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12584           archive_expsym_cmds='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}'
12585         else
12586           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
12587         fi
12588           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}'
12589       hardcode_direct=no
12590       hardcode_automatic=yes
12591       hardcode_shlibpath_var=unsupported
12592       whole_archive_flag_spec='-all_load $convenience'
12593       link_all_deplibs=yes
12594     else
12595       ld_shlibs=no
12596     fi
12597       ;;
12598
12599     dgux*)
12600       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12601       hardcode_libdir_flag_spec='-L$libdir'
12602       hardcode_shlibpath_var=no
12603       ;;
12604
12605     freebsd1*)
12606       ld_shlibs=no
12607       ;;
12608
12609     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12610     # support.  Future versions do this automatically, but an explicit c++rt0.o
12611     # does not break anything, and helps significantly (at the cost of a little
12612     # extra space).
12613     freebsd2.2*)
12614       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12615       hardcode_libdir_flag_spec='-R$libdir'
12616       hardcode_direct=yes
12617       hardcode_shlibpath_var=no
12618       ;;
12619
12620     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12621     freebsd2*)
12622       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12623       hardcode_direct=yes
12624       hardcode_minus_L=yes
12625       hardcode_shlibpath_var=no
12626       ;;
12627
12628     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12629     freebsd* | kfreebsd*-gnu)
12630       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12631       hardcode_libdir_flag_spec='-R$libdir'
12632       hardcode_direct=yes
12633       hardcode_shlibpath_var=no
12634       ;;
12635
12636     hpux9*)
12637       if test "$GCC" = yes; then
12638         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'
12639       else
12640         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'
12641       fi
12642       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12643       hardcode_libdir_separator=:
12644       hardcode_direct=yes
12645
12646       # hardcode_minus_L: Not really in the search PATH,
12647       # but as the default location of the library.
12648       hardcode_minus_L=yes
12649       export_dynamic_flag_spec='${wl}-E'
12650       ;;
12651
12652     hpux10* | hpux11*)
12653       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12654         case "$host_cpu" in
12655         hppa*64*|ia64*)
12656           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12657           ;;
12658         *)
12659           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12660           ;;
12661         esac
12662       else
12663         case "$host_cpu" in
12664         hppa*64*|ia64*)
12665           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12666           ;;
12667         *)
12668           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12669           ;;
12670         esac
12671       fi
12672       if test "$with_gnu_ld" = no; then
12673         case "$host_cpu" in
12674         hppa*64*)
12675           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12676           hardcode_libdir_flag_spec_ld='+b $libdir'
12677           hardcode_libdir_separator=:
12678           hardcode_direct=no
12679           hardcode_shlibpath_var=no
12680           ;;
12681         ia64*)
12682           hardcode_libdir_flag_spec='-L$libdir'
12683           hardcode_direct=no
12684           hardcode_shlibpath_var=no
12685
12686           # hardcode_minus_L: Not really in the search PATH,
12687           # but as the default location of the library.
12688           hardcode_minus_L=yes
12689           ;;
12690         *)
12691           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12692           hardcode_libdir_separator=:
12693           hardcode_direct=yes
12694           export_dynamic_flag_spec='${wl}-E'
12695
12696           # hardcode_minus_L: Not really in the search PATH,
12697           # but as the default location of the library.
12698           hardcode_minus_L=yes
12699           ;;
12700         esac
12701       fi
12702       ;;
12703
12704     irix5* | irix6* | nonstopux*)
12705       if test "$GCC" = yes; then
12706         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'
12707       else
12708         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'
12709         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12710       fi
12711       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12712       hardcode_libdir_separator=:
12713       link_all_deplibs=yes
12714       ;;
12715
12716     netbsd*)
12717       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12718         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12719       else
12720         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12721       fi
12722       hardcode_libdir_flag_spec='-R$libdir'
12723       hardcode_direct=yes
12724       hardcode_shlibpath_var=no
12725       ;;
12726
12727     newsos6)
12728       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12729       hardcode_direct=yes
12730       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12731       hardcode_libdir_separator=:
12732       hardcode_shlibpath_var=no
12733       ;;
12734
12735     openbsd*)
12736       hardcode_direct=yes
12737       hardcode_shlibpath_var=no
12738       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12739         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12740         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12741         export_dynamic_flag_spec='${wl}-E'
12742       else
12743        case $host_os in
12744          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12745            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12746            hardcode_libdir_flag_spec='-R$libdir'
12747            ;;
12748          *)
12749            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12750            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12751            ;;
12752        esac
12753       fi
12754       ;;
12755
12756     os2*)
12757       hardcode_libdir_flag_spec='-L$libdir'
12758       hardcode_minus_L=yes
12759       allow_undefined_flag=unsupported
12760       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'
12761       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12762       ;;
12763
12764     osf3*)
12765       if test "$GCC" = yes; then
12766         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12767         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'
12768       else
12769         allow_undefined_flag=' -expect_unresolved \*'
12770         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'
12771       fi
12772       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12773       hardcode_libdir_separator=:
12774       ;;
12775
12776     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12777       if test "$GCC" = yes; then
12778         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12779         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'
12780         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12781       else
12782         allow_undefined_flag=' -expect_unresolved \*'
12783         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'
12784         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12785         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
12786
12787         # Both c and cxx compiler support -rpath directly
12788         hardcode_libdir_flag_spec='-rpath $libdir'
12789       fi
12790       hardcode_libdir_separator=:
12791       ;;
12792
12793     sco3.2v5*)
12794       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12795       hardcode_shlibpath_var=no
12796       export_dynamic_flag_spec='${wl}-Bexport'
12797       runpath_var=LD_RUN_PATH
12798       hardcode_runpath_var=yes
12799       ;;
12800
12801     solaris*)
12802       no_undefined_flag=' -z text'
12803       if test "$GCC" = yes; then
12804         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12805         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12806           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12807       else
12808         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12809         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12810         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12811       fi
12812       hardcode_libdir_flag_spec='-R$libdir'
12813       hardcode_shlibpath_var=no
12814       case $host_os in
12815       solaris2.[0-5] | solaris2.[0-5].*) ;;
12816       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12817         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12818       esac
12819       link_all_deplibs=yes
12820       ;;
12821
12822     sunos4*)
12823       if test "x$host_vendor" = xsequent; then
12824         # Use $CC to link under sequent, because it throws in some extra .o
12825         # files that make .init and .fini sections work.
12826         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12827       else
12828         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12829       fi
12830       hardcode_libdir_flag_spec='-L$libdir'
12831       hardcode_direct=yes
12832       hardcode_minus_L=yes
12833       hardcode_shlibpath_var=no
12834       ;;
12835
12836     sysv4)
12837       case $host_vendor in
12838         sni)
12839           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12840           hardcode_direct=yes # is this really true???
12841         ;;
12842         siemens)
12843           ## LD is ld it makes a PLAMLIB
12844           ## CC just makes a GrossModule.
12845           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12846           reload_cmds='$CC -r -o $output$reload_objs'
12847           hardcode_direct=no
12848         ;;
12849         motorola)
12850           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12851           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12852         ;;
12853       esac
12854       runpath_var='LD_RUN_PATH'
12855       hardcode_shlibpath_var=no
12856       ;;
12857
12858     sysv4.3*)
12859       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12860       hardcode_shlibpath_var=no
12861       export_dynamic_flag_spec='-Bexport'
12862       ;;
12863
12864     sysv4*MP*)
12865       if test -d /usr/nec; then
12866         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12867         hardcode_shlibpath_var=no
12868         runpath_var=LD_RUN_PATH
12869         hardcode_runpath_var=yes
12870         ld_shlibs=yes
12871       fi
12872       ;;
12873
12874     sysv4.2uw2*)
12875       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12876       hardcode_direct=yes
12877       hardcode_minus_L=no
12878       hardcode_shlibpath_var=no
12879       hardcode_runpath_var=yes
12880       runpath_var=LD_RUN_PATH
12881       ;;
12882
12883    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12884       no_undefined_flag='${wl}-z ${wl}text'
12885       if test "$GCC" = yes; then
12886         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12887       else
12888         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12889       fi
12890       runpath_var='LD_RUN_PATH'
12891       hardcode_shlibpath_var=no
12892       ;;
12893
12894     sysv5*)
12895       no_undefined_flag=' -z text'
12896       # $CC -shared without GNU ld will not create a library from C++
12897       # object files and a static libstdc++, better avoid it by now
12898       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12899       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12900                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12901       hardcode_libdir_flag_spec=
12902       hardcode_shlibpath_var=no
12903       runpath_var='LD_RUN_PATH'
12904       ;;
12905
12906     uts4*)
12907       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12908       hardcode_libdir_flag_spec='-L$libdir'
12909       hardcode_shlibpath_var=no
12910       ;;
12911
12912     *)
12913       ld_shlibs=no
12914       ;;
12915     esac
12916   fi
12917
12918 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12919 echo "${ECHO_T}$ld_shlibs" >&6
12920 test "$ld_shlibs" = no && can_build_shared=no
12921
12922 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12923 if test "$GCC" = yes; then
12924   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12925 fi
12926
12927 #
12928 # Do we need to explicitly link libc?
12929 #
12930 case "x$archive_cmds_need_lc" in
12931 x|xyes)
12932   # Assume -lc should be added
12933   archive_cmds_need_lc=yes
12934
12935   if test "$enable_shared" = yes && test "$GCC" = yes; then
12936     case $archive_cmds in
12937     *'~'*)
12938       # FIXME: we may have to deal with multi-command sequences.
12939       ;;
12940     '$CC '*)
12941       # Test whether the compiler implicitly links with -lc since on some
12942       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12943       # to ld, don't add -lc before -lgcc.
12944       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12945 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12946       $rm conftest*
12947       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12948
12949       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12950   (eval $ac_compile) 2>&5
12951   ac_status=$?
12952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953   (exit $ac_status); } 2>conftest.err; then
12954         soname=conftest
12955         lib=conftest
12956         libobjs=conftest.$ac_objext
12957         deplibs=
12958         wl=$lt_prog_compiler_wl
12959         compiler_flags=-v
12960         linker_flags=-v
12961         verstring=
12962         output_objdir=.
12963         libname=conftest
12964         lt_save_allow_undefined_flag=$allow_undefined_flag
12965         allow_undefined_flag=
12966         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12967   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12968   ac_status=$?
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); }
12971         then
12972           archive_cmds_need_lc=no
12973         else
12974           archive_cmds_need_lc=yes
12975         fi
12976         allow_undefined_flag=$lt_save_allow_undefined_flag
12977       else
12978         cat conftest.err 1>&5
12979       fi
12980       $rm conftest*
12981       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12982 echo "${ECHO_T}$archive_cmds_need_lc" >&6
12983       ;;
12984     esac
12985   fi
12986   ;;
12987 esac
12988
12989 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12990 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12991 library_names_spec=
12992 libname_spec='lib$name'
12993 soname_spec=
12994 shrext_cmds=".so"
12995 postinstall_cmds=
12996 postuninstall_cmds=
12997 finish_cmds=
12998 finish_eval=
12999 shlibpath_var=
13000 shlibpath_overrides_runpath=unknown
13001 version_type=none
13002 dynamic_linker="$host_os ld.so"
13003 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13004 if test "$GCC" = yes; then
13005   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13006   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13007     # if the path contains ";" then we assume it to be the separator
13008     # otherwise default to the standard path separator (i.e. ":") - it is
13009     # assumed that no part of a normal pathname contains ";" but that should
13010     # okay in the real world where ";" in dirpaths is itself problematic.
13011     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13012   else
13013     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13014   fi
13015 else
13016   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13017 fi
13018 need_lib_prefix=unknown
13019 hardcode_into_libs=no
13020
13021 # when you set need_version to no, make sure it does not cause -set_version
13022 # flags to be left without arguments
13023 need_version=unknown
13024
13025 case $host_os in
13026 aix3*)
13027   version_type=linux
13028   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13029   shlibpath_var=LIBPATH
13030
13031   # AIX 3 has no versioning support, so we append a major version to the name.
13032   soname_spec='${libname}${release}${shared_ext}$major'
13033   ;;
13034
13035 aix4* | aix5*)
13036   version_type=linux
13037   need_lib_prefix=no
13038   need_version=no
13039   hardcode_into_libs=yes
13040   if test "$host_cpu" = ia64; then
13041     # AIX 5 supports IA64
13042     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13043     shlibpath_var=LD_LIBRARY_PATH
13044   else
13045     # With GCC up to 2.95.x, collect2 would create an import file
13046     # for dependence libraries.  The import file would start with
13047     # the line `#! .'.  This would cause the generated library to
13048     # depend on `.', always an invalid library.  This was fixed in
13049     # development snapshots of GCC prior to 3.0.
13050     case $host_os in
13051       aix4 | aix4.[01] | aix4.[01].*)
13052       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13053            echo ' yes '
13054            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13055         :
13056       else
13057         can_build_shared=no
13058       fi
13059       ;;
13060     esac
13061     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13062     # soname into executable. Probably we can add versioning support to
13063     # collect2, so additional links can be useful in future.
13064     if test "$aix_use_runtimelinking" = yes; then
13065       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13066       # instead of lib<name>.a to let people know that these are not
13067       # typical AIX shared libraries.
13068       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13069     else
13070       # We preserve .a as extension for shared libraries through AIX4.2
13071       # and later when we are not doing run time linking.
13072       library_names_spec='${libname}${release}.a $libname.a'
13073       soname_spec='${libname}${release}${shared_ext}$major'
13074     fi
13075     shlibpath_var=LIBPATH
13076   fi
13077   ;;
13078
13079 amigaos*)
13080   library_names_spec='$libname.ixlibrary $libname.a'
13081   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13082   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'
13083   ;;
13084
13085 beos*)
13086   library_names_spec='${libname}${shared_ext}'
13087   dynamic_linker="$host_os ld.so"
13088   shlibpath_var=LIBRARY_PATH
13089   ;;
13090
13091 bsdi4*)
13092   version_type=linux
13093   need_version=no
13094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13095   soname_spec='${libname}${release}${shared_ext}$major'
13096   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13097   shlibpath_var=LD_LIBRARY_PATH
13098   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13099   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13100   # the default ld.so.conf also contains /usr/contrib/lib and
13101   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13102   # libtool to hard-code these into programs
13103   ;;
13104
13105 cygwin* | mingw* | pw32*)
13106   version_type=windows
13107   shrext_cmds=".dll"
13108   need_version=no
13109   need_lib_prefix=no
13110
13111   case $GCC,$host_os in
13112   yes,cygwin* | yes,mingw* | yes,pw32*)
13113     library_names_spec='$libname.dll.a'
13114     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13115     postinstall_cmds='base_file=`basename \${file}`~
13116       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13117       dldir=$destdir/`dirname \$dlpath`~
13118       test -d \$dldir || mkdir -p \$dldir~
13119       $install_prog $dir/$dlname \$dldir/$dlname'
13120     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13121       dlpath=$dir/\$dldll~
13122        $rm \$dlpath'
13123     shlibpath_overrides_runpath=yes
13124
13125     case $host_os in
13126     cygwin*)
13127       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13128       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13129       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13130       ;;
13131     mingw*)
13132       # MinGW DLLs use traditional 'lib' prefix
13133       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13134       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13135       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13136         # It is most probably a Windows format PATH printed by
13137         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13138         # path with ; separators, and with drive letters. We can handle the
13139         # drive letters (cygwin fileutils understands them), so leave them,
13140         # especially as we might pass files found there to a mingw objdump,
13141         # which wouldn't understand a cygwinified path. Ahh.
13142         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13143       else
13144         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13145       fi
13146       ;;
13147     pw32*)
13148       # pw32 DLLs use 'pw' prefix rather than 'lib'
13149       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13150       ;;
13151     esac
13152     ;;
13153
13154   *)
13155     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13156     ;;
13157   esac
13158   dynamic_linker='Win32 ld.exe'
13159   # FIXME: first we should search . and the directory the executable is in
13160   shlibpath_var=PATH
13161   ;;
13162
13163 darwin* | rhapsody*)
13164   dynamic_linker="$host_os dyld"
13165   version_type=darwin
13166   need_lib_prefix=no
13167   need_version=no
13168   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13169   soname_spec='${libname}${release}${major}$shared_ext'
13170   shlibpath_overrides_runpath=yes
13171   shlibpath_var=DYLD_LIBRARY_PATH
13172   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13173   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13174   if test "$GCC" = yes; then
13175     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"`
13176   else
13177     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13178   fi
13179   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13180   ;;
13181
13182 dgux*)
13183   version_type=linux
13184   need_lib_prefix=no
13185   need_version=no
13186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13187   soname_spec='${libname}${release}${shared_ext}$major'
13188   shlibpath_var=LD_LIBRARY_PATH
13189   ;;
13190
13191 freebsd1*)
13192   dynamic_linker=no
13193   ;;
13194
13195 kfreebsd*-gnu)
13196   version_type=linux
13197   need_lib_prefix=no
13198   need_version=no
13199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13200   soname_spec='${libname}${release}${shared_ext}$major'
13201   shlibpath_var=LD_LIBRARY_PATH
13202   shlibpath_overrides_runpath=no
13203   hardcode_into_libs=yes
13204   dynamic_linker='GNU ld.so'
13205   ;;
13206
13207 freebsd*)
13208   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13209   version_type=freebsd-$objformat
13210   case $version_type in
13211     freebsd-elf*)
13212       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13213       need_version=no
13214       need_lib_prefix=no
13215       ;;
13216     freebsd-*)
13217       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13218       need_version=yes
13219       ;;
13220   esac
13221   shlibpath_var=LD_LIBRARY_PATH
13222   case $host_os in
13223   freebsd2*)
13224     shlibpath_overrides_runpath=yes
13225     ;;
13226   freebsd3.01* | freebsdelf3.01*)
13227     shlibpath_overrides_runpath=yes
13228     hardcode_into_libs=yes
13229     ;;
13230   *) # from 3.2 on
13231     shlibpath_overrides_runpath=no
13232     hardcode_into_libs=yes
13233     ;;
13234   esac
13235   ;;
13236
13237 gnu*)
13238   version_type=linux
13239   need_lib_prefix=no
13240   need_version=no
13241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13242   soname_spec='${libname}${release}${shared_ext}$major'
13243   shlibpath_var=LD_LIBRARY_PATH
13244   hardcode_into_libs=yes
13245   ;;
13246
13247 hpux9* | hpux10* | hpux11*)
13248   # Give a soname corresponding to the major version so that dld.sl refuses to
13249   # link against other versions.
13250   version_type=sunos
13251   need_lib_prefix=no
13252   need_version=no
13253   case "$host_cpu" in
13254   ia64*)
13255     shrext_cmds='.so'
13256     hardcode_into_libs=yes
13257     dynamic_linker="$host_os dld.so"
13258     shlibpath_var=LD_LIBRARY_PATH
13259     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13260     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13261     soname_spec='${libname}${release}${shared_ext}$major'
13262     if test "X$HPUX_IA64_MODE" = X32; then
13263       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13264     else
13265       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13266     fi
13267     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13268     ;;
13269    hppa*64*)
13270      shrext_cmds='.sl'
13271      hardcode_into_libs=yes
13272      dynamic_linker="$host_os dld.sl"
13273      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13274      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13275      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13276      soname_spec='${libname}${release}${shared_ext}$major'
13277      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13278      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13279      ;;
13280    *)
13281     shrext_cmds='.sl'
13282     dynamic_linker="$host_os dld.sl"
13283     shlibpath_var=SHLIB_PATH
13284     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13286     soname_spec='${libname}${release}${shared_ext}$major'
13287     ;;
13288   esac
13289   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13290   postinstall_cmds='chmod 555 $lib'
13291   ;;
13292
13293 irix5* | irix6* | nonstopux*)
13294   case $host_os in
13295     nonstopux*) version_type=nonstopux ;;
13296     *)
13297         if test "$lt_cv_prog_gnu_ld" = yes; then
13298                 version_type=linux
13299         else
13300                 version_type=irix
13301         fi ;;
13302   esac
13303   need_lib_prefix=no
13304   need_version=no
13305   soname_spec='${libname}${release}${shared_ext}$major'
13306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13307   case $host_os in
13308   irix5* | nonstopux*)
13309     libsuff= shlibsuff=
13310     ;;
13311   *)
13312     case $LD in # libtool.m4 will add one of these switches to LD
13313     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13314       libsuff= shlibsuff= libmagic=32-bit;;
13315     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13316       libsuff=32 shlibsuff=N32 libmagic=N32;;
13317     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13318       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13319     *) libsuff= shlibsuff= libmagic=never-match;;
13320     esac
13321     ;;
13322   esac
13323   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13324   shlibpath_overrides_runpath=no
13325   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13326   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13327   hardcode_into_libs=yes
13328   ;;
13329
13330 # No shared lib support for Linux oldld, aout, or coff.
13331 linux*oldld* | linux*aout* | linux*coff*)
13332   dynamic_linker=no
13333   ;;
13334
13335 # This must be Linux ELF.
13336 linux*)
13337   version_type=linux
13338   need_lib_prefix=no
13339   need_version=no
13340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13341   soname_spec='${libname}${release}${shared_ext}$major'
13342   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13343   shlibpath_var=LD_LIBRARY_PATH
13344   shlibpath_overrides_runpath=no
13345   # This implies no fast_install, which is unacceptable.
13346   # Some rework will be needed to allow for fast_install
13347   # before this can be enabled.
13348   hardcode_into_libs=yes
13349
13350   # Append ld.so.conf contents to the search path
13351   if test -f /etc/ld.so.conf; then
13352     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13353     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13354   fi
13355
13356   # We used to test for /lib/ld.so.1 and disable shared libraries on
13357   # powerpc, because MkLinux only supported shared libraries with the
13358   # GNU dynamic linker.  Since this was broken with cross compilers,
13359   # most powerpc-linux boxes support dynamic linking these days and
13360   # people can always --disable-shared, the test was removed, and we
13361   # assume the GNU/Linux dynamic linker is in use.
13362   dynamic_linker='GNU/Linux ld.so'
13363   ;;
13364
13365 knetbsd*-gnu)
13366   version_type=linux
13367   need_lib_prefix=no
13368   need_version=no
13369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13370   soname_spec='${libname}${release}${shared_ext}$major'
13371   shlibpath_var=LD_LIBRARY_PATH
13372   shlibpath_overrides_runpath=no
13373   hardcode_into_libs=yes
13374   dynamic_linker='GNU ld.so'
13375   ;;
13376
13377 netbsd*)
13378   version_type=sunos
13379   need_lib_prefix=no
13380   need_version=no
13381   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13383     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13384     dynamic_linker='NetBSD (a.out) ld.so'
13385   else
13386     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13387     soname_spec='${libname}${release}${shared_ext}$major'
13388     dynamic_linker='NetBSD ld.elf_so'
13389   fi
13390   shlibpath_var=LD_LIBRARY_PATH
13391   shlibpath_overrides_runpath=yes
13392   hardcode_into_libs=yes
13393   ;;
13394
13395 newsos6)
13396   version_type=linux
13397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13398   shlibpath_var=LD_LIBRARY_PATH
13399   shlibpath_overrides_runpath=yes
13400   ;;
13401
13402 nto-qnx*)
13403   version_type=linux
13404   need_lib_prefix=no
13405   need_version=no
13406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13407   soname_spec='${libname}${release}${shared_ext}$major'
13408   shlibpath_var=LD_LIBRARY_PATH
13409   shlibpath_overrides_runpath=yes
13410   ;;
13411
13412 openbsd*)
13413   version_type=sunos
13414   need_lib_prefix=no
13415   need_version=yes
13416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13417   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13418   shlibpath_var=LD_LIBRARY_PATH
13419   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13420     case $host_os in
13421       openbsd2.[89] | openbsd2.[89].*)
13422         shlibpath_overrides_runpath=no
13423         ;;
13424       *)
13425         shlibpath_overrides_runpath=yes
13426         ;;
13427       esac
13428   else
13429     shlibpath_overrides_runpath=yes
13430   fi
13431   ;;
13432
13433 os2*)
13434   libname_spec='$name'
13435   shrext_cmds=".dll"
13436   need_lib_prefix=no
13437   library_names_spec='$libname${shared_ext} $libname.a'
13438   dynamic_linker='OS/2 ld.exe'
13439   shlibpath_var=LIBPATH
13440   ;;
13441
13442 osf3* | osf4* | osf5*)
13443   version_type=osf
13444   need_lib_prefix=no
13445   need_version=no
13446   soname_spec='${libname}${release}${shared_ext}$major'
13447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13448   shlibpath_var=LD_LIBRARY_PATH
13449   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13450   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13451   ;;
13452
13453 sco3.2v5*)
13454   version_type=osf
13455   soname_spec='${libname}${release}${shared_ext}$major'
13456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13457   shlibpath_var=LD_LIBRARY_PATH
13458   ;;
13459
13460 solaris*)
13461   version_type=linux
13462   need_lib_prefix=no
13463   need_version=no
13464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13465   soname_spec='${libname}${release}${shared_ext}$major'
13466   shlibpath_var=LD_LIBRARY_PATH
13467   shlibpath_overrides_runpath=yes
13468   hardcode_into_libs=yes
13469   # ldd complains unless libraries are executable
13470   postinstall_cmds='chmod +x $lib'
13471   ;;
13472
13473 sunos4*)
13474   version_type=sunos
13475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13476   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13477   shlibpath_var=LD_LIBRARY_PATH
13478   shlibpath_overrides_runpath=yes
13479   if test "$with_gnu_ld" = yes; then
13480     need_lib_prefix=no
13481   fi
13482   need_version=yes
13483   ;;
13484
13485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13486   version_type=linux
13487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13488   soname_spec='${libname}${release}${shared_ext}$major'
13489   shlibpath_var=LD_LIBRARY_PATH
13490   case $host_vendor in
13491     sni)
13492       shlibpath_overrides_runpath=no
13493       need_lib_prefix=no
13494       export_dynamic_flag_spec='${wl}-Blargedynsym'
13495       runpath_var=LD_RUN_PATH
13496       ;;
13497     siemens)
13498       need_lib_prefix=no
13499       ;;
13500     motorola)
13501       need_lib_prefix=no
13502       need_version=no
13503       shlibpath_overrides_runpath=no
13504       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13505       ;;
13506   esac
13507   ;;
13508
13509 sysv4*MP*)
13510   if test -d /usr/nec ;then
13511     version_type=linux
13512     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13513     soname_spec='$libname${shared_ext}.$major'
13514     shlibpath_var=LD_LIBRARY_PATH
13515   fi
13516   ;;
13517
13518 uts4*)
13519   version_type=linux
13520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13521   soname_spec='${libname}${release}${shared_ext}$major'
13522   shlibpath_var=LD_LIBRARY_PATH
13523   ;;
13524
13525 *)
13526   dynamic_linker=no
13527   ;;
13528 esac
13529 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13530 echo "${ECHO_T}$dynamic_linker" >&6
13531 test "$dynamic_linker" = no && can_build_shared=no
13532
13533 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13534 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13535 hardcode_action=
13536 if test -n "$hardcode_libdir_flag_spec" || \
13537    test -n "$runpath_var " || \
13538    test "X$hardcode_automatic"="Xyes" ; then
13539
13540   # We can hardcode non-existant directories.
13541   if test "$hardcode_direct" != no &&
13542      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13543      # have to relink, otherwise we might link with an installed library
13544      # when we should be linking with a yet-to-be-installed one
13545      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13546      test "$hardcode_minus_L" != no; then
13547     # Linking always hardcodes the temporary library directory.
13548     hardcode_action=relink
13549   else
13550     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13551     hardcode_action=immediate
13552   fi
13553 else
13554   # We cannot hardcode anything, or else we can only hardcode existing
13555   # directories.
13556   hardcode_action=unsupported
13557 fi
13558 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13559 echo "${ECHO_T}$hardcode_action" >&6
13560
13561 if test "$hardcode_action" = relink; then
13562   # Fast installation is not supported
13563   enable_fast_install=no
13564 elif test "$shlibpath_overrides_runpath" = yes ||
13565      test "$enable_shared" = no; then
13566   # Fast installation is not necessary
13567   enable_fast_install=needless
13568 fi
13569
13570 striplib=
13571 old_striplib=
13572 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13573 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13574 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13575   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13576   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13577   echo "$as_me:$LINENO: result: yes" >&5
13578 echo "${ECHO_T}yes" >&6
13579 else
13580 # FIXME - insert some real tests, host_os isn't really good enough
13581   case $host_os in
13582    darwin*)
13583        if test -n "$STRIP" ; then
13584          striplib="$STRIP -x"
13585          echo "$as_me:$LINENO: result: yes" >&5
13586 echo "${ECHO_T}yes" >&6
13587        else
13588   echo "$as_me:$LINENO: result: no" >&5
13589 echo "${ECHO_T}no" >&6
13590 fi
13591        ;;
13592    *)
13593   echo "$as_me:$LINENO: result: no" >&5
13594 echo "${ECHO_T}no" >&6
13595     ;;
13596   esac
13597 fi
13598
13599 if test "x$enable_dlopen" != xyes; then
13600   enable_dlopen=unknown
13601   enable_dlopen_self=unknown
13602   enable_dlopen_self_static=unknown
13603 else
13604   lt_cv_dlopen=no
13605   lt_cv_dlopen_libs=
13606
13607   case $host_os in
13608   beos*)
13609     lt_cv_dlopen="load_add_on"
13610     lt_cv_dlopen_libs=
13611     lt_cv_dlopen_self=yes
13612     ;;
13613
13614   mingw* | pw32*)
13615     lt_cv_dlopen="LoadLibrary"
13616     lt_cv_dlopen_libs=
13617    ;;
13618
13619   cygwin*)
13620     lt_cv_dlopen="dlopen"
13621     lt_cv_dlopen_libs=
13622    ;;
13623
13624   darwin*)
13625   # if libdl is installed we need to link against it
13626     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13627 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13629   echo $ECHO_N "(cached) $ECHO_C" >&6
13630 else
13631   ac_check_lib_save_LIBS=$LIBS
13632 LIBS="-ldl  $LIBS"
13633 cat >conftest.$ac_ext <<_ACEOF
13634 /* confdefs.h.  */
13635 _ACEOF
13636 cat confdefs.h >>conftest.$ac_ext
13637 cat >>conftest.$ac_ext <<_ACEOF
13638 /* end confdefs.h.  */
13639
13640 /* Override any gcc2 internal prototype to avoid an error.  */
13641 #ifdef __cplusplus
13642 extern "C"
13643 #endif
13644 /* We use char because int might match the return type of a gcc2
13645    builtin and then its argument prototype would still apply.  */
13646 char dlopen ();
13647 int
13648 main ()
13649 {
13650 dlopen ();
13651   ;
13652   return 0;
13653 }
13654 _ACEOF
13655 rm -f conftest.$ac_objext conftest$ac_exeext
13656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13657   (eval $ac_link) 2>conftest.er1
13658   ac_status=$?
13659   grep -v '^ *+' conftest.er1 >conftest.err
13660   rm -f conftest.er1
13661   cat conftest.err >&5
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); } &&
13664          { ac_try='test -z "$ac_c_werror_flag"
13665                          || test ! -s conftest.err'
13666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667   (eval $ac_try) 2>&5
13668   ac_status=$?
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); }; } &&
13671          { ac_try='test -s conftest$ac_exeext'
13672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673   (eval $ac_try) 2>&5
13674   ac_status=$?
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); }; }; then
13677   ac_cv_lib_dl_dlopen=yes
13678 else
13679   echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13681
13682 ac_cv_lib_dl_dlopen=no
13683 fi
13684 rm -f conftest.err conftest.$ac_objext \
13685       conftest$ac_exeext conftest.$ac_ext
13686 LIBS=$ac_check_lib_save_LIBS
13687 fi
13688 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13689 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13690 if test $ac_cv_lib_dl_dlopen = yes; then
13691   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13692 else
13693
13694     lt_cv_dlopen="dyld"
13695     lt_cv_dlopen_libs=
13696     lt_cv_dlopen_self=yes
13697
13698 fi
13699
13700    ;;
13701
13702   *)
13703     echo "$as_me:$LINENO: checking for shl_load" >&5
13704 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13705 if test "${ac_cv_func_shl_load+set}" = set; then
13706   echo $ECHO_N "(cached) $ECHO_C" >&6
13707 else
13708   cat >conftest.$ac_ext <<_ACEOF
13709 /* confdefs.h.  */
13710 _ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h.  */
13714 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13716 #define shl_load innocuous_shl_load
13717
13718 /* System header to define __stub macros and hopefully few prototypes,
13719     which can conflict with char shl_load (); below.
13720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13721     <limits.h> exists even on freestanding compilers.  */
13722
13723 #ifdef __STDC__
13724 # include <limits.h>
13725 #else
13726 # include <assert.h>
13727 #endif
13728
13729 #undef shl_load
13730
13731 /* Override any gcc2 internal prototype to avoid an error.  */
13732 #ifdef __cplusplus
13733 extern "C"
13734 {
13735 #endif
13736 /* We use char because int might match the return type of a gcc2
13737    builtin and then its argument prototype would still apply.  */
13738 char shl_load ();
13739 /* The GNU C library defines this for functions which it implements
13740     to always fail with ENOSYS.  Some functions are actually named
13741     something starting with __ and the normal name is an alias.  */
13742 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13743 choke me
13744 #else
13745 char (*f) () = shl_load;
13746 #endif
13747 #ifdef __cplusplus
13748 }
13749 #endif
13750
13751 int
13752 main ()
13753 {
13754 return f != shl_load;
13755   ;
13756   return 0;
13757 }
13758 _ACEOF
13759 rm -f conftest.$ac_objext conftest$ac_exeext
13760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13761   (eval $ac_link) 2>conftest.er1
13762   ac_status=$?
13763   grep -v '^ *+' conftest.er1 >conftest.err
13764   rm -f conftest.er1
13765   cat conftest.err >&5
13766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767   (exit $ac_status); } &&
13768          { ac_try='test -z "$ac_c_werror_flag"
13769                          || test ! -s conftest.err'
13770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13771   (eval $ac_try) 2>&5
13772   ac_status=$?
13773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774   (exit $ac_status); }; } &&
13775          { ac_try='test -s conftest$ac_exeext'
13776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777   (eval $ac_try) 2>&5
13778   ac_status=$?
13779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780   (exit $ac_status); }; }; then
13781   ac_cv_func_shl_load=yes
13782 else
13783   echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13785
13786 ac_cv_func_shl_load=no
13787 fi
13788 rm -f conftest.err conftest.$ac_objext \
13789       conftest$ac_exeext conftest.$ac_ext
13790 fi
13791 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13792 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13793 if test $ac_cv_func_shl_load = yes; then
13794   lt_cv_dlopen="shl_load"
13795 else
13796   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13797 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13798 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13799   echo $ECHO_N "(cached) $ECHO_C" >&6
13800 else
13801   ac_check_lib_save_LIBS=$LIBS
13802 LIBS="-ldld  $LIBS"
13803 cat >conftest.$ac_ext <<_ACEOF
13804 /* confdefs.h.  */
13805 _ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h.  */
13809
13810 /* Override any gcc2 internal prototype to avoid an error.  */
13811 #ifdef __cplusplus
13812 extern "C"
13813 #endif
13814 /* We use char because int might match the return type of a gcc2
13815    builtin and then its argument prototype would still apply.  */
13816 char shl_load ();
13817 int
13818 main ()
13819 {
13820 shl_load ();
13821   ;
13822   return 0;
13823 }
13824 _ACEOF
13825 rm -f conftest.$ac_objext conftest$ac_exeext
13826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13827   (eval $ac_link) 2>conftest.er1
13828   ac_status=$?
13829   grep -v '^ *+' conftest.er1 >conftest.err
13830   rm -f conftest.er1
13831   cat conftest.err >&5
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); } &&
13834          { ac_try='test -z "$ac_c_werror_flag"
13835                          || test ! -s conftest.err'
13836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837   (eval $ac_try) 2>&5
13838   ac_status=$?
13839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840   (exit $ac_status); }; } &&
13841          { ac_try='test -s conftest$ac_exeext'
13842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843   (eval $ac_try) 2>&5
13844   ac_status=$?
13845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846   (exit $ac_status); }; }; then
13847   ac_cv_lib_dld_shl_load=yes
13848 else
13849   echo "$as_me: failed program was:" >&5
13850 sed 's/^/| /' conftest.$ac_ext >&5
13851
13852 ac_cv_lib_dld_shl_load=no
13853 fi
13854 rm -f conftest.err conftest.$ac_objext \
13855       conftest$ac_exeext conftest.$ac_ext
13856 LIBS=$ac_check_lib_save_LIBS
13857 fi
13858 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13859 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13860 if test $ac_cv_lib_dld_shl_load = yes; then
13861   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13862 else
13863   echo "$as_me:$LINENO: checking for dlopen" >&5
13864 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13865 if test "${ac_cv_func_dlopen+set}" = set; then
13866   echo $ECHO_N "(cached) $ECHO_C" >&6
13867 else
13868   cat >conftest.$ac_ext <<_ACEOF
13869 /* confdefs.h.  */
13870 _ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h.  */
13874 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13876 #define dlopen innocuous_dlopen
13877
13878 /* System header to define __stub macros and hopefully few prototypes,
13879     which can conflict with char dlopen (); below.
13880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13881     <limits.h> exists even on freestanding compilers.  */
13882
13883 #ifdef __STDC__
13884 # include <limits.h>
13885 #else
13886 # include <assert.h>
13887 #endif
13888
13889 #undef dlopen
13890
13891 /* Override any gcc2 internal prototype to avoid an error.  */
13892 #ifdef __cplusplus
13893 extern "C"
13894 {
13895 #endif
13896 /* We use char because int might match the return type of a gcc2
13897    builtin and then its argument prototype would still apply.  */
13898 char dlopen ();
13899 /* The GNU C library defines this for functions which it implements
13900     to always fail with ENOSYS.  Some functions are actually named
13901     something starting with __ and the normal name is an alias.  */
13902 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13903 choke me
13904 #else
13905 char (*f) () = dlopen;
13906 #endif
13907 #ifdef __cplusplus
13908 }
13909 #endif
13910
13911 int
13912 main ()
13913 {
13914 return f != dlopen;
13915   ;
13916   return 0;
13917 }
13918 _ACEOF
13919 rm -f conftest.$ac_objext conftest$ac_exeext
13920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13921   (eval $ac_link) 2>conftest.er1
13922   ac_status=$?
13923   grep -v '^ *+' conftest.er1 >conftest.err
13924   rm -f conftest.er1
13925   cat conftest.err >&5
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); } &&
13928          { ac_try='test -z "$ac_c_werror_flag"
13929                          || test ! -s conftest.err'
13930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931   (eval $ac_try) 2>&5
13932   ac_status=$?
13933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); }; } &&
13935          { ac_try='test -s conftest$ac_exeext'
13936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937   (eval $ac_try) 2>&5
13938   ac_status=$?
13939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940   (exit $ac_status); }; }; then
13941   ac_cv_func_dlopen=yes
13942 else
13943   echo "$as_me: failed program was:" >&5
13944 sed 's/^/| /' conftest.$ac_ext >&5
13945
13946 ac_cv_func_dlopen=no
13947 fi
13948 rm -f conftest.err conftest.$ac_objext \
13949       conftest$ac_exeext conftest.$ac_ext
13950 fi
13951 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13952 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13953 if test $ac_cv_func_dlopen = yes; then
13954   lt_cv_dlopen="dlopen"
13955 else
13956   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13957 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13958 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13959   echo $ECHO_N "(cached) $ECHO_C" >&6
13960 else
13961   ac_check_lib_save_LIBS=$LIBS
13962 LIBS="-ldl  $LIBS"
13963 cat >conftest.$ac_ext <<_ACEOF
13964 /* confdefs.h.  */
13965 _ACEOF
13966 cat confdefs.h >>conftest.$ac_ext
13967 cat >>conftest.$ac_ext <<_ACEOF
13968 /* end confdefs.h.  */
13969
13970 /* Override any gcc2 internal prototype to avoid an error.  */
13971 #ifdef __cplusplus
13972 extern "C"
13973 #endif
13974 /* We use char because int might match the return type of a gcc2
13975    builtin and then its argument prototype would still apply.  */
13976 char dlopen ();
13977 int
13978 main ()
13979 {
13980 dlopen ();
13981   ;
13982   return 0;
13983 }
13984 _ACEOF
13985 rm -f conftest.$ac_objext conftest$ac_exeext
13986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13987   (eval $ac_link) 2>conftest.er1
13988   ac_status=$?
13989   grep -v '^ *+' conftest.er1 >conftest.err
13990   rm -f conftest.er1
13991   cat conftest.err >&5
13992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); } &&
13994          { ac_try='test -z "$ac_c_werror_flag"
13995                          || test ! -s conftest.err'
13996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997   (eval $ac_try) 2>&5
13998   ac_status=$?
13999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000   (exit $ac_status); }; } &&
14001          { ac_try='test -s conftest$ac_exeext'
14002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14003   (eval $ac_try) 2>&5
14004   ac_status=$?
14005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006   (exit $ac_status); }; }; then
14007   ac_cv_lib_dl_dlopen=yes
14008 else
14009   echo "$as_me: failed program was:" >&5
14010 sed 's/^/| /' conftest.$ac_ext >&5
14011
14012 ac_cv_lib_dl_dlopen=no
14013 fi
14014 rm -f conftest.err conftest.$ac_objext \
14015       conftest$ac_exeext conftest.$ac_ext
14016 LIBS=$ac_check_lib_save_LIBS
14017 fi
14018 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14019 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14020 if test $ac_cv_lib_dl_dlopen = yes; then
14021   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14022 else
14023   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14024 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14025 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14026   echo $ECHO_N "(cached) $ECHO_C" >&6
14027 else
14028   ac_check_lib_save_LIBS=$LIBS
14029 LIBS="-lsvld  $LIBS"
14030 cat >conftest.$ac_ext <<_ACEOF
14031 /* confdefs.h.  */
14032 _ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h.  */
14036
14037 /* Override any gcc2 internal prototype to avoid an error.  */
14038 #ifdef __cplusplus
14039 extern "C"
14040 #endif
14041 /* We use char because int might match the return type of a gcc2
14042    builtin and then its argument prototype would still apply.  */
14043 char dlopen ();
14044 int
14045 main ()
14046 {
14047 dlopen ();
14048   ;
14049   return 0;
14050 }
14051 _ACEOF
14052 rm -f conftest.$ac_objext conftest$ac_exeext
14053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14054   (eval $ac_link) 2>conftest.er1
14055   ac_status=$?
14056   grep -v '^ *+' conftest.er1 >conftest.err
14057   rm -f conftest.er1
14058   cat conftest.err >&5
14059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060   (exit $ac_status); } &&
14061          { ac_try='test -z "$ac_c_werror_flag"
14062                          || test ! -s conftest.err'
14063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064   (eval $ac_try) 2>&5
14065   ac_status=$?
14066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); }; } &&
14068          { ac_try='test -s conftest$ac_exeext'
14069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070   (eval $ac_try) 2>&5
14071   ac_status=$?
14072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073   (exit $ac_status); }; }; then
14074   ac_cv_lib_svld_dlopen=yes
14075 else
14076   echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.$ac_ext >&5
14078
14079 ac_cv_lib_svld_dlopen=no
14080 fi
14081 rm -f conftest.err conftest.$ac_objext \
14082       conftest$ac_exeext conftest.$ac_ext
14083 LIBS=$ac_check_lib_save_LIBS
14084 fi
14085 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14086 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14087 if test $ac_cv_lib_svld_dlopen = yes; then
14088   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14089 else
14090   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14091 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14092 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14093   echo $ECHO_N "(cached) $ECHO_C" >&6
14094 else
14095   ac_check_lib_save_LIBS=$LIBS
14096 LIBS="-ldld  $LIBS"
14097 cat >conftest.$ac_ext <<_ACEOF
14098 /* confdefs.h.  */
14099 _ACEOF
14100 cat confdefs.h >>conftest.$ac_ext
14101 cat >>conftest.$ac_ext <<_ACEOF
14102 /* end confdefs.h.  */
14103
14104 /* Override any gcc2 internal prototype to avoid an error.  */
14105 #ifdef __cplusplus
14106 extern "C"
14107 #endif
14108 /* We use char because int might match the return type of a gcc2
14109    builtin and then its argument prototype would still apply.  */
14110 char dld_link ();
14111 int
14112 main ()
14113 {
14114 dld_link ();
14115   ;
14116   return 0;
14117 }
14118 _ACEOF
14119 rm -f conftest.$ac_objext conftest$ac_exeext
14120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14121   (eval $ac_link) 2>conftest.er1
14122   ac_status=$?
14123   grep -v '^ *+' conftest.er1 >conftest.err
14124   rm -f conftest.er1
14125   cat conftest.err >&5
14126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127   (exit $ac_status); } &&
14128          { ac_try='test -z "$ac_c_werror_flag"
14129                          || test ! -s conftest.err'
14130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131   (eval $ac_try) 2>&5
14132   ac_status=$?
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); }; } &&
14135          { ac_try='test -s conftest$ac_exeext'
14136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137   (eval $ac_try) 2>&5
14138   ac_status=$?
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); }; }; then
14141   ac_cv_lib_dld_dld_link=yes
14142 else
14143   echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14145
14146 ac_cv_lib_dld_dld_link=no
14147 fi
14148 rm -f conftest.err conftest.$ac_objext \
14149       conftest$ac_exeext conftest.$ac_ext
14150 LIBS=$ac_check_lib_save_LIBS
14151 fi
14152 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14153 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14154 if test $ac_cv_lib_dld_dld_link = yes; then
14155   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14156 fi
14157
14158
14159 fi
14160
14161
14162 fi
14163
14164
14165 fi
14166
14167
14168 fi
14169
14170
14171 fi
14172
14173     ;;
14174   esac
14175
14176   if test "x$lt_cv_dlopen" != xno; then
14177     enable_dlopen=yes
14178   else
14179     enable_dlopen=no
14180   fi
14181
14182   case $lt_cv_dlopen in
14183   dlopen)
14184     save_CPPFLAGS="$CPPFLAGS"
14185     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14186
14187     save_LDFLAGS="$LDFLAGS"
14188     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14189
14190     save_LIBS="$LIBS"
14191     LIBS="$lt_cv_dlopen_libs $LIBS"
14192
14193     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14194 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14195 if test "${lt_cv_dlopen_self+set}" = set; then
14196   echo $ECHO_N "(cached) $ECHO_C" >&6
14197 else
14198           if test "$cross_compiling" = yes; then :
14199   lt_cv_dlopen_self=cross
14200 else
14201   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14202   lt_status=$lt_dlunknown
14203   cat > conftest.$ac_ext <<EOF
14204 #line 14204 "configure"
14205 #include "confdefs.h"
14206
14207 #if HAVE_DLFCN_H
14208 #include <dlfcn.h>
14209 #endif
14210
14211 #include <stdio.h>
14212
14213 #ifdef RTLD_GLOBAL
14214 #  define LT_DLGLOBAL           RTLD_GLOBAL
14215 #else
14216 #  ifdef DL_GLOBAL
14217 #    define LT_DLGLOBAL         DL_GLOBAL
14218 #  else
14219 #    define LT_DLGLOBAL         0
14220 #  endif
14221 #endif
14222
14223 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14224    find out it does not work in some platform. */
14225 #ifndef LT_DLLAZY_OR_NOW
14226 #  ifdef RTLD_LAZY
14227 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14228 #  else
14229 #    ifdef DL_LAZY
14230 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14231 #    else
14232 #      ifdef RTLD_NOW
14233 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14234 #      else
14235 #        ifdef DL_NOW
14236 #          define LT_DLLAZY_OR_NOW      DL_NOW
14237 #        else
14238 #          define LT_DLLAZY_OR_NOW      0
14239 #        endif
14240 #      endif
14241 #    endif
14242 #  endif
14243 #endif
14244
14245 #ifdef __cplusplus
14246 extern "C" void exit (int);
14247 #endif
14248
14249 void fnord() { int i=42;}
14250 int main ()
14251 {
14252   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14253   int status = $lt_dlunknown;
14254
14255   if (self)
14256     {
14257       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14258       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14259       /* dlclose (self); */
14260     }
14261
14262     exit (status);
14263 }
14264 EOF
14265   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14266   (eval $ac_link) 2>&5
14267   ac_status=$?
14268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14270     (./conftest; exit; ) 2>/dev/null
14271     lt_status=$?
14272     case x$lt_status in
14273       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14274       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14275       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14276     esac
14277   else :
14278     # compilation failed
14279     lt_cv_dlopen_self=no
14280   fi
14281 fi
14282 rm -fr conftest*
14283
14284
14285 fi
14286 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14287 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14288
14289     if test "x$lt_cv_dlopen_self" = xyes; then
14290       LDFLAGS="$LDFLAGS $link_static_flag"
14291       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14292 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14293 if test "${lt_cv_dlopen_self_static+set}" = set; then
14294   echo $ECHO_N "(cached) $ECHO_C" >&6
14295 else
14296           if test "$cross_compiling" = yes; then :
14297   lt_cv_dlopen_self_static=cross
14298 else
14299   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14300   lt_status=$lt_dlunknown
14301   cat > conftest.$ac_ext <<EOF
14302 #line 14302 "configure"
14303 #include "confdefs.h"
14304
14305 #if HAVE_DLFCN_H
14306 #include <dlfcn.h>
14307 #endif
14308
14309 #include <stdio.h>
14310
14311 #ifdef RTLD_GLOBAL
14312 #  define LT_DLGLOBAL           RTLD_GLOBAL
14313 #else
14314 #  ifdef DL_GLOBAL
14315 #    define LT_DLGLOBAL         DL_GLOBAL
14316 #  else
14317 #    define LT_DLGLOBAL         0
14318 #  endif
14319 #endif
14320
14321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14322    find out it does not work in some platform. */
14323 #ifndef LT_DLLAZY_OR_NOW
14324 #  ifdef RTLD_LAZY
14325 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14326 #  else
14327 #    ifdef DL_LAZY
14328 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14329 #    else
14330 #      ifdef RTLD_NOW
14331 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14332 #      else
14333 #        ifdef DL_NOW
14334 #          define LT_DLLAZY_OR_NOW      DL_NOW
14335 #        else
14336 #          define LT_DLLAZY_OR_NOW      0
14337 #        endif
14338 #      endif
14339 #    endif
14340 #  endif
14341 #endif
14342
14343 #ifdef __cplusplus
14344 extern "C" void exit (int);
14345 #endif
14346
14347 void fnord() { int i=42;}
14348 int main ()
14349 {
14350   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14351   int status = $lt_dlunknown;
14352
14353   if (self)
14354     {
14355       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14356       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14357       /* dlclose (self); */
14358     }
14359
14360     exit (status);
14361 }
14362 EOF
14363   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14364   (eval $ac_link) 2>&5
14365   ac_status=$?
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14368     (./conftest; exit; ) 2>/dev/null
14369     lt_status=$?
14370     case x$lt_status in
14371       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14372       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14373       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14374     esac
14375   else :
14376     # compilation failed
14377     lt_cv_dlopen_self_static=no
14378   fi
14379 fi
14380 rm -fr conftest*
14381
14382
14383 fi
14384 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14385 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14386     fi
14387
14388     CPPFLAGS="$save_CPPFLAGS"
14389     LDFLAGS="$save_LDFLAGS"
14390     LIBS="$save_LIBS"
14391     ;;
14392   esac
14393
14394   case $lt_cv_dlopen_self in
14395   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14396   *) enable_dlopen_self=unknown ;;
14397   esac
14398
14399   case $lt_cv_dlopen_self_static in
14400   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14401   *) enable_dlopen_self_static=unknown ;;
14402   esac
14403 fi
14404
14405
14406 # Report which librarie types wil actually be built
14407 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14408 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14409 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14410 echo "${ECHO_T}$can_build_shared" >&6
14411
14412 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14413 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14414 test "$can_build_shared" = "no" && enable_shared=no
14415
14416 # On AIX, shared libraries and static libraries use the same namespace, and
14417 # are all built from PIC.
14418 case "$host_os" in
14419 aix3*)
14420   test "$enable_shared" = yes && enable_static=no
14421   if test -n "$RANLIB"; then
14422     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14423     postinstall_cmds='$RANLIB $lib'
14424   fi
14425   ;;
14426
14427 aix4* | aix5*)
14428   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14429     test "$enable_shared" = yes && enable_static=no
14430   fi
14431   ;;
14432   darwin* | rhapsody*)
14433   if test "$GCC" = yes; then
14434     archive_cmds_need_lc=no
14435     case "$host_os" in
14436     rhapsody* | darwin1.[012])
14437       allow_undefined_flag='-undefined suppress'
14438       ;;
14439     *) # Darwin 1.3 on
14440       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14441         allow_undefined_flag='-flat_namespace -undefined suppress'
14442       else
14443         case ${MACOSX_DEPLOYMENT_TARGET} in
14444           10.[012])
14445             allow_undefined_flag='-flat_namespace -undefined suppress'
14446             ;;
14447           10.*)
14448             allow_undefined_flag='-undefined dynamic_lookup'
14449             ;;
14450         esac
14451       fi
14452       ;;
14453     esac
14454     output_verbose_link_cmd='echo'
14455     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
14456     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14457     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14458     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}'
14459     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}'
14460     hardcode_direct=no
14461     hardcode_automatic=yes
14462     hardcode_shlibpath_var=unsupported
14463     whole_archive_flag_spec='-all_load $convenience'
14464     link_all_deplibs=yes
14465   else
14466     ld_shlibs=no
14467   fi
14468     ;;
14469 esac
14470 echo "$as_me:$LINENO: result: $enable_shared" >&5
14471 echo "${ECHO_T}$enable_shared" >&6
14472
14473 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14474 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14475 # Make sure either enable_shared or enable_static is yes.
14476 test "$enable_shared" = yes || enable_static=yes
14477 echo "$as_me:$LINENO: result: $enable_static" >&5
14478 echo "${ECHO_T}$enable_static" >&6
14479
14480 # The else clause should only fire when bootstrapping the
14481 # libtool distribution, otherwise you forgot to ship ltmain.sh
14482 # with your package, and you will get complaints that there are
14483 # no rules to generate ltmain.sh.
14484 if test -f "$ltmain"; then
14485   # See if we are running on zsh, and set the options which allow our commands through
14486   # without removal of \ escapes.
14487   if test -n "${ZSH_VERSION+set}" ; then
14488     setopt NO_GLOB_SUBST
14489   fi
14490   # Now quote all the things that may contain metacharacters while being
14491   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14492   # variables and quote the copies for generation of the libtool script.
14493   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14494     SED SHELL STRIP \
14495     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14496     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14497     deplibs_check_method reload_flag reload_cmds need_locks \
14498     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14499     lt_cv_sys_global_symbol_to_c_name_address \
14500     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14501     old_postinstall_cmds old_postuninstall_cmds \
14502     compiler \
14503     CC \
14504     LD \
14505     lt_prog_compiler_wl \
14506     lt_prog_compiler_pic \
14507     lt_prog_compiler_static \
14508     lt_prog_compiler_no_builtin_flag \
14509     export_dynamic_flag_spec \
14510     thread_safe_flag_spec \
14511     whole_archive_flag_spec \
14512     enable_shared_with_static_runtimes \
14513     old_archive_cmds \
14514     old_archive_from_new_cmds \
14515     predep_objects \
14516     postdep_objects \
14517     predeps \
14518     postdeps \
14519     compiler_lib_search_path \
14520     archive_cmds \
14521     archive_expsym_cmds \
14522     postinstall_cmds \
14523     postuninstall_cmds \
14524     old_archive_from_expsyms_cmds \
14525     allow_undefined_flag \
14526     no_undefined_flag \
14527     export_symbols_cmds \
14528     hardcode_libdir_flag_spec \
14529     hardcode_libdir_flag_spec_ld \
14530     hardcode_libdir_separator \
14531     hardcode_automatic \
14532     module_cmds \
14533     module_expsym_cmds \
14534     lt_cv_prog_compiler_c_o \
14535     exclude_expsyms \
14536     include_expsyms; do
14537
14538     case $var in
14539     old_archive_cmds | \
14540     old_archive_from_new_cmds | \
14541     archive_cmds | \
14542     archive_expsym_cmds | \
14543     module_cmds | \
14544     module_expsym_cmds | \
14545     old_archive_from_expsyms_cmds | \
14546     export_symbols_cmds | \
14547     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14548     postinstall_cmds | postuninstall_cmds | \
14549     old_postinstall_cmds | old_postuninstall_cmds | \
14550     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14551       # Double-quote double-evaled strings.
14552       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14553       ;;
14554     *)
14555       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14556       ;;
14557     esac
14558   done
14559
14560   case $lt_echo in
14561   *'\$0 --fallback-echo"')
14562     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14563     ;;
14564   esac
14565
14566 cfgfile="${ofile}T"
14567   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14568   $rm -f "$cfgfile"
14569   { echo "$as_me:$LINENO: creating $ofile" >&5
14570 echo "$as_me: creating $ofile" >&6;}
14571
14572   cat <<__EOF__ >> "$cfgfile"
14573 #! $SHELL
14574
14575 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14576 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14577 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14578 #
14579 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14580 # Free Software Foundation, Inc.
14581 #
14582 # This file is part of GNU Libtool:
14583 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14584 #
14585 # This program is free software; you can redistribute it and/or modify
14586 # it under the terms of the GNU General Public License as published by
14587 # the Free Software Foundation; either version 2 of the License, or
14588 # (at your option) any later version.
14589 #
14590 # This program is distributed in the hope that it will be useful, but
14591 # WITHOUT ANY WARRANTY; without even the implied warranty of
14592 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14593 # General Public License for more details.
14594 #
14595 # You should have received a copy of the GNU General Public License along
14596 # with this program; if not, write to the Free Software Foundation, Inc.,
14597 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14598 #
14599 # As a special exception to the GNU General Public License, if you
14600 # distribute this file as part of a program that contains a
14601 # configuration script generated by Autoconf, you may include it under
14602 # the same distribution terms that you use for the rest of that program.
14603
14604 # A sed program that does not truncate output.
14605 SED=$lt_SED
14606
14607 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14608 Xsed="$SED -e s/^X//"
14609
14610 # The HP-UX ksh and POSIX shell print the target directory to stdout
14611 # if CDPATH is set.
14612 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
14613
14614 # The names of the tagged configurations supported by this script.
14615 available_tags=
14616
14617 # ### BEGIN LIBTOOL CONFIG
14618
14619 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14620
14621 # Shell to use when invoking shell scripts.
14622 SHELL=$lt_SHELL
14623
14624 # Whether or not to build shared libraries.
14625 build_libtool_libs=$enable_shared
14626
14627 # Whether or not to build static libraries.
14628 build_old_libs=$enable_static
14629
14630 # Whether or not to add -lc for building shared libraries.
14631 build_libtool_need_lc=$archive_cmds_need_lc
14632
14633 # Whether or not to disallow shared libs when runtime libs are static
14634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14635
14636 # Whether or not to optimize for fast installation.
14637 fast_install=$enable_fast_install
14638
14639 # The host system.
14640 host_alias=$host_alias
14641 host=$host
14642
14643 # An echo program that does not interpret backslashes.
14644 echo=$lt_echo
14645
14646 # The archiver.
14647 AR=$lt_AR
14648 AR_FLAGS=$lt_AR_FLAGS
14649
14650 # A C compiler.
14651 LTCC=$lt_LTCC
14652
14653 # A language-specific compiler.
14654 CC=$lt_compiler
14655
14656 # Is the compiler the GNU C compiler?
14657 with_gcc=$GCC
14658
14659 # An ERE matcher.
14660 EGREP=$lt_EGREP
14661
14662 # The linker used to build libraries.
14663 LD=$lt_LD
14664
14665 # Whether we need hard or soft links.
14666 LN_S=$lt_LN_S
14667
14668 # A BSD-compatible nm program.
14669 NM=$lt_NM
14670
14671 # A symbol stripping program
14672 STRIP=$lt_STRIP
14673
14674 # Used to examine libraries when file_magic_cmd begins "file"
14675 MAGIC_CMD=$MAGIC_CMD
14676
14677 # Used on cygwin: DLL creation program.
14678 DLLTOOL="$DLLTOOL"
14679
14680 # Used on cygwin: object dumper.
14681 OBJDUMP="$OBJDUMP"
14682
14683 # Used on cygwin: assembler.
14684 AS="$AS"
14685
14686 # The name of the directory that contains temporary libtool files.
14687 objdir=$objdir
14688
14689 # How to create reloadable object files.
14690 reload_flag=$lt_reload_flag
14691 reload_cmds=$lt_reload_cmds
14692
14693 # How to pass a linker flag through the compiler.
14694 wl=$lt_lt_prog_compiler_wl
14695
14696 # Object file suffix (normally "o").
14697 objext="$ac_objext"
14698
14699 # Old archive suffix (normally "a").
14700 libext="$libext"
14701
14702 # Shared library suffix (normally ".so").
14703 shrext_cmds='$shrext_cmds'
14704
14705 # Executable file suffix (normally "").
14706 exeext="$exeext"
14707
14708 # Additional compiler flags for building library objects.
14709 pic_flag=$lt_lt_prog_compiler_pic
14710 pic_mode=$pic_mode
14711
14712 # What is the maximum length of a command?
14713 max_cmd_len=$lt_cv_sys_max_cmd_len
14714
14715 # Does compiler simultaneously support -c and -o options?
14716 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14717
14718 # Must we lock files when doing compilation ?
14719 need_locks=$lt_need_locks
14720
14721 # Do we need the lib prefix for modules?
14722 need_lib_prefix=$need_lib_prefix
14723
14724 # Do we need a version for libraries?
14725 need_version=$need_version
14726
14727 # Whether dlopen is supported.
14728 dlopen_support=$enable_dlopen
14729
14730 # Whether dlopen of programs is supported.
14731 dlopen_self=$enable_dlopen_self
14732
14733 # Whether dlopen of statically linked programs is supported.
14734 dlopen_self_static=$enable_dlopen_self_static
14735
14736 # Compiler flag to prevent dynamic linking.
14737 link_static_flag=$lt_lt_prog_compiler_static
14738
14739 # Compiler flag to turn off builtin functions.
14740 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14741
14742 # Compiler flag to allow reflexive dlopens.
14743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14744
14745 # Compiler flag to generate shared objects directly from archives.
14746 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14747
14748 # Compiler flag to generate thread-safe objects.
14749 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14750
14751 # Library versioning type.
14752 version_type=$version_type
14753
14754 # Format of library name prefix.
14755 libname_spec=$lt_libname_spec
14756
14757 # List of archive names.  First name is the real one, the rest are links.
14758 # The last name is the one that the linker finds with -lNAME.
14759 library_names_spec=$lt_library_names_spec
14760
14761 # The coded name of the library, if different from the real name.
14762 soname_spec=$lt_soname_spec
14763
14764 # Commands used to build and install an old-style archive.
14765 RANLIB=$lt_RANLIB
14766 old_archive_cmds=$lt_old_archive_cmds
14767 old_postinstall_cmds=$lt_old_postinstall_cmds
14768 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14769
14770 # Create an old-style archive from a shared archive.
14771 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14772
14773 # Create a temporary old-style archive to link instead of a shared archive.
14774 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14775
14776 # Commands used to build and install a shared archive.
14777 archive_cmds=$lt_archive_cmds
14778 archive_expsym_cmds=$lt_archive_expsym_cmds
14779 postinstall_cmds=$lt_postinstall_cmds
14780 postuninstall_cmds=$lt_postuninstall_cmds
14781
14782 # Commands used to build a loadable module (assumed same as above if empty)
14783 module_cmds=$lt_module_cmds
14784 module_expsym_cmds=$lt_module_expsym_cmds
14785
14786 # Commands to strip libraries.
14787 old_striplib=$lt_old_striplib
14788 striplib=$lt_striplib
14789
14790 # Dependencies to place before the objects being linked to create a
14791 # shared library.
14792 predep_objects=$lt_predep_objects
14793
14794 # Dependencies to place after the objects being linked to create a
14795 # shared library.
14796 postdep_objects=$lt_postdep_objects
14797
14798 # Dependencies to place before the objects being linked to create a
14799 # shared library.
14800 predeps=$lt_predeps
14801
14802 # Dependencies to place after the objects being linked to create a
14803 # shared library.
14804 postdeps=$lt_postdeps
14805
14806 # The library search path used internally by the compiler when linking
14807 # a shared library.
14808 compiler_lib_search_path=$lt_compiler_lib_search_path
14809
14810 # Method to check whether dependent libraries are shared objects.
14811 deplibs_check_method=$lt_deplibs_check_method
14812
14813 # Command to use when deplibs_check_method == file_magic.
14814 file_magic_cmd=$lt_file_magic_cmd
14815
14816 # Flag that allows shared libraries with undefined symbols to be built.
14817 allow_undefined_flag=$lt_allow_undefined_flag
14818
14819 # Flag that forces no undefined symbols.
14820 no_undefined_flag=$lt_no_undefined_flag
14821
14822 # Commands used to finish a libtool library installation in a directory.
14823 finish_cmds=$lt_finish_cmds
14824
14825 # Same as above, but a single script fragment to be evaled but not shown.
14826 finish_eval=$lt_finish_eval
14827
14828 # Take the output of nm and produce a listing of raw symbols and C names.
14829 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14830
14831 # Transform the output of nm in a proper C declaration
14832 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14833
14834 # Transform the output of nm in a C name address pair
14835 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14836
14837 # This is the shared library runtime path variable.
14838 runpath_var=$runpath_var
14839
14840 # This is the shared library path variable.
14841 shlibpath_var=$shlibpath_var
14842
14843 # Is shlibpath searched before the hard-coded library search path?
14844 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14845
14846 # How to hardcode a shared library path into an executable.
14847 hardcode_action=$hardcode_action
14848
14849 # Whether we should hardcode library paths into libraries.
14850 hardcode_into_libs=$hardcode_into_libs
14851
14852 # Flag to hardcode \$libdir into a binary during linking.
14853 # This must work even if \$libdir does not exist.
14854 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14855
14856 # If ld is used when linking, flag to hardcode \$libdir into
14857 # a binary during linking. This must work even if \$libdir does
14858 # not exist.
14859 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14860
14861 # Whether we need a single -rpath flag with a separated argument.
14862 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14863
14864 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14865 # resulting binary.
14866 hardcode_direct=$hardcode_direct
14867
14868 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14869 # resulting binary.
14870 hardcode_minus_L=$hardcode_minus_L
14871
14872 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14873 # the resulting binary.
14874 hardcode_shlibpath_var=$hardcode_shlibpath_var
14875
14876 # Set to yes if building a shared library automatically hardcodes DIR into the library
14877 # and all subsequent libraries and executables linked against it.
14878 hardcode_automatic=$hardcode_automatic
14879
14880 # Variables whose values should be saved in libtool wrapper scripts and
14881 # restored at relink time.
14882 variables_saved_for_relink="$variables_saved_for_relink"
14883
14884 # Whether libtool must link a program against all its dependency libraries.
14885 link_all_deplibs=$link_all_deplibs
14886
14887 # Compile-time system search path for libraries
14888 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14889
14890 # Run-time system search path for libraries
14891 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14892
14893 # Fix the shell variable \$srcfile for the compiler.
14894 fix_srcfile_path="$fix_srcfile_path"
14895
14896 # Set to yes if exported symbols are required.
14897 always_export_symbols=$always_export_symbols
14898
14899 # The commands to list exported symbols.
14900 export_symbols_cmds=$lt_export_symbols_cmds
14901
14902 # The commands to extract the exported symbol list from a shared archive.
14903 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14904
14905 # Symbols that should not be listed in the preloaded symbols.
14906 exclude_expsyms=$lt_exclude_expsyms
14907
14908 # Symbols that must always be exported.
14909 include_expsyms=$lt_include_expsyms
14910
14911 # ### END LIBTOOL CONFIG
14912
14913 __EOF__
14914
14915
14916   case $host_os in
14917   aix3*)
14918     cat <<\EOF >> "$cfgfile"
14919
14920 # AIX sometimes has problems with the GCC collect2 program.  For some
14921 # reason, if we set the COLLECT_NAMES environment variable, the problems
14922 # vanish in a puff of smoke.
14923 if test "X${COLLECT_NAMES+set}" != Xset; then
14924   COLLECT_NAMES=
14925   export COLLECT_NAMES
14926 fi
14927 EOF
14928     ;;
14929   esac
14930
14931   # We use sed instead of cat because bash on DJGPP gets confused if
14932   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14933   # text mode, it properly converts lines to CR/LF.  This bash problem
14934   # is reportedly fixed, but why not run on old versions too?
14935   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14936
14937   mv -f "$cfgfile" "$ofile" || \
14938     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14939   chmod +x "$ofile"
14940
14941 else
14942   # If there is no Makefile yet, we rely on a make rule to execute
14943   # `config.status --recheck' to rerun these tests and create the
14944   # libtool script then.
14945   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14946   if test -f "$ltmain_in"; then
14947     test -f Makefile && make "$ltmain"
14948   fi
14949 fi
14950
14951
14952 ac_ext=c
14953 ac_cpp='$CPP $CPPFLAGS'
14954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14957
14958 CC="$lt_save_CC"
14959
14960
14961 # Check whether --with-tags or --without-tags was given.
14962 if test "${with_tags+set}" = set; then
14963   withval="$with_tags"
14964   tagnames="$withval"
14965 fi;
14966
14967 if test -f "$ltmain" && test -n "$tagnames"; then
14968   if test ! -f "${ofile}"; then
14969     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14970 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14971   fi
14972
14973   if test -z "$LTCC"; then
14974     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14975     if test -z "$LTCC"; then
14976       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14977 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14978     else
14979       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14980 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14981     fi
14982   fi
14983
14984   # Extract list of available tagged configurations in $ofile.
14985   # Note that this assumes the entire list is on one line.
14986   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14987
14988   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14989   for tagname in $tagnames; do
14990     IFS="$lt_save_ifs"
14991     # Check whether tagname contains only valid characters
14992     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14993     "") ;;
14994     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14995 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14996    { (exit 1); exit 1; }; }
14997         ;;
14998     esac
14999
15000     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15001     then
15002       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15003 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15004    { (exit 1); exit 1; }; }
15005     fi
15006
15007     # Update the list of available tags.
15008     if test -n "$tagname"; then
15009       echo appending configuration tag \"$tagname\" to $ofile
15010
15011       case $tagname in
15012       CXX)
15013         if test -n "$CXX" && test "X$CXX" != "Xno"; then
15014           ac_ext=cc
15015 ac_cpp='$CXXCPP $CPPFLAGS'
15016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15019
15020
15021
15022
15023 archive_cmds_need_lc_CXX=no
15024 allow_undefined_flag_CXX=
15025 always_export_symbols_CXX=no
15026 archive_expsym_cmds_CXX=
15027 export_dynamic_flag_spec_CXX=
15028 hardcode_direct_CXX=no
15029 hardcode_libdir_flag_spec_CXX=
15030 hardcode_libdir_flag_spec_ld_CXX=
15031 hardcode_libdir_separator_CXX=
15032 hardcode_minus_L_CXX=no
15033 hardcode_automatic_CXX=no
15034 module_cmds_CXX=
15035 module_expsym_cmds_CXX=
15036 link_all_deplibs_CXX=unknown
15037 old_archive_cmds_CXX=$old_archive_cmds
15038 no_undefined_flag_CXX=
15039 whole_archive_flag_spec_CXX=
15040 enable_shared_with_static_runtimes_CXX=no
15041
15042 # Dependencies to place before and after the object being linked:
15043 predep_objects_CXX=
15044 postdep_objects_CXX=
15045 predeps_CXX=
15046 postdeps_CXX=
15047 compiler_lib_search_path_CXX=
15048
15049 # Source file extension for C++ test sources.
15050 ac_ext=cc
15051
15052 # Object file extension for compiled C++ test sources.
15053 objext=o
15054 objext_CXX=$objext
15055
15056 # Code to be used in simple compile tests
15057 lt_simple_compile_test_code="int some_variable = 0;\n"
15058
15059 # Code to be used in simple link tests
15060 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15061
15062 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15063
15064 # If no C compiler was specified, use CC.
15065 LTCC=${LTCC-"$CC"}
15066
15067 # Allow CC to be a program name with arguments.
15068 compiler=$CC
15069
15070
15071 # Allow CC to be a program name with arguments.
15072 lt_save_CC=$CC
15073 lt_save_LD=$LD
15074 lt_save_GCC=$GCC
15075 GCC=$GXX
15076 lt_save_with_gnu_ld=$with_gnu_ld
15077 lt_save_path_LD=$lt_cv_path_LD
15078 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15079   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15080 else
15081   unset lt_cv_prog_gnu_ld
15082 fi
15083 if test -n "${lt_cv_path_LDCXX+set}"; then
15084   lt_cv_path_LD=$lt_cv_path_LDCXX
15085 else
15086   unset lt_cv_path_LD
15087 fi
15088 test -z "${LDCXX+set}" || LD=$LDCXX
15089 CC=${CXX-"c++"}
15090 compiler=$CC
15091 compiler_CXX=$CC
15092 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15093
15094 # We don't want -fno-exception wen compiling C++ code, so set the
15095 # no_builtin_flag separately
15096 if test "$GXX" = yes; then
15097   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15098 else
15099   lt_prog_compiler_no_builtin_flag_CXX=
15100 fi
15101
15102 if test "$GXX" = yes; then
15103   # Set up default GNU C++ configuration
15104
15105
15106 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15107 if test "${with_gnu_ld+set}" = set; then
15108   withval="$with_gnu_ld"
15109   test "$withval" = no || with_gnu_ld=yes
15110 else
15111   with_gnu_ld=no
15112 fi;
15113 ac_prog=ld
15114 if test "$GCC" = yes; then
15115   # Check if gcc -print-prog-name=ld gives a path.
15116   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15117 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15118   case $host in
15119   *-*-mingw*)
15120     # gcc leaves a trailing carriage return which upsets mingw
15121     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15122   *)
15123     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15124   esac
15125   case $ac_prog in
15126     # Accept absolute paths.
15127     [\\/]* | ?:[\\/]*)
15128       re_direlt='/[^/][^/]*/\.\./'
15129       # Canonicalize the pathname of ld
15130       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15131       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15132         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15133       done
15134       test -z "$LD" && LD="$ac_prog"
15135       ;;
15136   "")
15137     # If it fails, then pretend we aren't using GCC.
15138     ac_prog=ld
15139     ;;
15140   *)
15141     # If it is relative, then search for the first ld in PATH.
15142     with_gnu_ld=unknown
15143     ;;
15144   esac
15145 elif test "$with_gnu_ld" = yes; then
15146   echo "$as_me:$LINENO: checking for GNU ld" >&5
15147 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15148 else
15149   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15150 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15151 fi
15152 if test "${lt_cv_path_LD+set}" = set; then
15153   echo $ECHO_N "(cached) $ECHO_C" >&6
15154 else
15155   if test -z "$LD"; then
15156   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15157   for ac_dir in $PATH; do
15158     IFS="$lt_save_ifs"
15159     test -z "$ac_dir" && ac_dir=.
15160     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15161       lt_cv_path_LD="$ac_dir/$ac_prog"
15162       # Check to see if the program is GNU ld.  I'd rather use --version,
15163       # but apparently some GNU ld's only accept -v.
15164       # Break only if it was the GNU/non-GNU ld that we prefer.
15165       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15166       *GNU* | *'with BFD'*)
15167         test "$with_gnu_ld" != no && break
15168         ;;
15169       *)
15170         test "$with_gnu_ld" != yes && break
15171         ;;
15172       esac
15173     fi
15174   done
15175   IFS="$lt_save_ifs"
15176 else
15177   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15178 fi
15179 fi
15180
15181 LD="$lt_cv_path_LD"
15182 if test -n "$LD"; then
15183   echo "$as_me:$LINENO: result: $LD" >&5
15184 echo "${ECHO_T}$LD" >&6
15185 else
15186   echo "$as_me:$LINENO: result: no" >&5
15187 echo "${ECHO_T}no" >&6
15188 fi
15189 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15190 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15191    { (exit 1); exit 1; }; }
15192 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15193 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15194 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15195   echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15198 case `$LD -v 2>&1 </dev/null` in
15199 *GNU* | *'with BFD'*)
15200   lt_cv_prog_gnu_ld=yes
15201   ;;
15202 *)
15203   lt_cv_prog_gnu_ld=no
15204   ;;
15205 esac
15206 fi
15207 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15208 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15209 with_gnu_ld=$lt_cv_prog_gnu_ld
15210
15211
15212
15213   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15214   # archiving commands below assume that GNU ld is being used.
15215   if test "$with_gnu_ld" = yes; then
15216     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15217     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'
15218
15219     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15220     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15221
15222     # If archive_cmds runs LD, not CC, wlarc should be empty
15223     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15224     #     investigate it a little bit more. (MM)
15225     wlarc='${wl}'
15226
15227     # ancient GNU ld didn't support --whole-archive et. al.
15228     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15229         grep 'no-whole-archive' > /dev/null; then
15230       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15231     else
15232       whole_archive_flag_spec_CXX=
15233     fi
15234   else
15235     with_gnu_ld=no
15236     wlarc=
15237
15238     # A generic and very simple default shared library creation
15239     # command for GNU C++ for the case where it uses the native
15240     # linker, instead of GNU ld.  If possible, this setting should
15241     # overridden to take advantage of the native linker features on
15242     # the platform it is being used on.
15243     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15244   fi
15245
15246   # Commands to make compiler produce verbose output that lists
15247   # what "hidden" libraries, object files and flags are used when
15248   # linking a shared library.
15249   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15250
15251 else
15252   GXX=no
15253   with_gnu_ld=no
15254   wlarc=
15255 fi
15256
15257 # PORTME: fill in a description of your system's C++ link characteristics
15258 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15259 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15260 ld_shlibs_CXX=yes
15261 case $host_os in
15262   aix3*)
15263     # FIXME: insert proper C++ library support
15264     ld_shlibs_CXX=no
15265     ;;
15266   aix4* | aix5*)
15267     if test "$host_cpu" = ia64; then
15268       # On IA64, the linker does run time linking by default, so we don't
15269       # have to do anything special.
15270       aix_use_runtimelinking=no
15271       exp_sym_flag='-Bexport'
15272       no_entry_flag=""
15273     else
15274       aix_use_runtimelinking=no
15275
15276       # Test if we are trying to use run time linking or normal
15277       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15278       # need to do runtime linking.
15279       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15280         for ld_flag in $LDFLAGS; do
15281           case $ld_flag in
15282           *-brtl*)
15283             aix_use_runtimelinking=yes
15284             break
15285             ;;
15286           esac
15287         done
15288       esac
15289
15290       exp_sym_flag='-bexport'
15291       no_entry_flag='-bnoentry'
15292     fi
15293
15294     # When large executables or shared objects are built, AIX ld can
15295     # have problems creating the table of contents.  If linking a library
15296     # or program results in "error TOC overflow" add -mminimal-toc to
15297     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15298     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15299
15300     archive_cmds_CXX=''
15301     hardcode_direct_CXX=yes
15302     hardcode_libdir_separator_CXX=':'
15303     link_all_deplibs_CXX=yes
15304
15305     if test "$GXX" = yes; then
15306       case $host_os in aix4.012|aix4.012.*)
15307       # We only want to do this on AIX 4.2 and lower, the check
15308       # below for broken collect2 doesn't work under 4.3+
15309         collect2name=`${CC} -print-prog-name=collect2`
15310         if test -f "$collect2name" && \
15311            strings "$collect2name" | grep resolve_lib_name >/dev/null
15312         then
15313           # We have reworked collect2
15314           hardcode_direct_CXX=yes
15315         else
15316           # We have old collect2
15317           hardcode_direct_CXX=unsupported
15318           # It fails to find uninstalled libraries when the uninstalled
15319           # path is not listed in the libpath.  Setting hardcode_minus_L
15320           # to unsupported forces relinking
15321           hardcode_minus_L_CXX=yes
15322           hardcode_libdir_flag_spec_CXX='-L$libdir'
15323           hardcode_libdir_separator_CXX=
15324         fi
15325       esac
15326       shared_flag='-shared'
15327     else
15328       # not using gcc
15329       if test "$host_cpu" = ia64; then
15330         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15331         # chokes on -Wl,-G. The following line is correct:
15332         shared_flag='-G'
15333       else
15334         if test "$aix_use_runtimelinking" = yes; then
15335           shared_flag='${wl}-G'
15336         else
15337           shared_flag='${wl}-bM:SRE'
15338         fi
15339       fi
15340     fi
15341
15342     # It seems that -bexpall does not export symbols beginning with
15343     # underscore (_), so it is better to generate a list of symbols to export.
15344     always_export_symbols_CXX=yes
15345     if test "$aix_use_runtimelinking" = yes; then
15346       # Warning - without using the other runtime loading flags (-brtl),
15347       # -berok will link without error, but may produce a broken library.
15348       allow_undefined_flag_CXX='-berok'
15349       # Determine the default libpath from the value encoded in an empty executable.
15350       cat >conftest.$ac_ext <<_ACEOF
15351 /* confdefs.h.  */
15352 _ACEOF
15353 cat confdefs.h >>conftest.$ac_ext
15354 cat >>conftest.$ac_ext <<_ACEOF
15355 /* end confdefs.h.  */
15356
15357 int
15358 main ()
15359 {
15360
15361   ;
15362   return 0;
15363 }
15364 _ACEOF
15365 rm -f conftest.$ac_objext conftest$ac_exeext
15366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15367   (eval $ac_link) 2>conftest.er1
15368   ac_status=$?
15369   grep -v '^ *+' conftest.er1 >conftest.err
15370   rm -f conftest.er1
15371   cat conftest.err >&5
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); } &&
15374          { ac_try='test -z "$ac_cxx_werror_flag"
15375                          || test ! -s conftest.err'
15376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377   (eval $ac_try) 2>&5
15378   ac_status=$?
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); }; } &&
15381          { ac_try='test -s conftest$ac_exeext'
15382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383   (eval $ac_try) 2>&5
15384   ac_status=$?
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); }; }; then
15387
15388 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15389 }'`
15390 # Check for a 64-bit object if we didn't find anything.
15391 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; }
15392 }'`; fi
15393 else
15394   echo "$as_me: failed program was:" >&5
15395 sed 's/^/| /' conftest.$ac_ext >&5
15396
15397 fi
15398 rm -f conftest.err conftest.$ac_objext \
15399       conftest$ac_exeext conftest.$ac_ext
15400 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15401
15402       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15403
15404       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15405      else
15406       if test "$host_cpu" = ia64; then
15407         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15408         allow_undefined_flag_CXX="-z nodefs"
15409         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15410       else
15411         # Determine the default libpath from the value encoded in an empty executable.
15412         cat >conftest.$ac_ext <<_ACEOF
15413 /* confdefs.h.  */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h.  */
15418
15419 int
15420 main ()
15421 {
15422
15423   ;
15424   return 0;
15425 }
15426 _ACEOF
15427 rm -f conftest.$ac_objext conftest$ac_exeext
15428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15429   (eval $ac_link) 2>conftest.er1
15430   ac_status=$?
15431   grep -v '^ *+' conftest.er1 >conftest.err
15432   rm -f conftest.er1
15433   cat conftest.err >&5
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); } &&
15436          { ac_try='test -z "$ac_cxx_werror_flag"
15437                          || test ! -s conftest.err'
15438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439   (eval $ac_try) 2>&5
15440   ac_status=$?
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); }; } &&
15443          { ac_try='test -s conftest$ac_exeext'
15444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445   (eval $ac_try) 2>&5
15446   ac_status=$?
15447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448   (exit $ac_status); }; }; then
15449
15450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15451 }'`
15452 # Check for a 64-bit object if we didn't find anything.
15453 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; }
15454 }'`; fi
15455 else
15456   echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15458
15459 fi
15460 rm -f conftest.err conftest.$ac_objext \
15461       conftest$ac_exeext conftest.$ac_ext
15462 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15463
15464         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15465         # Warning - without using the other run time loading flags,
15466         # -berok will link without error, but may produce a broken library.
15467         no_undefined_flag_CXX=' ${wl}-bernotok'
15468         allow_undefined_flag_CXX=' ${wl}-berok'
15469         # -bexpall does not export symbols beginning with underscore (_)
15470         always_export_symbols_CXX=yes
15471         # Exported symbols can be pulled into shared objects from archives
15472         whole_archive_flag_spec_CXX=' '
15473         archive_cmds_need_lc_CXX=yes
15474         # This is similar to how AIX traditionally builds it's shared libraries.
15475         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15476       fi
15477     fi
15478     ;;
15479   chorus*)
15480     case $cc_basename in
15481       *)
15482         # FIXME: insert proper C++ library support
15483         ld_shlibs_CXX=no
15484         ;;
15485     esac
15486     ;;
15487
15488   cygwin* | mingw* | pw32*)
15489     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15490     # as there is no search path for DLLs.
15491     hardcode_libdir_flag_spec_CXX='-L$libdir'
15492     allow_undefined_flag_CXX=unsupported
15493     always_export_symbols_CXX=no
15494     enable_shared_with_static_runtimes_CXX=yes
15495
15496     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15497       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15498       # If the export-symbols file already is a .def file (1st line
15499       # is EXPORTS), use it as is; otherwise, prepend...
15500       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15501         cp $export_symbols $output_objdir/$soname.def;
15502       else
15503         echo EXPORTS > $output_objdir/$soname.def;
15504         cat $export_symbols >> $output_objdir/$soname.def;
15505       fi~
15506       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15507     else
15508       ld_shlibs_CXX=no
15509     fi
15510   ;;
15511
15512   darwin* | rhapsody*)
15513   if test "$GXX" = yes; then
15514     archive_cmds_need_lc_CXX=no
15515     case "$host_os" in
15516     rhapsody* | darwin1.[012])
15517       allow_undefined_flag_CXX='-undefined suppress'
15518       ;;
15519     *) # Darwin 1.3 on
15520       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15521         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
15522       else
15523         case ${MACOSX_DEPLOYMENT_TARGET} in
15524           10.[012])
15525             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
15526             ;;
15527           10.*)
15528             allow_undefined_flag_CXX='-undefined dynamic_lookup'
15529             ;;
15530         esac
15531       fi
15532       ;;
15533     esac
15534     lt_int_apple_cc_single_mod=no
15535     output_verbose_link_cmd='echo'
15536     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15537       lt_int_apple_cc_single_mod=yes
15538     fi
15539     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15540       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15541     else
15542       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
15543     fi
15544     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15545
15546     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15547     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15548       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}'
15549     else
15550       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15551     fi
15552     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}'
15553     hardcode_direct_CXX=no
15554     hardcode_automatic_CXX=yes
15555     hardcode_shlibpath_var_CXX=unsupported
15556     whole_archive_flag_spec_CXX='-all_load $convenience'
15557     link_all_deplibs_CXX=yes
15558   else
15559     ld_shlibs_CXX=no
15560   fi
15561     ;;
15562
15563   dgux*)
15564     case $cc_basename in
15565       ec++)
15566         # FIXME: insert proper C++ library support
15567         ld_shlibs_CXX=no
15568         ;;
15569       ghcx)
15570         # Green Hills C++ Compiler
15571         # FIXME: insert proper C++ library support
15572         ld_shlibs_CXX=no
15573         ;;
15574       *)
15575         # FIXME: insert proper C++ library support
15576         ld_shlibs_CXX=no
15577         ;;
15578     esac
15579     ;;
15580   freebsd12*)
15581     # C++ shared libraries reported to be fairly broken before switch to ELF
15582     ld_shlibs_CXX=no
15583     ;;
15584   freebsd-elf*)
15585     archive_cmds_need_lc_CXX=no
15586     ;;
15587   freebsd* | kfreebsd*-gnu)
15588     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15589     # conventions
15590     ld_shlibs_CXX=yes
15591     ;;
15592   gnu*)
15593     ;;
15594   hpux9*)
15595     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15596     hardcode_libdir_separator_CXX=:
15597     export_dynamic_flag_spec_CXX='${wl}-E'
15598     hardcode_direct_CXX=yes
15599     hardcode_minus_L_CXX=yes # Not in the search PATH,
15600                                 # but as the default
15601                                 # location of the library.
15602
15603     case $cc_basename in
15604     CC)
15605       # FIXME: insert proper C++ library support
15606       ld_shlibs_CXX=no
15607       ;;
15608     aCC)
15609       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'
15610       # Commands to make compiler produce verbose output that lists
15611       # what "hidden" libraries, object files and flags are used when
15612       # linking a shared library.
15613       #
15614       # There doesn't appear to be a way to prevent this compiler from
15615       # explicitly linking system object files so we need to strip them
15616       # from the output so that they don't get included in the library
15617       # dependencies.
15618       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'
15619       ;;
15620     *)
15621       if test "$GXX" = yes; then
15622         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'
15623       else
15624         # FIXME: insert proper C++ library support
15625         ld_shlibs_CXX=no
15626       fi
15627       ;;
15628     esac
15629     ;;
15630   hpux10*|hpux11*)
15631     if test $with_gnu_ld = no; then
15632       case "$host_cpu" in
15633       hppa*64*)
15634         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15635         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15636         hardcode_libdir_separator_CXX=:
15637         ;;
15638       ia64*)
15639         hardcode_libdir_flag_spec_CXX='-L$libdir'
15640         ;;
15641       *)
15642         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15643         hardcode_libdir_separator_CXX=:
15644         export_dynamic_flag_spec_CXX='${wl}-E'
15645         ;;
15646       esac
15647     fi
15648     case "$host_cpu" in
15649     hppa*64*)
15650       hardcode_direct_CXX=no
15651       hardcode_shlibpath_var_CXX=no
15652       ;;
15653     ia64*)
15654       hardcode_direct_CXX=no
15655       hardcode_shlibpath_var_CXX=no
15656       hardcode_minus_L_CXX=yes # Not in the search PATH,
15657                                               # but as the default
15658                                               # location of the library.
15659       ;;
15660     *)
15661       hardcode_direct_CXX=yes
15662       hardcode_minus_L_CXX=yes # Not in the search PATH,
15663                                               # but as the default
15664                                               # location of the library.
15665       ;;
15666     esac
15667
15668     case $cc_basename in
15669       CC)
15670         # FIXME: insert proper C++ library support
15671         ld_shlibs_CXX=no
15672         ;;
15673       aCC)
15674         case "$host_cpu" in
15675         hppa*64*|ia64*)
15676           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15677           ;;
15678         *)
15679           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15680           ;;
15681         esac
15682         # Commands to make compiler produce verbose output that lists
15683         # what "hidden" libraries, object files and flags are used when
15684         # linking a shared library.
15685         #
15686         # There doesn't appear to be a way to prevent this compiler from
15687         # explicitly linking system object files so we need to strip them
15688         # from the output so that they don't get included in the library
15689         # dependencies.
15690         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'
15691         ;;
15692       *)
15693         if test "$GXX" = yes; then
15694           if test $with_gnu_ld = no; then
15695             case "$host_cpu" in
15696             ia64*|hppa*64*)
15697               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15698               ;;
15699             *)
15700               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'
15701               ;;
15702             esac
15703           fi
15704         else
15705           # FIXME: insert proper C++ library support
15706           ld_shlibs_CXX=no
15707         fi
15708         ;;
15709     esac
15710     ;;
15711   irix5* | irix6*)
15712     case $cc_basename in
15713       CC)
15714         # SGI C++
15715         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 ${objdir}/so_locations -o $lib'
15716
15717         # Archives containing C++ object files must be created using
15718         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15719         # necessary to make sure instantiated templates are included
15720         # in the archive.
15721         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15722         ;;
15723       *)
15724         if test "$GXX" = yes; then
15725           if test "$with_gnu_ld" = no; then
15726             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}${objdir}/so_locations -o $lib'
15727           else
15728             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'
15729           fi
15730         fi
15731         link_all_deplibs_CXX=yes
15732         ;;
15733     esac
15734     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15735     hardcode_libdir_separator_CXX=:
15736     ;;
15737   linux*)
15738     case $cc_basename in
15739       KCC)
15740         # Kuck and Associates, Inc. (KAI) C++ Compiler
15741
15742         # KCC will only create a shared library if the output file
15743         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15744         # to its proper name (with version) after linking.
15745         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'
15746         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'
15747         # Commands to make compiler produce verbose output that lists
15748         # what "hidden" libraries, object files and flags are used when
15749         # linking a shared library.
15750         #
15751         # There doesn't appear to be a way to prevent this compiler from
15752         # explicitly linking system object files so we need to strip them
15753         # from the output so that they don't get included in the library
15754         # dependencies.
15755         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'
15756
15757         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15758         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15759
15760         # Archives containing C++ object files must be created using
15761         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15762         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15763         ;;
15764       icpc)
15765         # Intel C++
15766         with_gnu_ld=yes
15767         archive_cmds_need_lc_CXX=no
15768         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15769         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'
15770         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15771         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15772         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15773         ;;
15774       cxx)
15775         # Compaq C++
15776         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15777         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'
15778
15779         runpath_var=LD_RUN_PATH
15780         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15781         hardcode_libdir_separator_CXX=:
15782
15783         # Commands to make compiler produce verbose output that lists
15784         # what "hidden" libraries, object files and flags are used when
15785         # linking a shared library.
15786         #
15787         # There doesn't appear to be a way to prevent this compiler from
15788         # explicitly linking system object files so we need to strip them
15789         # from the output so that they don't get included in the library
15790         # dependencies.
15791         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'
15792         ;;
15793     esac
15794     ;;
15795   lynxos*)
15796     # FIXME: insert proper C++ library support
15797     ld_shlibs_CXX=no
15798     ;;
15799   m88k*)
15800     # FIXME: insert proper C++ library support
15801     ld_shlibs_CXX=no
15802     ;;
15803   mvs*)
15804     case $cc_basename in
15805       cxx)
15806         # FIXME: insert proper C++ library support
15807         ld_shlibs_CXX=no
15808         ;;
15809       *)
15810         # FIXME: insert proper C++ library support
15811         ld_shlibs_CXX=no
15812         ;;
15813     esac
15814     ;;
15815   netbsd*)
15816     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15817       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15818       wlarc=
15819       hardcode_libdir_flag_spec_CXX='-R$libdir'
15820       hardcode_direct_CXX=yes
15821       hardcode_shlibpath_var_CXX=no
15822     fi
15823     # Workaround some broken pre-1.5 toolchains
15824     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15825     ;;
15826   osf3*)
15827     case $cc_basename in
15828       KCC)
15829         # Kuck and Associates, Inc. (KAI) C++ Compiler
15830
15831         # KCC will only create a shared library if the output file
15832         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15833         # to its proper name (with version) after linking.
15834         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'
15835
15836         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15837         hardcode_libdir_separator_CXX=:
15838
15839         # Archives containing C++ object files must be created using
15840         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15841         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15842
15843         ;;
15844       RCC)
15845         # Rational C++ 2.4.1
15846         # FIXME: insert proper C++ library support
15847         ld_shlibs_CXX=no
15848         ;;
15849       cxx)
15850         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15851         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 ${objdir}/so_locations -o $lib'
15852
15853         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15854         hardcode_libdir_separator_CXX=:
15855
15856         # Commands to make compiler produce verbose output that lists
15857         # what "hidden" libraries, object files and flags are used when
15858         # linking a shared library.
15859         #
15860         # There doesn't appear to be a way to prevent this compiler from
15861         # explicitly linking system object files so we need to strip them
15862         # from the output so that they don't get included in the library
15863         # dependencies.
15864         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'
15865         ;;
15866       *)
15867         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15868           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15869           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}${objdir}/so_locations -o $lib'
15870
15871           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15872           hardcode_libdir_separator_CXX=:
15873
15874           # Commands to make compiler produce verbose output that lists
15875           # what "hidden" libraries, object files and flags are used when
15876           # linking a shared library.
15877           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15878
15879         else
15880           # FIXME: insert proper C++ library support
15881           ld_shlibs_CXX=no
15882         fi
15883         ;;
15884     esac
15885     ;;
15886   osf4* | osf5*)
15887     case $cc_basename in
15888       KCC)
15889         # Kuck and Associates, Inc. (KAI) C++ Compiler
15890
15891         # KCC will only create a shared library if the output file
15892         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15893         # to its proper name (with version) after linking.
15894         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'
15895
15896         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15897         hardcode_libdir_separator_CXX=:
15898
15899         # Archives containing C++ object files must be created using
15900         # the KAI C++ compiler.
15901         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15902         ;;
15903       RCC)
15904         # Rational C++ 2.4.1
15905         # FIXME: insert proper C++ library support
15906         ld_shlibs_CXX=no
15907         ;;
15908       cxx)
15909         allow_undefined_flag_CXX=' -expect_unresolved \*'
15910         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 ${objdir}/so_locations -o $lib'
15911         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15912           echo "-hidden">> $lib.exp~
15913           $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 $objdir/so_locations -o $lib~
15914           $rm $lib.exp'
15915
15916         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15917         hardcode_libdir_separator_CXX=:
15918
15919         # Commands to make compiler produce verbose output that lists
15920         # what "hidden" libraries, object files and flags are used when
15921         # linking a shared library.
15922         #
15923         # There doesn't appear to be a way to prevent this compiler from
15924         # explicitly linking system object files so we need to strip them
15925         # from the output so that they don't get included in the library
15926         # dependencies.
15927         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'
15928         ;;
15929       *)
15930         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15931           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15932          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}${objdir}/so_locations -o $lib'
15933
15934           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15935           hardcode_libdir_separator_CXX=:
15936
15937           # Commands to make compiler produce verbose output that lists
15938           # what "hidden" libraries, object files and flags are used when
15939           # linking a shared library.
15940           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15941
15942         else
15943           # FIXME: insert proper C++ library support
15944           ld_shlibs_CXX=no
15945         fi
15946         ;;
15947     esac
15948     ;;
15949   psos*)
15950     # FIXME: insert proper C++ library support
15951     ld_shlibs_CXX=no
15952     ;;
15953   sco*)
15954     archive_cmds_need_lc_CXX=no
15955     case $cc_basename in
15956       CC)
15957         # FIXME: insert proper C++ library support
15958         ld_shlibs_CXX=no
15959         ;;
15960       *)
15961         # FIXME: insert proper C++ library support
15962         ld_shlibs_CXX=no
15963         ;;
15964     esac
15965     ;;
15966   sunos4*)
15967     case $cc_basename in
15968       CC)
15969         # Sun C++ 4.x
15970         # FIXME: insert proper C++ library support
15971         ld_shlibs_CXX=no
15972         ;;
15973       lcc)
15974         # Lucid
15975         # FIXME: insert proper C++ library support
15976         ld_shlibs_CXX=no
15977         ;;
15978       *)
15979         # FIXME: insert proper C++ library support
15980         ld_shlibs_CXX=no
15981         ;;
15982     esac
15983     ;;
15984   solaris*)
15985     case $cc_basename in
15986       CC)
15987         # Sun C++ 4.2, 5.x and Centerline C++
15988         no_undefined_flag_CXX=' -zdefs'
15989         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15990         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15991         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15992
15993         hardcode_libdir_flag_spec_CXX='-R$libdir'
15994         hardcode_shlibpath_var_CXX=no
15995         case $host_os in
15996           solaris2.0-5 | solaris2.0-5.*) ;;
15997           *)
15998             # The C++ compiler is used as linker so we must use $wl
15999             # flag to pass the commands to the underlying system
16000             # linker.
16001             # Supported since Solaris 2.6 (maybe 2.5.1?)
16002             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16003             ;;
16004         esac
16005         link_all_deplibs_CXX=yes
16006
16007         # Commands to make compiler produce verbose output that lists
16008         # what "hidden" libraries, object files and flags are used when
16009         # linking a shared library.
16010         #
16011         # There doesn't appear to be a way to prevent this compiler from
16012         # explicitly linking system object files so we need to strip them
16013         # from the output so that they don't get included in the library
16014         # dependencies.
16015         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
16016
16017         # Archives containing C++ object files must be created using
16018         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16019         # necessary to make sure instantiated templates are included
16020         # in the archive.
16021         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16022         ;;
16023       gcx)
16024         # Green Hills C++ Compiler
16025         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16026
16027         # The C++ compiler must be used to create the archive.
16028         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16029         ;;
16030       *)
16031         # GNU C++ compiler with Solaris linker
16032         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16033           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16034           if $CC --version | grep -v '^2\.7' > /dev/null; then
16035             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16036             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16037                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16038
16039             # Commands to make compiler produce verbose output that lists
16040             # what "hidden" libraries, object files and flags are used when
16041             # linking a shared library.
16042             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16043           else
16044             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16045             # platform.
16046             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16047             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16048                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16049
16050             # Commands to make compiler produce verbose output that lists
16051             # what "hidden" libraries, object files and flags are used when
16052             # linking a shared library.
16053             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16054           fi
16055
16056           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16057         fi
16058         ;;
16059     esac
16060     ;;
16061   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16062     archive_cmds_need_lc_CXX=no
16063     ;;
16064   tandem*)
16065     case $cc_basename in
16066       NCC)
16067         # NonStop-UX NCC 3.20
16068         # FIXME: insert proper C++ library support
16069         ld_shlibs_CXX=no
16070         ;;
16071       *)
16072         # FIXME: insert proper C++ library support
16073         ld_shlibs_CXX=no
16074         ;;
16075     esac
16076     ;;
16077   vxworks*)
16078     # FIXME: insert proper C++ library support
16079     ld_shlibs_CXX=no
16080     ;;
16081   *)
16082     # FIXME: insert proper C++ library support
16083     ld_shlibs_CXX=no
16084     ;;
16085 esac
16086 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16087 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16088 test "$ld_shlibs_CXX" = no && can_build_shared=no
16089
16090 GCC_CXX="$GXX"
16091 LD_CXX="$LD"
16092
16093
16094 cat > conftest.$ac_ext <<EOF
16095 class Foo
16096 {
16097 public:
16098   Foo (void) { a = 0; }
16099 private:
16100   int a;
16101 };
16102 EOF
16103
16104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16105   (eval $ac_compile) 2>&5
16106   ac_status=$?
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); }; then
16109   # Parse the compiler output and extract the necessary
16110   # objects, libraries and library flags.
16111
16112   # Sentinel used to keep track of whether or not we are before
16113   # the conftest object file.
16114   pre_test_object_deps_done=no
16115
16116   # The `*' in the case matches for architectures that use `case' in
16117   # $output_verbose_cmd can trigger glob expansion during the loop
16118   # eval without this substitution.
16119   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16120
16121   for p in `eval $output_verbose_link_cmd`; do
16122     case $p in
16123
16124     -L* | -R* | -l*)
16125        # Some compilers place space between "-{L,R}" and the path.
16126        # Remove the space.
16127        if test $p = "-L" \
16128           || test $p = "-R"; then
16129          prev=$p
16130          continue
16131        else
16132          prev=
16133        fi
16134
16135        if test "$pre_test_object_deps_done" = no; then
16136          case $p in
16137          -L* | -R*)
16138            # Internal compiler library paths should come after those
16139            # provided the user.  The postdeps already come after the
16140            # user supplied libs so there is no need to process them.
16141            if test -z "$compiler_lib_search_path_CXX"; then
16142              compiler_lib_search_path_CXX="${prev}${p}"
16143            else
16144              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16145            fi
16146            ;;
16147          # The "-l" case would never come before the object being
16148          # linked, so don't bother handling this case.
16149          esac
16150        else
16151          if test -z "$postdeps_CXX"; then
16152            postdeps_CXX="${prev}${p}"
16153          else
16154            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16155          fi
16156        fi
16157        ;;
16158
16159     *.$objext)
16160        # This assumes that the test object file only shows up
16161        # once in the compiler output.
16162        if test "$p" = "conftest.$objext"; then
16163          pre_test_object_deps_done=yes
16164          continue
16165        fi
16166
16167        if test "$pre_test_object_deps_done" = no; then
16168          if test -z "$predep_objects_CXX"; then
16169            predep_objects_CXX="$p"
16170          else
16171            predep_objects_CXX="$predep_objects_CXX $p"
16172          fi
16173        else
16174          if test -z "$postdep_objects_CXX"; then
16175            postdep_objects_CXX="$p"
16176          else
16177            postdep_objects_CXX="$postdep_objects_CXX $p"
16178          fi
16179        fi
16180        ;;
16181
16182     *) ;; # Ignore the rest.
16183
16184     esac
16185   done
16186
16187   # Clean up.
16188   rm -f a.out a.exe
16189 else
16190   echo "libtool.m4: error: problem compiling CXX test program"
16191 fi
16192
16193 $rm -f confest.$objext
16194
16195 case " $postdeps_CXX " in
16196 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16197 esac
16198
16199 lt_prog_compiler_wl_CXX=
16200 lt_prog_compiler_pic_CXX=
16201 lt_prog_compiler_static_CXX=
16202
16203 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16204 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16205
16206   # C++ specific cases for pic, static, wl, etc.
16207   if test "$GXX" = yes; then
16208     lt_prog_compiler_wl_CXX='-Wl,'
16209     lt_prog_compiler_static_CXX='-static'
16210
16211     case $host_os in
16212     aix*)
16213       # All AIX code is PIC.
16214       if test "$host_cpu" = ia64; then
16215         # AIX 5 now supports IA64 processor
16216         lt_prog_compiler_static_CXX='-Bstatic'
16217       fi
16218       ;;
16219     amigaos*)
16220       # FIXME: we need at least 68020 code to build shared libraries, but
16221       # adding the `-m68020' flag to GCC prevents building anything better,
16222       # like `-m68040'.
16223       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16224       ;;
16225     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16226       # PIC is the default for these OSes.
16227       ;;
16228     cygwin* | mingw* | os2* | pw32*)
16229       # This hack is so that the source file can tell whether it is being
16230       # built for inclusion in a dll (and should export symbols for example).
16231       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16232       ;;
16233     darwin* | rhapsody*)
16234       # PIC is the default on this platform
16235       # Common symbols not allowed in MH_DYLIB files
16236       lt_prog_compiler_pic_CXX='-fno-common'
16237       ;;
16238     *djgpp*)
16239       # DJGPP does not support shared libraries at all
16240       lt_prog_compiler_pic_CXX=
16241       ;;
16242     sysv4*MP*)
16243       if test -d /usr/nec; then
16244         lt_prog_compiler_pic_CXX=-Kconform_pic
16245       fi
16246       ;;
16247     hpux*)
16248       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16249       # not for PA HP-UX.
16250       case "$host_cpu" in
16251       hppa*64*|ia64*)
16252         ;;
16253       *)
16254         lt_prog_compiler_pic_CXX='-fPIC'
16255         ;;
16256       esac
16257       ;;
16258     *)
16259       lt_prog_compiler_pic_CXX='-fPIC'
16260       ;;
16261     esac
16262   else
16263     case $host_os in
16264       aix4* | aix5*)
16265         # All AIX code is PIC.
16266         if test "$host_cpu" = ia64; then
16267           # AIX 5 now supports IA64 processor
16268           lt_prog_compiler_static_CXX='-Bstatic'
16269         else
16270           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16271         fi
16272         ;;
16273       chorus*)
16274         case $cc_basename in
16275         cxch68)
16276           # Green Hills C++ Compiler
16277           # _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"
16278           ;;
16279         esac
16280         ;;
16281       dgux*)
16282         case $cc_basename in
16283           ec++)
16284             lt_prog_compiler_pic_CXX='-KPIC'
16285             ;;
16286           ghcx)
16287             # Green Hills C++ Compiler
16288             lt_prog_compiler_pic_CXX='-pic'
16289             ;;
16290           *)
16291             ;;
16292         esac
16293         ;;
16294       freebsd* | kfreebsd*-gnu)
16295         # FreeBSD uses GNU C++
16296         ;;
16297       hpux9* | hpux10* | hpux11*)
16298         case $cc_basename in
16299           CC)
16300             lt_prog_compiler_wl_CXX='-Wl,'
16301             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16302             if test "$host_cpu" != ia64; then
16303               lt_prog_compiler_pic_CXX='+Z'
16304             fi
16305             ;;
16306           aCC)
16307             lt_prog_compiler_wl_CXX='-Wl,'
16308             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16309             case "$host_cpu" in
16310             hppa*64*|ia64*)
16311               # +Z the default
16312               ;;
16313             *)
16314               lt_prog_compiler_pic_CXX='+Z'
16315               ;;
16316             esac
16317             ;;
16318           *)
16319             ;;
16320         esac
16321         ;;
16322       irix5* | irix6* | nonstopux*)
16323         case $cc_basename in
16324           CC)
16325             lt_prog_compiler_wl_CXX='-Wl,'
16326             lt_prog_compiler_static_CXX='-non_shared'
16327             # CC pic flag -KPIC is the default.
16328             ;;
16329           *)
16330             ;;
16331         esac
16332         ;;
16333       linux*)
16334         case $cc_basename in
16335           KCC)
16336             # KAI C++ Compiler
16337             lt_prog_compiler_wl_CXX='--backend -Wl,'
16338             lt_prog_compiler_pic_CXX='-fPIC'
16339             ;;
16340           icpc)
16341             # Intel C++
16342             lt_prog_compiler_wl_CXX='-Wl,'
16343             lt_prog_compiler_pic_CXX='-KPIC'
16344             lt_prog_compiler_static_CXX='-static'
16345             ;;
16346           cxx)
16347             # Compaq C++
16348             # Make sure the PIC flag is empty.  It appears that all Alpha
16349             # Linux and Compaq Tru64 Unix objects are PIC.
16350             lt_prog_compiler_pic_CXX=
16351             lt_prog_compiler_static_CXX='-non_shared'
16352             ;;
16353           *)
16354             ;;
16355         esac
16356         ;;
16357       lynxos*)
16358         ;;
16359       m88k*)
16360         ;;
16361       mvs*)
16362         case $cc_basename in
16363           cxx)
16364             lt_prog_compiler_pic_CXX='-W c,exportall'
16365             ;;
16366           *)
16367             ;;
16368         esac
16369         ;;
16370       netbsd*)
16371         ;;
16372       osf3* | osf4* | osf5*)
16373         case $cc_basename in
16374           KCC)
16375             lt_prog_compiler_wl_CXX='--backend -Wl,'
16376             ;;
16377           RCC)
16378             # Rational C++ 2.4.1
16379             lt_prog_compiler_pic_CXX='-pic'
16380             ;;
16381           cxx)
16382             # Digital/Compaq C++
16383             lt_prog_compiler_wl_CXX='-Wl,'
16384             # Make sure the PIC flag is empty.  It appears that all Alpha
16385             # Linux and Compaq Tru64 Unix objects are PIC.
16386             lt_prog_compiler_pic_CXX=
16387             lt_prog_compiler_static_CXX='-non_shared'
16388             ;;
16389           *)
16390             ;;
16391         esac
16392         ;;
16393       psos*)
16394         ;;
16395       sco*)
16396         case $cc_basename in
16397           CC)
16398             lt_prog_compiler_pic_CXX='-fPIC'
16399             ;;
16400           *)
16401             ;;
16402         esac
16403         ;;
16404       solaris*)
16405         case $cc_basename in
16406           CC)
16407             # Sun C++ 4.2, 5.x and Centerline C++
16408             lt_prog_compiler_pic_CXX='-KPIC'
16409             lt_prog_compiler_static_CXX='-Bstatic'
16410             lt_prog_compiler_wl_CXX='-Qoption ld '
16411             ;;
16412           gcx)
16413             # Green Hills C++ Compiler
16414             lt_prog_compiler_pic_CXX='-PIC'
16415             ;;
16416           *)
16417             ;;
16418         esac
16419         ;;
16420       sunos4*)
16421         case $cc_basename in
16422           CC)
16423             # Sun C++ 4.x
16424             lt_prog_compiler_pic_CXX='-pic'
16425             lt_prog_compiler_static_CXX='-Bstatic'
16426             ;;
16427           lcc)
16428             # Lucid
16429             lt_prog_compiler_pic_CXX='-pic'
16430             ;;
16431           *)
16432             ;;
16433         esac
16434         ;;
16435       tandem*)
16436         case $cc_basename in
16437           NCC)
16438             # NonStop-UX NCC 3.20
16439             lt_prog_compiler_pic_CXX='-KPIC'
16440             ;;
16441           *)
16442             ;;
16443         esac
16444         ;;
16445       unixware*)
16446         ;;
16447       vxworks*)
16448         ;;
16449       *)
16450         lt_prog_compiler_can_build_shared_CXX=no
16451         ;;
16452     esac
16453   fi
16454
16455 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16456 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16457
16458 #
16459 # Check to make sure the PIC flag actually works.
16460 #
16461 if test -n "$lt_prog_compiler_pic_CXX"; then
16462
16463 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16464 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16465 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16466   echo $ECHO_N "(cached) $ECHO_C" >&6
16467 else
16468   lt_prog_compiler_pic_works_CXX=no
16469   ac_outfile=conftest.$ac_objext
16470    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16471    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16472    # Insert the option either (1) after the last *FLAGS variable, or
16473    # (2) before a word containing "conftest.", or (3) at the end.
16474    # Note that $ac_compile itself does not contain backslashes and begins
16475    # with a dollar sign (not a hyphen), so the echo should work correctly.
16476    # The option is referenced via a variable to avoid confusing sed.
16477    lt_compile=`echo "$ac_compile" | $SED \
16478    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16479    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16480    -e 's:$: $lt_compiler_flag:'`
16481    (eval echo "\"\$as_me:16481: $lt_compile\"" >&5)
16482    (eval "$lt_compile" 2>conftest.err)
16483    ac_status=$?
16484    cat conftest.err >&5
16485    echo "$as_me:16485: \$? = $ac_status" >&5
16486    if (exit $ac_status) && test -s "$ac_outfile"; then
16487      # The compiler can only warn and ignore the option if not recognized
16488      # So say no if there are warnings
16489      if test ! -s conftest.err; then
16490        lt_prog_compiler_pic_works_CXX=yes
16491      fi
16492    fi
16493    $rm conftest*
16494
16495 fi
16496 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16497 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16498
16499 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16500     case $lt_prog_compiler_pic_CXX in
16501      "" | " "*) ;;
16502      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16503      esac
16504 else
16505     lt_prog_compiler_pic_CXX=
16506      lt_prog_compiler_can_build_shared_CXX=no
16507 fi
16508
16509 fi
16510 case "$host_os" in
16511   # For platforms which do not support PIC, -DPIC is meaningless:
16512   *djgpp*)
16513     lt_prog_compiler_pic_CXX=
16514     ;;
16515   *)
16516     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16517     ;;
16518 esac
16519
16520 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16521 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16522 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16523   echo $ECHO_N "(cached) $ECHO_C" >&6
16524 else
16525   lt_cv_prog_compiler_c_o_CXX=no
16526    $rm -r conftest 2>/dev/null
16527    mkdir conftest
16528    cd conftest
16529    mkdir out
16530    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16531
16532    lt_compiler_flag="-o out/conftest2.$ac_objext"
16533    # Insert the option either (1) after the last *FLAGS variable, or
16534    # (2) before a word containing "conftest.", or (3) at the end.
16535    # Note that $ac_compile itself does not contain backslashes and begins
16536    # with a dollar sign (not a hyphen), so the echo should work correctly.
16537    lt_compile=`echo "$ac_compile" | $SED \
16538    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16539    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16540    -e 's:$: $lt_compiler_flag:'`
16541    (eval echo "\"\$as_me:16541: $lt_compile\"" >&5)
16542    (eval "$lt_compile" 2>out/conftest.err)
16543    ac_status=$?
16544    cat out/conftest.err >&5
16545    echo "$as_me:16545: \$? = $ac_status" >&5
16546    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16547    then
16548      # The compiler can only warn and ignore the option if not recognized
16549      # So say no if there are warnings
16550      if test ! -s out/conftest.err; then
16551        lt_cv_prog_compiler_c_o_CXX=yes
16552      fi
16553    fi
16554    chmod u+w .
16555    $rm conftest*
16556    # SGI C++ compiler will create directory out/ii_files/ for
16557    # template instantiation
16558    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16559    $rm out/* && rmdir out
16560    cd ..
16561    rmdir conftest
16562    $rm conftest*
16563
16564 fi
16565 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16566 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16567
16568
16569 hard_links="nottested"
16570 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16571   # do not overwrite the value of need_locks provided by the user
16572   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16573 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16574   hard_links=yes
16575   $rm conftest*
16576   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16577   touch conftest.a
16578   ln conftest.a conftest.b 2>&5 || hard_links=no
16579   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16580   echo "$as_me:$LINENO: result: $hard_links" >&5
16581 echo "${ECHO_T}$hard_links" >&6
16582   if test "$hard_links" = no; then
16583     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16584 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16585     need_locks=warn
16586   fi
16587 else
16588   need_locks=no
16589 fi
16590
16591 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16592 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16593
16594   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16595   case $host_os in
16596   aix4* | aix5*)
16597     # If we're using GNU nm, then we don't want the "-C" option.
16598     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16599     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16600       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'
16601     else
16602       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'
16603     fi
16604     ;;
16605   pw32*)
16606     export_symbols_cmds_CXX="$ltdll_cmds"
16607   ;;
16608   cygwin* | mingw*)
16609     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16610   ;;
16611   *)
16612     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16613   ;;
16614   esac
16615
16616 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16617 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16618 test "$ld_shlibs_CXX" = no && can_build_shared=no
16619
16620 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16621 if test "$GCC" = yes; then
16622   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16623 fi
16624
16625 #
16626 # Do we need to explicitly link libc?
16627 #
16628 case "x$archive_cmds_need_lc_CXX" in
16629 x|xyes)
16630   # Assume -lc should be added
16631   archive_cmds_need_lc_CXX=yes
16632
16633   if test "$enable_shared" = yes && test "$GCC" = yes; then
16634     case $archive_cmds_CXX in
16635     *'~'*)
16636       # FIXME: we may have to deal with multi-command sequences.
16637       ;;
16638     '$CC '*)
16639       # Test whether the compiler implicitly links with -lc since on some
16640       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16641       # to ld, don't add -lc before -lgcc.
16642       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16643 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16644       $rm conftest*
16645       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16646
16647       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16648   (eval $ac_compile) 2>&5
16649   ac_status=$?
16650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651   (exit $ac_status); } 2>conftest.err; then
16652         soname=conftest
16653         lib=conftest
16654         libobjs=conftest.$ac_objext
16655         deplibs=
16656         wl=$lt_prog_compiler_wl_CXX
16657         compiler_flags=-v
16658         linker_flags=-v
16659         verstring=
16660         output_objdir=.
16661         libname=conftest
16662         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16663         allow_undefined_flag_CXX=
16664         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16665   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16666   ac_status=$?
16667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668   (exit $ac_status); }
16669         then
16670           archive_cmds_need_lc_CXX=no
16671         else
16672           archive_cmds_need_lc_CXX=yes
16673         fi
16674         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16675       else
16676         cat conftest.err 1>&5
16677       fi
16678       $rm conftest*
16679       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16680 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16681       ;;
16682     esac
16683   fi
16684   ;;
16685 esac
16686
16687 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16688 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16689 library_names_spec=
16690 libname_spec='lib$name'
16691 soname_spec=
16692 shrext_cmds=".so"
16693 postinstall_cmds=
16694 postuninstall_cmds=
16695 finish_cmds=
16696 finish_eval=
16697 shlibpath_var=
16698 shlibpath_overrides_runpath=unknown
16699 version_type=none
16700 dynamic_linker="$host_os ld.so"
16701 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16702 if test "$GCC" = yes; then
16703   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16704   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16705     # if the path contains ";" then we assume it to be the separator
16706     # otherwise default to the standard path separator (i.e. ":") - it is
16707     # assumed that no part of a normal pathname contains ";" but that should
16708     # okay in the real world where ";" in dirpaths is itself problematic.
16709     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16710   else
16711     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16712   fi
16713 else
16714   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16715 fi
16716 need_lib_prefix=unknown
16717 hardcode_into_libs=no
16718
16719 # when you set need_version to no, make sure it does not cause -set_version
16720 # flags to be left without arguments
16721 need_version=unknown
16722
16723 case $host_os in
16724 aix3*)
16725   version_type=linux
16726   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16727   shlibpath_var=LIBPATH
16728
16729   # AIX 3 has no versioning support, so we append a major version to the name.
16730   soname_spec='${libname}${release}${shared_ext}$major'
16731   ;;
16732
16733 aix4* | aix5*)
16734   version_type=linux
16735   need_lib_prefix=no
16736   need_version=no
16737   hardcode_into_libs=yes
16738   if test "$host_cpu" = ia64; then
16739     # AIX 5 supports IA64
16740     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16741     shlibpath_var=LD_LIBRARY_PATH
16742   else
16743     # With GCC up to 2.95.x, collect2 would create an import file
16744     # for dependence libraries.  The import file would start with
16745     # the line `#! .'.  This would cause the generated library to
16746     # depend on `.', always an invalid library.  This was fixed in
16747     # development snapshots of GCC prior to 3.0.
16748     case $host_os in
16749       aix4 | aix4.[01] | aix4.[01].*)
16750       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16751            echo ' yes '
16752            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16753         :
16754       else
16755         can_build_shared=no
16756       fi
16757       ;;
16758     esac
16759     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16760     # soname into executable. Probably we can add versioning support to
16761     # collect2, so additional links can be useful in future.
16762     if test "$aix_use_runtimelinking" = yes; then
16763       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16764       # instead of lib<name>.a to let people know that these are not
16765       # typical AIX shared libraries.
16766       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16767     else
16768       # We preserve .a as extension for shared libraries through AIX4.2
16769       # and later when we are not doing run time linking.
16770       library_names_spec='${libname}${release}.a $libname.a'
16771       soname_spec='${libname}${release}${shared_ext}$major'
16772     fi
16773     shlibpath_var=LIBPATH
16774   fi
16775   ;;
16776
16777 amigaos*)
16778   library_names_spec='$libname.ixlibrary $libname.a'
16779   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16780   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'
16781   ;;
16782
16783 beos*)
16784   library_names_spec='${libname}${shared_ext}'
16785   dynamic_linker="$host_os ld.so"
16786   shlibpath_var=LIBRARY_PATH
16787   ;;
16788
16789 bsdi4*)
16790   version_type=linux
16791   need_version=no
16792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16793   soname_spec='${libname}${release}${shared_ext}$major'
16794   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16795   shlibpath_var=LD_LIBRARY_PATH
16796   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16797   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16798   # the default ld.so.conf also contains /usr/contrib/lib and
16799   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16800   # libtool to hard-code these into programs
16801   ;;
16802
16803 cygwin* | mingw* | pw32*)
16804   version_type=windows
16805   shrext_cmds=".dll"
16806   need_version=no
16807   need_lib_prefix=no
16808
16809   case $GCC,$host_os in
16810   yes,cygwin* | yes,mingw* | yes,pw32*)
16811     library_names_spec='$libname.dll.a'
16812     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16813     postinstall_cmds='base_file=`basename \${file}`~
16814       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16815       dldir=$destdir/`dirname \$dlpath`~
16816       test -d \$dldir || mkdir -p \$dldir~
16817       $install_prog $dir/$dlname \$dldir/$dlname'
16818     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16819       dlpath=$dir/\$dldll~
16820        $rm \$dlpath'
16821     shlibpath_overrides_runpath=yes
16822
16823     case $host_os in
16824     cygwin*)
16825       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16826       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16827       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16828       ;;
16829     mingw*)
16830       # MinGW DLLs use traditional 'lib' prefix
16831       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16832       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16833       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16834         # It is most probably a Windows format PATH printed by
16835         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16836         # path with ; separators, and with drive letters. We can handle the
16837         # drive letters (cygwin fileutils understands them), so leave them,
16838         # especially as we might pass files found there to a mingw objdump,
16839         # which wouldn't understand a cygwinified path. Ahh.
16840         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16841       else
16842         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16843       fi
16844       ;;
16845     pw32*)
16846       # pw32 DLLs use 'pw' prefix rather than 'lib'
16847       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16848       ;;
16849     esac
16850     ;;
16851
16852   *)
16853     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16854     ;;
16855   esac
16856   dynamic_linker='Win32 ld.exe'
16857   # FIXME: first we should search . and the directory the executable is in
16858   shlibpath_var=PATH
16859   ;;
16860
16861 darwin* | rhapsody*)
16862   dynamic_linker="$host_os dyld"
16863   version_type=darwin
16864   need_lib_prefix=no
16865   need_version=no
16866   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16867   soname_spec='${libname}${release}${major}$shared_ext'
16868   shlibpath_overrides_runpath=yes
16869   shlibpath_var=DYLD_LIBRARY_PATH
16870   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16871   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16872   if test "$GCC" = yes; then
16873     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"`
16874   else
16875     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16876   fi
16877   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16878   ;;
16879
16880 dgux*)
16881   version_type=linux
16882   need_lib_prefix=no
16883   need_version=no
16884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16885   soname_spec='${libname}${release}${shared_ext}$major'
16886   shlibpath_var=LD_LIBRARY_PATH
16887   ;;
16888
16889 freebsd1*)
16890   dynamic_linker=no
16891   ;;
16892
16893 kfreebsd*-gnu)
16894   version_type=linux
16895   need_lib_prefix=no
16896   need_version=no
16897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16898   soname_spec='${libname}${release}${shared_ext}$major'
16899   shlibpath_var=LD_LIBRARY_PATH
16900   shlibpath_overrides_runpath=no
16901   hardcode_into_libs=yes
16902   dynamic_linker='GNU ld.so'
16903   ;;
16904
16905 freebsd*)
16906   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16907   version_type=freebsd-$objformat
16908   case $version_type in
16909     freebsd-elf*)
16910       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16911       need_version=no
16912       need_lib_prefix=no
16913       ;;
16914     freebsd-*)
16915       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16916       need_version=yes
16917       ;;
16918   esac
16919   shlibpath_var=LD_LIBRARY_PATH
16920   case $host_os in
16921   freebsd2*)
16922     shlibpath_overrides_runpath=yes
16923     ;;
16924   freebsd3.01* | freebsdelf3.01*)
16925     shlibpath_overrides_runpath=yes
16926     hardcode_into_libs=yes
16927     ;;
16928   *) # from 3.2 on
16929     shlibpath_overrides_runpath=no
16930     hardcode_into_libs=yes
16931     ;;
16932   esac
16933   ;;
16934
16935 gnu*)
16936   version_type=linux
16937   need_lib_prefix=no
16938   need_version=no
16939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16940   soname_spec='${libname}${release}${shared_ext}$major'
16941   shlibpath_var=LD_LIBRARY_PATH
16942   hardcode_into_libs=yes
16943   ;;
16944
16945 hpux9* | hpux10* | hpux11*)
16946   # Give a soname corresponding to the major version so that dld.sl refuses to
16947   # link against other versions.
16948   version_type=sunos
16949   need_lib_prefix=no
16950   need_version=no
16951   case "$host_cpu" in
16952   ia64*)
16953     shrext_cmds='.so'
16954     hardcode_into_libs=yes
16955     dynamic_linker="$host_os dld.so"
16956     shlibpath_var=LD_LIBRARY_PATH
16957     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16958     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16959     soname_spec='${libname}${release}${shared_ext}$major'
16960     if test "X$HPUX_IA64_MODE" = X32; then
16961       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16962     else
16963       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16964     fi
16965     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16966     ;;
16967    hppa*64*)
16968      shrext_cmds='.sl'
16969      hardcode_into_libs=yes
16970      dynamic_linker="$host_os dld.sl"
16971      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16972      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16973      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16974      soname_spec='${libname}${release}${shared_ext}$major'
16975      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16976      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16977      ;;
16978    *)
16979     shrext_cmds='.sl'
16980     dynamic_linker="$host_os dld.sl"
16981     shlibpath_var=SHLIB_PATH
16982     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16984     soname_spec='${libname}${release}${shared_ext}$major'
16985     ;;
16986   esac
16987   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16988   postinstall_cmds='chmod 555 $lib'
16989   ;;
16990
16991 irix5* | irix6* | nonstopux*)
16992   case $host_os in
16993     nonstopux*) version_type=nonstopux ;;
16994     *)
16995         if test "$lt_cv_prog_gnu_ld" = yes; then
16996                 version_type=linux
16997         else
16998                 version_type=irix
16999         fi ;;
17000   esac
17001   need_lib_prefix=no
17002   need_version=no
17003   soname_spec='${libname}${release}${shared_ext}$major'
17004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17005   case $host_os in
17006   irix5* | nonstopux*)
17007     libsuff= shlibsuff=
17008     ;;
17009   *)
17010     case $LD in # libtool.m4 will add one of these switches to LD
17011     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17012       libsuff= shlibsuff= libmagic=32-bit;;
17013     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17014       libsuff=32 shlibsuff=N32 libmagic=N32;;
17015     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17016       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17017     *) libsuff= shlibsuff= libmagic=never-match;;
17018     esac
17019     ;;
17020   esac
17021   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17022   shlibpath_overrides_runpath=no
17023   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17024   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17025   hardcode_into_libs=yes
17026   ;;
17027
17028 # No shared lib support for Linux oldld, aout, or coff.
17029 linux*oldld* | linux*aout* | linux*coff*)
17030   dynamic_linker=no
17031   ;;
17032
17033 # This must be Linux ELF.
17034 linux*)
17035   version_type=linux
17036   need_lib_prefix=no
17037   need_version=no
17038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17039   soname_spec='${libname}${release}${shared_ext}$major'
17040   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17041   shlibpath_var=LD_LIBRARY_PATH
17042   shlibpath_overrides_runpath=no
17043   # This implies no fast_install, which is unacceptable.
17044   # Some rework will be needed to allow for fast_install
17045   # before this can be enabled.
17046   hardcode_into_libs=yes
17047
17048   # Append ld.so.conf contents to the search path
17049   if test -f /etc/ld.so.conf; then
17050     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17051     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17052   fi
17053
17054   # We used to test for /lib/ld.so.1 and disable shared libraries on
17055   # powerpc, because MkLinux only supported shared libraries with the
17056   # GNU dynamic linker.  Since this was broken with cross compilers,
17057   # most powerpc-linux boxes support dynamic linking these days and
17058   # people can always --disable-shared, the test was removed, and we
17059   # assume the GNU/Linux dynamic linker is in use.
17060   dynamic_linker='GNU/Linux ld.so'
17061   ;;
17062
17063 knetbsd*-gnu)
17064   version_type=linux
17065   need_lib_prefix=no
17066   need_version=no
17067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17068   soname_spec='${libname}${release}${shared_ext}$major'
17069   shlibpath_var=LD_LIBRARY_PATH
17070   shlibpath_overrides_runpath=no
17071   hardcode_into_libs=yes
17072   dynamic_linker='GNU ld.so'
17073   ;;
17074
17075 netbsd*)
17076   version_type=sunos
17077   need_lib_prefix=no
17078   need_version=no
17079   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17081     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17082     dynamic_linker='NetBSD (a.out) ld.so'
17083   else
17084     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17085     soname_spec='${libname}${release}${shared_ext}$major'
17086     dynamic_linker='NetBSD ld.elf_so'
17087   fi
17088   shlibpath_var=LD_LIBRARY_PATH
17089   shlibpath_overrides_runpath=yes
17090   hardcode_into_libs=yes
17091   ;;
17092
17093 newsos6)
17094   version_type=linux
17095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17096   shlibpath_var=LD_LIBRARY_PATH
17097   shlibpath_overrides_runpath=yes
17098   ;;
17099
17100 nto-qnx*)
17101   version_type=linux
17102   need_lib_prefix=no
17103   need_version=no
17104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17105   soname_spec='${libname}${release}${shared_ext}$major'
17106   shlibpath_var=LD_LIBRARY_PATH
17107   shlibpath_overrides_runpath=yes
17108   ;;
17109
17110 openbsd*)
17111   version_type=sunos
17112   need_lib_prefix=no
17113   need_version=yes
17114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17115   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17116   shlibpath_var=LD_LIBRARY_PATH
17117   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17118     case $host_os in
17119       openbsd2.[89] | openbsd2.[89].*)
17120         shlibpath_overrides_runpath=no
17121         ;;
17122       *)
17123         shlibpath_overrides_runpath=yes
17124         ;;
17125       esac
17126   else
17127     shlibpath_overrides_runpath=yes
17128   fi
17129   ;;
17130
17131 os2*)
17132   libname_spec='$name'
17133   shrext_cmds=".dll"
17134   need_lib_prefix=no
17135   library_names_spec='$libname${shared_ext} $libname.a'
17136   dynamic_linker='OS/2 ld.exe'
17137   shlibpath_var=LIBPATH
17138   ;;
17139
17140 osf3* | osf4* | osf5*)
17141   version_type=osf
17142   need_lib_prefix=no
17143   need_version=no
17144   soname_spec='${libname}${release}${shared_ext}$major'
17145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146   shlibpath_var=LD_LIBRARY_PATH
17147   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17148   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17149   ;;
17150
17151 sco3.2v5*)
17152   version_type=osf
17153   soname_spec='${libname}${release}${shared_ext}$major'
17154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155   shlibpath_var=LD_LIBRARY_PATH
17156   ;;
17157
17158 solaris*)
17159   version_type=linux
17160   need_lib_prefix=no
17161   need_version=no
17162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17163   soname_spec='${libname}${release}${shared_ext}$major'
17164   shlibpath_var=LD_LIBRARY_PATH
17165   shlibpath_overrides_runpath=yes
17166   hardcode_into_libs=yes
17167   # ldd complains unless libraries are executable
17168   postinstall_cmds='chmod +x $lib'
17169   ;;
17170
17171 sunos4*)
17172   version_type=sunos
17173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17174   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17175   shlibpath_var=LD_LIBRARY_PATH
17176   shlibpath_overrides_runpath=yes
17177   if test "$with_gnu_ld" = yes; then
17178     need_lib_prefix=no
17179   fi
17180   need_version=yes
17181   ;;
17182
17183 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17184   version_type=linux
17185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17186   soname_spec='${libname}${release}${shared_ext}$major'
17187   shlibpath_var=LD_LIBRARY_PATH
17188   case $host_vendor in
17189     sni)
17190       shlibpath_overrides_runpath=no
17191       need_lib_prefix=no
17192       export_dynamic_flag_spec='${wl}-Blargedynsym'
17193       runpath_var=LD_RUN_PATH
17194       ;;
17195     siemens)
17196       need_lib_prefix=no
17197       ;;
17198     motorola)
17199       need_lib_prefix=no
17200       need_version=no
17201       shlibpath_overrides_runpath=no
17202       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17203       ;;
17204   esac
17205   ;;
17206
17207 sysv4*MP*)
17208   if test -d /usr/nec ;then
17209     version_type=linux
17210     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17211     soname_spec='$libname${shared_ext}.$major'
17212     shlibpath_var=LD_LIBRARY_PATH
17213   fi
17214   ;;
17215
17216 uts4*)
17217   version_type=linux
17218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17219   soname_spec='${libname}${release}${shared_ext}$major'
17220   shlibpath_var=LD_LIBRARY_PATH
17221   ;;
17222
17223 *)
17224   dynamic_linker=no
17225   ;;
17226 esac
17227 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17228 echo "${ECHO_T}$dynamic_linker" >&6
17229 test "$dynamic_linker" = no && can_build_shared=no
17230
17231 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17232 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17233 hardcode_action_CXX=
17234 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17235    test -n "$runpath_var CXX" || \
17236    test "X$hardcode_automatic_CXX"="Xyes" ; then
17237
17238   # We can hardcode non-existant directories.
17239   if test "$hardcode_direct_CXX" != no &&
17240      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17241      # have to relink, otherwise we might link with an installed library
17242      # when we should be linking with a yet-to-be-installed one
17243      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17244      test "$hardcode_minus_L_CXX" != no; then
17245     # Linking always hardcodes the temporary library directory.
17246     hardcode_action_CXX=relink
17247   else
17248     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17249     hardcode_action_CXX=immediate
17250   fi
17251 else
17252   # We cannot hardcode anything, or else we can only hardcode existing
17253   # directories.
17254   hardcode_action_CXX=unsupported
17255 fi
17256 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17257 echo "${ECHO_T}$hardcode_action_CXX" >&6
17258
17259 if test "$hardcode_action_CXX" = relink; then
17260   # Fast installation is not supported
17261   enable_fast_install=no
17262 elif test "$shlibpath_overrides_runpath" = yes ||
17263      test "$enable_shared" = no; then
17264   # Fast installation is not necessary
17265   enable_fast_install=needless
17266 fi
17267
17268 striplib=
17269 old_striplib=
17270 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17271 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17272 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17273   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17274   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17275   echo "$as_me:$LINENO: result: yes" >&5
17276 echo "${ECHO_T}yes" >&6
17277 else
17278 # FIXME - insert some real tests, host_os isn't really good enough
17279   case $host_os in
17280    darwin*)
17281        if test -n "$STRIP" ; then
17282          striplib="$STRIP -x"
17283          echo "$as_me:$LINENO: result: yes" >&5
17284 echo "${ECHO_T}yes" >&6
17285        else
17286   echo "$as_me:$LINENO: result: no" >&5
17287 echo "${ECHO_T}no" >&6
17288 fi
17289        ;;
17290    *)
17291   echo "$as_me:$LINENO: result: no" >&5
17292 echo "${ECHO_T}no" >&6
17293     ;;
17294   esac
17295 fi
17296
17297 if test "x$enable_dlopen" != xyes; then
17298   enable_dlopen=unknown
17299   enable_dlopen_self=unknown
17300   enable_dlopen_self_static=unknown
17301 else
17302   lt_cv_dlopen=no
17303   lt_cv_dlopen_libs=
17304
17305   case $host_os in
17306   beos*)
17307     lt_cv_dlopen="load_add_on"
17308     lt_cv_dlopen_libs=
17309     lt_cv_dlopen_self=yes
17310     ;;
17311
17312   mingw* | pw32*)
17313     lt_cv_dlopen="LoadLibrary"
17314     lt_cv_dlopen_libs=
17315    ;;
17316
17317   cygwin*)
17318     lt_cv_dlopen="dlopen"
17319     lt_cv_dlopen_libs=
17320    ;;
17321
17322   darwin*)
17323   # if libdl is installed we need to link against it
17324     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17325 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17326 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17327   echo $ECHO_N "(cached) $ECHO_C" >&6
17328 else
17329   ac_check_lib_save_LIBS=$LIBS
17330 LIBS="-ldl  $LIBS"
17331 cat >conftest.$ac_ext <<_ACEOF
17332 /* confdefs.h.  */
17333 _ACEOF
17334 cat confdefs.h >>conftest.$ac_ext
17335 cat >>conftest.$ac_ext <<_ACEOF
17336 /* end confdefs.h.  */
17337
17338 /* Override any gcc2 internal prototype to avoid an error.  */
17339 #ifdef __cplusplus
17340 extern "C"
17341 #endif
17342 /* We use char because int might match the return type of a gcc2
17343    builtin and then its argument prototype would still apply.  */
17344 char dlopen ();
17345 int
17346 main ()
17347 {
17348 dlopen ();
17349   ;
17350   return 0;
17351 }
17352 _ACEOF
17353 rm -f conftest.$ac_objext conftest$ac_exeext
17354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17355   (eval $ac_link) 2>conftest.er1
17356   ac_status=$?
17357   grep -v '^ *+' conftest.er1 >conftest.err
17358   rm -f conftest.er1
17359   cat conftest.err >&5
17360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361   (exit $ac_status); } &&
17362          { ac_try='test -z "$ac_cxx_werror_flag"
17363                          || test ! -s conftest.err'
17364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365   (eval $ac_try) 2>&5
17366   ac_status=$?
17367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368   (exit $ac_status); }; } &&
17369          { ac_try='test -s conftest$ac_exeext'
17370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371   (eval $ac_try) 2>&5
17372   ac_status=$?
17373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374   (exit $ac_status); }; }; then
17375   ac_cv_lib_dl_dlopen=yes
17376 else
17377   echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17379
17380 ac_cv_lib_dl_dlopen=no
17381 fi
17382 rm -f conftest.err conftest.$ac_objext \
17383       conftest$ac_exeext conftest.$ac_ext
17384 LIBS=$ac_check_lib_save_LIBS
17385 fi
17386 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17387 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17388 if test $ac_cv_lib_dl_dlopen = yes; then
17389   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17390 else
17391
17392     lt_cv_dlopen="dyld"
17393     lt_cv_dlopen_libs=
17394     lt_cv_dlopen_self=yes
17395
17396 fi
17397
17398    ;;
17399
17400   *)
17401     echo "$as_me:$LINENO: checking for shl_load" >&5
17402 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17403 if test "${ac_cv_func_shl_load+set}" = set; then
17404   echo $ECHO_N "(cached) $ECHO_C" >&6
17405 else
17406   cat >conftest.$ac_ext <<_ACEOF
17407 /* confdefs.h.  */
17408 _ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h.  */
17412 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17413    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17414 #define shl_load innocuous_shl_load
17415
17416 /* System header to define __stub macros and hopefully few prototypes,
17417     which can conflict with char shl_load (); below.
17418     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17419     <limits.h> exists even on freestanding compilers.  */
17420
17421 #ifdef __STDC__
17422 # include <limits.h>
17423 #else
17424 # include <assert.h>
17425 #endif
17426
17427 #undef shl_load
17428
17429 /* Override any gcc2 internal prototype to avoid an error.  */
17430 #ifdef __cplusplus
17431 extern "C"
17432 {
17433 #endif
17434 /* We use char because int might match the return type of a gcc2
17435    builtin and then its argument prototype would still apply.  */
17436 char shl_load ();
17437 /* The GNU C library defines this for functions which it implements
17438     to always fail with ENOSYS.  Some functions are actually named
17439     something starting with __ and the normal name is an alias.  */
17440 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17441 choke me
17442 #else
17443 char (*f) () = shl_load;
17444 #endif
17445 #ifdef __cplusplus
17446 }
17447 #endif
17448
17449 int
17450 main ()
17451 {
17452 return f != shl_load;
17453   ;
17454   return 0;
17455 }
17456 _ACEOF
17457 rm -f conftest.$ac_objext conftest$ac_exeext
17458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17459   (eval $ac_link) 2>conftest.er1
17460   ac_status=$?
17461   grep -v '^ *+' conftest.er1 >conftest.err
17462   rm -f conftest.er1
17463   cat conftest.err >&5
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); } &&
17466          { ac_try='test -z "$ac_cxx_werror_flag"
17467                          || test ! -s conftest.err'
17468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469   (eval $ac_try) 2>&5
17470   ac_status=$?
17471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472   (exit $ac_status); }; } &&
17473          { ac_try='test -s conftest$ac_exeext'
17474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475   (eval $ac_try) 2>&5
17476   ac_status=$?
17477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478   (exit $ac_status); }; }; then
17479   ac_cv_func_shl_load=yes
17480 else
17481   echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17483
17484 ac_cv_func_shl_load=no
17485 fi
17486 rm -f conftest.err conftest.$ac_objext \
17487       conftest$ac_exeext conftest.$ac_ext
17488 fi
17489 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17490 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17491 if test $ac_cv_func_shl_load = yes; then
17492   lt_cv_dlopen="shl_load"
17493 else
17494   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17495 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17496 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17497   echo $ECHO_N "(cached) $ECHO_C" >&6
17498 else
17499   ac_check_lib_save_LIBS=$LIBS
17500 LIBS="-ldld  $LIBS"
17501 cat >conftest.$ac_ext <<_ACEOF
17502 /* confdefs.h.  */
17503 _ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h.  */
17507
17508 /* Override any gcc2 internal prototype to avoid an error.  */
17509 #ifdef __cplusplus
17510 extern "C"
17511 #endif
17512 /* We use char because int might match the return type of a gcc2
17513    builtin and then its argument prototype would still apply.  */
17514 char shl_load ();
17515 int
17516 main ()
17517 {
17518 shl_load ();
17519   ;
17520   return 0;
17521 }
17522 _ACEOF
17523 rm -f conftest.$ac_objext conftest$ac_exeext
17524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17525   (eval $ac_link) 2>conftest.er1
17526   ac_status=$?
17527   grep -v '^ *+' conftest.er1 >conftest.err
17528   rm -f conftest.er1
17529   cat conftest.err >&5
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); } &&
17532          { ac_try='test -z "$ac_cxx_werror_flag"
17533                          || test ! -s conftest.err'
17534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535   (eval $ac_try) 2>&5
17536   ac_status=$?
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); }; } &&
17539          { ac_try='test -s conftest$ac_exeext'
17540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541   (eval $ac_try) 2>&5
17542   ac_status=$?
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); }; }; then
17545   ac_cv_lib_dld_shl_load=yes
17546 else
17547   echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17549
17550 ac_cv_lib_dld_shl_load=no
17551 fi
17552 rm -f conftest.err conftest.$ac_objext \
17553       conftest$ac_exeext conftest.$ac_ext
17554 LIBS=$ac_check_lib_save_LIBS
17555 fi
17556 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17557 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17558 if test $ac_cv_lib_dld_shl_load = yes; then
17559   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17560 else
17561   echo "$as_me:$LINENO: checking for dlopen" >&5
17562 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17563 if test "${ac_cv_func_dlopen+set}" = set; then
17564   echo $ECHO_N "(cached) $ECHO_C" >&6
17565 else
17566   cat >conftest.$ac_ext <<_ACEOF
17567 /* confdefs.h.  */
17568 _ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h.  */
17572 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17574 #define dlopen innocuous_dlopen
17575
17576 /* System header to define __stub macros and hopefully few prototypes,
17577     which can conflict with char dlopen (); below.
17578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17579     <limits.h> exists even on freestanding compilers.  */
17580
17581 #ifdef __STDC__
17582 # include <limits.h>
17583 #else
17584 # include <assert.h>
17585 #endif
17586
17587 #undef dlopen
17588
17589 /* Override any gcc2 internal prototype to avoid an error.  */
17590 #ifdef __cplusplus
17591 extern "C"
17592 {
17593 #endif
17594 /* We use char because int might match the return type of a gcc2
17595    builtin and then its argument prototype would still apply.  */
17596 char dlopen ();
17597 /* The GNU C library defines this for functions which it implements
17598     to always fail with ENOSYS.  Some functions are actually named
17599     something starting with __ and the normal name is an alias.  */
17600 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17601 choke me
17602 #else
17603 char (*f) () = dlopen;
17604 #endif
17605 #ifdef __cplusplus
17606 }
17607 #endif
17608
17609 int
17610 main ()
17611 {
17612 return f != dlopen;
17613   ;
17614   return 0;
17615 }
17616 _ACEOF
17617 rm -f conftest.$ac_objext conftest$ac_exeext
17618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17619   (eval $ac_link) 2>conftest.er1
17620   ac_status=$?
17621   grep -v '^ *+' conftest.er1 >conftest.err
17622   rm -f conftest.er1
17623   cat conftest.err >&5
17624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); } &&
17626          { ac_try='test -z "$ac_cxx_werror_flag"
17627                          || test ! -s conftest.err'
17628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629   (eval $ac_try) 2>&5
17630   ac_status=$?
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); }; } &&
17633          { ac_try='test -s conftest$ac_exeext'
17634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635   (eval $ac_try) 2>&5
17636   ac_status=$?
17637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638   (exit $ac_status); }; }; then
17639   ac_cv_func_dlopen=yes
17640 else
17641   echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644 ac_cv_func_dlopen=no
17645 fi
17646 rm -f conftest.err conftest.$ac_objext \
17647       conftest$ac_exeext conftest.$ac_ext
17648 fi
17649 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17650 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17651 if test $ac_cv_func_dlopen = yes; then
17652   lt_cv_dlopen="dlopen"
17653 else
17654   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17655 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17656 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17657   echo $ECHO_N "(cached) $ECHO_C" >&6
17658 else
17659   ac_check_lib_save_LIBS=$LIBS
17660 LIBS="-ldl  $LIBS"
17661 cat >conftest.$ac_ext <<_ACEOF
17662 /* confdefs.h.  */
17663 _ACEOF
17664 cat confdefs.h >>conftest.$ac_ext
17665 cat >>conftest.$ac_ext <<_ACEOF
17666 /* end confdefs.h.  */
17667
17668 /* Override any gcc2 internal prototype to avoid an error.  */
17669 #ifdef __cplusplus
17670 extern "C"
17671 #endif
17672 /* We use char because int might match the return type of a gcc2
17673    builtin and then its argument prototype would still apply.  */
17674 char dlopen ();
17675 int
17676 main ()
17677 {
17678 dlopen ();
17679   ;
17680   return 0;
17681 }
17682 _ACEOF
17683 rm -f conftest.$ac_objext conftest$ac_exeext
17684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17685   (eval $ac_link) 2>conftest.er1
17686   ac_status=$?
17687   grep -v '^ *+' conftest.er1 >conftest.err
17688   rm -f conftest.er1
17689   cat conftest.err >&5
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); } &&
17692          { ac_try='test -z "$ac_cxx_werror_flag"
17693                          || test ! -s conftest.err'
17694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695   (eval $ac_try) 2>&5
17696   ac_status=$?
17697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); }; } &&
17699          { ac_try='test -s conftest$ac_exeext'
17700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701   (eval $ac_try) 2>&5
17702   ac_status=$?
17703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); }; }; then
17705   ac_cv_lib_dl_dlopen=yes
17706 else
17707   echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17709
17710 ac_cv_lib_dl_dlopen=no
17711 fi
17712 rm -f conftest.err conftest.$ac_objext \
17713       conftest$ac_exeext conftest.$ac_ext
17714 LIBS=$ac_check_lib_save_LIBS
17715 fi
17716 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17717 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17718 if test $ac_cv_lib_dl_dlopen = yes; then
17719   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17720 else
17721   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17722 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17723 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17724   echo $ECHO_N "(cached) $ECHO_C" >&6
17725 else
17726   ac_check_lib_save_LIBS=$LIBS
17727 LIBS="-lsvld  $LIBS"
17728 cat >conftest.$ac_ext <<_ACEOF
17729 /* confdefs.h.  */
17730 _ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h.  */
17734
17735 /* Override any gcc2 internal prototype to avoid an error.  */
17736 #ifdef __cplusplus
17737 extern "C"
17738 #endif
17739 /* We use char because int might match the return type of a gcc2
17740    builtin and then its argument prototype would still apply.  */
17741 char dlopen ();
17742 int
17743 main ()
17744 {
17745 dlopen ();
17746   ;
17747   return 0;
17748 }
17749 _ACEOF
17750 rm -f conftest.$ac_objext conftest$ac_exeext
17751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17752   (eval $ac_link) 2>conftest.er1
17753   ac_status=$?
17754   grep -v '^ *+' conftest.er1 >conftest.err
17755   rm -f conftest.er1
17756   cat conftest.err >&5
17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758   (exit $ac_status); } &&
17759          { ac_try='test -z "$ac_cxx_werror_flag"
17760                          || test ! -s conftest.err'
17761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762   (eval $ac_try) 2>&5
17763   ac_status=$?
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); }; } &&
17766          { ac_try='test -s conftest$ac_exeext'
17767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768   (eval $ac_try) 2>&5
17769   ac_status=$?
17770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771   (exit $ac_status); }; }; then
17772   ac_cv_lib_svld_dlopen=yes
17773 else
17774   echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17776
17777 ac_cv_lib_svld_dlopen=no
17778 fi
17779 rm -f conftest.err conftest.$ac_objext \
17780       conftest$ac_exeext conftest.$ac_ext
17781 LIBS=$ac_check_lib_save_LIBS
17782 fi
17783 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17784 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17785 if test $ac_cv_lib_svld_dlopen = yes; then
17786   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17787 else
17788   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17789 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17790 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17791   echo $ECHO_N "(cached) $ECHO_C" >&6
17792 else
17793   ac_check_lib_save_LIBS=$LIBS
17794 LIBS="-ldld  $LIBS"
17795 cat >conftest.$ac_ext <<_ACEOF
17796 /* confdefs.h.  */
17797 _ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h.  */
17801
17802 /* Override any gcc2 internal prototype to avoid an error.  */
17803 #ifdef __cplusplus
17804 extern "C"
17805 #endif
17806 /* We use char because int might match the return type of a gcc2
17807    builtin and then its argument prototype would still apply.  */
17808 char dld_link ();
17809 int
17810 main ()
17811 {
17812 dld_link ();
17813   ;
17814   return 0;
17815 }
17816 _ACEOF
17817 rm -f conftest.$ac_objext conftest$ac_exeext
17818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17819   (eval $ac_link) 2>conftest.er1
17820   ac_status=$?
17821   grep -v '^ *+' conftest.er1 >conftest.err
17822   rm -f conftest.er1
17823   cat conftest.err >&5
17824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825   (exit $ac_status); } &&
17826          { ac_try='test -z "$ac_cxx_werror_flag"
17827                          || test ! -s conftest.err'
17828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829   (eval $ac_try) 2>&5
17830   ac_status=$?
17831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832   (exit $ac_status); }; } &&
17833          { ac_try='test -s conftest$ac_exeext'
17834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835   (eval $ac_try) 2>&5
17836   ac_status=$?
17837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); }; }; then
17839   ac_cv_lib_dld_dld_link=yes
17840 else
17841   echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17843
17844 ac_cv_lib_dld_dld_link=no
17845 fi
17846 rm -f conftest.err conftest.$ac_objext \
17847       conftest$ac_exeext conftest.$ac_ext
17848 LIBS=$ac_check_lib_save_LIBS
17849 fi
17850 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17851 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17852 if test $ac_cv_lib_dld_dld_link = yes; then
17853   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17854 fi
17855
17856
17857 fi
17858
17859
17860 fi
17861
17862
17863 fi
17864
17865
17866 fi
17867
17868
17869 fi
17870
17871     ;;
17872   esac
17873
17874   if test "x$lt_cv_dlopen" != xno; then
17875     enable_dlopen=yes
17876   else
17877     enable_dlopen=no
17878   fi
17879
17880   case $lt_cv_dlopen in
17881   dlopen)
17882     save_CPPFLAGS="$CPPFLAGS"
17883     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17884
17885     save_LDFLAGS="$LDFLAGS"
17886     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17887
17888     save_LIBS="$LIBS"
17889     LIBS="$lt_cv_dlopen_libs $LIBS"
17890
17891     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17892 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17893 if test "${lt_cv_dlopen_self+set}" = set; then
17894   echo $ECHO_N "(cached) $ECHO_C" >&6
17895 else
17896           if test "$cross_compiling" = yes; then :
17897   lt_cv_dlopen_self=cross
17898 else
17899   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17900   lt_status=$lt_dlunknown
17901   cat > conftest.$ac_ext <<EOF
17902 #line 17902 "configure"
17903 #include "confdefs.h"
17904
17905 #if HAVE_DLFCN_H
17906 #include <dlfcn.h>
17907 #endif
17908
17909 #include <stdio.h>
17910
17911 #ifdef RTLD_GLOBAL
17912 #  define LT_DLGLOBAL           RTLD_GLOBAL
17913 #else
17914 #  ifdef DL_GLOBAL
17915 #    define LT_DLGLOBAL         DL_GLOBAL
17916 #  else
17917 #    define LT_DLGLOBAL         0
17918 #  endif
17919 #endif
17920
17921 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17922    find out it does not work in some platform. */
17923 #ifndef LT_DLLAZY_OR_NOW
17924 #  ifdef RTLD_LAZY
17925 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17926 #  else
17927 #    ifdef DL_LAZY
17928 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17929 #    else
17930 #      ifdef RTLD_NOW
17931 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17932 #      else
17933 #        ifdef DL_NOW
17934 #          define LT_DLLAZY_OR_NOW      DL_NOW
17935 #        else
17936 #          define LT_DLLAZY_OR_NOW      0
17937 #        endif
17938 #      endif
17939 #    endif
17940 #  endif
17941 #endif
17942
17943 #ifdef __cplusplus
17944 extern "C" void exit (int);
17945 #endif
17946
17947 void fnord() { int i=42;}
17948 int main ()
17949 {
17950   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17951   int status = $lt_dlunknown;
17952
17953   if (self)
17954     {
17955       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17956       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17957       /* dlclose (self); */
17958     }
17959
17960     exit (status);
17961 }
17962 EOF
17963   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17964   (eval $ac_link) 2>&5
17965   ac_status=$?
17966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17968     (./conftest; exit; ) 2>/dev/null
17969     lt_status=$?
17970     case x$lt_status in
17971       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17972       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17973       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17974     esac
17975   else :
17976     # compilation failed
17977     lt_cv_dlopen_self=no
17978   fi
17979 fi
17980 rm -fr conftest*
17981
17982
17983 fi
17984 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17985 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17986
17987     if test "x$lt_cv_dlopen_self" = xyes; then
17988       LDFLAGS="$LDFLAGS $link_static_flag"
17989       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17990 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17991 if test "${lt_cv_dlopen_self_static+set}" = set; then
17992   echo $ECHO_N "(cached) $ECHO_C" >&6
17993 else
17994           if test "$cross_compiling" = yes; then :
17995   lt_cv_dlopen_self_static=cross
17996 else
17997   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17998   lt_status=$lt_dlunknown
17999   cat > conftest.$ac_ext <<EOF
18000 #line 18000 "configure"
18001 #include "confdefs.h"
18002
18003 #if HAVE_DLFCN_H
18004 #include <dlfcn.h>
18005 #endif
18006
18007 #include <stdio.h>
18008
18009 #ifdef RTLD_GLOBAL
18010 #  define LT_DLGLOBAL           RTLD_GLOBAL
18011 #else
18012 #  ifdef DL_GLOBAL
18013 #    define LT_DLGLOBAL         DL_GLOBAL
18014 #  else
18015 #    define LT_DLGLOBAL         0
18016 #  endif
18017 #endif
18018
18019 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18020    find out it does not work in some platform. */
18021 #ifndef LT_DLLAZY_OR_NOW
18022 #  ifdef RTLD_LAZY
18023 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18024 #  else
18025 #    ifdef DL_LAZY
18026 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18027 #    else
18028 #      ifdef RTLD_NOW
18029 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18030 #      else
18031 #        ifdef DL_NOW
18032 #          define LT_DLLAZY_OR_NOW      DL_NOW
18033 #        else
18034 #          define LT_DLLAZY_OR_NOW      0
18035 #        endif
18036 #      endif
18037 #    endif
18038 #  endif
18039 #endif
18040
18041 #ifdef __cplusplus
18042 extern "C" void exit (int);
18043 #endif
18044
18045 void fnord() { int i=42;}
18046 int main ()
18047 {
18048   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18049   int status = $lt_dlunknown;
18050
18051   if (self)
18052     {
18053       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18054       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18055       /* dlclose (self); */
18056     }
18057
18058     exit (status);
18059 }
18060 EOF
18061   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18062   (eval $ac_link) 2>&5
18063   ac_status=$?
18064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18066     (./conftest; exit; ) 2>/dev/null
18067     lt_status=$?
18068     case x$lt_status in
18069       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18070       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18071       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18072     esac
18073   else :
18074     # compilation failed
18075     lt_cv_dlopen_self_static=no
18076   fi
18077 fi
18078 rm -fr conftest*
18079
18080
18081 fi
18082 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18083 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18084     fi
18085
18086     CPPFLAGS="$save_CPPFLAGS"
18087     LDFLAGS="$save_LDFLAGS"
18088     LIBS="$save_LIBS"
18089     ;;
18090   esac
18091
18092   case $lt_cv_dlopen_self in
18093   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18094   *) enable_dlopen_self=unknown ;;
18095   esac
18096
18097   case $lt_cv_dlopen_self_static in
18098   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18099   *) enable_dlopen_self_static=unknown ;;
18100   esac
18101 fi
18102
18103
18104 # The else clause should only fire when bootstrapping the
18105 # libtool distribution, otherwise you forgot to ship ltmain.sh
18106 # with your package, and you will get complaints that there are
18107 # no rules to generate ltmain.sh.
18108 if test -f "$ltmain"; then
18109   # See if we are running on zsh, and set the options which allow our commands through
18110   # without removal of \ escapes.
18111   if test -n "${ZSH_VERSION+set}" ; then
18112     setopt NO_GLOB_SUBST
18113   fi
18114   # Now quote all the things that may contain metacharacters while being
18115   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18116   # variables and quote the copies for generation of the libtool script.
18117   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18118     SED SHELL STRIP \
18119     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18120     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18121     deplibs_check_method reload_flag reload_cmds need_locks \
18122     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18123     lt_cv_sys_global_symbol_to_c_name_address \
18124     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18125     old_postinstall_cmds old_postuninstall_cmds \
18126     compiler_CXX \
18127     CC_CXX \
18128     LD_CXX \
18129     lt_prog_compiler_wl_CXX \
18130     lt_prog_compiler_pic_CXX \
18131     lt_prog_compiler_static_CXX \
18132     lt_prog_compiler_no_builtin_flag_CXX \
18133     export_dynamic_flag_spec_CXX \
18134     thread_safe_flag_spec_CXX \
18135     whole_archive_flag_spec_CXX \
18136     enable_shared_with_static_runtimes_CXX \
18137     old_archive_cmds_CXX \
18138     old_archive_from_new_cmds_CXX \
18139     predep_objects_CXX \
18140     postdep_objects_CXX \
18141     predeps_CXX \
18142     postdeps_CXX \
18143     compiler_lib_search_path_CXX \
18144     archive_cmds_CXX \
18145     archive_expsym_cmds_CXX \
18146     postinstall_cmds_CXX \
18147     postuninstall_cmds_CXX \
18148     old_archive_from_expsyms_cmds_CXX \
18149     allow_undefined_flag_CXX \
18150     no_undefined_flag_CXX \
18151     export_symbols_cmds_CXX \
18152     hardcode_libdir_flag_spec_CXX \
18153     hardcode_libdir_flag_spec_ld_CXX \
18154     hardcode_libdir_separator_CXX \
18155     hardcode_automatic_CXX \
18156     module_cmds_CXX \
18157     module_expsym_cmds_CXX \
18158     lt_cv_prog_compiler_c_o_CXX \
18159     exclude_expsyms_CXX \
18160     include_expsyms_CXX; do
18161
18162     case $var in
18163     old_archive_cmds_CXX | \
18164     old_archive_from_new_cmds_CXX | \
18165     archive_cmds_CXX | \
18166     archive_expsym_cmds_CXX | \
18167     module_cmds_CXX | \
18168     module_expsym_cmds_CXX | \
18169     old_archive_from_expsyms_cmds_CXX | \
18170     export_symbols_cmds_CXX | \
18171     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18172     postinstall_cmds | postuninstall_cmds | \
18173     old_postinstall_cmds | old_postuninstall_cmds | \
18174     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18175       # Double-quote double-evaled strings.
18176       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18177       ;;
18178     *)
18179       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18180       ;;
18181     esac
18182   done
18183
18184   case $lt_echo in
18185   *'\$0 --fallback-echo"')
18186     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18187     ;;
18188   esac
18189
18190 cfgfile="$ofile"
18191
18192   cat <<__EOF__ >> "$cfgfile"
18193 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18194
18195 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18196
18197 # Shell to use when invoking shell scripts.
18198 SHELL=$lt_SHELL
18199
18200 # Whether or not to build shared libraries.
18201 build_libtool_libs=$enable_shared
18202
18203 # Whether or not to build static libraries.
18204 build_old_libs=$enable_static
18205
18206 # Whether or not to add -lc for building shared libraries.
18207 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18208
18209 # Whether or not to disallow shared libs when runtime libs are static
18210 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18211
18212 # Whether or not to optimize for fast installation.
18213 fast_install=$enable_fast_install
18214
18215 # The host system.
18216 host_alias=$host_alias
18217 host=$host
18218
18219 # An echo program that does not interpret backslashes.
18220 echo=$lt_echo
18221
18222 # The archiver.
18223 AR=$lt_AR
18224 AR_FLAGS=$lt_AR_FLAGS
18225
18226 # A C compiler.
18227 LTCC=$lt_LTCC
18228
18229 # A language-specific compiler.
18230 CC=$lt_compiler_CXX
18231
18232 # Is the compiler the GNU C compiler?
18233 with_gcc=$GCC_CXX
18234
18235 # An ERE matcher.
18236 EGREP=$lt_EGREP
18237
18238 # The linker used to build libraries.
18239 LD=$lt_LD_CXX
18240
18241 # Whether we need hard or soft links.
18242 LN_S=$lt_LN_S
18243
18244 # A BSD-compatible nm program.
18245 NM=$lt_NM
18246
18247 # A symbol stripping program
18248 STRIP=$lt_STRIP
18249
18250 # Used to examine libraries when file_magic_cmd begins "file"
18251 MAGIC_CMD=$MAGIC_CMD
18252
18253 # Used on cygwin: DLL creation program.
18254 DLLTOOL="$DLLTOOL"
18255
18256 # Used on cygwin: object dumper.
18257 OBJDUMP="$OBJDUMP"
18258
18259 # Used on cygwin: assembler.
18260 AS="$AS"
18261
18262 # The name of the directory that contains temporary libtool files.
18263 objdir=$objdir
18264
18265 # How to create reloadable object files.
18266 reload_flag=$lt_reload_flag
18267 reload_cmds=$lt_reload_cmds
18268
18269 # How to pass a linker flag through the compiler.
18270 wl=$lt_lt_prog_compiler_wl_CXX
18271
18272 # Object file suffix (normally "o").
18273 objext="$ac_objext"
18274
18275 # Old archive suffix (normally "a").
18276 libext="$libext"
18277
18278 # Shared library suffix (normally ".so").
18279 shrext_cmds='$shrext_cmds'
18280
18281 # Executable file suffix (normally "").
18282 exeext="$exeext"
18283
18284 # Additional compiler flags for building library objects.
18285 pic_flag=$lt_lt_prog_compiler_pic_CXX
18286 pic_mode=$pic_mode
18287
18288 # What is the maximum length of a command?
18289 max_cmd_len=$lt_cv_sys_max_cmd_len
18290
18291 # Does compiler simultaneously support -c and -o options?
18292 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18293
18294 # Must we lock files when doing compilation ?
18295 need_locks=$lt_need_locks
18296
18297 # Do we need the lib prefix for modules?
18298 need_lib_prefix=$need_lib_prefix
18299
18300 # Do we need a version for libraries?
18301 need_version=$need_version
18302
18303 # Whether dlopen is supported.
18304 dlopen_support=$enable_dlopen
18305
18306 # Whether dlopen of programs is supported.
18307 dlopen_self=$enable_dlopen_self
18308
18309 # Whether dlopen of statically linked programs is supported.
18310 dlopen_self_static=$enable_dlopen_self_static
18311
18312 # Compiler flag to prevent dynamic linking.
18313 link_static_flag=$lt_lt_prog_compiler_static_CXX
18314
18315 # Compiler flag to turn off builtin functions.
18316 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18317
18318 # Compiler flag to allow reflexive dlopens.
18319 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18320
18321 # Compiler flag to generate shared objects directly from archives.
18322 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18323
18324 # Compiler flag to generate thread-safe objects.
18325 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18326
18327 # Library versioning type.
18328 version_type=$version_type
18329
18330 # Format of library name prefix.
18331 libname_spec=$lt_libname_spec
18332
18333 # List of archive names.  First name is the real one, the rest are links.
18334 # The last name is the one that the linker finds with -lNAME.
18335 library_names_spec=$lt_library_names_spec
18336
18337 # The coded name of the library, if different from the real name.
18338 soname_spec=$lt_soname_spec
18339
18340 # Commands used to build and install an old-style archive.
18341 RANLIB=$lt_RANLIB
18342 old_archive_cmds=$lt_old_archive_cmds_CXX
18343 old_postinstall_cmds=$lt_old_postinstall_cmds
18344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18345
18346 # Create an old-style archive from a shared archive.
18347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18348
18349 # Create a temporary old-style archive to link instead of a shared archive.
18350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18351
18352 # Commands used to build and install a shared archive.
18353 archive_cmds=$lt_archive_cmds_CXX
18354 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18355 postinstall_cmds=$lt_postinstall_cmds
18356 postuninstall_cmds=$lt_postuninstall_cmds
18357
18358 # Commands used to build a loadable module (assumed same as above if empty)
18359 module_cmds=$lt_module_cmds_CXX
18360 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18361
18362 # Commands to strip libraries.
18363 old_striplib=$lt_old_striplib
18364 striplib=$lt_striplib
18365
18366 # Dependencies to place before the objects being linked to create a
18367 # shared library.
18368 predep_objects=$lt_predep_objects_CXX
18369
18370 # Dependencies to place after the objects being linked to create a
18371 # shared library.
18372 postdep_objects=$lt_postdep_objects_CXX
18373
18374 # Dependencies to place before the objects being linked to create a
18375 # shared library.
18376 predeps=$lt_predeps_CXX
18377
18378 # Dependencies to place after the objects being linked to create a
18379 # shared library.
18380 postdeps=$lt_postdeps_CXX
18381
18382 # The library search path used internally by the compiler when linking
18383 # a shared library.
18384 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18385
18386 # Method to check whether dependent libraries are shared objects.
18387 deplibs_check_method=$lt_deplibs_check_method
18388
18389 # Command to use when deplibs_check_method == file_magic.
18390 file_magic_cmd=$lt_file_magic_cmd
18391
18392 # Flag that allows shared libraries with undefined symbols to be built.
18393 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18394
18395 # Flag that forces no undefined symbols.
18396 no_undefined_flag=$lt_no_undefined_flag_CXX
18397
18398 # Commands used to finish a libtool library installation in a directory.
18399 finish_cmds=$lt_finish_cmds
18400
18401 # Same as above, but a single script fragment to be evaled but not shown.
18402 finish_eval=$lt_finish_eval
18403
18404 # Take the output of nm and produce a listing of raw symbols and C names.
18405 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18406
18407 # Transform the output of nm in a proper C declaration
18408 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18409
18410 # Transform the output of nm in a C name address pair
18411 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18412
18413 # This is the shared library runtime path variable.
18414 runpath_var=$runpath_var
18415
18416 # This is the shared library path variable.
18417 shlibpath_var=$shlibpath_var
18418
18419 # Is shlibpath searched before the hard-coded library search path?
18420 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18421
18422 # How to hardcode a shared library path into an executable.
18423 hardcode_action=$hardcode_action_CXX
18424
18425 # Whether we should hardcode library paths into libraries.
18426 hardcode_into_libs=$hardcode_into_libs
18427
18428 # Flag to hardcode \$libdir into a binary during linking.
18429 # This must work even if \$libdir does not exist.
18430 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18431
18432 # If ld is used when linking, flag to hardcode \$libdir into
18433 # a binary during linking. This must work even if \$libdir does
18434 # not exist.
18435 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18436
18437 # Whether we need a single -rpath flag with a separated argument.
18438 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18439
18440 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18441 # resulting binary.
18442 hardcode_direct=$hardcode_direct_CXX
18443
18444 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18445 # resulting binary.
18446 hardcode_minus_L=$hardcode_minus_L_CXX
18447
18448 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18449 # the resulting binary.
18450 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18451
18452 # Set to yes if building a shared library automatically hardcodes DIR into the library
18453 # and all subsequent libraries and executables linked against it.
18454 hardcode_automatic=$hardcode_automatic_CXX
18455
18456 # Variables whose values should be saved in libtool wrapper scripts and
18457 # restored at relink time.
18458 variables_saved_for_relink="$variables_saved_for_relink"
18459
18460 # Whether libtool must link a program against all its dependency libraries.
18461 link_all_deplibs=$link_all_deplibs_CXX
18462
18463 # Compile-time system search path for libraries
18464 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18465
18466 # Run-time system search path for libraries
18467 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18468
18469 # Fix the shell variable \$srcfile for the compiler.
18470 fix_srcfile_path="$fix_srcfile_path_CXX"
18471
18472 # Set to yes if exported symbols are required.
18473 always_export_symbols=$always_export_symbols_CXX
18474
18475 # The commands to list exported symbols.
18476 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18477
18478 # The commands to extract the exported symbol list from a shared archive.
18479 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18480
18481 # Symbols that should not be listed in the preloaded symbols.
18482 exclude_expsyms=$lt_exclude_expsyms_CXX
18483
18484 # Symbols that must always be exported.
18485 include_expsyms=$lt_include_expsyms_CXX
18486
18487 # ### END LIBTOOL TAG CONFIG: $tagname
18488
18489 __EOF__
18490
18491
18492 else
18493   # If there is no Makefile yet, we rely on a make rule to execute
18494   # `config.status --recheck' to rerun these tests and create the
18495   # libtool script then.
18496   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18497   if test -f "$ltmain_in"; then
18498     test -f Makefile && make "$ltmain"
18499   fi
18500 fi
18501
18502
18503 ac_ext=c
18504 ac_cpp='$CPP $CPPFLAGS'
18505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18508
18509 CC=$lt_save_CC
18510 LDCXX=$LD
18511 LD=$lt_save_LD
18512 GCC=$lt_save_GCC
18513 with_gnu_ldcxx=$with_gnu_ld
18514 with_gnu_ld=$lt_save_with_gnu_ld
18515 lt_cv_path_LDCXX=$lt_cv_path_LD
18516 lt_cv_path_LD=$lt_save_path_LD
18517 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18518 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18519
18520         else
18521           tagname=""
18522         fi
18523         ;;
18524
18525       F77)
18526         if test -n "$F77" && test "X$F77" != "Xno"; then
18527
18528 ac_ext=f
18529 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18530 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18531 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18532
18533
18534 archive_cmds_need_lc_F77=no
18535 allow_undefined_flag_F77=
18536 always_export_symbols_F77=no
18537 archive_expsym_cmds_F77=
18538 export_dynamic_flag_spec_F77=
18539 hardcode_direct_F77=no
18540 hardcode_libdir_flag_spec_F77=
18541 hardcode_libdir_flag_spec_ld_F77=
18542 hardcode_libdir_separator_F77=
18543 hardcode_minus_L_F77=no
18544 hardcode_automatic_F77=no
18545 module_cmds_F77=
18546 module_expsym_cmds_F77=
18547 link_all_deplibs_F77=unknown
18548 old_archive_cmds_F77=$old_archive_cmds
18549 no_undefined_flag_F77=
18550 whole_archive_flag_spec_F77=
18551 enable_shared_with_static_runtimes_F77=no
18552
18553 # Source file extension for f77 test sources.
18554 ac_ext=f
18555
18556 # Object file extension for compiled f77 test sources.
18557 objext=o
18558 objext_F77=$objext
18559
18560 # Code to be used in simple compile tests
18561 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18562
18563 # Code to be used in simple link tests
18564 lt_simple_link_test_code="      program t\n      end\n"
18565
18566 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18567
18568 # If no C compiler was specified, use CC.
18569 LTCC=${LTCC-"$CC"}
18570
18571 # Allow CC to be a program name with arguments.
18572 compiler=$CC
18573
18574
18575 # Allow CC to be a program name with arguments.
18576 lt_save_CC="$CC"
18577 CC=${F77-"f77"}
18578 compiler=$CC
18579 compiler_F77=$CC
18580 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18581
18582 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18583 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18584 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18585 echo "${ECHO_T}$can_build_shared" >&6
18586
18587 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18588 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18589 test "$can_build_shared" = "no" && enable_shared=no
18590
18591 # On AIX, shared libraries and static libraries use the same namespace, and
18592 # are all built from PIC.
18593 case "$host_os" in
18594 aix3*)
18595   test "$enable_shared" = yes && enable_static=no
18596   if test -n "$RANLIB"; then
18597     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18598     postinstall_cmds='$RANLIB $lib'
18599   fi
18600   ;;
18601 aix4* | aix5*)
18602   test "$enable_shared" = yes && enable_static=no
18603   ;;
18604 esac
18605 echo "$as_me:$LINENO: result: $enable_shared" >&5
18606 echo "${ECHO_T}$enable_shared" >&6
18607
18608 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18609 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18610 # Make sure either enable_shared or enable_static is yes.
18611 test "$enable_shared" = yes || enable_static=yes
18612 echo "$as_me:$LINENO: result: $enable_static" >&5
18613 echo "${ECHO_T}$enable_static" >&6
18614
18615 test "$ld_shlibs_F77" = no && can_build_shared=no
18616
18617 GCC_F77="$G77"
18618 LD_F77="$LD"
18619
18620 lt_prog_compiler_wl_F77=
18621 lt_prog_compiler_pic_F77=
18622 lt_prog_compiler_static_F77=
18623
18624 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18625 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18626
18627   if test "$GCC" = yes; then
18628     lt_prog_compiler_wl_F77='-Wl,'
18629     lt_prog_compiler_static_F77='-static'
18630
18631     case $host_os in
18632       aix*)
18633       # All AIX code is PIC.
18634       if test "$host_cpu" = ia64; then
18635         # AIX 5 now supports IA64 processor
18636         lt_prog_compiler_static_F77='-Bstatic'
18637       fi
18638       ;;
18639
18640     amigaos*)
18641       # FIXME: we need at least 68020 code to build shared libraries, but
18642       # adding the `-m68020' flag to GCC prevents building anything better,
18643       # like `-m68040'.
18644       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18645       ;;
18646
18647     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18648       # PIC is the default for these OSes.
18649       ;;
18650
18651     mingw* | pw32* | os2*)
18652       # This hack is so that the source file can tell whether it is being
18653       # built for inclusion in a dll (and should export symbols for example).
18654       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18655       ;;
18656
18657     darwin* | rhapsody*)
18658       # PIC is the default on this platform
18659       # Common symbols not allowed in MH_DYLIB files
18660       lt_prog_compiler_pic_F77='-fno-common'
18661       ;;
18662
18663     msdosdjgpp*)
18664       # Just because we use GCC doesn't mean we suddenly get shared libraries
18665       # on systems that don't support them.
18666       lt_prog_compiler_can_build_shared_F77=no
18667       enable_shared=no
18668       ;;
18669
18670     sysv4*MP*)
18671       if test -d /usr/nec; then
18672         lt_prog_compiler_pic_F77=-Kconform_pic
18673       fi
18674       ;;
18675
18676     hpux*)
18677       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18678       # not for PA HP-UX.
18679       case "$host_cpu" in
18680       hppa*64*|ia64*)
18681         # +Z the default
18682         ;;
18683       *)
18684         lt_prog_compiler_pic_F77='-fPIC'
18685         ;;
18686       esac
18687       ;;
18688
18689     *)
18690       lt_prog_compiler_pic_F77='-fPIC'
18691       ;;
18692     esac
18693   else
18694     # PORTME Check for flag to pass linker flags through the system compiler.
18695     case $host_os in
18696     aix*)
18697       lt_prog_compiler_wl_F77='-Wl,'
18698       if test "$host_cpu" = ia64; then
18699         # AIX 5 now supports IA64 processor
18700         lt_prog_compiler_static_F77='-Bstatic'
18701       else
18702         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18703       fi
18704       ;;
18705
18706     mingw* | pw32* | os2*)
18707       # This hack is so that the source file can tell whether it is being
18708       # built for inclusion in a dll (and should export symbols for example).
18709       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18710       ;;
18711
18712     hpux9* | hpux10* | hpux11*)
18713       lt_prog_compiler_wl_F77='-Wl,'
18714       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18715       # not for PA HP-UX.
18716       case "$host_cpu" in
18717       hppa*64*|ia64*)
18718         # +Z the default
18719         ;;
18720       *)
18721         lt_prog_compiler_pic_F77='+Z'
18722         ;;
18723       esac
18724       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18725       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18726       ;;
18727
18728     irix5* | irix6* | nonstopux*)
18729       lt_prog_compiler_wl_F77='-Wl,'
18730       # PIC (with -KPIC) is the default.
18731       lt_prog_compiler_static_F77='-non_shared'
18732       ;;
18733
18734     newsos6)
18735       lt_prog_compiler_pic_F77='-KPIC'
18736       lt_prog_compiler_static_F77='-Bstatic'
18737       ;;
18738
18739     linux*)
18740       case $CC in
18741       icc* | ecc*)
18742         lt_prog_compiler_wl_F77='-Wl,'
18743         lt_prog_compiler_pic_F77='-KPIC'
18744         lt_prog_compiler_static_F77='-static'
18745         ;;
18746       ccc*)
18747         lt_prog_compiler_wl_F77='-Wl,'
18748         # All Alpha code is PIC.
18749         lt_prog_compiler_static_F77='-non_shared'
18750         ;;
18751       esac
18752       ;;
18753
18754     osf3* | osf4* | osf5*)
18755       lt_prog_compiler_wl_F77='-Wl,'
18756       # All OSF/1 code is PIC.
18757       lt_prog_compiler_static_F77='-non_shared'
18758       ;;
18759
18760     sco3.2v5*)
18761       lt_prog_compiler_pic_F77='-Kpic'
18762       lt_prog_compiler_static_F77='-dn'
18763       ;;
18764
18765     solaris*)
18766       lt_prog_compiler_wl_F77='-Wl,'
18767       lt_prog_compiler_pic_F77='-KPIC'
18768       lt_prog_compiler_static_F77='-Bstatic'
18769       ;;
18770
18771     sunos4*)
18772       lt_prog_compiler_wl_F77='-Qoption ld '
18773       lt_prog_compiler_pic_F77='-PIC'
18774       lt_prog_compiler_static_F77='-Bstatic'
18775       ;;
18776
18777     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18778       lt_prog_compiler_wl_F77='-Wl,'
18779       lt_prog_compiler_pic_F77='-KPIC'
18780       lt_prog_compiler_static_F77='-Bstatic'
18781       ;;
18782
18783     sysv4*MP*)
18784       if test -d /usr/nec ;then
18785         lt_prog_compiler_pic_F77='-Kconform_pic'
18786         lt_prog_compiler_static_F77='-Bstatic'
18787       fi
18788       ;;
18789
18790     uts4*)
18791       lt_prog_compiler_pic_F77='-pic'
18792       lt_prog_compiler_static_F77='-Bstatic'
18793       ;;
18794
18795     *)
18796       lt_prog_compiler_can_build_shared_F77=no
18797       ;;
18798     esac
18799   fi
18800
18801 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18802 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18803
18804 #
18805 # Check to make sure the PIC flag actually works.
18806 #
18807 if test -n "$lt_prog_compiler_pic_F77"; then
18808
18809 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18810 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18811 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18812   echo $ECHO_N "(cached) $ECHO_C" >&6
18813 else
18814   lt_prog_compiler_pic_works_F77=no
18815   ac_outfile=conftest.$ac_objext
18816    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18817    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18818    # Insert the option either (1) after the last *FLAGS variable, or
18819    # (2) before a word containing "conftest.", or (3) at the end.
18820    # Note that $ac_compile itself does not contain backslashes and begins
18821    # with a dollar sign (not a hyphen), so the echo should work correctly.
18822    # The option is referenced via a variable to avoid confusing sed.
18823    lt_compile=`echo "$ac_compile" | $SED \
18824    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18825    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18826    -e 's:$: $lt_compiler_flag:'`
18827    (eval echo "\"\$as_me:18827: $lt_compile\"" >&5)
18828    (eval "$lt_compile" 2>conftest.err)
18829    ac_status=$?
18830    cat conftest.err >&5
18831    echo "$as_me:18831: \$? = $ac_status" >&5
18832    if (exit $ac_status) && test -s "$ac_outfile"; then
18833      # The compiler can only warn and ignore the option if not recognized
18834      # So say no if there are warnings
18835      if test ! -s conftest.err; then
18836        lt_prog_compiler_pic_works_F77=yes
18837      fi
18838    fi
18839    $rm conftest*
18840
18841 fi
18842 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18843 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18844
18845 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18846     case $lt_prog_compiler_pic_F77 in
18847      "" | " "*) ;;
18848      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18849      esac
18850 else
18851     lt_prog_compiler_pic_F77=
18852      lt_prog_compiler_can_build_shared_F77=no
18853 fi
18854
18855 fi
18856 case "$host_os" in
18857   # For platforms which do not support PIC, -DPIC is meaningless:
18858   *djgpp*)
18859     lt_prog_compiler_pic_F77=
18860     ;;
18861   *)
18862     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18863     ;;
18864 esac
18865
18866 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18867 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18868 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18869   echo $ECHO_N "(cached) $ECHO_C" >&6
18870 else
18871   lt_cv_prog_compiler_c_o_F77=no
18872    $rm -r conftest 2>/dev/null
18873    mkdir conftest
18874    cd conftest
18875    mkdir out
18876    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18877
18878    lt_compiler_flag="-o out/conftest2.$ac_objext"
18879    # Insert the option either (1) after the last *FLAGS variable, or
18880    # (2) before a word containing "conftest.", or (3) at the end.
18881    # Note that $ac_compile itself does not contain backslashes and begins
18882    # with a dollar sign (not a hyphen), so the echo should work correctly.
18883    lt_compile=`echo "$ac_compile" | $SED \
18884    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18885    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18886    -e 's:$: $lt_compiler_flag:'`
18887    (eval echo "\"\$as_me:18887: $lt_compile\"" >&5)
18888    (eval "$lt_compile" 2>out/conftest.err)
18889    ac_status=$?
18890    cat out/conftest.err >&5
18891    echo "$as_me:18891: \$? = $ac_status" >&5
18892    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18893    then
18894      # The compiler can only warn and ignore the option if not recognized
18895      # So say no if there are warnings
18896      if test ! -s out/conftest.err; then
18897        lt_cv_prog_compiler_c_o_F77=yes
18898      fi
18899    fi
18900    chmod u+w .
18901    $rm conftest*
18902    # SGI C++ compiler will create directory out/ii_files/ for
18903    # template instantiation
18904    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18905    $rm out/* && rmdir out
18906    cd ..
18907    rmdir conftest
18908    $rm conftest*
18909
18910 fi
18911 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18912 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18913
18914
18915 hard_links="nottested"
18916 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18917   # do not overwrite the value of need_locks provided by the user
18918   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18919 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18920   hard_links=yes
18921   $rm conftest*
18922   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18923   touch conftest.a
18924   ln conftest.a conftest.b 2>&5 || hard_links=no
18925   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18926   echo "$as_me:$LINENO: result: $hard_links" >&5
18927 echo "${ECHO_T}$hard_links" >&6
18928   if test "$hard_links" = no; then
18929     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18930 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18931     need_locks=warn
18932   fi
18933 else
18934   need_locks=no
18935 fi
18936
18937 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18938 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18939
18940   runpath_var=
18941   allow_undefined_flag_F77=
18942   enable_shared_with_static_runtimes_F77=no
18943   archive_cmds_F77=
18944   archive_expsym_cmds_F77=
18945   old_archive_From_new_cmds_F77=
18946   old_archive_from_expsyms_cmds_F77=
18947   export_dynamic_flag_spec_F77=
18948   whole_archive_flag_spec_F77=
18949   thread_safe_flag_spec_F77=
18950   hardcode_libdir_flag_spec_F77=
18951   hardcode_libdir_flag_spec_ld_F77=
18952   hardcode_libdir_separator_F77=
18953   hardcode_direct_F77=no
18954   hardcode_minus_L_F77=no
18955   hardcode_shlibpath_var_F77=unsupported
18956   link_all_deplibs_F77=unknown
18957   hardcode_automatic_F77=no
18958   module_cmds_F77=
18959   module_expsym_cmds_F77=
18960   always_export_symbols_F77=no
18961   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18962   # include_expsyms should be a list of space-separated symbols to be *always*
18963   # included in the symbol list
18964   include_expsyms_F77=
18965   # exclude_expsyms can be an extended regexp of symbols to exclude
18966   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18967   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18968   # as well as any symbol that contains `d'.
18969   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
18970   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18971   # platforms (ab)use it in PIC code, but their linkers get confused if
18972   # the symbol is explicitly referenced.  Since portable code cannot
18973   # rely on this symbol name, it's probably fine to never include it in
18974   # preloaded symbol tables.
18975   extract_expsyms_cmds=
18976
18977   case $host_os in
18978   cygwin* | mingw* | pw32*)
18979     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18980     # When not using gcc, we currently assume that we are using
18981     # Microsoft Visual C++.
18982     if test "$GCC" != yes; then
18983       with_gnu_ld=no
18984     fi
18985     ;;
18986   openbsd*)
18987     with_gnu_ld=no
18988     ;;
18989   esac
18990
18991   ld_shlibs_F77=yes
18992   if test "$with_gnu_ld" = yes; then
18993     # If archive_cmds runs LD, not CC, wlarc should be empty
18994     wlarc='${wl}'
18995
18996     # See if GNU ld supports shared libraries.
18997     case $host_os in
18998     aix3* | aix4* | aix5*)
18999       # On AIX/PPC, the GNU linker is very broken
19000       if test "$host_cpu" != ia64; then
19001         ld_shlibs_F77=no
19002         cat <<EOF 1>&2
19003
19004 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19005 *** to be unable to reliably create shared libraries on AIX.
19006 *** Therefore, libtool is disabling shared libraries support.  If you
19007 *** really care for shared libraries, you may want to modify your PATH
19008 *** so that a non-GNU linker is found, and then restart.
19009
19010 EOF
19011       fi
19012       ;;
19013
19014     amigaos*)
19015       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)'
19016       hardcode_libdir_flag_spec_F77='-L$libdir'
19017       hardcode_minus_L_F77=yes
19018
19019       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19020       # that the semantics of dynamic libraries on AmigaOS, at least up
19021       # to version 4, is to share data among multiple programs linked
19022       # with the same dynamic library.  Since this doesn't match the
19023       # behavior of shared libraries on other platforms, we can't use
19024       # them.
19025       ld_shlibs_F77=no
19026       ;;
19027
19028     beos*)
19029       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19030         allow_undefined_flag_F77=unsupported
19031         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19032         # support --undefined.  This deserves some investigation.  FIXME
19033         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19034       else
19035         ld_shlibs_F77=no
19036       fi
19037       ;;
19038
19039     cygwin* | mingw* | pw32*)
19040       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19041       # as there is no search path for DLLs.
19042       hardcode_libdir_flag_spec_F77='-L$libdir'
19043       allow_undefined_flag_F77=unsupported
19044       always_export_symbols_F77=no
19045       enable_shared_with_static_runtimes_F77=yes
19046       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19047
19048       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19049         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19050         # If the export-symbols file already is a .def file (1st line
19051         # is EXPORTS), use it as is; otherwise, prepend...
19052         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19053           cp $export_symbols $output_objdir/$soname.def;
19054         else
19055           echo EXPORTS > $output_objdir/$soname.def;
19056           cat $export_symbols >> $output_objdir/$soname.def;
19057         fi~
19058         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19059       else
19060         ld_shlibs=no
19061       fi
19062       ;;
19063
19064     netbsd*)
19065       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19066         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19067         wlarc=
19068       else
19069         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19070         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19071       fi
19072       ;;
19073
19074     solaris* | sysv5*)
19075       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19076         ld_shlibs_F77=no
19077         cat <<EOF 1>&2
19078
19079 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19080 *** create shared libraries on Solaris systems.  Therefore, libtool
19081 *** is disabling shared libraries support.  We urge you to upgrade GNU
19082 *** binutils to release 2.9.1 or newer.  Another option is to modify
19083 *** your PATH or compiler configuration so that the native linker is
19084 *** used, and then restart.
19085
19086 EOF
19087       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19088         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19089         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19090       else
19091         ld_shlibs_F77=no
19092       fi
19093       ;;
19094
19095     sunos4*)
19096       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19097       wlarc=
19098       hardcode_direct_F77=yes
19099       hardcode_shlibpath_var_F77=no
19100       ;;
19101
19102   linux*)
19103     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19104         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19105         archive_cmds_F77="$tmp_archive_cmds"
19106       supports_anon_versioning=no
19107       case `$LD -v 2>/dev/null` in
19108         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19109         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19110         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19111         *\ 2.11.*) ;; # other 2.11 versions
19112         *) supports_anon_versioning=yes ;;
19113       esac
19114       if test $supports_anon_versioning = yes; then
19115         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19116 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19117 $echo "local: *; };" >> $output_objdir/$libname.ver~
19118         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19119       else
19120         archive_expsym_cmds_F77="$tmp_archive_cmds"
19121       fi
19122     else
19123       ld_shlibs_F77=no
19124     fi
19125     ;;
19126
19127     *)
19128       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19129         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19130         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19131       else
19132         ld_shlibs_F77=no
19133       fi
19134       ;;
19135     esac
19136
19137     if test "$ld_shlibs_F77" = yes; then
19138       runpath_var=LD_RUN_PATH
19139       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19140       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19141       # ancient GNU ld didn't support --whole-archive et. al.
19142       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19143         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19144       else
19145         whole_archive_flag_spec_F77=
19146       fi
19147     fi
19148   else
19149     # PORTME fill in a description of your system's linker (not GNU ld)
19150     case $host_os in
19151     aix3*)
19152       allow_undefined_flag_F77=unsupported
19153       always_export_symbols_F77=yes
19154       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'
19155       # Note: this linker hardcodes the directories in LIBPATH if there
19156       # are no directories specified by -L.
19157       hardcode_minus_L_F77=yes
19158       if test "$GCC" = yes && test -z "$link_static_flag"; then
19159         # Neither direct hardcoding nor static linking is supported with a
19160         # broken collect2.
19161         hardcode_direct_F77=unsupported
19162       fi
19163       ;;
19164
19165     aix4* | aix5*)
19166       if test "$host_cpu" = ia64; then
19167         # On IA64, the linker does run time linking by default, so we don't
19168         # have to do anything special.
19169         aix_use_runtimelinking=no
19170         exp_sym_flag='-Bexport'
19171         no_entry_flag=""
19172       else
19173         # If we're using GNU nm, then we don't want the "-C" option.
19174         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19175         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19176           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'
19177         else
19178           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'
19179         fi
19180         aix_use_runtimelinking=no
19181
19182         # Test if we are trying to use run time linking or normal
19183         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19184         # need to do runtime linking.
19185         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19186           for ld_flag in $LDFLAGS; do
19187           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19188             aix_use_runtimelinking=yes
19189             break
19190           fi
19191           done
19192         esac
19193
19194         exp_sym_flag='-bexport'
19195         no_entry_flag='-bnoentry'
19196       fi
19197
19198       # When large executables or shared objects are built, AIX ld can
19199       # have problems creating the table of contents.  If linking a library
19200       # or program results in "error TOC overflow" add -mminimal-toc to
19201       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19202       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19203
19204       archive_cmds_F77=''
19205       hardcode_direct_F77=yes
19206       hardcode_libdir_separator_F77=':'
19207       link_all_deplibs_F77=yes
19208
19209       if test "$GCC" = yes; then
19210         case $host_os in aix4.012|aix4.012.*)
19211         # We only want to do this on AIX 4.2 and lower, the check
19212         # below for broken collect2 doesn't work under 4.3+
19213           collect2name=`${CC} -print-prog-name=collect2`
19214           if test -f "$collect2name" && \
19215            strings "$collect2name" | grep resolve_lib_name >/dev/null
19216           then
19217           # We have reworked collect2
19218           hardcode_direct_F77=yes
19219           else
19220           # We have old collect2
19221           hardcode_direct_F77=unsupported
19222           # It fails to find uninstalled libraries when the uninstalled
19223           # path is not listed in the libpath.  Setting hardcode_minus_L
19224           # to unsupported forces relinking
19225           hardcode_minus_L_F77=yes
19226           hardcode_libdir_flag_spec_F77='-L$libdir'
19227           hardcode_libdir_separator_F77=
19228           fi
19229         esac
19230         shared_flag='-shared'
19231       else
19232         # not using gcc
19233         if test "$host_cpu" = ia64; then
19234         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19235         # chokes on -Wl,-G. The following line is correct:
19236           shared_flag='-G'
19237         else
19238         if test "$aix_use_runtimelinking" = yes; then
19239             shared_flag='${wl}-G'
19240           else
19241             shared_flag='${wl}-bM:SRE'
19242         fi
19243         fi
19244       fi
19245
19246       # It seems that -bexpall does not export symbols beginning with
19247       # underscore (_), so it is better to generate a list of symbols to export.
19248       always_export_symbols_F77=yes
19249       if test "$aix_use_runtimelinking" = yes; then
19250         # Warning - without using the other runtime loading flags (-brtl),
19251         # -berok will link without error, but may produce a broken library.
19252         allow_undefined_flag_F77='-berok'
19253        # Determine the default libpath from the value encoded in an empty executable.
19254        cat >conftest.$ac_ext <<_ACEOF
19255       program main
19256
19257       end
19258 _ACEOF
19259 rm -f conftest.$ac_objext conftest$ac_exeext
19260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19261   (eval $ac_link) 2>conftest.er1
19262   ac_status=$?
19263   grep -v '^ *+' conftest.er1 >conftest.err
19264   rm -f conftest.er1
19265   cat conftest.err >&5
19266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267   (exit $ac_status); } &&
19268          { ac_try='test -z "$ac_f77_werror_flag"
19269                          || test ! -s conftest.err'
19270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271   (eval $ac_try) 2>&5
19272   ac_status=$?
19273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274   (exit $ac_status); }; } &&
19275          { ac_try='test -s conftest$ac_exeext'
19276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277   (eval $ac_try) 2>&5
19278   ac_status=$?
19279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280   (exit $ac_status); }; }; then
19281
19282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19283 }'`
19284 # Check for a 64-bit object if we didn't find anything.
19285 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; }
19286 }'`; fi
19287 else
19288   echo "$as_me: failed program was:" >&5
19289 sed 's/^/| /' conftest.$ac_ext >&5
19290
19291 fi
19292 rm -f conftest.err conftest.$ac_objext \
19293       conftest$ac_exeext conftest.$ac_ext
19294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19295
19296        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19297         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19298        else
19299         if test "$host_cpu" = ia64; then
19300           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19301           allow_undefined_flag_F77="-z nodefs"
19302           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
19303         else
19304          # Determine the default libpath from the value encoded in an empty executable.
19305          cat >conftest.$ac_ext <<_ACEOF
19306       program main
19307
19308       end
19309 _ACEOF
19310 rm -f conftest.$ac_objext conftest$ac_exeext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19312   (eval $ac_link) 2>conftest.er1
19313   ac_status=$?
19314   grep -v '^ *+' conftest.er1 >conftest.err
19315   rm -f conftest.er1
19316   cat conftest.err >&5
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); } &&
19319          { ac_try='test -z "$ac_f77_werror_flag"
19320                          || test ! -s conftest.err'
19321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322   (eval $ac_try) 2>&5
19323   ac_status=$?
19324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325   (exit $ac_status); }; } &&
19326          { ac_try='test -s conftest$ac_exeext'
19327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328   (eval $ac_try) 2>&5
19329   ac_status=$?
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); }; }; then
19332
19333 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19334 }'`
19335 # Check for a 64-bit object if we didn't find anything.
19336 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; }
19337 }'`; fi
19338 else
19339   echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19341
19342 fi
19343 rm -f conftest.err conftest.$ac_objext \
19344       conftest$ac_exeext conftest.$ac_ext
19345 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19346
19347          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19348           # Warning - without using the other run time loading flags,
19349           # -berok will link without error, but may produce a broken library.
19350           no_undefined_flag_F77=' ${wl}-bernotok'
19351           allow_undefined_flag_F77=' ${wl}-berok'
19352           # -bexpall does not export symbols beginning with underscore (_)
19353           always_export_symbols_F77=yes
19354           # Exported symbols can be pulled into shared objects from archives
19355           whole_archive_flag_spec_F77=' '
19356           archive_cmds_need_lc_F77=yes
19357           # This is similar to how AIX traditionally builds it's shared libraries.
19358           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19359         fi
19360       fi
19361       ;;
19362
19363     amigaos*)
19364       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)'
19365       hardcode_libdir_flag_spec_F77='-L$libdir'
19366       hardcode_minus_L_F77=yes
19367       # see comment about different semantics on the GNU ld section
19368       ld_shlibs_F77=no
19369       ;;
19370
19371     bsdi4*)
19372       export_dynamic_flag_spec_F77=-rdynamic
19373       ;;
19374
19375     cygwin* | mingw* | pw32*)
19376       # When not using gcc, we currently assume that we are using
19377       # Microsoft Visual C++.
19378       # hardcode_libdir_flag_spec is actually meaningless, as there is
19379       # no search path for DLLs.
19380       hardcode_libdir_flag_spec_F77=' '
19381       allow_undefined_flag_F77=unsupported
19382       # Tell ltmain to make .lib files, not .a files.
19383       libext=lib
19384       # Tell ltmain to make .dll files, not .so files.
19385       shrext_cmds=".dll"
19386       # FIXME: Setting linknames here is a bad hack.
19387       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19388       # The linker will automatically build a .lib file if we build a DLL.
19389       old_archive_From_new_cmds_F77='true'
19390       # FIXME: Should let the user specify the lib program.
19391       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19392       fix_srcfile_path='`cygpath -w "$srcfile"`'
19393       enable_shared_with_static_runtimes_F77=yes
19394       ;;
19395
19396     darwin* | rhapsody*)
19397     if test "$GXX" = yes ; then
19398       archive_cmds_need_lc_F77=no
19399       case "$host_os" in
19400       rhapsody* | darwin1.[012])
19401         allow_undefined_flag_F77='-undefined suppress'
19402         ;;
19403       *) # Darwin 1.3 on
19404       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19405         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
19406       else
19407         case ${MACOSX_DEPLOYMENT_TARGET} in
19408           10.[012])
19409             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
19410             ;;
19411           10.*)
19412             allow_undefined_flag_F77='-undefined dynamic_lookup'
19413             ;;
19414         esac
19415       fi
19416         ;;
19417       esac
19418         lt_int_apple_cc_single_mod=no
19419         output_verbose_link_cmd='echo'
19420         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
19421           lt_int_apple_cc_single_mod=yes
19422         fi
19423         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19424           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19425         else
19426         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
19427       fi
19428       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19429       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19430         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19431           archive_expsym_cmds_F77='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}'
19432         else
19433           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
19434         fi
19435           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}'
19436       hardcode_direct_F77=no
19437       hardcode_automatic_F77=yes
19438       hardcode_shlibpath_var_F77=unsupported
19439       whole_archive_flag_spec_F77='-all_load $convenience'
19440       link_all_deplibs_F77=yes
19441     else
19442       ld_shlibs_F77=no
19443     fi
19444       ;;
19445
19446     dgux*)
19447       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19448       hardcode_libdir_flag_spec_F77='-L$libdir'
19449       hardcode_shlibpath_var_F77=no
19450       ;;
19451
19452     freebsd1*)
19453       ld_shlibs_F77=no
19454       ;;
19455
19456     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19457     # support.  Future versions do this automatically, but an explicit c++rt0.o
19458     # does not break anything, and helps significantly (at the cost of a little
19459     # extra space).
19460     freebsd2.2*)
19461       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19462       hardcode_libdir_flag_spec_F77='-R$libdir'
19463       hardcode_direct_F77=yes
19464       hardcode_shlibpath_var_F77=no
19465       ;;
19466
19467     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19468     freebsd2*)
19469       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19470       hardcode_direct_F77=yes
19471       hardcode_minus_L_F77=yes
19472       hardcode_shlibpath_var_F77=no
19473       ;;
19474
19475     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19476     freebsd* | kfreebsd*-gnu)
19477       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19478       hardcode_libdir_flag_spec_F77='-R$libdir'
19479       hardcode_direct_F77=yes
19480       hardcode_shlibpath_var_F77=no
19481       ;;
19482
19483     hpux9*)
19484       if test "$GCC" = yes; then
19485         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'
19486       else
19487         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'
19488       fi
19489       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19490       hardcode_libdir_separator_F77=:
19491       hardcode_direct_F77=yes
19492
19493       # hardcode_minus_L: Not really in the search PATH,
19494       # but as the default location of the library.
19495       hardcode_minus_L_F77=yes
19496       export_dynamic_flag_spec_F77='${wl}-E'
19497       ;;
19498
19499     hpux10* | hpux11*)
19500       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19501         case "$host_cpu" in
19502         hppa*64*|ia64*)
19503           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19504           ;;
19505         *)
19506           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19507           ;;
19508         esac
19509       else
19510         case "$host_cpu" in
19511         hppa*64*|ia64*)
19512           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19513           ;;
19514         *)
19515           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19516           ;;
19517         esac
19518       fi
19519       if test "$with_gnu_ld" = no; then
19520         case "$host_cpu" in
19521         hppa*64*)
19522           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19523           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19524           hardcode_libdir_separator_F77=:
19525           hardcode_direct_F77=no
19526           hardcode_shlibpath_var_F77=no
19527           ;;
19528         ia64*)
19529           hardcode_libdir_flag_spec_F77='-L$libdir'
19530           hardcode_direct_F77=no
19531           hardcode_shlibpath_var_F77=no
19532
19533           # hardcode_minus_L: Not really in the search PATH,
19534           # but as the default location of the library.
19535           hardcode_minus_L_F77=yes
19536           ;;
19537         *)
19538           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19539           hardcode_libdir_separator_F77=:
19540           hardcode_direct_F77=yes
19541           export_dynamic_flag_spec_F77='${wl}-E'
19542
19543           # hardcode_minus_L: Not really in the search PATH,
19544           # but as the default location of the library.
19545           hardcode_minus_L_F77=yes
19546           ;;
19547         esac
19548       fi
19549       ;;
19550
19551     irix5* | irix6* | nonstopux*)
19552       if test "$GCC" = yes; then
19553         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'
19554       else
19555         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'
19556         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19557       fi
19558       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19559       hardcode_libdir_separator_F77=:
19560       link_all_deplibs_F77=yes
19561       ;;
19562
19563     netbsd*)
19564       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19565         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19566       else
19567         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19568       fi
19569       hardcode_libdir_flag_spec_F77='-R$libdir'
19570       hardcode_direct_F77=yes
19571       hardcode_shlibpath_var_F77=no
19572       ;;
19573
19574     newsos6)
19575       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19576       hardcode_direct_F77=yes
19577       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19578       hardcode_libdir_separator_F77=:
19579       hardcode_shlibpath_var_F77=no
19580       ;;
19581
19582     openbsd*)
19583       hardcode_direct_F77=yes
19584       hardcode_shlibpath_var_F77=no
19585       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19586         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19587         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19588         export_dynamic_flag_spec_F77='${wl}-E'
19589       else
19590        case $host_os in
19591          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19592            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19593            hardcode_libdir_flag_spec_F77='-R$libdir'
19594            ;;
19595          *)
19596            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19597            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19598            ;;
19599        esac
19600       fi
19601       ;;
19602
19603     os2*)
19604       hardcode_libdir_flag_spec_F77='-L$libdir'
19605       hardcode_minus_L_F77=yes
19606       allow_undefined_flag_F77=unsupported
19607       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'
19608       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19609       ;;
19610
19611     osf3*)
19612       if test "$GCC" = yes; then
19613         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19614         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'
19615       else
19616         allow_undefined_flag_F77=' -expect_unresolved \*'
19617         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'
19618       fi
19619       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19620       hardcode_libdir_separator_F77=:
19621       ;;
19622
19623     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19624       if test "$GCC" = yes; then
19625         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19626         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'
19627         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19628       else
19629         allow_undefined_flag_F77=' -expect_unresolved \*'
19630         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'
19631         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~
19632         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
19633
19634         # Both c and cxx compiler support -rpath directly
19635         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19636       fi
19637       hardcode_libdir_separator_F77=:
19638       ;;
19639
19640     sco3.2v5*)
19641       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19642       hardcode_shlibpath_var_F77=no
19643       export_dynamic_flag_spec_F77='${wl}-Bexport'
19644       runpath_var=LD_RUN_PATH
19645       hardcode_runpath_var=yes
19646       ;;
19647
19648     solaris*)
19649       no_undefined_flag_F77=' -z text'
19650       if test "$GCC" = yes; then
19651         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19652         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19653           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19654       else
19655         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19656         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19657         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19658       fi
19659       hardcode_libdir_flag_spec_F77='-R$libdir'
19660       hardcode_shlibpath_var_F77=no
19661       case $host_os in
19662       solaris2.[0-5] | solaris2.[0-5].*) ;;
19663       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19664         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19665       esac
19666       link_all_deplibs_F77=yes
19667       ;;
19668
19669     sunos4*)
19670       if test "x$host_vendor" = xsequent; then
19671         # Use $CC to link under sequent, because it throws in some extra .o
19672         # files that make .init and .fini sections work.
19673         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19674       else
19675         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19676       fi
19677       hardcode_libdir_flag_spec_F77='-L$libdir'
19678       hardcode_direct_F77=yes
19679       hardcode_minus_L_F77=yes
19680       hardcode_shlibpath_var_F77=no
19681       ;;
19682
19683     sysv4)
19684       case $host_vendor in
19685         sni)
19686           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19687           hardcode_direct_F77=yes # is this really true???
19688         ;;
19689         siemens)
19690           ## LD is ld it makes a PLAMLIB
19691           ## CC just makes a GrossModule.
19692           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19693           reload_cmds_F77='$CC -r -o $output$reload_objs'
19694           hardcode_direct_F77=no
19695         ;;
19696         motorola)
19697           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19698           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19699         ;;
19700       esac
19701       runpath_var='LD_RUN_PATH'
19702       hardcode_shlibpath_var_F77=no
19703       ;;
19704
19705     sysv4.3*)
19706       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19707       hardcode_shlibpath_var_F77=no
19708       export_dynamic_flag_spec_F77='-Bexport'
19709       ;;
19710
19711     sysv4*MP*)
19712       if test -d /usr/nec; then
19713         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19714         hardcode_shlibpath_var_F77=no
19715         runpath_var=LD_RUN_PATH
19716         hardcode_runpath_var=yes
19717         ld_shlibs_F77=yes
19718       fi
19719       ;;
19720
19721     sysv4.2uw2*)
19722       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19723       hardcode_direct_F77=yes
19724       hardcode_minus_L_F77=no
19725       hardcode_shlibpath_var_F77=no
19726       hardcode_runpath_var=yes
19727       runpath_var=LD_RUN_PATH
19728       ;;
19729
19730    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19731       no_undefined_flag_F77='${wl}-z ${wl}text'
19732       if test "$GCC" = yes; then
19733         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19734       else
19735         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19736       fi
19737       runpath_var='LD_RUN_PATH'
19738       hardcode_shlibpath_var_F77=no
19739       ;;
19740
19741     sysv5*)
19742       no_undefined_flag_F77=' -z text'
19743       # $CC -shared without GNU ld will not create a library from C++
19744       # object files and a static libstdc++, better avoid it by now
19745       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19746       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19747                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19748       hardcode_libdir_flag_spec_F77=
19749       hardcode_shlibpath_var_F77=no
19750       runpath_var='LD_RUN_PATH'
19751       ;;
19752
19753     uts4*)
19754       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19755       hardcode_libdir_flag_spec_F77='-L$libdir'
19756       hardcode_shlibpath_var_F77=no
19757       ;;
19758
19759     *)
19760       ld_shlibs_F77=no
19761       ;;
19762     esac
19763   fi
19764
19765 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19766 echo "${ECHO_T}$ld_shlibs_F77" >&6
19767 test "$ld_shlibs_F77" = no && can_build_shared=no
19768
19769 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19770 if test "$GCC" = yes; then
19771   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19772 fi
19773
19774 #
19775 # Do we need to explicitly link libc?
19776 #
19777 case "x$archive_cmds_need_lc_F77" in
19778 x|xyes)
19779   # Assume -lc should be added
19780   archive_cmds_need_lc_F77=yes
19781
19782   if test "$enable_shared" = yes && test "$GCC" = yes; then
19783     case $archive_cmds_F77 in
19784     *'~'*)
19785       # FIXME: we may have to deal with multi-command sequences.
19786       ;;
19787     '$CC '*)
19788       # Test whether the compiler implicitly links with -lc since on some
19789       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19790       # to ld, don't add -lc before -lgcc.
19791       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19792 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19793       $rm conftest*
19794       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19795
19796       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19797   (eval $ac_compile) 2>&5
19798   ac_status=$?
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); } 2>conftest.err; then
19801         soname=conftest
19802         lib=conftest
19803         libobjs=conftest.$ac_objext
19804         deplibs=
19805         wl=$lt_prog_compiler_wl_F77
19806         compiler_flags=-v
19807         linker_flags=-v
19808         verstring=
19809         output_objdir=.
19810         libname=conftest
19811         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19812         allow_undefined_flag_F77=
19813         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19814   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19815   ac_status=$?
19816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817   (exit $ac_status); }
19818         then
19819           archive_cmds_need_lc_F77=no
19820         else
19821           archive_cmds_need_lc_F77=yes
19822         fi
19823         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19824       else
19825         cat conftest.err 1>&5
19826       fi
19827       $rm conftest*
19828       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19829 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19830       ;;
19831     esac
19832   fi
19833   ;;
19834 esac
19835
19836 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19837 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19838 library_names_spec=
19839 libname_spec='lib$name'
19840 soname_spec=
19841 shrext_cmds=".so"
19842 postinstall_cmds=
19843 postuninstall_cmds=
19844 finish_cmds=
19845 finish_eval=
19846 shlibpath_var=
19847 shlibpath_overrides_runpath=unknown
19848 version_type=none
19849 dynamic_linker="$host_os ld.so"
19850 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19851 if test "$GCC" = yes; then
19852   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19853   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19854     # if the path contains ";" then we assume it to be the separator
19855     # otherwise default to the standard path separator (i.e. ":") - it is
19856     # assumed that no part of a normal pathname contains ";" but that should
19857     # okay in the real world where ";" in dirpaths is itself problematic.
19858     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19859   else
19860     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19861   fi
19862 else
19863   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19864 fi
19865 need_lib_prefix=unknown
19866 hardcode_into_libs=no
19867
19868 # when you set need_version to no, make sure it does not cause -set_version
19869 # flags to be left without arguments
19870 need_version=unknown
19871
19872 case $host_os in
19873 aix3*)
19874   version_type=linux
19875   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19876   shlibpath_var=LIBPATH
19877
19878   # AIX 3 has no versioning support, so we append a major version to the name.
19879   soname_spec='${libname}${release}${shared_ext}$major'
19880   ;;
19881
19882 aix4* | aix5*)
19883   version_type=linux
19884   need_lib_prefix=no
19885   need_version=no
19886   hardcode_into_libs=yes
19887   if test "$host_cpu" = ia64; then
19888     # AIX 5 supports IA64
19889     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19890     shlibpath_var=LD_LIBRARY_PATH
19891   else
19892     # With GCC up to 2.95.x, collect2 would create an import file
19893     # for dependence libraries.  The import file would start with
19894     # the line `#! .'.  This would cause the generated library to
19895     # depend on `.', always an invalid library.  This was fixed in
19896     # development snapshots of GCC prior to 3.0.
19897     case $host_os in
19898       aix4 | aix4.[01] | aix4.[01].*)
19899       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19900            echo ' yes '
19901            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19902         :
19903       else
19904         can_build_shared=no
19905       fi
19906       ;;
19907     esac
19908     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19909     # soname into executable. Probably we can add versioning support to
19910     # collect2, so additional links can be useful in future.
19911     if test "$aix_use_runtimelinking" = yes; then
19912       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19913       # instead of lib<name>.a to let people know that these are not
19914       # typical AIX shared libraries.
19915       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19916     else
19917       # We preserve .a as extension for shared libraries through AIX4.2
19918       # and later when we are not doing run time linking.
19919       library_names_spec='${libname}${release}.a $libname.a'
19920       soname_spec='${libname}${release}${shared_ext}$major'
19921     fi
19922     shlibpath_var=LIBPATH
19923   fi
19924   ;;
19925
19926 amigaos*)
19927   library_names_spec='$libname.ixlibrary $libname.a'
19928   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19929   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'
19930   ;;
19931
19932 beos*)
19933   library_names_spec='${libname}${shared_ext}'
19934   dynamic_linker="$host_os ld.so"
19935   shlibpath_var=LIBRARY_PATH
19936   ;;
19937
19938 bsdi4*)
19939   version_type=linux
19940   need_version=no
19941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19942   soname_spec='${libname}${release}${shared_ext}$major'
19943   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19944   shlibpath_var=LD_LIBRARY_PATH
19945   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19946   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19947   # the default ld.so.conf also contains /usr/contrib/lib and
19948   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19949   # libtool to hard-code these into programs
19950   ;;
19951
19952 cygwin* | mingw* | pw32*)
19953   version_type=windows
19954   shrext_cmds=".dll"
19955   need_version=no
19956   need_lib_prefix=no
19957
19958   case $GCC,$host_os in
19959   yes,cygwin* | yes,mingw* | yes,pw32*)
19960     library_names_spec='$libname.dll.a'
19961     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19962     postinstall_cmds='base_file=`basename \${file}`~
19963       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19964       dldir=$destdir/`dirname \$dlpath`~
19965       test -d \$dldir || mkdir -p \$dldir~
19966       $install_prog $dir/$dlname \$dldir/$dlname'
19967     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19968       dlpath=$dir/\$dldll~
19969        $rm \$dlpath'
19970     shlibpath_overrides_runpath=yes
19971
19972     case $host_os in
19973     cygwin*)
19974       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19975       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19976       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19977       ;;
19978     mingw*)
19979       # MinGW DLLs use traditional 'lib' prefix
19980       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19981       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19982       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19983         # It is most probably a Windows format PATH printed by
19984         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19985         # path with ; separators, and with drive letters. We can handle the
19986         # drive letters (cygwin fileutils understands them), so leave them,
19987         # especially as we might pass files found there to a mingw objdump,
19988         # which wouldn't understand a cygwinified path. Ahh.
19989         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19990       else
19991         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19992       fi
19993       ;;
19994     pw32*)
19995       # pw32 DLLs use 'pw' prefix rather than 'lib'
19996       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
19997       ;;
19998     esac
19999     ;;
20000
20001   *)
20002     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20003     ;;
20004   esac
20005   dynamic_linker='Win32 ld.exe'
20006   # FIXME: first we should search . and the directory the executable is in
20007   shlibpath_var=PATH
20008   ;;
20009
20010 darwin* | rhapsody*)
20011   dynamic_linker="$host_os dyld"
20012   version_type=darwin
20013   need_lib_prefix=no
20014   need_version=no
20015   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20016   soname_spec='${libname}${release}${major}$shared_ext'
20017   shlibpath_overrides_runpath=yes
20018   shlibpath_var=DYLD_LIBRARY_PATH
20019   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20020   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20021   if test "$GCC" = yes; then
20022     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"`
20023   else
20024     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20025   fi
20026   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20027   ;;
20028
20029 dgux*)
20030   version_type=linux
20031   need_lib_prefix=no
20032   need_version=no
20033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20034   soname_spec='${libname}${release}${shared_ext}$major'
20035   shlibpath_var=LD_LIBRARY_PATH
20036   ;;
20037
20038 freebsd1*)
20039   dynamic_linker=no
20040   ;;
20041
20042 kfreebsd*-gnu)
20043   version_type=linux
20044   need_lib_prefix=no
20045   need_version=no
20046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20047   soname_spec='${libname}${release}${shared_ext}$major'
20048   shlibpath_var=LD_LIBRARY_PATH
20049   shlibpath_overrides_runpath=no
20050   hardcode_into_libs=yes
20051   dynamic_linker='GNU ld.so'
20052   ;;
20053
20054 freebsd*)
20055   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20056   version_type=freebsd-$objformat
20057   case $version_type in
20058     freebsd-elf*)
20059       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20060       need_version=no
20061       need_lib_prefix=no
20062       ;;
20063     freebsd-*)
20064       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20065       need_version=yes
20066       ;;
20067   esac
20068   shlibpath_var=LD_LIBRARY_PATH
20069   case $host_os in
20070   freebsd2*)
20071     shlibpath_overrides_runpath=yes
20072     ;;
20073   freebsd3.01* | freebsdelf3.01*)
20074     shlibpath_overrides_runpath=yes
20075     hardcode_into_libs=yes
20076     ;;
20077   *) # from 3.2 on
20078     shlibpath_overrides_runpath=no
20079     hardcode_into_libs=yes
20080     ;;
20081   esac
20082   ;;
20083
20084 gnu*)
20085   version_type=linux
20086   need_lib_prefix=no
20087   need_version=no
20088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20089   soname_spec='${libname}${release}${shared_ext}$major'
20090   shlibpath_var=LD_LIBRARY_PATH
20091   hardcode_into_libs=yes
20092   ;;
20093
20094 hpux9* | hpux10* | hpux11*)
20095   # Give a soname corresponding to the major version so that dld.sl refuses to
20096   # link against other versions.
20097   version_type=sunos
20098   need_lib_prefix=no
20099   need_version=no
20100   case "$host_cpu" in
20101   ia64*)
20102     shrext_cmds='.so'
20103     hardcode_into_libs=yes
20104     dynamic_linker="$host_os dld.so"
20105     shlibpath_var=LD_LIBRARY_PATH
20106     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20107     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20108     soname_spec='${libname}${release}${shared_ext}$major'
20109     if test "X$HPUX_IA64_MODE" = X32; then
20110       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20111     else
20112       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20113     fi
20114     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20115     ;;
20116    hppa*64*)
20117      shrext_cmds='.sl'
20118      hardcode_into_libs=yes
20119      dynamic_linker="$host_os dld.sl"
20120      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20121      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20122      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20123      soname_spec='${libname}${release}${shared_ext}$major'
20124      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20125      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20126      ;;
20127    *)
20128     shrext_cmds='.sl'
20129     dynamic_linker="$host_os dld.sl"
20130     shlibpath_var=SHLIB_PATH
20131     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20133     soname_spec='${libname}${release}${shared_ext}$major'
20134     ;;
20135   esac
20136   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20137   postinstall_cmds='chmod 555 $lib'
20138   ;;
20139
20140 irix5* | irix6* | nonstopux*)
20141   case $host_os in
20142     nonstopux*) version_type=nonstopux ;;
20143     *)
20144         if test "$lt_cv_prog_gnu_ld" = yes; then
20145                 version_type=linux
20146         else
20147                 version_type=irix
20148         fi ;;
20149   esac
20150   need_lib_prefix=no
20151   need_version=no
20152   soname_spec='${libname}${release}${shared_ext}$major'
20153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20154   case $host_os in
20155   irix5* | nonstopux*)
20156     libsuff= shlibsuff=
20157     ;;
20158   *)
20159     case $LD in # libtool.m4 will add one of these switches to LD
20160     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20161       libsuff= shlibsuff= libmagic=32-bit;;
20162     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20163       libsuff=32 shlibsuff=N32 libmagic=N32;;
20164     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20165       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20166     *) libsuff= shlibsuff= libmagic=never-match;;
20167     esac
20168     ;;
20169   esac
20170   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20171   shlibpath_overrides_runpath=no
20172   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20173   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20174   hardcode_into_libs=yes
20175   ;;
20176
20177 # No shared lib support for Linux oldld, aout, or coff.
20178 linux*oldld* | linux*aout* | linux*coff*)
20179   dynamic_linker=no
20180   ;;
20181
20182 # This must be Linux ELF.
20183 linux*)
20184   version_type=linux
20185   need_lib_prefix=no
20186   need_version=no
20187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20188   soname_spec='${libname}${release}${shared_ext}$major'
20189   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20190   shlibpath_var=LD_LIBRARY_PATH
20191   shlibpath_overrides_runpath=no
20192   # This implies no fast_install, which is unacceptable.
20193   # Some rework will be needed to allow for fast_install
20194   # before this can be enabled.
20195   hardcode_into_libs=yes
20196
20197   # Append ld.so.conf contents to the search path
20198   if test -f /etc/ld.so.conf; then
20199     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20200     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20201   fi
20202
20203   # We used to test for /lib/ld.so.1 and disable shared libraries on
20204   # powerpc, because MkLinux only supported shared libraries with the
20205   # GNU dynamic linker.  Since this was broken with cross compilers,
20206   # most powerpc-linux boxes support dynamic linking these days and
20207   # people can always --disable-shared, the test was removed, and we
20208   # assume the GNU/Linux dynamic linker is in use.
20209   dynamic_linker='GNU/Linux ld.so'
20210   ;;
20211
20212 knetbsd*-gnu)
20213   version_type=linux
20214   need_lib_prefix=no
20215   need_version=no
20216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20217   soname_spec='${libname}${release}${shared_ext}$major'
20218   shlibpath_var=LD_LIBRARY_PATH
20219   shlibpath_overrides_runpath=no
20220   hardcode_into_libs=yes
20221   dynamic_linker='GNU ld.so'
20222   ;;
20223
20224 netbsd*)
20225   version_type=sunos
20226   need_lib_prefix=no
20227   need_version=no
20228   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20230     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20231     dynamic_linker='NetBSD (a.out) ld.so'
20232   else
20233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20234     soname_spec='${libname}${release}${shared_ext}$major'
20235     dynamic_linker='NetBSD ld.elf_so'
20236   fi
20237   shlibpath_var=LD_LIBRARY_PATH
20238   shlibpath_overrides_runpath=yes
20239   hardcode_into_libs=yes
20240   ;;
20241
20242 newsos6)
20243   version_type=linux
20244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20245   shlibpath_var=LD_LIBRARY_PATH
20246   shlibpath_overrides_runpath=yes
20247   ;;
20248
20249 nto-qnx*)
20250   version_type=linux
20251   need_lib_prefix=no
20252   need_version=no
20253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20254   soname_spec='${libname}${release}${shared_ext}$major'
20255   shlibpath_var=LD_LIBRARY_PATH
20256   shlibpath_overrides_runpath=yes
20257   ;;
20258
20259 openbsd*)
20260   version_type=sunos
20261   need_lib_prefix=no
20262   need_version=yes
20263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20264   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20265   shlibpath_var=LD_LIBRARY_PATH
20266   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20267     case $host_os in
20268       openbsd2.[89] | openbsd2.[89].*)
20269         shlibpath_overrides_runpath=no
20270         ;;
20271       *)
20272         shlibpath_overrides_runpath=yes
20273         ;;
20274       esac
20275   else
20276     shlibpath_overrides_runpath=yes
20277   fi
20278   ;;
20279
20280 os2*)
20281   libname_spec='$name'
20282   shrext_cmds=".dll"
20283   need_lib_prefix=no
20284   library_names_spec='$libname${shared_ext} $libname.a'
20285   dynamic_linker='OS/2 ld.exe'
20286   shlibpath_var=LIBPATH
20287   ;;
20288
20289 osf3* | osf4* | osf5*)
20290   version_type=osf
20291   need_lib_prefix=no
20292   need_version=no
20293   soname_spec='${libname}${release}${shared_ext}$major'
20294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20295   shlibpath_var=LD_LIBRARY_PATH
20296   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20297   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20298   ;;
20299
20300 sco3.2v5*)
20301   version_type=osf
20302   soname_spec='${libname}${release}${shared_ext}$major'
20303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20304   shlibpath_var=LD_LIBRARY_PATH
20305   ;;
20306
20307 solaris*)
20308   version_type=linux
20309   need_lib_prefix=no
20310   need_version=no
20311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20312   soname_spec='${libname}${release}${shared_ext}$major'
20313   shlibpath_var=LD_LIBRARY_PATH
20314   shlibpath_overrides_runpath=yes
20315   hardcode_into_libs=yes
20316   # ldd complains unless libraries are executable
20317   postinstall_cmds='chmod +x $lib'
20318   ;;
20319
20320 sunos4*)
20321   version_type=sunos
20322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20323   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20324   shlibpath_var=LD_LIBRARY_PATH
20325   shlibpath_overrides_runpath=yes
20326   if test "$with_gnu_ld" = yes; then
20327     need_lib_prefix=no
20328   fi
20329   need_version=yes
20330   ;;
20331
20332 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20333   version_type=linux
20334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20335   soname_spec='${libname}${release}${shared_ext}$major'
20336   shlibpath_var=LD_LIBRARY_PATH
20337   case $host_vendor in
20338     sni)
20339       shlibpath_overrides_runpath=no
20340       need_lib_prefix=no
20341       export_dynamic_flag_spec='${wl}-Blargedynsym'
20342       runpath_var=LD_RUN_PATH
20343       ;;
20344     siemens)
20345       need_lib_prefix=no
20346       ;;
20347     motorola)
20348       need_lib_prefix=no
20349       need_version=no
20350       shlibpath_overrides_runpath=no
20351       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20352       ;;
20353   esac
20354   ;;
20355
20356 sysv4*MP*)
20357   if test -d /usr/nec ;then
20358     version_type=linux
20359     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20360     soname_spec='$libname${shared_ext}.$major'
20361     shlibpath_var=LD_LIBRARY_PATH
20362   fi
20363   ;;
20364
20365 uts4*)
20366   version_type=linux
20367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20368   soname_spec='${libname}${release}${shared_ext}$major'
20369   shlibpath_var=LD_LIBRARY_PATH
20370   ;;
20371
20372 *)
20373   dynamic_linker=no
20374   ;;
20375 esac
20376 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20377 echo "${ECHO_T}$dynamic_linker" >&6
20378 test "$dynamic_linker" = no && can_build_shared=no
20379
20380 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20381 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20382 hardcode_action_F77=
20383 if test -n "$hardcode_libdir_flag_spec_F77" || \
20384    test -n "$runpath_var F77" || \
20385    test "X$hardcode_automatic_F77"="Xyes" ; then
20386
20387   # We can hardcode non-existant directories.
20388   if test "$hardcode_direct_F77" != no &&
20389      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20390      # have to relink, otherwise we might link with an installed library
20391      # when we should be linking with a yet-to-be-installed one
20392      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20393      test "$hardcode_minus_L_F77" != no; then
20394     # Linking always hardcodes the temporary library directory.
20395     hardcode_action_F77=relink
20396   else
20397     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20398     hardcode_action_F77=immediate
20399   fi
20400 else
20401   # We cannot hardcode anything, or else we can only hardcode existing
20402   # directories.
20403   hardcode_action_F77=unsupported
20404 fi
20405 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20406 echo "${ECHO_T}$hardcode_action_F77" >&6
20407
20408 if test "$hardcode_action_F77" = relink; then
20409   # Fast installation is not supported
20410   enable_fast_install=no
20411 elif test "$shlibpath_overrides_runpath" = yes ||
20412      test "$enable_shared" = no; then
20413   # Fast installation is not necessary
20414   enable_fast_install=needless
20415 fi
20416
20417 striplib=
20418 old_striplib=
20419 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20420 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20421 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20422   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20423   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20424   echo "$as_me:$LINENO: result: yes" >&5
20425 echo "${ECHO_T}yes" >&6
20426 else
20427 # FIXME - insert some real tests, host_os isn't really good enough
20428   case $host_os in
20429    darwin*)
20430        if test -n "$STRIP" ; then
20431          striplib="$STRIP -x"
20432          echo "$as_me:$LINENO: result: yes" >&5
20433 echo "${ECHO_T}yes" >&6
20434        else
20435   echo "$as_me:$LINENO: result: no" >&5
20436 echo "${ECHO_T}no" >&6
20437 fi
20438        ;;
20439    *)
20440   echo "$as_me:$LINENO: result: no" >&5
20441 echo "${ECHO_T}no" >&6
20442     ;;
20443   esac
20444 fi
20445
20446
20447
20448 # The else clause should only fire when bootstrapping the
20449 # libtool distribution, otherwise you forgot to ship ltmain.sh
20450 # with your package, and you will get complaints that there are
20451 # no rules to generate ltmain.sh.
20452 if test -f "$ltmain"; then
20453   # See if we are running on zsh, and set the options which allow our commands through
20454   # without removal of \ escapes.
20455   if test -n "${ZSH_VERSION+set}" ; then
20456     setopt NO_GLOB_SUBST
20457   fi
20458   # Now quote all the things that may contain metacharacters while being
20459   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20460   # variables and quote the copies for generation of the libtool script.
20461   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20462     SED SHELL STRIP \
20463     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20464     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20465     deplibs_check_method reload_flag reload_cmds need_locks \
20466     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20467     lt_cv_sys_global_symbol_to_c_name_address \
20468     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20469     old_postinstall_cmds old_postuninstall_cmds \
20470     compiler_F77 \
20471     CC_F77 \
20472     LD_F77 \
20473     lt_prog_compiler_wl_F77 \
20474     lt_prog_compiler_pic_F77 \
20475     lt_prog_compiler_static_F77 \
20476     lt_prog_compiler_no_builtin_flag_F77 \
20477     export_dynamic_flag_spec_F77 \
20478     thread_safe_flag_spec_F77 \
20479     whole_archive_flag_spec_F77 \
20480     enable_shared_with_static_runtimes_F77 \
20481     old_archive_cmds_F77 \
20482     old_archive_from_new_cmds_F77 \
20483     predep_objects_F77 \
20484     postdep_objects_F77 \
20485     predeps_F77 \
20486     postdeps_F77 \
20487     compiler_lib_search_path_F77 \
20488     archive_cmds_F77 \
20489     archive_expsym_cmds_F77 \
20490     postinstall_cmds_F77 \
20491     postuninstall_cmds_F77 \
20492     old_archive_from_expsyms_cmds_F77 \
20493     allow_undefined_flag_F77 \
20494     no_undefined_flag_F77 \
20495     export_symbols_cmds_F77 \
20496     hardcode_libdir_flag_spec_F77 \
20497     hardcode_libdir_flag_spec_ld_F77 \
20498     hardcode_libdir_separator_F77 \
20499     hardcode_automatic_F77 \
20500     module_cmds_F77 \
20501     module_expsym_cmds_F77 \
20502     lt_cv_prog_compiler_c_o_F77 \
20503     exclude_expsyms_F77 \
20504     include_expsyms_F77; do
20505
20506     case $var in
20507     old_archive_cmds_F77 | \
20508     old_archive_from_new_cmds_F77 | \
20509     archive_cmds_F77 | \
20510     archive_expsym_cmds_F77 | \
20511     module_cmds_F77 | \
20512     module_expsym_cmds_F77 | \
20513     old_archive_from_expsyms_cmds_F77 | \
20514     export_symbols_cmds_F77 | \
20515     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20516     postinstall_cmds | postuninstall_cmds | \
20517     old_postinstall_cmds | old_postuninstall_cmds | \
20518     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20519       # Double-quote double-evaled strings.
20520       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20521       ;;
20522     *)
20523       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20524       ;;
20525     esac
20526   done
20527
20528   case $lt_echo in
20529   *'\$0 --fallback-echo"')
20530     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20531     ;;
20532   esac
20533
20534 cfgfile="$ofile"
20535
20536   cat <<__EOF__ >> "$cfgfile"
20537 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20538
20539 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20540
20541 # Shell to use when invoking shell scripts.
20542 SHELL=$lt_SHELL
20543
20544 # Whether or not to build shared libraries.
20545 build_libtool_libs=$enable_shared
20546
20547 # Whether or not to build static libraries.
20548 build_old_libs=$enable_static
20549
20550 # Whether or not to add -lc for building shared libraries.
20551 build_libtool_need_lc=$archive_cmds_need_lc_F77
20552
20553 # Whether or not to disallow shared libs when runtime libs are static
20554 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20555
20556 # Whether or not to optimize for fast installation.
20557 fast_install=$enable_fast_install
20558
20559 # The host system.
20560 host_alias=$host_alias
20561 host=$host
20562
20563 # An echo program that does not interpret backslashes.
20564 echo=$lt_echo
20565
20566 # The archiver.
20567 AR=$lt_AR
20568 AR_FLAGS=$lt_AR_FLAGS
20569
20570 # A C compiler.
20571 LTCC=$lt_LTCC
20572
20573 # A language-specific compiler.
20574 CC=$lt_compiler_F77
20575
20576 # Is the compiler the GNU C compiler?
20577 with_gcc=$GCC_F77
20578
20579 # An ERE matcher.
20580 EGREP=$lt_EGREP
20581
20582 # The linker used to build libraries.
20583 LD=$lt_LD_F77
20584
20585 # Whether we need hard or soft links.
20586 LN_S=$lt_LN_S
20587
20588 # A BSD-compatible nm program.
20589 NM=$lt_NM
20590
20591 # A symbol stripping program
20592 STRIP=$lt_STRIP
20593
20594 # Used to examine libraries when file_magic_cmd begins "file"
20595 MAGIC_CMD=$MAGIC_CMD
20596
20597 # Used on cygwin: DLL creation program.
20598 DLLTOOL="$DLLTOOL"
20599
20600 # Used on cygwin: object dumper.
20601 OBJDUMP="$OBJDUMP"
20602
20603 # Used on cygwin: assembler.
20604 AS="$AS"
20605
20606 # The name of the directory that contains temporary libtool files.
20607 objdir=$objdir
20608
20609 # How to create reloadable object files.
20610 reload_flag=$lt_reload_flag
20611 reload_cmds=$lt_reload_cmds
20612
20613 # How to pass a linker flag through the compiler.
20614 wl=$lt_lt_prog_compiler_wl_F77
20615
20616 # Object file suffix (normally "o").
20617 objext="$ac_objext"
20618
20619 # Old archive suffix (normally "a").
20620 libext="$libext"
20621
20622 # Shared library suffix (normally ".so").
20623 shrext_cmds='$shrext_cmds'
20624
20625 # Executable file suffix (normally "").
20626 exeext="$exeext"
20627
20628 # Additional compiler flags for building library objects.
20629 pic_flag=$lt_lt_prog_compiler_pic_F77
20630 pic_mode=$pic_mode
20631
20632 # What is the maximum length of a command?
20633 max_cmd_len=$lt_cv_sys_max_cmd_len
20634
20635 # Does compiler simultaneously support -c and -o options?
20636 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20637
20638 # Must we lock files when doing compilation ?
20639 need_locks=$lt_need_locks
20640
20641 # Do we need the lib prefix for modules?
20642 need_lib_prefix=$need_lib_prefix
20643
20644 # Do we need a version for libraries?
20645 need_version=$need_version
20646
20647 # Whether dlopen is supported.
20648 dlopen_support=$enable_dlopen
20649
20650 # Whether dlopen of programs is supported.
20651 dlopen_self=$enable_dlopen_self
20652
20653 # Whether dlopen of statically linked programs is supported.
20654 dlopen_self_static=$enable_dlopen_self_static
20655
20656 # Compiler flag to prevent dynamic linking.
20657 link_static_flag=$lt_lt_prog_compiler_static_F77
20658
20659 # Compiler flag to turn off builtin functions.
20660 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20661
20662 # Compiler flag to allow reflexive dlopens.
20663 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20664
20665 # Compiler flag to generate shared objects directly from archives.
20666 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20667
20668 # Compiler flag to generate thread-safe objects.
20669 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20670
20671 # Library versioning type.
20672 version_type=$version_type
20673
20674 # Format of library name prefix.
20675 libname_spec=$lt_libname_spec
20676
20677 # List of archive names.  First name is the real one, the rest are links.
20678 # The last name is the one that the linker finds with -lNAME.
20679 library_names_spec=$lt_library_names_spec
20680
20681 # The coded name of the library, if different from the real name.
20682 soname_spec=$lt_soname_spec
20683
20684 # Commands used to build and install an old-style archive.
20685 RANLIB=$lt_RANLIB
20686 old_archive_cmds=$lt_old_archive_cmds_F77
20687 old_postinstall_cmds=$lt_old_postinstall_cmds
20688 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20689
20690 # Create an old-style archive from a shared archive.
20691 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20692
20693 # Create a temporary old-style archive to link instead of a shared archive.
20694 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20695
20696 # Commands used to build and install a shared archive.
20697 archive_cmds=$lt_archive_cmds_F77
20698 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20699 postinstall_cmds=$lt_postinstall_cmds
20700 postuninstall_cmds=$lt_postuninstall_cmds
20701
20702 # Commands used to build a loadable module (assumed same as above if empty)
20703 module_cmds=$lt_module_cmds_F77
20704 module_expsym_cmds=$lt_module_expsym_cmds_F77
20705
20706 # Commands to strip libraries.
20707 old_striplib=$lt_old_striplib
20708 striplib=$lt_striplib
20709
20710 # Dependencies to place before the objects being linked to create a
20711 # shared library.
20712 predep_objects=$lt_predep_objects_F77
20713
20714 # Dependencies to place after the objects being linked to create a
20715 # shared library.
20716 postdep_objects=$lt_postdep_objects_F77
20717
20718 # Dependencies to place before the objects being linked to create a
20719 # shared library.
20720 predeps=$lt_predeps_F77
20721
20722 # Dependencies to place after the objects being linked to create a
20723 # shared library.
20724 postdeps=$lt_postdeps_F77
20725
20726 # The library search path used internally by the compiler when linking
20727 # a shared library.
20728 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20729
20730 # Method to check whether dependent libraries are shared objects.
20731 deplibs_check_method=$lt_deplibs_check_method
20732
20733 # Command to use when deplibs_check_method == file_magic.
20734 file_magic_cmd=$lt_file_magic_cmd
20735
20736 # Flag that allows shared libraries with undefined symbols to be built.
20737 allow_undefined_flag=$lt_allow_undefined_flag_F77
20738
20739 # Flag that forces no undefined symbols.
20740 no_undefined_flag=$lt_no_undefined_flag_F77
20741
20742 # Commands used to finish a libtool library installation in a directory.
20743 finish_cmds=$lt_finish_cmds
20744
20745 # Same as above, but a single script fragment to be evaled but not shown.
20746 finish_eval=$lt_finish_eval
20747
20748 # Take the output of nm and produce a listing of raw symbols and C names.
20749 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20750
20751 # Transform the output of nm in a proper C declaration
20752 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20753
20754 # Transform the output of nm in a C name address pair
20755 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20756
20757 # This is the shared library runtime path variable.
20758 runpath_var=$runpath_var
20759
20760 # This is the shared library path variable.
20761 shlibpath_var=$shlibpath_var
20762
20763 # Is shlibpath searched before the hard-coded library search path?
20764 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20765
20766 # How to hardcode a shared library path into an executable.
20767 hardcode_action=$hardcode_action_F77
20768
20769 # Whether we should hardcode library paths into libraries.
20770 hardcode_into_libs=$hardcode_into_libs
20771
20772 # Flag to hardcode \$libdir into a binary during linking.
20773 # This must work even if \$libdir does not exist.
20774 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20775
20776 # If ld is used when linking, flag to hardcode \$libdir into
20777 # a binary during linking. This must work even if \$libdir does
20778 # not exist.
20779 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20780
20781 # Whether we need a single -rpath flag with a separated argument.
20782 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20783
20784 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20785 # resulting binary.
20786 hardcode_direct=$hardcode_direct_F77
20787
20788 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20789 # resulting binary.
20790 hardcode_minus_L=$hardcode_minus_L_F77
20791
20792 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20793 # the resulting binary.
20794 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20795
20796 # Set to yes if building a shared library automatically hardcodes DIR into the library
20797 # and all subsequent libraries and executables linked against it.
20798 hardcode_automatic=$hardcode_automatic_F77
20799
20800 # Variables whose values should be saved in libtool wrapper scripts and
20801 # restored at relink time.
20802 variables_saved_for_relink="$variables_saved_for_relink"
20803
20804 # Whether libtool must link a program against all its dependency libraries.
20805 link_all_deplibs=$link_all_deplibs_F77
20806
20807 # Compile-time system search path for libraries
20808 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20809
20810 # Run-time system search path for libraries
20811 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20812
20813 # Fix the shell variable \$srcfile for the compiler.
20814 fix_srcfile_path="$fix_srcfile_path_F77"
20815
20816 # Set to yes if exported symbols are required.
20817 always_export_symbols=$always_export_symbols_F77
20818
20819 # The commands to list exported symbols.
20820 export_symbols_cmds=$lt_export_symbols_cmds_F77
20821
20822 # The commands to extract the exported symbol list from a shared archive.
20823 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20824
20825 # Symbols that should not be listed in the preloaded symbols.
20826 exclude_expsyms=$lt_exclude_expsyms_F77
20827
20828 # Symbols that must always be exported.
20829 include_expsyms=$lt_include_expsyms_F77
20830
20831 # ### END LIBTOOL TAG CONFIG: $tagname
20832
20833 __EOF__
20834
20835
20836 else
20837   # If there is no Makefile yet, we rely on a make rule to execute
20838   # `config.status --recheck' to rerun these tests and create the
20839   # libtool script then.
20840   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20841   if test -f "$ltmain_in"; then
20842     test -f Makefile && make "$ltmain"
20843   fi
20844 fi
20845
20846
20847 ac_ext=c
20848 ac_cpp='$CPP $CPPFLAGS'
20849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20852
20853 CC="$lt_save_CC"
20854
20855         else
20856           tagname=""
20857         fi
20858         ;;
20859
20860       GCJ)
20861         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20862
20863
20864
20865 # Source file extension for Java test sources.
20866 ac_ext=java
20867
20868 # Object file extension for compiled Java test sources.
20869 objext=o
20870 objext_GCJ=$objext
20871
20872 # Code to be used in simple compile tests
20873 lt_simple_compile_test_code="class foo {}\n"
20874
20875 # Code to be used in simple link tests
20876 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20877
20878 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20879
20880 # If no C compiler was specified, use CC.
20881 LTCC=${LTCC-"$CC"}
20882
20883 # Allow CC to be a program name with arguments.
20884 compiler=$CC
20885
20886
20887 # Allow CC to be a program name with arguments.
20888 lt_save_CC="$CC"
20889 CC=${GCJ-"gcj"}
20890 compiler=$CC
20891 compiler_GCJ=$CC
20892
20893 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20894 archive_cmds_need_lc_GCJ=no
20895
20896
20897 lt_prog_compiler_no_builtin_flag_GCJ=
20898
20899 if test "$GCC" = yes; then
20900   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20901
20902
20903 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20904 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20905 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20906   echo $ECHO_N "(cached) $ECHO_C" >&6
20907 else
20908   lt_cv_prog_compiler_rtti_exceptions=no
20909   ac_outfile=conftest.$ac_objext
20910    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20911    lt_compiler_flag="-fno-rtti -fno-exceptions"
20912    # Insert the option either (1) after the last *FLAGS variable, or
20913    # (2) before a word containing "conftest.", or (3) at the end.
20914    # Note that $ac_compile itself does not contain backslashes and begins
20915    # with a dollar sign (not a hyphen), so the echo should work correctly.
20916    # The option is referenced via a variable to avoid confusing sed.
20917    lt_compile=`echo "$ac_compile" | $SED \
20918    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20919    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20920    -e 's:$: $lt_compiler_flag:'`
20921    (eval echo "\"\$as_me:20921: $lt_compile\"" >&5)
20922    (eval "$lt_compile" 2>conftest.err)
20923    ac_status=$?
20924    cat conftest.err >&5
20925    echo "$as_me:20925: \$? = $ac_status" >&5
20926    if (exit $ac_status) && test -s "$ac_outfile"; then
20927      # The compiler can only warn and ignore the option if not recognized
20928      # So say no if there are warnings
20929      if test ! -s conftest.err; then
20930        lt_cv_prog_compiler_rtti_exceptions=yes
20931      fi
20932    fi
20933    $rm conftest*
20934
20935 fi
20936 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20937 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20938
20939 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20940     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20941 else
20942     :
20943 fi
20944
20945 fi
20946
20947 lt_prog_compiler_wl_GCJ=
20948 lt_prog_compiler_pic_GCJ=
20949 lt_prog_compiler_static_GCJ=
20950
20951 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20952 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20953
20954   if test "$GCC" = yes; then
20955     lt_prog_compiler_wl_GCJ='-Wl,'
20956     lt_prog_compiler_static_GCJ='-static'
20957
20958     case $host_os in
20959       aix*)
20960       # All AIX code is PIC.
20961       if test "$host_cpu" = ia64; then
20962         # AIX 5 now supports IA64 processor
20963         lt_prog_compiler_static_GCJ='-Bstatic'
20964       fi
20965       ;;
20966
20967     amigaos*)
20968       # FIXME: we need at least 68020 code to build shared libraries, but
20969       # adding the `-m68020' flag to GCC prevents building anything better,
20970       # like `-m68040'.
20971       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
20972       ;;
20973
20974     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20975       # PIC is the default for these OSes.
20976       ;;
20977
20978     mingw* | pw32* | os2*)
20979       # This hack is so that the source file can tell whether it is being
20980       # built for inclusion in a dll (and should export symbols for example).
20981       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20982       ;;
20983
20984     darwin* | rhapsody*)
20985       # PIC is the default on this platform
20986       # Common symbols not allowed in MH_DYLIB files
20987       lt_prog_compiler_pic_GCJ='-fno-common'
20988       ;;
20989
20990     msdosdjgpp*)
20991       # Just because we use GCC doesn't mean we suddenly get shared libraries
20992       # on systems that don't support them.
20993       lt_prog_compiler_can_build_shared_GCJ=no
20994       enable_shared=no
20995       ;;
20996
20997     sysv4*MP*)
20998       if test -d /usr/nec; then
20999         lt_prog_compiler_pic_GCJ=-Kconform_pic
21000       fi
21001       ;;
21002
21003     hpux*)
21004       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21005       # not for PA HP-UX.
21006       case "$host_cpu" in
21007       hppa*64*|ia64*)
21008         # +Z the default
21009         ;;
21010       *)
21011         lt_prog_compiler_pic_GCJ='-fPIC'
21012         ;;
21013       esac
21014       ;;
21015
21016     *)
21017       lt_prog_compiler_pic_GCJ='-fPIC'
21018       ;;
21019     esac
21020   else
21021     # PORTME Check for flag to pass linker flags through the system compiler.
21022     case $host_os in
21023     aix*)
21024       lt_prog_compiler_wl_GCJ='-Wl,'
21025       if test "$host_cpu" = ia64; then
21026         # AIX 5 now supports IA64 processor
21027         lt_prog_compiler_static_GCJ='-Bstatic'
21028       else
21029         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21030       fi
21031       ;;
21032
21033     mingw* | pw32* | os2*)
21034       # This hack is so that the source file can tell whether it is being
21035       # built for inclusion in a dll (and should export symbols for example).
21036       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21037       ;;
21038
21039     hpux9* | hpux10* | hpux11*)
21040       lt_prog_compiler_wl_GCJ='-Wl,'
21041       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21042       # not for PA HP-UX.
21043       case "$host_cpu" in
21044       hppa*64*|ia64*)
21045         # +Z the default
21046         ;;
21047       *)
21048         lt_prog_compiler_pic_GCJ='+Z'
21049         ;;
21050       esac
21051       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21052       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21053       ;;
21054
21055     irix5* | irix6* | nonstopux*)
21056       lt_prog_compiler_wl_GCJ='-Wl,'
21057       # PIC (with -KPIC) is the default.
21058       lt_prog_compiler_static_GCJ='-non_shared'
21059       ;;
21060
21061     newsos6)
21062       lt_prog_compiler_pic_GCJ='-KPIC'
21063       lt_prog_compiler_static_GCJ='-Bstatic'
21064       ;;
21065
21066     linux*)
21067       case $CC in
21068       icc* | ecc*)
21069         lt_prog_compiler_wl_GCJ='-Wl,'
21070         lt_prog_compiler_pic_GCJ='-KPIC'
21071         lt_prog_compiler_static_GCJ='-static'
21072         ;;
21073       ccc*)
21074         lt_prog_compiler_wl_GCJ='-Wl,'
21075         # All Alpha code is PIC.
21076         lt_prog_compiler_static_GCJ='-non_shared'
21077         ;;
21078       esac
21079       ;;
21080
21081     osf3* | osf4* | osf5*)
21082       lt_prog_compiler_wl_GCJ='-Wl,'
21083       # All OSF/1 code is PIC.
21084       lt_prog_compiler_static_GCJ='-non_shared'
21085       ;;
21086
21087     sco3.2v5*)
21088       lt_prog_compiler_pic_GCJ='-Kpic'
21089       lt_prog_compiler_static_GCJ='-dn'
21090       ;;
21091
21092     solaris*)
21093       lt_prog_compiler_wl_GCJ='-Wl,'
21094       lt_prog_compiler_pic_GCJ='-KPIC'
21095       lt_prog_compiler_static_GCJ='-Bstatic'
21096       ;;
21097
21098     sunos4*)
21099       lt_prog_compiler_wl_GCJ='-Qoption ld '
21100       lt_prog_compiler_pic_GCJ='-PIC'
21101       lt_prog_compiler_static_GCJ='-Bstatic'
21102       ;;
21103
21104     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21105       lt_prog_compiler_wl_GCJ='-Wl,'
21106       lt_prog_compiler_pic_GCJ='-KPIC'
21107       lt_prog_compiler_static_GCJ='-Bstatic'
21108       ;;
21109
21110     sysv4*MP*)
21111       if test -d /usr/nec ;then
21112         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21113         lt_prog_compiler_static_GCJ='-Bstatic'
21114       fi
21115       ;;
21116
21117     uts4*)
21118       lt_prog_compiler_pic_GCJ='-pic'
21119       lt_prog_compiler_static_GCJ='-Bstatic'
21120       ;;
21121
21122     *)
21123       lt_prog_compiler_can_build_shared_GCJ=no
21124       ;;
21125     esac
21126   fi
21127
21128 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21129 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21130
21131 #
21132 # Check to make sure the PIC flag actually works.
21133 #
21134 if test -n "$lt_prog_compiler_pic_GCJ"; then
21135
21136 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21137 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21138 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21139   echo $ECHO_N "(cached) $ECHO_C" >&6
21140 else
21141   lt_prog_compiler_pic_works_GCJ=no
21142   ac_outfile=conftest.$ac_objext
21143    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21144    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21145    # Insert the option either (1) after the last *FLAGS variable, or
21146    # (2) before a word containing "conftest.", or (3) at the end.
21147    # Note that $ac_compile itself does not contain backslashes and begins
21148    # with a dollar sign (not a hyphen), so the echo should work correctly.
21149    # The option is referenced via a variable to avoid confusing sed.
21150    lt_compile=`echo "$ac_compile" | $SED \
21151    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21152    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21153    -e 's:$: $lt_compiler_flag:'`
21154    (eval echo "\"\$as_me:21154: $lt_compile\"" >&5)
21155    (eval "$lt_compile" 2>conftest.err)
21156    ac_status=$?
21157    cat conftest.err >&5
21158    echo "$as_me:21158: \$? = $ac_status" >&5
21159    if (exit $ac_status) && test -s "$ac_outfile"; then
21160      # The compiler can only warn and ignore the option if not recognized
21161      # So say no if there are warnings
21162      if test ! -s conftest.err; then
21163        lt_prog_compiler_pic_works_GCJ=yes
21164      fi
21165    fi
21166    $rm conftest*
21167
21168 fi
21169 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21170 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21171
21172 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21173     case $lt_prog_compiler_pic_GCJ in
21174      "" | " "*) ;;
21175      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21176      esac
21177 else
21178     lt_prog_compiler_pic_GCJ=
21179      lt_prog_compiler_can_build_shared_GCJ=no
21180 fi
21181
21182 fi
21183 case "$host_os" in
21184   # For platforms which do not support PIC, -DPIC is meaningless:
21185   *djgpp*)
21186     lt_prog_compiler_pic_GCJ=
21187     ;;
21188   *)
21189     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21190     ;;
21191 esac
21192
21193 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21194 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21195 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21196   echo $ECHO_N "(cached) $ECHO_C" >&6
21197 else
21198   lt_cv_prog_compiler_c_o_GCJ=no
21199    $rm -r conftest 2>/dev/null
21200    mkdir conftest
21201    cd conftest
21202    mkdir out
21203    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21204
21205    lt_compiler_flag="-o out/conftest2.$ac_objext"
21206    # Insert the option either (1) after the last *FLAGS variable, or
21207    # (2) before a word containing "conftest.", or (3) at the end.
21208    # Note that $ac_compile itself does not contain backslashes and begins
21209    # with a dollar sign (not a hyphen), so the echo should work correctly.
21210    lt_compile=`echo "$ac_compile" | $SED \
21211    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21212    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21213    -e 's:$: $lt_compiler_flag:'`
21214    (eval echo "\"\$as_me:21214: $lt_compile\"" >&5)
21215    (eval "$lt_compile" 2>out/conftest.err)
21216    ac_status=$?
21217    cat out/conftest.err >&5
21218    echo "$as_me:21218: \$? = $ac_status" >&5
21219    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21220    then
21221      # The compiler can only warn and ignore the option if not recognized
21222      # So say no if there are warnings
21223      if test ! -s out/conftest.err; then
21224        lt_cv_prog_compiler_c_o_GCJ=yes
21225      fi
21226    fi
21227    chmod u+w .
21228    $rm conftest*
21229    # SGI C++ compiler will create directory out/ii_files/ for
21230    # template instantiation
21231    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21232    $rm out/* && rmdir out
21233    cd ..
21234    rmdir conftest
21235    $rm conftest*
21236
21237 fi
21238 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21239 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21240
21241
21242 hard_links="nottested"
21243 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21244   # do not overwrite the value of need_locks provided by the user
21245   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21246 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21247   hard_links=yes
21248   $rm conftest*
21249   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21250   touch conftest.a
21251   ln conftest.a conftest.b 2>&5 || hard_links=no
21252   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21253   echo "$as_me:$LINENO: result: $hard_links" >&5
21254 echo "${ECHO_T}$hard_links" >&6
21255   if test "$hard_links" = no; then
21256     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21257 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21258     need_locks=warn
21259   fi
21260 else
21261   need_locks=no
21262 fi
21263
21264 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21265 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21266
21267   runpath_var=
21268   allow_undefined_flag_GCJ=
21269   enable_shared_with_static_runtimes_GCJ=no
21270   archive_cmds_GCJ=
21271   archive_expsym_cmds_GCJ=
21272   old_archive_From_new_cmds_GCJ=
21273   old_archive_from_expsyms_cmds_GCJ=
21274   export_dynamic_flag_spec_GCJ=
21275   whole_archive_flag_spec_GCJ=
21276   thread_safe_flag_spec_GCJ=
21277   hardcode_libdir_flag_spec_GCJ=
21278   hardcode_libdir_flag_spec_ld_GCJ=
21279   hardcode_libdir_separator_GCJ=
21280   hardcode_direct_GCJ=no
21281   hardcode_minus_L_GCJ=no
21282   hardcode_shlibpath_var_GCJ=unsupported
21283   link_all_deplibs_GCJ=unknown
21284   hardcode_automatic_GCJ=no
21285   module_cmds_GCJ=
21286   module_expsym_cmds_GCJ=
21287   always_export_symbols_GCJ=no
21288   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21289   # include_expsyms should be a list of space-separated symbols to be *always*
21290   # included in the symbol list
21291   include_expsyms_GCJ=
21292   # exclude_expsyms can be an extended regexp of symbols to exclude
21293   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21294   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21295   # as well as any symbol that contains `d'.
21296   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21297   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21298   # platforms (ab)use it in PIC code, but their linkers get confused if
21299   # the symbol is explicitly referenced.  Since portable code cannot
21300   # rely on this symbol name, it's probably fine to never include it in
21301   # preloaded symbol tables.
21302   extract_expsyms_cmds=
21303
21304   case $host_os in
21305   cygwin* | mingw* | pw32*)
21306     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21307     # When not using gcc, we currently assume that we are using
21308     # Microsoft Visual C++.
21309     if test "$GCC" != yes; then
21310       with_gnu_ld=no
21311     fi
21312     ;;
21313   openbsd*)
21314     with_gnu_ld=no
21315     ;;
21316   esac
21317
21318   ld_shlibs_GCJ=yes
21319   if test "$with_gnu_ld" = yes; then
21320     # If archive_cmds runs LD, not CC, wlarc should be empty
21321     wlarc='${wl}'
21322
21323     # See if GNU ld supports shared libraries.
21324     case $host_os in
21325     aix3* | aix4* | aix5*)
21326       # On AIX/PPC, the GNU linker is very broken
21327       if test "$host_cpu" != ia64; then
21328         ld_shlibs_GCJ=no
21329         cat <<EOF 1>&2
21330
21331 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21332 *** to be unable to reliably create shared libraries on AIX.
21333 *** Therefore, libtool is disabling shared libraries support.  If you
21334 *** really care for shared libraries, you may want to modify your PATH
21335 *** so that a non-GNU linker is found, and then restart.
21336
21337 EOF
21338       fi
21339       ;;
21340
21341     amigaos*)
21342       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)'
21343       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21344       hardcode_minus_L_GCJ=yes
21345
21346       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21347       # that the semantics of dynamic libraries on AmigaOS, at least up
21348       # to version 4, is to share data among multiple programs linked
21349       # with the same dynamic library.  Since this doesn't match the
21350       # behavior of shared libraries on other platforms, we can't use
21351       # them.
21352       ld_shlibs_GCJ=no
21353       ;;
21354
21355     beos*)
21356       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21357         allow_undefined_flag_GCJ=unsupported
21358         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21359         # support --undefined.  This deserves some investigation.  FIXME
21360         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21361       else
21362         ld_shlibs_GCJ=no
21363       fi
21364       ;;
21365
21366     cygwin* | mingw* | pw32*)
21367       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21368       # as there is no search path for DLLs.
21369       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21370       allow_undefined_flag_GCJ=unsupported
21371       always_export_symbols_GCJ=no
21372       enable_shared_with_static_runtimes_GCJ=yes
21373       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21374
21375       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21376         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21377         # If the export-symbols file already is a .def file (1st line
21378         # is EXPORTS), use it as is; otherwise, prepend...
21379         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21380           cp $export_symbols $output_objdir/$soname.def;
21381         else
21382           echo EXPORTS > $output_objdir/$soname.def;
21383           cat $export_symbols >> $output_objdir/$soname.def;
21384         fi~
21385         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21386       else
21387         ld_shlibs=no
21388       fi
21389       ;;
21390
21391     netbsd*)
21392       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21393         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21394         wlarc=
21395       else
21396         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21397         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21398       fi
21399       ;;
21400
21401     solaris* | sysv5*)
21402       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21403         ld_shlibs_GCJ=no
21404         cat <<EOF 1>&2
21405
21406 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21407 *** create shared libraries on Solaris systems.  Therefore, libtool
21408 *** is disabling shared libraries support.  We urge you to upgrade GNU
21409 *** binutils to release 2.9.1 or newer.  Another option is to modify
21410 *** your PATH or compiler configuration so that the native linker is
21411 *** used, and then restart.
21412
21413 EOF
21414       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21415         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21416         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21417       else
21418         ld_shlibs_GCJ=no
21419       fi
21420       ;;
21421
21422     sunos4*)
21423       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21424       wlarc=
21425       hardcode_direct_GCJ=yes
21426       hardcode_shlibpath_var_GCJ=no
21427       ;;
21428
21429   linux*)
21430     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21431         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21432         archive_cmds_GCJ="$tmp_archive_cmds"
21433       supports_anon_versioning=no
21434       case `$LD -v 2>/dev/null` in
21435         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21436         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21437         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21438         *\ 2.11.*) ;; # other 2.11 versions
21439         *) supports_anon_versioning=yes ;;
21440       esac
21441       if test $supports_anon_versioning = yes; then
21442         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21443 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21444 $echo "local: *; };" >> $output_objdir/$libname.ver~
21445         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21446       else
21447         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21448       fi
21449     else
21450       ld_shlibs_GCJ=no
21451     fi
21452     ;;
21453
21454     *)
21455       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21456         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21457         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21458       else
21459         ld_shlibs_GCJ=no
21460       fi
21461       ;;
21462     esac
21463
21464     if test "$ld_shlibs_GCJ" = yes; then
21465       runpath_var=LD_RUN_PATH
21466       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21467       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21468       # ancient GNU ld didn't support --whole-archive et. al.
21469       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21470         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21471       else
21472         whole_archive_flag_spec_GCJ=
21473       fi
21474     fi
21475   else
21476     # PORTME fill in a description of your system's linker (not GNU ld)
21477     case $host_os in
21478     aix3*)
21479       allow_undefined_flag_GCJ=unsupported
21480       always_export_symbols_GCJ=yes
21481       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'
21482       # Note: this linker hardcodes the directories in LIBPATH if there
21483       # are no directories specified by -L.
21484       hardcode_minus_L_GCJ=yes
21485       if test "$GCC" = yes && test -z "$link_static_flag"; then
21486         # Neither direct hardcoding nor static linking is supported with a
21487         # broken collect2.
21488         hardcode_direct_GCJ=unsupported
21489       fi
21490       ;;
21491
21492     aix4* | aix5*)
21493       if test "$host_cpu" = ia64; then
21494         # On IA64, the linker does run time linking by default, so we don't
21495         # have to do anything special.
21496         aix_use_runtimelinking=no
21497         exp_sym_flag='-Bexport'
21498         no_entry_flag=""
21499       else
21500         # If we're using GNU nm, then we don't want the "-C" option.
21501         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21502         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21503           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'
21504         else
21505           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'
21506         fi
21507         aix_use_runtimelinking=no
21508
21509         # Test if we are trying to use run time linking or normal
21510         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21511         # need to do runtime linking.
21512         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21513           for ld_flag in $LDFLAGS; do
21514           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21515             aix_use_runtimelinking=yes
21516             break
21517           fi
21518           done
21519         esac
21520
21521         exp_sym_flag='-bexport'
21522         no_entry_flag='-bnoentry'
21523       fi
21524
21525       # When large executables or shared objects are built, AIX ld can
21526       # have problems creating the table of contents.  If linking a library
21527       # or program results in "error TOC overflow" add -mminimal-toc to
21528       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21529       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21530
21531       archive_cmds_GCJ=''
21532       hardcode_direct_GCJ=yes
21533       hardcode_libdir_separator_GCJ=':'
21534       link_all_deplibs_GCJ=yes
21535
21536       if test "$GCC" = yes; then
21537         case $host_os in aix4.012|aix4.012.*)
21538         # We only want to do this on AIX 4.2 and lower, the check
21539         # below for broken collect2 doesn't work under 4.3+
21540           collect2name=`${CC} -print-prog-name=collect2`
21541           if test -f "$collect2name" && \
21542            strings "$collect2name" | grep resolve_lib_name >/dev/null
21543           then
21544           # We have reworked collect2
21545           hardcode_direct_GCJ=yes
21546           else
21547           # We have old collect2
21548           hardcode_direct_GCJ=unsupported
21549           # It fails to find uninstalled libraries when the uninstalled
21550           # path is not listed in the libpath.  Setting hardcode_minus_L
21551           # to unsupported forces relinking
21552           hardcode_minus_L_GCJ=yes
21553           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21554           hardcode_libdir_separator_GCJ=
21555           fi
21556         esac
21557         shared_flag='-shared'
21558       else
21559         # not using gcc
21560         if test "$host_cpu" = ia64; then
21561         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21562         # chokes on -Wl,-G. The following line is correct:
21563           shared_flag='-G'
21564         else
21565         if test "$aix_use_runtimelinking" = yes; then
21566             shared_flag='${wl}-G'
21567           else
21568             shared_flag='${wl}-bM:SRE'
21569         fi
21570         fi
21571       fi
21572
21573       # It seems that -bexpall does not export symbols beginning with
21574       # underscore (_), so it is better to generate a list of symbols to export.
21575       always_export_symbols_GCJ=yes
21576       if test "$aix_use_runtimelinking" = yes; then
21577         # Warning - without using the other runtime loading flags (-brtl),
21578         # -berok will link without error, but may produce a broken library.
21579         allow_undefined_flag_GCJ='-berok'
21580        # Determine the default libpath from the value encoded in an empty executable.
21581        cat >conftest.$ac_ext <<_ACEOF
21582 /* confdefs.h.  */
21583 _ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h.  */
21587
21588 int
21589 main ()
21590 {
21591
21592   ;
21593   return 0;
21594 }
21595 _ACEOF
21596 rm -f conftest.$ac_objext conftest$ac_exeext
21597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21598   (eval $ac_link) 2>conftest.er1
21599   ac_status=$?
21600   grep -v '^ *+' conftest.er1 >conftest.err
21601   rm -f conftest.er1
21602   cat conftest.err >&5
21603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604   (exit $ac_status); } &&
21605          { ac_try='test -z "$ac_c_werror_flag"
21606                          || test ! -s conftest.err'
21607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608   (eval $ac_try) 2>&5
21609   ac_status=$?
21610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611   (exit $ac_status); }; } &&
21612          { ac_try='test -s conftest$ac_exeext'
21613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21614   (eval $ac_try) 2>&5
21615   ac_status=$?
21616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617   (exit $ac_status); }; }; then
21618
21619 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21620 }'`
21621 # Check for a 64-bit object if we didn't find anything.
21622 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; }
21623 }'`; fi
21624 else
21625   echo "$as_me: failed program was:" >&5
21626 sed 's/^/| /' conftest.$ac_ext >&5
21627
21628 fi
21629 rm -f conftest.err conftest.$ac_objext \
21630       conftest$ac_exeext conftest.$ac_ext
21631 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21632
21633        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21634         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
21635        else
21636         if test "$host_cpu" = ia64; then
21637           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21638           allow_undefined_flag_GCJ="-z nodefs"
21639           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
21640         else
21641          # Determine the default libpath from the value encoded in an empty executable.
21642          cat >conftest.$ac_ext <<_ACEOF
21643 /* confdefs.h.  */
21644 _ACEOF
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
21647 /* end confdefs.h.  */
21648
21649 int
21650 main ()
21651 {
21652
21653   ;
21654   return 0;
21655 }
21656 _ACEOF
21657 rm -f conftest.$ac_objext conftest$ac_exeext
21658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21659   (eval $ac_link) 2>conftest.er1
21660   ac_status=$?
21661   grep -v '^ *+' conftest.er1 >conftest.err
21662   rm -f conftest.er1
21663   cat conftest.err >&5
21664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665   (exit $ac_status); } &&
21666          { ac_try='test -z "$ac_c_werror_flag"
21667                          || test ! -s conftest.err'
21668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669   (eval $ac_try) 2>&5
21670   ac_status=$?
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); }; } &&
21673          { ac_try='test -s conftest$ac_exeext'
21674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21675   (eval $ac_try) 2>&5
21676   ac_status=$?
21677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678   (exit $ac_status); }; }; then
21679
21680 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21681 }'`
21682 # Check for a 64-bit object if we didn't find anything.
21683 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; }
21684 }'`; fi
21685 else
21686   echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.$ac_ext >&5
21688
21689 fi
21690 rm -f conftest.err conftest.$ac_objext \
21691       conftest$ac_exeext conftest.$ac_ext
21692 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21693
21694          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21695           # Warning - without using the other run time loading flags,
21696           # -berok will link without error, but may produce a broken library.
21697           no_undefined_flag_GCJ=' ${wl}-bernotok'
21698           allow_undefined_flag_GCJ=' ${wl}-berok'
21699           # -bexpall does not export symbols beginning with underscore (_)
21700           always_export_symbols_GCJ=yes
21701           # Exported symbols can be pulled into shared objects from archives
21702           whole_archive_flag_spec_GCJ=' '
21703           archive_cmds_need_lc_GCJ=yes
21704           # This is similar to how AIX traditionally builds it's shared libraries.
21705           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
21706         fi
21707       fi
21708       ;;
21709
21710     amigaos*)
21711       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)'
21712       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21713       hardcode_minus_L_GCJ=yes
21714       # see comment about different semantics on the GNU ld section
21715       ld_shlibs_GCJ=no
21716       ;;
21717
21718     bsdi4*)
21719       export_dynamic_flag_spec_GCJ=-rdynamic
21720       ;;
21721
21722     cygwin* | mingw* | pw32*)
21723       # When not using gcc, we currently assume that we are using
21724       # Microsoft Visual C++.
21725       # hardcode_libdir_flag_spec is actually meaningless, as there is
21726       # no search path for DLLs.
21727       hardcode_libdir_flag_spec_GCJ=' '
21728       allow_undefined_flag_GCJ=unsupported
21729       # Tell ltmain to make .lib files, not .a files.
21730       libext=lib
21731       # Tell ltmain to make .dll files, not .so files.
21732       shrext_cmds=".dll"
21733       # FIXME: Setting linknames here is a bad hack.
21734       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21735       # The linker will automatically build a .lib file if we build a DLL.
21736       old_archive_From_new_cmds_GCJ='true'
21737       # FIXME: Should let the user specify the lib program.
21738       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21739       fix_srcfile_path='`cygpath -w "$srcfile"`'
21740       enable_shared_with_static_runtimes_GCJ=yes
21741       ;;
21742
21743     darwin* | rhapsody*)
21744     if test "$GXX" = yes ; then
21745       archive_cmds_need_lc_GCJ=no
21746       case "$host_os" in
21747       rhapsody* | darwin1.[012])
21748         allow_undefined_flag_GCJ='-undefined suppress'
21749         ;;
21750       *) # Darwin 1.3 on
21751       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21752         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
21753       else
21754         case ${MACOSX_DEPLOYMENT_TARGET} in
21755           10.[012])
21756             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
21757             ;;
21758           10.*)
21759             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
21760             ;;
21761         esac
21762       fi
21763         ;;
21764       esac
21765         lt_int_apple_cc_single_mod=no
21766         output_verbose_link_cmd='echo'
21767         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
21768           lt_int_apple_cc_single_mod=yes
21769         fi
21770         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21771           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21772         else
21773         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
21774       fi
21775       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21776       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21777         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21778           archive_expsym_cmds_GCJ='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}'
21779         else
21780           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
21781         fi
21782           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}'
21783       hardcode_direct_GCJ=no
21784       hardcode_automatic_GCJ=yes
21785       hardcode_shlibpath_var_GCJ=unsupported
21786       whole_archive_flag_spec_GCJ='-all_load $convenience'
21787       link_all_deplibs_GCJ=yes
21788     else
21789       ld_shlibs_GCJ=no
21790     fi
21791       ;;
21792
21793     dgux*)
21794       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21795       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21796       hardcode_shlibpath_var_GCJ=no
21797       ;;
21798
21799     freebsd1*)
21800       ld_shlibs_GCJ=no
21801       ;;
21802
21803     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21804     # support.  Future versions do this automatically, but an explicit c++rt0.o
21805     # does not break anything, and helps significantly (at the cost of a little
21806     # extra space).
21807     freebsd2.2*)
21808       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21809       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21810       hardcode_direct_GCJ=yes
21811       hardcode_shlibpath_var_GCJ=no
21812       ;;
21813
21814     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21815     freebsd2*)
21816       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21817       hardcode_direct_GCJ=yes
21818       hardcode_minus_L_GCJ=yes
21819       hardcode_shlibpath_var_GCJ=no
21820       ;;
21821
21822     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21823     freebsd* | kfreebsd*-gnu)
21824       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21825       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21826       hardcode_direct_GCJ=yes
21827       hardcode_shlibpath_var_GCJ=no
21828       ;;
21829
21830     hpux9*)
21831       if test "$GCC" = yes; then
21832         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'
21833       else
21834         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'
21835       fi
21836       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21837       hardcode_libdir_separator_GCJ=:
21838       hardcode_direct_GCJ=yes
21839
21840       # hardcode_minus_L: Not really in the search PATH,
21841       # but as the default location of the library.
21842       hardcode_minus_L_GCJ=yes
21843       export_dynamic_flag_spec_GCJ='${wl}-E'
21844       ;;
21845
21846     hpux10* | hpux11*)
21847       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21848         case "$host_cpu" in
21849         hppa*64*|ia64*)
21850           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21851           ;;
21852         *)
21853           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21854           ;;
21855         esac
21856       else
21857         case "$host_cpu" in
21858         hppa*64*|ia64*)
21859           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21860           ;;
21861         *)
21862           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21863           ;;
21864         esac
21865       fi
21866       if test "$with_gnu_ld" = no; then
21867         case "$host_cpu" in
21868         hppa*64*)
21869           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21870           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21871           hardcode_libdir_separator_GCJ=:
21872           hardcode_direct_GCJ=no
21873           hardcode_shlibpath_var_GCJ=no
21874           ;;
21875         ia64*)
21876           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21877           hardcode_direct_GCJ=no
21878           hardcode_shlibpath_var_GCJ=no
21879
21880           # hardcode_minus_L: Not really in the search PATH,
21881           # but as the default location of the library.
21882           hardcode_minus_L_GCJ=yes
21883           ;;
21884         *)
21885           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21886           hardcode_libdir_separator_GCJ=:
21887           hardcode_direct_GCJ=yes
21888           export_dynamic_flag_spec_GCJ='${wl}-E'
21889
21890           # hardcode_minus_L: Not really in the search PATH,
21891           # but as the default location of the library.
21892           hardcode_minus_L_GCJ=yes
21893           ;;
21894         esac
21895       fi
21896       ;;
21897
21898     irix5* | irix6* | nonstopux*)
21899       if test "$GCC" = yes; then
21900         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'
21901       else
21902         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'
21903         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21904       fi
21905       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21906       hardcode_libdir_separator_GCJ=:
21907       link_all_deplibs_GCJ=yes
21908       ;;
21909
21910     netbsd*)
21911       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21912         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21913       else
21914         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21915       fi
21916       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21917       hardcode_direct_GCJ=yes
21918       hardcode_shlibpath_var_GCJ=no
21919       ;;
21920
21921     newsos6)
21922       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21923       hardcode_direct_GCJ=yes
21924       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21925       hardcode_libdir_separator_GCJ=:
21926       hardcode_shlibpath_var_GCJ=no
21927       ;;
21928
21929     openbsd*)
21930       hardcode_direct_GCJ=yes
21931       hardcode_shlibpath_var_GCJ=no
21932       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21933         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21934         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21935         export_dynamic_flag_spec_GCJ='${wl}-E'
21936       else
21937        case $host_os in
21938          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21939            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21940            hardcode_libdir_flag_spec_GCJ='-R$libdir'
21941            ;;
21942          *)
21943            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21944            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21945            ;;
21946        esac
21947       fi
21948       ;;
21949
21950     os2*)
21951       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21952       hardcode_minus_L_GCJ=yes
21953       allow_undefined_flag_GCJ=unsupported
21954       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'
21955       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21956       ;;
21957
21958     osf3*)
21959       if test "$GCC" = yes; then
21960         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21961         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'
21962       else
21963         allow_undefined_flag_GCJ=' -expect_unresolved \*'
21964         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'
21965       fi
21966       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21967       hardcode_libdir_separator_GCJ=:
21968       ;;
21969
21970     osf4* | osf5*)      # as osf3* with the addition of -msym flag
21971       if test "$GCC" = yes; then
21972         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21973         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'
21974         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21975       else
21976         allow_undefined_flag_GCJ=' -expect_unresolved \*'
21977         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'
21978         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~
21979         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
21980
21981         # Both c and cxx compiler support -rpath directly
21982         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21983       fi
21984       hardcode_libdir_separator_GCJ=:
21985       ;;
21986
21987     sco3.2v5*)
21988       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21989       hardcode_shlibpath_var_GCJ=no
21990       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21991       runpath_var=LD_RUN_PATH
21992       hardcode_runpath_var=yes
21993       ;;
21994
21995     solaris*)
21996       no_undefined_flag_GCJ=' -z text'
21997       if test "$GCC" = yes; then
21998         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21999         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22000           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22001       else
22002         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22003         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22004         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22005       fi
22006       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22007       hardcode_shlibpath_var_GCJ=no
22008       case $host_os in
22009       solaris2.[0-5] | solaris2.[0-5].*) ;;
22010       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22011         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22012       esac
22013       link_all_deplibs_GCJ=yes
22014       ;;
22015
22016     sunos4*)
22017       if test "x$host_vendor" = xsequent; then
22018         # Use $CC to link under sequent, because it throws in some extra .o
22019         # files that make .init and .fini sections work.
22020         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22021       else
22022         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22023       fi
22024       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22025       hardcode_direct_GCJ=yes
22026       hardcode_minus_L_GCJ=yes
22027       hardcode_shlibpath_var_GCJ=no
22028       ;;
22029
22030     sysv4)
22031       case $host_vendor in
22032         sni)
22033           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22034           hardcode_direct_GCJ=yes # is this really true???
22035         ;;
22036         siemens)
22037           ## LD is ld it makes a PLAMLIB
22038           ## CC just makes a GrossModule.
22039           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22040           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22041           hardcode_direct_GCJ=no
22042         ;;
22043         motorola)
22044           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22045           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22046         ;;
22047       esac
22048       runpath_var='LD_RUN_PATH'
22049       hardcode_shlibpath_var_GCJ=no
22050       ;;
22051
22052     sysv4.3*)
22053       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22054       hardcode_shlibpath_var_GCJ=no
22055       export_dynamic_flag_spec_GCJ='-Bexport'
22056       ;;
22057
22058     sysv4*MP*)
22059       if test -d /usr/nec; then
22060         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22061         hardcode_shlibpath_var_GCJ=no
22062         runpath_var=LD_RUN_PATH
22063         hardcode_runpath_var=yes
22064         ld_shlibs_GCJ=yes
22065       fi
22066       ;;
22067
22068     sysv4.2uw2*)
22069       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22070       hardcode_direct_GCJ=yes
22071       hardcode_minus_L_GCJ=no
22072       hardcode_shlibpath_var_GCJ=no
22073       hardcode_runpath_var=yes
22074       runpath_var=LD_RUN_PATH
22075       ;;
22076
22077    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22078       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22079       if test "$GCC" = yes; then
22080         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22081       else
22082         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22083       fi
22084       runpath_var='LD_RUN_PATH'
22085       hardcode_shlibpath_var_GCJ=no
22086       ;;
22087
22088     sysv5*)
22089       no_undefined_flag_GCJ=' -z text'
22090       # $CC -shared without GNU ld will not create a library from C++
22091       # object files and a static libstdc++, better avoid it by now
22092       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22093       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22094                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22095       hardcode_libdir_flag_spec_GCJ=
22096       hardcode_shlibpath_var_GCJ=no
22097       runpath_var='LD_RUN_PATH'
22098       ;;
22099
22100     uts4*)
22101       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22102       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22103       hardcode_shlibpath_var_GCJ=no
22104       ;;
22105
22106     *)
22107       ld_shlibs_GCJ=no
22108       ;;
22109     esac
22110   fi
22111
22112 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22113 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22114 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22115
22116 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22117 if test "$GCC" = yes; then
22118   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22119 fi
22120
22121 #
22122 # Do we need to explicitly link libc?
22123 #
22124 case "x$archive_cmds_need_lc_GCJ" in
22125 x|xyes)
22126   # Assume -lc should be added
22127   archive_cmds_need_lc_GCJ=yes
22128
22129   if test "$enable_shared" = yes && test "$GCC" = yes; then
22130     case $archive_cmds_GCJ in
22131     *'~'*)
22132       # FIXME: we may have to deal with multi-command sequences.
22133       ;;
22134     '$CC '*)
22135       # Test whether the compiler implicitly links with -lc since on some
22136       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22137       # to ld, don't add -lc before -lgcc.
22138       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22139 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22140       $rm conftest*
22141       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22142
22143       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22144   (eval $ac_compile) 2>&5
22145   ac_status=$?
22146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147   (exit $ac_status); } 2>conftest.err; then
22148         soname=conftest
22149         lib=conftest
22150         libobjs=conftest.$ac_objext
22151         deplibs=
22152         wl=$lt_prog_compiler_wl_GCJ
22153         compiler_flags=-v
22154         linker_flags=-v
22155         verstring=
22156         output_objdir=.
22157         libname=conftest
22158         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22159         allow_undefined_flag_GCJ=
22160         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22161   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22162   ac_status=$?
22163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164   (exit $ac_status); }
22165         then
22166           archive_cmds_need_lc_GCJ=no
22167         else
22168           archive_cmds_need_lc_GCJ=yes
22169         fi
22170         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22171       else
22172         cat conftest.err 1>&5
22173       fi
22174       $rm conftest*
22175       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22176 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22177       ;;
22178     esac
22179   fi
22180   ;;
22181 esac
22182
22183 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22184 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22185 library_names_spec=
22186 libname_spec='lib$name'
22187 soname_spec=
22188 shrext_cmds=".so"
22189 postinstall_cmds=
22190 postuninstall_cmds=
22191 finish_cmds=
22192 finish_eval=
22193 shlibpath_var=
22194 shlibpath_overrides_runpath=unknown
22195 version_type=none
22196 dynamic_linker="$host_os ld.so"
22197 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22198 if test "$GCC" = yes; then
22199   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22200   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22201     # if the path contains ";" then we assume it to be the separator
22202     # otherwise default to the standard path separator (i.e. ":") - it is
22203     # assumed that no part of a normal pathname contains ";" but that should
22204     # okay in the real world where ";" in dirpaths is itself problematic.
22205     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22206   else
22207     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22208   fi
22209 else
22210   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22211 fi
22212 need_lib_prefix=unknown
22213 hardcode_into_libs=no
22214
22215 # when you set need_version to no, make sure it does not cause -set_version
22216 # flags to be left without arguments
22217 need_version=unknown
22218
22219 case $host_os in
22220 aix3*)
22221   version_type=linux
22222   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22223   shlibpath_var=LIBPATH
22224
22225   # AIX 3 has no versioning support, so we append a major version to the name.
22226   soname_spec='${libname}${release}${shared_ext}$major'
22227   ;;
22228
22229 aix4* | aix5*)
22230   version_type=linux
22231   need_lib_prefix=no
22232   need_version=no
22233   hardcode_into_libs=yes
22234   if test "$host_cpu" = ia64; then
22235     # AIX 5 supports IA64
22236     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22237     shlibpath_var=LD_LIBRARY_PATH
22238   else
22239     # With GCC up to 2.95.x, collect2 would create an import file
22240     # for dependence libraries.  The import file would start with
22241     # the line `#! .'.  This would cause the generated library to
22242     # depend on `.', always an invalid library.  This was fixed in
22243     # development snapshots of GCC prior to 3.0.
22244     case $host_os in
22245       aix4 | aix4.[01] | aix4.[01].*)
22246       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22247            echo ' yes '
22248            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22249         :
22250       else
22251         can_build_shared=no
22252       fi
22253       ;;
22254     esac
22255     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22256     # soname into executable. Probably we can add versioning support to
22257     # collect2, so additional links can be useful in future.
22258     if test "$aix_use_runtimelinking" = yes; then
22259       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22260       # instead of lib<name>.a to let people know that these are not
22261       # typical AIX shared libraries.
22262       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22263     else
22264       # We preserve .a as extension for shared libraries through AIX4.2
22265       # and later when we are not doing run time linking.
22266       library_names_spec='${libname}${release}.a $libname.a'
22267       soname_spec='${libname}${release}${shared_ext}$major'
22268     fi
22269     shlibpath_var=LIBPATH
22270   fi
22271   ;;
22272
22273 amigaos*)
22274   library_names_spec='$libname.ixlibrary $libname.a'
22275   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22276   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'
22277   ;;
22278
22279 beos*)
22280   library_names_spec='${libname}${shared_ext}'
22281   dynamic_linker="$host_os ld.so"
22282   shlibpath_var=LIBRARY_PATH
22283   ;;
22284
22285 bsdi4*)
22286   version_type=linux
22287   need_version=no
22288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22289   soname_spec='${libname}${release}${shared_ext}$major'
22290   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22291   shlibpath_var=LD_LIBRARY_PATH
22292   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22293   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22294   # the default ld.so.conf also contains /usr/contrib/lib and
22295   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22296   # libtool to hard-code these into programs
22297   ;;
22298
22299 cygwin* | mingw* | pw32*)
22300   version_type=windows
22301   shrext_cmds=".dll"
22302   need_version=no
22303   need_lib_prefix=no
22304
22305   case $GCC,$host_os in
22306   yes,cygwin* | yes,mingw* | yes,pw32*)
22307     library_names_spec='$libname.dll.a'
22308     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22309     postinstall_cmds='base_file=`basename \${file}`~
22310       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22311       dldir=$destdir/`dirname \$dlpath`~
22312       test -d \$dldir || mkdir -p \$dldir~
22313       $install_prog $dir/$dlname \$dldir/$dlname'
22314     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22315       dlpath=$dir/\$dldll~
22316        $rm \$dlpath'
22317     shlibpath_overrides_runpath=yes
22318
22319     case $host_os in
22320     cygwin*)
22321       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22322       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22323       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22324       ;;
22325     mingw*)
22326       # MinGW DLLs use traditional 'lib' prefix
22327       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22328       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22329       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22330         # It is most probably a Windows format PATH printed by
22331         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22332         # path with ; separators, and with drive letters. We can handle the
22333         # drive letters (cygwin fileutils understands them), so leave them,
22334         # especially as we might pass files found there to a mingw objdump,
22335         # which wouldn't understand a cygwinified path. Ahh.
22336         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22337       else
22338         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22339       fi
22340       ;;
22341     pw32*)
22342       # pw32 DLLs use 'pw' prefix rather than 'lib'
22343       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22344       ;;
22345     esac
22346     ;;
22347
22348   *)
22349     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22350     ;;
22351   esac
22352   dynamic_linker='Win32 ld.exe'
22353   # FIXME: first we should search . and the directory the executable is in
22354   shlibpath_var=PATH
22355   ;;
22356
22357 darwin* | rhapsody*)
22358   dynamic_linker="$host_os dyld"
22359   version_type=darwin
22360   need_lib_prefix=no
22361   need_version=no
22362   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22363   soname_spec='${libname}${release}${major}$shared_ext'
22364   shlibpath_overrides_runpath=yes
22365   shlibpath_var=DYLD_LIBRARY_PATH
22366   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22367   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22368   if test "$GCC" = yes; then
22369     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"`
22370   else
22371     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22372   fi
22373   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22374   ;;
22375
22376 dgux*)
22377   version_type=linux
22378   need_lib_prefix=no
22379   need_version=no
22380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22381   soname_spec='${libname}${release}${shared_ext}$major'
22382   shlibpath_var=LD_LIBRARY_PATH
22383   ;;
22384
22385 freebsd1*)
22386   dynamic_linker=no
22387   ;;
22388
22389 kfreebsd*-gnu)
22390   version_type=linux
22391   need_lib_prefix=no
22392   need_version=no
22393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22394   soname_spec='${libname}${release}${shared_ext}$major'
22395   shlibpath_var=LD_LIBRARY_PATH
22396   shlibpath_overrides_runpath=no
22397   hardcode_into_libs=yes
22398   dynamic_linker='GNU ld.so'
22399   ;;
22400
22401 freebsd*)
22402   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22403   version_type=freebsd-$objformat
22404   case $version_type in
22405     freebsd-elf*)
22406       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22407       need_version=no
22408       need_lib_prefix=no
22409       ;;
22410     freebsd-*)
22411       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22412       need_version=yes
22413       ;;
22414   esac
22415   shlibpath_var=LD_LIBRARY_PATH
22416   case $host_os in
22417   freebsd2*)
22418     shlibpath_overrides_runpath=yes
22419     ;;
22420   freebsd3.01* | freebsdelf3.01*)
22421     shlibpath_overrides_runpath=yes
22422     hardcode_into_libs=yes
22423     ;;
22424   *) # from 3.2 on
22425     shlibpath_overrides_runpath=no
22426     hardcode_into_libs=yes
22427     ;;
22428   esac
22429   ;;
22430
22431 gnu*)
22432   version_type=linux
22433   need_lib_prefix=no
22434   need_version=no
22435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22436   soname_spec='${libname}${release}${shared_ext}$major'
22437   shlibpath_var=LD_LIBRARY_PATH
22438   hardcode_into_libs=yes
22439   ;;
22440
22441 hpux9* | hpux10* | hpux11*)
22442   # Give a soname corresponding to the major version so that dld.sl refuses to
22443   # link against other versions.
22444   version_type=sunos
22445   need_lib_prefix=no
22446   need_version=no
22447   case "$host_cpu" in
22448   ia64*)
22449     shrext_cmds='.so'
22450     hardcode_into_libs=yes
22451     dynamic_linker="$host_os dld.so"
22452     shlibpath_var=LD_LIBRARY_PATH
22453     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22454     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22455     soname_spec='${libname}${release}${shared_ext}$major'
22456     if test "X$HPUX_IA64_MODE" = X32; then
22457       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22458     else
22459       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22460     fi
22461     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22462     ;;
22463    hppa*64*)
22464      shrext_cmds='.sl'
22465      hardcode_into_libs=yes
22466      dynamic_linker="$host_os dld.sl"
22467      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22468      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22469      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22470      soname_spec='${libname}${release}${shared_ext}$major'
22471      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22472      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22473      ;;
22474    *)
22475     shrext_cmds='.sl'
22476     dynamic_linker="$host_os dld.sl"
22477     shlibpath_var=SHLIB_PATH
22478     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22479     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22480     soname_spec='${libname}${release}${shared_ext}$major'
22481     ;;
22482   esac
22483   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22484   postinstall_cmds='chmod 555 $lib'
22485   ;;
22486
22487 irix5* | irix6* | nonstopux*)
22488   case $host_os in
22489     nonstopux*) version_type=nonstopux ;;
22490     *)
22491         if test "$lt_cv_prog_gnu_ld" = yes; then
22492                 version_type=linux
22493         else
22494                 version_type=irix
22495         fi ;;
22496   esac
22497   need_lib_prefix=no
22498   need_version=no
22499   soname_spec='${libname}${release}${shared_ext}$major'
22500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22501   case $host_os in
22502   irix5* | nonstopux*)
22503     libsuff= shlibsuff=
22504     ;;
22505   *)
22506     case $LD in # libtool.m4 will add one of these switches to LD
22507     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22508       libsuff= shlibsuff= libmagic=32-bit;;
22509     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22510       libsuff=32 shlibsuff=N32 libmagic=N32;;
22511     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22512       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22513     *) libsuff= shlibsuff= libmagic=never-match;;
22514     esac
22515     ;;
22516   esac
22517   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22518   shlibpath_overrides_runpath=no
22519   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22520   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22521   hardcode_into_libs=yes
22522   ;;
22523
22524 # No shared lib support for Linux oldld, aout, or coff.
22525 linux*oldld* | linux*aout* | linux*coff*)
22526   dynamic_linker=no
22527   ;;
22528
22529 # This must be Linux ELF.
22530 linux*)
22531   version_type=linux
22532   need_lib_prefix=no
22533   need_version=no
22534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22535   soname_spec='${libname}${release}${shared_ext}$major'
22536   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22537   shlibpath_var=LD_LIBRARY_PATH
22538   shlibpath_overrides_runpath=no
22539   # This implies no fast_install, which is unacceptable.
22540   # Some rework will be needed to allow for fast_install
22541   # before this can be enabled.
22542   hardcode_into_libs=yes
22543
22544   # Append ld.so.conf contents to the search path
22545   if test -f /etc/ld.so.conf; then
22546     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22547     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22548   fi
22549
22550   # We used to test for /lib/ld.so.1 and disable shared libraries on
22551   # powerpc, because MkLinux only supported shared libraries with the
22552   # GNU dynamic linker.  Since this was broken with cross compilers,
22553   # most powerpc-linux boxes support dynamic linking these days and
22554   # people can always --disable-shared, the test was removed, and we
22555   # assume the GNU/Linux dynamic linker is in use.
22556   dynamic_linker='GNU/Linux ld.so'
22557   ;;
22558
22559 knetbsd*-gnu)
22560   version_type=linux
22561   need_lib_prefix=no
22562   need_version=no
22563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22564   soname_spec='${libname}${release}${shared_ext}$major'
22565   shlibpath_var=LD_LIBRARY_PATH
22566   shlibpath_overrides_runpath=no
22567   hardcode_into_libs=yes
22568   dynamic_linker='GNU ld.so'
22569   ;;
22570
22571 netbsd*)
22572   version_type=sunos
22573   need_lib_prefix=no
22574   need_version=no
22575   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22577     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22578     dynamic_linker='NetBSD (a.out) ld.so'
22579   else
22580     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22581     soname_spec='${libname}${release}${shared_ext}$major'
22582     dynamic_linker='NetBSD ld.elf_so'
22583   fi
22584   shlibpath_var=LD_LIBRARY_PATH
22585   shlibpath_overrides_runpath=yes
22586   hardcode_into_libs=yes
22587   ;;
22588
22589 newsos6)
22590   version_type=linux
22591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22592   shlibpath_var=LD_LIBRARY_PATH
22593   shlibpath_overrides_runpath=yes
22594   ;;
22595
22596 nto-qnx*)
22597   version_type=linux
22598   need_lib_prefix=no
22599   need_version=no
22600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22601   soname_spec='${libname}${release}${shared_ext}$major'
22602   shlibpath_var=LD_LIBRARY_PATH
22603   shlibpath_overrides_runpath=yes
22604   ;;
22605
22606 openbsd*)
22607   version_type=sunos
22608   need_lib_prefix=no
22609   need_version=yes
22610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22611   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22612   shlibpath_var=LD_LIBRARY_PATH
22613   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22614     case $host_os in
22615       openbsd2.[89] | openbsd2.[89].*)
22616         shlibpath_overrides_runpath=no
22617         ;;
22618       *)
22619         shlibpath_overrides_runpath=yes
22620         ;;
22621       esac
22622   else
22623     shlibpath_overrides_runpath=yes
22624   fi
22625   ;;
22626
22627 os2*)
22628   libname_spec='$name'
22629   shrext_cmds=".dll"
22630   need_lib_prefix=no
22631   library_names_spec='$libname${shared_ext} $libname.a'
22632   dynamic_linker='OS/2 ld.exe'
22633   shlibpath_var=LIBPATH
22634   ;;
22635
22636 osf3* | osf4* | osf5*)
22637   version_type=osf
22638   need_lib_prefix=no
22639   need_version=no
22640   soname_spec='${libname}${release}${shared_ext}$major'
22641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22642   shlibpath_var=LD_LIBRARY_PATH
22643   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22644   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22645   ;;
22646
22647 sco3.2v5*)
22648   version_type=osf
22649   soname_spec='${libname}${release}${shared_ext}$major'
22650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22651   shlibpath_var=LD_LIBRARY_PATH
22652   ;;
22653
22654 solaris*)
22655   version_type=linux
22656   need_lib_prefix=no
22657   need_version=no
22658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22659   soname_spec='${libname}${release}${shared_ext}$major'
22660   shlibpath_var=LD_LIBRARY_PATH
22661   shlibpath_overrides_runpath=yes
22662   hardcode_into_libs=yes
22663   # ldd complains unless libraries are executable
22664   postinstall_cmds='chmod +x $lib'
22665   ;;
22666
22667 sunos4*)
22668   version_type=sunos
22669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22670   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22671   shlibpath_var=LD_LIBRARY_PATH
22672   shlibpath_overrides_runpath=yes
22673   if test "$with_gnu_ld" = yes; then
22674     need_lib_prefix=no
22675   fi
22676   need_version=yes
22677   ;;
22678
22679 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22680   version_type=linux
22681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22682   soname_spec='${libname}${release}${shared_ext}$major'
22683   shlibpath_var=LD_LIBRARY_PATH
22684   case $host_vendor in
22685     sni)
22686       shlibpath_overrides_runpath=no
22687       need_lib_prefix=no
22688       export_dynamic_flag_spec='${wl}-Blargedynsym'
22689       runpath_var=LD_RUN_PATH
22690       ;;
22691     siemens)
22692       need_lib_prefix=no
22693       ;;
22694     motorola)
22695       need_lib_prefix=no
22696       need_version=no
22697       shlibpath_overrides_runpath=no
22698       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22699       ;;
22700   esac
22701   ;;
22702
22703 sysv4*MP*)
22704   if test -d /usr/nec ;then
22705     version_type=linux
22706     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22707     soname_spec='$libname${shared_ext}.$major'
22708     shlibpath_var=LD_LIBRARY_PATH
22709   fi
22710   ;;
22711
22712 uts4*)
22713   version_type=linux
22714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22715   soname_spec='${libname}${release}${shared_ext}$major'
22716   shlibpath_var=LD_LIBRARY_PATH
22717   ;;
22718
22719 *)
22720   dynamic_linker=no
22721   ;;
22722 esac
22723 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22724 echo "${ECHO_T}$dynamic_linker" >&6
22725 test "$dynamic_linker" = no && can_build_shared=no
22726
22727 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22728 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22729 hardcode_action_GCJ=
22730 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22731    test -n "$runpath_var GCJ" || \
22732    test "X$hardcode_automatic_GCJ"="Xyes" ; then
22733
22734   # We can hardcode non-existant directories.
22735   if test "$hardcode_direct_GCJ" != no &&
22736      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22737      # have to relink, otherwise we might link with an installed library
22738      # when we should be linking with a yet-to-be-installed one
22739      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22740      test "$hardcode_minus_L_GCJ" != no; then
22741     # Linking always hardcodes the temporary library directory.
22742     hardcode_action_GCJ=relink
22743   else
22744     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22745     hardcode_action_GCJ=immediate
22746   fi
22747 else
22748   # We cannot hardcode anything, or else we can only hardcode existing
22749   # directories.
22750   hardcode_action_GCJ=unsupported
22751 fi
22752 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22753 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22754
22755 if test "$hardcode_action_GCJ" = relink; then
22756   # Fast installation is not supported
22757   enable_fast_install=no
22758 elif test "$shlibpath_overrides_runpath" = yes ||
22759      test "$enable_shared" = no; then
22760   # Fast installation is not necessary
22761   enable_fast_install=needless
22762 fi
22763
22764 striplib=
22765 old_striplib=
22766 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22767 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22768 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22769   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22770   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22771   echo "$as_me:$LINENO: result: yes" >&5
22772 echo "${ECHO_T}yes" >&6
22773 else
22774 # FIXME - insert some real tests, host_os isn't really good enough
22775   case $host_os in
22776    darwin*)
22777        if test -n "$STRIP" ; then
22778          striplib="$STRIP -x"
22779          echo "$as_me:$LINENO: result: yes" >&5
22780 echo "${ECHO_T}yes" >&6
22781        else
22782   echo "$as_me:$LINENO: result: no" >&5
22783 echo "${ECHO_T}no" >&6
22784 fi
22785        ;;
22786    *)
22787   echo "$as_me:$LINENO: result: no" >&5
22788 echo "${ECHO_T}no" >&6
22789     ;;
22790   esac
22791 fi
22792
22793 if test "x$enable_dlopen" != xyes; then
22794   enable_dlopen=unknown
22795   enable_dlopen_self=unknown
22796   enable_dlopen_self_static=unknown
22797 else
22798   lt_cv_dlopen=no
22799   lt_cv_dlopen_libs=
22800
22801   case $host_os in
22802   beos*)
22803     lt_cv_dlopen="load_add_on"
22804     lt_cv_dlopen_libs=
22805     lt_cv_dlopen_self=yes
22806     ;;
22807
22808   mingw* | pw32*)
22809     lt_cv_dlopen="LoadLibrary"
22810     lt_cv_dlopen_libs=
22811    ;;
22812
22813   cygwin*)
22814     lt_cv_dlopen="dlopen"
22815     lt_cv_dlopen_libs=
22816    ;;
22817
22818   darwin*)
22819   # if libdl is installed we need to link against it
22820     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22821 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22822 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22823   echo $ECHO_N "(cached) $ECHO_C" >&6
22824 else
22825   ac_check_lib_save_LIBS=$LIBS
22826 LIBS="-ldl  $LIBS"
22827 cat >conftest.$ac_ext <<_ACEOF
22828 /* confdefs.h.  */
22829 _ACEOF
22830 cat confdefs.h >>conftest.$ac_ext
22831 cat >>conftest.$ac_ext <<_ACEOF
22832 /* end confdefs.h.  */
22833
22834 /* Override any gcc2 internal prototype to avoid an error.  */
22835 #ifdef __cplusplus
22836 extern "C"
22837 #endif
22838 /* We use char because int might match the return type of a gcc2
22839    builtin and then its argument prototype would still apply.  */
22840 char dlopen ();
22841 int
22842 main ()
22843 {
22844 dlopen ();
22845   ;
22846   return 0;
22847 }
22848 _ACEOF
22849 rm -f conftest.$ac_objext conftest$ac_exeext
22850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22851   (eval $ac_link) 2>conftest.er1
22852   ac_status=$?
22853   grep -v '^ *+' conftest.er1 >conftest.err
22854   rm -f conftest.er1
22855   cat conftest.err >&5
22856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857   (exit $ac_status); } &&
22858          { ac_try='test -z "$ac_c_werror_flag"
22859                          || test ! -s conftest.err'
22860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22861   (eval $ac_try) 2>&5
22862   ac_status=$?
22863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864   (exit $ac_status); }; } &&
22865          { ac_try='test -s conftest$ac_exeext'
22866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22867   (eval $ac_try) 2>&5
22868   ac_status=$?
22869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870   (exit $ac_status); }; }; then
22871   ac_cv_lib_dl_dlopen=yes
22872 else
22873   echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22875
22876 ac_cv_lib_dl_dlopen=no
22877 fi
22878 rm -f conftest.err conftest.$ac_objext \
22879       conftest$ac_exeext conftest.$ac_ext
22880 LIBS=$ac_check_lib_save_LIBS
22881 fi
22882 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22883 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22884 if test $ac_cv_lib_dl_dlopen = yes; then
22885   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22886 else
22887
22888     lt_cv_dlopen="dyld"
22889     lt_cv_dlopen_libs=
22890     lt_cv_dlopen_self=yes
22891
22892 fi
22893
22894    ;;
22895
22896   *)
22897     echo "$as_me:$LINENO: checking for shl_load" >&5
22898 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22899 if test "${ac_cv_func_shl_load+set}" = set; then
22900   echo $ECHO_N "(cached) $ECHO_C" >&6
22901 else
22902   cat >conftest.$ac_ext <<_ACEOF
22903 /* confdefs.h.  */
22904 _ACEOF
22905 cat confdefs.h >>conftest.$ac_ext
22906 cat >>conftest.$ac_ext <<_ACEOF
22907 /* end confdefs.h.  */
22908 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22910 #define shl_load innocuous_shl_load
22911
22912 /* System header to define __stub macros and hopefully few prototypes,
22913     which can conflict with char shl_load (); below.
22914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22915     <limits.h> exists even on freestanding compilers.  */
22916
22917 #ifdef __STDC__
22918 # include <limits.h>
22919 #else
22920 # include <assert.h>
22921 #endif
22922
22923 #undef shl_load
22924
22925 /* Override any gcc2 internal prototype to avoid an error.  */
22926 #ifdef __cplusplus
22927 extern "C"
22928 {
22929 #endif
22930 /* We use char because int might match the return type of a gcc2
22931    builtin and then its argument prototype would still apply.  */
22932 char shl_load ();
22933 /* The GNU C library defines this for functions which it implements
22934     to always fail with ENOSYS.  Some functions are actually named
22935     something starting with __ and the normal name is an alias.  */
22936 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22937 choke me
22938 #else
22939 char (*f) () = shl_load;
22940 #endif
22941 #ifdef __cplusplus
22942 }
22943 #endif
22944
22945 int
22946 main ()
22947 {
22948 return f != shl_load;
22949   ;
22950   return 0;
22951 }
22952 _ACEOF
22953 rm -f conftest.$ac_objext conftest$ac_exeext
22954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22955   (eval $ac_link) 2>conftest.er1
22956   ac_status=$?
22957   grep -v '^ *+' conftest.er1 >conftest.err
22958   rm -f conftest.er1
22959   cat conftest.err >&5
22960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961   (exit $ac_status); } &&
22962          { ac_try='test -z "$ac_c_werror_flag"
22963                          || test ! -s conftest.err'
22964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22965   (eval $ac_try) 2>&5
22966   ac_status=$?
22967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968   (exit $ac_status); }; } &&
22969          { ac_try='test -s conftest$ac_exeext'
22970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22971   (eval $ac_try) 2>&5
22972   ac_status=$?
22973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974   (exit $ac_status); }; }; then
22975   ac_cv_func_shl_load=yes
22976 else
22977   echo "$as_me: failed program was:" >&5
22978 sed 's/^/| /' conftest.$ac_ext >&5
22979
22980 ac_cv_func_shl_load=no
22981 fi
22982 rm -f conftest.err conftest.$ac_objext \
22983       conftest$ac_exeext conftest.$ac_ext
22984 fi
22985 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
22986 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
22987 if test $ac_cv_func_shl_load = yes; then
22988   lt_cv_dlopen="shl_load"
22989 else
22990   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
22991 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
22992 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
22993   echo $ECHO_N "(cached) $ECHO_C" >&6
22994 else
22995   ac_check_lib_save_LIBS=$LIBS
22996 LIBS="-ldld  $LIBS"
22997 cat >conftest.$ac_ext <<_ACEOF
22998 /* confdefs.h.  */
22999 _ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h.  */
23003
23004 /* Override any gcc2 internal prototype to avoid an error.  */
23005 #ifdef __cplusplus
23006 extern "C"
23007 #endif
23008 /* We use char because int might match the return type of a gcc2
23009    builtin and then its argument prototype would still apply.  */
23010 char shl_load ();
23011 int
23012 main ()
23013 {
23014 shl_load ();
23015   ;
23016   return 0;
23017 }
23018 _ACEOF
23019 rm -f conftest.$ac_objext conftest$ac_exeext
23020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23021   (eval $ac_link) 2>conftest.er1
23022   ac_status=$?
23023   grep -v '^ *+' conftest.er1 >conftest.err
23024   rm -f conftest.er1
23025   cat conftest.err >&5
23026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027   (exit $ac_status); } &&
23028          { ac_try='test -z "$ac_c_werror_flag"
23029                          || test ! -s conftest.err'
23030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031   (eval $ac_try) 2>&5
23032   ac_status=$?
23033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034   (exit $ac_status); }; } &&
23035          { ac_try='test -s conftest$ac_exeext'
23036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23037   (eval $ac_try) 2>&5
23038   ac_status=$?
23039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040   (exit $ac_status); }; }; then
23041   ac_cv_lib_dld_shl_load=yes
23042 else
23043   echo "$as_me: failed program was:" >&5
23044 sed 's/^/| /' conftest.$ac_ext >&5
23045
23046 ac_cv_lib_dld_shl_load=no
23047 fi
23048 rm -f conftest.err conftest.$ac_objext \
23049       conftest$ac_exeext conftest.$ac_ext
23050 LIBS=$ac_check_lib_save_LIBS
23051 fi
23052 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23053 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23054 if test $ac_cv_lib_dld_shl_load = yes; then
23055   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23056 else
23057   echo "$as_me:$LINENO: checking for dlopen" >&5
23058 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23059 if test "${ac_cv_func_dlopen+set}" = set; then
23060   echo $ECHO_N "(cached) $ECHO_C" >&6
23061 else
23062   cat >conftest.$ac_ext <<_ACEOF
23063 /* confdefs.h.  */
23064 _ACEOF
23065 cat confdefs.h >>conftest.$ac_ext
23066 cat >>conftest.$ac_ext <<_ACEOF
23067 /* end confdefs.h.  */
23068 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23070 #define dlopen innocuous_dlopen
23071
23072 /* System header to define __stub macros and hopefully few prototypes,
23073     which can conflict with char dlopen (); below.
23074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23075     <limits.h> exists even on freestanding compilers.  */
23076
23077 #ifdef __STDC__
23078 # include <limits.h>
23079 #else
23080 # include <assert.h>
23081 #endif
23082
23083 #undef dlopen
23084
23085 /* Override any gcc2 internal prototype to avoid an error.  */
23086 #ifdef __cplusplus
23087 extern "C"
23088 {
23089 #endif
23090 /* We use char because int might match the return type of a gcc2
23091    builtin and then its argument prototype would still apply.  */
23092 char dlopen ();
23093 /* The GNU C library defines this for functions which it implements
23094     to always fail with ENOSYS.  Some functions are actually named
23095     something starting with __ and the normal name is an alias.  */
23096 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23097 choke me
23098 #else
23099 char (*f) () = dlopen;
23100 #endif
23101 #ifdef __cplusplus
23102 }
23103 #endif
23104
23105 int
23106 main ()
23107 {
23108 return f != dlopen;
23109   ;
23110   return 0;
23111 }
23112 _ACEOF
23113 rm -f conftest.$ac_objext conftest$ac_exeext
23114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23115   (eval $ac_link) 2>conftest.er1
23116   ac_status=$?
23117   grep -v '^ *+' conftest.er1 >conftest.err
23118   rm -f conftest.er1
23119   cat conftest.err >&5
23120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121   (exit $ac_status); } &&
23122          { ac_try='test -z "$ac_c_werror_flag"
23123                          || test ! -s conftest.err'
23124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23125   (eval $ac_try) 2>&5
23126   ac_status=$?
23127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128   (exit $ac_status); }; } &&
23129          { ac_try='test -s conftest$ac_exeext'
23130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23131   (eval $ac_try) 2>&5
23132   ac_status=$?
23133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134   (exit $ac_status); }; }; then
23135   ac_cv_func_dlopen=yes
23136 else
23137   echo "$as_me: failed program was:" >&5
23138 sed 's/^/| /' conftest.$ac_ext >&5
23139
23140 ac_cv_func_dlopen=no
23141 fi
23142 rm -f conftest.err conftest.$ac_objext \
23143       conftest$ac_exeext conftest.$ac_ext
23144 fi
23145 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23146 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23147 if test $ac_cv_func_dlopen = yes; then
23148   lt_cv_dlopen="dlopen"
23149 else
23150   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23151 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23152 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23153   echo $ECHO_N "(cached) $ECHO_C" >&6
23154 else
23155   ac_check_lib_save_LIBS=$LIBS
23156 LIBS="-ldl  $LIBS"
23157 cat >conftest.$ac_ext <<_ACEOF
23158 /* confdefs.h.  */
23159 _ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h.  */
23163
23164 /* Override any gcc2 internal prototype to avoid an error.  */
23165 #ifdef __cplusplus
23166 extern "C"
23167 #endif
23168 /* We use char because int might match the return type of a gcc2
23169    builtin and then its argument prototype would still apply.  */
23170 char dlopen ();
23171 int
23172 main ()
23173 {
23174 dlopen ();
23175   ;
23176   return 0;
23177 }
23178 _ACEOF
23179 rm -f conftest.$ac_objext conftest$ac_exeext
23180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23181   (eval $ac_link) 2>conftest.er1
23182   ac_status=$?
23183   grep -v '^ *+' conftest.er1 >conftest.err
23184   rm -f conftest.er1
23185   cat conftest.err >&5
23186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187   (exit $ac_status); } &&
23188          { ac_try='test -z "$ac_c_werror_flag"
23189                          || test ! -s conftest.err'
23190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191   (eval $ac_try) 2>&5
23192   ac_status=$?
23193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194   (exit $ac_status); }; } &&
23195          { ac_try='test -s conftest$ac_exeext'
23196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197   (eval $ac_try) 2>&5
23198   ac_status=$?
23199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200   (exit $ac_status); }; }; then
23201   ac_cv_lib_dl_dlopen=yes
23202 else
23203   echo "$as_me: failed program was:" >&5
23204 sed 's/^/| /' conftest.$ac_ext >&5
23205
23206 ac_cv_lib_dl_dlopen=no
23207 fi
23208 rm -f conftest.err conftest.$ac_objext \
23209       conftest$ac_exeext conftest.$ac_ext
23210 LIBS=$ac_check_lib_save_LIBS
23211 fi
23212 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23213 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23214 if test $ac_cv_lib_dl_dlopen = yes; then
23215   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23216 else
23217   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23218 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23219 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23220   echo $ECHO_N "(cached) $ECHO_C" >&6
23221 else
23222   ac_check_lib_save_LIBS=$LIBS
23223 LIBS="-lsvld  $LIBS"
23224 cat >conftest.$ac_ext <<_ACEOF
23225 /* confdefs.h.  */
23226 _ACEOF
23227 cat confdefs.h >>conftest.$ac_ext
23228 cat >>conftest.$ac_ext <<_ACEOF
23229 /* end confdefs.h.  */
23230
23231 /* Override any gcc2 internal prototype to avoid an error.  */
23232 #ifdef __cplusplus
23233 extern "C"
23234 #endif
23235 /* We use char because int might match the return type of a gcc2
23236    builtin and then its argument prototype would still apply.  */
23237 char dlopen ();
23238 int
23239 main ()
23240 {
23241 dlopen ();
23242   ;
23243   return 0;
23244 }
23245 _ACEOF
23246 rm -f conftest.$ac_objext conftest$ac_exeext
23247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23248   (eval $ac_link) 2>conftest.er1
23249   ac_status=$?
23250   grep -v '^ *+' conftest.er1 >conftest.err
23251   rm -f conftest.er1
23252   cat conftest.err >&5
23253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254   (exit $ac_status); } &&
23255          { ac_try='test -z "$ac_c_werror_flag"
23256                          || test ! -s conftest.err'
23257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23258   (eval $ac_try) 2>&5
23259   ac_status=$?
23260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261   (exit $ac_status); }; } &&
23262          { ac_try='test -s conftest$ac_exeext'
23263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264   (eval $ac_try) 2>&5
23265   ac_status=$?
23266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); }; }; then
23268   ac_cv_lib_svld_dlopen=yes
23269 else
23270   echo "$as_me: failed program was:" >&5
23271 sed 's/^/| /' conftest.$ac_ext >&5
23272
23273 ac_cv_lib_svld_dlopen=no
23274 fi
23275 rm -f conftest.err conftest.$ac_objext \
23276       conftest$ac_exeext conftest.$ac_ext
23277 LIBS=$ac_check_lib_save_LIBS
23278 fi
23279 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23280 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23281 if test $ac_cv_lib_svld_dlopen = yes; then
23282   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23283 else
23284   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23285 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23286 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23287   echo $ECHO_N "(cached) $ECHO_C" >&6
23288 else
23289   ac_check_lib_save_LIBS=$LIBS
23290 LIBS="-ldld  $LIBS"
23291 cat >conftest.$ac_ext <<_ACEOF
23292 /* confdefs.h.  */
23293 _ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h.  */
23297
23298 /* Override any gcc2 internal prototype to avoid an error.  */
23299 #ifdef __cplusplus
23300 extern "C"
23301 #endif
23302 /* We use char because int might match the return type of a gcc2
23303    builtin and then its argument prototype would still apply.  */
23304 char dld_link ();
23305 int
23306 main ()
23307 {
23308 dld_link ();
23309   ;
23310   return 0;
23311 }
23312 _ACEOF
23313 rm -f conftest.$ac_objext conftest$ac_exeext
23314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23315   (eval $ac_link) 2>conftest.er1
23316   ac_status=$?
23317   grep -v '^ *+' conftest.er1 >conftest.err
23318   rm -f conftest.er1
23319   cat conftest.err >&5
23320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321   (exit $ac_status); } &&
23322          { ac_try='test -z "$ac_c_werror_flag"
23323                          || test ! -s conftest.err'
23324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23325   (eval $ac_try) 2>&5
23326   ac_status=$?
23327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328   (exit $ac_status); }; } &&
23329          { ac_try='test -s conftest$ac_exeext'
23330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23331   (eval $ac_try) 2>&5
23332   ac_status=$?
23333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334   (exit $ac_status); }; }; then
23335   ac_cv_lib_dld_dld_link=yes
23336 else
23337   echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23339
23340 ac_cv_lib_dld_dld_link=no
23341 fi
23342 rm -f conftest.err conftest.$ac_objext \
23343       conftest$ac_exeext conftest.$ac_ext
23344 LIBS=$ac_check_lib_save_LIBS
23345 fi
23346 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23347 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23348 if test $ac_cv_lib_dld_dld_link = yes; then
23349   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23350 fi
23351
23352
23353 fi
23354
23355
23356 fi
23357
23358
23359 fi
23360
23361
23362 fi
23363
23364
23365 fi
23366
23367     ;;
23368   esac
23369
23370   if test "x$lt_cv_dlopen" != xno; then
23371     enable_dlopen=yes
23372   else
23373     enable_dlopen=no
23374   fi
23375
23376   case $lt_cv_dlopen in
23377   dlopen)
23378     save_CPPFLAGS="$CPPFLAGS"
23379     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23380
23381     save_LDFLAGS="$LDFLAGS"
23382     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23383
23384     save_LIBS="$LIBS"
23385     LIBS="$lt_cv_dlopen_libs $LIBS"
23386
23387     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23388 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23389 if test "${lt_cv_dlopen_self+set}" = set; then
23390   echo $ECHO_N "(cached) $ECHO_C" >&6
23391 else
23392           if test "$cross_compiling" = yes; then :
23393   lt_cv_dlopen_self=cross
23394 else
23395   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23396   lt_status=$lt_dlunknown
23397   cat > conftest.$ac_ext <<EOF
23398 #line 23398 "configure"
23399 #include "confdefs.h"
23400
23401 #if HAVE_DLFCN_H
23402 #include <dlfcn.h>
23403 #endif
23404
23405 #include <stdio.h>
23406
23407 #ifdef RTLD_GLOBAL
23408 #  define LT_DLGLOBAL           RTLD_GLOBAL
23409 #else
23410 #  ifdef DL_GLOBAL
23411 #    define LT_DLGLOBAL         DL_GLOBAL
23412 #  else
23413 #    define LT_DLGLOBAL         0
23414 #  endif
23415 #endif
23416
23417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23418    find out it does not work in some platform. */
23419 #ifndef LT_DLLAZY_OR_NOW
23420 #  ifdef RTLD_LAZY
23421 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23422 #  else
23423 #    ifdef DL_LAZY
23424 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23425 #    else
23426 #      ifdef RTLD_NOW
23427 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23428 #      else
23429 #        ifdef DL_NOW
23430 #          define LT_DLLAZY_OR_NOW      DL_NOW
23431 #        else
23432 #          define LT_DLLAZY_OR_NOW      0
23433 #        endif
23434 #      endif
23435 #    endif
23436 #  endif
23437 #endif
23438
23439 #ifdef __cplusplus
23440 extern "C" void exit (int);
23441 #endif
23442
23443 void fnord() { int i=42;}
23444 int main ()
23445 {
23446   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23447   int status = $lt_dlunknown;
23448
23449   if (self)
23450     {
23451       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23452       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23453       /* dlclose (self); */
23454     }
23455
23456     exit (status);
23457 }
23458 EOF
23459   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23460   (eval $ac_link) 2>&5
23461   ac_status=$?
23462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23464     (./conftest; exit; ) 2>/dev/null
23465     lt_status=$?
23466     case x$lt_status in
23467       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23468       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23469       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23470     esac
23471   else :
23472     # compilation failed
23473     lt_cv_dlopen_self=no
23474   fi
23475 fi
23476 rm -fr conftest*
23477
23478
23479 fi
23480 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23481 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23482
23483     if test "x$lt_cv_dlopen_self" = xyes; then
23484       LDFLAGS="$LDFLAGS $link_static_flag"
23485       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23486 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23487 if test "${lt_cv_dlopen_self_static+set}" = set; then
23488   echo $ECHO_N "(cached) $ECHO_C" >&6
23489 else
23490           if test "$cross_compiling" = yes; then :
23491   lt_cv_dlopen_self_static=cross
23492 else
23493   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23494   lt_status=$lt_dlunknown
23495   cat > conftest.$ac_ext <<EOF
23496 #line 23496 "configure"
23497 #include "confdefs.h"
23498
23499 #if HAVE_DLFCN_H
23500 #include <dlfcn.h>
23501 #endif
23502
23503 #include <stdio.h>
23504
23505 #ifdef RTLD_GLOBAL
23506 #  define LT_DLGLOBAL           RTLD_GLOBAL
23507 #else
23508 #  ifdef DL_GLOBAL
23509 #    define LT_DLGLOBAL         DL_GLOBAL
23510 #  else
23511 #    define LT_DLGLOBAL         0
23512 #  endif
23513 #endif
23514
23515 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23516    find out it does not work in some platform. */
23517 #ifndef LT_DLLAZY_OR_NOW
23518 #  ifdef RTLD_LAZY
23519 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23520 #  else
23521 #    ifdef DL_LAZY
23522 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23523 #    else
23524 #      ifdef RTLD_NOW
23525 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23526 #      else
23527 #        ifdef DL_NOW
23528 #          define LT_DLLAZY_OR_NOW      DL_NOW
23529 #        else
23530 #          define LT_DLLAZY_OR_NOW      0
23531 #        endif
23532 #      endif
23533 #    endif
23534 #  endif
23535 #endif
23536
23537 #ifdef __cplusplus
23538 extern "C" void exit (int);
23539 #endif
23540
23541 void fnord() { int i=42;}
23542 int main ()
23543 {
23544   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23545   int status = $lt_dlunknown;
23546
23547   if (self)
23548     {
23549       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23550       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23551       /* dlclose (self); */
23552     }
23553
23554     exit (status);
23555 }
23556 EOF
23557   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23558   (eval $ac_link) 2>&5
23559   ac_status=$?
23560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23562     (./conftest; exit; ) 2>/dev/null
23563     lt_status=$?
23564     case x$lt_status in
23565       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23566       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23567       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23568     esac
23569   else :
23570     # compilation failed
23571     lt_cv_dlopen_self_static=no
23572   fi
23573 fi
23574 rm -fr conftest*
23575
23576
23577 fi
23578 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23579 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23580     fi
23581
23582     CPPFLAGS="$save_CPPFLAGS"
23583     LDFLAGS="$save_LDFLAGS"
23584     LIBS="$save_LIBS"
23585     ;;
23586   esac
23587
23588   case $lt_cv_dlopen_self in
23589   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23590   *) enable_dlopen_self=unknown ;;
23591   esac
23592
23593   case $lt_cv_dlopen_self_static in
23594   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23595   *) enable_dlopen_self_static=unknown ;;
23596   esac
23597 fi
23598
23599
23600 # The else clause should only fire when bootstrapping the
23601 # libtool distribution, otherwise you forgot to ship ltmain.sh
23602 # with your package, and you will get complaints that there are
23603 # no rules to generate ltmain.sh.
23604 if test -f "$ltmain"; then
23605   # See if we are running on zsh, and set the options which allow our commands through
23606   # without removal of \ escapes.
23607   if test -n "${ZSH_VERSION+set}" ; then
23608     setopt NO_GLOB_SUBST
23609   fi
23610   # Now quote all the things that may contain metacharacters while being
23611   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23612   # variables and quote the copies for generation of the libtool script.
23613   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23614     SED SHELL STRIP \
23615     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23616     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23617     deplibs_check_method reload_flag reload_cmds need_locks \
23618     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23619     lt_cv_sys_global_symbol_to_c_name_address \
23620     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23621     old_postinstall_cmds old_postuninstall_cmds \
23622     compiler_GCJ \
23623     CC_GCJ \
23624     LD_GCJ \
23625     lt_prog_compiler_wl_GCJ \
23626     lt_prog_compiler_pic_GCJ \
23627     lt_prog_compiler_static_GCJ \
23628     lt_prog_compiler_no_builtin_flag_GCJ \
23629     export_dynamic_flag_spec_GCJ \
23630     thread_safe_flag_spec_GCJ \
23631     whole_archive_flag_spec_GCJ \
23632     enable_shared_with_static_runtimes_GCJ \
23633     old_archive_cmds_GCJ \
23634     old_archive_from_new_cmds_GCJ \
23635     predep_objects_GCJ \
23636     postdep_objects_GCJ \
23637     predeps_GCJ \
23638     postdeps_GCJ \
23639     compiler_lib_search_path_GCJ \
23640     archive_cmds_GCJ \
23641     archive_expsym_cmds_GCJ \
23642     postinstall_cmds_GCJ \
23643     postuninstall_cmds_GCJ \
23644     old_archive_from_expsyms_cmds_GCJ \
23645     allow_undefined_flag_GCJ \
23646     no_undefined_flag_GCJ \
23647     export_symbols_cmds_GCJ \
23648     hardcode_libdir_flag_spec_GCJ \
23649     hardcode_libdir_flag_spec_ld_GCJ \
23650     hardcode_libdir_separator_GCJ \
23651     hardcode_automatic_GCJ \
23652     module_cmds_GCJ \
23653     module_expsym_cmds_GCJ \
23654     lt_cv_prog_compiler_c_o_GCJ \
23655     exclude_expsyms_GCJ \
23656     include_expsyms_GCJ; do
23657
23658     case $var in
23659     old_archive_cmds_GCJ | \
23660     old_archive_from_new_cmds_GCJ | \
23661     archive_cmds_GCJ | \
23662     archive_expsym_cmds_GCJ | \
23663     module_cmds_GCJ | \
23664     module_expsym_cmds_GCJ | \
23665     old_archive_from_expsyms_cmds_GCJ | \
23666     export_symbols_cmds_GCJ | \
23667     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23668     postinstall_cmds | postuninstall_cmds | \
23669     old_postinstall_cmds | old_postuninstall_cmds | \
23670     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23671       # Double-quote double-evaled strings.
23672       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23673       ;;
23674     *)
23675       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23676       ;;
23677     esac
23678   done
23679
23680   case $lt_echo in
23681   *'\$0 --fallback-echo"')
23682     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23683     ;;
23684   esac
23685
23686 cfgfile="$ofile"
23687
23688   cat <<__EOF__ >> "$cfgfile"
23689 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23690
23691 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23692
23693 # Shell to use when invoking shell scripts.
23694 SHELL=$lt_SHELL
23695
23696 # Whether or not to build shared libraries.
23697 build_libtool_libs=$enable_shared
23698
23699 # Whether or not to build static libraries.
23700 build_old_libs=$enable_static
23701
23702 # Whether or not to add -lc for building shared libraries.
23703 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23704
23705 # Whether or not to disallow shared libs when runtime libs are static
23706 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23707
23708 # Whether or not to optimize for fast installation.
23709 fast_install=$enable_fast_install
23710
23711 # The host system.
23712 host_alias=$host_alias
23713 host=$host
23714
23715 # An echo program that does not interpret backslashes.
23716 echo=$lt_echo
23717
23718 # The archiver.
23719 AR=$lt_AR
23720 AR_FLAGS=$lt_AR_FLAGS
23721
23722 # A C compiler.
23723 LTCC=$lt_LTCC
23724
23725 # A language-specific compiler.
23726 CC=$lt_compiler_GCJ
23727
23728 # Is the compiler the GNU C compiler?
23729 with_gcc=$GCC_GCJ
23730
23731 # An ERE matcher.
23732 EGREP=$lt_EGREP
23733
23734 # The linker used to build libraries.
23735 LD=$lt_LD_GCJ
23736
23737 # Whether we need hard or soft links.
23738 LN_S=$lt_LN_S
23739
23740 # A BSD-compatible nm program.
23741 NM=$lt_NM
23742
23743 # A symbol stripping program
23744 STRIP=$lt_STRIP
23745
23746 # Used to examine libraries when file_magic_cmd begins "file"
23747 MAGIC_CMD=$MAGIC_CMD
23748
23749 # Used on cygwin: DLL creation program.
23750 DLLTOOL="$DLLTOOL"
23751
23752 # Used on cygwin: object dumper.
23753 OBJDUMP="$OBJDUMP"
23754
23755 # Used on cygwin: assembler.
23756 AS="$AS"
23757
23758 # The name of the directory that contains temporary libtool files.
23759 objdir=$objdir
23760
23761 # How to create reloadable object files.
23762 reload_flag=$lt_reload_flag
23763 reload_cmds=$lt_reload_cmds
23764
23765 # How to pass a linker flag through the compiler.
23766 wl=$lt_lt_prog_compiler_wl_GCJ
23767
23768 # Object file suffix (normally "o").
23769 objext="$ac_objext"
23770
23771 # Old archive suffix (normally "a").
23772 libext="$libext"
23773
23774 # Shared library suffix (normally ".so").
23775 shrext_cmds='$shrext_cmds'
23776
23777 # Executable file suffix (normally "").
23778 exeext="$exeext"
23779
23780 # Additional compiler flags for building library objects.
23781 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23782 pic_mode=$pic_mode
23783
23784 # What is the maximum length of a command?
23785 max_cmd_len=$lt_cv_sys_max_cmd_len
23786
23787 # Does compiler simultaneously support -c and -o options?
23788 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23789
23790 # Must we lock files when doing compilation ?
23791 need_locks=$lt_need_locks
23792
23793 # Do we need the lib prefix for modules?
23794 need_lib_prefix=$need_lib_prefix
23795
23796 # Do we need a version for libraries?
23797 need_version=$need_version
23798
23799 # Whether dlopen is supported.
23800 dlopen_support=$enable_dlopen
23801
23802 # Whether dlopen of programs is supported.
23803 dlopen_self=$enable_dlopen_self
23804
23805 # Whether dlopen of statically linked programs is supported.
23806 dlopen_self_static=$enable_dlopen_self_static
23807
23808 # Compiler flag to prevent dynamic linking.
23809 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23810
23811 # Compiler flag to turn off builtin functions.
23812 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23813
23814 # Compiler flag to allow reflexive dlopens.
23815 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23816
23817 # Compiler flag to generate shared objects directly from archives.
23818 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23819
23820 # Compiler flag to generate thread-safe objects.
23821 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23822
23823 # Library versioning type.
23824 version_type=$version_type
23825
23826 # Format of library name prefix.
23827 libname_spec=$lt_libname_spec
23828
23829 # List of archive names.  First name is the real one, the rest are links.
23830 # The last name is the one that the linker finds with -lNAME.
23831 library_names_spec=$lt_library_names_spec
23832
23833 # The coded name of the library, if different from the real name.
23834 soname_spec=$lt_soname_spec
23835
23836 # Commands used to build and install an old-style archive.
23837 RANLIB=$lt_RANLIB
23838 old_archive_cmds=$lt_old_archive_cmds_GCJ
23839 old_postinstall_cmds=$lt_old_postinstall_cmds
23840 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23841
23842 # Create an old-style archive from a shared archive.
23843 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23844
23845 # Create a temporary old-style archive to link instead of a shared archive.
23846 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23847
23848 # Commands used to build and install a shared archive.
23849 archive_cmds=$lt_archive_cmds_GCJ
23850 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23851 postinstall_cmds=$lt_postinstall_cmds
23852 postuninstall_cmds=$lt_postuninstall_cmds
23853
23854 # Commands used to build a loadable module (assumed same as above if empty)
23855 module_cmds=$lt_module_cmds_GCJ
23856 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23857
23858 # Commands to strip libraries.
23859 old_striplib=$lt_old_striplib
23860 striplib=$lt_striplib
23861
23862 # Dependencies to place before the objects being linked to create a
23863 # shared library.
23864 predep_objects=$lt_predep_objects_GCJ
23865
23866 # Dependencies to place after the objects being linked to create a
23867 # shared library.
23868 postdep_objects=$lt_postdep_objects_GCJ
23869
23870 # Dependencies to place before the objects being linked to create a
23871 # shared library.
23872 predeps=$lt_predeps_GCJ
23873
23874 # Dependencies to place after the objects being linked to create a
23875 # shared library.
23876 postdeps=$lt_postdeps_GCJ
23877
23878 # The library search path used internally by the compiler when linking
23879 # a shared library.
23880 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23881
23882 # Method to check whether dependent libraries are shared objects.
23883 deplibs_check_method=$lt_deplibs_check_method
23884
23885 # Command to use when deplibs_check_method == file_magic.
23886 file_magic_cmd=$lt_file_magic_cmd
23887
23888 # Flag that allows shared libraries with undefined symbols to be built.
23889 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23890
23891 # Flag that forces no undefined symbols.
23892 no_undefined_flag=$lt_no_undefined_flag_GCJ
23893
23894 # Commands used to finish a libtool library installation in a directory.
23895 finish_cmds=$lt_finish_cmds
23896
23897 # Same as above, but a single script fragment to be evaled but not shown.
23898 finish_eval=$lt_finish_eval
23899
23900 # Take the output of nm and produce a listing of raw symbols and C names.
23901 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23902
23903 # Transform the output of nm in a proper C declaration
23904 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23905
23906 # Transform the output of nm in a C name address pair
23907 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23908
23909 # This is the shared library runtime path variable.
23910 runpath_var=$runpath_var
23911
23912 # This is the shared library path variable.
23913 shlibpath_var=$shlibpath_var
23914
23915 # Is shlibpath searched before the hard-coded library search path?
23916 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23917
23918 # How to hardcode a shared library path into an executable.
23919 hardcode_action=$hardcode_action_GCJ
23920
23921 # Whether we should hardcode library paths into libraries.
23922 hardcode_into_libs=$hardcode_into_libs
23923
23924 # Flag to hardcode \$libdir into a binary during linking.
23925 # This must work even if \$libdir does not exist.
23926 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23927
23928 # If ld is used when linking, flag to hardcode \$libdir into
23929 # a binary during linking. This must work even if \$libdir does
23930 # not exist.
23931 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23932
23933 # Whether we need a single -rpath flag with a separated argument.
23934 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23935
23936 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23937 # resulting binary.
23938 hardcode_direct=$hardcode_direct_GCJ
23939
23940 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23941 # resulting binary.
23942 hardcode_minus_L=$hardcode_minus_L_GCJ
23943
23944 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23945 # the resulting binary.
23946 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23947
23948 # Set to yes if building a shared library automatically hardcodes DIR into the library
23949 # and all subsequent libraries and executables linked against it.
23950 hardcode_automatic=$hardcode_automatic_GCJ
23951
23952 # Variables whose values should be saved in libtool wrapper scripts and
23953 # restored at relink time.
23954 variables_saved_for_relink="$variables_saved_for_relink"
23955
23956 # Whether libtool must link a program against all its dependency libraries.
23957 link_all_deplibs=$link_all_deplibs_GCJ
23958
23959 # Compile-time system search path for libraries
23960 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23961
23962 # Run-time system search path for libraries
23963 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23964
23965 # Fix the shell variable \$srcfile for the compiler.
23966 fix_srcfile_path="$fix_srcfile_path_GCJ"
23967
23968 # Set to yes if exported symbols are required.
23969 always_export_symbols=$always_export_symbols_GCJ
23970
23971 # The commands to list exported symbols.
23972 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23973
23974 # The commands to extract the exported symbol list from a shared archive.
23975 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23976
23977 # Symbols that should not be listed in the preloaded symbols.
23978 exclude_expsyms=$lt_exclude_expsyms_GCJ
23979
23980 # Symbols that must always be exported.
23981 include_expsyms=$lt_include_expsyms_GCJ
23982
23983 # ### END LIBTOOL TAG CONFIG: $tagname
23984
23985 __EOF__
23986
23987
23988 else
23989   # If there is no Makefile yet, we rely on a make rule to execute
23990   # `config.status --recheck' to rerun these tests and create the
23991   # libtool script then.
23992   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23993   if test -f "$ltmain_in"; then
23994     test -f Makefile && make "$ltmain"
23995   fi
23996 fi
23997
23998
23999 ac_ext=c
24000 ac_cpp='$CPP $CPPFLAGS'
24001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24004
24005 CC="$lt_save_CC"
24006
24007         else
24008           tagname=""
24009         fi
24010         ;;
24011
24012       RC)
24013
24014
24015
24016 # Source file extension for RC test sources.
24017 ac_ext=rc
24018
24019 # Object file extension for compiled RC test sources.
24020 objext=o
24021 objext_RC=$objext
24022
24023 # Code to be used in simple compile tests
24024 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24025
24026 # Code to be used in simple link tests
24027 lt_simple_link_test_code="$lt_simple_compile_test_code"
24028
24029 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24030
24031 # If no C compiler was specified, use CC.
24032 LTCC=${LTCC-"$CC"}
24033
24034 # Allow CC to be a program name with arguments.
24035 compiler=$CC
24036
24037
24038 # Allow CC to be a program name with arguments.
24039 lt_save_CC="$CC"
24040 CC=${RC-"windres"}
24041 compiler=$CC
24042 compiler_RC=$CC
24043 lt_cv_prog_compiler_c_o_RC=yes
24044
24045 # The else clause should only fire when bootstrapping the
24046 # libtool distribution, otherwise you forgot to ship ltmain.sh
24047 # with your package, and you will get complaints that there are
24048 # no rules to generate ltmain.sh.
24049 if test -f "$ltmain"; then
24050   # See if we are running on zsh, and set the options which allow our commands through
24051   # without removal of \ escapes.
24052   if test -n "${ZSH_VERSION+set}" ; then
24053     setopt NO_GLOB_SUBST
24054   fi
24055   # Now quote all the things that may contain metacharacters while being
24056   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24057   # variables and quote the copies for generation of the libtool script.
24058   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24059     SED SHELL STRIP \
24060     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24061     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24062     deplibs_check_method reload_flag reload_cmds need_locks \
24063     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24064     lt_cv_sys_global_symbol_to_c_name_address \
24065     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24066     old_postinstall_cmds old_postuninstall_cmds \
24067     compiler_RC \
24068     CC_RC \
24069     LD_RC \
24070     lt_prog_compiler_wl_RC \
24071     lt_prog_compiler_pic_RC \
24072     lt_prog_compiler_static_RC \
24073     lt_prog_compiler_no_builtin_flag_RC \
24074     export_dynamic_flag_spec_RC \
24075     thread_safe_flag_spec_RC \
24076     whole_archive_flag_spec_RC \
24077     enable_shared_with_static_runtimes_RC \
24078     old_archive_cmds_RC \
24079     old_archive_from_new_cmds_RC \
24080     predep_objects_RC \
24081     postdep_objects_RC \
24082     predeps_RC \
24083     postdeps_RC \
24084     compiler_lib_search_path_RC \
24085     archive_cmds_RC \
24086     archive_expsym_cmds_RC \
24087     postinstall_cmds_RC \
24088     postuninstall_cmds_RC \
24089     old_archive_from_expsyms_cmds_RC \
24090     allow_undefined_flag_RC \
24091     no_undefined_flag_RC \
24092     export_symbols_cmds_RC \
24093     hardcode_libdir_flag_spec_RC \
24094     hardcode_libdir_flag_spec_ld_RC \
24095     hardcode_libdir_separator_RC \
24096     hardcode_automatic_RC \
24097     module_cmds_RC \
24098     module_expsym_cmds_RC \
24099     lt_cv_prog_compiler_c_o_RC \
24100     exclude_expsyms_RC \
24101     include_expsyms_RC; do
24102
24103     case $var in
24104     old_archive_cmds_RC | \
24105     old_archive_from_new_cmds_RC | \
24106     archive_cmds_RC | \
24107     archive_expsym_cmds_RC | \
24108     module_cmds_RC | \
24109     module_expsym_cmds_RC | \
24110     old_archive_from_expsyms_cmds_RC | \
24111     export_symbols_cmds_RC | \
24112     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24113     postinstall_cmds | postuninstall_cmds | \
24114     old_postinstall_cmds | old_postuninstall_cmds | \
24115     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24116       # Double-quote double-evaled strings.
24117       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24118       ;;
24119     *)
24120       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24121       ;;
24122     esac
24123   done
24124
24125   case $lt_echo in
24126   *'\$0 --fallback-echo"')
24127     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24128     ;;
24129   esac
24130
24131 cfgfile="$ofile"
24132
24133   cat <<__EOF__ >> "$cfgfile"
24134 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24135
24136 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24137
24138 # Shell to use when invoking shell scripts.
24139 SHELL=$lt_SHELL
24140
24141 # Whether or not to build shared libraries.
24142 build_libtool_libs=$enable_shared
24143
24144 # Whether or not to build static libraries.
24145 build_old_libs=$enable_static
24146
24147 # Whether or not to add -lc for building shared libraries.
24148 build_libtool_need_lc=$archive_cmds_need_lc_RC
24149
24150 # Whether or not to disallow shared libs when runtime libs are static
24151 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24152
24153 # Whether or not to optimize for fast installation.
24154 fast_install=$enable_fast_install
24155
24156 # The host system.
24157 host_alias=$host_alias
24158 host=$host
24159
24160 # An echo program that does not interpret backslashes.
24161 echo=$lt_echo
24162
24163 # The archiver.
24164 AR=$lt_AR
24165 AR_FLAGS=$lt_AR_FLAGS
24166
24167 # A C compiler.
24168 LTCC=$lt_LTCC
24169
24170 # A language-specific compiler.
24171 CC=$lt_compiler_RC
24172
24173 # Is the compiler the GNU C compiler?
24174 with_gcc=$GCC_RC
24175
24176 # An ERE matcher.
24177 EGREP=$lt_EGREP
24178
24179 # The linker used to build libraries.
24180 LD=$lt_LD_RC
24181
24182 # Whether we need hard or soft links.
24183 LN_S=$lt_LN_S
24184
24185 # A BSD-compatible nm program.
24186 NM=$lt_NM
24187
24188 # A symbol stripping program
24189 STRIP=$lt_STRIP
24190
24191 # Used to examine libraries when file_magic_cmd begins "file"
24192 MAGIC_CMD=$MAGIC_CMD
24193
24194 # Used on cygwin: DLL creation program.
24195 DLLTOOL="$DLLTOOL"
24196
24197 # Used on cygwin: object dumper.
24198 OBJDUMP="$OBJDUMP"
24199
24200 # Used on cygwin: assembler.
24201 AS="$AS"
24202
24203 # The name of the directory that contains temporary libtool files.
24204 objdir=$objdir
24205
24206 # How to create reloadable object files.
24207 reload_flag=$lt_reload_flag
24208 reload_cmds=$lt_reload_cmds
24209
24210 # How to pass a linker flag through the compiler.
24211 wl=$lt_lt_prog_compiler_wl_RC
24212
24213 # Object file suffix (normally "o").
24214 objext="$ac_objext"
24215
24216 # Old archive suffix (normally "a").
24217 libext="$libext"
24218
24219 # Shared library suffix (normally ".so").
24220 shrext_cmds='$shrext_cmds'
24221
24222 # Executable file suffix (normally "").
24223 exeext="$exeext"
24224
24225 # Additional compiler flags for building library objects.
24226 pic_flag=$lt_lt_prog_compiler_pic_RC
24227 pic_mode=$pic_mode
24228
24229 # What is the maximum length of a command?
24230 max_cmd_len=$lt_cv_sys_max_cmd_len
24231
24232 # Does compiler simultaneously support -c and -o options?
24233 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24234
24235 # Must we lock files when doing compilation ?
24236 need_locks=$lt_need_locks
24237
24238 # Do we need the lib prefix for modules?
24239 need_lib_prefix=$need_lib_prefix
24240
24241 # Do we need a version for libraries?
24242 need_version=$need_version
24243
24244 # Whether dlopen is supported.
24245 dlopen_support=$enable_dlopen
24246
24247 # Whether dlopen of programs is supported.
24248 dlopen_self=$enable_dlopen_self
24249
24250 # Whether dlopen of statically linked programs is supported.
24251 dlopen_self_static=$enable_dlopen_self_static
24252
24253 # Compiler flag to prevent dynamic linking.
24254 link_static_flag=$lt_lt_prog_compiler_static_RC
24255
24256 # Compiler flag to turn off builtin functions.
24257 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24258
24259 # Compiler flag to allow reflexive dlopens.
24260 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24261
24262 # Compiler flag to generate shared objects directly from archives.
24263 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24264
24265 # Compiler flag to generate thread-safe objects.
24266 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24267
24268 # Library versioning type.
24269 version_type=$version_type
24270
24271 # Format of library name prefix.
24272 libname_spec=$lt_libname_spec
24273
24274 # List of archive names.  First name is the real one, the rest are links.
24275 # The last name is the one that the linker finds with -lNAME.
24276 library_names_spec=$lt_library_names_spec
24277
24278 # The coded name of the library, if different from the real name.
24279 soname_spec=$lt_soname_spec
24280
24281 # Commands used to build and install an old-style archive.
24282 RANLIB=$lt_RANLIB
24283 old_archive_cmds=$lt_old_archive_cmds_RC
24284 old_postinstall_cmds=$lt_old_postinstall_cmds
24285 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24286
24287 # Create an old-style archive from a shared archive.
24288 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24289
24290 # Create a temporary old-style archive to link instead of a shared archive.
24291 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24292
24293 # Commands used to build and install a shared archive.
24294 archive_cmds=$lt_archive_cmds_RC
24295 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24296 postinstall_cmds=$lt_postinstall_cmds
24297 postuninstall_cmds=$lt_postuninstall_cmds
24298
24299 # Commands used to build a loadable module (assumed same as above if empty)
24300 module_cmds=$lt_module_cmds_RC
24301 module_expsym_cmds=$lt_module_expsym_cmds_RC
24302
24303 # Commands to strip libraries.
24304 old_striplib=$lt_old_striplib
24305 striplib=$lt_striplib
24306
24307 # Dependencies to place before the objects being linked to create a
24308 # shared library.
24309 predep_objects=$lt_predep_objects_RC
24310
24311 # Dependencies to place after the objects being linked to create a
24312 # shared library.
24313 postdep_objects=$lt_postdep_objects_RC
24314
24315 # Dependencies to place before the objects being linked to create a
24316 # shared library.
24317 predeps=$lt_predeps_RC
24318
24319 # Dependencies to place after the objects being linked to create a
24320 # shared library.
24321 postdeps=$lt_postdeps_RC
24322
24323 # The library search path used internally by the compiler when linking
24324 # a shared library.
24325 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24326
24327 # Method to check whether dependent libraries are shared objects.
24328 deplibs_check_method=$lt_deplibs_check_method
24329
24330 # Command to use when deplibs_check_method == file_magic.
24331 file_magic_cmd=$lt_file_magic_cmd
24332
24333 # Flag that allows shared libraries with undefined symbols to be built.
24334 allow_undefined_flag=$lt_allow_undefined_flag_RC
24335
24336 # Flag that forces no undefined symbols.
24337 no_undefined_flag=$lt_no_undefined_flag_RC
24338
24339 # Commands used to finish a libtool library installation in a directory.
24340 finish_cmds=$lt_finish_cmds
24341
24342 # Same as above, but a single script fragment to be evaled but not shown.
24343 finish_eval=$lt_finish_eval
24344
24345 # Take the output of nm and produce a listing of raw symbols and C names.
24346 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24347
24348 # Transform the output of nm in a proper C declaration
24349 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24350
24351 # Transform the output of nm in a C name address pair
24352 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24353
24354 # This is the shared library runtime path variable.
24355 runpath_var=$runpath_var
24356
24357 # This is the shared library path variable.
24358 shlibpath_var=$shlibpath_var
24359
24360 # Is shlibpath searched before the hard-coded library search path?
24361 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24362
24363 # How to hardcode a shared library path into an executable.
24364 hardcode_action=$hardcode_action_RC
24365
24366 # Whether we should hardcode library paths into libraries.
24367 hardcode_into_libs=$hardcode_into_libs
24368
24369 # Flag to hardcode \$libdir into a binary during linking.
24370 # This must work even if \$libdir does not exist.
24371 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24372
24373 # If ld is used when linking, flag to hardcode \$libdir into
24374 # a binary during linking. This must work even if \$libdir does
24375 # not exist.
24376 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24377
24378 # Whether we need a single -rpath flag with a separated argument.
24379 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24380
24381 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24382 # resulting binary.
24383 hardcode_direct=$hardcode_direct_RC
24384
24385 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24386 # resulting binary.
24387 hardcode_minus_L=$hardcode_minus_L_RC
24388
24389 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24390 # the resulting binary.
24391 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24392
24393 # Set to yes if building a shared library automatically hardcodes DIR into the library
24394 # and all subsequent libraries and executables linked against it.
24395 hardcode_automatic=$hardcode_automatic_RC
24396
24397 # Variables whose values should be saved in libtool wrapper scripts and
24398 # restored at relink time.
24399 variables_saved_for_relink="$variables_saved_for_relink"
24400
24401 # Whether libtool must link a program against all its dependency libraries.
24402 link_all_deplibs=$link_all_deplibs_RC
24403
24404 # Compile-time system search path for libraries
24405 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24406
24407 # Run-time system search path for libraries
24408 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24409
24410 # Fix the shell variable \$srcfile for the compiler.
24411 fix_srcfile_path="$fix_srcfile_path_RC"
24412
24413 # Set to yes if exported symbols are required.
24414 always_export_symbols=$always_export_symbols_RC
24415
24416 # The commands to list exported symbols.
24417 export_symbols_cmds=$lt_export_symbols_cmds_RC
24418
24419 # The commands to extract the exported symbol list from a shared archive.
24420 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24421
24422 # Symbols that should not be listed in the preloaded symbols.
24423 exclude_expsyms=$lt_exclude_expsyms_RC
24424
24425 # Symbols that must always be exported.
24426 include_expsyms=$lt_include_expsyms_RC
24427
24428 # ### END LIBTOOL TAG CONFIG: $tagname
24429
24430 __EOF__
24431
24432
24433 else
24434   # If there is no Makefile yet, we rely on a make rule to execute
24435   # `config.status --recheck' to rerun these tests and create the
24436   # libtool script then.
24437   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24438   if test -f "$ltmain_in"; then
24439     test -f Makefile && make "$ltmain"
24440   fi
24441 fi
24442
24443
24444 ac_ext=c
24445 ac_cpp='$CPP $CPPFLAGS'
24446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24449
24450 CC="$lt_save_CC"
24451
24452         ;;
24453
24454       *)
24455         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24456 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24457    { (exit 1); exit 1; }; }
24458         ;;
24459       esac
24460
24461       # Append the new tag name to the list of available tags.
24462       if test -n "$tagname" ; then
24463       available_tags="$available_tags $tagname"
24464     fi
24465     fi
24466   done
24467   IFS="$lt_save_ifs"
24468
24469   # Now substitute the updated list of available tags.
24470   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24471     mv "${ofile}T" "$ofile"
24472     chmod +x "$ofile"
24473   else
24474     rm -f "${ofile}T"
24475     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24476 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24477    { (exit 1); exit 1; }; }
24478   fi
24479 fi
24480
24481
24482
24483 # This can be used to rebuild libtool when needed
24484 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24485
24486 # Always use our own libtool.
24487 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
24488
24489 # Prevent multiple expansion
24490
24491
24492
24493
24494
24495
24496
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511 # Generate an error here if attempting to build both shared and static when
24512 # $libname.a is in $library_names_spec (as mentioned above), rather than
24513 # wait for ar or ld to fail.
24514 #
24515 if test "$enable_shared" = yes && test "$enable_static" = yes; then
24516   case $library_names_spec in
24517     *libname.a*)
24518       { { echo "$as_me:$LINENO: error: cannot create both shared and static libraries on this system, --disable one of the two" >&5
24519 echo "$as_me: error: cannot create both shared and static libraries on this system, --disable one of the two" >&2;}
24520    { (exit 1); exit 1; }; }
24521       ;;
24522   esac
24523 fi
24524
24525
24526
24527 if test "$enable_static" = yes; then
24528   ENABLE_STATIC_TRUE=
24529   ENABLE_STATIC_FALSE='#'
24530 else
24531   ENABLE_STATIC_TRUE='#'
24532   ENABLE_STATIC_FALSE=
24533 fi
24534
24535
24536
24537 # Many of these library and header checks are for the benefit of
24538 # supplementary programs.  libgmp doesn't use anything too weird.
24539
24540 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24541 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
24542 if test "${ac_cv_header_stdc+set}" = set; then
24543   echo $ECHO_N "(cached) $ECHO_C" >&6
24544 else
24545   cat >conftest.$ac_ext <<_ACEOF
24546 /* confdefs.h.  */
24547 _ACEOF
24548 cat confdefs.h >>conftest.$ac_ext
24549 cat >>conftest.$ac_ext <<_ACEOF
24550 /* end confdefs.h.  */
24551 #include <stdlib.h>
24552 #include <stdarg.h>
24553 #include <string.h>
24554 #include <float.h>
24555
24556 int
24557 main ()
24558 {
24559
24560   ;
24561   return 0;
24562 }
24563 _ACEOF
24564 rm -f conftest.$ac_objext
24565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24566   (eval $ac_compile) 2>conftest.er1
24567   ac_status=$?
24568   grep -v '^ *+' conftest.er1 >conftest.err
24569   rm -f conftest.er1
24570   cat conftest.err >&5
24571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572   (exit $ac_status); } &&
24573          { ac_try='test -z "$ac_c_werror_flag"
24574                          || test ! -s conftest.err'
24575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24576   (eval $ac_try) 2>&5
24577   ac_status=$?
24578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579   (exit $ac_status); }; } &&
24580          { ac_try='test -s conftest.$ac_objext'
24581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24582   (eval $ac_try) 2>&5
24583   ac_status=$?
24584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585   (exit $ac_status); }; }; then
24586   ac_cv_header_stdc=yes
24587 else
24588   echo "$as_me: failed program was:" >&5
24589 sed 's/^/| /' conftest.$ac_ext >&5
24590
24591 ac_cv_header_stdc=no
24592 fi
24593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24594
24595 if test $ac_cv_header_stdc = yes; then
24596   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24597   cat >conftest.$ac_ext <<_ACEOF
24598 /* confdefs.h.  */
24599 _ACEOF
24600 cat confdefs.h >>conftest.$ac_ext
24601 cat >>conftest.$ac_ext <<_ACEOF
24602 /* end confdefs.h.  */
24603 #include <string.h>
24604
24605 _ACEOF
24606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24607   $EGREP "memchr" >/dev/null 2>&1; then
24608   :
24609 else
24610   ac_cv_header_stdc=no
24611 fi
24612 rm -f conftest*
24613
24614 fi
24615
24616 if test $ac_cv_header_stdc = yes; then
24617   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24618   cat >conftest.$ac_ext <<_ACEOF
24619 /* confdefs.h.  */
24620 _ACEOF
24621 cat confdefs.h >>conftest.$ac_ext
24622 cat >>conftest.$ac_ext <<_ACEOF
24623 /* end confdefs.h.  */
24624 #include <stdlib.h>
24625
24626 _ACEOF
24627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24628   $EGREP "free" >/dev/null 2>&1; then
24629   :
24630 else
24631   ac_cv_header_stdc=no
24632 fi
24633 rm -f conftest*
24634
24635 fi
24636
24637 if test $ac_cv_header_stdc = yes; then
24638   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24639   if test "$cross_compiling" = yes; then
24640   :
24641 else
24642   cat >conftest.$ac_ext <<_ACEOF
24643 /* confdefs.h.  */
24644 _ACEOF
24645 cat confdefs.h >>conftest.$ac_ext
24646 cat >>conftest.$ac_ext <<_ACEOF
24647 /* end confdefs.h.  */
24648 #include <ctype.h>
24649 #if ((' ' & 0x0FF) == 0x020)
24650 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24651 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24652 #else
24653 # define ISLOWER(c) \
24654                    (('a' <= (c) && (c) <= 'i') \
24655                      || ('j' <= (c) && (c) <= 'r') \
24656                      || ('s' <= (c) && (c) <= 'z'))
24657 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24658 #endif
24659
24660 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24661 int
24662 main ()
24663 {
24664   int i;
24665   for (i = 0; i < 256; i++)
24666     if (XOR (islower (i), ISLOWER (i))
24667         || toupper (i) != TOUPPER (i))
24668       exit(2);
24669   exit (0);
24670 }
24671 _ACEOF
24672 rm -f conftest$ac_exeext
24673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24674   (eval $ac_link) 2>&5
24675   ac_status=$?
24676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24679   (eval $ac_try) 2>&5
24680   ac_status=$?
24681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682   (exit $ac_status); }; }; then
24683   :
24684 else
24685   echo "$as_me: program exited with status $ac_status" >&5
24686 echo "$as_me: failed program was:" >&5
24687 sed 's/^/| /' conftest.$ac_ext >&5
24688
24689 ( exit $ac_status )
24690 ac_cv_header_stdc=no
24691 fi
24692 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24693 fi
24694 fi
24695 fi
24696 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24697 echo "${ECHO_T}$ac_cv_header_stdc" >&6
24698 if test $ac_cv_header_stdc = yes; then
24699
24700 cat >>confdefs.h <<\_ACEOF
24701 #define STDC_HEADERS 1
24702 _ACEOF
24703
24704 fi
24705
24706 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24707 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
24708 if test "${ac_cv_header_time+set}" = set; then
24709   echo $ECHO_N "(cached) $ECHO_C" >&6
24710 else
24711   cat >conftest.$ac_ext <<_ACEOF
24712 /* confdefs.h.  */
24713 _ACEOF
24714 cat confdefs.h >>conftest.$ac_ext
24715 cat >>conftest.$ac_ext <<_ACEOF
24716 /* end confdefs.h.  */
24717 #include <sys/types.h>
24718 #include <sys/time.h>
24719 #include <time.h>
24720
24721 int
24722 main ()
24723 {
24724 if ((struct tm *) 0)
24725 return 0;
24726   ;
24727   return 0;
24728 }
24729 _ACEOF
24730 rm -f conftest.$ac_objext
24731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24732   (eval $ac_compile) 2>conftest.er1
24733   ac_status=$?
24734   grep -v '^ *+' conftest.er1 >conftest.err
24735   rm -f conftest.er1
24736   cat conftest.err >&5
24737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738   (exit $ac_status); } &&
24739          { ac_try='test -z "$ac_c_werror_flag"
24740                          || test ! -s conftest.err'
24741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24742   (eval $ac_try) 2>&5
24743   ac_status=$?
24744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745   (exit $ac_status); }; } &&
24746          { ac_try='test -s conftest.$ac_objext'
24747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24748   (eval $ac_try) 2>&5
24749   ac_status=$?
24750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751   (exit $ac_status); }; }; then
24752   ac_cv_header_time=yes
24753 else
24754   echo "$as_me: failed program was:" >&5
24755 sed 's/^/| /' conftest.$ac_ext >&5
24756
24757 ac_cv_header_time=no
24758 fi
24759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24760 fi
24761 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24762 echo "${ECHO_T}$ac_cv_header_time" >&6
24763 if test $ac_cv_header_time = yes; then
24764
24765 cat >>confdefs.h <<\_ACEOF
24766 #define TIME_WITH_SYS_TIME 1
24767 _ACEOF
24768
24769 fi
24770
24771
24772 # Reasons for testing:
24773 #   float.h - not in SunOS bundled cc
24774 #   invent.h - IRIX specific
24775 #   langinfo.h - X/Open standard only, not in djgpp for instance
24776 #   locale.h - old systems won't have this
24777 #   nl_types.h - X/Open standard only, not in djgpp for instance
24778 #       (usually langinfo.h gives nl_item etc, but not on netbsd 1.4.1)
24779 #   sys/attributes.h - IRIX specific
24780 #   sys/iograph.h - IRIX specific
24781 #   sys/mman.h - not in Cray Unicos
24782 #   sys/param.h - not in mingw
24783 #   sys/processor.h - solaris specific, though also present in macos
24784 #   sys/pstat.h - HPUX specific
24785 #   sys/resource.h - not in mingw
24786 #   sys/sysctl.h - not in mingw
24787 #   sys/sysinfo.h - OSF specific
24788 #   sys/syssgi.h - IRIX specific
24789 #   sys/systemcfg.h - AIX specific
24790 #   sys/time.h - autoconf suggests testing, don't know anywhere without it
24791 #   sys/times.h - not in mingw
24792 #   machine/hal_sysinfo.h - OSF specific
24793 #
24794 # inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf
24795 # default tests
24796 #
24797
24798
24799
24800
24801
24802
24803
24804
24805
24806
24807
24808
24809
24810
24811
24812
24813
24814 for ac_header in fcntl.h float.h invent.h langinfo.h locale.h nl_types.h sys/attributes.h sys/iograph.h sys/mman.h sys/param.h sys/processor.h sys/pstat.h sys/sysinfo.h sys/syssgi.h sys/systemcfg.h sys/time.h sys/times.h
24815 do
24816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24818   echo "$as_me:$LINENO: checking for $ac_header" >&5
24819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24821   echo $ECHO_N "(cached) $ECHO_C" >&6
24822 fi
24823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24825 else
24826   # Is the header compilable?
24827 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24829 cat >conftest.$ac_ext <<_ACEOF
24830 /* confdefs.h.  */
24831 _ACEOF
24832 cat confdefs.h >>conftest.$ac_ext
24833 cat >>conftest.$ac_ext <<_ACEOF
24834 /* end confdefs.h.  */
24835 $ac_includes_default
24836 #include <$ac_header>
24837 _ACEOF
24838 rm -f conftest.$ac_objext
24839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24840   (eval $ac_compile) 2>conftest.er1
24841   ac_status=$?
24842   grep -v '^ *+' conftest.er1 >conftest.err
24843   rm -f conftest.er1
24844   cat conftest.err >&5
24845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846   (exit $ac_status); } &&
24847          { ac_try='test -z "$ac_c_werror_flag"
24848                          || test ! -s conftest.err'
24849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24850   (eval $ac_try) 2>&5
24851   ac_status=$?
24852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853   (exit $ac_status); }; } &&
24854          { ac_try='test -s conftest.$ac_objext'
24855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856   (eval $ac_try) 2>&5
24857   ac_status=$?
24858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859   (exit $ac_status); }; }; then
24860   ac_header_compiler=yes
24861 else
24862   echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24864
24865 ac_header_compiler=no
24866 fi
24867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24869 echo "${ECHO_T}$ac_header_compiler" >&6
24870
24871 # Is the header present?
24872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24874 cat >conftest.$ac_ext <<_ACEOF
24875 /* confdefs.h.  */
24876 _ACEOF
24877 cat confdefs.h >>conftest.$ac_ext
24878 cat >>conftest.$ac_ext <<_ACEOF
24879 /* end confdefs.h.  */
24880 #include <$ac_header>
24881 _ACEOF
24882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24883   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24884   ac_status=$?
24885   grep -v '^ *+' conftest.er1 >conftest.err
24886   rm -f conftest.er1
24887   cat conftest.err >&5
24888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889   (exit $ac_status); } >/dev/null; then
24890   if test -s conftest.err; then
24891     ac_cpp_err=$ac_c_preproc_warn_flag
24892     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24893   else
24894     ac_cpp_err=
24895   fi
24896 else
24897   ac_cpp_err=yes
24898 fi
24899 if test -z "$ac_cpp_err"; then
24900   ac_header_preproc=yes
24901 else
24902   echo "$as_me: failed program was:" >&5
24903 sed 's/^/| /' conftest.$ac_ext >&5
24904
24905   ac_header_preproc=no
24906 fi
24907 rm -f conftest.err conftest.$ac_ext
24908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24909 echo "${ECHO_T}$ac_header_preproc" >&6
24910
24911 # So?  What about this header?
24912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24913   yes:no: )
24914     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24918     ac_header_preproc=yes
24919     ;;
24920   no:yes:* )
24921     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24923     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24924 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24925     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24927     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24928 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24931     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24933     (
24934       cat <<\_ASBOX
24935 ## -------------------------------- ##
24936 ## Report this to gmp-bugs@swox.com ##
24937 ## -------------------------------- ##
24938 _ASBOX
24939     ) |
24940       sed "s/^/$as_me: WARNING:     /" >&2
24941     ;;
24942 esac
24943 echo "$as_me:$LINENO: checking for $ac_header" >&5
24944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24946   echo $ECHO_N "(cached) $ECHO_C" >&6
24947 else
24948   eval "$as_ac_Header=\$ac_header_preproc"
24949 fi
24950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24952
24953 fi
24954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24955   cat >>confdefs.h <<_ACEOF
24956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24957 _ACEOF
24958
24959 fi
24960
24961 done
24962
24963
24964 # On SunOS, sys/resource.h needs sys/time.h (for struct timeval)
24965
24966 for ac_header in sys/resource.h
24967 do
24968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24969 echo "$as_me:$LINENO: checking for $ac_header" >&5
24970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24972   echo $ECHO_N "(cached) $ECHO_C" >&6
24973 else
24974   cat >conftest.$ac_ext <<_ACEOF
24975 /* confdefs.h.  */
24976 _ACEOF
24977 cat confdefs.h >>conftest.$ac_ext
24978 cat >>conftest.$ac_ext <<_ACEOF
24979 /* end confdefs.h.  */
24980 #if TIME_WITH_SYS_TIME
24981 # include <sys/time.h>
24982 # include <time.h>
24983 #else
24984 # if HAVE_SYS_TIME_H
24985 #  include <sys/time.h>
24986 # else
24987 #  include <time.h>
24988 # endif
24989 #endif
24990
24991 #include <$ac_header>
24992 _ACEOF
24993 rm -f conftest.$ac_objext
24994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24995   (eval $ac_compile) 2>conftest.er1
24996   ac_status=$?
24997   grep -v '^ *+' conftest.er1 >conftest.err
24998   rm -f conftest.er1
24999   cat conftest.err >&5
25000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001   (exit $ac_status); } &&
25002          { ac_try='test -z "$ac_c_werror_flag"
25003                          || test ! -s conftest.err'
25004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25005   (eval $ac_try) 2>&5
25006   ac_status=$?
25007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008   (exit $ac_status); }; } &&
25009          { ac_try='test -s conftest.$ac_objext'
25010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25011   (eval $ac_try) 2>&5
25012   ac_status=$?
25013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014   (exit $ac_status); }; }; then
25015   eval "$as_ac_Header=yes"
25016 else
25017   echo "$as_me: failed program was:" >&5
25018 sed 's/^/| /' conftest.$ac_ext >&5
25019
25020 eval "$as_ac_Header=no"
25021 fi
25022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25023 fi
25024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25027   cat >>confdefs.h <<_ACEOF
25028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25029 _ACEOF
25030
25031 fi
25032
25033 done
25034
25035
25036 # On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants
25037
25038 for ac_header in sys/sysctl.h
25039 do
25040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25041 echo "$as_me:$LINENO: checking for $ac_header" >&5
25042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25044   echo $ECHO_N "(cached) $ECHO_C" >&6
25045 else
25046   cat >conftest.$ac_ext <<_ACEOF
25047 /* confdefs.h.  */
25048 _ACEOF
25049 cat confdefs.h >>conftest.$ac_ext
25050 cat >>conftest.$ac_ext <<_ACEOF
25051 /* end confdefs.h.  */
25052 #if HAVE_SYS_PARAM_H
25053 # include <sys/param.h>
25054 #endif
25055
25056 #include <$ac_header>
25057 _ACEOF
25058 rm -f conftest.$ac_objext
25059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25060   (eval $ac_compile) 2>conftest.er1
25061   ac_status=$?
25062   grep -v '^ *+' conftest.er1 >conftest.err
25063   rm -f conftest.er1
25064   cat conftest.err >&5
25065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066   (exit $ac_status); } &&
25067          { ac_try='test -z "$ac_c_werror_flag"
25068                          || test ! -s conftest.err'
25069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25070   (eval $ac_try) 2>&5
25071   ac_status=$?
25072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073   (exit $ac_status); }; } &&
25074          { ac_try='test -s conftest.$ac_objext'
25075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25076   (eval $ac_try) 2>&5
25077   ac_status=$?
25078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079   (exit $ac_status); }; }; then
25080   eval "$as_ac_Header=yes"
25081 else
25082   echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25084
25085 eval "$as_ac_Header=no"
25086 fi
25087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25088 fi
25089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25092   cat >>confdefs.h <<_ACEOF
25093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25094 _ACEOF
25095
25096 fi
25097
25098 done
25099
25100
25101 # On OSF 4.0, <machine/hal_sysinfo.h> must have <sys/sysinfo.h> for ulong_t
25102
25103 for ac_header in machine/hal_sysinfo.h
25104 do
25105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25106 echo "$as_me:$LINENO: checking for $ac_header" >&5
25107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25109   echo $ECHO_N "(cached) $ECHO_C" >&6
25110 else
25111   cat >conftest.$ac_ext <<_ACEOF
25112 /* confdefs.h.  */
25113 _ACEOF
25114 cat confdefs.h >>conftest.$ac_ext
25115 cat >>conftest.$ac_ext <<_ACEOF
25116 /* end confdefs.h.  */
25117 #if HAVE_SYS_SYSINFO_H
25118 # include <sys/sysinfo.h>
25119 #endif
25120
25121 #include <$ac_header>
25122 _ACEOF
25123 rm -f conftest.$ac_objext
25124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25125   (eval $ac_compile) 2>conftest.er1
25126   ac_status=$?
25127   grep -v '^ *+' conftest.er1 >conftest.err
25128   rm -f conftest.er1
25129   cat conftest.err >&5
25130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131   (exit $ac_status); } &&
25132          { ac_try='test -z "$ac_c_werror_flag"
25133                          || test ! -s conftest.err'
25134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25135   (eval $ac_try) 2>&5
25136   ac_status=$?
25137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138   (exit $ac_status); }; } &&
25139          { ac_try='test -s conftest.$ac_objext'
25140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141   (eval $ac_try) 2>&5
25142   ac_status=$?
25143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144   (exit $ac_status); }; }; then
25145   eval "$as_ac_Header=yes"
25146 else
25147   echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25149
25150 eval "$as_ac_Header=no"
25151 fi
25152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25153 fi
25154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25157   cat >>confdefs.h <<_ACEOF
25158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25159 _ACEOF
25160
25161 fi
25162
25163 done
25164
25165
25166 # Reasons for testing:
25167 #   optarg - not declared in mingw
25168 #   fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4
25169 #   sys_errlist, sys_nerr - not declared in SunOS 4
25170 #
25171 # optarg should be in unistd.h and the rest in stdio.h, both of which are
25172 # in the autoconf default includes.
25173 #
25174 # sys_errlist and sys_nerr are supposed to be in <errno.h> on SunOS according
25175 # to the man page (but aren't), in glibc they're in stdio.h.
25176 #
25177 echo "$as_me:$LINENO: checking whether fgetc is declared" >&5
25178 echo $ECHO_N "checking whether fgetc is declared... $ECHO_C" >&6
25179 if test "${ac_cv_have_decl_fgetc+set}" = set; then
25180   echo $ECHO_N "(cached) $ECHO_C" >&6
25181 else
25182   cat >conftest.$ac_ext <<_ACEOF
25183 /* confdefs.h.  */
25184 _ACEOF
25185 cat confdefs.h >>conftest.$ac_ext
25186 cat >>conftest.$ac_ext <<_ACEOF
25187 /* end confdefs.h.  */
25188 $ac_includes_default
25189 int
25190 main ()
25191 {
25192 #ifndef fgetc
25193   char *p = (char *) fgetc;
25194 #endif
25195
25196   ;
25197   return 0;
25198 }
25199 _ACEOF
25200 rm -f conftest.$ac_objext
25201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25202   (eval $ac_compile) 2>conftest.er1
25203   ac_status=$?
25204   grep -v '^ *+' conftest.er1 >conftest.err
25205   rm -f conftest.er1
25206   cat conftest.err >&5
25207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208   (exit $ac_status); } &&
25209          { ac_try='test -z "$ac_c_werror_flag"
25210                          || test ! -s conftest.err'
25211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25212   (eval $ac_try) 2>&5
25213   ac_status=$?
25214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215   (exit $ac_status); }; } &&
25216          { ac_try='test -s conftest.$ac_objext'
25217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218   (eval $ac_try) 2>&5
25219   ac_status=$?
25220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221   (exit $ac_status); }; }; then
25222   ac_cv_have_decl_fgetc=yes
25223 else
25224   echo "$as_me: failed program was:" >&5
25225 sed 's/^/| /' conftest.$ac_ext >&5
25226
25227 ac_cv_have_decl_fgetc=no
25228 fi
25229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25230 fi
25231 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc" >&5
25232 echo "${ECHO_T}$ac_cv_have_decl_fgetc" >&6
25233 if test $ac_cv_have_decl_fgetc = yes; then
25234
25235 cat >>confdefs.h <<_ACEOF
25236 #define HAVE_DECL_FGETC 1
25237 _ACEOF
25238
25239
25240 else
25241   cat >>confdefs.h <<_ACEOF
25242 #define HAVE_DECL_FGETC 0
25243 _ACEOF
25244
25245
25246 fi
25247 echo "$as_me:$LINENO: checking whether fscanf is declared" >&5
25248 echo $ECHO_N "checking whether fscanf is declared... $ECHO_C" >&6
25249 if test "${ac_cv_have_decl_fscanf+set}" = set; then
25250   echo $ECHO_N "(cached) $ECHO_C" >&6
25251 else
25252   cat >conftest.$ac_ext <<_ACEOF
25253 /* confdefs.h.  */
25254 _ACEOF
25255 cat confdefs.h >>conftest.$ac_ext
25256 cat >>conftest.$ac_ext <<_ACEOF
25257 /* end confdefs.h.  */
25258 $ac_includes_default
25259 int
25260 main ()
25261 {
25262 #ifndef fscanf
25263   char *p = (char *) fscanf;
25264 #endif
25265
25266   ;
25267   return 0;
25268 }
25269 _ACEOF
25270 rm -f conftest.$ac_objext
25271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25272   (eval $ac_compile) 2>conftest.er1
25273   ac_status=$?
25274   grep -v '^ *+' conftest.er1 >conftest.err
25275   rm -f conftest.er1
25276   cat conftest.err >&5
25277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278   (exit $ac_status); } &&
25279          { ac_try='test -z "$ac_c_werror_flag"
25280                          || test ! -s conftest.err'
25281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282   (eval $ac_try) 2>&5
25283   ac_status=$?
25284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285   (exit $ac_status); }; } &&
25286          { ac_try='test -s conftest.$ac_objext'
25287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25288   (eval $ac_try) 2>&5
25289   ac_status=$?
25290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291   (exit $ac_status); }; }; then
25292   ac_cv_have_decl_fscanf=yes
25293 else
25294   echo "$as_me: failed program was:" >&5
25295 sed 's/^/| /' conftest.$ac_ext >&5
25296
25297 ac_cv_have_decl_fscanf=no
25298 fi
25299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25300 fi
25301 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fscanf" >&5
25302 echo "${ECHO_T}$ac_cv_have_decl_fscanf" >&6
25303 if test $ac_cv_have_decl_fscanf = yes; then
25304
25305 cat >>confdefs.h <<_ACEOF
25306 #define HAVE_DECL_FSCANF 1
25307 _ACEOF
25308
25309
25310 else
25311   cat >>confdefs.h <<_ACEOF
25312 #define HAVE_DECL_FSCANF 0
25313 _ACEOF
25314
25315
25316 fi
25317 echo "$as_me:$LINENO: checking whether optarg is declared" >&5
25318 echo $ECHO_N "checking whether optarg is declared... $ECHO_C" >&6
25319 if test "${ac_cv_have_decl_optarg+set}" = set; then
25320   echo $ECHO_N "(cached) $ECHO_C" >&6
25321 else
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 #ifndef optarg
25333   char *p = (char *) optarg;
25334 #endif
25335
25336   ;
25337   return 0;
25338 }
25339 _ACEOF
25340 rm -f conftest.$ac_objext
25341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25342   (eval $ac_compile) 2>conftest.er1
25343   ac_status=$?
25344   grep -v '^ *+' conftest.er1 >conftest.err
25345   rm -f conftest.er1
25346   cat conftest.err >&5
25347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348   (exit $ac_status); } &&
25349          { ac_try='test -z "$ac_c_werror_flag"
25350                          || test ! -s conftest.err'
25351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25352   (eval $ac_try) 2>&5
25353   ac_status=$?
25354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355   (exit $ac_status); }; } &&
25356          { ac_try='test -s conftest.$ac_objext'
25357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25358   (eval $ac_try) 2>&5
25359   ac_status=$?
25360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361   (exit $ac_status); }; }; then
25362   ac_cv_have_decl_optarg=yes
25363 else
25364   echo "$as_me: failed program was:" >&5
25365 sed 's/^/| /' conftest.$ac_ext >&5
25366
25367 ac_cv_have_decl_optarg=no
25368 fi
25369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25370 fi
25371 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optarg" >&5
25372 echo "${ECHO_T}$ac_cv_have_decl_optarg" >&6
25373 if test $ac_cv_have_decl_optarg = yes; then
25374
25375 cat >>confdefs.h <<_ACEOF
25376 #define HAVE_DECL_OPTARG 1
25377 _ACEOF
25378
25379
25380 else
25381   cat >>confdefs.h <<_ACEOF
25382 #define HAVE_DECL_OPTARG 0
25383 _ACEOF
25384
25385
25386 fi
25387 echo "$as_me:$LINENO: checking whether ungetc is declared" >&5
25388 echo $ECHO_N "checking whether ungetc is declared... $ECHO_C" >&6
25389 if test "${ac_cv_have_decl_ungetc+set}" = set; then
25390   echo $ECHO_N "(cached) $ECHO_C" >&6
25391 else
25392   cat >conftest.$ac_ext <<_ACEOF
25393 /* confdefs.h.  */
25394 _ACEOF
25395 cat confdefs.h >>conftest.$ac_ext
25396 cat >>conftest.$ac_ext <<_ACEOF
25397 /* end confdefs.h.  */
25398 $ac_includes_default
25399 int
25400 main ()
25401 {
25402 #ifndef ungetc
25403   char *p = (char *) ungetc;
25404 #endif
25405
25406   ;
25407   return 0;
25408 }
25409 _ACEOF
25410 rm -f conftest.$ac_objext
25411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25412   (eval $ac_compile) 2>conftest.er1
25413   ac_status=$?
25414   grep -v '^ *+' conftest.er1 >conftest.err
25415   rm -f conftest.er1
25416   cat conftest.err >&5
25417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418   (exit $ac_status); } &&
25419          { ac_try='test -z "$ac_c_werror_flag"
25420                          || test ! -s conftest.err'
25421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25422   (eval $ac_try) 2>&5
25423   ac_status=$?
25424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425   (exit $ac_status); }; } &&
25426          { ac_try='test -s conftest.$ac_objext'
25427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25428   (eval $ac_try) 2>&5
25429   ac_status=$?
25430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431   (exit $ac_status); }; }; then
25432   ac_cv_have_decl_ungetc=yes
25433 else
25434   echo "$as_me: failed program was:" >&5
25435 sed 's/^/| /' conftest.$ac_ext >&5
25436
25437 ac_cv_have_decl_ungetc=no
25438 fi
25439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25440 fi
25441 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ungetc" >&5
25442 echo "${ECHO_T}$ac_cv_have_decl_ungetc" >&6
25443 if test $ac_cv_have_decl_ungetc = yes; then
25444
25445 cat >>confdefs.h <<_ACEOF
25446 #define HAVE_DECL_UNGETC 1
25447 _ACEOF
25448
25449
25450 else
25451   cat >>confdefs.h <<_ACEOF
25452 #define HAVE_DECL_UNGETC 0
25453 _ACEOF
25454
25455
25456 fi
25457 echo "$as_me:$LINENO: checking whether vfprintf is declared" >&5
25458 echo $ECHO_N "checking whether vfprintf is declared... $ECHO_C" >&6
25459 if test "${ac_cv_have_decl_vfprintf+set}" = set; then
25460   echo $ECHO_N "(cached) $ECHO_C" >&6
25461 else
25462   cat >conftest.$ac_ext <<_ACEOF
25463 /* confdefs.h.  */
25464 _ACEOF
25465 cat confdefs.h >>conftest.$ac_ext
25466 cat >>conftest.$ac_ext <<_ACEOF
25467 /* end confdefs.h.  */
25468 $ac_includes_default
25469 int
25470 main ()
25471 {
25472 #ifndef vfprintf
25473   char *p = (char *) vfprintf;
25474 #endif
25475
25476   ;
25477   return 0;
25478 }
25479 _ACEOF
25480 rm -f conftest.$ac_objext
25481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25482   (eval $ac_compile) 2>conftest.er1
25483   ac_status=$?
25484   grep -v '^ *+' conftest.er1 >conftest.err
25485   rm -f conftest.er1
25486   cat conftest.err >&5
25487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488   (exit $ac_status); } &&
25489          { ac_try='test -z "$ac_c_werror_flag"
25490                          || test ! -s conftest.err'
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); }; } &&
25496          { ac_try='test -s conftest.$ac_objext'
25497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25498   (eval $ac_try) 2>&5
25499   ac_status=$?
25500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501   (exit $ac_status); }; }; then
25502   ac_cv_have_decl_vfprintf=yes
25503 else
25504   echo "$as_me: failed program was:" >&5
25505 sed 's/^/| /' conftest.$ac_ext >&5
25506
25507 ac_cv_have_decl_vfprintf=no
25508 fi
25509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25510 fi
25511 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vfprintf" >&5
25512 echo "${ECHO_T}$ac_cv_have_decl_vfprintf" >&6
25513 if test $ac_cv_have_decl_vfprintf = yes; then
25514
25515 cat >>confdefs.h <<_ACEOF
25516 #define HAVE_DECL_VFPRINTF 1
25517 _ACEOF
25518
25519
25520 else
25521   cat >>confdefs.h <<_ACEOF
25522 #define HAVE_DECL_VFPRINTF 0
25523 _ACEOF
25524
25525
25526 fi
25527
25528
25529 echo "$as_me:$LINENO: checking whether sys_errlist is declared" >&5
25530 echo $ECHO_N "checking whether sys_errlist is declared... $ECHO_C" >&6
25531 if test "${ac_cv_have_decl_sys_errlist+set}" = set; then
25532   echo $ECHO_N "(cached) $ECHO_C" >&6
25533 else
25534   cat >conftest.$ac_ext <<_ACEOF
25535 /* confdefs.h.  */
25536 _ACEOF
25537 cat confdefs.h >>conftest.$ac_ext
25538 cat >>conftest.$ac_ext <<_ACEOF
25539 /* end confdefs.h.  */
25540 #include <stdio.h>
25541 #include <errno.h>
25542
25543 int
25544 main ()
25545 {
25546 #ifndef sys_errlist
25547   char *p = (char *) sys_errlist;
25548 #endif
25549
25550   ;
25551   return 0;
25552 }
25553 _ACEOF
25554 rm -f conftest.$ac_objext
25555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25556   (eval $ac_compile) 2>conftest.er1
25557   ac_status=$?
25558   grep -v '^ *+' conftest.er1 >conftest.err
25559   rm -f conftest.er1
25560   cat conftest.err >&5
25561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562   (exit $ac_status); } &&
25563          { ac_try='test -z "$ac_c_werror_flag"
25564                          || test ! -s conftest.err'
25565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25566   (eval $ac_try) 2>&5
25567   ac_status=$?
25568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569   (exit $ac_status); }; } &&
25570          { ac_try='test -s conftest.$ac_objext'
25571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25572   (eval $ac_try) 2>&5
25573   ac_status=$?
25574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575   (exit $ac_status); }; }; then
25576   ac_cv_have_decl_sys_errlist=yes
25577 else
25578   echo "$as_me: failed program was:" >&5
25579 sed 's/^/| /' conftest.$ac_ext >&5
25580
25581 ac_cv_have_decl_sys_errlist=no
25582 fi
25583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25584 fi
25585 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_errlist" >&5
25586 echo "${ECHO_T}$ac_cv_have_decl_sys_errlist" >&6
25587 if test $ac_cv_have_decl_sys_errlist = yes; then
25588
25589 cat >>confdefs.h <<_ACEOF
25590 #define HAVE_DECL_SYS_ERRLIST 1
25591 _ACEOF
25592
25593
25594 else
25595   cat >>confdefs.h <<_ACEOF
25596 #define HAVE_DECL_SYS_ERRLIST 0
25597 _ACEOF
25598
25599
25600 fi
25601 echo "$as_me:$LINENO: checking whether sys_nerr is declared" >&5
25602 echo $ECHO_N "checking whether sys_nerr is declared... $ECHO_C" >&6
25603 if test "${ac_cv_have_decl_sys_nerr+set}" = set; then
25604   echo $ECHO_N "(cached) $ECHO_C" >&6
25605 else
25606   cat >conftest.$ac_ext <<_ACEOF
25607 /* confdefs.h.  */
25608 _ACEOF
25609 cat confdefs.h >>conftest.$ac_ext
25610 cat >>conftest.$ac_ext <<_ACEOF
25611 /* end confdefs.h.  */
25612 #include <stdio.h>
25613 #include <errno.h>
25614
25615 int
25616 main ()
25617 {
25618 #ifndef sys_nerr
25619   char *p = (char *) sys_nerr;
25620 #endif
25621
25622   ;
25623   return 0;
25624 }
25625 _ACEOF
25626 rm -f conftest.$ac_objext
25627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25628   (eval $ac_compile) 2>conftest.er1
25629   ac_status=$?
25630   grep -v '^ *+' conftest.er1 >conftest.err
25631   rm -f conftest.er1
25632   cat conftest.err >&5
25633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634   (exit $ac_status); } &&
25635          { ac_try='test -z "$ac_c_werror_flag"
25636                          || test ! -s conftest.err'
25637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25638   (eval $ac_try) 2>&5
25639   ac_status=$?
25640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641   (exit $ac_status); }; } &&
25642          { ac_try='test -s conftest.$ac_objext'
25643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25644   (eval $ac_try) 2>&5
25645   ac_status=$?
25646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647   (exit $ac_status); }; }; then
25648   ac_cv_have_decl_sys_nerr=yes
25649 else
25650   echo "$as_me: failed program was:" >&5
25651 sed 's/^/| /' conftest.$ac_ext >&5
25652
25653 ac_cv_have_decl_sys_nerr=no
25654 fi
25655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25656 fi
25657 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_nerr" >&5
25658 echo "${ECHO_T}$ac_cv_have_decl_sys_nerr" >&6
25659 if test $ac_cv_have_decl_sys_nerr = yes; then
25660
25661 cat >>confdefs.h <<_ACEOF
25662 #define HAVE_DECL_SYS_NERR 1
25663 _ACEOF
25664
25665
25666 else
25667   cat >>confdefs.h <<_ACEOF
25668 #define HAVE_DECL_SYS_NERR 0
25669 _ACEOF
25670
25671
25672 fi
25673
25674
25675
25676 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25677 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
25678 if test "${ac_cv_type_signal+set}" = set; then
25679   echo $ECHO_N "(cached) $ECHO_C" >&6
25680 else
25681   cat >conftest.$ac_ext <<_ACEOF
25682 /* confdefs.h.  */
25683 _ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h.  */
25687 #include <sys/types.h>
25688 #include <signal.h>
25689 #ifdef signal
25690 # undef signal
25691 #endif
25692 #ifdef __cplusplus
25693 extern "C" void (*signal (int, void (*)(int)))(int);
25694 #else
25695 void (*signal ()) ();
25696 #endif
25697
25698 int
25699 main ()
25700 {
25701 int i;
25702   ;
25703   return 0;
25704 }
25705 _ACEOF
25706 rm -f conftest.$ac_objext
25707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25708   (eval $ac_compile) 2>conftest.er1
25709   ac_status=$?
25710   grep -v '^ *+' conftest.er1 >conftest.err
25711   rm -f conftest.er1
25712   cat conftest.err >&5
25713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714   (exit $ac_status); } &&
25715          { ac_try='test -z "$ac_c_werror_flag"
25716                          || test ! -s conftest.err'
25717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25718   (eval $ac_try) 2>&5
25719   ac_status=$?
25720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721   (exit $ac_status); }; } &&
25722          { ac_try='test -s conftest.$ac_objext'
25723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25724   (eval $ac_try) 2>&5
25725   ac_status=$?
25726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727   (exit $ac_status); }; }; then
25728   ac_cv_type_signal=void
25729 else
25730   echo "$as_me: failed program was:" >&5
25731 sed 's/^/| /' conftest.$ac_ext >&5
25732
25733 ac_cv_type_signal=int
25734 fi
25735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25736 fi
25737 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25738 echo "${ECHO_T}$ac_cv_type_signal" >&6
25739
25740 cat >>confdefs.h <<_ACEOF
25741 #define RETSIGTYPE $ac_cv_type_signal
25742 _ACEOF
25743
25744
25745
25746 # Reasons for testing:
25747 #   intmax_t       - C99
25748 #   long double    - not in the HP bundled K&R cc
25749 #   long long      - only in reasonably recent compilers
25750 #   ptrdiff_t      - seems to be everywhere, maybe don't need to check this
25751 #   quad_t         - BSD specific
25752 #   uint_least32_t - C99
25753 #
25754 # the default includes are sufficient for all these types
25755 #
25756 echo "$as_me:$LINENO: checking for intmax_t" >&5
25757 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
25758 if test "${ac_cv_type_intmax_t+set}" = set; then
25759   echo $ECHO_N "(cached) $ECHO_C" >&6
25760 else
25761   cat >conftest.$ac_ext <<_ACEOF
25762 /* confdefs.h.  */
25763 _ACEOF
25764 cat confdefs.h >>conftest.$ac_ext
25765 cat >>conftest.$ac_ext <<_ACEOF
25766 /* end confdefs.h.  */
25767 $ac_includes_default
25768 int
25769 main ()
25770 {
25771 if ((intmax_t *) 0)
25772   return 0;
25773 if (sizeof (intmax_t))
25774   return 0;
25775   ;
25776   return 0;
25777 }
25778 _ACEOF
25779 rm -f conftest.$ac_objext
25780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25781   (eval $ac_compile) 2>conftest.er1
25782   ac_status=$?
25783   grep -v '^ *+' conftest.er1 >conftest.err
25784   rm -f conftest.er1
25785   cat conftest.err >&5
25786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787   (exit $ac_status); } &&
25788          { ac_try='test -z "$ac_c_werror_flag"
25789                          || test ! -s conftest.err'
25790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25791   (eval $ac_try) 2>&5
25792   ac_status=$?
25793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794   (exit $ac_status); }; } &&
25795          { ac_try='test -s conftest.$ac_objext'
25796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25797   (eval $ac_try) 2>&5
25798   ac_status=$?
25799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25800   (exit $ac_status); }; }; then
25801   ac_cv_type_intmax_t=yes
25802 else
25803   echo "$as_me: failed program was:" >&5
25804 sed 's/^/| /' conftest.$ac_ext >&5
25805
25806 ac_cv_type_intmax_t=no
25807 fi
25808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25809 fi
25810 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
25811 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
25812 if test $ac_cv_type_intmax_t = yes; then
25813
25814 cat >>confdefs.h <<_ACEOF
25815 #define HAVE_INTMAX_T 1
25816 _ACEOF
25817
25818
25819 fi
25820 echo "$as_me:$LINENO: checking for long double" >&5
25821 echo $ECHO_N "checking for long double... $ECHO_C" >&6
25822 if test "${ac_cv_type_long_double+set}" = set; then
25823   echo $ECHO_N "(cached) $ECHO_C" >&6
25824 else
25825   cat >conftest.$ac_ext <<_ACEOF
25826 /* confdefs.h.  */
25827 _ACEOF
25828 cat confdefs.h >>conftest.$ac_ext
25829 cat >>conftest.$ac_ext <<_ACEOF
25830 /* end confdefs.h.  */
25831 $ac_includes_default
25832 int
25833 main ()
25834 {
25835 if ((long double *) 0)
25836   return 0;
25837 if (sizeof (long double))
25838   return 0;
25839   ;
25840   return 0;
25841 }
25842 _ACEOF
25843 rm -f conftest.$ac_objext
25844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25845   (eval $ac_compile) 2>conftest.er1
25846   ac_status=$?
25847   grep -v '^ *+' conftest.er1 >conftest.err
25848   rm -f conftest.er1
25849   cat conftest.err >&5
25850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851   (exit $ac_status); } &&
25852          { ac_try='test -z "$ac_c_werror_flag"
25853                          || test ! -s conftest.err'
25854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855   (eval $ac_try) 2>&5
25856   ac_status=$?
25857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858   (exit $ac_status); }; } &&
25859          { ac_try='test -s conftest.$ac_objext'
25860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25861   (eval $ac_try) 2>&5
25862   ac_status=$?
25863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864   (exit $ac_status); }; }; then
25865   ac_cv_type_long_double=yes
25866 else
25867   echo "$as_me: failed program was:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25869
25870 ac_cv_type_long_double=no
25871 fi
25872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25873 fi
25874 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
25875 echo "${ECHO_T}$ac_cv_type_long_double" >&6
25876 if test $ac_cv_type_long_double = yes; then
25877
25878 cat >>confdefs.h <<_ACEOF
25879 #define HAVE_LONG_DOUBLE 1
25880 _ACEOF
25881
25882
25883 fi
25884 echo "$as_me:$LINENO: checking for long long" >&5
25885 echo $ECHO_N "checking for long long... $ECHO_C" >&6
25886 if test "${ac_cv_type_long_long+set}" = set; then
25887   echo $ECHO_N "(cached) $ECHO_C" >&6
25888 else
25889   cat >conftest.$ac_ext <<_ACEOF
25890 /* confdefs.h.  */
25891 _ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h.  */
25895 $ac_includes_default
25896 int
25897 main ()
25898 {
25899 if ((long long *) 0)
25900   return 0;
25901 if (sizeof (long long))
25902   return 0;
25903   ;
25904   return 0;
25905 }
25906 _ACEOF
25907 rm -f conftest.$ac_objext
25908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25909   (eval $ac_compile) 2>conftest.er1
25910   ac_status=$?
25911   grep -v '^ *+' conftest.er1 >conftest.err
25912   rm -f conftest.er1
25913   cat conftest.err >&5
25914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915   (exit $ac_status); } &&
25916          { ac_try='test -z "$ac_c_werror_flag"
25917                          || test ! -s conftest.err'
25918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25919   (eval $ac_try) 2>&5
25920   ac_status=$?
25921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922   (exit $ac_status); }; } &&
25923          { ac_try='test -s conftest.$ac_objext'
25924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25925   (eval $ac_try) 2>&5
25926   ac_status=$?
25927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928   (exit $ac_status); }; }; then
25929   ac_cv_type_long_long=yes
25930 else
25931   echo "$as_me: failed program was:" >&5
25932 sed 's/^/| /' conftest.$ac_ext >&5
25933
25934 ac_cv_type_long_long=no
25935 fi
25936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25937 fi
25938 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
25939 echo "${ECHO_T}$ac_cv_type_long_long" >&6
25940 if test $ac_cv_type_long_long = yes; then
25941
25942 cat >>confdefs.h <<_ACEOF
25943 #define HAVE_LONG_LONG 1
25944 _ACEOF
25945
25946
25947 fi
25948 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25949 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
25950 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25951   echo $ECHO_N "(cached) $ECHO_C" >&6
25952 else
25953   cat >conftest.$ac_ext <<_ACEOF
25954 /* confdefs.h.  */
25955 _ACEOF
25956 cat confdefs.h >>conftest.$ac_ext
25957 cat >>conftest.$ac_ext <<_ACEOF
25958 /* end confdefs.h.  */
25959 $ac_includes_default
25960 int
25961 main ()
25962 {
25963 if ((ptrdiff_t *) 0)
25964   return 0;
25965 if (sizeof (ptrdiff_t))
25966   return 0;
25967   ;
25968   return 0;
25969 }
25970 _ACEOF
25971 rm -f conftest.$ac_objext
25972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25973   (eval $ac_compile) 2>conftest.er1
25974   ac_status=$?
25975   grep -v '^ *+' conftest.er1 >conftest.err
25976   rm -f conftest.er1
25977   cat conftest.err >&5
25978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979   (exit $ac_status); } &&
25980          { ac_try='test -z "$ac_c_werror_flag"
25981                          || test ! -s conftest.err'
25982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25983   (eval $ac_try) 2>&5
25984   ac_status=$?
25985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986   (exit $ac_status); }; } &&
25987          { ac_try='test -s conftest.$ac_objext'
25988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25989   (eval $ac_try) 2>&5
25990   ac_status=$?
25991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992   (exit $ac_status); }; }; then
25993   ac_cv_type_ptrdiff_t=yes
25994 else
25995   echo "$as_me: failed program was:" >&5
25996 sed 's/^/| /' conftest.$ac_ext >&5
25997
25998 ac_cv_type_ptrdiff_t=no
25999 fi
26000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26001 fi
26002 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
26003 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
26004 if test $ac_cv_type_ptrdiff_t = yes; then
26005
26006 cat >>confdefs.h <<_ACEOF
26007 #define HAVE_PTRDIFF_T 1
26008 _ACEOF
26009
26010
26011 fi
26012 echo "$as_me:$LINENO: checking for quad_t" >&5
26013 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
26014 if test "${ac_cv_type_quad_t+set}" = set; then
26015   echo $ECHO_N "(cached) $ECHO_C" >&6
26016 else
26017   cat >conftest.$ac_ext <<_ACEOF
26018 /* confdefs.h.  */
26019 _ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h.  */
26023 $ac_includes_default
26024 int
26025 main ()
26026 {
26027 if ((quad_t *) 0)
26028   return 0;
26029 if (sizeof (quad_t))
26030   return 0;
26031   ;
26032   return 0;
26033 }
26034 _ACEOF
26035 rm -f conftest.$ac_objext
26036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26037   (eval $ac_compile) 2>conftest.er1
26038   ac_status=$?
26039   grep -v '^ *+' conftest.er1 >conftest.err
26040   rm -f conftest.er1
26041   cat conftest.err >&5
26042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043   (exit $ac_status); } &&
26044          { ac_try='test -z "$ac_c_werror_flag"
26045                          || test ! -s conftest.err'
26046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26047   (eval $ac_try) 2>&5
26048   ac_status=$?
26049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050   (exit $ac_status); }; } &&
26051          { ac_try='test -s conftest.$ac_objext'
26052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26053   (eval $ac_try) 2>&5
26054   ac_status=$?
26055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056   (exit $ac_status); }; }; then
26057   ac_cv_type_quad_t=yes
26058 else
26059   echo "$as_me: failed program was:" >&5
26060 sed 's/^/| /' conftest.$ac_ext >&5
26061
26062 ac_cv_type_quad_t=no
26063 fi
26064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26065 fi
26066 echo "$as_me:$LINENO: result: $ac_cv_type_quad_t" >&5
26067 echo "${ECHO_T}$ac_cv_type_quad_t" >&6
26068 if test $ac_cv_type_quad_t = yes; then
26069
26070 cat >>confdefs.h <<_ACEOF
26071 #define HAVE_QUAD_T 1
26072 _ACEOF
26073
26074
26075 fi
26076 echo "$as_me:$LINENO: checking for uint_least32_t" >&5
26077 echo $ECHO_N "checking for uint_least32_t... $ECHO_C" >&6
26078 if test "${ac_cv_type_uint_least32_t+set}" = set; then
26079   echo $ECHO_N "(cached) $ECHO_C" >&6
26080 else
26081   cat >conftest.$ac_ext <<_ACEOF
26082 /* confdefs.h.  */
26083 _ACEOF
26084 cat confdefs.h >>conftest.$ac_ext
26085 cat >>conftest.$ac_ext <<_ACEOF
26086 /* end confdefs.h.  */
26087 $ac_includes_default
26088 int
26089 main ()
26090 {
26091 if ((uint_least32_t *) 0)
26092   return 0;
26093 if (sizeof (uint_least32_t))
26094   return 0;
26095   ;
26096   return 0;
26097 }
26098 _ACEOF
26099 rm -f conftest.$ac_objext
26100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26101   (eval $ac_compile) 2>conftest.er1
26102   ac_status=$?
26103   grep -v '^ *+' conftest.er1 >conftest.err
26104   rm -f conftest.er1
26105   cat conftest.err >&5
26106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107   (exit $ac_status); } &&
26108          { ac_try='test -z "$ac_c_werror_flag"
26109                          || test ! -s conftest.err'
26110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26111   (eval $ac_try) 2>&5
26112   ac_status=$?
26113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114   (exit $ac_status); }; } &&
26115          { ac_try='test -s conftest.$ac_objext'
26116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26117   (eval $ac_try) 2>&5
26118   ac_status=$?
26119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120   (exit $ac_status); }; }; then
26121   ac_cv_type_uint_least32_t=yes
26122 else
26123   echo "$as_me: failed program was:" >&5
26124 sed 's/^/| /' conftest.$ac_ext >&5
26125
26126 ac_cv_type_uint_least32_t=no
26127 fi
26128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26129 fi
26130 echo "$as_me:$LINENO: result: $ac_cv_type_uint_least32_t" >&5
26131 echo "${ECHO_T}$ac_cv_type_uint_least32_t" >&6
26132 if test $ac_cv_type_uint_least32_t = yes; then
26133
26134 cat >>confdefs.h <<_ACEOF
26135 #define HAVE_UINT_LEAST32_T 1
26136 _ACEOF
26137
26138
26139 fi
26140
26141
26142 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
26143 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
26144 if test "${ac_cv_c_stringize+set}" = set; then
26145   echo $ECHO_N "(cached) $ECHO_C" >&6
26146 else
26147   cat >conftest.$ac_ext <<_ACEOF
26148 /* confdefs.h.  */
26149 _ACEOF
26150 cat confdefs.h >>conftest.$ac_ext
26151 cat >>conftest.$ac_ext <<_ACEOF
26152 /* end confdefs.h.  */
26153 #define x(y) #y
26154
26155 char *s = x(teststring);
26156 _ACEOF
26157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26158   $EGREP "#teststring" >/dev/null 2>&1; then
26159   ac_cv_c_stringize=no
26160 else
26161   ac_cv_c_stringize=yes
26162 fi
26163 rm -f conftest*
26164
26165 fi
26166 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
26167 echo "${ECHO_T}$ac_cv_c_stringize" >&6
26168 if test $ac_cv_c_stringize = yes; then
26169
26170 cat >>confdefs.h <<\_ACEOF
26171 #define HAVE_STRINGIZE 1
26172 _ACEOF
26173
26174 fi
26175
26176
26177 # FIXME: Really want #ifndef __cplusplus around the #define volatile
26178 # replacement autoconf gives, since volatile is always available in C++.
26179 # But we don't use it in C++ currently.
26180 echo "$as_me:$LINENO: checking for working volatile" >&5
26181 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
26182 if test "${ac_cv_c_volatile+set}" = set; then
26183   echo $ECHO_N "(cached) $ECHO_C" >&6
26184 else
26185   cat >conftest.$ac_ext <<_ACEOF
26186 /* confdefs.h.  */
26187 _ACEOF
26188 cat confdefs.h >>conftest.$ac_ext
26189 cat >>conftest.$ac_ext <<_ACEOF
26190 /* end confdefs.h.  */
26191
26192 int
26193 main ()
26194 {
26195
26196 volatile int x;
26197 int * volatile y;
26198   ;
26199   return 0;
26200 }
26201 _ACEOF
26202 rm -f conftest.$ac_objext
26203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26204   (eval $ac_compile) 2>conftest.er1
26205   ac_status=$?
26206   grep -v '^ *+' conftest.er1 >conftest.err
26207   rm -f conftest.er1
26208   cat conftest.err >&5
26209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210   (exit $ac_status); } &&
26211          { ac_try='test -z "$ac_c_werror_flag"
26212                          || test ! -s conftest.err'
26213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26214   (eval $ac_try) 2>&5
26215   ac_status=$?
26216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217   (exit $ac_status); }; } &&
26218          { ac_try='test -s conftest.$ac_objext'
26219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26220   (eval $ac_try) 2>&5
26221   ac_status=$?
26222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223   (exit $ac_status); }; }; then
26224   ac_cv_c_volatile=yes
26225 else
26226   echo "$as_me: failed program was:" >&5
26227 sed 's/^/| /' conftest.$ac_ext >&5
26228
26229 ac_cv_c_volatile=no
26230 fi
26231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26232 fi
26233 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
26234 echo "${ECHO_T}$ac_cv_c_volatile" >&6
26235 if test $ac_cv_c_volatile = no; then
26236
26237 cat >>confdefs.h <<\_ACEOF
26238 #define volatile
26239 _ACEOF
26240
26241 fi
26242
26243
26244 # AC_C_RESTRICT
26245
26246 echo "$as_me:$LINENO: checking whether <stdarg.h> exists and works" >&5
26247 echo $ECHO_N "checking whether <stdarg.h> exists and works... $ECHO_C" >&6
26248 if test "${gmp_cv_c_stdarg+set}" = set; then
26249   echo $ECHO_N "(cached) $ECHO_C" >&6
26250 else
26251   cat >conftest.$ac_ext <<_ACEOF
26252 /* confdefs.h.  */
26253 _ACEOF
26254 cat confdefs.h >>conftest.$ac_ext
26255 cat >>conftest.$ac_ext <<_ACEOF
26256 /* end confdefs.h.  */
26257 #include <stdarg.h>
26258 int foo (int x, ...)
26259 {
26260   va_list  ap;
26261   int      y;
26262   va_start (ap, x);
26263   y = va_arg (ap, int);
26264   va_end (ap);
26265   return y;
26266 }
26267 int
26268 main ()
26269 {
26270
26271   ;
26272   return 0;
26273 }
26274 _ACEOF
26275 rm -f conftest.$ac_objext
26276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26277   (eval $ac_compile) 2>conftest.er1
26278   ac_status=$?
26279   grep -v '^ *+' conftest.er1 >conftest.err
26280   rm -f conftest.er1
26281   cat conftest.err >&5
26282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283   (exit $ac_status); } &&
26284          { ac_try='test -z "$ac_c_werror_flag"
26285                          || test ! -s conftest.err'
26286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26287   (eval $ac_try) 2>&5
26288   ac_status=$?
26289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290   (exit $ac_status); }; } &&
26291          { ac_try='test -s conftest.$ac_objext'
26292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26293   (eval $ac_try) 2>&5
26294   ac_status=$?
26295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296   (exit $ac_status); }; }; then
26297   gmp_cv_c_stdarg=yes
26298 else
26299   echo "$as_me: failed program was:" >&5
26300 sed 's/^/| /' conftest.$ac_ext >&5
26301
26302 gmp_cv_c_stdarg=no
26303 fi
26304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26305
26306 fi
26307 echo "$as_me:$LINENO: result: $gmp_cv_c_stdarg" >&5
26308 echo "${ECHO_T}$gmp_cv_c_stdarg" >&6
26309 if test $gmp_cv_c_stdarg = yes; then
26310
26311 cat >>confdefs.h <<\_ACEOF
26312 #define HAVE_STDARG 1
26313 _ACEOF
26314
26315 fi
26316
26317 echo "$as_me:$LINENO: checking whether gcc __attribute__ ((const)) works" >&5
26318 echo $ECHO_N "checking whether gcc __attribute__ ((const)) works... $ECHO_C" >&6
26319 if test "${gmp_cv_c_attribute_const+set}" = set; then
26320   echo $ECHO_N "(cached) $ECHO_C" >&6
26321 else
26322   cat >conftest.$ac_ext <<_ACEOF
26323 /* confdefs.h.  */
26324 _ACEOF
26325 cat confdefs.h >>conftest.$ac_ext
26326 cat >>conftest.$ac_ext <<_ACEOF
26327 /* end confdefs.h.  */
26328 int foo (int x) __attribute__ ((const));
26329 int
26330 main ()
26331 {
26332
26333   ;
26334   return 0;
26335 }
26336 _ACEOF
26337 rm -f conftest.$ac_objext
26338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26339   (eval $ac_compile) 2>conftest.er1
26340   ac_status=$?
26341   grep -v '^ *+' conftest.er1 >conftest.err
26342   rm -f conftest.er1
26343   cat conftest.err >&5
26344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345   (exit $ac_status); } &&
26346          { ac_try='test -z "$ac_c_werror_flag"
26347                          || test ! -s conftest.err'
26348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26349   (eval $ac_try) 2>&5
26350   ac_status=$?
26351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352   (exit $ac_status); }; } &&
26353          { ac_try='test -s conftest.$ac_objext'
26354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26355   (eval $ac_try) 2>&5
26356   ac_status=$?
26357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358   (exit $ac_status); }; }; then
26359   gmp_cv_c_attribute_const=yes
26360 else
26361   echo "$as_me: failed program was:" >&5
26362 sed 's/^/| /' conftest.$ac_ext >&5
26363
26364 gmp_cv_c_attribute_const=no
26365 fi
26366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26367
26368 fi
26369 echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_const" >&5
26370 echo "${ECHO_T}$gmp_cv_c_attribute_const" >&6
26371 if test $gmp_cv_c_attribute_const = yes; then
26372
26373 cat >>confdefs.h <<\_ACEOF
26374 #define HAVE_ATTRIBUTE_CONST 1
26375 _ACEOF
26376
26377 fi
26378
26379 echo "$as_me:$LINENO: checking whether gcc __attribute__ ((malloc)) works" >&5
26380 echo $ECHO_N "checking whether gcc __attribute__ ((malloc)) works... $ECHO_C" >&6
26381 if test "${gmp_cv_c_attribute_malloc+set}" = set; then
26382   echo $ECHO_N "(cached) $ECHO_C" >&6
26383 else
26384   cat >conftest.c <<EOF
26385 void *foo (int x) __attribute__ ((malloc));
26386 EOF
26387 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
26388 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
26389   (eval $gmp_compile) 2>&5
26390   ac_status=$?
26391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392   (exit $ac_status); }; then
26393   if grep "attribute directive ignored" conftest.out >/dev/null; then
26394     gmp_cv_c_attribute_malloc=no
26395   else
26396     gmp_cv_c_attribute_malloc=yes
26397   fi
26398 else
26399   gmp_cv_c_attribute_malloc=no
26400 fi
26401 cat conftest.out >&5
26402 rm -f conftest*
26403
26404 fi
26405 echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_malloc" >&5
26406 echo "${ECHO_T}$gmp_cv_c_attribute_malloc" >&6
26407 if test $gmp_cv_c_attribute_malloc = yes; then
26408
26409 cat >>confdefs.h <<\_ACEOF
26410 #define HAVE_ATTRIBUTE_MALLOC 1
26411 _ACEOF
26412
26413 fi
26414
26415 echo "$as_me:$LINENO: checking whether gcc __attribute__ ((mode (XX))) works" >&5
26416 echo $ECHO_N "checking whether gcc __attribute__ ((mode (XX))) works... $ECHO_C" >&6
26417 if test "${gmp_cv_c_attribute_mode+set}" = set; then
26418   echo $ECHO_N "(cached) $ECHO_C" >&6
26419 else
26420   cat >conftest.$ac_ext <<_ACEOF
26421 /* confdefs.h.  */
26422 _ACEOF
26423 cat confdefs.h >>conftest.$ac_ext
26424 cat >>conftest.$ac_ext <<_ACEOF
26425 /* end confdefs.h.  */
26426 typedef int SItype __attribute__ ((mode (SI)));
26427 int
26428 main ()
26429 {
26430
26431   ;
26432   return 0;
26433 }
26434 _ACEOF
26435 rm -f conftest.$ac_objext
26436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26437   (eval $ac_compile) 2>conftest.er1
26438   ac_status=$?
26439   grep -v '^ *+' conftest.er1 >conftest.err
26440   rm -f conftest.er1
26441   cat conftest.err >&5
26442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443   (exit $ac_status); } &&
26444          { ac_try='test -z "$ac_c_werror_flag"
26445                          || test ! -s conftest.err'
26446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26447   (eval $ac_try) 2>&5
26448   ac_status=$?
26449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450   (exit $ac_status); }; } &&
26451          { ac_try='test -s conftest.$ac_objext'
26452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26453   (eval $ac_try) 2>&5
26454   ac_status=$?
26455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456   (exit $ac_status); }; }; then
26457   gmp_cv_c_attribute_mode=yes
26458 else
26459   echo "$as_me: failed program was:" >&5
26460 sed 's/^/| /' conftest.$ac_ext >&5
26461
26462 gmp_cv_c_attribute_mode=no
26463 fi
26464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26465
26466 fi
26467 echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_mode" >&5
26468 echo "${ECHO_T}$gmp_cv_c_attribute_mode" >&6
26469 if test $gmp_cv_c_attribute_mode = yes; then
26470
26471 cat >>confdefs.h <<\_ACEOF
26472 #define HAVE_ATTRIBUTE_MODE 1
26473 _ACEOF
26474
26475 fi
26476
26477 echo "$as_me:$LINENO: checking whether gcc __attribute__ ((noreturn)) works" >&5
26478 echo $ECHO_N "checking whether gcc __attribute__ ((noreturn)) works... $ECHO_C" >&6
26479 if test "${gmp_cv_c_attribute_noreturn+set}" = set; then
26480   echo $ECHO_N "(cached) $ECHO_C" >&6
26481 else
26482   cat >conftest.$ac_ext <<_ACEOF
26483 /* confdefs.h.  */
26484 _ACEOF
26485 cat confdefs.h >>conftest.$ac_ext
26486 cat >>conftest.$ac_ext <<_ACEOF
26487 /* end confdefs.h.  */
26488 void foo (int x) __attribute__ ((noreturn));
26489 int
26490 main ()
26491 {
26492
26493   ;
26494   return 0;
26495 }
26496 _ACEOF
26497 rm -f conftest.$ac_objext
26498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26499   (eval $ac_compile) 2>conftest.er1
26500   ac_status=$?
26501   grep -v '^ *+' conftest.er1 >conftest.err
26502   rm -f conftest.er1
26503   cat conftest.err >&5
26504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505   (exit $ac_status); } &&
26506          { ac_try='test -z "$ac_c_werror_flag"
26507                          || test ! -s conftest.err'
26508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26509   (eval $ac_try) 2>&5
26510   ac_status=$?
26511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26512   (exit $ac_status); }; } &&
26513          { ac_try='test -s conftest.$ac_objext'
26514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26515   (eval $ac_try) 2>&5
26516   ac_status=$?
26517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518   (exit $ac_status); }; }; then
26519   gmp_cv_c_attribute_noreturn=yes
26520 else
26521   echo "$as_me: failed program was:" >&5
26522 sed 's/^/| /' conftest.$ac_ext >&5
26523
26524 gmp_cv_c_attribute_noreturn=no
26525 fi
26526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26527
26528 fi
26529 echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_noreturn" >&5
26530 echo "${ECHO_T}$gmp_cv_c_attribute_noreturn" >&6
26531 if test $gmp_cv_c_attribute_noreturn = yes; then
26532
26533 cat >>confdefs.h <<\_ACEOF
26534 #define HAVE_ATTRIBUTE_NORETURN 1
26535 _ACEOF
26536
26537 fi
26538
26539
26540 echo "$as_me:$LINENO: checking for inline" >&5
26541 echo $ECHO_N "checking for inline... $ECHO_C" >&6
26542 if test "${ac_cv_c_inline+set}" = set; then
26543   echo $ECHO_N "(cached) $ECHO_C" >&6
26544 else
26545   ac_cv_c_inline=no
26546 for ac_kw in inline __inline__ __inline; do
26547   cat >conftest.$ac_ext <<_ACEOF
26548 /* confdefs.h.  */
26549 _ACEOF
26550 cat confdefs.h >>conftest.$ac_ext
26551 cat >>conftest.$ac_ext <<_ACEOF
26552 /* end confdefs.h.  */
26553 #ifndef __cplusplus
26554 typedef int foo_t;
26555 static $ac_kw foo_t static_foo () {return 0; }
26556 $ac_kw foo_t foo () {return 0; }
26557 #endif
26558
26559 _ACEOF
26560 rm -f conftest.$ac_objext
26561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26562   (eval $ac_compile) 2>conftest.er1
26563   ac_status=$?
26564   grep -v '^ *+' conftest.er1 >conftest.err
26565   rm -f conftest.er1
26566   cat conftest.err >&5
26567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568   (exit $ac_status); } &&
26569          { ac_try='test -z "$ac_c_werror_flag"
26570                          || test ! -s conftest.err'
26571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572   (eval $ac_try) 2>&5
26573   ac_status=$?
26574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575   (exit $ac_status); }; } &&
26576          { ac_try='test -s conftest.$ac_objext'
26577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26578   (eval $ac_try) 2>&5
26579   ac_status=$?
26580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581   (exit $ac_status); }; }; then
26582   ac_cv_c_inline=$ac_kw; break
26583 else
26584   echo "$as_me: failed program was:" >&5
26585 sed 's/^/| /' conftest.$ac_ext >&5
26586
26587 fi
26588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26589 done
26590
26591 fi
26592 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
26593 echo "${ECHO_T}$ac_cv_c_inline" >&6
26594
26595
26596 case $ac_cv_c_inline in
26597   inline | yes) ;;
26598   *)
26599     case $ac_cv_c_inline in
26600       no) ac_val=;;
26601       *) ac_val=$ac_cv_c_inline;;
26602     esac
26603     cat >>confdefs.h <<_ACEOF
26604 #ifndef __cplusplus
26605 #define inline $ac_val
26606 #endif
26607 _ACEOF
26608     ;;
26609 esac
26610
26611
26612 case $ac_cv_c_inline in
26613 no) ;;
26614 *)
26615   cat >conftest.$ac_ext <<_ACEOF
26616 /* confdefs.h.  */
26617 _ACEOF
26618 cat confdefs.h >>conftest.$ac_ext
26619 cat >>conftest.$ac_ext <<_ACEOF
26620 /* end confdefs.h.  */
26621 #define __GMP_WITHIN_CONFIGURE_INLINE 1
26622 #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
26623 #define GMP_NAIL_BITS $GMP_NAIL_BITS
26624 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
26625 #define GMP_LIMB_BITS 123
26626 $DEFN_LONG_LONG_LIMB
26627 #include "$srcdir/gmp-h.in"
26628
26629 #ifndef __GMP_EXTERN_INLINE
26630 die die die
26631 #endif
26632
26633 int
26634 main ()
26635 {
26636
26637   ;
26638   return 0;
26639 }
26640 _ACEOF
26641 rm -f conftest.$ac_objext
26642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26643   (eval $ac_compile) 2>conftest.er1
26644   ac_status=$?
26645   grep -v '^ *+' conftest.er1 >conftest.err
26646   rm -f conftest.er1
26647   cat conftest.err >&5
26648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649   (exit $ac_status); } &&
26650          { ac_try='test -z "$ac_c_werror_flag"
26651                          || test ! -s conftest.err'
26652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26653   (eval $ac_try) 2>&5
26654   ac_status=$?
26655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656   (exit $ac_status); }; } &&
26657          { ac_try='test -s conftest.$ac_objext'
26658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26659   (eval $ac_try) 2>&5
26660   ac_status=$?
26661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662   (exit $ac_status); }; }; then
26663   :
26664 else
26665   echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26667
26668 case $ac_cv_c_inline in
26669   yes) tmp_inline=inline ;;
26670   *)   tmp_inline=$ac_cv_c_inline ;;
26671   esac
26672   { echo "$as_me:$LINENO: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5
26673 echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;}
26674 fi
26675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26676   ;;
26677 esac
26678
26679
26680 # from libtool
26681 LIBM=
26682 case $host in
26683 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
26684   # These system don't have libm, or don't need it
26685   ;;
26686 *-ncr-sysv4.3*)
26687   echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
26688 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
26689 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
26690   echo $ECHO_N "(cached) $ECHO_C" >&6
26691 else
26692   ac_check_lib_save_LIBS=$LIBS
26693 LIBS="-lmw  $LIBS"
26694 cat >conftest.$ac_ext <<_ACEOF
26695 /* confdefs.h.  */
26696 _ACEOF
26697 cat confdefs.h >>conftest.$ac_ext
26698 cat >>conftest.$ac_ext <<_ACEOF
26699 /* end confdefs.h.  */
26700
26701 /* Override any gcc2 internal prototype to avoid an error.  */
26702 #ifdef __cplusplus
26703 extern "C"
26704 #endif
26705 /* We use char because int might match the return type of a gcc2
26706    builtin and then its argument prototype would still apply.  */
26707 char _mwvalidcheckl ();
26708 int
26709 main ()
26710 {
26711 _mwvalidcheckl ();
26712   ;
26713   return 0;
26714 }
26715 _ACEOF
26716 rm -f conftest.$ac_objext conftest$ac_exeext
26717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26718   (eval $ac_link) 2>conftest.er1
26719   ac_status=$?
26720   grep -v '^ *+' conftest.er1 >conftest.err
26721   rm -f conftest.er1
26722   cat conftest.err >&5
26723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724   (exit $ac_status); } &&
26725          { ac_try='test -z "$ac_c_werror_flag"
26726                          || test ! -s conftest.err'
26727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26728   (eval $ac_try) 2>&5
26729   ac_status=$?
26730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731   (exit $ac_status); }; } &&
26732          { ac_try='test -s conftest$ac_exeext'
26733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26734   (eval $ac_try) 2>&5
26735   ac_status=$?
26736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737   (exit $ac_status); }; }; then
26738   ac_cv_lib_mw__mwvalidcheckl=yes
26739 else
26740   echo "$as_me: failed program was:" >&5
26741 sed 's/^/| /' conftest.$ac_ext >&5
26742
26743 ac_cv_lib_mw__mwvalidcheckl=no
26744 fi
26745 rm -f conftest.err conftest.$ac_objext \
26746       conftest$ac_exeext conftest.$ac_ext
26747 LIBS=$ac_check_lib_save_LIBS
26748 fi
26749 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
26750 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
26751 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
26752   LIBM="-lmw"
26753 fi
26754
26755   echo "$as_me:$LINENO: checking for cos in -lm" >&5
26756 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
26757 if test "${ac_cv_lib_m_cos+set}" = set; then
26758   echo $ECHO_N "(cached) $ECHO_C" >&6
26759 else
26760   ac_check_lib_save_LIBS=$LIBS
26761 LIBS="-lm  $LIBS"
26762 cat >conftest.$ac_ext <<_ACEOF
26763 /* confdefs.h.  */
26764 _ACEOF
26765 cat confdefs.h >>conftest.$ac_ext
26766 cat >>conftest.$ac_ext <<_ACEOF
26767 /* end confdefs.h.  */
26768
26769 /* Override any gcc2 internal prototype to avoid an error.  */
26770 #ifdef __cplusplus
26771 extern "C"
26772 #endif
26773 /* We use char because int might match the return type of a gcc2
26774    builtin and then its argument prototype would still apply.  */
26775 char cos ();
26776 int
26777 main ()
26778 {
26779 cos ();
26780   ;
26781   return 0;
26782 }
26783 _ACEOF
26784 rm -f conftest.$ac_objext conftest$ac_exeext
26785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26786   (eval $ac_link) 2>conftest.er1
26787   ac_status=$?
26788   grep -v '^ *+' conftest.er1 >conftest.err
26789   rm -f conftest.er1
26790   cat conftest.err >&5
26791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792   (exit $ac_status); } &&
26793          { ac_try='test -z "$ac_c_werror_flag"
26794                          || test ! -s conftest.err'
26795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26796   (eval $ac_try) 2>&5
26797   ac_status=$?
26798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799   (exit $ac_status); }; } &&
26800          { ac_try='test -s conftest$ac_exeext'
26801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26802   (eval $ac_try) 2>&5
26803   ac_status=$?
26804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805   (exit $ac_status); }; }; then
26806   ac_cv_lib_m_cos=yes
26807 else
26808   echo "$as_me: failed program was:" >&5
26809 sed 's/^/| /' conftest.$ac_ext >&5
26810
26811 ac_cv_lib_m_cos=no
26812 fi
26813 rm -f conftest.err conftest.$ac_objext \
26814       conftest$ac_exeext conftest.$ac_ext
26815 LIBS=$ac_check_lib_save_LIBS
26816 fi
26817 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
26818 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
26819 if test $ac_cv_lib_m_cos = yes; then
26820   LIBM="$LIBM -lm"
26821 fi
26822
26823   ;;
26824 *)
26825   echo "$as_me:$LINENO: checking for cos in -lm" >&5
26826 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
26827 if test "${ac_cv_lib_m_cos+set}" = set; then
26828   echo $ECHO_N "(cached) $ECHO_C" >&6
26829 else
26830   ac_check_lib_save_LIBS=$LIBS
26831 LIBS="-lm  $LIBS"
26832 cat >conftest.$ac_ext <<_ACEOF
26833 /* confdefs.h.  */
26834 _ACEOF
26835 cat confdefs.h >>conftest.$ac_ext
26836 cat >>conftest.$ac_ext <<_ACEOF
26837 /* end confdefs.h.  */
26838
26839 /* Override any gcc2 internal prototype to avoid an error.  */
26840 #ifdef __cplusplus
26841 extern "C"
26842 #endif
26843 /* We use char because int might match the return type of a gcc2
26844    builtin and then its argument prototype would still apply.  */
26845 char cos ();
26846 int
26847 main ()
26848 {
26849 cos ();
26850   ;
26851   return 0;
26852 }
26853 _ACEOF
26854 rm -f conftest.$ac_objext conftest$ac_exeext
26855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26856   (eval $ac_link) 2>conftest.er1
26857   ac_status=$?
26858   grep -v '^ *+' conftest.er1 >conftest.err
26859   rm -f conftest.er1
26860   cat conftest.err >&5
26861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862   (exit $ac_status); } &&
26863          { ac_try='test -z "$ac_c_werror_flag"
26864                          || test ! -s conftest.err'
26865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26866   (eval $ac_try) 2>&5
26867   ac_status=$?
26868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869   (exit $ac_status); }; } &&
26870          { ac_try='test -s conftest$ac_exeext'
26871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26872   (eval $ac_try) 2>&5
26873   ac_status=$?
26874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875   (exit $ac_status); }; }; then
26876   ac_cv_lib_m_cos=yes
26877 else
26878   echo "$as_me: failed program was:" >&5
26879 sed 's/^/| /' conftest.$ac_ext >&5
26880
26881 ac_cv_lib_m_cos=no
26882 fi
26883 rm -f conftest.err conftest.$ac_objext \
26884       conftest$ac_exeext conftest.$ac_ext
26885 LIBS=$ac_check_lib_save_LIBS
26886 fi
26887 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
26888 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
26889 if test $ac_cv_lib_m_cos = yes; then
26890   LIBM="-lm"
26891 fi
26892
26893   ;;
26894 esac
26895
26896
26897
26898 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
26899 # for constant arguments.  Useless!
26900 echo "$as_me:$LINENO: checking for working alloca.h" >&5
26901 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
26902 if test "${gmp_cv_header_alloca+set}" = set; then
26903   echo $ECHO_N "(cached) $ECHO_C" >&6
26904 else
26905   cat >conftest.$ac_ext <<_ACEOF
26906 /* confdefs.h.  */
26907 _ACEOF
26908 cat confdefs.h >>conftest.$ac_ext
26909 cat >>conftest.$ac_ext <<_ACEOF
26910 /* end confdefs.h.  */
26911 #include <alloca.h>
26912 int
26913 main ()
26914 {
26915 char *p = (char *) alloca (2 * sizeof (int));
26916   ;
26917   return 0;
26918 }
26919 _ACEOF
26920 rm -f conftest.$ac_objext conftest$ac_exeext
26921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26922   (eval $ac_link) 2>conftest.er1
26923   ac_status=$?
26924   grep -v '^ *+' conftest.er1 >conftest.err
26925   rm -f conftest.er1
26926   cat conftest.err >&5
26927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928   (exit $ac_status); } &&
26929          { ac_try='test -z "$ac_c_werror_flag"
26930                          || test ! -s conftest.err'
26931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26932   (eval $ac_try) 2>&5
26933   ac_status=$?
26934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935   (exit $ac_status); }; } &&
26936          { ac_try='test -s conftest$ac_exeext'
26937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26938   (eval $ac_try) 2>&5
26939   ac_status=$?
26940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941   (exit $ac_status); }; }; then
26942   gmp_cv_header_alloca=yes
26943 else
26944   echo "$as_me: failed program was:" >&5
26945 sed 's/^/| /' conftest.$ac_ext >&5
26946
26947 gmp_cv_header_alloca=no
26948 fi
26949 rm -f conftest.err conftest.$ac_objext \
26950       conftest$ac_exeext conftest.$ac_ext
26951 fi
26952 echo "$as_me:$LINENO: result: $gmp_cv_header_alloca" >&5
26953 echo "${ECHO_T}$gmp_cv_header_alloca" >&6
26954 if test $gmp_cv_header_alloca = yes; then
26955
26956 cat >>confdefs.h <<\_ACEOF
26957 #define HAVE_ALLOCA_H 1
26958 _ACEOF
26959
26960 fi
26961
26962
26963 echo "$as_me:$LINENO: checking for alloca (via gmp-impl.h)" >&5
26964 echo $ECHO_N "checking for alloca (via gmp-impl.h)... $ECHO_C" >&6
26965 if test "${gmp_cv_func_alloca+set}" = set; then
26966   echo $ECHO_N "(cached) $ECHO_C" >&6
26967 else
26968   cat >conftest.$ac_ext <<_ACEOF
26969 /* confdefs.h.  */
26970 _ACEOF
26971 cat confdefs.h >>conftest.$ac_ext
26972 cat >>conftest.$ac_ext <<_ACEOF
26973 /* end confdefs.h.  */
26974 #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
26975 #define GMP_NAIL_BITS $GMP_NAIL_BITS
26976 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
26977 #define GMP_LIMB_BITS 123
26978 $DEFN_LONG_LONG_LIMB
26979 #include "$srcdir/gmp-h.in"
26980
26981 #include "$srcdir/gmp-impl.h"
26982
26983 int
26984 main ()
26985 {
26986 char *p = (char *) alloca (1);
26987   ;
26988   return 0;
26989 }
26990 _ACEOF
26991 rm -f conftest.$ac_objext conftest$ac_exeext
26992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26993   (eval $ac_link) 2>conftest.er1
26994   ac_status=$?
26995   grep -v '^ *+' conftest.er1 >conftest.err
26996   rm -f conftest.er1
26997   cat conftest.err >&5
26998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999   (exit $ac_status); } &&
27000          { ac_try='test -z "$ac_c_werror_flag"
27001                          || test ! -s conftest.err'
27002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27003   (eval $ac_try) 2>&5
27004   ac_status=$?
27005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006   (exit $ac_status); }; } &&
27007          { ac_try='test -s conftest$ac_exeext'
27008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27009   (eval $ac_try) 2>&5
27010   ac_status=$?
27011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012   (exit $ac_status); }; }; then
27013   gmp_cv_func_alloca=yes
27014 else
27015   echo "$as_me: failed program was:" >&5
27016 sed 's/^/| /' conftest.$ac_ext >&5
27017
27018 gmp_cv_func_alloca=no
27019 fi
27020 rm -f conftest.err conftest.$ac_objext \
27021       conftest$ac_exeext conftest.$ac_ext
27022 fi
27023 echo "$as_me:$LINENO: result: $gmp_cv_func_alloca" >&5
27024 echo "${ECHO_T}$gmp_cv_func_alloca" >&6
27025 if test $gmp_cv_func_alloca = yes; then
27026
27027 cat >>confdefs.h <<\_ACEOF
27028 #define HAVE_ALLOCA 1
27029 _ACEOF
27030
27031 fi
27032
27033
27034 echo "$as_me:$LINENO: checking how to allocate temporary memory" >&5
27035 echo $ECHO_N "checking how to allocate temporary memory... $ECHO_C" >&6
27036 if test "${gmp_cv_option_alloca+set}" = set; then
27037   echo $ECHO_N "(cached) $ECHO_C" >&6
27038 else
27039   case $enable_alloca in
27040   yes)
27041     gmp_cv_option_alloca=alloca
27042     ;;
27043   no)
27044     gmp_cv_option_alloca=malloc-reentrant
27045     ;;
27046   reentrant | notreentrant)
27047     case $gmp_cv_func_alloca in
27048     yes)  gmp_cv_option_alloca=alloca ;;
27049     *)    gmp_cv_option_alloca=malloc-$enable_alloca ;;
27050     esac
27051     ;;
27052   *)
27053     gmp_cv_option_alloca=$enable_alloca
27054     ;;
27055 esac
27056
27057 fi
27058 echo "$as_me:$LINENO: result: $gmp_cv_option_alloca" >&5
27059 echo "${ECHO_T}$gmp_cv_option_alloca" >&6
27060
27061
27062
27063
27064 case $gmp_cv_option_alloca in
27065   alloca)
27066     if test $gmp_cv_func_alloca = no; then
27067       { { echo "$as_me:$LINENO: error: --enable-alloca=alloca specified, but alloca not available" >&5
27068 echo "$as_me: error: --enable-alloca=alloca specified, but alloca not available" >&2;}
27069    { (exit 1); exit 1; }; }
27070     fi
27071     cat >>confdefs.h <<\_ACEOF
27072 #define WANT_TMP_ALLOCA 1
27073 _ACEOF
27074
27075     TAL_OBJECT=tal-reent$U.lo
27076     ;;
27077   malloc-reentrant)
27078     cat >>confdefs.h <<\_ACEOF
27079 #define WANT_TMP_REENTRANT 1
27080 _ACEOF
27081
27082     TAL_OBJECT=tal-reent$U.lo
27083     ;;
27084   malloc-notreentrant)
27085     cat >>confdefs.h <<\_ACEOF
27086 #define WANT_TMP_NOTREENTRANT 1
27087 _ACEOF
27088
27089     TAL_OBJECT=tal-notreent$U.lo
27090     ;;
27091   debug)
27092     cat >>confdefs.h <<\_ACEOF
27093 #define WANT_TMP_DEBUG 1
27094 _ACEOF
27095
27096     TAL_OBJECT=tal-debug$U.lo
27097     ;;
27098   *)
27099     # checks at the start of configure.in should protect us
27100     { { echo "$as_me:$LINENO: error: unrecognised --enable-alloca=$gmp_cv_option_alloca" >&5
27101 echo "$as_me: error: unrecognised --enable-alloca=$gmp_cv_option_alloca" >&2;}
27102    { (exit 1); exit 1; }; }
27103     ;;
27104 esac
27105
27106
27107
27108 cat >conftest.$ac_ext <<_ACEOF
27109 /* confdefs.h.  */
27110 _ACEOF
27111 cat confdefs.h >>conftest.$ac_ext
27112 cat >>conftest.$ac_ext <<_ACEOF
27113 /* end confdefs.h.  */
27114 #include <stdio.h>
27115 #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
27116 #define GMP_NAIL_BITS $GMP_NAIL_BITS
27117 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
27118 #define GMP_LIMB_BITS 123
27119 $DEFN_LONG_LONG_LIMB
27120 #include "$srcdir/gmp-h.in"
27121
27122 #if ! _GMP_H_HAVE_FILE
27123 die die die
27124 #endif
27125
27126 int
27127 main ()
27128 {
27129
27130   ;
27131   return 0;
27132 }
27133 _ACEOF
27134 rm -f conftest.$ac_objext
27135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27136   (eval $ac_compile) 2>conftest.er1
27137   ac_status=$?
27138   grep -v '^ *+' conftest.er1 >conftest.err
27139   rm -f conftest.er1
27140   cat conftest.err >&5
27141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142   (exit $ac_status); } &&
27143          { ac_try='test -z "$ac_c_werror_flag"
27144                          || test ! -s conftest.err'
27145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27146   (eval $ac_try) 2>&5
27147   ac_status=$?
27148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149   (exit $ac_status); }; } &&
27150          { ac_try='test -s conftest.$ac_objext'
27151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27152   (eval $ac_try) 2>&5
27153   ac_status=$?
27154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155   (exit $ac_status); }; }; then
27156   :
27157 else
27158   echo "$as_me: failed program was:" >&5
27159 sed 's/^/| /' conftest.$ac_ext >&5
27160
27161 { echo "$as_me:$LINENO: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5
27162 echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;}
27163 fi
27164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27165
27166
27167 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
27168 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
27169 if test "${ac_cv_c_bigendian+set}" = set; then
27170   echo $ECHO_N "(cached) $ECHO_C" >&6
27171 else
27172   # See if sys/param.h defines the BYTE_ORDER macro.
27173 cat >conftest.$ac_ext <<_ACEOF
27174 /* confdefs.h.  */
27175 _ACEOF
27176 cat confdefs.h >>conftest.$ac_ext
27177 cat >>conftest.$ac_ext <<_ACEOF
27178 /* end confdefs.h.  */
27179 #include <sys/types.h>
27180 #include <sys/param.h>
27181
27182 int
27183 main ()
27184 {
27185 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
27186  bogus endian macros
27187 #endif
27188
27189   ;
27190   return 0;
27191 }
27192 _ACEOF
27193 rm -f conftest.$ac_objext
27194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27195   (eval $ac_compile) 2>conftest.er1
27196   ac_status=$?
27197   grep -v '^ *+' conftest.er1 >conftest.err
27198   rm -f conftest.er1
27199   cat conftest.err >&5
27200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201   (exit $ac_status); } &&
27202          { ac_try='test -z "$ac_c_werror_flag"
27203                          || test ! -s conftest.err'
27204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27205   (eval $ac_try) 2>&5
27206   ac_status=$?
27207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208   (exit $ac_status); }; } &&
27209          { ac_try='test -s conftest.$ac_objext'
27210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27211   (eval $ac_try) 2>&5
27212   ac_status=$?
27213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214   (exit $ac_status); }; }; then
27215   # It does; now see whether it defined to BIG_ENDIAN or not.
27216 cat >conftest.$ac_ext <<_ACEOF
27217 /* confdefs.h.  */
27218 _ACEOF
27219 cat confdefs.h >>conftest.$ac_ext
27220 cat >>conftest.$ac_ext <<_ACEOF
27221 /* end confdefs.h.  */
27222 #include <sys/types.h>
27223 #include <sys/param.h>
27224
27225 int
27226 main ()
27227 {
27228 #if BYTE_ORDER != BIG_ENDIAN
27229  not big endian
27230 #endif
27231
27232   ;
27233   return 0;
27234 }
27235 _ACEOF
27236 rm -f conftest.$ac_objext
27237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27238   (eval $ac_compile) 2>conftest.er1
27239   ac_status=$?
27240   grep -v '^ *+' conftest.er1 >conftest.err
27241   rm -f conftest.er1
27242   cat conftest.err >&5
27243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244   (exit $ac_status); } &&
27245          { ac_try='test -z "$ac_c_werror_flag"
27246                          || test ! -s conftest.err'
27247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27248   (eval $ac_try) 2>&5
27249   ac_status=$?
27250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251   (exit $ac_status); }; } &&
27252          { ac_try='test -s conftest.$ac_objext'
27253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27254   (eval $ac_try) 2>&5
27255   ac_status=$?
27256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257   (exit $ac_status); }; }; then
27258   ac_cv_c_bigendian=yes
27259 else
27260   echo "$as_me: failed program was:" >&5
27261 sed 's/^/| /' conftest.$ac_ext >&5
27262
27263 ac_cv_c_bigendian=no
27264 fi
27265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27266 else
27267   echo "$as_me: failed program was:" >&5
27268 sed 's/^/| /' conftest.$ac_ext >&5
27269
27270 # It does not; compile a test program.
27271 if test "$cross_compiling" = yes; then
27272   # try to guess the endianness by grepping values into an object file
27273   ac_cv_c_bigendian=unknown
27274   cat >conftest.$ac_ext <<_ACEOF
27275 /* confdefs.h.  */
27276 _ACEOF
27277 cat confdefs.h >>conftest.$ac_ext
27278 cat >>conftest.$ac_ext <<_ACEOF
27279 /* end confdefs.h.  */
27280 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27281 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27282 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
27283 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27284 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27285 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
27286 int
27287 main ()
27288 {
27289  _ascii (); _ebcdic ();
27290   ;
27291   return 0;
27292 }
27293 _ACEOF
27294 rm -f conftest.$ac_objext
27295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27296   (eval $ac_compile) 2>conftest.er1
27297   ac_status=$?
27298   grep -v '^ *+' conftest.er1 >conftest.err
27299   rm -f conftest.er1
27300   cat conftest.err >&5
27301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302   (exit $ac_status); } &&
27303          { ac_try='test -z "$ac_c_werror_flag"
27304                          || test ! -s conftest.err'
27305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27306   (eval $ac_try) 2>&5
27307   ac_status=$?
27308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309   (exit $ac_status); }; } &&
27310          { ac_try='test -s conftest.$ac_objext'
27311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27312   (eval $ac_try) 2>&5
27313   ac_status=$?
27314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315   (exit $ac_status); }; }; then
27316   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
27317   ac_cv_c_bigendian=yes
27318 fi
27319 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
27320   if test "$ac_cv_c_bigendian" = unknown; then
27321     ac_cv_c_bigendian=no
27322   else
27323     # finding both strings is unlikely to happen, but who knows?
27324     ac_cv_c_bigendian=unknown
27325   fi
27326 fi
27327 else
27328   echo "$as_me: failed program was:" >&5
27329 sed 's/^/| /' conftest.$ac_ext >&5
27330
27331 fi
27332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27333 else
27334   cat >conftest.$ac_ext <<_ACEOF
27335 /* confdefs.h.  */
27336 _ACEOF
27337 cat confdefs.h >>conftest.$ac_ext
27338 cat >>conftest.$ac_ext <<_ACEOF
27339 /* end confdefs.h.  */
27340 int
27341 main ()
27342 {
27343   /* Are we little or big endian?  From Harbison&Steele.  */
27344   union
27345   {
27346     long l;
27347     char c[sizeof (long)];
27348   } u;
27349   u.l = 1;
27350   exit (u.c[sizeof (long) - 1] == 1);
27351 }
27352 _ACEOF
27353 rm -f conftest$ac_exeext
27354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27355   (eval $ac_link) 2>&5
27356   ac_status=$?
27357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27360   (eval $ac_try) 2>&5
27361   ac_status=$?
27362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363   (exit $ac_status); }; }; then
27364   ac_cv_c_bigendian=no
27365 else
27366   echo "$as_me: program exited with status $ac_status" >&5
27367 echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.$ac_ext >&5
27369
27370 ( exit $ac_status )
27371 ac_cv_c_bigendian=yes
27372 fi
27373 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27374 fi
27375 fi
27376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27377 fi
27378 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
27379 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
27380 case $ac_cv_c_bigendian in
27381   yes)
27382     cat >>confdefs.h <<\_ACEOF
27383 #define HAVE_LIMB_BIG_ENDIAN 1
27384 _ACEOF
27385
27386
27387 echo "define_not_for_expansion(\`HAVE_LIMB_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
27388  ;;
27389   no)
27390     cat >>confdefs.h <<\_ACEOF
27391 #define HAVE_LIMB_LITTLE_ENDIAN 1
27392 _ACEOF
27393
27394
27395 echo "define_not_for_expansion(\`HAVE_LIMB_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
27396
27397    ;;
27398   *)
27399     : ;;
27400 esac
27401
27402
27403
27404
27405
27406
27407 echo "$as_me:$LINENO: checking format of \`double' floating point" >&5
27408 echo $ECHO_N "checking format of \`double' floating point... $ECHO_C" >&6
27409 if test "${gmp_cv_c_double_format+set}" = set; then
27410   echo $ECHO_N "(cached) $ECHO_C" >&6
27411 else
27412   gmp_cv_c_double_format=unknown
27413 cat >conftest.c <<\EOF
27414 struct {
27415   char    before[8];
27416   double  x;
27417   char    after[8];
27418 } foo = {
27419   { '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
27420   -123456789.0,
27421   { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
27422 };
27423 EOF
27424 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
27425 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
27426   (eval $gmp_compile) 2>&5
27427   ac_status=$?
27428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429   (exit $ac_status); }; then
27430 cat >conftest.awk <<\EOF
27431
27432 BEGIN {
27433   found = 0
27434 }
27435
27436 {
27437   for (f = 2; f <= NF; f++)
27438     {
27439       for (i = 0; i < 23; i++)
27440         got[i] = got[i+1];
27441       got[23] = $f;
27442
27443       # match the special begin and end sequences
27444       if (got[0] != "001") continue
27445       if (got[1] != "043") continue
27446       if (got[2] != "105") continue
27447       if (got[3] != "147") continue
27448       if (got[4] != "211") continue
27449       if (got[5] != "253") continue
27450       if (got[6] != "315") continue
27451       if (got[7] != "357") continue
27452       if (got[16] != "376") continue
27453       if (got[17] != "334") continue
27454       if (got[18] != "272") continue
27455       if (got[19] != "230") continue
27456       if (got[20] != "166") continue
27457       if (got[21] != "124") continue
27458       if (got[22] != "062") continue
27459       if (got[23] != "020") continue
27460
27461       saw = " (" got[8] " " got[9] " " got[10] " " got[11] " " got[12] " " got[13] " " got[14] " " got[15] ")"
27462
27463       if (got[8]  == "000" &&  \
27464           got[9]  == "000" &&  \
27465           got[10] == "000" &&  \
27466           got[11] == "124" &&  \
27467           got[12] == "064" &&  \
27468           got[13] == "157" &&  \
27469           got[14] == "235" &&  \
27470           got[15] == "301")
27471         {
27472           print "IEEE little endian"
27473           found = 1
27474           exit
27475         }
27476
27477       # Little endian with the two 4-byte halves swapped, as used by ARM
27478       # when the chip is in little endian mode.
27479       #
27480       if (got[8]  == "064" &&  \
27481           got[9]  == "157" &&  \
27482           got[10] == "235" &&  \
27483           got[11] == "301" &&  \
27484           got[12] == "000" &&  \
27485           got[13] == "000" &&  \
27486           got[14] == "000" &&  \
27487           got[15] == "124")
27488         {
27489           print "IEEE little endian, swapped halves"
27490           found = 1
27491           exit
27492         }
27493
27494       # gcc 2.95.4 on one GNU/Linux ARM system was seen generating 000 in
27495       # the last byte, whereas 124 is correct.  Not sure where the bug
27496       # actually lies, but a running program didn't seem to get a full
27497       # mantissa worth of working bits.
27498       #
27499       # We match this case explicitly so we can give a nice result message,
27500       # but we deliberately exclude it from the normal IEEE double setups
27501       # since it's too broken.
27502       #
27503       if (got[8]  == "064" &&  \
27504           got[9]  == "157" &&  \
27505           got[10] == "235" &&  \
27506           got[11] == "301" &&  \
27507           got[12] == "000" &&  \
27508           got[13] == "000" &&  \
27509           got[14] == "000" &&  \
27510           got[15] == "000")
27511         {
27512           print "bad ARM software floats"
27513           found = 1
27514           exit
27515         }
27516
27517       if (got[8]  == "301" &&  \
27518           got[9]  == "235" &&  \
27519           got[10] == "157" &&  \
27520           got[11] == "064" &&  \
27521           got[12] == "124" &&  \
27522           got[13] == "000" &&  \
27523           got[14] == "000" &&  \
27524           got[15] == "000")
27525         {
27526           print "IEEE big endian"
27527           found = 1
27528           exit
27529         }
27530
27531       if (got[8]  == "353" &&  \
27532           got[9]  == "315" &&  \
27533           got[10] == "242" &&  \
27534           got[11] == "171" &&  \
27535           got[12] == "000" &&  \
27536           got[13] == "240" &&  \
27537           got[14] == "000" &&  \
27538           got[15] == "000")
27539         {
27540           print "VAX D"
27541           found = 1
27542           exit
27543         }
27544
27545       if (got[8]  == "275" &&  \
27546           got[9]  == "301" &&  \
27547           got[10] == "064" &&  \
27548           got[11] == "157" &&  \
27549           got[12] == "000" &&  \
27550           got[13] == "124" &&  \
27551           got[14] == "000" &&  \
27552           got[15] == "000")
27553         {
27554           print "VAX G"
27555           found = 1
27556           exit
27557         }
27558
27559       if (got[8]  == "300" &&  \
27560           got[9]  == "033" &&  \
27561           got[10] == "353" &&  \
27562           got[11] == "171" &&  \
27563           got[12] == "242" &&  \
27564           got[13] == "240" &&  \
27565           got[14] == "000" &&  \
27566           got[15] == "000")
27567         {
27568           print "Cray CFP"
27569           found = 1
27570           exit
27571         }
27572     }
27573 }
27574
27575 END {
27576   if (! found)
27577     print "unknown", saw
27578 }
27579
27580 EOF
27581   gmp_cv_c_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
27582   case $gmp_cv_c_double_format in
27583   unknown*)
27584     echo "cannot match anything, conftest.$OBJEXT contains" >&5
27585     od -b conftest.$OBJEXT >&5
27586     ;;
27587   esac
27588 else
27589   { echo "$as_me:$LINENO: WARNING: oops, cannot compile test program" >&5
27590 echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
27591 fi
27592 rm -f conftest*
27593
27594 fi
27595 echo "$as_me:$LINENO: result: $gmp_cv_c_double_format" >&5
27596 echo "${ECHO_T}$gmp_cv_c_double_format" >&6
27597
27598
27599
27600
27601 case $gmp_cv_c_double_format in
27602   "IEEE big endian")
27603     cat >>confdefs.h <<\_ACEOF
27604 #define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1
27605 _ACEOF
27606
27607
27608 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
27609
27610     ;;
27611   "IEEE little endian")
27612     cat >>confdefs.h <<\_ACEOF
27613 #define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1
27614 _ACEOF
27615
27616
27617 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
27618
27619     ;;
27620   "IEEE little endian, swapped halves")
27621     cat >>confdefs.h <<\_ACEOF
27622 #define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1
27623 _ACEOF
27624  ;;
27625   "VAX D")
27626     cat >>confdefs.h <<\_ACEOF
27627 #define HAVE_DOUBLE_VAX_D 1
27628 _ACEOF
27629  ;;
27630   "VAX G")
27631     cat >>confdefs.h <<\_ACEOF
27632 #define HAVE_DOUBLE_VAX_G 1
27633 _ACEOF
27634  ;;
27635   "Cray CFP")
27636     cat >>confdefs.h <<\_ACEOF
27637 #define HAVE_DOUBLE_CRAY_CFP 1
27638 _ACEOF
27639  ;;
27640   "bad ARM software floats")
27641     ;;
27642   unknown*)
27643     { echo "$as_me:$LINENO: WARNING: Could not determine float format." >&5
27644 echo "$as_me: WARNING: Could not determine float format." >&2;}
27645     { echo "$as_me:$LINENO: WARNING: Conversions to and from \"double\" may be slow." >&5
27646 echo "$as_me: WARNING: Conversions to and from \"double\" may be slow." >&2;}
27647     ;;
27648   *)
27649     { echo "$as_me:$LINENO: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5
27650 echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;}
27651     ;;
27652 esac
27653
27654
27655
27656 # Reasons for testing:
27657 #   alarm - not in mingw
27658 #   attr_get - IRIX specific
27659 #   clock_gettime - not in glibc 2.2.4, only very recent systems
27660 #   cputime - not in glibc
27661 #   getsysinfo - OSF specific
27662 #   getrusage - not in mingw
27663 #   gettimeofday - not in mingw
27664 #   mmap - not in mingw, djgpp
27665 #   nl_langinfo - X/Open standard only, not in djgpp for instance
27666 #   obstack_vprintf - glibc specific
27667 #   processor_info - solaris specific
27668 #   pstat_getprocessor - HPUX specific (10.x and up)
27669 #   raise - an ANSI-ism, though probably almost universal by now
27670 #   read_real_time - AIX specific
27671 #   sigaction - not in mingw
27672 #   sigaltstack - not in mingw, or old AIX (reputedly)
27673 #   sigstack - not in mingw
27674 #   strerror - not in SunOS
27675 #   strnlen - glibc extension (some other systems too)
27676 #   syssgi - IRIX specific
27677 #   times - not in mingw
27678 #
27679 # clock_gettime is in librt on *-*-osf5.1.  We could look for it
27680 # there, but that's not worth bothering with unless it has a decent
27681 # resolution (in a quick test clock_getres said only 1 millisecond).
27682 #
27683 # AC_FUNC_STRNLEN is not used because we don't want the AC_LIBOBJ
27684 # replacement setups it gives.  It detects a faulty strnlen on AIX, but
27685 # missing out on that test is ok since our only use of strnlen is in
27686 # __gmp_replacement_vsnprintf which is not required on AIX since it has a
27687 # vsnprintf.
27688 #
27689
27690
27691
27692
27693
27694
27695
27696
27697
27698
27699
27700
27701
27702
27703
27704
27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
27715
27716
27717
27718
27719
27720
27721
27722 for ac_func in alarm attr_get clock clock_gettime cputime getpagesize getrusage gettimeofday getsysinfo localeconv memset mmap mprotect nl_langinfo obstack_vprintf popen processor_info pstat_getprocessor raise read_real_time sigaction sigaltstack sigstack syssgi strchr strerror strnlen strtol strtoul sysconf sysctl sysctlbyname times
27723 do
27724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27725 echo "$as_me:$LINENO: checking for $ac_func" >&5
27726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27727 if eval "test \"\${$as_ac_var+set}\" = set"; then
27728   echo $ECHO_N "(cached) $ECHO_C" >&6
27729 else
27730   cat >conftest.$ac_ext <<_ACEOF
27731 /* confdefs.h.  */
27732 _ACEOF
27733 cat confdefs.h >>conftest.$ac_ext
27734 cat >>conftest.$ac_ext <<_ACEOF
27735 /* end confdefs.h.  */
27736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27738 #define $ac_func innocuous_$ac_func
27739
27740 /* System header to define __stub macros and hopefully few prototypes,
27741     which can conflict with char $ac_func (); below.
27742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27743     <limits.h> exists even on freestanding compilers.  */
27744
27745 #ifdef __STDC__
27746 # include <limits.h>
27747 #else
27748 # include <assert.h>
27749 #endif
27750
27751 #undef $ac_func
27752
27753 /* Override any gcc2 internal prototype to avoid an error.  */
27754 #ifdef __cplusplus
27755 extern "C"
27756 {
27757 #endif
27758 /* We use char because int might match the return type of a gcc2
27759    builtin and then its argument prototype would still apply.  */
27760 char $ac_func ();
27761 /* The GNU C library defines this for functions which it implements
27762     to always fail with ENOSYS.  Some functions are actually named
27763     something starting with __ and the normal name is an alias.  */
27764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27765 choke me
27766 #else
27767 char (*f) () = $ac_func;
27768 #endif
27769 #ifdef __cplusplus
27770 }
27771 #endif
27772
27773 int
27774 main ()
27775 {
27776 return f != $ac_func;
27777   ;
27778   return 0;
27779 }
27780 _ACEOF
27781 rm -f conftest.$ac_objext conftest$ac_exeext
27782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27783   (eval $ac_link) 2>conftest.er1
27784   ac_status=$?
27785   grep -v '^ *+' conftest.er1 >conftest.err
27786   rm -f conftest.er1
27787   cat conftest.err >&5
27788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789   (exit $ac_status); } &&
27790          { ac_try='test -z "$ac_c_werror_flag"
27791                          || test ! -s conftest.err'
27792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27793   (eval $ac_try) 2>&5
27794   ac_status=$?
27795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796   (exit $ac_status); }; } &&
27797          { ac_try='test -s conftest$ac_exeext'
27798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27799   (eval $ac_try) 2>&5
27800   ac_status=$?
27801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802   (exit $ac_status); }; }; then
27803   eval "$as_ac_var=yes"
27804 else
27805   echo "$as_me: failed program was:" >&5
27806 sed 's/^/| /' conftest.$ac_ext >&5
27807
27808 eval "$as_ac_var=no"
27809 fi
27810 rm -f conftest.err conftest.$ac_objext \
27811       conftest$ac_exeext conftest.$ac_ext
27812 fi
27813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27815 if test `eval echo '${'$as_ac_var'}'` = yes; then
27816   cat >>confdefs.h <<_ACEOF
27817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27818 _ACEOF
27819
27820 fi
27821 done
27822
27823
27824
27825 echo "$as_me:$LINENO: checking for vsnprintf" >&5
27826 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
27827 if test "${ac_cv_func_vsnprintf+set}" = set; then
27828   echo $ECHO_N "(cached) $ECHO_C" >&6
27829 else
27830   cat >conftest.$ac_ext <<_ACEOF
27831 /* confdefs.h.  */
27832 _ACEOF
27833 cat confdefs.h >>conftest.$ac_ext
27834 cat >>conftest.$ac_ext <<_ACEOF
27835 /* end confdefs.h.  */
27836 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
27837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27838 #define vsnprintf innocuous_vsnprintf
27839
27840 /* System header to define __stub macros and hopefully few prototypes,
27841     which can conflict with char vsnprintf (); below.
27842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27843     <limits.h> exists even on freestanding compilers.  */
27844
27845 #ifdef __STDC__
27846 # include <limits.h>
27847 #else
27848 # include <assert.h>
27849 #endif
27850
27851 #undef vsnprintf
27852
27853 /* Override any gcc2 internal prototype to avoid an error.  */
27854 #ifdef __cplusplus
27855 extern "C"
27856 {
27857 #endif
27858 /* We use char because int might match the return type of a gcc2
27859    builtin and then its argument prototype would still apply.  */
27860 char vsnprintf ();
27861 /* The GNU C library defines this for functions which it implements
27862     to always fail with ENOSYS.  Some functions are actually named
27863     something starting with __ and the normal name is an alias.  */
27864 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
27865 choke me
27866 #else
27867 char (*f) () = vsnprintf;
27868 #endif
27869 #ifdef __cplusplus
27870 }
27871 #endif
27872
27873 int
27874 main ()
27875 {
27876 return f != vsnprintf;
27877   ;
27878   return 0;
27879 }
27880 _ACEOF
27881 rm -f conftest.$ac_objext conftest$ac_exeext
27882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27883   (eval $ac_link) 2>conftest.er1
27884   ac_status=$?
27885   grep -v '^ *+' conftest.er1 >conftest.err
27886   rm -f conftest.er1
27887   cat conftest.err >&5
27888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889   (exit $ac_status); } &&
27890          { ac_try='test -z "$ac_c_werror_flag"
27891                          || test ! -s conftest.err'
27892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27893   (eval $ac_try) 2>&5
27894   ac_status=$?
27895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896   (exit $ac_status); }; } &&
27897          { ac_try='test -s conftest$ac_exeext'
27898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27899   (eval $ac_try) 2>&5
27900   ac_status=$?
27901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902   (exit $ac_status); }; }; then
27903   ac_cv_func_vsnprintf=yes
27904 else
27905   echo "$as_me: failed program was:" >&5
27906 sed 's/^/| /' conftest.$ac_ext >&5
27907
27908 ac_cv_func_vsnprintf=no
27909 fi
27910 rm -f conftest.err conftest.$ac_objext \
27911       conftest$ac_exeext conftest.$ac_ext
27912 fi
27913 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
27914 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
27915 if test $ac_cv_func_vsnprintf = yes; then
27916   gmp_vsnprintf_exists=yes
27917 else
27918   gmp_vsnprintf_exists=no
27919 fi
27920
27921 if test "$gmp_vsnprintf_exists" = no; then
27922   gmp_cv_func_vsnprintf=no
27923 else
27924   echo "$as_me:$LINENO: checking whether vsnprintf works" >&5
27925 echo $ECHO_N "checking whether vsnprintf works... $ECHO_C" >&6
27926 if test "${gmp_cv_func_vsnprintf+set}" = set; then
27927   echo $ECHO_N "(cached) $ECHO_C" >&6
27928 else
27929   gmp_cv_func_vsnprintf=yes
27930    for i in 'check ("hello world");' 'int n; check ("%nhello world", &n);'; do
27931      if test "$cross_compiling" = yes; then
27932   gmp_cv_func_vsnprintf=probably; break
27933 else
27934   cat >conftest.$ac_ext <<_ACEOF
27935 /* confdefs.h.  */
27936 _ACEOF
27937 cat confdefs.h >>conftest.$ac_ext
27938 cat >>conftest.$ac_ext <<_ACEOF
27939 /* end confdefs.h.  */
27940
27941 #include <string.h>  /* for strcmp */
27942 #include <stdio.h>   /* for vsnprintf */
27943
27944 #if HAVE_STDARG
27945 #include <stdarg.h>
27946 #else
27947 #include <varargs.h>
27948 #endif
27949
27950 int
27951 #if HAVE_STDARG
27952 check (const char *fmt, ...)
27953 #else
27954 check (va_alist)
27955      va_dcl
27956 #endif
27957 {
27958   static char  buf[128];
27959   va_list  ap;
27960   int      ret;
27961
27962 #if HAVE_STDARG
27963   va_start (ap, fmt);
27964 #else
27965   char *fmt;
27966   va_start (ap);
27967   fmt = va_arg (ap, char *);
27968 #endif
27969
27970   ret = vsnprintf (buf, 4, fmt, ap);
27971
27972   if (strcmp (buf, "hel") != 0)
27973     exit (1);
27974
27975   /* allowed return values */
27976   if (ret != -1 && ret != 3 && ret != 11)
27977     exit (2);
27978
27979   return 0;
27980 }
27981
27982 int
27983 main ()
27984 {
27985 $i
27986   exit (0);
27987 }
27988
27989 _ACEOF
27990 rm -f conftest$ac_exeext
27991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27992   (eval $ac_link) 2>&5
27993   ac_status=$?
27994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27997   (eval $ac_try) 2>&5
27998   ac_status=$?
27999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000   (exit $ac_status); }; }; then
28001   :
28002 else
28003   echo "$as_me: program exited with status $ac_status" >&5
28004 echo "$as_me: failed program was:" >&5
28005 sed 's/^/| /' conftest.$ac_ext >&5
28006
28007 ( exit $ac_status )
28008 gmp_cv_func_vsnprintf=no; break
28009 fi
28010 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28011 fi
28012   done
28013
28014 fi
28015 echo "$as_me:$LINENO: result: $gmp_cv_func_vsnprintf" >&5
28016 echo "${ECHO_T}$gmp_cv_func_vsnprintf" >&6
28017   if test "$gmp_cv_func_vsnprintf" = probably; then
28018     { echo "$as_me:$LINENO: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5
28019 echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;}
28020   fi
28021   if test "$gmp_cv_func_vsnprintf" != no; then
28022
28023 cat >>confdefs.h <<\_ACEOF
28024 #define HAVE_VSNPRINTF 1
28025 _ACEOF
28026
28027   fi
28028 fi
28029
28030 echo "$as_me:$LINENO: checking whether sscanf needs writable input" >&5
28031 echo $ECHO_N "checking whether sscanf needs writable input... $ECHO_C" >&6
28032 if test "${gmp_cv_func_sscanf_writable_input+set}" = set; then
28033   echo $ECHO_N "(cached) $ECHO_C" >&6
28034 else
28035   case $host in
28036   *-*-hpux9 | *-*-hpux9.*)
28037      gmp_cv_func_sscanf_writable_input=yes ;;
28038   *) gmp_cv_func_sscanf_writable_input=no  ;;
28039 esac
28040
28041 fi
28042 echo "$as_me:$LINENO: result: $gmp_cv_func_sscanf_writable_input" >&5
28043 echo "${ECHO_T}$gmp_cv_func_sscanf_writable_input" >&6
28044 case $gmp_cv_func_sscanf_writable_input in
28045   yes)
28046 cat >>confdefs.h <<\_ACEOF
28047 #define SSCANF_WRITABLE_INPUT 1
28048 _ACEOF
28049  ;;
28050   no)  ;;
28051   *)   { { echo "$as_me:$LINENO: error: unrecognised \$gmp_cv_func_sscanf_writable_input" >&5
28052 echo "$as_me: error: unrecognised \$gmp_cv_func_sscanf_writable_input" >&2;}
28053    { (exit 1); exit 1; }; } ;;
28054 esac
28055
28056
28057 # Reasons for checking:
28058 #   pst_processor psp_iticksperclktick - not in hpux 9
28059 #
28060 echo "$as_me:$LINENO: checking for struct pst_processor.psp_iticksperclktick" >&5
28061 echo $ECHO_N "checking for struct pst_processor.psp_iticksperclktick... $ECHO_C" >&6
28062 if test "${ac_cv_member_struct_pst_processor_psp_iticksperclktick+set}" = set; then
28063   echo $ECHO_N "(cached) $ECHO_C" >&6
28064 else
28065   cat >conftest.$ac_ext <<_ACEOF
28066 /* confdefs.h.  */
28067 _ACEOF
28068 cat confdefs.h >>conftest.$ac_ext
28069 cat >>conftest.$ac_ext <<_ACEOF
28070 /* end confdefs.h.  */
28071 #include <sys/pstat.h>
28072
28073 int
28074 main ()
28075 {
28076 static struct pst_processor ac_aggr;
28077 if (ac_aggr.psp_iticksperclktick)
28078 return 0;
28079   ;
28080   return 0;
28081 }
28082 _ACEOF
28083 rm -f conftest.$ac_objext
28084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28085   (eval $ac_compile) 2>conftest.er1
28086   ac_status=$?
28087   grep -v '^ *+' conftest.er1 >conftest.err
28088   rm -f conftest.er1
28089   cat conftest.err >&5
28090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091   (exit $ac_status); } &&
28092          { ac_try='test -z "$ac_c_werror_flag"
28093                          || test ! -s conftest.err'
28094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28095   (eval $ac_try) 2>&5
28096   ac_status=$?
28097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098   (exit $ac_status); }; } &&
28099          { ac_try='test -s conftest.$ac_objext'
28100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28101   (eval $ac_try) 2>&5
28102   ac_status=$?
28103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28104   (exit $ac_status); }; }; then
28105   ac_cv_member_struct_pst_processor_psp_iticksperclktick=yes
28106 else
28107   echo "$as_me: failed program was:" >&5
28108 sed 's/^/| /' conftest.$ac_ext >&5
28109
28110 cat >conftest.$ac_ext <<_ACEOF
28111 /* confdefs.h.  */
28112 _ACEOF
28113 cat confdefs.h >>conftest.$ac_ext
28114 cat >>conftest.$ac_ext <<_ACEOF
28115 /* end confdefs.h.  */
28116 #include <sys/pstat.h>
28117
28118 int
28119 main ()
28120 {
28121 static struct pst_processor ac_aggr;
28122 if (sizeof ac_aggr.psp_iticksperclktick)
28123 return 0;
28124   ;
28125   return 0;
28126 }
28127 _ACEOF
28128 rm -f conftest.$ac_objext
28129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28130   (eval $ac_compile) 2>conftest.er1
28131   ac_status=$?
28132   grep -v '^ *+' conftest.er1 >conftest.err
28133   rm -f conftest.er1
28134   cat conftest.err >&5
28135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136   (exit $ac_status); } &&
28137          { ac_try='test -z "$ac_c_werror_flag"
28138                          || test ! -s conftest.err'
28139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28140   (eval $ac_try) 2>&5
28141   ac_status=$?
28142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143   (exit $ac_status); }; } &&
28144          { ac_try='test -s conftest.$ac_objext'
28145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28146   (eval $ac_try) 2>&5
28147   ac_status=$?
28148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149   (exit $ac_status); }; }; then
28150   ac_cv_member_struct_pst_processor_psp_iticksperclktick=yes
28151 else
28152   echo "$as_me: failed program was:" >&5
28153 sed 's/^/| /' conftest.$ac_ext >&5
28154
28155 ac_cv_member_struct_pst_processor_psp_iticksperclktick=no
28156 fi
28157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28158 fi
28159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28160 fi
28161 echo "$as_me:$LINENO: result: $ac_cv_member_struct_pst_processor_psp_iticksperclktick" >&5
28162 echo "${ECHO_T}$ac_cv_member_struct_pst_processor_psp_iticksperclktick" >&6
28163 if test $ac_cv_member_struct_pst_processor_psp_iticksperclktick = yes; then
28164
28165 cat >>confdefs.h <<\_ACEOF
28166 #define HAVE_PSP_ITICKSPERCLKTICK 1
28167 _ACEOF
28168
28169 fi
28170
28171
28172 # C++ tests, when required
28173 #
28174 if test $enable_cxx = yes; then
28175   ac_ext=cc
28176 ac_cpp='$CXXCPP $CPPFLAGS'
28177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28180
28181
28182   # Reasons for testing:
28183   #   <sstream> - not in g++ 2.95.2
28184   #   std::locale - not in g++ 2.95.4
28185   #
28186
28187
28188 for ac_header in sstream
28189 do
28190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28192   echo "$as_me:$LINENO: checking for $ac_header" >&5
28193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28195   echo $ECHO_N "(cached) $ECHO_C" >&6
28196 fi
28197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28199 else
28200   # Is the header compilable?
28201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28203 cat >conftest.$ac_ext <<_ACEOF
28204 /* confdefs.h.  */
28205 _ACEOF
28206 cat confdefs.h >>conftest.$ac_ext
28207 cat >>conftest.$ac_ext <<_ACEOF
28208 /* end confdefs.h.  */
28209 $ac_includes_default
28210 #include <$ac_header>
28211 _ACEOF
28212 rm -f conftest.$ac_objext
28213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28214   (eval $ac_compile) 2>conftest.er1
28215   ac_status=$?
28216   grep -v '^ *+' conftest.er1 >conftest.err
28217   rm -f conftest.er1
28218   cat conftest.err >&5
28219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220   (exit $ac_status); } &&
28221          { ac_try='test -z "$ac_cxx_werror_flag"
28222                          || test ! -s conftest.err'
28223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28224   (eval $ac_try) 2>&5
28225   ac_status=$?
28226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227   (exit $ac_status); }; } &&
28228          { ac_try='test -s conftest.$ac_objext'
28229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28230   (eval $ac_try) 2>&5
28231   ac_status=$?
28232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233   (exit $ac_status); }; }; then
28234   ac_header_compiler=yes
28235 else
28236   echo "$as_me: failed program was:" >&5
28237 sed 's/^/| /' conftest.$ac_ext >&5
28238
28239 ac_header_compiler=no
28240 fi
28241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28243 echo "${ECHO_T}$ac_header_compiler" >&6
28244
28245 # Is the header present?
28246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28248 cat >conftest.$ac_ext <<_ACEOF
28249 /* confdefs.h.  */
28250 _ACEOF
28251 cat confdefs.h >>conftest.$ac_ext
28252 cat >>conftest.$ac_ext <<_ACEOF
28253 /* end confdefs.h.  */
28254 #include <$ac_header>
28255 _ACEOF
28256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28258   ac_status=$?
28259   grep -v '^ *+' conftest.er1 >conftest.err
28260   rm -f conftest.er1
28261   cat conftest.err >&5
28262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263   (exit $ac_status); } >/dev/null; then
28264   if test -s conftest.err; then
28265     ac_cpp_err=$ac_cxx_preproc_warn_flag
28266     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28267   else
28268     ac_cpp_err=
28269   fi
28270 else
28271   ac_cpp_err=yes
28272 fi
28273 if test -z "$ac_cpp_err"; then
28274   ac_header_preproc=yes
28275 else
28276   echo "$as_me: failed program was:" >&5
28277 sed 's/^/| /' conftest.$ac_ext >&5
28278
28279   ac_header_preproc=no
28280 fi
28281 rm -f conftest.err conftest.$ac_ext
28282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28283 echo "${ECHO_T}$ac_header_preproc" >&6
28284
28285 # So?  What about this header?
28286 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28287   yes:no: )
28288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28292     ac_header_preproc=yes
28293     ;;
28294   no:yes:* )
28295     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28297     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28298 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28299     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28301     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28302 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28305     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28307     (
28308       cat <<\_ASBOX
28309 ## -------------------------------- ##
28310 ## Report this to gmp-bugs@swox.com ##
28311 ## -------------------------------- ##
28312 _ASBOX
28313     ) |
28314       sed "s/^/$as_me: WARNING:     /" >&2
28315     ;;
28316 esac
28317 echo "$as_me:$LINENO: checking for $ac_header" >&5
28318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28320   echo $ECHO_N "(cached) $ECHO_C" >&6
28321 else
28322   eval "$as_ac_Header=\$ac_header_preproc"
28323 fi
28324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28326
28327 fi
28328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28329   cat >>confdefs.h <<_ACEOF
28330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28331 _ACEOF
28332
28333 fi
28334
28335 done
28336
28337   echo "$as_me:$LINENO: checking for std::locale" >&5
28338 echo $ECHO_N "checking for std::locale... $ECHO_C" >&6
28339 if test "${ac_cv_type_std__locale+set}" = set; then
28340   echo $ECHO_N "(cached) $ECHO_C" >&6
28341 else
28342   cat >conftest.$ac_ext <<_ACEOF
28343 /* confdefs.h.  */
28344 _ACEOF
28345 cat confdefs.h >>conftest.$ac_ext
28346 cat >>conftest.$ac_ext <<_ACEOF
28347 /* end confdefs.h.  */
28348 #include <locale>
28349
28350 int
28351 main ()
28352 {
28353 if ((std::locale *) 0)
28354   return 0;
28355 if (sizeof (std::locale))
28356   return 0;
28357   ;
28358   return 0;
28359 }
28360 _ACEOF
28361 rm -f conftest.$ac_objext
28362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28363   (eval $ac_compile) 2>conftest.er1
28364   ac_status=$?
28365   grep -v '^ *+' conftest.er1 >conftest.err
28366   rm -f conftest.er1
28367   cat conftest.err >&5
28368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369   (exit $ac_status); } &&
28370          { ac_try='test -z "$ac_cxx_werror_flag"
28371                          || test ! -s conftest.err'
28372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28373   (eval $ac_try) 2>&5
28374   ac_status=$?
28375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376   (exit $ac_status); }; } &&
28377          { ac_try='test -s conftest.$ac_objext'
28378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28379   (eval $ac_try) 2>&5
28380   ac_status=$?
28381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382   (exit $ac_status); }; }; then
28383   ac_cv_type_std__locale=yes
28384 else
28385   echo "$as_me: failed program was:" >&5
28386 sed 's/^/| /' conftest.$ac_ext >&5
28387
28388 ac_cv_type_std__locale=no
28389 fi
28390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28391 fi
28392 echo "$as_me:$LINENO: result: $ac_cv_type_std__locale" >&5
28393 echo "${ECHO_T}$ac_cv_type_std__locale" >&6
28394 if test $ac_cv_type_std__locale = yes; then
28395
28396 cat >>confdefs.h <<_ACEOF
28397 #define HAVE_STD__LOCALE 1
28398 _ACEOF
28399
28400
28401 fi
28402
28403
28404   ac_ext=c
28405 ac_cpp='$CPP $CPPFLAGS'
28406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28409
28410 fi
28411
28412
28413 # Pick the correct source files in $path and link them to mpn/.
28414 # $gmp_mpn_functions lists all functions we need.
28415 #
28416 # The rule is to find a file with the function name and a .asm, .S,
28417 # .s, or .c extension.  Certain multi-function files with special names
28418 # can provide some functions too.  (mpn/Makefile.am passes
28419 # -DOPERATION_<func> to get them to generate the right code.)
28420
28421 # Note: The following lines defining $gmp_mpn_functions_optional
28422 #       and $gmp_mpn_functions are parsed by the "macos/configure"
28423 #       Perl script. So if you change the lines in a major way
28424 #       make sure to run and examine the output from
28425 #
28426 #           % (cd macos; perl configure)
28427 #
28428 # Note: $gmp_mpn_functions must have mod_1 before pre_mod_1 so the former
28429 #       can optionally provide the latter as an extra entrypoint.  Likewise
28430 #       divrem_1 and pre_divrem_1.
28431
28432 gmp_mpn_functions_optional="umul udiv copyi copyd com_n
28433   and_n andn_n nand_n ior_n iorn_n nior_n xor_n xnor_n                  \
28434   gcd_finda invert_limb sqr_diagonal                                    \
28435   mul_2 mul_3 mul_4                                                     \
28436   addmul_2 addmul_3 addmul_4 addmul_5 addmul_6 addmul_7 addmul_8        \
28437   addlsh1_n sublsh1_n rsh1add_n rsh1sub_n addsub_n lshiftc"
28438
28439 gmp_mpn_functions="$extra_functions                                        \
28440   add add_1 add_n sub sub_1 sub_n mul_1 addmul_1                           \
28441   submul_1 lshift rshift dive_1 diveby3 divis divrem divrem_1 divrem_2     \
28442   fib2_ui mod_1 mod_34lsub1 mode1o pre_divrem_1 pre_mod_1 dump             \
28443   mul mul_fft mul_n mul_basecase sqr_basecase random random2 pow_1         \
28444   rootrem sqrtrem get_str set_str scan0 scan1 popcount hamdist cmp perfsqr \
28445   bdivmod gcd_1 gcd gcdext tdiv_qr dc_divrem_n sb_divrem_mn jacbase get_d  \
28446   mullow_n mullow_basecase                                 \
28447   $gmp_mpn_functions_optional"
28448
28449
28450
28451 # the list of all object files used by mpn/Makefile.in and the
28452 # top-level Makefile.in, respectively
28453 mpn_objects=
28454 mpn_objs_in_libgmp=
28455
28456 # links from the sources, to be removed by "make distclean"
28457 gmp_srclinks=
28458
28459
28460 # mpn_relative_top_srcdir is $top_srcdir, but for use from within the mpn
28461 # build directory.  If $srcdir is relative then we use a relative path too,
28462 # so the two trees can be moved together.
28463 case $srcdir in
28464   [\\/]* | ?:[\\/]*)  # absolute, as per autoconf
28465     mpn_relative_top_srcdir=$srcdir ;;
28466   *)                    # relative
28467     mpn_relative_top_srcdir=../$srcdir ;;
28468 esac
28469
28470
28471
28472
28473
28474
28475 # Fat binary setups.
28476 #
28477 # We proceed through each $fat_path directory, and look for $fat_function
28478 # routines there.  Those found are incorporated in the build by generating a
28479 # little mpn/<foo>.asm or mpn/<foo>.c file in the build directory, with
28480 # suitable function renaming, and adding that to $mpn_objects (the same as a
28481 # normal mpn file).
28482 #
28483 # fat.h is generated with macros to let internal calls to each $fat_function
28484 # go directly through __gmpn_cpuvec, plus macros and declarations helping to
28485 # setup that structure, on a per-directory basis ready for
28486 # mpn/<cpu>/fat/fat.c.
28487 #
28488 # fat.h includes thesholds listed in $fat_thresholds, extracted from
28489 # gmp-mparam.h in each directory.  An overall maximum for each threshold is
28490 # established, for use in making fixed size arrays of temporary space.
28491 # (Eg. MUL_TOOM3_THRESHOLD_LIMIT used by mpn/generic/mul.c.)
28492 #
28493 # It'd be possible to do some of this manually, but when there's more than a
28494 # few functions and a few directories it becomes very tedious, and very
28495 # prone to having some routine accidentally omitted.  On that basis it seems
28496 # best to automate as much as possible, even if the code to do so is a bit
28497 # ugly.
28498 #
28499
28500 if test -n "$fat_path"; then
28501   # Usually the mpn build directory is created with mpn/Makefile
28502   # instantiation, but we want to write to it sooner.
28503   mkdir mpn 2>/dev/null
28504
28505   echo "/* fat.h - setups for fat binaries." >fat.h
28506   echo "   Generated by configure - DO NOT EDIT.  */" >>fat.h
28507
28508
28509 cat >>confdefs.h <<\_ACEOF
28510 #define WANT_FAT_BINARY 1
28511 _ACEOF
28512
28513
28514 echo 'define(<WANT_FAT_BINARY>, <yes>)' >>$gmp_tmpconfigm4
28515
28516
28517   # Don't want normal copies of fat functions
28518   for tmp_fn in $fat_functions; do
28519     remove_from_list_tmp=
28520 for remove_from_list_i in $gmp_mpn_functions; do
28521   if test $remove_from_list_i = $tmp_fn; then :;
28522   else
28523      remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
28524   fi
28525 done
28526 gmp_mpn_functions=$remove_from_list_tmp
28527
28528     remove_from_list_tmp=
28529 for remove_from_list_i in $gmp_mpn_functions_optional; do
28530   if test $remove_from_list_i = $tmp_fn; then :;
28531   else
28532      remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
28533   fi
28534 done
28535 gmp_mpn_functions_optional=$remove_from_list_tmp
28536
28537   done
28538
28539   for tmp_fn in $fat_functions; do
28540     case $tmp_fn in
28541   dive_1)       tmp_fbase=divexact_1 ;;
28542   diveby3)      tmp_fbase=divexact_by3c ;;
28543   pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
28544   mode1o)       tmp_fbase=modexact_1c_odd ;;
28545   pre_mod_1)    tmp_fbase=preinv_mod_1 ;;
28546   *)            tmp_fbase=$tmp_fn ;;
28547 esac
28548
28549     echo "
28550 #ifndef OPERATION_$tmp_fn
28551 #undef  mpn_$tmp_fbase
28552 #define mpn_$tmp_fbase  (*__gmpn_cpuvec.$tmp_fbase)
28553 #endif
28554 DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h
28555     # encourage various macros to use fat functions
28556     cat >>confdefs.h <<_ACEOF
28557 #define HAVE_NATIVE_$tmp_fbase 1
28558 _ACEOF
28559
28560   done
28561
28562   echo "" >>fat.h
28563   echo "/* variable thresholds */" >>fat.h
28564   for tmp_tn in $fat_thresholds; do
28565     echo "#undef  $tmp_tn" >>fat.h
28566     echo "#define $tmp_tn  CPUVEC_THRESHOLD (`echo $tmp_tn | tr A-Z a-z`)" >>fat.h
28567   done
28568
28569   echo "
28570 /* Copy all fields into __gmpn_cpuvec.
28571    memcpy is not used because it might operate byte-wise (depending on its
28572    implemenation), and we need the function pointer writes to be atomic.
28573    "volatile" discourages the compiler from trying to optimize this.  */
28574 #define CPUVEC_INSTALL(vec) \\
28575   do { \\
28576     volatile struct cpuvec_t *p = &__gmpn_cpuvec; \\" >>fat.h
28577   for tmp_fn in $fat_functions; do
28578     case $tmp_fn in
28579   dive_1)       tmp_fbase=divexact_1 ;;
28580   diveby3)      tmp_fbase=divexact_by3c ;;
28581   pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
28582   mode1o)       tmp_fbase=modexact_1c_odd ;;
28583   pre_mod_1)    tmp_fbase=preinv_mod_1 ;;
28584   *)            tmp_fbase=$tmp_fn ;;
28585 esac
28586
28587     echo "    p->$tmp_fbase = vec.$tmp_fbase; \\" >>fat.h
28588   done
28589   for tmp_tn in $fat_thresholds; do
28590     tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
28591     echo "    p->$tmp_field_name = vec.$tmp_field_name; \\" >>fat.h
28592   done
28593   echo "  } while (0)" >>fat.h
28594
28595   echo "
28596 /* A helper to check all fields are filled. */
28597 #define ASSERT_CPUVEC(vec) \\
28598   do { \\" >>fat.h
28599   for tmp_fn in $fat_functions; do
28600     case $tmp_fn in
28601   dive_1)       tmp_fbase=divexact_1 ;;
28602   diveby3)      tmp_fbase=divexact_by3c ;;
28603   pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
28604   mode1o)       tmp_fbase=modexact_1c_odd ;;
28605   pre_mod_1)    tmp_fbase=preinv_mod_1 ;;
28606   *)            tmp_fbase=$tmp_fn ;;
28607 esac
28608
28609     echo "    ASSERT (vec.$tmp_fbase != NULL); \\" >>fat.h
28610   done
28611   for tmp_tn in $fat_thresholds; do
28612     tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
28613     echo "    ASSERT (vec.$tmp_field_name != 0); \\" >>fat.h
28614   done
28615   echo "  } while (0)" >>fat.h
28616
28617   echo "
28618 /* Call ITERATE(field) for each fat threshold field. */
28619 #define ITERATE_FAT_THRESHOLDS() \\
28620   do { \\" >>fat.h
28621   for tmp_tn in $fat_thresholds; do
28622     tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
28623     echo "    ITERATE ($tmp_tn, $tmp_field_name); \\" >>fat.h
28624   done
28625   echo "  } while (0)" >>fat.h
28626
28627   for tmp_dir in $fat_path; do
28628     CPUVEC_SETUP=
28629     THRESH_ASM_SETUP=
28630     echo "" >>fat.h
28631     tmp_suffix=`echo $tmp_dir | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
28632
28633     # In order to keep names unique on a DOS 8.3 filesystem, use a prefix
28634     # (rather than a suffix) for the generated file names, and abbreviate.
28635     case $tmp_suffix in
28636       pentium)       tmp_prefix=p   ;;
28637       pentium_mmx)   tmp_prefix=pm  ;;
28638       p6_mmx)        tmp_prefix=p2  ;;
28639       p6_p3mmx)      tmp_prefix=p3  ;;
28640       pentium4)      tmp_prefix=p4  ;;
28641       pentium4_mmx)  tmp_prefix=p4m ;;
28642       pentium4_sse2) tmp_prefix=p4s ;;
28643       k6_mmx)        tmp_prefix=k6m ;;
28644       k6_k62mmx)     tmp_prefix=k62 ;;
28645       k7_mmx)        tmp_prefix=k7m ;;
28646       *)             tmp_prefix=$tmp_suffix ;;
28647     esac
28648
28649     # Extract desired thresholds from gmp-mparam.h file in this directory,
28650     # if prsent.
28651     tmp_mparam=$srcdir/mpn/$tmp_dir/gmp-mparam.h
28652     if test -f $tmp_mparam; then
28653       for tmp_tn in $fat_thresholds; do
28654         tmp_thresh=`sed -n "s/^#define $tmp_tn[         ]*\\([0-9][0-9]*\\).*$/\\1/p" $tmp_mparam`
28655         if test -n "$tmp_thresh"; then
28656           THRESH_ASM_SETUP="${THRESH_ASM_SETUP}define($tmp_tn,$tmp_thresh)
28657 "
28658           CPUVEC_SETUP="$CPUVEC_SETUP    decided_cpuvec.`echo $tmp_tn | tr A-Z a-z` = $tmp_thresh; \\
28659 "
28660           eval tmp_limit=\$${tmp_tn}_LIMIT
28661           if test -z "$tmp_limit"; then
28662             tmp_limit=0
28663           fi
28664           if test $tmp_thresh -gt $tmp_limit; then
28665             eval ${tmp_tn}_LIMIT=$tmp_thresh
28666           fi
28667         fi
28668       done
28669     fi
28670
28671     for tmp_fn in $fat_functions; do
28672       # functions that can be provided by multi-function files
28673 tmp_mulfunc=
28674 case $tmp_fn in
28675   add_n|sub_n)       tmp_mulfunc="aors_n"    ;;
28676   addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
28677   popcount|hamdist)  tmp_mulfunc="popham"    ;;
28678   and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
28679                      tmp_mulfunc="logops_n"  ;;
28680   lshift|rshift)     tmp_mulfunc="lorrshift";;
28681   addlsh1_n|sublsh1_n)
28682                      tmp_mulfunc="aorslsh1_n";;
28683   rsh1add_n|rsh1sub_n)
28684                      tmp_mulfunc="rsh1aors_n";;
28685 esac
28686
28687
28688       for tmp_base in $tmp_fn $tmp_mulfunc; do
28689         for tmp_ext in asm S s c; do
28690           tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
28691           if test -f $tmp_file; then
28692
28693             mpn_objects="$mpn_objects ${tmp_prefix}_$tmp_fn.lo"
28694             mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/${tmp_prefix}_$tmp_fn.lo"
28695
28696             case $tmp_fn in
28697   dive_1)       tmp_fbase=divexact_1 ;;
28698   diveby3)      tmp_fbase=divexact_by3c ;;
28699   pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
28700   mode1o)       tmp_fbase=modexact_1c_odd ;;
28701   pre_mod_1)    tmp_fbase=preinv_mod_1 ;;
28702   *)            tmp_fbase=$tmp_fn ;;
28703 esac
28704
28705
28706             # carry-in variant, eg. divrem_1c or modexact_1c_odd
28707             case $tmp_fbase in
28708               *_1*) tmp_fbasec=`echo $tmp_fbase | sed 's/_1/_1c/'` ;;
28709               *)    tmp_fbasec=${tmp_fbase}c ;;
28710             esac
28711
28712             # Create a little file doing an include from srcdir.  The
28713             # OPERATION and renamings aren't all needed all the time, but
28714             # they don't hurt if unused.
28715             #
28716             # FIXME: Should generate these via config.status commands.
28717             # Would need them all in one AC_CONFIG_COMMANDS though, since
28718             # that macro doesn't accept a set of separate commands generated
28719             # by shell code.
28720             #
28721             case $tmp_ext in
28722               asm)
28723                 # hide the d-n-l from autoconf's error checking
28724                 tmp_d_n_l=d""nl
28725                 echo "$tmp_d_n_l  mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
28726 $tmp_d_n_l  Generated by configure - DO NOT EDIT.
28727
28728 define(OPERATION_$tmp_fn)
28729 define(__gmpn_$tmp_fbase, __gmpn_${tmp_fbase}_$tmp_suffix)
28730 define(__gmpn_$tmp_fbasec,__gmpn_${tmp_fbasec}_${tmp_suffix})
28731 define(__gmpn_preinv_${tmp_fbase},__gmpn_preinv_${tmp_fbase}_${tmp_suffix})
28732
28733 $tmp_d_n_l  For k6 and k7 gcd_1 calling their corresponding mpn_modexact_1_odd
28734 ifdef(\`__gmpn_modexact_1_odd',,
28735 \`define(__gmpn_modexact_1_odd,__gmpn_modexact_1_odd_${tmp_suffix})')
28736
28737 $THRESH_ASM_SETUP
28738 include($mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.asm)
28739 " >mpn/${tmp_prefix}_$tmp_fn.asm
28740                 ;;
28741               c)
28742                 echo "/* mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
28743    Generated by configure - DO NOT EDIT. */
28744
28745 #define OPERATION_$tmp_fn 1
28746 #define __gmpn_$tmp_fbase           __gmpn_${tmp_fbase}_$tmp_suffix
28747 #define __gmpn_$tmp_fbasec          __gmpn_${tmp_fbasec}_${tmp_suffix}
28748 #define __gmpn_preinv_${tmp_fbase}  __gmpn_preinv_${tmp_fbase}_${tmp_suffix}
28749
28750 #include \"$mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.c\"
28751 " >mpn/${tmp_prefix}_$tmp_fn.c
28752                 ;;
28753             esac
28754
28755             # Prototype, and append to CPUVEC_SETUP for this directory.
28756             echo "DECL_$tmp_fbase (__gmpn_${tmp_fbase}_$tmp_suffix);" >>fat.h
28757             CPUVEC_SETUP="$CPUVEC_SETUP    decided_cpuvec.$tmp_fbase = __gmpn_${tmp_fbase}_${tmp_suffix}; \\
28758 "
28759             # Ditto for any preinv variant (preinv_divrem_1, preinv_mod_1).
28760             if grep "^PROLOGUE(mpn_preinv_$tmp_fn)" $tmp_file >/dev/null; then
28761               echo "DECL_preinv_$tmp_fbase (__gmpn_preinv_${tmp_fbase}_$tmp_suffix);" >>fat.h
28762               CPUVEC_SETUP="$CPUVEC_SETUP    decided_cpuvec.preinv_$tmp_fbase = __gmpn_preinv_${tmp_fbase}_${tmp_suffix}; \\
28763 "
28764             fi
28765           fi
28766         done
28767       done
28768     done
28769
28770     # Emit CPUVEC_SETUP for this directory
28771     echo "" >>fat.h
28772     echo "#define CPUVEC_SETUP_$tmp_suffix \\" >>fat.h
28773     echo "  do { \\" >>fat.h
28774     echo "$CPUVEC_SETUP  } while (0)" >>fat.h
28775   done
28776
28777   # Emit threshold limits
28778   echo "" >>fat.h
28779   for tmp_tn in $fat_thresholds; do
28780     eval tmp_limit=\$${tmp_tn}_LIMIT
28781     echo "#define ${tmp_tn}_LIMIT  $tmp_limit" >>fat.h
28782   done
28783 fi
28784
28785
28786 # Normal binary setups.
28787 #
28788
28789 for tmp_ext in asm S s c; do
28790   eval found_$tmp_ext=no
28791 done
28792
28793 for tmp_fn in $gmp_mpn_functions; do
28794   for tmp_ext in asm S s c; do
28795     test "$no_create" = yes || rm -f mpn/$tmp_fn.$tmp_ext
28796   done
28797
28798   # mpn_preinv_divrem_1 might have been provided by divrem_1.asm, likewise
28799   # mpn_preinv_mod_1 by mod_1.asm.
28800   case $tmp_fn in
28801   pre_divrem_1)
28802     if test "$HAVE_NATIVE_mpn_preinv_divrem_1" = yes; then continue; fi ;;
28803   pre_mod_1)
28804     if test "$HAVE_NATIVE_mpn_preinv_mod_1" = yes; then continue; fi ;;
28805   esac
28806
28807   # functions that can be provided by multi-function files
28808 tmp_mulfunc=
28809 case $tmp_fn in
28810   add_n|sub_n)       tmp_mulfunc="aors_n"    ;;
28811   addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
28812   popcount|hamdist)  tmp_mulfunc="popham"    ;;
28813   and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
28814                      tmp_mulfunc="logops_n"  ;;
28815   lshift|rshift)     tmp_mulfunc="lorrshift";;
28816   addlsh1_n|sublsh1_n)
28817                      tmp_mulfunc="aorslsh1_n";;
28818   rsh1add_n|rsh1sub_n)
28819                      tmp_mulfunc="rsh1aors_n";;
28820 esac
28821
28822
28823   found=no
28824   for tmp_dir in $path; do
28825     for tmp_base in $tmp_fn $tmp_mulfunc; do
28826       for tmp_ext in asm S s c; do
28827         tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
28828         if test -f $tmp_file; then
28829
28830           # For a nails build, check if the file supports our nail bits.
28831           # Generic code always supports all nails.
28832           #
28833           # FIXME: When a multi-function file is selected to provide one of
28834           # the nails-neutral routines, like logops_n for and_n, the
28835           # PROLOGUE grepping will create HAVE_NATIVE_mpn_<foo> defines for
28836           # all functions in that file, even if they haven't all been
28837           # nailified.  Not sure what to do about this, it's only really a
28838           # problem for logops_n, and it's not too terrible to insist those
28839           # get nailified always.
28840           #
28841           if test $GMP_NAIL_BITS != 0 && test $tmp_dir != generic; then
28842             case $tmp_fn in
28843               and_n | ior_n | xor_n | andn_n | \
28844               copyi | copyd | \
28845               popcount | hamdist | \
28846               udiv | udiv_w_sdiv | umul | \
28847               cntlz | invert_limb)
28848                 # these operations are either unaffected by nails or defined
28849                 # to operate on full limbs
28850                 ;;
28851               *)
28852                 nails=`sed -n 's/^[     ]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file `
28853                 for n in $nails; do
28854                   case $n in
28855                   *-*)
28856                     n_start=`echo "$n" | sed -n 's/\(.*\)-.*/\1/p'`
28857                     n_end=`echo "$n" | sed -n 's/.*-\(.*\)/\1/p'`
28858                     ;;
28859                   *)
28860                     n_start=$n
28861                     n_end=$n
28862                     ;;
28863                   esac
28864                   if test $GMP_NAIL_BITS -ge $n_start && test $GMP_NAIL_BITS -le $n_end; then
28865                     found=yes
28866                     break
28867                   fi
28868                 done
28869                 if test $found != yes; then
28870                   continue
28871                 fi
28872                 ;;
28873             esac
28874           fi
28875
28876           found=yes
28877           eval found_$tmp_ext=yes
28878
28879           if test $tmp_ext = c; then
28880             tmp_u='$U'
28881           else
28882             tmp_u=
28883           fi
28884
28885           mpn_objects="$mpn_objects $tmp_fn$tmp_u.lo"
28886           mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/$tmp_fn$tmp_u.lo"
28887                     ac_config_links="$ac_config_links mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext"
28888
28889           gmp_srclinks="$gmp_srclinks mpn/$tmp_fn.$tmp_ext"
28890
28891           # Duplicate AC_DEFINEs are harmless, so it doesn't matter
28892           # that multi-function files get grepped here repeatedly.
28893           # The PROLOGUE pattern excludes the optional second parameter.
28894           gmp_ep=`
28895             sed -n 's/^[        ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
28896             sed -n 's/^[        ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file
28897           `
28898           for gmp_tmp in $gmp_ep; do
28899             cat >>confdefs.h <<_ACEOF
28900 #define HAVE_NATIVE_$gmp_tmp 1
28901 _ACEOF
28902
28903             eval HAVE_NATIVE_$gmp_tmp=yes
28904           done
28905
28906           case $tmp_fn in
28907           sqr_basecase) sqr_basecase_source=$tmp_file ;;
28908           esac
28909
28910           break
28911         fi
28912       done
28913       if test $found = yes; then break ; fi
28914     done
28915     if test $found = yes; then break ; fi
28916   done
28917
28918   if test $found = no; then
28919     for tmp_optional in $gmp_mpn_functions_optional; do
28920       if test $tmp_optional = $tmp_fn; then
28921         found=yes
28922       fi
28923     done
28924     if test $found = no; then
28925       { { echo "$as_me:$LINENO: error: no version of $tmp_fn found in path: $path" >&5
28926 echo "$as_me: error: no version of $tmp_fn found in path: $path" >&2;}
28927    { (exit 1); exit 1; }; }
28928     fi
28929   fi
28930 done
28931
28932 # All cycle counters are .asm files currently
28933 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
28934   found_asm=yes
28935 fi
28936
28937
28938
28939
28940
28941
28942 # Don't demand an m4 unless it's actually needed.
28943 if test $found_asm = yes; then
28944
28945 echo "$as_me:$LINENO: checking for suitable m4" >&5
28946 echo $ECHO_N "checking for suitable m4... $ECHO_C" >&6
28947 if test "${gmp_cv_prog_m4+set}" = set; then
28948   echo $ECHO_N "(cached) $ECHO_C" >&6
28949 else
28950   if test -n "$M4"; then
28951   gmp_cv_prog_m4="$M4"
28952 else
28953   cat >conftest.m4 <<\EOF
28954 define(dollarhash,``$#'')ifelse(dollarhash(x),1,`define(t1,Y)',
28955 ``bad: $# not supported (SunOS /usr/bin/m4)
28956 '')ifelse(eval(89),89,`define(t2,Y)',
28957 `bad: eval() doesnt support 8 or 9 in a constant (OpenBSD 2.6 m4)
28958 ')ifelse(t1`'t2,YY,`good
28959 ')
28960 EOF
28961   echo "trying m4" >&5
28962   gmp_tmp_val=`(m4 conftest.m4) 2>&5`
28963   echo "$gmp_tmp_val" >&5
28964   if test "$gmp_tmp_val" = good; then
28965     gmp_cv_prog_m4="m4"
28966   else
28967     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS=":"
28968     ac_dummy="$PATH:/usr/5bin"
28969     for ac_dir in $ac_dummy; do
28970       test -z "$ac_dir" && ac_dir=.
28971       echo "trying $ac_dir/m4" >&5
28972       gmp_tmp_val=`($ac_dir/m4 conftest.m4) 2>&5`
28973       echo "$gmp_tmp_val" >&5
28974       if test "$gmp_tmp_val" = good; then
28975         gmp_cv_prog_m4="$ac_dir/m4"
28976         break
28977       fi
28978     done
28979     IFS="$ac_save_ifs"
28980     if test -z "$gmp_cv_prog_m4"; then
28981       { { echo "$as_me:$LINENO: error: No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." >&5
28982 echo "$as_me: error: No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." >&2;}
28983    { (exit 1); exit 1; }; }
28984     fi
28985   fi
28986   rm -f conftest.m4
28987 fi
28988 fi
28989 echo "$as_me:$LINENO: result: $gmp_cv_prog_m4" >&5
28990 echo "${ECHO_T}$gmp_cv_prog_m4" >&6
28991 M4="$gmp_cv_prog_m4"
28992
28993
28994
28995 echo "$as_me:$LINENO: checking if m4wrap produces spurious output" >&5
28996 echo $ECHO_N "checking if m4wrap produces spurious output... $ECHO_C" >&6
28997 if test "${gmp_cv_m4_m4wrap_spurious+set}" = set; then
28998   echo $ECHO_N "(cached) $ECHO_C" >&6
28999 else
29000   # hide the d-n-l from autoconf's error checking
29001 tmp_d_n_l=d""nl
29002 cat >conftest.m4 <<EOF
29003 changequote({,})define(x,)m4wrap({x})$tmp_d_n_l
29004 EOF
29005 echo test input is >&5
29006 cat conftest.m4 >&5
29007 tmp_chars=`$M4 conftest.m4 | wc -c`
29008 echo produces $tmp_chars chars output >&5
29009 rm -f conftest.m4
29010 if test $tmp_chars = 0; then
29011   gmp_cv_m4_m4wrap_spurious=no
29012 else
29013   gmp_cv_m4_m4wrap_spurious=yes
29014 fi
29015
29016 fi
29017 echo "$as_me:$LINENO: result: $gmp_cv_m4_m4wrap_spurious" >&5
29018 echo "${ECHO_T}$gmp_cv_m4_m4wrap_spurious" >&6
29019
29020 echo "define(<M4WRAP_SPURIOUS>,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4
29021
29022
29023 else
29024   M4=m4-not-needed
29025 fi
29026
29027 # Only do the GMP_ASM checks if there's a .S or .asm wanting them.
29028 if test $found_asm = no && test $found_S = no; then
29029   gmp_asm_syntax_testing=no
29030 fi
29031
29032 if test "$gmp_asm_syntax_testing" != no; then
29033   echo "$as_me:$LINENO: checking how to switch to text section" >&5
29034 echo $ECHO_N "checking how to switch to text section... $ECHO_C" >&6
29035 if test "${gmp_cv_asm_text+set}" = set; then
29036   echo $ECHO_N "(cached) $ECHO_C" >&6
29037 else
29038   for i in ".text" ".code" ".csect .text[PR]"; do
29039   echo "trying $i" >&5
29040   cat >conftest.s <<EOF
29041         $i
29042 EOF
29043 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29044 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29045   (eval $gmp_assemble) 2>&5
29046   ac_status=$?
29047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048   (exit $ac_status); }; then
29049   cat conftest.out >&5
29050   gmp_cv_asm_text=$i
29051      rm -f conftest*
29052      break
29053 else
29054   cat conftest.out >&5
29055   echo "configure: failed program was:" >&5
29056   cat conftest.s >&5
29057   :
29058 fi
29059 rm -f conftest*
29060
29061 done
29062 if test -z "$gmp_cv_asm_text"; then
29063   { { echo "$as_me:$LINENO: error: Cannot determine text section directive" >&5
29064 echo "$as_me: error: Cannot determine text section directive" >&2;}
29065    { (exit 1); exit 1; }; }
29066 fi
29067
29068 fi
29069 echo "$as_me:$LINENO: result: $gmp_cv_asm_text" >&5
29070 echo "${ECHO_T}$gmp_cv_asm_text" >&6
29071 echo "define(<TEXT>, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4
29072
29073   echo "$as_me:$LINENO: checking how to switch to data section" >&5
29074 echo $ECHO_N "checking how to switch to data section... $ECHO_C" >&6
29075 if test "${gmp_cv_asm_data+set}" = set; then
29076   echo $ECHO_N "(cached) $ECHO_C" >&6
29077 else
29078   case $host in
29079   *-*-aix*) gmp_cv_asm_data=".csect .data[RW]" ;;
29080   *)        gmp_cv_asm_data=".data" ;;
29081 esac
29082
29083 fi
29084 echo "$as_me:$LINENO: result: $gmp_cv_asm_data" >&5
29085 echo "${ECHO_T}$gmp_cv_asm_data" >&6
29086 echo "define(<DATA>, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4
29087
29088
29089 echo "$as_me:$LINENO: checking for assembler label suffix" >&5
29090 echo $ECHO_N "checking for assembler label suffix... $ECHO_C" >&6
29091 if test "${gmp_cv_asm_label_suffix+set}" = set; then
29092   echo $ECHO_N "(cached) $ECHO_C" >&6
29093 else
29094   gmp_cv_asm_label_suffix=unknown
29095 for i in "" ":"; do
29096   echo "trying $i" >&5
29097   cat >conftest.s <<EOF
29098         $gmp_cv_asm_text
29099 somelabel$i
29100 EOF
29101 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29102 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29103   (eval $gmp_assemble) 2>&5
29104   ac_status=$?
29105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106   (exit $ac_status); }; then
29107   cat conftest.out >&5
29108   gmp_cv_asm_label_suffix=$i
29109      rm -f conftest*
29110      break
29111 else
29112   cat conftest.out >&5
29113   echo "configure: failed program was:" >&5
29114   cat conftest.s >&5
29115   cat conftest.out >&5
29116 fi
29117 rm -f conftest*
29118
29119 done
29120 if test "$gmp_cv_asm_label_suffix" = "unknown"; then
29121   { { echo "$as_me:$LINENO: error: Cannot determine label suffix" >&5
29122 echo "$as_me: error: Cannot determine label suffix" >&2;}
29123    { (exit 1); exit 1; }; }
29124 fi
29125
29126 fi
29127 echo "$as_me:$LINENO: result: $gmp_cv_asm_label_suffix" >&5
29128 echo "${ECHO_T}$gmp_cv_asm_label_suffix" >&6
29129 echo "define(<LABEL_SUFFIX>, <$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4
29130
29131
29132 echo "$as_me:$LINENO: checking for assembler global directive" >&5
29133 echo $ECHO_N "checking for assembler global directive... $ECHO_C" >&6
29134 if test "${gmp_cv_asm_globl+set}" = set; then
29135   echo $ECHO_N "(cached) $ECHO_C" >&6
29136 else
29137   case $host in
29138   hppa*-*-*)     gmp_cv_asm_globl=.export ;;
29139   ia64*-*-* | itanium-*-* | itanium2-*-*)  gmp_cv_asm_globl=.global ;;
29140   *)             gmp_cv_asm_globl=.globl  ;;
29141 esac
29142
29143 fi
29144 echo "$as_me:$LINENO: result: $gmp_cv_asm_globl" >&5
29145 echo "${ECHO_T}$gmp_cv_asm_globl" >&6
29146 echo "define(<GLOBL>, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4
29147
29148
29149 echo "$as_me:$LINENO: checking for assembler global directive attribute" >&5
29150 echo $ECHO_N "checking for assembler global directive attribute... $ECHO_C" >&6
29151 if test "${gmp_cv_asm_globl_attr+set}" = set; then
29152   echo $ECHO_N "(cached) $ECHO_C" >&6
29153 else
29154   case $gmp_cv_asm_globl in
29155   .export) gmp_cv_asm_globl_attr=",entry" ;;
29156   *)       gmp_cv_asm_globl_attr="" ;;
29157 esac
29158
29159 fi
29160 echo "$as_me:$LINENO: result: $gmp_cv_asm_globl_attr" >&5
29161 echo "${ECHO_T}$gmp_cv_asm_globl_attr" >&6
29162 echo "define(<GLOBL_ATTR>, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4
29163
29164
29165 echo "$as_me:$LINENO: checking if globals are prefixed by underscore" >&5
29166 echo $ECHO_N "checking if globals are prefixed by underscore... $ECHO_C" >&6
29167 if test "${gmp_cv_asm_underscore+set}" = set; then
29168   echo $ECHO_N "(cached) $ECHO_C" >&6
29169 else
29170   gmp_cv_asm_underscore="unknown"
29171 cat >conftest.c <<EOF
29172 int gurkmacka;
29173 EOF
29174 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5"
29175 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
29176   (eval $gmp_compile) 2>&5
29177   ac_status=$?
29178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179   (exit $ac_status); }; then
29180   $NM conftest.$OBJEXT >conftest.out
29181   if grep _gurkmacka conftest.out >/dev/null; then
29182     gmp_cv_asm_underscore=yes
29183   elif grep gurkmacka conftest.out >/dev/null; then
29184     gmp_cv_asm_underscore=no
29185   else
29186     echo "configure: $NM doesn't have gurkmacka:" >&5
29187     cat conftest.out >&5
29188   fi
29189 else
29190   echo "configure: failed program was:" >&5
29191   cat conftest.c >&5
29192 fi
29193 rm -f conftest*
29194
29195 fi
29196 echo "$as_me:$LINENO: result: $gmp_cv_asm_underscore" >&5
29197 echo "${ECHO_T}$gmp_cv_asm_underscore" >&6
29198 case $gmp_cv_asm_underscore in
29199   yes)
29200
29201 echo 'define(<GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
29202  ;;
29203   no)
29204
29205 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
29206  ;;
29207   *)
29208     { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
29209 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
29210     { echo "$as_me:$LINENO: WARNING: | Cannot determine global symbol prefix." >&5
29211 echo "$as_me: WARNING: | Cannot determine global symbol prefix." >&2;}
29212     { echo "$as_me:$LINENO: WARNING: | $NM output doesn't contain a global data symbol." >&5
29213 echo "$as_me: WARNING: | $NM output doesn't contain a global data symbol." >&2;}
29214     { echo "$as_me:$LINENO: WARNING: | Will proceed with no underscore." >&5
29215 echo "$as_me: WARNING: | Will proceed with no underscore." >&2;}
29216     { echo "$as_me:$LINENO: WARNING: | If this is wrong then you'll get link errors referring" >&5
29217 echo "$as_me: WARNING: | If this is wrong then you'll get link errors referring" >&2;}
29218     { echo "$as_me:$LINENO: WARNING: | to ___gmpn_add_n (note three underscores)." >&5
29219 echo "$as_me: WARNING: | to ___gmpn_add_n (note three underscores)." >&2;}
29220     { echo "$as_me:$LINENO: WARNING: | In this case do a fresh build with an override," >&5
29221 echo "$as_me: WARNING: | In this case do a fresh build with an override," >&2;}
29222     { echo "$as_me:$LINENO: WARNING: |     ./configure gmp_cv_asm_underscore=yes" >&5
29223 echo "$as_me: WARNING: |     ./configure gmp_cv_asm_underscore=yes" >&2;}
29224     { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
29225 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
29226
29227 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
29228
29229     ;;
29230 esac
29231
29232
29233
29234
29235
29236 echo "$as_me:$LINENO: checking how to switch to read-only data section" >&5
29237 echo $ECHO_N "checking how to switch to read-only data section... $ECHO_C" >&6
29238 if test "${gmp_cv_asm_rodata+set}" = set; then
29239   echo $ECHO_N "(cached) $ECHO_C" >&6
29240 else
29241
29242 case $host in
29243 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | x86_64-*-*)
29244   gmp_cv_asm_rodata="$gmp_cv_asm_data" ;;
29245 *)
29246   gmp_cv_asm_rodata="$gmp_cv_asm_text" ;;
29247 esac
29248
29249 cat >conftest.c <<EOF
29250 const int foo = 123;
29251 EOF
29252 echo "Test program:" >&5
29253 cat conftest.c >&5
29254 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
29255 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
29256   (eval $gmp_compile) 2>&5
29257   ac_status=$?
29258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259   (exit $ac_status); }; then
29260   echo "Compiler output:" >&5
29261   cat conftest.s >&5
29262   if test $gmp_cv_asm_underscore = yes; then
29263     tmp_gsym_prefix=_
29264   else
29265     tmp_gsym_prefix=
29266   fi
29267   # must see our label
29268   if grep "^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" conftest.s >/dev/null 2>&5; then
29269     # take the last directive before our label (hence skipping segments
29270     # getting debugging info etc)
29271     tmp_match=`sed -n "/^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix/q
29272                         /^[.    ]*data/p
29273                         /^[.    ]*rdata/p
29274                         /^[.    ]*text/p
29275                         /^[.    ]*section/p
29276                         /^[.    ]*csect/p
29277                         /^[.    ]*CSECT/p" conftest.s | sed -n '$p'`
29278     echo "Match: $tmp_match" >&5
29279     if test -n "$tmp_match"; then
29280       gmp_cv_asm_rodata=$tmp_match
29281     fi
29282   else
29283     echo "Couldn't find label: ^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" >&5
29284   fi
29285 fi
29286 rm -f conftest*
29287
29288 fi
29289 echo "$as_me:$LINENO: result: $gmp_cv_asm_rodata" >&5
29290 echo "${ECHO_T}$gmp_cv_asm_rodata" >&6
29291 echo "define(<RODATA>, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4
29292
29293   echo "$as_me:$LINENO: checking for assembler .type directive" >&5
29294 echo $ECHO_N "checking for assembler .type directive... $ECHO_C" >&6
29295 if test "${gmp_cv_asm_type+set}" = set; then
29296   echo $ECHO_N "(cached) $ECHO_C" >&6
29297 else
29298   gmp_cv_asm_type=
29299 for gmp_tmp_prefix in @ \# %; do
29300   cat >conftest.s <<EOF
29301         .type   sym,${gmp_tmp_prefix}function
29302 EOF
29303 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29304 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29305   (eval $gmp_assemble) 2>&5
29306   ac_status=$?
29307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308   (exit $ac_status); }; then
29309   cat conftest.out >&5
29310   if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
29311     else
29312       gmp_cv_asm_type=".type    \$1,${gmp_tmp_prefix}\$2"
29313       break
29314     fi
29315 else
29316   cat conftest.out >&5
29317   echo "configure: failed program was:" >&5
29318   cat conftest.s >&5
29319   :
29320 fi
29321 rm -f conftest*
29322
29323 done
29324 rm -f conftest*
29325
29326 fi
29327 echo "$as_me:$LINENO: result: $gmp_cv_asm_type" >&5
29328 echo "${ECHO_T}$gmp_cv_asm_type" >&6
29329 echo "define(<TYPE>, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4
29330
29331   echo "$as_me:$LINENO: checking for assembler .size directive" >&5
29332 echo $ECHO_N "checking for assembler .size directive... $ECHO_C" >&6
29333 if test "${gmp_cv_asm_size+set}" = set; then
29334   echo $ECHO_N "(cached) $ECHO_C" >&6
29335 else
29336   gmp_cv_asm_size=
29337 cat >conftest.s <<EOF
29338         .size   sym,1
29339 EOF
29340 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29341 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29342   (eval $gmp_assemble) 2>&5
29343   ac_status=$?
29344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345   (exit $ac_status); }; then
29346   cat conftest.out >&5
29347   if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
29348   else
29349     gmp_cv_asm_size=".size      \$1,\$2"
29350   fi
29351 else
29352   cat conftest.out >&5
29353   echo "configure: failed program was:" >&5
29354   cat conftest.s >&5
29355   :
29356 fi
29357 rm -f conftest*
29358
29359
29360 fi
29361 echo "$as_me:$LINENO: result: $gmp_cv_asm_size" >&5
29362 echo "${ECHO_T}$gmp_cv_asm_size" >&6
29363 echo "define(<SIZE>, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4
29364
29365
29366
29367
29368 echo "$as_me:$LINENO: checking for assembler local label prefix" >&5
29369 echo $ECHO_N "checking for assembler local label prefix... $ECHO_C" >&6
29370 if test "${gmp_cv_asm_lsym_prefix+set}" = set; then
29371   echo $ECHO_N "(cached) $ECHO_C" >&6
29372 else
29373   gmp_tmp_pre_appears=yes
29374 for gmp_tmp_pre in L .L $ L$; do
29375   echo "Trying $gmp_tmp_pre" >&5
29376   cat >conftest.s <<EOF
29377         $gmp_cv_asm_text
29378 dummy${gmp_cv_asm_label_suffix}
29379 ${gmp_tmp_pre}gurkmacka${gmp_cv_asm_label_suffix}
29380 EOF
29381 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29382 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29383   (eval $gmp_assemble) 2>&5
29384   ac_status=$?
29385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386   (exit $ac_status); }; then
29387   cat conftest.out >&5
29388   if $NM conftest.$OBJEXT >conftest.nm 2>&5; then : ; else
29389     cat conftest.nm >&5
29390     { echo "$as_me:$LINENO: WARNING: \"$NM\" failure" >&5
29391 echo "$as_me: WARNING: \"$NM\" failure" >&2;}
29392     break
29393   fi
29394   cat conftest.nm >&5
29395   if grep gurkmacka conftest.nm >/dev/null; then : ; else
29396     # no mention of the symbol, this is good
29397     echo "$gmp_tmp_pre label doesn't appear in object file at all (good)" >&5
29398     gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
29399     gmp_tmp_pre_appears=no
29400     break
29401   fi
29402   if grep ' [a-zN] .*gurkmacka' conftest.nm >/dev/null; then
29403     # symbol mentioned as a local, use this if nothing better
29404     echo "$gmp_tmp_pre label is local but still in object file" >&5
29405     if test -z "$gmp_cv_asm_lsym_prefix"; then
29406       gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
29407     fi
29408   else
29409     echo "$gmp_tmp_pre label is something unknown" >&5
29410   fi
29411
29412 else
29413   cat conftest.out >&5
29414   echo "configure: failed program was:" >&5
29415   cat conftest.s >&5
29416   :
29417 fi
29418 rm -f conftest*
29419
29420 done
29421 rm -f conftest*
29422 if test -z "$gmp_cv_asm_lsym_prefix"; then
29423   gmp_cv_asm_lsym_prefix=L
29424   { echo "$as_me:$LINENO: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5
29425 echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;}
29426 fi
29427 # for development purposes, note whether we got a purely temporary local label
29428 echo "Local label appears in object files: $gmp_tmp_pre_appears" >&5
29429
29430 fi
29431 echo "$as_me:$LINENO: result: $gmp_cv_asm_lsym_prefix" >&5
29432 echo "${ECHO_T}$gmp_cv_asm_lsym_prefix" >&6
29433 echo "define(<LSYM_PREFIX>, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4
29434
29435 cat >>confdefs.h <<_ACEOF
29436 #define LSYM_PREFIX "$gmp_cv_asm_lsym_prefix"
29437 _ACEOF
29438
29439
29440
29441
29442 echo "$as_me:$LINENO: checking for assembler byte directive" >&5
29443 echo $ECHO_N "checking for assembler byte directive... $ECHO_C" >&6
29444 if test "${gmp_cv_asm_byte+set}" = set; then
29445   echo $ECHO_N "(cached) $ECHO_C" >&6
29446 else
29447   for i in .byte data1; do
29448   echo "trying $i" >&5
29449   cat >conftest.s <<EOF
29450         $gmp_cv_asm_data
29451         $i      0
29452
29453 EOF
29454 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29455 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29456   (eval $gmp_assemble) 2>&5
29457   ac_status=$?
29458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459   (exit $ac_status); }; then
29460   cat conftest.out >&5
29461   gmp_cv_asm_byte=$i
29462      rm -f conftest*
29463      break
29464 else
29465   cat conftest.out >&5
29466   echo "configure: failed program was:" >&5
29467   cat conftest.s >&5
29468   cat conftest.out >&5
29469 fi
29470 rm -f conftest*
29471
29472 done
29473 if test -z "$gmp_cv_asm_byte"; then
29474   { { echo "$as_me:$LINENO: error: Cannot determine how to emit a data byte" >&5
29475 echo "$as_me: error: Cannot determine how to emit a data byte" >&2;}
29476    { (exit 1); exit 1; }; }
29477 fi
29478
29479 fi
29480 echo "$as_me:$LINENO: result: $gmp_cv_asm_byte" >&5
29481 echo "${ECHO_T}$gmp_cv_asm_byte" >&6
29482
29483
29484
29485
29486
29487
29488 echo "$as_me:$LINENO: checking how to define a 32-bit word" >&5
29489 echo $ECHO_N "checking how to define a 32-bit word... $ECHO_C" >&6
29490 if test "${gmp_cv_asm_w32+set}" = set; then
29491   echo $ECHO_N "(cached) $ECHO_C" >&6
29492 else
29493   case $host in
29494   *-*-hpux*)
29495     # FIXME: HPUX puts first symbol at 0x40000000, breaking our assumption
29496     # that it's at 0x0.  We'll have to declare another symbol before the
29497     # .long/.word and look at the distance between the two symbols.  The
29498     # only problem is that the sed expression(s) barfs (on Solaris, for
29499     # example) for the symbol with value 0.  For now, HPUX uses .word.
29500     gmp_cv_asm_w32=".word"
29501     ;;
29502   *-*-*)
29503     gmp_tmp_val=
29504     for gmp_tmp_op in .long .word data4; do
29505       cat >conftest.s <<EOF
29506         $gmp_cv_asm_data
29507         $gmp_cv_asm_globl       foo
29508         $gmp_tmp_op     0
29509 foo$gmp_cv_asm_label_suffix
29510         $gmp_cv_asm_byte        0
29511 EOF
29512 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29513 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29514   (eval $gmp_assemble) 2>&5
29515   ac_status=$?
29516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517   (exit $ac_status); }; then
29518   cat conftest.out >&5
29519   gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
29520           sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
29521         if test "$gmp_tmp_val" = 4; then
29522           gmp_cv_asm_w32="$gmp_tmp_op"
29523           break
29524         fi
29525 else
29526   cat conftest.out >&5
29527   echo "configure: failed program was:" >&5
29528   cat conftest.s >&5
29529   :
29530 fi
29531 rm -f conftest*
29532
29533     done
29534     rm -f conftest*
29535     ;;
29536 esac
29537 if test -z "$gmp_cv_asm_w32"; then
29538   { { echo "$as_me:$LINENO: error: cannot determine how to define a 32-bit word" >&5
29539 echo "$as_me: error: cannot determine how to define a 32-bit word" >&2;}
29540    { (exit 1); exit 1; }; }
29541 fi
29542
29543 fi
29544 echo "$as_me:$LINENO: result: $gmp_cv_asm_w32" >&5
29545 echo "${ECHO_T}$gmp_cv_asm_w32" >&6
29546 echo "define(<W32>, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4
29547
29548
29549
29550
29551
29552
29553 echo "$as_me:$LINENO: checking if .align assembly directive is logarithmic" >&5
29554 echo $ECHO_N "checking if .align assembly directive is logarithmic... $ECHO_C" >&6
29555 if test "${gmp_cv_asm_align_log+set}" = set; then
29556   echo $ECHO_N "(cached) $ECHO_C" >&6
29557 else
29558   cat >conftest.s <<EOF
29559         $gmp_cv_asm_data
29560         .align  4
29561         $gmp_cv_asm_globl       foo
29562         $gmp_cv_asm_byte        1
29563         .align  4
29564 foo$gmp_cv_asm_label_suffix
29565         $gmp_cv_asm_byte        2
29566 EOF
29567 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29568 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29569   (eval $gmp_assemble) 2>&5
29570   ac_status=$?
29571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29572   (exit $ac_status); }; then
29573   cat conftest.out >&5
29574   gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
29575      sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
29576   if test "$gmp_tmp_val" = "10" || test "$gmp_tmp_val" = "16"; then
29577     gmp_cv_asm_align_log=yes
29578   else
29579     gmp_cv_asm_align_log=no
29580   fi
29581 else
29582   cat conftest.out >&5
29583   echo "configure: failed program was:" >&5
29584   cat conftest.s >&5
29585   { { echo "$as_me:$LINENO: error: cannot assemble alignment test" >&5
29586 echo "$as_me: error: cannot assemble alignment test" >&2;}
29587    { (exit 1); exit 1; }; }
29588 fi
29589 rm -f conftest*
29590
29591 fi
29592 echo "$as_me:$LINENO: result: $gmp_cv_asm_align_log" >&5
29593 echo "${ECHO_T}$gmp_cv_asm_align_log" >&6
29594
29595
29596 echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4
29597
29598
29599
29600   case $host in
29601     hppa*-*-*)
29602       # for both pa32 and pa64
29603
29604 echo "include_mpn(\`pa32/pa-defs.m4')" >> $gmp_tmpconfigm4i
29605
29606       ;;
29607     ia64*-*-* | itanium-*-* | itanium2-*-*)
29608       echo "$as_me:$LINENO: checking whether assembler .align padding is good" >&5
29609 echo $ECHO_N "checking whether assembler .align padding is good... $ECHO_C" >&6
29610 if test "${gmp_cv_asm_ia64_align_ok+set}" = set; then
29611   echo $ECHO_N "(cached) $ECHO_C" >&6
29612 else
29613   cat >conftest.awk <<\EOF
29614 BEGIN {
29615   want[0]  = "011"
29616   want[1]  = "160"
29617   want[2]  = "074"
29618   want[3]  = "040"
29619   want[4]  = "000"
29620   want[5]  = "040"
29621   want[6]  = "020"
29622   want[7]  = "221"
29623   want[8]  = "114"
29624   want[9]  = "000"
29625   want[10] = "100"
29626   want[11] = "200"
29627   want[12] = "122"
29628   want[13] = "261"
29629   want[14] = "000"
29630   want[15] = "200"
29631
29632   want[16] = "000"
29633   want[17] = "004"
29634   want[18] = "000"
29635   want[19] = "000"
29636   want[20] = "000"
29637   want[21] = "000"
29638   want[22] = "002"
29639   want[23] = "000"
29640   want[24] = "000"
29641   want[25] = "000"
29642   want[26] = "000"
29643   want[27] = "001"
29644   want[28] = "000"
29645   want[29] = "000"
29646   want[30] = "000"
29647   want[31] = "014"
29648
29649   want[32] = "011"
29650   want[33] = "270"
29651   want[34] = "140"
29652   want[35] = "062"
29653   want[36] = "000"
29654   want[37] = "040"
29655   want[38] = "240"
29656   want[39] = "331"
29657   want[40] = "160"
29658   want[41] = "000"
29659   want[42] = "100"
29660   want[43] = "240"
29661   want[44] = "343"
29662   want[45] = "371"
29663   want[46] = "000"
29664   want[47] = "200"
29665
29666   result = "yes"
29667 }
29668 {
29669   for (f = 2; f <= NF; f++)
29670     {
29671       for (i = 0; i < 47; i++)
29672         got[i] = got[i+1];
29673       got[47] = $f;
29674
29675       found = 1
29676       for (i = 0; i < 48; i++)
29677         if (got[i] != want[i])
29678           {
29679             found = 0
29680             break
29681           }
29682       if (found)
29683         {
29684           result = "no"
29685           exit
29686         }
29687     }
29688 }
29689 END {
29690   print result
29691 }
29692 EOF
29693 cat >conftest.s <<EOF
29694         .text
29695         .align  32
29696 { .mmi; add     r14 = r15, r16
29697         add     r17 = r18, r19
29698         add     r20 = r21, r22 ;; }
29699         .align  32
29700 { .mmi; add     r23 = r24, r25
29701         add     r26 = r27, r28
29702         add     r29 = r30, r31 ;; }
29703
29704 EOF
29705 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29706 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29707   (eval $gmp_assemble) 2>&5
29708   ac_status=$?
29709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710   (exit $ac_status); }; then
29711   cat conftest.out >&5
29712   gmp_cv_asm_ia64_align_ok=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
29713 else
29714   cat conftest.out >&5
29715   echo "configure: failed program was:" >&5
29716   cat conftest.s >&5
29717   { echo "$as_me:$LINENO: WARNING: oops, cannot compile test program" >&5
29718 echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
29719    gmp_cv_asm_ia64_align_ok=yes
29720 fi
29721 rm -f conftest*
29722
29723
29724 fi
29725 echo "$as_me:$LINENO: result: $gmp_cv_asm_ia64_align_ok" >&5
29726 echo "${ECHO_T}$gmp_cv_asm_ia64_align_ok" >&6
29727
29728 echo "define(<IA64_ALIGN_OK>, <\`$gmp_cv_asm_ia64_align_ok'>)" >> $gmp_tmpconfigm4
29729
29730
29731       ;;
29732     m68k-*-* | m68[0-9][0-9][0-9]-*-*)
29733
29734 echo "$as_me:$LINENO: checking assembler instruction and register style" >&5
29735 echo $ECHO_N "checking assembler instruction and register style... $ECHO_C" >&6
29736 if test "${gmp_cv_asm_m68k_instruction+set}" = set; then
29737   echo $ECHO_N "(cached) $ECHO_C" >&6
29738 else
29739   for i in "addl %d0,%d1" "add.l %d0,%d1" "addl d0,d1" "add.l d0,d1"; do
29740   cat >conftest.s <<EOF
29741         $gmp_cv_asm_text
29742         $i
29743 EOF
29744 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29745 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29746   (eval $gmp_assemble) 2>&5
29747   ac_status=$?
29748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749   (exit $ac_status); }; then
29750   cat conftest.out >&5
29751   gmp_cv_asm_m68k_instruction=$i
29752     rm -f conftest*
29753     break
29754 else
29755   cat conftest.out >&5
29756   echo "configure: failed program was:" >&5
29757   cat conftest.s >&5
29758   :
29759 fi
29760 rm -f conftest*
29761
29762 done
29763 if test -z "$gmp_cv_asm_m68k_instruction"; then
29764   { { echo "$as_me:$LINENO: error: cannot determine assembler instruction and register style" >&5
29765 echo "$as_me: error: cannot determine assembler instruction and register style" >&2;}
29766    { (exit 1); exit 1; }; }
29767 fi
29768
29769 fi
29770 echo "$as_me:$LINENO: result: $gmp_cv_asm_m68k_instruction" >&5
29771 echo "${ECHO_T}$gmp_cv_asm_m68k_instruction" >&6
29772 case $gmp_cv_asm_m68k_instruction in
29773 "addl d0,d1")    want_dot_size=no;  want_register_percent=no  ;;
29774 "addl %d0,%d1")  want_dot_size=no;  want_register_percent=yes ;;
29775 "add.l d0,d1")   want_dot_size=yes; want_register_percent=no  ;;
29776 "add.l %d0,%d1") want_dot_size=yes; want_register_percent=yes ;;
29777 *) { { echo "$as_me:$LINENO: error: oops, unrecognised instruction and register style" >&5
29778 echo "$as_me: error: oops, unrecognised instruction and register style" >&2;}
29779    { (exit 1); exit 1; }; } ;;
29780 esac
29781
29782 echo "define(<WANT_REGISTER_PERCENT>, <\`$want_register_percent'>)" >> $gmp_tmpconfigm4
29783
29784
29785 echo "define(<WANT_DOT_SIZE>, <\`$want_dot_size'>)" >> $gmp_tmpconfigm4
29786
29787
29788
29789
29790 echo "$as_me:$LINENO: checking assembler addressing style" >&5
29791 echo $ECHO_N "checking assembler addressing style... $ECHO_C" >&6
29792 if test "${gmp_cv_asm_m68k_addressing+set}" = set; then
29793   echo $ECHO_N "(cached) $ECHO_C" >&6
29794 else
29795   case $gmp_cv_asm_m68k_instruction in
29796 addl*)  movel=movel ;;
29797 add.l*) movel=move.l ;;
29798 *) { { echo "$as_me:$LINENO: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&5
29799 echo "$as_me: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&2;}
29800    { (exit 1); exit 1; }; } ;;
29801 esac
29802 case $gmp_cv_asm_m68k_instruction in
29803 *"%d0,%d1") dreg=%d0; areg=%a0 ;;
29804 *"d0,d1")   dreg=d0;  areg=a0  ;;
29805 *) { { echo "$as_me:$LINENO: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&5
29806 echo "$as_me: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&2;}
29807    { (exit 1); exit 1; }; } ;;
29808 esac
29809 cat >conftest.s <<EOF
29810         $gmp_cv_asm_text
29811         $movel  $dreg, $areg@-
29812 EOF
29813 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29814 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29815   (eval $gmp_assemble) 2>&5
29816   ac_status=$?
29817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818   (exit $ac_status); }; then
29819   cat conftest.out >&5
29820   gmp_cv_asm_m68k_addressing=mit
29821 else
29822   cat conftest.out >&5
29823   echo "configure: failed program was:" >&5
29824   cat conftest.s >&5
29825   cat >conftest.s <<EOF
29826         $gmp_cv_asm_text
29827         $movel  $dreg, -($areg)
29828 EOF
29829 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29830 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29831   (eval $gmp_assemble) 2>&5
29832   ac_status=$?
29833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834   (exit $ac_status); }; then
29835   cat conftest.out >&5
29836   gmp_cv_asm_m68k_addressing=motorola
29837 else
29838   cat conftest.out >&5
29839   echo "configure: failed program was:" >&5
29840   cat conftest.s >&5
29841   { { echo "$as_me:$LINENO: error: cannot determine assembler addressing style" >&5
29842 echo "$as_me: error: cannot determine assembler addressing style" >&2;}
29843    { (exit 1); exit 1; }; }
29844 fi
29845 rm -f conftest*
29846
29847 fi
29848 rm -f conftest*
29849
29850
29851 fi
29852 echo "$as_me:$LINENO: result: $gmp_cv_asm_m68k_addressing" >&5
29853 echo "${ECHO_T}$gmp_cv_asm_m68k_addressing" >&6
29854
29855 echo "define(<WANT_ADDRESSING>, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4
29856
29857
29858
29859 echo "$as_me:$LINENO: checking assembler shortest branches" >&5
29860 echo $ECHO_N "checking assembler shortest branches... $ECHO_C" >&6
29861 if test "${gmp_cv_asm_m68k_branches+set}" = set; then
29862   echo $ECHO_N "(cached) $ECHO_C" >&6
29863 else
29864   for i in jra jbra bra; do
29865   cat >conftest.s <<EOF
29866         $gmp_cv_asm_text
29867 foo$gmp_cv_asm_label_suffix
29868         $i      foo
29869 EOF
29870 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29871 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29872   (eval $gmp_assemble) 2>&5
29873   ac_status=$?
29874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875   (exit $ac_status); }; then
29876   cat conftest.out >&5
29877   gmp_cv_asm_m68k_branches=$i
29878   rm -f conftest*
29879   break
29880 else
29881   cat conftest.out >&5
29882   echo "configure: failed program was:" >&5
29883   cat conftest.s >&5
29884   :
29885 fi
29886 rm -f conftest*
29887
29888 done
29889 if test -z "$gmp_cv_asm_m68k_branches"; then
29890   { { echo "$as_me:$LINENO: error: cannot determine assembler branching style" >&5
29891 echo "$as_me: error: cannot determine assembler branching style" >&2;}
29892    { (exit 1); exit 1; }; }
29893 fi
29894
29895 fi
29896 echo "$as_me:$LINENO: result: $gmp_cv_asm_m68k_branches" >&5
29897 echo "${ECHO_T}$gmp_cv_asm_m68k_branches" >&6
29898
29899 echo "define(<WANT_BRANCHES>, <\`$gmp_cv_asm_m68k_branches'>)" >> $gmp_tmpconfigm4
29900
29901
29902       ;;
29903     powerpc*-*-* | power[3-9]-*-*)
29904
29905 echo "$as_me:$LINENO: checking whether compiler output is PIC by default" >&5
29906 echo $ECHO_N "checking whether compiler output is PIC by default... $ECHO_C" >&6
29907 if test "${gmp_cv_asm_powerpc_pic+set}" = set; then
29908   echo $ECHO_N "(cached) $ECHO_C" >&6
29909 else
29910   gmp_cv_asm_powerpc_pic=yes
29911 cat >conftest.c <<EOF
29912 int foo;
29913 int *bar() { return &foo; }
29914 EOF
29915 echo "Test program:" >&5
29916 cat conftest.c >&5
29917 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
29918 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
29919   (eval $gmp_compile) 2>&5
29920   ac_status=$?
29921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29922   (exit $ac_status); }; then
29923   echo "Compiler output:" >&5
29924   cat conftest.s >&5
29925   if grep 'foo@ha' conftest.s >/dev/null 2>&5; then
29926     gmp_cv_asm_powerpc_pic=no
29927   fi
29928   if grep 'ha16(_foo)' conftest.s >/dev/null 2>&5; then
29929     gmp_cv_asm_powerpc_pic=no
29930   fi
29931 fi
29932 rm -f conftest*
29933
29934 fi
29935 echo "$as_me:$LINENO: result: $gmp_cv_asm_powerpc_pic" >&5
29936 echo "${ECHO_T}$gmp_cv_asm_powerpc_pic" >&6
29937
29938 echo "define(<PIC_ALWAYS>,<$gmp_cv_asm_powerpc_pic>)" >> $gmp_tmpconfigm4
29939
29940
29941
29942 echo "$as_me:$LINENO: checking if the assembler needs r on registers" >&5
29943 echo $ECHO_N "checking if the assembler needs r on registers... $ECHO_C" >&6
29944 if test "${gmp_cv_asm_powerpc_r_registers+set}" = set; then
29945   echo $ECHO_N "(cached) $ECHO_C" >&6
29946 else
29947   cat >conftest.s <<EOF
29948         $gmp_cv_asm_text
29949         mtctr   6
29950 EOF
29951 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29952 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29953   (eval $gmp_assemble) 2>&5
29954   ac_status=$?
29955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956   (exit $ac_status); }; then
29957   cat conftest.out >&5
29958   gmp_cv_asm_powerpc_r_registers=no
29959 else
29960   cat conftest.out >&5
29961   echo "configure: failed program was:" >&5
29962   cat conftest.s >&5
29963   cat >conftest.s <<EOF
29964         $gmp_cv_asm_text
29965         mtctr   r6
29966 EOF
29967 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29968 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29969   (eval $gmp_assemble) 2>&5
29970   ac_status=$?
29971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972   (exit $ac_status); }; then
29973   cat conftest.out >&5
29974   gmp_cv_asm_powerpc_r_registers=yes
29975 else
29976   cat conftest.out >&5
29977   echo "configure: failed program was:" >&5
29978   cat conftest.s >&5
29979   { { echo "$as_me:$LINENO: error: neither \"mtctr 6\" nor \"mtctr r6\" works" >&5
29980 echo "$as_me: error: neither \"mtctr 6\" nor \"mtctr r6\" works" >&2;}
29981    { (exit 1); exit 1; }; }
29982 fi
29983 rm -f conftest*
29984
29985 fi
29986 rm -f conftest*
29987
29988 fi
29989 echo "$as_me:$LINENO: result: $gmp_cv_asm_powerpc_r_registers" >&5
29990 echo "${ECHO_T}$gmp_cv_asm_powerpc_r_registers" >&6
29991
29992
29993 echo "define(<WANT_R_REGISTERS>,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4
29994
29995
29996
29997 echo "include_mpn(\`powerpc32/powerpc-defs.m4')" >> $gmp_tmpconfigm4i
29998
29999       case $host in
30000         *-*-aix*)
30001           case $ABI in
30002             64 | aix64)
30003 echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i
30004  ;;
30005             *)
30006 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
30007  ;;
30008           esac
30009           ;;
30010         *-*-linux* | *-*-*bsd*)
30011           case $ABI in
30012             mode64)
30013 echo "include_mpn(\`powerpc64/elf.m4')" >> $gmp_tmpconfigm4i
30014  ;;
30015             mode32 | 32)
30016 echo "include_mpn(\`powerpc32/elf.m4')" >> $gmp_tmpconfigm4i
30017  ;;
30018           esac
30019           ;;
30020         *-*-darwin*)
30021           case $ABI in
30022             mode64)
30023 echo "include_mpn(\`powerpc64/darwin.m4')" >> $gmp_tmpconfigm4i
30024  ;;
30025             mode32 | 32)
30026 echo "include_mpn(\`powerpc32/darwin.m4')" >> $gmp_tmpconfigm4i
30027  ;;
30028           esac
30029           ;;
30030         *)
30031           # Assume unrecognized operating system is the powerpc eABI
30032
30033 echo "include_mpn(\`powerpc32/eabi.m4')" >> $gmp_tmpconfigm4i
30034
30035           ;;
30036       esac
30037       ;;
30038     power*-*-aix*)
30039
30040 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
30041
30042       ;;
30043     sparcv9*-*-* | ultrasparc*-*-* | sparc64-*-*)
30044       case $ABI in
30045         64)
30046
30047 echo "$as_me:$LINENO: checking if the assembler accepts \".register\"" >&5
30048 echo $ECHO_N "checking if the assembler accepts \".register\"... $ECHO_C" >&6
30049 if test "${gmp_cv_asm_sparc_register+set}" = set; then
30050   echo $ECHO_N "(cached) $ECHO_C" >&6
30051 else
30052   cat >conftest.s <<EOF
30053         $gmp_cv_asm_text
30054         .register       %g2,#scratch
30055
30056 EOF
30057 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30058 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30059   (eval $gmp_assemble) 2>&5
30060   ac_status=$?
30061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062   (exit $ac_status); }; then
30063   cat conftest.out >&5
30064   gmp_cv_asm_sparc_register=yes
30065 else
30066   cat conftest.out >&5
30067   echo "configure: failed program was:" >&5
30068   cat conftest.s >&5
30069   gmp_cv_asm_sparc_register=no
30070 fi
30071 rm -f conftest*
30072
30073 fi
30074 echo "$as_me:$LINENO: result: $gmp_cv_asm_sparc_register" >&5
30075 echo "${ECHO_T}$gmp_cv_asm_sparc_register" >&6
30076
30077
30078 echo "define(<HAVE_REGISTER>,<$gmp_cv_asm_sparc_register>)" >> $gmp_tmpconfigm4
30079
30080
30081           ;;
30082       esac
30083       ;;
30084     i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | x86_64-*-*)
30085
30086 echo "$as_me:$LINENO: checking if the .align directive accepts an 0x90 fill in .text" >&5
30087 echo $ECHO_N "checking if the .align directive accepts an 0x90 fill in .text... $ECHO_C" >&6
30088 if test "${gmp_cv_asm_align_fill_0x90+set}" = set; then
30089   echo $ECHO_N "(cached) $ECHO_C" >&6
30090 else
30091   cat >conftest.s <<EOF
30092         $gmp_cv_asm_text
30093         .align  4, 0x90
30094         .byte   0
30095         .align  4, 0x90
30096 EOF
30097 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30098 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30099   (eval $gmp_assemble) 2>&5
30100   ac_status=$?
30101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102   (exit $ac_status); }; then
30103   cat conftest.out >&5
30104   if grep "Warning: Fill parameter ignored for executable section" conftest.out >/dev/null; then
30105   echo "Supressing this warning by omitting 0x90" 1>&5
30106   gmp_cv_asm_align_fill_0x90=no
30107 else
30108   gmp_cv_asm_align_fill_0x90=yes
30109 fi
30110 else
30111   cat conftest.out >&5
30112   echo "configure: failed program was:" >&5
30113   cat conftest.s >&5
30114   gmp_cv_asm_align_fill_0x90=no
30115 fi
30116 rm -f conftest*
30117
30118 fi
30119 echo "$as_me:$LINENO: result: $gmp_cv_asm_align_fill_0x90" >&5
30120 echo "${ECHO_T}$gmp_cv_asm_align_fill_0x90" >&6
30121
30122
30123 echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4
30124
30125
30126       case $ABI in
30127         32)
30128
30129 echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i
30130
30131           cat >>confdefs.h <<\_ACEOF
30132 #define HAVE_HOST_CPU_FAMILY_x86 1
30133 _ACEOF
30134
30135
30136
30137
30138
30139
30140 echo "$as_me:$LINENO: checking for assembler COFF type directives" >&5
30141 echo $ECHO_N "checking for assembler COFF type directives... $ECHO_C" >&6
30142 if test "${gmp_cv_asm_x86_coff_type+set}" = set; then
30143   echo $ECHO_N "(cached) $ECHO_C" >&6
30144 else
30145   cat >conftest.s <<EOF
30146         $gmp_cv_asm_text
30147         $gmp_cv_asm_globl ${tmp_gsym_prefix}foo$gmp_cv_asm_globl_attr
30148         .def    ${tmp_gsym_prefix}foo
30149         .scl    2
30150         .type   32
30151         .endef
30152 ${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix
30153
30154 EOF
30155 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30156 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30157   (eval $gmp_assemble) 2>&5
30158   ac_status=$?
30159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160   (exit $ac_status); }; then
30161   cat conftest.out >&5
30162   gmp_cv_asm_x86_coff_type=yes
30163 else
30164   cat conftest.out >&5
30165   echo "configure: failed program was:" >&5
30166   cat conftest.s >&5
30167   gmp_cv_asm_x86_coff_type=no
30168 fi
30169 rm -f conftest*
30170
30171
30172 fi
30173 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_coff_type" >&5
30174 echo "${ECHO_T}$gmp_cv_asm_x86_coff_type" >&6
30175 echo "define(<HAVE_COFF_TYPE>, <$gmp_cv_asm_x86_coff_type>)" >> $gmp_tmpconfigm4
30176
30177
30178
30179
30180
30181
30182
30183 echo "$as_me:$LINENO: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5
30184 echo $ECHO_N "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... $ECHO_C" >&6
30185 if test "${gmp_cv_asm_x86_got_underscore+set}" = set; then
30186   echo $ECHO_N "(cached) $ECHO_C" >&6
30187 else
30188   gmp_cv_asm_x86_got_underscore="not applicable"
30189 if test $gmp_cv_asm_underscore = yes; then
30190   tmp_gsym_prefix=_
30191 else
30192   tmp_gsym_prefix=
30193 fi
30194 for tmp_underscore in "" "_"; do
30195   cat >conftest.s <<EOF
30196         $gmp_cv_asm_text
30197         $gmp_cv_asm_globl ${tmp_gsym_prefix}main$gmp_cv_asm_globl_attr
30198 ${tmp_gsym_prefix}main$gmp_cv_asm_label_suffix
30199         addl    $ ${tmp_underscore}_GLOBAL_OFFSET_TABLE_, %ebx
30200 EOF
30201   gmp_compile="$CCAS $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.s >&5 && $CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.$OBJEXT >&5"
30202   if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
30203   (eval $gmp_compile) 2>&5
30204   ac_status=$?
30205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206   (exit $ac_status); }; then
30207     if test "$tmp_underscore" = "_"; then
30208       gmp_cv_asm_x86_got_underscore=yes
30209     else
30210       gmp_cv_asm_x86_got_underscore=no
30211     fi
30212     break
30213   fi
30214 done
30215 rm -f conftest* a.out b.out a.exe a_out.exe
30216
30217 fi
30218 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_got_underscore" >&5
30219 echo "${ECHO_T}$gmp_cv_asm_x86_got_underscore" >&6
30220 if test "$gmp_cv_asm_x86_got_underscore" = "yes"; then
30221
30222 echo 'define(<GOT_GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
30223
30224 else
30225
30226 echo 'define(<GOT_GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
30227
30228 fi
30229
30230
30231 echo "$as_me:$LINENO: checking if the assembler takes cl with shldl" >&5
30232 echo $ECHO_N "checking if the assembler takes cl with shldl... $ECHO_C" >&6
30233 if test "${gmp_cv_asm_x86_shldl_cl+set}" = set; then
30234   echo $ECHO_N "(cached) $ECHO_C" >&6
30235 else
30236   cat >conftest.s <<EOF
30237         $gmp_cv_asm_text
30238         shldl   %cl, %eax, %ebx
30239 EOF
30240 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30241 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30242   (eval $gmp_assemble) 2>&5
30243   ac_status=$?
30244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30245   (exit $ac_status); }; then
30246   cat conftest.out >&5
30247   gmp_cv_asm_x86_shldl_cl=yes
30248 else
30249   cat conftest.out >&5
30250   echo "configure: failed program was:" >&5
30251   cat conftest.s >&5
30252   gmp_cv_asm_x86_shldl_cl=no
30253 fi
30254 rm -f conftest*
30255
30256
30257 fi
30258 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_shldl_cl" >&5
30259 echo "${ECHO_T}$gmp_cv_asm_x86_shldl_cl" >&6
30260 if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then
30261
30262 echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4
30263
30264 else
30265
30266 echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4
30267
30268 fi
30269
30270           case $enable_profiling in
30271             prof | gprof)
30272
30273 echo "$as_me:$LINENO: checking how to call x86 mcount" >&5
30274 echo $ECHO_N "checking how to call x86 mcount... $ECHO_C" >&6
30275 cat >conftest.c <<EOF
30276 foo(){bar();}
30277 EOF
30278
30279 if test "$enable_static" = yes; then
30280   gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c 1>&5"
30281   if { (eval echo "$as_me:$LINENO: \"$gmp_asmout_compile\"") >&5
30282   (eval $gmp_asmout_compile) 2>&5
30283   ac_status=$?
30284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285   (exit $ac_status); }; then
30286     if grep '\.data' conftest.s >/dev/null; then
30287       mcount_nonpic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
30288     else
30289       mcount_nonpic_reg=
30290     fi
30291     mcount_nonpic_call=`grep 'call.*mcount' conftest.s`
30292     if test -z "$mcount_nonpic_call"; then
30293       { { echo "$as_me:$LINENO: error: Cannot find mcount call for non-PIC" >&5
30294 echo "$as_me: error: Cannot find mcount call for non-PIC" >&2;}
30295    { (exit 1); exit 1; }; }
30296     fi
30297   else
30298     { { echo "$as_me:$LINENO: error: Cannot compile test program for non-PIC" >&5
30299 echo "$as_me: error: Cannot compile test program for non-PIC" >&2;}
30300    { (exit 1); exit 1; }; }
30301   fi
30302 fi
30303
30304 if test "$enable_shared" = yes; then
30305   gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5"
30306   if { (eval echo "$as_me:$LINENO: \"$gmp_asmout_compile\"") >&5
30307   (eval $gmp_asmout_compile) 2>&5
30308   ac_status=$?
30309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30310   (exit $ac_status); }; then
30311     if grep '\.data' conftest.s >/dev/null; then
30312       case $lt_prog_compiler_pic in
30313         *-DDLL_EXPORT*)
30314           # Windows DLLs have non-PIC style mcount
30315           mcount_pic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
30316           ;;
30317         *)
30318           mcount_pic_reg=`sed -n 's/.*GOTOFF.*,\(%[a-z]*\).*$/\1/p' conftest.s`
30319           ;;
30320       esac
30321     else
30322       mcount_pic_reg=
30323     fi
30324     mcount_pic_call=`grep 'call.*mcount' conftest.s`
30325     if test -z "$mcount_pic_call"; then
30326       { { echo "$as_me:$LINENO: error: Cannot find mcount call for PIC" >&5
30327 echo "$as_me: error: Cannot find mcount call for PIC" >&2;}
30328    { (exit 1); exit 1; }; }
30329     fi
30330   else
30331     { { echo "$as_me:$LINENO: error: Cannot compile test program for PIC" >&5
30332 echo "$as_me: error: Cannot compile test program for PIC" >&2;}
30333    { (exit 1); exit 1; }; }
30334   fi
30335 fi
30336
30337
30338 echo "define(<MCOUNT_NONPIC_REG>, <\`$mcount_nonpic_reg'>)" >> $gmp_tmpconfigm4
30339
30340
30341 echo "define(<MCOUNT_NONPIC_CALL>,<\`$mcount_nonpic_call'>)" >> $gmp_tmpconfigm4
30342
30343
30344 echo "define(<MCOUNT_PIC_REG>,    <\`$mcount_pic_reg'>)" >> $gmp_tmpconfigm4
30345
30346
30347 echo "define(<MCOUNT_PIC_CALL>,   <\`$mcount_pic_call'>)" >> $gmp_tmpconfigm4
30348
30349
30350 rm -f conftest.*
30351 echo "$as_me:$LINENO: result: determined" >&5
30352 echo "${ECHO_T}determined" >&6
30353  ;;
30354           esac
30355           ;;
30356         64)
30357
30358 echo "include_mpn(\`x86_64/x86_64-defs.m4')" >> $gmp_tmpconfigm4i
30359
30360           ;;
30361       esac
30362       ;;
30363   esac
30364 fi
30365
30366
30367 # Create link for gmp-mparam.h.
30368 gmp_mparam_source=
30369 for gmp_mparam_dir in $path; do
30370   test "$no_create" = yes || rm -f gmp-mparam.h
30371   tmp_file=$srcdir/mpn/$gmp_mparam_dir/gmp-mparam.h
30372   if test -f $tmp_file; then
30373               ac_config_links="$ac_config_links gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h"
30374
30375     gmp_srclinks="$gmp_srclinks gmp-mparam.h"
30376     gmp_mparam_source=$tmp_file
30377     break
30378   fi
30379 done
30380 if test -z "$gmp_mparam_source"; then
30381   { { echo "$as_me:$LINENO: error: no version of gmp-mparam.h found in path: $path" >&5
30382 echo "$as_me: error: no version of gmp-mparam.h found in path: $path" >&2;}
30383    { (exit 1); exit 1; }; }
30384 fi
30385
30386 # For a helpful message from tune/tuneup.c
30387 gmp_mparam_suggest=$gmp_mparam_source
30388 if test "$gmp_mparam_dir" = generic; then
30389   for i in $path; do break; done
30390   if test "$i" != generic; then
30391     gmp_mparam_suggest="new file $srcdir/mpn/$i/gmp-mparam.h"
30392   fi
30393 fi
30394
30395 cat >>confdefs.h <<_ACEOF
30396 #define GMP_MPARAM_H_SUGGEST "$gmp_mparam_source"
30397 _ACEOF
30398
30399
30400
30401 # Copy any SQR_KARATSUBA_THRESHOLD from gmp-mparam.h to config.m4.
30402 # Some versions of sqr_basecase.asm use this.
30403 # Fat binaries do this on a per-file basis, so skip in that case.
30404 #
30405 if test -z "$fat_path"; then
30406   tmp_gmp_karatsuba_sqr_threshold=`sed -n 's/^#define SQR_KARATSUBA_THRESHOLD[  ]*\([0-9][0-9]*\).*$/\1/p' $gmp_mparam_source`
30407   if test -n "$tmp_gmp_karatsuba_sqr_threshold"; then
30408
30409 echo "define(<SQR_KARATSUBA_THRESHOLD>,<$tmp_gmp_karatsuba_sqr_threshold>)" >> $gmp_tmpconfigm4
30410
30411   fi
30412 fi
30413
30414
30415 # Sizes of some types, needed at preprocessing time.
30416 #
30417 # FIXME: The assumption that BITS_PER_MP_LIMB is 8*sizeof(mp_limb_t) might
30418 # be slightly rash, but it's true everwhere we know of and ought to be true
30419 # of any sensible system.  In a generic C build, grepping LONG_BIT out of
30420 # <limits.h> might be an alternative, for maximum portability.
30421 #
30422 echo "$as_me:$LINENO: checking for unsigned short" >&5
30423 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
30424 if test "${ac_cv_type_unsigned_short+set}" = set; then
30425   echo $ECHO_N "(cached) $ECHO_C" >&6
30426 else
30427   cat >conftest.$ac_ext <<_ACEOF
30428 /* confdefs.h.  */
30429 _ACEOF
30430 cat confdefs.h >>conftest.$ac_ext
30431 cat >>conftest.$ac_ext <<_ACEOF
30432 /* end confdefs.h.  */
30433 $ac_includes_default
30434 int
30435 main ()
30436 {
30437 if ((unsigned short *) 0)
30438   return 0;
30439 if (sizeof (unsigned short))
30440   return 0;
30441   ;
30442   return 0;
30443 }
30444 _ACEOF
30445 rm -f conftest.$ac_objext
30446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30447   (eval $ac_compile) 2>conftest.er1
30448   ac_status=$?
30449   grep -v '^ *+' conftest.er1 >conftest.err
30450   rm -f conftest.er1
30451   cat conftest.err >&5
30452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453   (exit $ac_status); } &&
30454          { ac_try='test -z "$ac_c_werror_flag"
30455                          || test ! -s conftest.err'
30456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30457   (eval $ac_try) 2>&5
30458   ac_status=$?
30459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460   (exit $ac_status); }; } &&
30461          { ac_try='test -s conftest.$ac_objext'
30462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30463   (eval $ac_try) 2>&5
30464   ac_status=$?
30465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466   (exit $ac_status); }; }; then
30467   ac_cv_type_unsigned_short=yes
30468 else
30469   echo "$as_me: failed program was:" >&5
30470 sed 's/^/| /' conftest.$ac_ext >&5
30471
30472 ac_cv_type_unsigned_short=no
30473 fi
30474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30475 fi
30476 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
30477 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
30478
30479 echo "$as_me:$LINENO: checking size of unsigned short" >&5
30480 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
30481 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
30482   echo $ECHO_N "(cached) $ECHO_C" >&6
30483 else
30484   if test "$ac_cv_type_unsigned_short" = yes; then
30485   # The cast to unsigned long works around a bug in the HP C Compiler
30486   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30487   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30488   # This bug is HP SR number 8606223364.
30489   if test "$cross_compiling" = yes; then
30490   # Depending upon the size, compute the lo and hi bounds.
30491 cat >conftest.$ac_ext <<_ACEOF
30492 /* confdefs.h.  */
30493 _ACEOF
30494 cat confdefs.h >>conftest.$ac_ext
30495 cat >>conftest.$ac_ext <<_ACEOF
30496 /* end confdefs.h.  */
30497 $ac_includes_default
30498 int
30499 main ()
30500 {
30501 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
30502 test_array [0] = 0
30503
30504   ;
30505   return 0;
30506 }
30507 _ACEOF
30508 rm -f conftest.$ac_objext
30509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30510   (eval $ac_compile) 2>conftest.er1
30511   ac_status=$?
30512   grep -v '^ *+' conftest.er1 >conftest.err
30513   rm -f conftest.er1
30514   cat conftest.err >&5
30515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516   (exit $ac_status); } &&
30517          { ac_try='test -z "$ac_c_werror_flag"
30518                          || test ! -s conftest.err'
30519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30520   (eval $ac_try) 2>&5
30521   ac_status=$?
30522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523   (exit $ac_status); }; } &&
30524          { ac_try='test -s conftest.$ac_objext'
30525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30526   (eval $ac_try) 2>&5
30527   ac_status=$?
30528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529   (exit $ac_status); }; }; then
30530   ac_lo=0 ac_mid=0
30531   while :; do
30532     cat >conftest.$ac_ext <<_ACEOF
30533 /* confdefs.h.  */
30534 _ACEOF
30535 cat confdefs.h >>conftest.$ac_ext
30536 cat >>conftest.$ac_ext <<_ACEOF
30537 /* end confdefs.h.  */
30538 $ac_includes_default
30539 int
30540 main ()
30541 {
30542 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
30543 test_array [0] = 0
30544
30545   ;
30546   return 0;
30547 }
30548 _ACEOF
30549 rm -f conftest.$ac_objext
30550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30551   (eval $ac_compile) 2>conftest.er1
30552   ac_status=$?
30553   grep -v '^ *+' conftest.er1 >conftest.err
30554   rm -f conftest.er1
30555   cat conftest.err >&5
30556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557   (exit $ac_status); } &&
30558          { ac_try='test -z "$ac_c_werror_flag"
30559                          || test ! -s conftest.err'
30560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30561   (eval $ac_try) 2>&5
30562   ac_status=$?
30563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564   (exit $ac_status); }; } &&
30565          { ac_try='test -s conftest.$ac_objext'
30566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30567   (eval $ac_try) 2>&5
30568   ac_status=$?
30569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570   (exit $ac_status); }; }; then
30571   ac_hi=$ac_mid; break
30572 else
30573   echo "$as_me: failed program was:" >&5
30574 sed 's/^/| /' conftest.$ac_ext >&5
30575
30576 ac_lo=`expr $ac_mid + 1`
30577                     if test $ac_lo -le $ac_mid; then
30578                       ac_lo= ac_hi=
30579                       break
30580                     fi
30581                     ac_mid=`expr 2 '*' $ac_mid + 1`
30582 fi
30583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30584   done
30585 else
30586   echo "$as_me: failed program was:" >&5
30587 sed 's/^/| /' conftest.$ac_ext >&5
30588
30589 cat >conftest.$ac_ext <<_ACEOF
30590 /* confdefs.h.  */
30591 _ACEOF
30592 cat confdefs.h >>conftest.$ac_ext
30593 cat >>conftest.$ac_ext <<_ACEOF
30594 /* end confdefs.h.  */
30595 $ac_includes_default
30596 int
30597 main ()
30598 {
30599 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
30600 test_array [0] = 0
30601
30602   ;
30603   return 0;
30604 }
30605 _ACEOF
30606 rm -f conftest.$ac_objext
30607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30608   (eval $ac_compile) 2>conftest.er1
30609   ac_status=$?
30610   grep -v '^ *+' conftest.er1 >conftest.err
30611   rm -f conftest.er1
30612   cat conftest.err >&5
30613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30614   (exit $ac_status); } &&
30615          { ac_try='test -z "$ac_c_werror_flag"
30616                          || test ! -s conftest.err'
30617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30618   (eval $ac_try) 2>&5
30619   ac_status=$?
30620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621   (exit $ac_status); }; } &&
30622          { ac_try='test -s conftest.$ac_objext'
30623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30624   (eval $ac_try) 2>&5
30625   ac_status=$?
30626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627   (exit $ac_status); }; }; then
30628   ac_hi=-1 ac_mid=-1
30629   while :; do
30630     cat >conftest.$ac_ext <<_ACEOF
30631 /* confdefs.h.  */
30632 _ACEOF
30633 cat confdefs.h >>conftest.$ac_ext
30634 cat >>conftest.$ac_ext <<_ACEOF
30635 /* end confdefs.h.  */
30636 $ac_includes_default
30637 int
30638 main ()
30639 {
30640 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
30641 test_array [0] = 0
30642
30643   ;
30644   return 0;
30645 }
30646 _ACEOF
30647 rm -f conftest.$ac_objext
30648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30649   (eval $ac_compile) 2>conftest.er1
30650   ac_status=$?
30651   grep -v '^ *+' conftest.er1 >conftest.err
30652   rm -f conftest.er1
30653   cat conftest.err >&5
30654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655   (exit $ac_status); } &&
30656          { ac_try='test -z "$ac_c_werror_flag"
30657                          || test ! -s conftest.err'
30658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30659   (eval $ac_try) 2>&5
30660   ac_status=$?
30661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662   (exit $ac_status); }; } &&
30663          { ac_try='test -s conftest.$ac_objext'
30664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30665   (eval $ac_try) 2>&5
30666   ac_status=$?
30667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668   (exit $ac_status); }; }; then
30669   ac_lo=$ac_mid; break
30670 else
30671   echo "$as_me: failed program was:" >&5
30672 sed 's/^/| /' conftest.$ac_ext >&5
30673
30674 ac_hi=`expr '(' $ac_mid ')' - 1`
30675                        if test $ac_mid -le $ac_hi; then
30676                          ac_lo= ac_hi=
30677                          break
30678                        fi
30679                        ac_mid=`expr 2 '*' $ac_mid`
30680 fi
30681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30682   done
30683 else
30684   echo "$as_me: failed program was:" >&5
30685 sed 's/^/| /' conftest.$ac_ext >&5
30686
30687 ac_lo= ac_hi=
30688 fi
30689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30690 fi
30691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30692 # Binary search between lo and hi bounds.
30693 while test "x$ac_lo" != "x$ac_hi"; do
30694   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30695   cat >conftest.$ac_ext <<_ACEOF
30696 /* confdefs.h.  */
30697 _ACEOF
30698 cat confdefs.h >>conftest.$ac_ext
30699 cat >>conftest.$ac_ext <<_ACEOF
30700 /* end confdefs.h.  */
30701 $ac_includes_default
30702 int
30703 main ()
30704 {
30705 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
30706 test_array [0] = 0
30707
30708   ;
30709   return 0;
30710 }
30711 _ACEOF
30712 rm -f conftest.$ac_objext
30713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30714   (eval $ac_compile) 2>conftest.er1
30715   ac_status=$?
30716   grep -v '^ *+' conftest.er1 >conftest.err
30717   rm -f conftest.er1
30718   cat conftest.err >&5
30719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720   (exit $ac_status); } &&
30721          { ac_try='test -z "$ac_c_werror_flag"
30722                          || test ! -s conftest.err'
30723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30724   (eval $ac_try) 2>&5
30725   ac_status=$?
30726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727   (exit $ac_status); }; } &&
30728          { ac_try='test -s conftest.$ac_objext'
30729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30730   (eval $ac_try) 2>&5
30731   ac_status=$?
30732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30733   (exit $ac_status); }; }; then
30734   ac_hi=$ac_mid
30735 else
30736   echo "$as_me: failed program was:" >&5
30737 sed 's/^/| /' conftest.$ac_ext >&5
30738
30739 ac_lo=`expr '(' $ac_mid ')' + 1`
30740 fi
30741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30742 done
30743 case $ac_lo in
30744 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
30745 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
30746 See \`config.log' for more details." >&5
30747 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
30748 See \`config.log' for more details." >&2;}
30749    { (exit 1); exit 1; }; } ;;
30750 esac
30751 else
30752   if test "$cross_compiling" = yes; then
30753   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
30754 See \`config.log' for more details." >&5
30755 echo "$as_me: error: cannot run test program while cross compiling
30756 See \`config.log' for more details." >&2;}
30757    { (exit 1); exit 1; }; }
30758 else
30759   cat >conftest.$ac_ext <<_ACEOF
30760 /* confdefs.h.  */
30761 _ACEOF
30762 cat confdefs.h >>conftest.$ac_ext
30763 cat >>conftest.$ac_ext <<_ACEOF
30764 /* end confdefs.h.  */
30765 $ac_includes_default
30766 long longval () { return (long) (sizeof (unsigned short)); }
30767 unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
30768 #include <stdio.h>
30769 #include <stdlib.h>
30770 int
30771 main ()
30772 {
30773
30774   FILE *f = fopen ("conftest.val", "w");
30775   if (! f)
30776     exit (1);
30777   if (((long) (sizeof (unsigned short))) < 0)
30778     {
30779       long i = longval ();
30780       if (i != ((long) (sizeof (unsigned short))))
30781         exit (1);
30782       fprintf (f, "%ld\n", i);
30783     }
30784   else
30785     {
30786       unsigned long i = ulongval ();
30787       if (i != ((long) (sizeof (unsigned short))))
30788         exit (1);
30789       fprintf (f, "%lu\n", i);
30790     }
30791   exit (ferror (f) || fclose (f) != 0);
30792
30793   ;
30794   return 0;
30795 }
30796 _ACEOF
30797 rm -f conftest$ac_exeext
30798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30799   (eval $ac_link) 2>&5
30800   ac_status=$?
30801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30804   (eval $ac_try) 2>&5
30805   ac_status=$?
30806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807   (exit $ac_status); }; }; then
30808   ac_cv_sizeof_unsigned_short=`cat conftest.val`
30809 else
30810   echo "$as_me: program exited with status $ac_status" >&5
30811 echo "$as_me: failed program was:" >&5
30812 sed 's/^/| /' conftest.$ac_ext >&5
30813
30814 ( exit $ac_status )
30815 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
30816 See \`config.log' for more details." >&5
30817 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
30818 See \`config.log' for more details." >&2;}
30819    { (exit 1); exit 1; }; }
30820 fi
30821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30822 fi
30823 fi
30824 rm -f conftest.val
30825 else
30826   ac_cv_sizeof_unsigned_short=0
30827 fi
30828 fi
30829 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
30830 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
30831 cat >>confdefs.h <<_ACEOF
30832 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
30833 _ACEOF
30834
30835
30836 echo "$as_me:$LINENO: checking for unsigned" >&5
30837 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6
30838 if test "${ac_cv_type_unsigned+set}" = set; then
30839   echo $ECHO_N "(cached) $ECHO_C" >&6
30840 else
30841   cat >conftest.$ac_ext <<_ACEOF
30842 /* confdefs.h.  */
30843 _ACEOF
30844 cat confdefs.h >>conftest.$ac_ext
30845 cat >>conftest.$ac_ext <<_ACEOF
30846 /* end confdefs.h.  */
30847 $ac_includes_default
30848 int
30849 main ()
30850 {
30851 if ((unsigned *) 0)
30852   return 0;
30853 if (sizeof (unsigned))
30854   return 0;
30855   ;
30856   return 0;
30857 }
30858 _ACEOF
30859 rm -f conftest.$ac_objext
30860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30861   (eval $ac_compile) 2>conftest.er1
30862   ac_status=$?
30863   grep -v '^ *+' conftest.er1 >conftest.err
30864   rm -f conftest.er1
30865   cat conftest.err >&5
30866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30867   (exit $ac_status); } &&
30868          { ac_try='test -z "$ac_c_werror_flag"
30869                          || test ! -s conftest.err'
30870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30871   (eval $ac_try) 2>&5
30872   ac_status=$?
30873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30874   (exit $ac_status); }; } &&
30875          { ac_try='test -s conftest.$ac_objext'
30876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30877   (eval $ac_try) 2>&5
30878   ac_status=$?
30879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880   (exit $ac_status); }; }; then
30881   ac_cv_type_unsigned=yes
30882 else
30883   echo "$as_me: failed program was:" >&5
30884 sed 's/^/| /' conftest.$ac_ext >&5
30885
30886 ac_cv_type_unsigned=no
30887 fi
30888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30889 fi
30890 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
30891 echo "${ECHO_T}$ac_cv_type_unsigned" >&6
30892
30893 echo "$as_me:$LINENO: checking size of unsigned" >&5
30894 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6
30895 if test "${ac_cv_sizeof_unsigned+set}" = set; then
30896   echo $ECHO_N "(cached) $ECHO_C" >&6
30897 else
30898   if test "$ac_cv_type_unsigned" = yes; then
30899   # The cast to unsigned long works around a bug in the HP C Compiler
30900   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30901   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30902   # This bug is HP SR number 8606223364.
30903   if test "$cross_compiling" = yes; then
30904   # Depending upon the size, compute the lo and hi bounds.
30905 cat >conftest.$ac_ext <<_ACEOF
30906 /* confdefs.h.  */
30907 _ACEOF
30908 cat confdefs.h >>conftest.$ac_ext
30909 cat >>conftest.$ac_ext <<_ACEOF
30910 /* end confdefs.h.  */
30911 $ac_includes_default
30912 int
30913 main ()
30914 {
30915 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) >= 0)];
30916 test_array [0] = 0
30917
30918   ;
30919   return 0;
30920 }
30921 _ACEOF
30922 rm -f conftest.$ac_objext
30923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30924   (eval $ac_compile) 2>conftest.er1
30925   ac_status=$?
30926   grep -v '^ *+' conftest.er1 >conftest.err
30927   rm -f conftest.er1
30928   cat conftest.err >&5
30929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930   (exit $ac_status); } &&
30931          { ac_try='test -z "$ac_c_werror_flag"
30932                          || test ! -s conftest.err'
30933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30934   (eval $ac_try) 2>&5
30935   ac_status=$?
30936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937   (exit $ac_status); }; } &&
30938          { ac_try='test -s conftest.$ac_objext'
30939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30940   (eval $ac_try) 2>&5
30941   ac_status=$?
30942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943   (exit $ac_status); }; }; then
30944   ac_lo=0 ac_mid=0
30945   while :; do
30946     cat >conftest.$ac_ext <<_ACEOF
30947 /* confdefs.h.  */
30948 _ACEOF
30949 cat confdefs.h >>conftest.$ac_ext
30950 cat >>conftest.$ac_ext <<_ACEOF
30951 /* end confdefs.h.  */
30952 $ac_includes_default
30953 int
30954 main ()
30955 {
30956 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) <= $ac_mid)];
30957 test_array [0] = 0
30958
30959   ;
30960   return 0;
30961 }
30962 _ACEOF
30963 rm -f conftest.$ac_objext
30964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30965   (eval $ac_compile) 2>conftest.er1
30966   ac_status=$?
30967   grep -v '^ *+' conftest.er1 >conftest.err
30968   rm -f conftest.er1
30969   cat conftest.err >&5
30970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30971   (exit $ac_status); } &&
30972          { ac_try='test -z "$ac_c_werror_flag"
30973                          || test ! -s conftest.err'
30974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30975   (eval $ac_try) 2>&5
30976   ac_status=$?
30977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978   (exit $ac_status); }; } &&
30979          { ac_try='test -s conftest.$ac_objext'
30980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30981   (eval $ac_try) 2>&5
30982   ac_status=$?
30983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984   (exit $ac_status); }; }; then
30985   ac_hi=$ac_mid; break
30986 else
30987   echo "$as_me: failed program was:" >&5
30988 sed 's/^/| /' conftest.$ac_ext >&5
30989
30990 ac_lo=`expr $ac_mid + 1`
30991                     if test $ac_lo -le $ac_mid; then
30992                       ac_lo= ac_hi=
30993                       break
30994                     fi
30995                     ac_mid=`expr 2 '*' $ac_mid + 1`
30996 fi
30997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30998   done
30999 else
31000   echo "$as_me: failed program was:" >&5
31001 sed 's/^/| /' conftest.$ac_ext >&5
31002
31003 cat >conftest.$ac_ext <<_ACEOF
31004 /* confdefs.h.  */
31005 _ACEOF
31006 cat confdefs.h >>conftest.$ac_ext
31007 cat >>conftest.$ac_ext <<_ACEOF
31008 /* end confdefs.h.  */
31009 $ac_includes_default
31010 int
31011 main ()
31012 {
31013 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) < 0)];
31014 test_array [0] = 0
31015
31016   ;
31017   return 0;
31018 }
31019 _ACEOF
31020 rm -f conftest.$ac_objext
31021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31022   (eval $ac_compile) 2>conftest.er1
31023   ac_status=$?
31024   grep -v '^ *+' conftest.er1 >conftest.err
31025   rm -f conftest.er1
31026   cat conftest.err >&5
31027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31028   (exit $ac_status); } &&
31029          { ac_try='test -z "$ac_c_werror_flag"
31030                          || test ! -s conftest.err'
31031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31032   (eval $ac_try) 2>&5
31033   ac_status=$?
31034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035   (exit $ac_status); }; } &&
31036          { ac_try='test -s conftest.$ac_objext'
31037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31038   (eval $ac_try) 2>&5
31039   ac_status=$?
31040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041   (exit $ac_status); }; }; then
31042   ac_hi=-1 ac_mid=-1
31043   while :; do
31044     cat >conftest.$ac_ext <<_ACEOF
31045 /* confdefs.h.  */
31046 _ACEOF
31047 cat confdefs.h >>conftest.$ac_ext
31048 cat >>conftest.$ac_ext <<_ACEOF
31049 /* end confdefs.h.  */
31050 $ac_includes_default
31051 int
31052 main ()
31053 {
31054 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) >= $ac_mid)];
31055 test_array [0] = 0
31056
31057   ;
31058   return 0;
31059 }
31060 _ACEOF
31061 rm -f conftest.$ac_objext
31062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31063   (eval $ac_compile) 2>conftest.er1
31064   ac_status=$?
31065   grep -v '^ *+' conftest.er1 >conftest.err
31066   rm -f conftest.er1
31067   cat conftest.err >&5
31068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069   (exit $ac_status); } &&
31070          { ac_try='test -z "$ac_c_werror_flag"
31071                          || test ! -s conftest.err'
31072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31073   (eval $ac_try) 2>&5
31074   ac_status=$?
31075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076   (exit $ac_status); }; } &&
31077          { ac_try='test -s conftest.$ac_objext'
31078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31079   (eval $ac_try) 2>&5
31080   ac_status=$?
31081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082   (exit $ac_status); }; }; then
31083   ac_lo=$ac_mid; break
31084 else
31085   echo "$as_me: failed program was:" >&5
31086 sed 's/^/| /' conftest.$ac_ext >&5
31087
31088 ac_hi=`expr '(' $ac_mid ')' - 1`
31089                        if test $ac_mid -le $ac_hi; then
31090                          ac_lo= ac_hi=
31091                          break
31092                        fi
31093                        ac_mid=`expr 2 '*' $ac_mid`
31094 fi
31095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31096   done
31097 else
31098   echo "$as_me: failed program was:" >&5
31099 sed 's/^/| /' conftest.$ac_ext >&5
31100
31101 ac_lo= ac_hi=
31102 fi
31103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31104 fi
31105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31106 # Binary search between lo and hi bounds.
31107 while test "x$ac_lo" != "x$ac_hi"; do
31108   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31109   cat >conftest.$ac_ext <<_ACEOF
31110 /* confdefs.h.  */
31111 _ACEOF
31112 cat confdefs.h >>conftest.$ac_ext
31113 cat >>conftest.$ac_ext <<_ACEOF
31114 /* end confdefs.h.  */
31115 $ac_includes_default
31116 int
31117 main ()
31118 {
31119 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) <= $ac_mid)];
31120 test_array [0] = 0
31121
31122   ;
31123   return 0;
31124 }
31125 _ACEOF
31126 rm -f conftest.$ac_objext
31127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31128   (eval $ac_compile) 2>conftest.er1
31129   ac_status=$?
31130   grep -v '^ *+' conftest.er1 >conftest.err
31131   rm -f conftest.er1
31132   cat conftest.err >&5
31133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134   (exit $ac_status); } &&
31135          { ac_try='test -z "$ac_c_werror_flag"
31136                          || test ! -s conftest.err'
31137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31138   (eval $ac_try) 2>&5
31139   ac_status=$?
31140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141   (exit $ac_status); }; } &&
31142          { ac_try='test -s conftest.$ac_objext'
31143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31144   (eval $ac_try) 2>&5
31145   ac_status=$?
31146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147   (exit $ac_status); }; }; then
31148   ac_hi=$ac_mid
31149 else
31150   echo "$as_me: failed program was:" >&5
31151 sed 's/^/| /' conftest.$ac_ext >&5
31152
31153 ac_lo=`expr '(' $ac_mid ')' + 1`
31154 fi
31155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31156 done
31157 case $ac_lo in
31158 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
31159 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned), 77
31160 See \`config.log' for more details." >&5
31161 echo "$as_me: error: cannot compute sizeof (unsigned), 77
31162 See \`config.log' for more details." >&2;}
31163    { (exit 1); exit 1; }; } ;;
31164 esac
31165 else
31166   if test "$cross_compiling" = yes; then
31167   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
31168 See \`config.log' for more details." >&5
31169 echo "$as_me: error: cannot run test program while cross compiling
31170 See \`config.log' for more details." >&2;}
31171    { (exit 1); exit 1; }; }
31172 else
31173   cat >conftest.$ac_ext <<_ACEOF
31174 /* confdefs.h.  */
31175 _ACEOF
31176 cat confdefs.h >>conftest.$ac_ext
31177 cat >>conftest.$ac_ext <<_ACEOF
31178 /* end confdefs.h.  */
31179 $ac_includes_default
31180 long longval () { return (long) (sizeof (unsigned)); }
31181 unsigned long ulongval () { return (long) (sizeof (unsigned)); }
31182 #include <stdio.h>
31183 #include <stdlib.h>
31184 int
31185 main ()
31186 {
31187
31188   FILE *f = fopen ("conftest.val", "w");
31189   if (! f)
31190     exit (1);
31191   if (((long) (sizeof (unsigned))) < 0)
31192     {
31193       long i = longval ();
31194       if (i != ((long) (sizeof (unsigned))))
31195         exit (1);
31196       fprintf (f, "%ld\n", i);
31197     }
31198   else
31199     {
31200       unsigned long i = ulongval ();
31201       if (i != ((long) (sizeof (unsigned))))
31202         exit (1);
31203       fprintf (f, "%lu\n", i);
31204     }
31205   exit (ferror (f) || fclose (f) != 0);
31206
31207   ;
31208   return 0;
31209 }
31210 _ACEOF
31211 rm -f conftest$ac_exeext
31212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31213   (eval $ac_link) 2>&5
31214   ac_status=$?
31215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31218   (eval $ac_try) 2>&5
31219   ac_status=$?
31220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221   (exit $ac_status); }; }; then
31222   ac_cv_sizeof_unsigned=`cat conftest.val`
31223 else
31224   echo "$as_me: program exited with status $ac_status" >&5
31225 echo "$as_me: failed program was:" >&5
31226 sed 's/^/| /' conftest.$ac_ext >&5
31227
31228 ( exit $ac_status )
31229 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned), 77
31230 See \`config.log' for more details." >&5
31231 echo "$as_me: error: cannot compute sizeof (unsigned), 77
31232 See \`config.log' for more details." >&2;}
31233    { (exit 1); exit 1; }; }
31234 fi
31235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31236 fi
31237 fi
31238 rm -f conftest.val
31239 else
31240   ac_cv_sizeof_unsigned=0
31241 fi
31242 fi
31243 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
31244 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6
31245 cat >>confdefs.h <<_ACEOF
31246 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
31247 _ACEOF
31248
31249
31250 echo "$as_me:$LINENO: checking for unsigned long" >&5
31251 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
31252 if test "${ac_cv_type_unsigned_long+set}" = set; then
31253   echo $ECHO_N "(cached) $ECHO_C" >&6
31254 else
31255   cat >conftest.$ac_ext <<_ACEOF
31256 /* confdefs.h.  */
31257 _ACEOF
31258 cat confdefs.h >>conftest.$ac_ext
31259 cat >>conftest.$ac_ext <<_ACEOF
31260 /* end confdefs.h.  */
31261 $ac_includes_default
31262 int
31263 main ()
31264 {
31265 if ((unsigned long *) 0)
31266   return 0;
31267 if (sizeof (unsigned long))
31268   return 0;
31269   ;
31270   return 0;
31271 }
31272 _ACEOF
31273 rm -f conftest.$ac_objext
31274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31275   (eval $ac_compile) 2>conftest.er1
31276   ac_status=$?
31277   grep -v '^ *+' conftest.er1 >conftest.err
31278   rm -f conftest.er1
31279   cat conftest.err >&5
31280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31281   (exit $ac_status); } &&
31282          { ac_try='test -z "$ac_c_werror_flag"
31283                          || test ! -s conftest.err'
31284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31285   (eval $ac_try) 2>&5
31286   ac_status=$?
31287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31288   (exit $ac_status); }; } &&
31289          { ac_try='test -s conftest.$ac_objext'
31290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31291   (eval $ac_try) 2>&5
31292   ac_status=$?
31293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31294   (exit $ac_status); }; }; then
31295   ac_cv_type_unsigned_long=yes
31296 else
31297   echo "$as_me: failed program was:" >&5
31298 sed 's/^/| /' conftest.$ac_ext >&5
31299
31300 ac_cv_type_unsigned_long=no
31301 fi
31302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31303 fi
31304 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
31305 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
31306
31307 echo "$as_me:$LINENO: checking size of unsigned long" >&5
31308 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
31309 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
31310   echo $ECHO_N "(cached) $ECHO_C" >&6
31311 else
31312   if test "$ac_cv_type_unsigned_long" = yes; then
31313   # The cast to unsigned long works around a bug in the HP C Compiler
31314   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31315   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31316   # This bug is HP SR number 8606223364.
31317   if test "$cross_compiling" = yes; then
31318   # Depending upon the size, compute the lo and hi bounds.
31319 cat >conftest.$ac_ext <<_ACEOF
31320 /* confdefs.h.  */
31321 _ACEOF
31322 cat confdefs.h >>conftest.$ac_ext
31323 cat >>conftest.$ac_ext <<_ACEOF
31324 /* end confdefs.h.  */
31325 $ac_includes_default
31326 int
31327 main ()
31328 {
31329 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
31330 test_array [0] = 0
31331
31332   ;
31333   return 0;
31334 }
31335 _ACEOF
31336 rm -f conftest.$ac_objext
31337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31338   (eval $ac_compile) 2>conftest.er1
31339   ac_status=$?
31340   grep -v '^ *+' conftest.er1 >conftest.err
31341   rm -f conftest.er1
31342   cat conftest.err >&5
31343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344   (exit $ac_status); } &&
31345          { ac_try='test -z "$ac_c_werror_flag"
31346                          || test ! -s conftest.err'
31347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31348   (eval $ac_try) 2>&5
31349   ac_status=$?
31350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351   (exit $ac_status); }; } &&
31352          { ac_try='test -s conftest.$ac_objext'
31353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31354   (eval $ac_try) 2>&5
31355   ac_status=$?
31356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357   (exit $ac_status); }; }; then
31358   ac_lo=0 ac_mid=0
31359   while :; do
31360     cat >conftest.$ac_ext <<_ACEOF
31361 /* confdefs.h.  */
31362 _ACEOF
31363 cat confdefs.h >>conftest.$ac_ext
31364 cat >>conftest.$ac_ext <<_ACEOF
31365 /* end confdefs.h.  */
31366 $ac_includes_default
31367 int
31368 main ()
31369 {
31370 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
31371 test_array [0] = 0
31372
31373   ;
31374   return 0;
31375 }
31376 _ACEOF
31377 rm -f conftest.$ac_objext
31378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31379   (eval $ac_compile) 2>conftest.er1
31380   ac_status=$?
31381   grep -v '^ *+' conftest.er1 >conftest.err
31382   rm -f conftest.er1
31383   cat conftest.err >&5
31384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385   (exit $ac_status); } &&
31386          { ac_try='test -z "$ac_c_werror_flag"
31387                          || test ! -s conftest.err'
31388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31389   (eval $ac_try) 2>&5
31390   ac_status=$?
31391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31392   (exit $ac_status); }; } &&
31393          { ac_try='test -s conftest.$ac_objext'
31394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31395   (eval $ac_try) 2>&5
31396   ac_status=$?
31397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398   (exit $ac_status); }; }; then
31399   ac_hi=$ac_mid; break
31400 else
31401   echo "$as_me: failed program was:" >&5
31402 sed 's/^/| /' conftest.$ac_ext >&5
31403
31404 ac_lo=`expr $ac_mid + 1`
31405                     if test $ac_lo -le $ac_mid; then
31406                       ac_lo= ac_hi=
31407                       break
31408                     fi
31409                     ac_mid=`expr 2 '*' $ac_mid + 1`
31410 fi
31411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31412   done
31413 else
31414   echo "$as_me: failed program was:" >&5
31415 sed 's/^/| /' conftest.$ac_ext >&5
31416
31417 cat >conftest.$ac_ext <<_ACEOF
31418 /* confdefs.h.  */
31419 _ACEOF
31420 cat confdefs.h >>conftest.$ac_ext
31421 cat >>conftest.$ac_ext <<_ACEOF
31422 /* end confdefs.h.  */
31423 $ac_includes_default
31424 int
31425 main ()
31426 {
31427 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
31428 test_array [0] = 0
31429
31430   ;
31431   return 0;
31432 }
31433 _ACEOF
31434 rm -f conftest.$ac_objext
31435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31436   (eval $ac_compile) 2>conftest.er1
31437   ac_status=$?
31438   grep -v '^ *+' conftest.er1 >conftest.err
31439   rm -f conftest.er1
31440   cat conftest.err >&5
31441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442   (exit $ac_status); } &&
31443          { ac_try='test -z "$ac_c_werror_flag"
31444                          || test ! -s conftest.err'
31445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31446   (eval $ac_try) 2>&5
31447   ac_status=$?
31448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31449   (exit $ac_status); }; } &&
31450          { ac_try='test -s conftest.$ac_objext'
31451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31452   (eval $ac_try) 2>&5
31453   ac_status=$?
31454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455   (exit $ac_status); }; }; then
31456   ac_hi=-1 ac_mid=-1
31457   while :; do
31458     cat >conftest.$ac_ext <<_ACEOF
31459 /* confdefs.h.  */
31460 _ACEOF
31461 cat confdefs.h >>conftest.$ac_ext
31462 cat >>conftest.$ac_ext <<_ACEOF
31463 /* end confdefs.h.  */
31464 $ac_includes_default
31465 int
31466 main ()
31467 {
31468 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
31469 test_array [0] = 0
31470
31471   ;
31472   return 0;
31473 }
31474 _ACEOF
31475 rm -f conftest.$ac_objext
31476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31477   (eval $ac_compile) 2>conftest.er1
31478   ac_status=$?
31479   grep -v '^ *+' conftest.er1 >conftest.err
31480   rm -f conftest.er1
31481   cat conftest.err >&5
31482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483   (exit $ac_status); } &&
31484          { ac_try='test -z "$ac_c_werror_flag"
31485                          || test ! -s conftest.err'
31486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31487   (eval $ac_try) 2>&5
31488   ac_status=$?
31489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490   (exit $ac_status); }; } &&
31491          { ac_try='test -s conftest.$ac_objext'
31492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31493   (eval $ac_try) 2>&5
31494   ac_status=$?
31495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496   (exit $ac_status); }; }; then
31497   ac_lo=$ac_mid; break
31498 else
31499   echo "$as_me: failed program was:" >&5
31500 sed 's/^/| /' conftest.$ac_ext >&5
31501
31502 ac_hi=`expr '(' $ac_mid ')' - 1`
31503                        if test $ac_mid -le $ac_hi; then
31504                          ac_lo= ac_hi=
31505                          break
31506                        fi
31507                        ac_mid=`expr 2 '*' $ac_mid`
31508 fi
31509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31510   done
31511 else
31512   echo "$as_me: failed program was:" >&5
31513 sed 's/^/| /' conftest.$ac_ext >&5
31514
31515 ac_lo= ac_hi=
31516 fi
31517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31518 fi
31519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31520 # Binary search between lo and hi bounds.
31521 while test "x$ac_lo" != "x$ac_hi"; do
31522   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31523   cat >conftest.$ac_ext <<_ACEOF
31524 /* confdefs.h.  */
31525 _ACEOF
31526 cat confdefs.h >>conftest.$ac_ext
31527 cat >>conftest.$ac_ext <<_ACEOF
31528 /* end confdefs.h.  */
31529 $ac_includes_default
31530 int
31531 main ()
31532 {
31533 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
31534 test_array [0] = 0
31535
31536   ;
31537   return 0;
31538 }
31539 _ACEOF
31540 rm -f conftest.$ac_objext
31541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31542   (eval $ac_compile) 2>conftest.er1
31543   ac_status=$?
31544   grep -v '^ *+' conftest.er1 >conftest.err
31545   rm -f conftest.er1
31546   cat conftest.err >&5
31547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548   (exit $ac_status); } &&
31549          { ac_try='test -z "$ac_c_werror_flag"
31550                          || test ! -s conftest.err'
31551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31552   (eval $ac_try) 2>&5
31553   ac_status=$?
31554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555   (exit $ac_status); }; } &&
31556          { ac_try='test -s conftest.$ac_objext'
31557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31558   (eval $ac_try) 2>&5
31559   ac_status=$?
31560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561   (exit $ac_status); }; }; then
31562   ac_hi=$ac_mid
31563 else
31564   echo "$as_me: failed program was:" >&5
31565 sed 's/^/| /' conftest.$ac_ext >&5
31566
31567 ac_lo=`expr '(' $ac_mid ')' + 1`
31568 fi
31569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31570 done
31571 case $ac_lo in
31572 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
31573 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
31574 See \`config.log' for more details." >&5
31575 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
31576 See \`config.log' for more details." >&2;}
31577    { (exit 1); exit 1; }; } ;;
31578 esac
31579 else
31580   if test "$cross_compiling" = yes; then
31581   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
31582 See \`config.log' for more details." >&5
31583 echo "$as_me: error: cannot run test program while cross compiling
31584 See \`config.log' for more details." >&2;}
31585    { (exit 1); exit 1; }; }
31586 else
31587   cat >conftest.$ac_ext <<_ACEOF
31588 /* confdefs.h.  */
31589 _ACEOF
31590 cat confdefs.h >>conftest.$ac_ext
31591 cat >>conftest.$ac_ext <<_ACEOF
31592 /* end confdefs.h.  */
31593 $ac_includes_default
31594 long longval () { return (long) (sizeof (unsigned long)); }
31595 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
31596 #include <stdio.h>
31597 #include <stdlib.h>
31598 int
31599 main ()
31600 {
31601
31602   FILE *f = fopen ("conftest.val", "w");
31603   if (! f)
31604     exit (1);
31605   if (((long) (sizeof (unsigned long))) < 0)
31606     {
31607       long i = longval ();
31608       if (i != ((long) (sizeof (unsigned long))))
31609         exit (1);
31610       fprintf (f, "%ld\n", i);
31611     }
31612   else
31613     {
31614       unsigned long i = ulongval ();
31615       if (i != ((long) (sizeof (unsigned long))))
31616         exit (1);
31617       fprintf (f, "%lu\n", i);
31618     }
31619   exit (ferror (f) || fclose (f) != 0);
31620
31621   ;
31622   return 0;
31623 }
31624 _ACEOF
31625 rm -f conftest$ac_exeext
31626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31627   (eval $ac_link) 2>&5
31628   ac_status=$?
31629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31632   (eval $ac_try) 2>&5
31633   ac_status=$?
31634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635   (exit $ac_status); }; }; then
31636   ac_cv_sizeof_unsigned_long=`cat conftest.val`
31637 else
31638   echo "$as_me: program exited with status $ac_status" >&5
31639 echo "$as_me: failed program was:" >&5
31640 sed 's/^/| /' conftest.$ac_ext >&5
31641
31642 ( exit $ac_status )
31643 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
31644 See \`config.log' for more details." >&5
31645 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
31646 See \`config.log' for more details." >&2;}
31647    { (exit 1); exit 1; }; }
31648 fi
31649 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31650 fi
31651 fi
31652 rm -f conftest.val
31653 else
31654   ac_cv_sizeof_unsigned_long=0
31655 fi
31656 fi
31657 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
31658 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
31659 cat >>confdefs.h <<_ACEOF
31660 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
31661 _ACEOF
31662
31663
31664 echo "$as_me:$LINENO: checking for mp_limb_t" >&5
31665 echo $ECHO_N "checking for mp_limb_t... $ECHO_C" >&6
31666 if test "${ac_cv_type_mp_limb_t+set}" = set; then
31667   echo $ECHO_N "(cached) $ECHO_C" >&6
31668 else
31669   cat >conftest.$ac_ext <<_ACEOF
31670 /* confdefs.h.  */
31671 _ACEOF
31672 cat confdefs.h >>conftest.$ac_ext
31673 cat >>conftest.$ac_ext <<_ACEOF
31674 /* end confdefs.h.  */
31675 #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
31676 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31677 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31678 #define GMP_LIMB_BITS 123
31679 $DEFN_LONG_LONG_LIMB
31680 #include "$srcdir/gmp-h.in"
31681
31682
31683 int
31684 main ()
31685 {
31686 if ((mp_limb_t *) 0)
31687   return 0;
31688 if (sizeof (mp_limb_t))
31689   return 0;
31690   ;
31691   return 0;
31692 }
31693 _ACEOF
31694 rm -f conftest.$ac_objext
31695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31696   (eval $ac_compile) 2>conftest.er1
31697   ac_status=$?
31698   grep -v '^ *+' conftest.er1 >conftest.err
31699   rm -f conftest.er1
31700   cat conftest.err >&5
31701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702   (exit $ac_status); } &&
31703          { ac_try='test -z "$ac_c_werror_flag"
31704                          || test ! -s conftest.err'
31705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31706   (eval $ac_try) 2>&5
31707   ac_status=$?
31708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709   (exit $ac_status); }; } &&
31710          { ac_try='test -s conftest.$ac_objext'
31711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31712   (eval $ac_try) 2>&5
31713   ac_status=$?
31714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715   (exit $ac_status); }; }; then
31716   ac_cv_type_mp_limb_t=yes
31717 else
31718   echo "$as_me: failed program was:" >&5
31719 sed 's/^/| /' conftest.$ac_ext >&5
31720
31721 ac_cv_type_mp_limb_t=no
31722 fi
31723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31724 fi
31725 echo "$as_me:$LINENO: result: $ac_cv_type_mp_limb_t" >&5
31726 echo "${ECHO_T}$ac_cv_type_mp_limb_t" >&6
31727
31728 echo "$as_me:$LINENO: checking size of mp_limb_t" >&5
31729 echo $ECHO_N "checking size of mp_limb_t... $ECHO_C" >&6
31730 if test "${ac_cv_sizeof_mp_limb_t+set}" = set; then
31731   echo $ECHO_N "(cached) $ECHO_C" >&6
31732 else
31733   if test "$ac_cv_type_mp_limb_t" = yes; then
31734   # The cast to unsigned long works around a bug in the HP C Compiler
31735   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31736   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31737   # This bug is HP SR number 8606223364.
31738   if test "$cross_compiling" = yes; then
31739   # Depending upon the size, compute the lo and hi bounds.
31740 cat >conftest.$ac_ext <<_ACEOF
31741 /* confdefs.h.  */
31742 _ACEOF
31743 cat confdefs.h >>conftest.$ac_ext
31744 cat >>conftest.$ac_ext <<_ACEOF
31745 /* end confdefs.h.  */
31746 #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
31747 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31748 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31749 #define GMP_LIMB_BITS 123
31750 $DEFN_LONG_LONG_LIMB
31751 #include "$srcdir/gmp-h.in"
31752
31753
31754 int
31755 main ()
31756 {
31757 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) >= 0)];
31758 test_array [0] = 0
31759
31760   ;
31761   return 0;
31762 }
31763 _ACEOF
31764 rm -f conftest.$ac_objext
31765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31766   (eval $ac_compile) 2>conftest.er1
31767   ac_status=$?
31768   grep -v '^ *+' conftest.er1 >conftest.err
31769   rm -f conftest.er1
31770   cat conftest.err >&5
31771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31772   (exit $ac_status); } &&
31773          { ac_try='test -z "$ac_c_werror_flag"
31774                          || test ! -s conftest.err'
31775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31776   (eval $ac_try) 2>&5
31777   ac_status=$?
31778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31779   (exit $ac_status); }; } &&
31780          { ac_try='test -s conftest.$ac_objext'
31781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31782   (eval $ac_try) 2>&5
31783   ac_status=$?
31784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785   (exit $ac_status); }; }; then
31786   ac_lo=0 ac_mid=0
31787   while :; do
31788     cat >conftest.$ac_ext <<_ACEOF
31789 /* confdefs.h.  */
31790 _ACEOF
31791 cat confdefs.h >>conftest.$ac_ext
31792 cat >>conftest.$ac_ext <<_ACEOF
31793 /* end confdefs.h.  */
31794 #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
31795 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31796 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31797 #define GMP_LIMB_BITS 123
31798 $DEFN_LONG_LONG_LIMB
31799 #include "$srcdir/gmp-h.in"
31800
31801
31802 int
31803 main ()
31804 {
31805 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) <= $ac_mid)];
31806 test_array [0] = 0
31807
31808   ;
31809   return 0;
31810 }
31811 _ACEOF
31812 rm -f conftest.$ac_objext
31813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31814   (eval $ac_compile) 2>conftest.er1
31815   ac_status=$?
31816   grep -v '^ *+' conftest.er1 >conftest.err
31817   rm -f conftest.er1
31818   cat conftest.err >&5
31819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820   (exit $ac_status); } &&
31821          { ac_try='test -z "$ac_c_werror_flag"
31822                          || test ! -s conftest.err'
31823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31824   (eval $ac_try) 2>&5
31825   ac_status=$?
31826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827   (exit $ac_status); }; } &&
31828          { ac_try='test -s conftest.$ac_objext'
31829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31830   (eval $ac_try) 2>&5
31831   ac_status=$?
31832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833   (exit $ac_status); }; }; then
31834   ac_hi=$ac_mid; break
31835 else
31836   echo "$as_me: failed program was:" >&5
31837 sed 's/^/| /' conftest.$ac_ext >&5
31838
31839 ac_lo=`expr $ac_mid + 1`
31840                     if test $ac_lo -le $ac_mid; then
31841                       ac_lo= ac_hi=
31842                       break
31843                     fi
31844                     ac_mid=`expr 2 '*' $ac_mid + 1`
31845 fi
31846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31847   done
31848 else
31849   echo "$as_me: failed program was:" >&5
31850 sed 's/^/| /' conftest.$ac_ext >&5
31851
31852 cat >conftest.$ac_ext <<_ACEOF
31853 /* confdefs.h.  */
31854 _ACEOF
31855 cat confdefs.h >>conftest.$ac_ext
31856 cat >>conftest.$ac_ext <<_ACEOF
31857 /* end confdefs.h.  */
31858 #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
31859 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31860 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31861 #define GMP_LIMB_BITS 123
31862 $DEFN_LONG_LONG_LIMB
31863 #include "$srcdir/gmp-h.in"
31864
31865
31866 int
31867 main ()
31868 {
31869 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) < 0)];
31870 test_array [0] = 0
31871
31872   ;
31873   return 0;
31874 }
31875 _ACEOF
31876 rm -f conftest.$ac_objext
31877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31878   (eval $ac_compile) 2>conftest.er1
31879   ac_status=$?
31880   grep -v '^ *+' conftest.er1 >conftest.err
31881   rm -f conftest.er1
31882   cat conftest.err >&5
31883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884   (exit $ac_status); } &&
31885          { ac_try='test -z "$ac_c_werror_flag"
31886                          || test ! -s conftest.err'
31887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31888   (eval $ac_try) 2>&5
31889   ac_status=$?
31890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891   (exit $ac_status); }; } &&
31892          { ac_try='test -s conftest.$ac_objext'
31893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894   (eval $ac_try) 2>&5
31895   ac_status=$?
31896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897   (exit $ac_status); }; }; then
31898   ac_hi=-1 ac_mid=-1
31899   while :; do
31900     cat >conftest.$ac_ext <<_ACEOF
31901 /* confdefs.h.  */
31902 _ACEOF
31903 cat confdefs.h >>conftest.$ac_ext
31904 cat >>conftest.$ac_ext <<_ACEOF
31905 /* end confdefs.h.  */
31906 #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
31907 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31908 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31909 #define GMP_LIMB_BITS 123
31910 $DEFN_LONG_LONG_LIMB
31911 #include "$srcdir/gmp-h.in"
31912
31913
31914 int
31915 main ()
31916 {
31917 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) >= $ac_mid)];
31918 test_array [0] = 0
31919
31920   ;
31921   return 0;
31922 }
31923 _ACEOF
31924 rm -f conftest.$ac_objext
31925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31926   (eval $ac_compile) 2>conftest.er1
31927   ac_status=$?
31928   grep -v '^ *+' conftest.er1 >conftest.err
31929   rm -f conftest.er1
31930   cat conftest.err >&5
31931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932   (exit $ac_status); } &&
31933          { ac_try='test -z "$ac_c_werror_flag"
31934                          || test ! -s conftest.err'
31935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31936   (eval $ac_try) 2>&5
31937   ac_status=$?
31938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939   (exit $ac_status); }; } &&
31940          { ac_try='test -s conftest.$ac_objext'
31941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31942   (eval $ac_try) 2>&5
31943   ac_status=$?
31944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945   (exit $ac_status); }; }; then
31946   ac_lo=$ac_mid; break
31947 else
31948   echo "$as_me: failed program was:" >&5
31949 sed 's/^/| /' conftest.$ac_ext >&5
31950
31951 ac_hi=`expr '(' $ac_mid ')' - 1`
31952                        if test $ac_mid -le $ac_hi; then
31953                          ac_lo= ac_hi=
31954                          break
31955                        fi
31956                        ac_mid=`expr 2 '*' $ac_mid`
31957 fi
31958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31959   done
31960 else
31961   echo "$as_me: failed program was:" >&5
31962 sed 's/^/| /' conftest.$ac_ext >&5
31963
31964 ac_lo= ac_hi=
31965 fi
31966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31967 fi
31968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31969 # Binary search between lo and hi bounds.
31970 while test "x$ac_lo" != "x$ac_hi"; do
31971   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31972   cat >conftest.$ac_ext <<_ACEOF
31973 /* confdefs.h.  */
31974 _ACEOF
31975 cat confdefs.h >>conftest.$ac_ext
31976 cat >>conftest.$ac_ext <<_ACEOF
31977 /* end confdefs.h.  */
31978 #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
31979 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31980 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31981 #define GMP_LIMB_BITS 123
31982 $DEFN_LONG_LONG_LIMB
31983 #include "$srcdir/gmp-h.in"
31984
31985
31986 int
31987 main ()
31988 {
31989 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) <= $ac_mid)];
31990 test_array [0] = 0
31991
31992   ;
31993   return 0;
31994 }
31995 _ACEOF
31996 rm -f conftest.$ac_objext
31997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31998   (eval $ac_compile) 2>conftest.er1
31999   ac_status=$?
32000   grep -v '^ *+' conftest.er1 >conftest.err
32001   rm -f conftest.er1
32002   cat conftest.err >&5
32003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004   (exit $ac_status); } &&
32005          { ac_try='test -z "$ac_c_werror_flag"
32006                          || test ! -s conftest.err'
32007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32008   (eval $ac_try) 2>&5
32009   ac_status=$?
32010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011   (exit $ac_status); }; } &&
32012          { ac_try='test -s conftest.$ac_objext'
32013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32014   (eval $ac_try) 2>&5
32015   ac_status=$?
32016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32017   (exit $ac_status); }; }; then
32018   ac_hi=$ac_mid
32019 else
32020   echo "$as_me: failed program was:" >&5
32021 sed 's/^/| /' conftest.$ac_ext >&5
32022
32023 ac_lo=`expr '(' $ac_mid ')' + 1`
32024 fi
32025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32026 done
32027 case $ac_lo in
32028 ?*) ac_cv_sizeof_mp_limb_t=$ac_lo;;
32029 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (mp_limb_t), 77
32030 See \`config.log' for more details." >&5
32031 echo "$as_me: error: cannot compute sizeof (mp_limb_t), 77
32032 See \`config.log' for more details." >&2;}
32033    { (exit 1); exit 1; }; } ;;
32034 esac
32035 else
32036   if test "$cross_compiling" = yes; then
32037   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
32038 See \`config.log' for more details." >&5
32039 echo "$as_me: error: cannot run test program while cross compiling
32040 See \`config.log' for more details." >&2;}
32041    { (exit 1); exit 1; }; }
32042 else
32043   cat >conftest.$ac_ext <<_ACEOF
32044 /* confdefs.h.  */
32045 _ACEOF
32046 cat confdefs.h >>conftest.$ac_ext
32047 cat >>conftest.$ac_ext <<_ACEOF
32048 /* end confdefs.h.  */
32049 #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
32050 #define GMP_NAIL_BITS $GMP_NAIL_BITS
32051 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
32052 #define GMP_LIMB_BITS 123
32053 $DEFN_LONG_LONG_LIMB
32054 #include "$srcdir/gmp-h.in"
32055
32056
32057 long longval () { return (long) (sizeof (mp_limb_t)); }
32058 unsigned long ulongval () { return (long) (sizeof (mp_limb_t)); }
32059 #include <stdio.h>
32060 #include <stdlib.h>
32061 int
32062 main ()
32063 {
32064
32065   FILE *f = fopen ("conftest.val", "w");
32066   if (! f)
32067     exit (1);
32068   if (((long) (sizeof (mp_limb_t))) < 0)
32069     {
32070       long i = longval ();
32071       if (i != ((long) (sizeof (mp_limb_t))))
32072         exit (1);
32073       fprintf (f, "%ld\n", i);
32074     }
32075   else
32076     {
32077       unsigned long i = ulongval ();
32078       if (i != ((long) (sizeof (mp_limb_t))))
32079         exit (1);
32080       fprintf (f, "%lu\n", i);
32081     }
32082   exit (ferror (f) || fclose (f) != 0);
32083
32084   ;
32085   return 0;
32086 }
32087 _ACEOF
32088 rm -f conftest$ac_exeext
32089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32090   (eval $ac_link) 2>&5
32091   ac_status=$?
32092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32095   (eval $ac_try) 2>&5
32096   ac_status=$?
32097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32098   (exit $ac_status); }; }; then
32099   ac_cv_sizeof_mp_limb_t=`cat conftest.val`
32100 else
32101   echo "$as_me: program exited with status $ac_status" >&5
32102 echo "$as_me: failed program was:" >&5
32103 sed 's/^/| /' conftest.$ac_ext >&5
32104
32105 ( exit $ac_status )
32106 { { echo "$as_me:$LINENO: error: cannot compute sizeof (mp_limb_t), 77
32107 See \`config.log' for more details." >&5
32108 echo "$as_me: error: cannot compute sizeof (mp_limb_t), 77
32109 See \`config.log' for more details." >&2;}
32110    { (exit 1); exit 1; }; }
32111 fi
32112 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32113 fi
32114 fi
32115 rm -f conftest.val
32116 else
32117   ac_cv_sizeof_mp_limb_t=0
32118 fi
32119 fi
32120 echo "$as_me:$LINENO: result: $ac_cv_sizeof_mp_limb_t" >&5
32121 echo "${ECHO_T}$ac_cv_sizeof_mp_limb_t" >&6
32122 cat >>confdefs.h <<_ACEOF
32123 #define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
32124 _ACEOF
32125
32126
32127 if test "$ac_cv_sizeof_mp_limb_t" = 0; then
32128   { { echo "$as_me:$LINENO: error: Oops, mp_limb_t doesn't seem to work" >&5
32129 echo "$as_me: error: Oops, mp_limb_t doesn't seem to work" >&2;}
32130    { (exit 1); exit 1; }; }
32131 fi
32132 BITS_PER_MP_LIMB=`expr 8 \* $ac_cv_sizeof_mp_limb_t`
32133
32134
32135 echo "define(<SIZEOF_UNSIGNED>,<$ac_cv_sizeof_unsigned>)" >> $gmp_tmpconfigm4
32136
32137
32138 # Check compiler limb size matches gmp-mparam.h
32139 #
32140 # FIXME: Some of the cycle counter objects in the tune directory depend on
32141 # the size of ulong, it'd be possible to check that here, though a mismatch
32142 # probably wouldn't want to be fatal, none of the libgmp assembler code
32143 # depends on ulong.
32144 #
32145 mparam_bits=`sed -n 's/^#define BITS_PER_MP_LIMB[       ][      ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source`
32146 if test -n "$mparam_bits" && test "$mparam_bits" -ne $BITS_PER_MP_LIMB; then
32147   if test "$test_CFLAGS" = set; then
32148     { { echo "$as_me:$LINENO: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
32149 in this configuration expects $mparam_bits bits.
32150 You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
32151 intended ABI, see \"ABI and ISA\" in the manual." >&5
32152 echo "$as_me: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
32153 in this configuration expects $mparam_bits bits.
32154 You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
32155 intended ABI, see \"ABI and ISA\" in the manual." >&2;}
32156    { (exit 1); exit 1; }; }
32157   else
32158     { { echo "$as_me:$LINENO: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
32159 in this configuration expects $mparam_bits bits." >&5
32160 echo "$as_me: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
32161 in this configuration expects $mparam_bits bits." >&2;}
32162    { (exit 1); exit 1; }; }
32163   fi
32164 fi
32165
32166
32167 echo "define(<GMP_LIMB_BITS>,$BITS_PER_MP_LIMB)" >> $gmp_tmpconfigm4
32168
32169
32170 echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4
32171
32172
32173 echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4
32174
32175
32176
32177 # Exclude the mpn random functions from mpbsd since that would drag in the
32178 # top-level rand things, all of which are unnecessary for libmp.  There's
32179 # other unnecessary objects too actually, if we could be bothered figuring
32180 # out exactly which they are.
32181 #
32182 mpn_objs_in_libmp=
32183 for i in $mpn_objs_in_libgmp; do
32184   case $i in
32185   *random*) ;;
32186   *) mpn_objs_in_libmp="$mpn_objs_in_libmp $i" ;;
32187   esac
32188 done
32189
32190
32191
32192
32193
32194
32195
32196 # A recompiled sqr_basecase for use in the tune program, if necessary.
32197 TUNE_SQR_OBJ=
32198 test -d tune || mkdir tune
32199 case $sqr_basecase_source in
32200   *.asm)
32201     sqr_max=`sed -n 's/^def...(SQR_KARATSUBA_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source`
32202     if test -n "$sqr_max"; then
32203       TUNE_SQR_OBJ=sqr_asm.o
32204
32205 cat >>confdefs.h <<_ACEOF
32206 #define TUNE_SQR_KARATSUBA_MAX $sqr_max
32207 _ACEOF
32208
32209     fi
32210     cat >tune/sqr_basecase.c <<EOF
32211 /* not sure that an empty file can compile, so put in a dummy */
32212 int sqr_basecase_dummy;
32213 EOF
32214     ;;
32215   *.c)
32216     TUNE_SQR_OBJ=
32217     cat >>confdefs.h <<\_ACEOF
32218 #define TUNE_SQR_KARATSUBA_MAX SQR_KARATSUBA_MAX_GENERIC
32219 _ACEOF
32220
32221     cat >tune/sqr_basecase.c <<EOF
32222 #define TUNE_PROGRAM_BUILD 1
32223 #define TUNE_PROGRAM_BUILD_SQR 1
32224 #include "mpn/sqr_basecase.c"
32225 EOF
32226     ;;
32227 esac
32228
32229
32230
32231 # Configs for demos/pexpr.c.
32232 #
32233           ac_config_files="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in"
32234
32235 case $ac_cv_func_clock in
32236 yes) HAVE_CLOCK_01=1
32237  ;;
32238 no)  HAVE_CLOCK_01=0 ;;
32239 esac
32240
32241 case $ac_cv_func_cputime in
32242 yes) HAVE_CPUTIME_01=1
32243  ;;
32244 no)  HAVE_CPUTIME_01=0 ;;
32245 esac
32246
32247 case $ac_cv_func_getrusage in
32248 yes) HAVE_GETRUSAGE_01=1
32249  ;;
32250 no)  HAVE_GETRUSAGE_01=0 ;;
32251 esac
32252
32253 case $ac_cv_func_gettimeofday in
32254 yes) HAVE_GETTIMEOFDAY_01=1
32255  ;;
32256 no)  HAVE_GETTIMEOFDAY_01=0 ;;
32257 esac
32258
32259 case $ac_cv_func_sigaction in
32260 yes) HAVE_SIGACTION_01=1
32261  ;;
32262 no)  HAVE_SIGACTION_01=0 ;;
32263 esac
32264
32265 case $ac_cv_func_sigaltstack in
32266 yes) HAVE_SIGALTSTACK_01=1
32267  ;;
32268 no)  HAVE_SIGALTSTACK_01=0 ;;
32269 esac
32270
32271 case $ac_cv_func_sigstack in
32272 yes) HAVE_SIGSTACK_01=1
32273  ;;
32274 no)  HAVE_SIGSTACK_01=0 ;;
32275 esac
32276
32277
32278 case $ac_cv_header_sys_resource_h in
32279 yes) HAVE_SYS_RESOURCE_H_01=1
32280  ;;
32281 no)  HAVE_SYS_RESOURCE_H_01=0 ;;
32282 esac
32283
32284
32285 echo "$as_me:$LINENO: checking for stack_t" >&5
32286 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
32287 if test "${ac_cv_type_stack_t+set}" = set; then
32288   echo $ECHO_N "(cached) $ECHO_C" >&6
32289 else
32290   cat >conftest.$ac_ext <<_ACEOF
32291 /* confdefs.h.  */
32292 _ACEOF
32293 cat confdefs.h >>conftest.$ac_ext
32294 cat >>conftest.$ac_ext <<_ACEOF
32295 /* end confdefs.h.  */
32296 #include <signal.h>
32297
32298 int
32299 main ()
32300 {
32301 if ((stack_t *) 0)
32302   return 0;
32303 if (sizeof (stack_t))
32304   return 0;
32305   ;
32306   return 0;
32307 }
32308 _ACEOF
32309 rm -f conftest.$ac_objext
32310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32311   (eval $ac_compile) 2>conftest.er1
32312   ac_status=$?
32313   grep -v '^ *+' conftest.er1 >conftest.err
32314   rm -f conftest.er1
32315   cat conftest.err >&5
32316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317   (exit $ac_status); } &&
32318          { ac_try='test -z "$ac_c_werror_flag"
32319                          || test ! -s conftest.err'
32320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32321   (eval $ac_try) 2>&5
32322   ac_status=$?
32323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32324   (exit $ac_status); }; } &&
32325          { ac_try='test -s conftest.$ac_objext'
32326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32327   (eval $ac_try) 2>&5
32328   ac_status=$?
32329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32330   (exit $ac_status); }; }; then
32331   ac_cv_type_stack_t=yes
32332 else
32333   echo "$as_me: failed program was:" >&5
32334 sed 's/^/| /' conftest.$ac_ext >&5
32335
32336 ac_cv_type_stack_t=no
32337 fi
32338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32339 fi
32340 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
32341 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
32342 if test $ac_cv_type_stack_t = yes; then
32343
32344 cat >>confdefs.h <<_ACEOF
32345 #define HAVE_STACK_T 1
32346 _ACEOF
32347
32348 HAVE_STACK_T_01=1
32349 else
32350   HAVE_STACK_T_01=0
32351 fi
32352
32353
32354
32355 # Configs for demos/calc directory
32356 #
32357 # AC_SUBST+AC_CONFIG_FILES is used for calc-config.h, rather than AC_DEFINE+
32358 # AC_CONFIG_HEADERS, since with the latter automake (1.8) will then put the
32359 # directory (ie. demos/calc) into $(DEFAULT_INCLUDES) for every Makefile.in,
32360 # which would look very strange.
32361 #
32362 # -lcurses is required by libreadline.  On a typical SVR4 style system this
32363 # normally doesn't have to be given explicitly, since libreadline.so will
32364 # have a NEEDED record for it.  But if someone for some reason is using only
32365 # a static libreadline.a then we must give -lcurses.  Readline (as of
32366 # version 4.3) doesn't use libtool, so we can't rely on a .la to cover
32367 # necessary dependencies.
32368 #
32369 # On a couple of systems we've seen libreadline available, but the headers
32370 # not in the default include path, so check for readline/readline.h.  We've
32371 # also seen readline/history.h missing, not sure if that's just a broken
32372 # install or a very old version, but check that too.
32373 #
32374           ac_config_files="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in"
32375
32376 LIBCURSES=
32377 if test $with_readline != no; then
32378   echo "$as_me:$LINENO: checking for tputs in -lncurses" >&5
32379 echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6
32380 if test "${ac_cv_lib_ncurses_tputs+set}" = set; then
32381   echo $ECHO_N "(cached) $ECHO_C" >&6
32382 else
32383   ac_check_lib_save_LIBS=$LIBS
32384 LIBS="-lncurses  $LIBS"
32385 cat >conftest.$ac_ext <<_ACEOF
32386 /* confdefs.h.  */
32387 _ACEOF
32388 cat confdefs.h >>conftest.$ac_ext
32389 cat >>conftest.$ac_ext <<_ACEOF
32390 /* end confdefs.h.  */
32391
32392 /* Override any gcc2 internal prototype to avoid an error.  */
32393 #ifdef __cplusplus
32394 extern "C"
32395 #endif
32396 /* We use char because int might match the return type of a gcc2
32397    builtin and then its argument prototype would still apply.  */
32398 char tputs ();
32399 int
32400 main ()
32401 {
32402 tputs ();
32403   ;
32404   return 0;
32405 }
32406 _ACEOF
32407 rm -f conftest.$ac_objext conftest$ac_exeext
32408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32409   (eval $ac_link) 2>conftest.er1
32410   ac_status=$?
32411   grep -v '^ *+' conftest.er1 >conftest.err
32412   rm -f conftest.er1
32413   cat conftest.err >&5
32414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415   (exit $ac_status); } &&
32416          { ac_try='test -z "$ac_c_werror_flag"
32417                          || test ! -s conftest.err'
32418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32419   (eval $ac_try) 2>&5
32420   ac_status=$?
32421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422   (exit $ac_status); }; } &&
32423          { ac_try='test -s conftest$ac_exeext'
32424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32425   (eval $ac_try) 2>&5
32426   ac_status=$?
32427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428   (exit $ac_status); }; }; then
32429   ac_cv_lib_ncurses_tputs=yes
32430 else
32431   echo "$as_me: failed program was:" >&5
32432 sed 's/^/| /' conftest.$ac_ext >&5
32433
32434 ac_cv_lib_ncurses_tputs=no
32435 fi
32436 rm -f conftest.err conftest.$ac_objext \
32437       conftest$ac_exeext conftest.$ac_ext
32438 LIBS=$ac_check_lib_save_LIBS
32439 fi
32440 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tputs" >&5
32441 echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6
32442 if test $ac_cv_lib_ncurses_tputs = yes; then
32443   LIBCURSES=-lncurses
32444 else
32445   echo "$as_me:$LINENO: checking for tputs in -lcurses" >&5
32446 echo $ECHO_N "checking for tputs in -lcurses... $ECHO_C" >&6
32447 if test "${ac_cv_lib_curses_tputs+set}" = set; then
32448   echo $ECHO_N "(cached) $ECHO_C" >&6
32449 else
32450   ac_check_lib_save_LIBS=$LIBS
32451 LIBS="-lcurses  $LIBS"
32452 cat >conftest.$ac_ext <<_ACEOF
32453 /* confdefs.h.  */
32454 _ACEOF
32455 cat confdefs.h >>conftest.$ac_ext
32456 cat >>conftest.$ac_ext <<_ACEOF
32457 /* end confdefs.h.  */
32458
32459 /* Override any gcc2 internal prototype to avoid an error.  */
32460 #ifdef __cplusplus
32461 extern "C"
32462 #endif
32463 /* We use char because int might match the return type of a gcc2
32464    builtin and then its argument prototype would still apply.  */
32465 char tputs ();
32466 int
32467 main ()
32468 {
32469 tputs ();
32470   ;
32471   return 0;
32472 }
32473 _ACEOF
32474 rm -f conftest.$ac_objext conftest$ac_exeext
32475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32476   (eval $ac_link) 2>conftest.er1
32477   ac_status=$?
32478   grep -v '^ *+' conftest.er1 >conftest.err
32479   rm -f conftest.er1
32480   cat conftest.err >&5
32481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482   (exit $ac_status); } &&
32483          { ac_try='test -z "$ac_c_werror_flag"
32484                          || test ! -s conftest.err'
32485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32486   (eval $ac_try) 2>&5
32487   ac_status=$?
32488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489   (exit $ac_status); }; } &&
32490          { ac_try='test -s conftest$ac_exeext'
32491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32492   (eval $ac_try) 2>&5
32493   ac_status=$?
32494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495   (exit $ac_status); }; }; then
32496   ac_cv_lib_curses_tputs=yes
32497 else
32498   echo "$as_me: failed program was:" >&5
32499 sed 's/^/| /' conftest.$ac_ext >&5
32500
32501 ac_cv_lib_curses_tputs=no
32502 fi
32503 rm -f conftest.err conftest.$ac_objext \
32504       conftest$ac_exeext conftest.$ac_ext
32505 LIBS=$ac_check_lib_save_LIBS
32506 fi
32507 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tputs" >&5
32508 echo "${ECHO_T}$ac_cv_lib_curses_tputs" >&6
32509 if test $ac_cv_lib_curses_tputs = yes; then
32510   LIBCURSES=-lcurses
32511 fi
32512
32513 fi
32514
32515 fi
32516
32517 use_readline=$with_readline
32518 if test $with_readline = detect; then
32519   use_readline=no
32520   echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
32521 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
32522 if test "${ac_cv_lib_readline_readline+set}" = set; then
32523   echo $ECHO_N "(cached) $ECHO_C" >&6
32524 else
32525   ac_check_lib_save_LIBS=$LIBS
32526 LIBS="-lreadline $LIBCURSES $LIBS"
32527 cat >conftest.$ac_ext <<_ACEOF
32528 /* confdefs.h.  */
32529 _ACEOF
32530 cat confdefs.h >>conftest.$ac_ext
32531 cat >>conftest.$ac_ext <<_ACEOF
32532 /* end confdefs.h.  */
32533
32534 /* Override any gcc2 internal prototype to avoid an error.  */
32535 #ifdef __cplusplus
32536 extern "C"
32537 #endif
32538 /* We use char because int might match the return type of a gcc2
32539    builtin and then its argument prototype would still apply.  */
32540 char readline ();
32541 int
32542 main ()
32543 {
32544 readline ();
32545   ;
32546   return 0;
32547 }
32548 _ACEOF
32549 rm -f conftest.$ac_objext conftest$ac_exeext
32550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32551   (eval $ac_link) 2>conftest.er1
32552   ac_status=$?
32553   grep -v '^ *+' conftest.er1 >conftest.err
32554   rm -f conftest.er1
32555   cat conftest.err >&5
32556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32557   (exit $ac_status); } &&
32558          { ac_try='test -z "$ac_c_werror_flag"
32559                          || test ! -s conftest.err'
32560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32561   (eval $ac_try) 2>&5
32562   ac_status=$?
32563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32564   (exit $ac_status); }; } &&
32565          { ac_try='test -s conftest$ac_exeext'
32566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32567   (eval $ac_try) 2>&5
32568   ac_status=$?
32569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32570   (exit $ac_status); }; }; then
32571   ac_cv_lib_readline_readline=yes
32572 else
32573   echo "$as_me: failed program was:" >&5
32574 sed 's/^/| /' conftest.$ac_ext >&5
32575
32576 ac_cv_lib_readline_readline=no
32577 fi
32578 rm -f conftest.err conftest.$ac_objext \
32579       conftest$ac_exeext conftest.$ac_ext
32580 LIBS=$ac_check_lib_save_LIBS
32581 fi
32582 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
32583 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
32584 if test $ac_cv_lib_readline_readline = yes; then
32585   if test "${ac_cv_header_readline_readline_h+set}" = set; then
32586   echo "$as_me:$LINENO: checking for readline/readline.h" >&5
32587 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
32588 if test "${ac_cv_header_readline_readline_h+set}" = set; then
32589   echo $ECHO_N "(cached) $ECHO_C" >&6
32590 fi
32591 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
32592 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
32593 else
32594   # Is the header compilable?
32595 echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
32596 echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6
32597 cat >conftest.$ac_ext <<_ACEOF
32598 /* confdefs.h.  */
32599 _ACEOF
32600 cat confdefs.h >>conftest.$ac_ext
32601 cat >>conftest.$ac_ext <<_ACEOF
32602 /* end confdefs.h.  */
32603 $ac_includes_default
32604 #include <readline/readline.h>
32605 _ACEOF
32606 rm -f conftest.$ac_objext
32607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32608   (eval $ac_compile) 2>conftest.er1
32609   ac_status=$?
32610   grep -v '^ *+' conftest.er1 >conftest.err
32611   rm -f conftest.er1
32612   cat conftest.err >&5
32613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32614   (exit $ac_status); } &&
32615          { ac_try='test -z "$ac_c_werror_flag"
32616                          || test ! -s conftest.err'
32617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32618   (eval $ac_try) 2>&5
32619   ac_status=$?
32620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621   (exit $ac_status); }; } &&
32622          { ac_try='test -s conftest.$ac_objext'
32623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32624   (eval $ac_try) 2>&5
32625   ac_status=$?
32626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32627   (exit $ac_status); }; }; then
32628   ac_header_compiler=yes
32629 else
32630   echo "$as_me: failed program was:" >&5
32631 sed 's/^/| /' conftest.$ac_ext >&5
32632
32633 ac_header_compiler=no
32634 fi
32635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32637 echo "${ECHO_T}$ac_header_compiler" >&6
32638
32639 # Is the header present?
32640 echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
32641 echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6
32642 cat >conftest.$ac_ext <<_ACEOF
32643 /* confdefs.h.  */
32644 _ACEOF
32645 cat confdefs.h >>conftest.$ac_ext
32646 cat >>conftest.$ac_ext <<_ACEOF
32647 /* end confdefs.h.  */
32648 #include <readline/readline.h>
32649 _ACEOF
32650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32651   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32652   ac_status=$?
32653   grep -v '^ *+' conftest.er1 >conftest.err
32654   rm -f conftest.er1
32655   cat conftest.err >&5
32656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657   (exit $ac_status); } >/dev/null; then
32658   if test -s conftest.err; then
32659     ac_cpp_err=$ac_c_preproc_warn_flag
32660     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32661   else
32662     ac_cpp_err=
32663   fi
32664 else
32665   ac_cpp_err=yes
32666 fi
32667 if test -z "$ac_cpp_err"; then
32668   ac_header_preproc=yes
32669 else
32670   echo "$as_me: failed program was:" >&5
32671 sed 's/^/| /' conftest.$ac_ext >&5
32672
32673   ac_header_preproc=no
32674 fi
32675 rm -f conftest.err conftest.$ac_ext
32676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32677 echo "${ECHO_T}$ac_header_preproc" >&6
32678
32679 # So?  What about this header?
32680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32681   yes:no: )
32682     { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
32683 echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32684     { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
32685 echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
32686     ac_header_preproc=yes
32687     ;;
32688   no:yes:* )
32689     { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
32690 echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
32691     { echo "$as_me:$LINENO: WARNING: readline/readline.h:     check for missing prerequisite headers?" >&5
32692 echo "$as_me: WARNING: readline/readline.h:     check for missing prerequisite headers?" >&2;}
32693     { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
32694 echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
32695     { echo "$as_me:$LINENO: WARNING: readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
32696 echo "$as_me: WARNING: readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32697     { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
32698 echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
32699     { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
32700 echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
32701     (
32702       cat <<\_ASBOX
32703 ## -------------------------------- ##
32704 ## Report this to gmp-bugs@swox.com ##
32705 ## -------------------------------- ##
32706 _ASBOX
32707     ) |
32708       sed "s/^/$as_me: WARNING:     /" >&2
32709     ;;
32710 esac
32711 echo "$as_me:$LINENO: checking for readline/readline.h" >&5
32712 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
32713 if test "${ac_cv_header_readline_readline_h+set}" = set; then
32714   echo $ECHO_N "(cached) $ECHO_C" >&6
32715 else
32716   ac_cv_header_readline_readline_h=$ac_header_preproc
32717 fi
32718 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
32719 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
32720
32721 fi
32722 if test $ac_cv_header_readline_readline_h = yes; then
32723   if test "${ac_cv_header_readline_history_h+set}" = set; then
32724   echo "$as_me:$LINENO: checking for readline/history.h" >&5
32725 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
32726 if test "${ac_cv_header_readline_history_h+set}" = set; then
32727   echo $ECHO_N "(cached) $ECHO_C" >&6
32728 fi
32729 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
32730 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
32731 else
32732   # Is the header compilable?
32733 echo "$as_me:$LINENO: checking readline/history.h usability" >&5
32734 echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
32735 cat >conftest.$ac_ext <<_ACEOF
32736 /* confdefs.h.  */
32737 _ACEOF
32738 cat confdefs.h >>conftest.$ac_ext
32739 cat >>conftest.$ac_ext <<_ACEOF
32740 /* end confdefs.h.  */
32741 $ac_includes_default
32742 #include <readline/history.h>
32743 _ACEOF
32744 rm -f conftest.$ac_objext
32745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32746   (eval $ac_compile) 2>conftest.er1
32747   ac_status=$?
32748   grep -v '^ *+' conftest.er1 >conftest.err
32749   rm -f conftest.er1
32750   cat conftest.err >&5
32751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32752   (exit $ac_status); } &&
32753          { ac_try='test -z "$ac_c_werror_flag"
32754                          || test ! -s conftest.err'
32755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32756   (eval $ac_try) 2>&5
32757   ac_status=$?
32758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759   (exit $ac_status); }; } &&
32760          { ac_try='test -s conftest.$ac_objext'
32761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32762   (eval $ac_try) 2>&5
32763   ac_status=$?
32764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765   (exit $ac_status); }; }; then
32766   ac_header_compiler=yes
32767 else
32768   echo "$as_me: failed program was:" >&5
32769 sed 's/^/| /' conftest.$ac_ext >&5
32770
32771 ac_header_compiler=no
32772 fi
32773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32775 echo "${ECHO_T}$ac_header_compiler" >&6
32776
32777 # Is the header present?
32778 echo "$as_me:$LINENO: checking readline/history.h presence" >&5
32779 echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
32780 cat >conftest.$ac_ext <<_ACEOF
32781 /* confdefs.h.  */
32782 _ACEOF
32783 cat confdefs.h >>conftest.$ac_ext
32784 cat >>conftest.$ac_ext <<_ACEOF
32785 /* end confdefs.h.  */
32786 #include <readline/history.h>
32787 _ACEOF
32788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32790   ac_status=$?
32791   grep -v '^ *+' conftest.er1 >conftest.err
32792   rm -f conftest.er1
32793   cat conftest.err >&5
32794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32795   (exit $ac_status); } >/dev/null; then
32796   if test -s conftest.err; then
32797     ac_cpp_err=$ac_c_preproc_warn_flag
32798     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32799   else
32800     ac_cpp_err=
32801   fi
32802 else
32803   ac_cpp_err=yes
32804 fi
32805 if test -z "$ac_cpp_err"; then
32806   ac_header_preproc=yes
32807 else
32808   echo "$as_me: failed program was:" >&5
32809 sed 's/^/| /' conftest.$ac_ext >&5
32810
32811   ac_header_preproc=no
32812 fi
32813 rm -f conftest.err conftest.$ac_ext
32814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32815 echo "${ECHO_T}$ac_header_preproc" >&6
32816
32817 # So?  What about this header?
32818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32819   yes:no: )
32820     { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
32821 echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32822     { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5
32823 echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;}
32824     ac_header_preproc=yes
32825     ;;
32826   no:yes:* )
32827     { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
32828 echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
32829     { echo "$as_me:$LINENO: WARNING: readline/history.h:     check for missing prerequisite headers?" >&5
32830 echo "$as_me: WARNING: readline/history.h:     check for missing prerequisite headers?" >&2;}
32831     { echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5
32832 echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;}
32833     { echo "$as_me:$LINENO: WARNING: readline/history.h:     section \"Present But Cannot Be Compiled\"" >&5
32834 echo "$as_me: WARNING: readline/history.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32835     { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
32836 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
32837     { echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5
32838 echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;}
32839     (
32840       cat <<\_ASBOX
32841 ## -------------------------------- ##
32842 ## Report this to gmp-bugs@swox.com ##
32843 ## -------------------------------- ##
32844 _ASBOX
32845     ) |
32846       sed "s/^/$as_me: WARNING:     /" >&2
32847     ;;
32848 esac
32849 echo "$as_me:$LINENO: checking for readline/history.h" >&5
32850 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
32851 if test "${ac_cv_header_readline_history_h+set}" = set; then
32852   echo $ECHO_N "(cached) $ECHO_C" >&6
32853 else
32854   ac_cv_header_readline_history_h=$ac_header_preproc
32855 fi
32856 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
32857 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
32858
32859 fi
32860 if test $ac_cv_header_readline_history_h = yes; then
32861   use_readline=yes
32862 fi
32863
32864
32865 fi
32866
32867
32868 fi
32869
32870   echo "$as_me:$LINENO: checking readline detected" >&5
32871 echo $ECHO_N "checking readline detected... $ECHO_C" >&6
32872   echo "$as_me:$LINENO: result: $use_readline" >&5
32873 echo "${ECHO_T}$use_readline" >&6
32874 fi
32875 if test $use_readline = yes; then
32876   WITH_READLINE_01=1
32877
32878   LIBREADLINE=-lreadline
32879
32880 else
32881   WITH_READLINE_01=0
32882 fi
32883 for ac_prog in 'bison -y' byacc
32884 do
32885   # Extract the first word of "$ac_prog", so it can be a program name with args.
32886 set dummy $ac_prog; ac_word=$2
32887 echo "$as_me:$LINENO: checking for $ac_word" >&5
32888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32889 if test "${ac_cv_prog_YACC+set}" = set; then
32890   echo $ECHO_N "(cached) $ECHO_C" >&6
32891 else
32892   if test -n "$YACC"; then
32893   ac_cv_prog_YACC="$YACC" # Let the user override the test.
32894 else
32895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32896 for as_dir in $PATH
32897 do
32898   IFS=$as_save_IFS
32899   test -z "$as_dir" && as_dir=.
32900   for ac_exec_ext in '' $ac_executable_extensions; do
32901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32902     ac_cv_prog_YACC="$ac_prog"
32903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32904     break 2
32905   fi
32906 done
32907 done
32908
32909 fi
32910 fi
32911 YACC=$ac_cv_prog_YACC
32912 if test -n "$YACC"; then
32913   echo "$as_me:$LINENO: result: $YACC" >&5
32914 echo "${ECHO_T}$YACC" >&6
32915 else
32916   echo "$as_me:$LINENO: result: no" >&5
32917 echo "${ECHO_T}no" >&6
32918 fi
32919
32920   test -n "$YACC" && break
32921 done
32922 test -n "$YACC" || YACC="yacc"
32923
32924 for ac_prog in flex lex
32925 do
32926   # Extract the first word of "$ac_prog", so it can be a program name with args.
32927 set dummy $ac_prog; ac_word=$2
32928 echo "$as_me:$LINENO: checking for $ac_word" >&5
32929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32930 if test "${ac_cv_prog_LEX+set}" = set; then
32931   echo $ECHO_N "(cached) $ECHO_C" >&6
32932 else
32933   if test -n "$LEX"; then
32934   ac_cv_prog_LEX="$LEX" # Let the user override the test.
32935 else
32936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32937 for as_dir in $PATH
32938 do
32939   IFS=$as_save_IFS
32940   test -z "$as_dir" && as_dir=.
32941   for ac_exec_ext in '' $ac_executable_extensions; do
32942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32943     ac_cv_prog_LEX="$ac_prog"
32944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32945     break 2
32946   fi
32947 done
32948 done
32949
32950 fi
32951 fi
32952 LEX=$ac_cv_prog_LEX
32953 if test -n "$LEX"; then
32954   echo "$as_me:$LINENO: result: $LEX" >&5
32955 echo "${ECHO_T}$LEX" >&6
32956 else
32957   echo "$as_me:$LINENO: result: no" >&5
32958 echo "${ECHO_T}no" >&6
32959 fi
32960
32961   test -n "$LEX" && break
32962 done
32963 test -n "$LEX" || LEX=":"
32964
32965 if test -z "$LEXLIB"
32966 then
32967   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
32968 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
32969 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
32970   echo $ECHO_N "(cached) $ECHO_C" >&6
32971 else
32972   ac_check_lib_save_LIBS=$LIBS
32973 LIBS="-lfl  $LIBS"
32974 cat >conftest.$ac_ext <<_ACEOF
32975 /* confdefs.h.  */
32976 _ACEOF
32977 cat confdefs.h >>conftest.$ac_ext
32978 cat >>conftest.$ac_ext <<_ACEOF
32979 /* end confdefs.h.  */
32980
32981 /* Override any gcc2 internal prototype to avoid an error.  */
32982 #ifdef __cplusplus
32983 extern "C"
32984 #endif
32985 /* We use char because int might match the return type of a gcc2
32986    builtin and then its argument prototype would still apply.  */
32987 char yywrap ();
32988 int
32989 main ()
32990 {
32991 yywrap ();
32992   ;
32993   return 0;
32994 }
32995 _ACEOF
32996 rm -f conftest.$ac_objext conftest$ac_exeext
32997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32998   (eval $ac_link) 2>conftest.er1
32999   ac_status=$?
33000   grep -v '^ *+' conftest.er1 >conftest.err
33001   rm -f conftest.er1
33002   cat conftest.err >&5
33003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33004   (exit $ac_status); } &&
33005          { ac_try='test -z "$ac_c_werror_flag"
33006                          || test ! -s conftest.err'
33007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33008   (eval $ac_try) 2>&5
33009   ac_status=$?
33010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011   (exit $ac_status); }; } &&
33012          { ac_try='test -s conftest$ac_exeext'
33013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33014   (eval $ac_try) 2>&5
33015   ac_status=$?
33016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017   (exit $ac_status); }; }; then
33018   ac_cv_lib_fl_yywrap=yes
33019 else
33020   echo "$as_me: failed program was:" >&5
33021 sed 's/^/| /' conftest.$ac_ext >&5
33022
33023 ac_cv_lib_fl_yywrap=no
33024 fi
33025 rm -f conftest.err conftest.$ac_objext \
33026       conftest$ac_exeext conftest.$ac_ext
33027 LIBS=$ac_check_lib_save_LIBS
33028 fi
33029 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
33030 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
33031 if test $ac_cv_lib_fl_yywrap = yes; then
33032   LEXLIB="-lfl"
33033 else
33034   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
33035 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
33036 if test "${ac_cv_lib_l_yywrap+set}" = set; then
33037   echo $ECHO_N "(cached) $ECHO_C" >&6
33038 else
33039   ac_check_lib_save_LIBS=$LIBS
33040 LIBS="-ll  $LIBS"
33041 cat >conftest.$ac_ext <<_ACEOF
33042 /* confdefs.h.  */
33043 _ACEOF
33044 cat confdefs.h >>conftest.$ac_ext
33045 cat >>conftest.$ac_ext <<_ACEOF
33046 /* end confdefs.h.  */
33047
33048 /* Override any gcc2 internal prototype to avoid an error.  */
33049 #ifdef __cplusplus
33050 extern "C"
33051 #endif
33052 /* We use char because int might match the return type of a gcc2
33053    builtin and then its argument prototype would still apply.  */
33054 char yywrap ();
33055 int
33056 main ()
33057 {
33058 yywrap ();
33059   ;
33060   return 0;
33061 }
33062 _ACEOF
33063 rm -f conftest.$ac_objext conftest$ac_exeext
33064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33065   (eval $ac_link) 2>conftest.er1
33066   ac_status=$?
33067   grep -v '^ *+' conftest.er1 >conftest.err
33068   rm -f conftest.er1
33069   cat conftest.err >&5
33070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33071   (exit $ac_status); } &&
33072          { ac_try='test -z "$ac_c_werror_flag"
33073                          || test ! -s conftest.err'
33074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33075   (eval $ac_try) 2>&5
33076   ac_status=$?
33077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078   (exit $ac_status); }; } &&
33079          { ac_try='test -s conftest$ac_exeext'
33080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33081   (eval $ac_try) 2>&5
33082   ac_status=$?
33083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084   (exit $ac_status); }; }; then
33085   ac_cv_lib_l_yywrap=yes
33086 else
33087   echo "$as_me: failed program was:" >&5
33088 sed 's/^/| /' conftest.$ac_ext >&5
33089
33090 ac_cv_lib_l_yywrap=no
33091 fi
33092 rm -f conftest.err conftest.$ac_objext \
33093       conftest$ac_exeext conftest.$ac_ext
33094 LIBS=$ac_check_lib_save_LIBS
33095 fi
33096 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
33097 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
33098 if test $ac_cv_lib_l_yywrap = yes; then
33099   LEXLIB="-ll"
33100 fi
33101
33102 fi
33103
33104 fi
33105
33106 if test "x$LEX" != "x:"; then
33107   echo "$as_me:$LINENO: checking lex output file root" >&5
33108 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
33109 if test "${ac_cv_prog_lex_root+set}" = set; then
33110   echo $ECHO_N "(cached) $ECHO_C" >&6
33111 else
33112   # The minimal lex program is just a single line: %%.  But some broken lexes
33113 # (Solaris, I think it was) want two %% lines, so accommodate them.
33114 cat >conftest.l <<_ACEOF
33115 %%
33116 %%
33117 _ACEOF
33118 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
33119   (eval $LEX conftest.l) 2>&5
33120   ac_status=$?
33121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122   (exit $ac_status); }
33123 if test -f lex.yy.c; then
33124   ac_cv_prog_lex_root=lex.yy
33125 elif test -f lexyy.c; then
33126   ac_cv_prog_lex_root=lexyy
33127 else
33128   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
33129 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
33130    { (exit 1); exit 1; }; }
33131 fi
33132 fi
33133 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
33134 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
33135 rm -f conftest.l
33136 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
33137
33138 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
33139 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
33140 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
33141   echo $ECHO_N "(cached) $ECHO_C" >&6
33142 else
33143   # POSIX says lex can declare yytext either as a pointer or an array; the
33144 # default is implementation-dependent. Figure out which it is, since
33145 # not all implementations provide the %pointer and %array declarations.
33146 ac_cv_prog_lex_yytext_pointer=no
33147 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
33148 ac_save_LIBS=$LIBS
33149 LIBS="$LIBS $LEXLIB"
33150 cat >conftest.$ac_ext <<_ACEOF
33151 `cat $LEX_OUTPUT_ROOT.c`
33152 _ACEOF
33153 rm -f conftest.$ac_objext conftest$ac_exeext
33154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33155   (eval $ac_link) 2>conftest.er1
33156   ac_status=$?
33157   grep -v '^ *+' conftest.er1 >conftest.err
33158   rm -f conftest.er1
33159   cat conftest.err >&5
33160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161   (exit $ac_status); } &&
33162          { ac_try='test -z "$ac_c_werror_flag"
33163                          || test ! -s conftest.err'
33164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33165   (eval $ac_try) 2>&5
33166   ac_status=$?
33167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168   (exit $ac_status); }; } &&
33169          { ac_try='test -s conftest$ac_exeext'
33170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33171   (eval $ac_try) 2>&5
33172   ac_status=$?
33173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33174   (exit $ac_status); }; }; then
33175   ac_cv_prog_lex_yytext_pointer=yes
33176 else
33177   echo "$as_me: failed program was:" >&5
33178 sed 's/^/| /' conftest.$ac_ext >&5
33179
33180 fi
33181 rm -f conftest.err conftest.$ac_objext \
33182       conftest$ac_exeext conftest.$ac_ext
33183 LIBS=$ac_save_LIBS
33184 rm -f "${LEX_OUTPUT_ROOT}.c"
33185
33186 fi
33187 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
33188 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
33189 if test $ac_cv_prog_lex_yytext_pointer = yes; then
33190
33191 cat >>confdefs.h <<\_ACEOF
33192 #define YYTEXT_POINTER 1
33193 _ACEOF
33194
33195 fi
33196
33197 fi
33198 if test "$LEX" = :; then
33199   LEX=${am_missing_run}flex
33200 fi
33201
33202 # Configs for demos/expr directory
33203 #
33204 # Libtool already runs an AC_CHECK_TOOL for ranlib, but we give
33205 # AC_PROG_RANLIB anyway since automake is supposed to complain if it's not
33206 # called.  (Automake 1.8.4 doesn't, at least not when the only library is in
33207 # an EXTRA_LIBRARIES.)
33208 #
33209 if test -n "$ac_tool_prefix"; then
33210   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33211 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33212 echo "$as_me:$LINENO: checking for $ac_word" >&5
33213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33214 if test "${ac_cv_prog_RANLIB+set}" = set; then
33215   echo $ECHO_N "(cached) $ECHO_C" >&6
33216 else
33217   if test -n "$RANLIB"; then
33218   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
33219 else
33220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33221 for as_dir in $PATH
33222 do
33223   IFS=$as_save_IFS
33224   test -z "$as_dir" && as_dir=.
33225   for ac_exec_ext in '' $ac_executable_extensions; do
33226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33227     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33229     break 2
33230   fi
33231 done
33232 done
33233
33234 fi
33235 fi
33236 RANLIB=$ac_cv_prog_RANLIB
33237 if test -n "$RANLIB"; then
33238   echo "$as_me:$LINENO: result: $RANLIB" >&5
33239 echo "${ECHO_T}$RANLIB" >&6
33240 else
33241   echo "$as_me:$LINENO: result: no" >&5
33242 echo "${ECHO_T}no" >&6
33243 fi
33244
33245 fi
33246 if test -z "$ac_cv_prog_RANLIB"; then
33247   ac_ct_RANLIB=$RANLIB
33248   # Extract the first word of "ranlib", so it can be a program name with args.
33249 set dummy ranlib; ac_word=$2
33250 echo "$as_me:$LINENO: checking for $ac_word" >&5
33251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33252 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33253   echo $ECHO_N "(cached) $ECHO_C" >&6
33254 else
33255   if test -n "$ac_ct_RANLIB"; then
33256   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33257 else
33258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33259 for as_dir in $PATH
33260 do
33261   IFS=$as_save_IFS
33262   test -z "$as_dir" && as_dir=.
33263   for ac_exec_ext in '' $ac_executable_extensions; do
33264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33265     ac_cv_prog_ac_ct_RANLIB="ranlib"
33266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33267     break 2
33268   fi
33269 done
33270 done
33271
33272   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33273 fi
33274 fi
33275 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33276 if test -n "$ac_ct_RANLIB"; then
33277   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33278 echo "${ECHO_T}$ac_ct_RANLIB" >&6
33279 else
33280   echo "$as_me:$LINENO: result: no" >&5
33281 echo "${ECHO_T}no" >&6
33282 fi
33283
33284   RANLIB=$ac_ct_RANLIB
33285 else
33286   RANLIB="$ac_cv_prog_RANLIB"
33287 fi
33288
33289
33290
33291 # Create config.m4.
33292
33293 echo "creating $gmp_configm4"
33294 echo "d""nl $gmp_configm4.  Generated automatically by configure." > $gmp_configm4
33295 if test -f $gmp_tmpconfigm4; then
33296   echo "changequote(<,>)" >> $gmp_configm4
33297   echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4
33298   cat $gmp_tmpconfigm4 >> $gmp_configm4
33299   echo ">)" >> $gmp_configm4
33300   echo "changequote(\`,')" >> $gmp_configm4
33301   rm $gmp_tmpconfigm4
33302 fi
33303 echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4
33304 if test -f $gmp_tmpconfigm4i; then
33305   cat $gmp_tmpconfigm4i >> $gmp_configm4
33306   rm $gmp_tmpconfigm4i
33307 fi
33308 if test -f $gmp_tmpconfigm4p; then
33309   cat $gmp_tmpconfigm4p >> $gmp_configm4
33310   rm $gmp_tmpconfigm4p
33311 fi
33312 echo "')" >> $gmp_configm4
33313 echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
33314
33315
33316 # Create Makefiles
33317 # FIXME: Upcoming version of autoconf/automake may not like broken lines.
33318 #        Right now automake isn't accepting the new AC_CONFIG_FILES scheme.
33319
33320                                                                                                                                                                                                                                                                     ac_config_files="$ac_config_files Makefile mpbsd/Makefile mpf/Makefile mpn/Makefile mpq/Makefile mpz/Makefile printf/Makefile scanf/Makefile cxx/Makefile tests/Makefile tests/devel/Makefile tests/mpbsd/Makefile tests/mpf/Makefile tests/mpn/Makefile tests/mpq/Makefile tests/mpz/Makefile tests/rand/Makefile tests/misc/Makefile tests/cxx/Makefile doc/Makefile tune/Makefile demos/Makefile demos/calc/Makefile demos/expr/Makefile gmp.h:gmp-h.in mp.h:mp-h.in"
33321 cat >confcache <<\_ACEOF
33322 # This file is a shell script that caches the results of configure
33323 # tests run on this system so they can be shared between configure
33324 # scripts and configure runs, see configure's option --config-cache.
33325 # It is not useful on other systems.  If it contains results you don't
33326 # want to keep, you may remove or edit it.
33327 #
33328 # config.status only pays attention to the cache file if you give it
33329 # the --recheck option to rerun configure.
33330 #
33331 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33332 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33333 # following values.
33334
33335 _ACEOF
33336
33337 # The following way of writing the cache mishandles newlines in values,
33338 # but we know of no workaround that is simple, portable, and efficient.
33339 # So, don't put newlines in cache variables' values.
33340 # Ultrix sh set writes to stderr and can't be redirected directly,
33341 # and sets the high bit in the cache file unless we assign to the vars.
33342 {
33343   (set) 2>&1 |
33344     case `(ac_space=' '; set | grep ac_space) 2>&1` in
33345     *ac_space=\ *)
33346       # `set' does not quote correctly, so add quotes (double-quote
33347       # substitution turns \\\\ into \\, and sed turns \\ into \).
33348       sed -n \
33349         "s/'/'\\\\''/g;
33350           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33351       ;;
33352     *)
33353       # `set' quotes correctly as required by POSIX, so do not add quotes.
33354       sed -n \
33355         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
33356       ;;
33357     esac;
33358 } |
33359   sed '
33360      t clear
33361      : clear
33362      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33363      t end
33364      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33365      : end' >>confcache
33366 if diff $cache_file confcache >/dev/null 2>&1; then :; else
33367   if test -w $cache_file; then
33368     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33369     cat confcache >$cache_file
33370   else
33371     echo "not updating unwritable cache $cache_file"
33372   fi
33373 fi
33374 rm -f confcache
33375
33376 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33377 # Let make expand exec_prefix.
33378 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33379
33380 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33381 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33382 # trailing colons and then remove the whole line if VPATH becomes empty
33383 # (actually we leave an empty line to preserve line numbers).
33384 if test "x$srcdir" = x.; then
33385   ac_vpsub='/^[  ]*VPATH[        ]*=/{
33386 s/:*\$(srcdir):*/:/;
33387 s/:*\${srcdir}:*/:/;
33388 s/:*@srcdir@:*/:/;
33389 s/^\([^=]*=[     ]*\):*/\1/;
33390 s/:*$//;
33391 s/^[^=]*=[       ]*$//;
33392 }'
33393 fi
33394
33395 DEFS=-DHAVE_CONFIG_H
33396
33397 ac_libobjs=
33398 ac_ltlibobjs=
33399 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33400   # 1. Remove the extension, and $U if already installed.
33401   ac_i=`echo "$ac_i" |
33402          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
33403   # 2. Add them.
33404   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
33405   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
33406 done
33407 LIBOBJS=$ac_libobjs
33408
33409 LTLIBOBJS=$ac_ltlibobjs
33410
33411
33412 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33413   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
33414 Usually this means the macro was only invoked conditionally." >&5
33415 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
33416 Usually this means the macro was only invoked conditionally." >&2;}
33417    { (exit 1); exit 1; }; }
33418 fi
33419 if test -z "${WANT_MPBSD_TRUE}" && test -z "${WANT_MPBSD_FALSE}"; then
33420   { { echo "$as_me:$LINENO: error: conditional \"WANT_MPBSD\" was never defined.
33421 Usually this means the macro was only invoked conditionally." >&5
33422 echo "$as_me: error: conditional \"WANT_MPBSD\" was never defined.
33423 Usually this means the macro was only invoked conditionally." >&2;}
33424    { (exit 1); exit 1; }; }
33425 fi
33426 if test -z "${WANT_CXX_TRUE}" && test -z "${WANT_CXX_FALSE}"; then
33427   { { echo "$as_me:$LINENO: error: conditional \"WANT_CXX\" was never defined.
33428 Usually this means the macro was only invoked conditionally." >&5
33429 echo "$as_me: error: conditional \"WANT_CXX\" was never defined.
33430 Usually this means the macro was only invoked conditionally." >&2;}
33431    { (exit 1); exit 1; }; }
33432 fi
33433 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
33434   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_STATIC\" was never defined.
33435 Usually this means the macro was only invoked conditionally." >&5
33436 echo "$as_me: error: conditional \"ENABLE_STATIC\" was never defined.
33437 Usually this means the macro was only invoked conditionally." >&2;}
33438    { (exit 1); exit 1; }; }
33439 fi
33440
33441 : ${CONFIG_STATUS=./config.status}
33442 ac_clean_files_save=$ac_clean_files
33443 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33444 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33445 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33446 cat >$CONFIG_STATUS <<_ACEOF
33447 #! $SHELL
33448 # Generated by $as_me.
33449 # Run this file to recreate the current configuration.
33450 # Compiler output produced by configure, useful for debugging
33451 # configure, is in config.log if it exists.
33452
33453 debug=false
33454 ac_cs_recheck=false
33455 ac_cs_silent=false
33456 SHELL=\${CONFIG_SHELL-$SHELL}
33457 _ACEOF
33458
33459 cat >>$CONFIG_STATUS <<\_ACEOF
33460 ## --------------------- ##
33461 ## M4sh Initialization.  ##
33462 ## --------------------- ##
33463
33464 # Be Bourne compatible
33465 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33466   emulate sh
33467   NULLCMD=:
33468   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33469   # is contrary to our usage.  Disable this feature.
33470   alias -g '${1+"$@"}'='"$@"'
33471 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
33472   set -o posix
33473 fi
33474 DUALCASE=1; export DUALCASE # for MKS sh
33475
33476 # Support unset when possible.
33477 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33478   as_unset=unset
33479 else
33480   as_unset=false
33481 fi
33482
33483
33484 # Work around bugs in pre-3.0 UWIN ksh.
33485 $as_unset ENV MAIL MAILPATH
33486 PS1='$ '
33487 PS2='> '
33488 PS4='+ '
33489
33490 # NLS nuisances.
33491 for as_var in \
33492   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33493   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33494   LC_TELEPHONE LC_TIME
33495 do
33496   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33497     eval $as_var=C; export $as_var
33498   else
33499     $as_unset $as_var
33500   fi
33501 done
33502
33503 # Required to use basename.
33504 if expr a : '\(a\)' >/dev/null 2>&1; then
33505   as_expr=expr
33506 else
33507   as_expr=false
33508 fi
33509
33510 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
33511   as_basename=basename
33512 else
33513   as_basename=false
33514 fi
33515
33516
33517 # Name of the executable.
33518 as_me=`$as_basename "$0" ||
33519 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33520          X"$0" : 'X\(//\)$' \| \
33521          X"$0" : 'X\(/\)$' \| \
33522          .     : '\(.\)' 2>/dev/null ||
33523 echo X/"$0" |
33524     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
33525           /^X\/\(\/\/\)$/{ s//\1/; q; }
33526           /^X\/\(\/\).*/{ s//\1/; q; }
33527           s/.*/./; q'`
33528
33529
33530 # PATH needs CR, and LINENO needs CR and PATH.
33531 # Avoid depending upon Character Ranges.
33532 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33533 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33534 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33535 as_cr_digits='0123456789'
33536 as_cr_alnum=$as_cr_Letters$as_cr_digits
33537
33538 # The user is always right.
33539 if test "${PATH_SEPARATOR+set}" != set; then
33540   echo "#! /bin/sh" >conf$$.sh
33541   echo  "exit 0"   >>conf$$.sh
33542   chmod +x conf$$.sh
33543   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33544     PATH_SEPARATOR=';'
33545   else
33546     PATH_SEPARATOR=:
33547   fi
33548   rm -f conf$$.sh
33549 fi
33550
33551
33552   as_lineno_1=$LINENO
33553   as_lineno_2=$LINENO
33554   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
33555   test "x$as_lineno_1" != "x$as_lineno_2" &&
33556   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
33557   # Find who we are.  Look in the path if we contain no path at all
33558   # relative or not.
33559   case $0 in
33560     *[\\/]* ) as_myself=$0 ;;
33561     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33562 for as_dir in $PATH
33563 do
33564   IFS=$as_save_IFS
33565   test -z "$as_dir" && as_dir=.
33566   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33567 done
33568
33569        ;;
33570   esac
33571   # We did not find ourselves, most probably we were run as `sh COMMAND'
33572   # in which case we are not to be found in the path.
33573   if test "x$as_myself" = x; then
33574     as_myself=$0
33575   fi
33576   if test ! -f "$as_myself"; then
33577     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
33578 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
33579    { (exit 1); exit 1; }; }
33580   fi
33581   case $CONFIG_SHELL in
33582   '')
33583     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33584 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
33585 do
33586   IFS=$as_save_IFS
33587   test -z "$as_dir" && as_dir=.
33588   for as_base in sh bash ksh sh5; do
33589          case $as_dir in
33590          /*)
33591            if ("$as_dir/$as_base" -c '
33592   as_lineno_1=$LINENO
33593   as_lineno_2=$LINENO
33594   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
33595   test "x$as_lineno_1" != "x$as_lineno_2" &&
33596   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
33597              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
33598              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
33599              CONFIG_SHELL=$as_dir/$as_base
33600              export CONFIG_SHELL
33601              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
33602            fi;;
33603          esac
33604        done
33605 done
33606 ;;
33607   esac
33608
33609   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33610   # uniformly replaced by the line number.  The first 'sed' inserts a
33611   # line-number line before each line; the second 'sed' does the real
33612   # work.  The second script uses 'N' to pair each line-number line
33613   # with the numbered line, and appends trailing '-' during
33614   # substitution so that $LINENO is not a special case at line end.
33615   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33616   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
33617   sed '=' <$as_myself |
33618     sed '
33619       N
33620       s,$,-,
33621       : loop
33622       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
33623       t loop
33624       s,-$,,
33625       s,^['$as_cr_digits']*\n,,
33626     ' >$as_me.lineno &&
33627   chmod +x $as_me.lineno ||
33628     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
33629 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
33630    { (exit 1); exit 1; }; }
33631
33632   # Don't try to exec as it changes $[0], causing all sort of problems
33633   # (the dirname of $[0] is not the place where we might find the
33634   # original and so on.  Autoconf is especially sensible to this).
33635   . ./$as_me.lineno
33636   # Exit status is that of the last command.
33637   exit
33638 }
33639
33640
33641 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
33642   *c*,-n*) ECHO_N= ECHO_C='
33643 ' ECHO_T='      ' ;;
33644   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
33645   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
33646 esac
33647
33648 if expr a : '\(a\)' >/dev/null 2>&1; then
33649   as_expr=expr
33650 else
33651   as_expr=false
33652 fi
33653
33654 rm -f conf$$ conf$$.exe conf$$.file
33655 echo >conf$$.file
33656 if ln -s conf$$.file conf$$ 2>/dev/null; then
33657   # We could just check for DJGPP; but this test a) works b) is more generic
33658   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
33659   if test -f conf$$.exe; then
33660     # Don't use ln at all; we don't have any links
33661     as_ln_s='cp -p'
33662   else
33663     as_ln_s='ln -s'
33664   fi
33665 elif ln conf$$.file conf$$ 2>/dev/null; then
33666   as_ln_s=ln
33667 else
33668   as_ln_s='cp -p'
33669 fi
33670 rm -f conf$$ conf$$.exe conf$$.file
33671
33672 if mkdir -p . 2>/dev/null; then
33673   as_mkdir_p=:
33674 else
33675   test -d ./-p && rmdir ./-p
33676   as_mkdir_p=false
33677 fi
33678
33679 as_executable_p="test -f"
33680
33681 # Sed expression to map a string onto a valid CPP name.
33682 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33683
33684 # Sed expression to map a string onto a valid variable name.
33685 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33686
33687
33688 # IFS
33689 # We need space, tab and new line, in precisely that order.
33690 as_nl='
33691 '
33692 IFS="   $as_nl"
33693
33694 # CDPATH.
33695 $as_unset CDPATH
33696
33697 exec 6>&1
33698
33699 # Open the log real soon, to keep \$[0] and so on meaningful, and to
33700 # report actual input values of CONFIG_FILES etc. instead of their
33701 # values after options handling.  Logging --version etc. is OK.
33702 exec 5>>config.log
33703 {
33704   echo
33705   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33706 ## Running $as_me. ##
33707 _ASBOX
33708 } >&5
33709 cat >&5 <<_CSEOF
33710
33711 This file was extended by GNU MP $as_me 4.2.1, which was
33712 generated by GNU Autoconf 2.59.  Invocation command line was
33713
33714   CONFIG_FILES    = $CONFIG_FILES
33715   CONFIG_HEADERS  = $CONFIG_HEADERS
33716   CONFIG_LINKS    = $CONFIG_LINKS
33717   CONFIG_COMMANDS = $CONFIG_COMMANDS
33718   $ $0 $@
33719
33720 _CSEOF
33721 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
33722 echo >&5
33723 _ACEOF
33724
33725 # Files that config.status was made for.
33726 if test -n "$ac_config_files"; then
33727   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
33728 fi
33729
33730 if test -n "$ac_config_headers"; then
33731   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
33732 fi
33733
33734 if test -n "$ac_config_links"; then
33735   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
33736 fi
33737
33738 if test -n "$ac_config_commands"; then
33739   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
33740 fi
33741
33742 cat >>$CONFIG_STATUS <<\_ACEOF
33743
33744 ac_cs_usage="\
33745 \`$as_me' instantiates files from templates according to the
33746 current configuration.
33747
33748 Usage: $0 [OPTIONS] [FILE]...
33749
33750   -h, --help       print this help, then exit
33751   -V, --version    print version number, then exit
33752   -q, --quiet      do not print progress messages
33753   -d, --debug      don't remove temporary files
33754       --recheck    update $as_me by reconfiguring in the same conditions
33755   --file=FILE[:TEMPLATE]
33756                    instantiate the configuration file FILE
33757   --header=FILE[:TEMPLATE]
33758                    instantiate the configuration header FILE
33759
33760 Configuration files:
33761 $config_files
33762
33763 Configuration headers:
33764 $config_headers
33765
33766 Configuration links:
33767 $config_links
33768
33769 Report bugs to <bug-autoconf@gnu.org>."
33770 _ACEOF
33771
33772 cat >>$CONFIG_STATUS <<_ACEOF
33773 ac_cs_version="\\
33774 GNU MP config.status 4.2.1
33775 configured by $0, generated by GNU Autoconf 2.59,
33776   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
33777
33778 Copyright (C) 2003 Free Software Foundation, Inc.
33779 This config.status script is free software; the Free Software Foundation
33780 gives unlimited permission to copy, distribute and modify it."
33781 srcdir=$srcdir
33782 INSTALL="$INSTALL"
33783 _ACEOF
33784
33785 cat >>$CONFIG_STATUS <<\_ACEOF
33786 # If no file are specified by the user, then we need to provide default
33787 # value.  By we need to know if files were specified by the user.
33788 ac_need_defaults=:
33789 while test $# != 0
33790 do
33791   case $1 in
33792   --*=*)
33793     ac_option=`expr "x$1" : 'x\([^=]*\)='`
33794     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
33795     ac_shift=:
33796     ;;
33797   -*)
33798     ac_option=$1
33799     ac_optarg=$2
33800     ac_shift=shift
33801     ;;
33802   *) # This is not an option, so the user has probably given explicit
33803      # arguments.
33804      ac_option=$1
33805      ac_need_defaults=false;;
33806   esac
33807
33808   case $ac_option in
33809   # Handling of the options.
33810 _ACEOF
33811 cat >>$CONFIG_STATUS <<\_ACEOF
33812   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33813     ac_cs_recheck=: ;;
33814   --version | --vers* | -V )
33815     echo "$ac_cs_version"; exit 0 ;;
33816   --he | --h)
33817     # Conflict between --help and --header
33818     { { echo "$as_me:$LINENO: error: ambiguous option: $1
33819 Try \`$0 --help' for more information." >&5
33820 echo "$as_me: error: ambiguous option: $1
33821 Try \`$0 --help' for more information." >&2;}
33822    { (exit 1); exit 1; }; };;
33823   --help | --hel | -h )
33824     echo "$ac_cs_usage"; exit 0 ;;
33825   --debug | --d* | -d )
33826     debug=: ;;
33827   --file | --fil | --fi | --f )
33828     $ac_shift
33829     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33830     ac_need_defaults=false;;
33831   --header | --heade | --head | --hea )
33832     $ac_shift
33833     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33834     ac_need_defaults=false;;
33835   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33836   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33837     ac_cs_silent=: ;;
33838
33839   # This is an error.
33840   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
33841 Try \`$0 --help' for more information." >&5
33842 echo "$as_me: error: unrecognized option: $1
33843 Try \`$0 --help' for more information." >&2;}
33844    { (exit 1); exit 1; }; } ;;
33845
33846   *) ac_config_targets="$ac_config_targets $1" ;;
33847
33848   esac
33849   shift
33850 done
33851
33852 ac_configure_extra_args=
33853
33854 if $ac_cs_silent; then
33855   exec 6>/dev/null
33856   ac_configure_extra_args="$ac_configure_extra_args --silent"
33857 fi
33858
33859 _ACEOF
33860 cat >>$CONFIG_STATUS <<_ACEOF
33861 if \$ac_cs_recheck; then
33862   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33863   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33864 fi
33865
33866 _ACEOF
33867
33868
33869
33870
33871
33872 cat >>$CONFIG_STATUS <<\_ACEOF
33873 for ac_config_target in $ac_config_targets
33874 do
33875   case "$ac_config_target" in
33876   # Handling of arguments.
33877   "demos/pexpr-config.h" ) CONFIG_FILES="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;;
33878   "demos/calc/calc-config.h" ) CONFIG_FILES="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;;
33879   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33880   "mpbsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpbsd/Makefile" ;;
33881   "mpf/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpf/Makefile" ;;
33882   "mpn/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpn/Makefile" ;;
33883   "mpq/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpq/Makefile" ;;
33884   "mpz/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpz/Makefile" ;;
33885   "printf/Makefile" ) CONFIG_FILES="$CONFIG_FILES printf/Makefile" ;;
33886   "scanf/Makefile" ) CONFIG_FILES="$CONFIG_FILES scanf/Makefile" ;;
33887   "cxx/Makefile" ) CONFIG_FILES="$CONFIG_FILES cxx/Makefile" ;;
33888   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
33889   "tests/devel/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/devel/Makefile" ;;
33890   "tests/mpbsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpbsd/Makefile" ;;
33891   "tests/mpf/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpf/Makefile" ;;
33892   "tests/mpn/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpn/Makefile" ;;
33893   "tests/mpq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpq/Makefile" ;;
33894   "tests/mpz/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpz/Makefile" ;;
33895   "tests/rand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rand/Makefile" ;;
33896   "tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
33897   "tests/cxx/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cxx/Makefile" ;;
33898   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33899   "tune/Makefile" ) CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
33900   "demos/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
33901   "demos/calc/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/calc/Makefile" ;;
33902   "demos/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/expr/Makefile" ;;
33903   "gmp.h" ) CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-h.in" ;;
33904   "mp.h" ) CONFIG_FILES="$CONFIG_FILES mp.h:mp-h.in" ;;
33905   "mpn/$tmp_fn.$tmp_ext" ) CONFIG_LINKS="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;;
33906   "gmp-mparam.h" ) CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;;
33907   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
33908   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33909 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33910    { (exit 1); exit 1; }; };;
33911   esac
33912 done
33913
33914 # If the user did not use the arguments to specify the items to instantiate,
33915 # then the envvar interface is used.  Set only those that are not.
33916 # We use the long form for the default assignment because of an extremely
33917 # bizarre bug on SunOS 4.1.3.
33918 if $ac_need_defaults; then
33919   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33920   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33921   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33922 fi
33923
33924 # Have a temporary directory for convenience.  Make it in the build tree
33925 # simply because there is no reason to put it here, and in addition,
33926 # creating and moving files from /tmp can sometimes cause problems.
33927 # Create a temporary directory, and hook for its removal unless debugging.
33928 $debug ||
33929 {
33930   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
33931   trap '{ (exit 1); exit 1; }' 1 2 13 15
33932 }
33933
33934 # Create a (secure) tmp directory for tmp files.
33935
33936 {
33937   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
33938   test -n "$tmp" && test -d "$tmp"
33939 }  ||
33940 {
33941   tmp=./confstat$$-$RANDOM
33942   (umask 077 && mkdir $tmp)
33943 } ||
33944 {
33945    echo "$me: cannot create a temporary directory in ." >&2
33946    { (exit 1); exit 1; }
33947 }
33948
33949 _ACEOF
33950
33951 cat >>$CONFIG_STATUS <<_ACEOF
33952
33953 #
33954 # CONFIG_FILES section.
33955 #
33956
33957 # No need to generate the scripts if there are no CONFIG_FILES.
33958 # This happens for instance when ./config.status config.h
33959 if test -n "\$CONFIG_FILES"; then
33960   # Protect against being on the right side of a sed subst in config.status.
33961   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
33962    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
33963 s,@SHELL@,$SHELL,;t t
33964 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
33965 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
33966 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
33967 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
33968 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
33969 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
33970 s,@exec_prefix@,$exec_prefix,;t t
33971 s,@prefix@,$prefix,;t t
33972 s,@program_transform_name@,$program_transform_name,;t t
33973 s,@bindir@,$bindir,;t t
33974 s,@sbindir@,$sbindir,;t t
33975 s,@libexecdir@,$libexecdir,;t t
33976 s,@datadir@,$datadir,;t t
33977 s,@sysconfdir@,$sysconfdir,;t t
33978 s,@sharedstatedir@,$sharedstatedir,;t t
33979 s,@localstatedir@,$localstatedir,;t t
33980 s,@libdir@,$libdir,;t t
33981 s,@includedir@,$includedir,;t t
33982 s,@oldincludedir@,$oldincludedir,;t t
33983 s,@infodir@,$infodir,;t t
33984 s,@mandir@,$mandir,;t t
33985 s,@build_alias@,$build_alias,;t t
33986 s,@host_alias@,$host_alias,;t t
33987 s,@target_alias@,$target_alias,;t t
33988 s,@DEFS@,$DEFS,;t t
33989 s,@ECHO_C@,$ECHO_C,;t t
33990 s,@ECHO_N@,$ECHO_N,;t t
33991 s,@ECHO_T@,$ECHO_T,;t t
33992 s,@LIBS@,$LIBS,;t t
33993 s,@build@,$build,;t t
33994 s,@build_cpu@,$build_cpu,;t t
33995 s,@build_vendor@,$build_vendor,;t t
33996 s,@build_os@,$build_os,;t t
33997 s,@host@,$host,;t t
33998 s,@host_cpu@,$host_cpu,;t t
33999 s,@host_vendor@,$host_vendor,;t t
34000 s,@host_os@,$host_os,;t t
34001 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
34002 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
34003 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
34004 s,@CYGPATH_W@,$CYGPATH_W,;t t
34005 s,@PACKAGE@,$PACKAGE,;t t
34006 s,@VERSION@,$VERSION,;t t
34007 s,@ACLOCAL@,$ACLOCAL,;t t
34008 s,@AUTOCONF@,$AUTOCONF,;t t
34009 s,@AUTOMAKE@,$AUTOMAKE,;t t
34010 s,@AUTOHEADER@,$AUTOHEADER,;t t
34011 s,@MAKEINFO@,$MAKEINFO,;t t
34012 s,@AMTAR@,$AMTAR,;t t
34013 s,@install_sh@,$install_sh,;t t
34014 s,@STRIP@,$STRIP,;t t
34015 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
34016 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
34017 s,@mkdir_p@,$mkdir_p,;t t
34018 s,@AWK@,$AWK,;t t
34019 s,@SET_MAKE@,$SET_MAKE,;t t
34020 s,@am__leading_dot@,$am__leading_dot,;t t
34021 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
34022 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
34023 s,@MAINT@,$MAINT,;t t
34024 s,@WANT_MPBSD_TRUE@,$WANT_MPBSD_TRUE,;t t
34025 s,@WANT_MPBSD_FALSE@,$WANT_MPBSD_FALSE,;t t
34026 s,@GMP_NAIL_BITS@,$GMP_NAIL_BITS,;t t
34027 s,@ABI@,$ABI,;t t
34028 s,@HAVE_HOST_CPU_FAMILY_power@,$HAVE_HOST_CPU_FAMILY_power,;t t
34029 s,@HAVE_HOST_CPU_FAMILY_powerpc@,$HAVE_HOST_CPU_FAMILY_powerpc,;t t
34030 s,@GMP_LDFLAGS@,$GMP_LDFLAGS,;t t
34031 s,@LIBGMP_LDFLAGS@,$LIBGMP_LDFLAGS,;t t
34032 s,@LIBGMPXX_LDFLAGS@,$LIBGMPXX_LDFLAGS,;t t
34033 s,@SPEED_CYCLECOUNTER_OBJ@,$SPEED_CYCLECOUNTER_OBJ,;t t
34034 s,@CALLING_CONVENTIONS_OBJS@,$CALLING_CONVENTIONS_OBJS,;t t
34035 s,@DEFN_LONG_LONG_LIMB@,$DEFN_LONG_LONG_LIMB,;t t
34036 s,@CC@,$CC,;t t
34037 s,@CFLAGS@,$CFLAGS,;t t
34038 s,@LDFLAGS@,$LDFLAGS,;t t
34039 s,@CPPFLAGS@,$CPPFLAGS,;t t
34040 s,@ac_ct_CC@,$ac_ct_CC,;t t
34041 s,@EXEEXT@,$EXEEXT,;t t
34042 s,@OBJEXT@,$OBJEXT,;t t
34043 s,@CPP@,$CPP,;t t
34044 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
34045 s,@CPP_FOR_BUILD@,$CPP_FOR_BUILD,;t t
34046 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
34047 s,@U_FOR_BUILD@,$U_FOR_BUILD,;t t
34048 s,@LIBM_FOR_BUILD@,$LIBM_FOR_BUILD,;t t
34049 s,@CCAS@,$CCAS,;t t
34050 s,@CXX@,$CXX,;t t
34051 s,@CXXFLAGS@,$CXXFLAGS,;t t
34052 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
34053 s,@WANT_CXX_TRUE@,$WANT_CXX_TRUE,;t t
34054 s,@WANT_CXX_FALSE@,$WANT_CXX_FALSE,;t t
34055 s,@CXXCPP@,$CXXCPP,;t t
34056 s,@EGREP@,$EGREP,;t t
34057 s,@U@,$U,;t t
34058 s,@ANSI2KNR@,$ANSI2KNR,;t t
34059 s,@AR@,$AR,;t t
34060 s,@ac_ct_AR@,$ac_ct_AR,;t t
34061 s,@LIBGMP_DLL@,$LIBGMP_DLL,;t t
34062 s,@LN_S@,$LN_S,;t t
34063 s,@ECHO@,$ECHO,;t t
34064 s,@RANLIB@,$RANLIB,;t t
34065 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
34066 s,@DLLTOOL@,$DLLTOOL,;t t
34067 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
34068 s,@AS@,$AS,;t t
34069 s,@ac_ct_AS@,$ac_ct_AS,;t t
34070 s,@OBJDUMP@,$OBJDUMP,;t t
34071 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
34072 s,@LIBTOOL@,$LIBTOOL,;t t
34073 s,@ENABLE_STATIC_TRUE@,$ENABLE_STATIC_TRUE,;t t
34074 s,@ENABLE_STATIC_FALSE@,$ENABLE_STATIC_FALSE,;t t
34075 s,@LIBM@,$LIBM,;t t
34076 s,@TAL_OBJECT@,$TAL_OBJECT,;t t
34077 s,@M4@,$M4,;t t
34078 s,@BITS_PER_MP_LIMB@,$BITS_PER_MP_LIMB,;t t
34079 s,@mpn_objs_in_libmp@,$mpn_objs_in_libmp,;t t
34080 s,@mpn_objects@,$mpn_objects,;t t
34081 s,@mpn_objs_in_libgmp@,$mpn_objs_in_libgmp,;t t
34082 s,@gmp_srclinks@,$gmp_srclinks,;t t
34083 s,@TUNE_SQR_OBJ@,$TUNE_SQR_OBJ,;t t
34084 s,@HAVE_CLOCK_01@,$HAVE_CLOCK_01,;t t
34085 s,@HAVE_CPUTIME_01@,$HAVE_CPUTIME_01,;t t
34086 s,@HAVE_GETRUSAGE_01@,$HAVE_GETRUSAGE_01,;t t
34087 s,@HAVE_GETTIMEOFDAY_01@,$HAVE_GETTIMEOFDAY_01,;t t
34088 s,@HAVE_SIGACTION_01@,$HAVE_SIGACTION_01,;t t
34089 s,@HAVE_SIGALTSTACK_01@,$HAVE_SIGALTSTACK_01,;t t
34090 s,@HAVE_SIGSTACK_01@,$HAVE_SIGSTACK_01,;t t
34091 s,@HAVE_SYS_RESOURCE_H_01@,$HAVE_SYS_RESOURCE_H_01,;t t
34092 s,@HAVE_STACK_T_01@,$HAVE_STACK_T_01,;t t
34093 s,@LIBCURSES@,$LIBCURSES,;t t
34094 s,@WITH_READLINE_01@,$WITH_READLINE_01,;t t
34095 s,@LIBREADLINE@,$LIBREADLINE,;t t
34096 s,@YACC@,$YACC,;t t
34097 s,@LEX@,$LEX,;t t
34098 s,@LEXLIB@,$LEXLIB,;t t
34099 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
34100 s,@LIBOBJS@,$LIBOBJS,;t t
34101 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
34102 CEOF
34103
34104 _ACEOF
34105
34106   cat >>$CONFIG_STATUS <<\_ACEOF
34107   # Split the substitutions into bite-sized pieces for seds with
34108   # small command number limits, like on Digital OSF/1 and HP-UX.
34109   ac_max_sed_lines=48
34110   ac_sed_frag=1 # Number of current file.
34111   ac_beg=1 # First line for current file.
34112   ac_end=$ac_max_sed_lines # Line after last line for current file.
34113   ac_more_lines=:
34114   ac_sed_cmds=
34115   while $ac_more_lines; do
34116     if test $ac_beg -gt 1; then
34117       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
34118     else
34119       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
34120     fi
34121     if test ! -s $tmp/subs.frag; then
34122       ac_more_lines=false
34123     else
34124       # The purpose of the label and of the branching condition is to
34125       # speed up the sed processing (if there are no `@' at all, there
34126       # is no need to browse any of the substitutions).
34127       # These are the two extra sed commands mentioned above.
34128       (echo ':t
34129   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
34130       if test -z "$ac_sed_cmds"; then
34131         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
34132       else
34133         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
34134       fi
34135       ac_sed_frag=`expr $ac_sed_frag + 1`
34136       ac_beg=$ac_end
34137       ac_end=`expr $ac_end + $ac_max_sed_lines`
34138     fi
34139   done
34140   if test -z "$ac_sed_cmds"; then
34141     ac_sed_cmds=cat
34142   fi
34143 fi # test -n "$CONFIG_FILES"
34144
34145 _ACEOF
34146 cat >>$CONFIG_STATUS <<\_ACEOF
34147 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
34148   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
34149   case $ac_file in
34150   - | *:- | *:-:* ) # input from stdin
34151         cat >$tmp/stdin
34152         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34153         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34154   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34155         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34156   * )   ac_file_in=$ac_file.in ;;
34157   esac
34158
34159   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
34160   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
34161 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34162          X"$ac_file" : 'X\(//\)[^/]' \| \
34163          X"$ac_file" : 'X\(//\)$' \| \
34164          X"$ac_file" : 'X\(/\)' \| \
34165          .     : '\(.\)' 2>/dev/null ||
34166 echo X"$ac_file" |
34167     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34168           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34169           /^X\(\/\/\)$/{ s//\1/; q; }
34170           /^X\(\/\).*/{ s//\1/; q; }
34171           s/.*/./; q'`
34172   { if $as_mkdir_p; then
34173     mkdir -p "$ac_dir"
34174   else
34175     as_dir="$ac_dir"
34176     as_dirs=
34177     while test ! -d "$as_dir"; do
34178       as_dirs="$as_dir $as_dirs"
34179       as_dir=`(dirname "$as_dir") 2>/dev/null ||
34180 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34181          X"$as_dir" : 'X\(//\)[^/]' \| \
34182          X"$as_dir" : 'X\(//\)$' \| \
34183          X"$as_dir" : 'X\(/\)' \| \
34184          .     : '\(.\)' 2>/dev/null ||
34185 echo X"$as_dir" |
34186     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34187           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34188           /^X\(\/\/\)$/{ s//\1/; q; }
34189           /^X\(\/\).*/{ s//\1/; q; }
34190           s/.*/./; q'`
34191     done
34192     test ! -n "$as_dirs" || mkdir $as_dirs
34193   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
34194 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
34195    { (exit 1); exit 1; }; }; }
34196
34197   ac_builddir=.
34198
34199 if test "$ac_dir" != .; then
34200   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34201   # A "../" for each directory in $ac_dir_suffix.
34202   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
34203 else
34204   ac_dir_suffix= ac_top_builddir=
34205 fi
34206
34207 case $srcdir in
34208   .)  # No --srcdir option.  We are building in place.
34209     ac_srcdir=.
34210     if test -z "$ac_top_builddir"; then
34211        ac_top_srcdir=.
34212     else
34213        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
34214     fi ;;
34215   [\\/]* | ?:[\\/]* )  # Absolute path.
34216     ac_srcdir=$srcdir$ac_dir_suffix;
34217     ac_top_srcdir=$srcdir ;;
34218   *) # Relative path.
34219     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
34220     ac_top_srcdir=$ac_top_builddir$srcdir ;;
34221 esac
34222
34223 # Do not use `cd foo && pwd` to compute absolute paths, because
34224 # the directories may not exist.
34225 case `pwd` in
34226 .) ac_abs_builddir="$ac_dir";;
34227 *)
34228   case "$ac_dir" in
34229   .) ac_abs_builddir=`pwd`;;
34230   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
34231   *) ac_abs_builddir=`pwd`/"$ac_dir";;
34232   esac;;
34233 esac
34234 case $ac_abs_builddir in
34235 .) ac_abs_top_builddir=${ac_top_builddir}.;;
34236 *)
34237   case ${ac_top_builddir}. in
34238   .) ac_abs_top_builddir=$ac_abs_builddir;;
34239   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
34240   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
34241   esac;;
34242 esac
34243 case $ac_abs_builddir in
34244 .) ac_abs_srcdir=$ac_srcdir;;
34245 *)
34246   case $ac_srcdir in
34247   .) ac_abs_srcdir=$ac_abs_builddir;;
34248   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
34249   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
34250   esac;;
34251 esac
34252 case $ac_abs_builddir in
34253 .) ac_abs_top_srcdir=$ac_top_srcdir;;
34254 *)
34255   case $ac_top_srcdir in
34256   .) ac_abs_top_srcdir=$ac_abs_builddir;;
34257   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
34258   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
34259   esac;;
34260 esac
34261
34262
34263   case $INSTALL in
34264   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34265   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
34266   esac
34267
34268   if test x"$ac_file" != x-; then
34269     { echo "$as_me:$LINENO: creating $ac_file" >&5
34270 echo "$as_me: creating $ac_file" >&6;}
34271     rm -f "$ac_file"
34272   fi
34273   # Let's still pretend it is `configure' which instantiates (i.e., don't
34274   # use $as_me), people would be surprised to read:
34275   #    /* config.h.  Generated by config.status.  */
34276   if test x"$ac_file" = x-; then
34277     configure_input=
34278   else
34279     configure_input="$ac_file.  "
34280   fi
34281   configure_input=$configure_input"Generated from `echo $ac_file_in |
34282                                      sed 's,.*/,,'` by configure."
34283
34284   # First look for the input files in the build tree, otherwise in the
34285   # src tree.
34286   ac_file_inputs=`IFS=:
34287     for f in $ac_file_in; do
34288       case $f in
34289       -) echo $tmp/stdin ;;
34290       [\\/$]*)
34291          # Absolute (can't be DOS-style, as IFS=:)
34292          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34293 echo "$as_me: error: cannot find input file: $f" >&2;}
34294    { (exit 1); exit 1; }; }
34295          echo "$f";;
34296       *) # Relative
34297          if test -f "$f"; then
34298            # Build tree
34299            echo "$f"
34300          elif test -f "$srcdir/$f"; then
34301            # Source tree
34302            echo "$srcdir/$f"
34303          else
34304            # /dev/null tree
34305            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34306 echo "$as_me: error: cannot find input file: $f" >&2;}
34307    { (exit 1); exit 1; }; }
34308          fi;;
34309       esac
34310     done` || { (exit 1); exit 1; }
34311 _ACEOF
34312 cat >>$CONFIG_STATUS <<_ACEOF
34313   sed "$ac_vpsub
34314 $extrasub
34315 _ACEOF
34316 cat >>$CONFIG_STATUS <<\_ACEOF
34317 :t
34318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34319 s,@configure_input@,$configure_input,;t t
34320 s,@srcdir@,$ac_srcdir,;t t
34321 s,@abs_srcdir@,$ac_abs_srcdir,;t t
34322 s,@top_srcdir@,$ac_top_srcdir,;t t
34323 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
34324 s,@builddir@,$ac_builddir,;t t
34325 s,@abs_builddir@,$ac_abs_builddir,;t t
34326 s,@top_builddir@,$ac_top_builddir,;t t
34327 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
34328 s,@INSTALL@,$ac_INSTALL,;t t
34329 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
34330   rm -f $tmp/stdin
34331   if test x"$ac_file" != x-; then
34332     mv $tmp/out $ac_file
34333   else
34334     cat $tmp/out
34335     rm -f $tmp/out
34336   fi
34337
34338 done
34339 _ACEOF
34340 cat >>$CONFIG_STATUS <<\_ACEOF
34341
34342 #
34343 # CONFIG_HEADER section.
34344 #
34345
34346 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
34347 # NAME is the cpp macro being defined and VALUE is the value it is being given.
34348 #
34349 # ac_d sets the value in "#define NAME VALUE" lines.
34350 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
34351 ac_dB='[         ].*$,\1#\2'
34352 ac_dC=' '
34353 ac_dD=',;t'
34354 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
34355 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
34356 ac_uB='$,\1#\2define\3'
34357 ac_uC=' '
34358 ac_uD=',;t'
34359
34360 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
34361   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
34362   case $ac_file in
34363   - | *:- | *:-:* ) # input from stdin
34364         cat >$tmp/stdin
34365         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34366         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34367   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34368         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34369   * )   ac_file_in=$ac_file.in ;;
34370   esac
34371
34372   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
34373 echo "$as_me: creating $ac_file" >&6;}
34374
34375   # First look for the input files in the build tree, otherwise in the
34376   # src tree.
34377   ac_file_inputs=`IFS=:
34378     for f in $ac_file_in; do
34379       case $f in
34380       -) echo $tmp/stdin ;;
34381       [\\/$]*)
34382          # Absolute (can't be DOS-style, as IFS=:)
34383          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34384 echo "$as_me: error: cannot find input file: $f" >&2;}
34385    { (exit 1); exit 1; }; }
34386          # Do quote $f, to prevent DOS paths from being IFS'd.
34387          echo "$f";;
34388       *) # Relative
34389          if test -f "$f"; then
34390            # Build tree
34391            echo "$f"
34392          elif test -f "$srcdir/$f"; then
34393            # Source tree
34394            echo "$srcdir/$f"
34395          else
34396            # /dev/null tree
34397            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34398 echo "$as_me: error: cannot find input file: $f" >&2;}
34399    { (exit 1); exit 1; }; }
34400          fi;;
34401       esac
34402     done` || { (exit 1); exit 1; }
34403   # Remove the trailing spaces.
34404   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
34405
34406 _ACEOF
34407
34408 # Transform confdefs.h into two sed scripts, `conftest.defines' and
34409 # `conftest.undefs', that substitutes the proper values into
34410 # config.h.in to produce config.h.  The first handles `#define'
34411 # templates, and the second `#undef' templates.
34412 # And first: Protect against being on the right side of a sed subst in
34413 # config.status.  Protect against being in an unquoted here document
34414 # in config.status.
34415 rm -f conftest.defines conftest.undefs
34416 # Using a here document instead of a string reduces the quoting nightmare.
34417 # Putting comments in sed scripts is not portable.
34418 #
34419 # `end' is used to avoid that the second main sed command (meant for
34420 # 0-ary CPP macros) applies to n-ary macro definitions.
34421 # See the Autoconf documentation for `clear'.
34422 cat >confdef2sed.sed <<\_ACEOF
34423 s/[\\&,]/\\&/g
34424 s,[\\$`],\\&,g
34425 t clear
34426 : clear
34427 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
34428 t end
34429 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
34430 : end
34431 _ACEOF
34432 # If some macros were called several times there might be several times
34433 # the same #defines, which is useless.  Nevertheless, we may not want to
34434 # sort them, since we want the *last* AC-DEFINE to be honored.
34435 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
34436 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
34437 rm -f confdef2sed.sed
34438
34439 # This sed command replaces #undef with comments.  This is necessary, for
34440 # example, in the case of _POSIX_SOURCE, which is predefined and required
34441 # on some systems where configure will not decide to define it.
34442 cat >>conftest.undefs <<\_ACEOF
34443 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
34444 _ACEOF
34445
34446 # Break up conftest.defines because some shells have a limit on the size
34447 # of here documents, and old seds have small limits too (100 cmds).
34448 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
34449 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
34450 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
34451 echo '  :' >>$CONFIG_STATUS
34452 rm -f conftest.tail
34453 while grep . conftest.defines >/dev/null
34454 do
34455   # Write a limited-size here document to $tmp/defines.sed.
34456   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
34457   # Speed up: don't consider the non `#define' lines.
34458   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
34459   # Work around the forget-to-reset-the-flag bug.
34460   echo 't clr' >>$CONFIG_STATUS
34461   echo ': clr' >>$CONFIG_STATUS
34462   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
34463   echo 'CEOF
34464   sed -f $tmp/defines.sed $tmp/in >$tmp/out
34465   rm -f $tmp/in
34466   mv $tmp/out $tmp/in
34467 ' >>$CONFIG_STATUS
34468   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
34469   rm -f conftest.defines
34470   mv conftest.tail conftest.defines
34471 done
34472 rm -f conftest.defines
34473 echo '  fi # grep' >>$CONFIG_STATUS
34474 echo >>$CONFIG_STATUS
34475
34476 # Break up conftest.undefs because some shells have a limit on the size
34477 # of here documents, and old seds have small limits too (100 cmds).
34478 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
34479 rm -f conftest.tail
34480 while grep . conftest.undefs >/dev/null
34481 do
34482   # Write a limited-size here document to $tmp/undefs.sed.
34483   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
34484   # Speed up: don't consider the non `#undef'
34485   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
34486   # Work around the forget-to-reset-the-flag bug.
34487   echo 't clr' >>$CONFIG_STATUS
34488   echo ': clr' >>$CONFIG_STATUS
34489   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
34490   echo 'CEOF
34491   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
34492   rm -f $tmp/in
34493   mv $tmp/out $tmp/in
34494 ' >>$CONFIG_STATUS
34495   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
34496   rm -f conftest.undefs
34497   mv conftest.tail conftest.undefs
34498 done
34499 rm -f conftest.undefs
34500
34501 cat >>$CONFIG_STATUS <<\_ACEOF
34502   # Let's still pretend it is `configure' which instantiates (i.e., don't
34503   # use $as_me), people would be surprised to read:
34504   #    /* config.h.  Generated by config.status.  */
34505   if test x"$ac_file" = x-; then
34506     echo "/* Generated by configure.  */" >$tmp/config.h
34507   else
34508     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
34509   fi
34510   cat $tmp/in >>$tmp/config.h
34511   rm -f $tmp/in
34512   if test x"$ac_file" != x-; then
34513     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
34514       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34515 echo "$as_me: $ac_file is unchanged" >&6;}
34516     else
34517       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
34518 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34519          X"$ac_file" : 'X\(//\)[^/]' \| \
34520          X"$ac_file" : 'X\(//\)$' \| \
34521          X"$ac_file" : 'X\(/\)' \| \
34522          .     : '\(.\)' 2>/dev/null ||
34523 echo X"$ac_file" |
34524     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34525           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34526           /^X\(\/\/\)$/{ s//\1/; q; }
34527           /^X\(\/\).*/{ s//\1/; q; }
34528           s/.*/./; q'`
34529       { if $as_mkdir_p; then
34530     mkdir -p "$ac_dir"
34531   else
34532     as_dir="$ac_dir"
34533     as_dirs=
34534     while test ! -d "$as_dir"; do
34535       as_dirs="$as_dir $as_dirs"
34536       as_dir=`(dirname "$as_dir") 2>/dev/null ||
34537 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34538          X"$as_dir" : 'X\(//\)[^/]' \| \
34539          X"$as_dir" : 'X\(//\)$' \| \
34540          X"$as_dir" : 'X\(/\)' \| \
34541          .     : '\(.\)' 2>/dev/null ||
34542 echo X"$as_dir" |
34543     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34544           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34545           /^X\(\/\/\)$/{ s//\1/; q; }
34546           /^X\(\/\).*/{ s//\1/; q; }
34547           s/.*/./; q'`
34548     done
34549     test ! -n "$as_dirs" || mkdir $as_dirs
34550   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
34551 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
34552    { (exit 1); exit 1; }; }; }
34553
34554       rm -f $ac_file
34555       mv $tmp/config.h $ac_file
34556     fi
34557   else
34558     cat $tmp/config.h
34559     rm -f $tmp/config.h
34560   fi
34561 # Compute $ac_file's index in $config_headers.
34562 _am_stamp_count=1
34563 for _am_header in $config_headers :; do
34564   case $_am_header in
34565     $ac_file | $ac_file:* )
34566       break ;;
34567     * )
34568       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34569   esac
34570 done
34571 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
34572 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34573          X$ac_file : 'X\(//\)[^/]' \| \
34574          X$ac_file : 'X\(//\)$' \| \
34575          X$ac_file : 'X\(/\)' \| \
34576          .     : '\(.\)' 2>/dev/null ||
34577 echo X$ac_file |
34578     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34579           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34580           /^X\(\/\/\)$/{ s//\1/; q; }
34581           /^X\(\/\).*/{ s//\1/; q; }
34582           s/.*/./; q'`/stamp-h$_am_stamp_count
34583 done
34584 _ACEOF
34585 cat >>$CONFIG_STATUS <<\_ACEOF
34586
34587 #
34588 # CONFIG_LINKS section.
34589 #
34590
34591 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
34592   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
34593   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
34594
34595   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
34596 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
34597
34598   if test ! -r $srcdir/$ac_source; then
34599     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
34600 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
34601    { (exit 1); exit 1; }; }
34602   fi
34603   rm -f $ac_dest
34604
34605   # Make relative symlinks.
34606   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
34607 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34608          X"$ac_dest" : 'X\(//\)[^/]' \| \
34609          X"$ac_dest" : 'X\(//\)$' \| \
34610          X"$ac_dest" : 'X\(/\)' \| \
34611          .     : '\(.\)' 2>/dev/null ||
34612 echo X"$ac_dest" |
34613     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34614           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34615           /^X\(\/\/\)$/{ s//\1/; q; }
34616           /^X\(\/\).*/{ s//\1/; q; }
34617           s/.*/./; q'`
34618   { if $as_mkdir_p; then
34619     mkdir -p "$ac_dest_dir"
34620   else
34621     as_dir="$ac_dest_dir"
34622     as_dirs=
34623     while test ! -d "$as_dir"; do
34624       as_dirs="$as_dir $as_dirs"
34625       as_dir=`(dirname "$as_dir") 2>/dev/null ||
34626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34627          X"$as_dir" : 'X\(//\)[^/]' \| \
34628          X"$as_dir" : 'X\(//\)$' \| \
34629          X"$as_dir" : 'X\(/\)' \| \
34630          .     : '\(.\)' 2>/dev/null ||
34631 echo X"$as_dir" |
34632     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34633           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34634           /^X\(\/\/\)$/{ s//\1/; q; }
34635           /^X\(\/\).*/{ s//\1/; q; }
34636           s/.*/./; q'`
34637     done
34638     test ! -n "$as_dirs" || mkdir $as_dirs
34639   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
34640 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
34641    { (exit 1); exit 1; }; }; }
34642
34643   ac_builddir=.
34644
34645 if test "$ac_dest_dir" != .; then
34646   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
34647   # A "../" for each directory in $ac_dir_suffix.
34648   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
34649 else
34650   ac_dir_suffix= ac_top_builddir=
34651 fi
34652
34653 case $srcdir in
34654   .)  # No --srcdir option.  We are building in place.
34655     ac_srcdir=.
34656     if test -z "$ac_top_builddir"; then
34657        ac_top_srcdir=.
34658     else
34659        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
34660     fi ;;
34661   [\\/]* | ?:[\\/]* )  # Absolute path.
34662     ac_srcdir=$srcdir$ac_dir_suffix;
34663     ac_top_srcdir=$srcdir ;;
34664   *) # Relative path.
34665     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
34666     ac_top_srcdir=$ac_top_builddir$srcdir ;;
34667 esac
34668
34669 # Do not use `cd foo && pwd` to compute absolute paths, because
34670 # the directories may not exist.
34671 case `pwd` in
34672 .) ac_abs_builddir="$ac_dest_dir";;
34673 *)
34674   case "$ac_dest_dir" in
34675   .) ac_abs_builddir=`pwd`;;
34676   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
34677   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
34678   esac;;
34679 esac
34680 case $ac_abs_builddir in
34681 .) ac_abs_top_builddir=${ac_top_builddir}.;;
34682 *)
34683   case ${ac_top_builddir}. in
34684   .) ac_abs_top_builddir=$ac_abs_builddir;;
34685   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
34686   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
34687   esac;;
34688 esac
34689 case $ac_abs_builddir in
34690 .) ac_abs_srcdir=$ac_srcdir;;
34691 *)
34692   case $ac_srcdir in
34693   .) ac_abs_srcdir=$ac_abs_builddir;;
34694   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
34695   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
34696   esac;;
34697 esac
34698 case $ac_abs_builddir in
34699 .) ac_abs_top_srcdir=$ac_top_srcdir;;
34700 *)
34701   case $ac_top_srcdir in
34702   .) ac_abs_top_srcdir=$ac_abs_builddir;;
34703   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
34704   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
34705   esac;;
34706 esac
34707
34708
34709   case $srcdir in
34710   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
34711       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
34712   esac
34713
34714   # Try a symlink, then a hard link, then a copy.
34715   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
34716     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
34717     cp -p $srcdir/$ac_source $ac_dest ||
34718     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
34719 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
34720    { (exit 1); exit 1; }; }
34721 done
34722 _ACEOF
34723
34724 cat >>$CONFIG_STATUS <<\_ACEOF
34725
34726 { (exit 0); exit 0; }
34727 _ACEOF
34728 chmod +x $CONFIG_STATUS
34729 ac_clean_files=$ac_clean_files_save
34730
34731
34732 # configure is writing to config.log, and then calls config.status.
34733 # config.status does its own redirection, appending to config.log.
34734 # Unfortunately, on DOS this fails, as config.log is still kept open
34735 # by configure, so config.status won't be able to write to it; its
34736 # output is simply discarded.  So we exec the FD to /dev/null,
34737 # effectively closing config.log, so it can be properly (re)opened and
34738 # appended to by config.status.  When coming back to configure, we
34739 # need to make the FD available again.
34740 if test "$no_create" != yes; then
34741   ac_cs_success=:
34742   ac_config_status_args=
34743   test "$silent" = yes &&
34744     ac_config_status_args="$ac_config_status_args --quiet"
34745   exec 5>/dev/null
34746   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34747   exec 5>>config.log
34748   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34749   # would make configure fail if this is the last instruction.
34750   $ac_cs_success || { (exit 1); exit 1; }
34751 fi
34752