Upgrade to autoconf 2.54
[fw/sdcc] / sim / ucsim / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40 do
41   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42     eval $as_var=C; export $as_var
43   else
44     $as_unset $as_var
45   fi
46 done
47
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50   as_expr=expr
51 else
52   as_expr=false
53 fi
54
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56   as_basename=basename
57 else
58   as_basename=false
59 fi
60
61
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65          X"$0" : 'X\(//\)$' \| \
66          X"$0" : 'X\(/\)$' \| \
67          .     : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70           /^X\/\(\/\/\)$/{ s//\1/; q; }
71           /^X\/\(\/\).*/{ s//\1/; q; }
72           s/.*/./; q'`
73
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
97   as_lineno_1=$LINENO
98   as_lineno_2=$LINENO
99   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100   test "x$as_lineno_1" != "x$as_lineno_2" &&
101   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102   # Find who we are.  Look in the path if we contain no path at all
103   # relative or not.
104   case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114        ;;
115   esac
116   # We did not find ourselves, most probably we were run as `sh COMMAND'
117   # in which case we are not to be found in the path.
118   if test "x$as_myself" = x; then
119     as_myself=$0
120   fi
121   if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123    { (exit 1); exit 1; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130   IFS=$as_save_IFS
131   test -z "$as_dir" && as_dir=.
132   for as_base in sh bash ksh sh5; do
133          case $as_dir in
134          /*)
135            if ("$as_dir/$as_base" -c '
136   as_lineno_1=$LINENO
137   as_lineno_2=$LINENO
138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139   test "x$as_lineno_1" != "x$as_lineno_2" &&
140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143              CONFIG_SHELL=$as_dir/$as_base
144              export CONFIG_SHELL
145              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146            fi;;
147          esac
148        done
149 done
150 ;;
151   esac
152
153   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154   # uniformly replaced by the line number.  The first 'sed' inserts a
155   # line-number line before each line; the second 'sed' does the real
156   # work.  The second script uses 'N' to pair each line-number line
157   # with the numbered line, and appends trailing '-' during
158   # substitution so that $LINENO is not a special case at line end.
159   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
161   sed '=' <$as_myself |
162     sed '
163       N
164       s,$,-,
165       : loop
166       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167       t loop
168       s,-$,,
169       s,^['$as_cr_digits']*\n,,
170     ' >$as_me.lineno &&
171   chmod +x $as_me.lineno ||
172     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173    { (exit 1); exit 1; }; }
174
175   # Don't try to exec as it changes $[0], causing all sort of problems
176   # (the dirname of $[0] is not the place where we might find the
177   # original and so on.  Autoconf is especially sensible to this).
178   . ./$as_me.lineno
179   # Exit status is that of the last command.
180   exit
181 }
182
183
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185   *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T='      ' ;;
187   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
190
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192   as_expr=expr
193 else
194   as_expr=false
195 fi
196
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200   # We could just check for DJGPP; but this test a) works b) is more generic
201   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202   if test -f conf$$.exe; then
203     # Don't use ln at all; we don't have any links
204     as_ln_s='cp -p'
205   else
206     as_ln_s='ln -s'
207   fi
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209   as_ln_s=ln
210 else
211   as_ln_s='cp -p'
212 fi
213 rm -f conf$$ conf$$.exe conf$$.file
214
215 if mkdir -p . 2>/dev/null; then
216   as_mkdir_p=:
217 else
218   as_mkdir_p=false
219 fi
220
221 as_executable_p="test -f"
222
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
233 '
234 IFS="   $as_nl"
235
236 # CDPATH.
237 $as_unset CDPATH
238
239
240 # Find the correct PATH separator.  Usually this is `:', but
241 # DJGPP uses `;' like DOS.
242 if test "X${PATH_SEPARATOR+set}" != Xset; then
243   UNAME=${UNAME-`uname 2>/dev/null`}
244   case X$UNAME in
245     *-DOS) lt_cv_sys_path_separator=';' ;;
246     *)     lt_cv_sys_path_separator=':' ;;
247   esac
248   PATH_SEPARATOR=$lt_cv_sys_path_separator
249 fi
250
251
252 # Check that we are running under the correct shell.
253 SHELL=${CONFIG_SHELL-/bin/sh}
254
255 case X$ECHO in
256 X*--fallback-echo)
257   # Remove one level of quotation (which was required for Make).
258   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
259   ;;
260 esac
261
262 echo=${ECHO-echo}
263 if test "X$1" = X--no-reexec; then
264   # Discard the --no-reexec flag, and continue.
265   shift
266 elif test "X$1" = X--fallback-echo; then
267   # Avoid inline document here, it may be left over
268   :
269 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
270   # Yippee, $echo works!
271   :
272 else
273   # Restart under the correct shell.
274   exec $SHELL "$0" --no-reexec ${1+"$@"}
275 fi
276
277 if test "X$1" = X--fallback-echo; then
278   # used as fallback echo
279   shift
280   cat <<EOF
281
282 EOF
283   exit 0
284 fi
285
286 # The HP-UX ksh and POSIX shell print the target directory to stdout
287 # if CDPATH is set.
288 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
289
290 if test -z "$ECHO"; then
291 if test "X${echo_test_string+set}" != Xset; then
292 # find a string as large as possible, as long as the shell can cope with it
293   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
294     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
295     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
296        echo_test_string="`eval $cmd`" &&
297        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298     then
299       break
300     fi
301   done
302 fi
303
304 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
305    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
306    test "X$echo_testing_string" = "X$echo_test_string"; then
307   :
308 else
309   # The Solaris, AIX, and Digital Unix default echo programs unquote
310   # backslashes.  This makes it impossible to quote backslashes using
311   #   echo "$something" | sed 's/\\/\\\\/g'
312   #
313   # So, first we look for a working echo in the user's PATH.
314
315   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
316   for dir in $PATH /usr/ucb; do
317     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
318        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
319        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
320        test "X$echo_testing_string" = "X$echo_test_string"; then
321       echo="$dir/echo"
322       break
323     fi
324   done
325   IFS="$save_ifs"
326
327   if test "X$echo" = Xecho; then
328     # We didn't find a better echo, so look for alternatives.
329     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
330        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
331        test "X$echo_testing_string" = "X$echo_test_string"; then
332       # This shell has a builtin print -r that does the trick.
333       echo='print -r'
334     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
335          test "X$CONFIG_SHELL" != X/bin/ksh; then
336       # If we have ksh, try running configure again with it.
337       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
338       export ORIGINAL_CONFIG_SHELL
339       CONFIG_SHELL=/bin/ksh
340       export CONFIG_SHELL
341       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
342     else
343       # Try using printf.
344       echo='printf %s\n'
345       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
346          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
347          test "X$echo_testing_string" = "X$echo_test_string"; then
348         # Cool, printf works
349         :
350       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
351            test "X$echo_testing_string" = 'X\t' &&
352            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
353            test "X$echo_testing_string" = "X$echo_test_string"; then
354         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
355         export CONFIG_SHELL
356         SHELL="$CONFIG_SHELL"
357         export SHELL
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
360            test "X$echo_testing_string" = 'X\t' &&
361            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
362            test "X$echo_testing_string" = "X$echo_test_string"; then
363         echo="$CONFIG_SHELL $0 --fallback-echo"
364       else
365         # maybe with a smaller string...
366         prev=:
367
368         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
369           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370           then
371             break
372           fi
373           prev="$cmd"
374         done
375
376         if test "$prev" != 'sed 50q "$0"'; then
377           echo_test_string=`eval $prev`
378           export echo_test_string
379           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
380         else
381           # Oops.  We lost completely, so just stick with echo.
382           echo=echo
383         fi
384       fi
385     fi
386   fi
387 fi
388 fi
389
390 # Copy echo and quote the copy suitably for passing to libtool from
391 # the Makefile, instead of quoting the original, which is used later.
392 ECHO=$echo
393 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
394    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 fi
396
397
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME=
424 PACKAGE_TARNAME=
425 PACKAGE_VERSION=
426 PACKAGE_STRING=
427 PACKAGE_BUGREPORT=
428
429 ac_unique_file=".version"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 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 AWK VERSION VERSIONHI VERSIONLO VERSIONP enable_ucsim enable_dlso enable_51 enable_avr enable_z80 enable_xa enable_serio CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CXXCPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB STRIP build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC LN_S ECHO ac_ct_STRIP CPP EGREP LIBTOOL LIBTOOL_DEPS dl_ok DL panel_ok curses_ok CURSES_LIBS M_OR_MM SHAREDLIB PICOPT dlso_ok LIBOBJS LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CXX_set=${CXX+set}
909 ac_env_CXX_value=$CXX
910 ac_cv_env_CXX_set=${CXX+set}
911 ac_cv_env_CXX_value=$CXX
912 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913 ac_env_CXXFLAGS_value=$CXXFLAGS
914 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CXXCPP_set=${CXXCPP+set}
925 ac_env_CXXCPP_value=$CXXCPP
926 ac_cv_env_CXXCPP_set=${CXXCPP+set}
927 ac_cv_env_CXXCPP_value=$CXXCPP
928 ac_env_CC_set=${CC+set}
929 ac_env_CC_value=$CC
930 ac_cv_env_CC_set=${CC+set}
931 ac_cv_env_CC_value=$CC
932 ac_env_CFLAGS_set=${CFLAGS+set}
933 ac_env_CFLAGS_value=$CFLAGS
934 ac_cv_env_CFLAGS_set=${CFLAGS+set}
935 ac_cv_env_CFLAGS_value=$CFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940
941 #
942 # Report the --help message.
943 #
944 if test "$ac_init_help" = "long"; then
945   # Omit some internal or obsolete options to make the list less imposing.
946   # This message is too long to be a string in the A/UX 3.1 sh.
947   cat <<_ACEOF
948 \`configure' configures this package to adapt to many kinds of systems.
949
950 Usage: $0 [OPTION]... [VAR=VALUE]...
951
952 To assign environment variables (e.g., CC, CFLAGS...), specify them as
953 VAR=VALUE.  See below for descriptions of some of the useful variables.
954
955 Defaults for the options are specified in brackets.
956
957 Configuration:
958   -h, --help              display this help and exit
959       --help=short        display options specific to this package
960       --help=recursive    display the short help of all the included packages
961   -V, --version           display version information and exit
962   -q, --quiet, --silent   do not print \`checking...' messages
963       --cache-file=FILE   cache test results in FILE [disabled]
964   -C, --config-cache      alias for \`--cache-file=config.cache'
965   -n, --no-create         do not create output files
966       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
967
968 _ACEOF
969
970   cat <<_ACEOF
971 Installation directories:
972   --prefix=PREFIX         install architecture-independent files in PREFIX
973                           [$ac_default_prefix]
974   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
975                           [PREFIX]
976
977 By default, \`make install' will install all the files in
978 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
979 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
980 for instance \`--prefix=\$HOME'.
981
982 For better control, use the options below.
983
984 Fine tuning of the installation directories:
985   --bindir=DIR           user executables [EPREFIX/bin]
986   --sbindir=DIR          system admin executables [EPREFIX/sbin]
987   --libexecdir=DIR       program executables [EPREFIX/libexec]
988   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
989   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
990   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
991   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
992   --libdir=DIR           object code libraries [EPREFIX/lib]
993   --includedir=DIR       C header files [PREFIX/include]
994   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
995   --infodir=DIR          info documentation [PREFIX/info]
996   --mandir=DIR           man documentation [PREFIX/man]
997 _ACEOF
998
999   cat <<\_ACEOF
1000
1001 System types:
1002   --build=BUILD     configure for building on BUILD [guessed]
1003   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1004 _ACEOF
1005 fi
1006
1007 if test -n "$ac_init_help"; then
1008
1009   cat <<\_ACEOF
1010
1011 Optional Features:
1012   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1013   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1014   --enable-ucsim          compile ucsim frontend
1015   --enable-dlso           compile dynamically loadable shared libraries
1016   --disable-51            do not compile simulator for MCS51
1017   --disable-avr           do not compile simulator for AVR
1018   --enable-z80            compile simulator for Z80
1019   --enable-xa             compile simulator for XA
1020   --enable-serio          compile serio GUI tool (needs curses)
1021   --enable-statistic      compile statistical features (slower simulation)
1022   --enable-shared=PKGS  build shared libraries default=yes
1023   --enable-static=PKGS  build static libraries default=yes
1024   --enable-fast-install=PKGS  optimize for fast installation default=yes
1025   --disable-libtool-lock  avoid locking (might break parallel builds)
1026
1027 Optional Packages:
1028   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1029   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1030   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1031   --with-pic              try to use only PIC/non-PIC objects default=use both
1032
1033 Some influential environment variables:
1034   CXX         C++ compiler command
1035   CXXFLAGS    C++ compiler flags
1036   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1037               nonstandard directory <lib dir>
1038   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1039               headers in a nonstandard directory <include dir>
1040   CXXCPP      C++ preprocessor
1041   CC          C compiler command
1042   CFLAGS      C compiler flags
1043   CPP         C preprocessor
1044
1045 Use these variables to override the choices made by `configure' or to help
1046 it to find libraries and programs with nonstandard names/locations.
1047
1048 _ACEOF
1049 fi
1050
1051 if test "$ac_init_help" = "recursive"; then
1052   # If there are subdirs, report their specific --help.
1053   ac_popdir=`pwd`
1054   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1055     test -d $ac_dir || continue
1056     ac_builddir=.
1057
1058 if test "$ac_dir" != .; then
1059   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1060   # A "../" for each directory in $ac_dir_suffix.
1061   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1062 else
1063   ac_dir_suffix= ac_top_builddir=
1064 fi
1065
1066 case $srcdir in
1067   .)  # No --srcdir option.  We are building in place.
1068     ac_srcdir=.
1069     if test -z "$ac_top_builddir"; then
1070        ac_top_srcdir=.
1071     else
1072        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1073     fi ;;
1074   [\\/]* | ?:[\\/]* )  # Absolute path.
1075     ac_srcdir=$srcdir$ac_dir_suffix;
1076     ac_top_srcdir=$srcdir ;;
1077   *) # Relative path.
1078     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1080 esac
1081 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1082 # absolute.
1083 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1084 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1085 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1086 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1087
1088     cd $ac_dir
1089     # Check for guested configure; otherwise get Cygnus style configure.
1090     if test -f $ac_srcdir/configure.gnu; then
1091       echo
1092       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1093     elif test -f $ac_srcdir/configure; then
1094       echo
1095       $SHELL $ac_srcdir/configure  --help=recursive
1096     elif test -f $ac_srcdir/configure.ac ||
1097            test -f $ac_srcdir/configure.in; then
1098       echo
1099       $ac_configure --help
1100     else
1101       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1102     fi
1103     cd $ac_popdir
1104   done
1105 fi
1106
1107 test -n "$ac_init_help" && exit 0
1108 if $ac_init_version; then
1109   cat <<\_ACEOF
1110
1111 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1112 Free Software Foundation, Inc.
1113 This configure script is free software; the Free Software Foundation
1114 gives unlimited permission to copy, distribute and modify it.
1115 _ACEOF
1116   exit 0
1117 fi
1118 exec 5>config.log
1119 cat >&5 <<_ACEOF
1120 This file contains any messages produced by compilers while
1121 running configure, to aid debugging if configure makes a mistake.
1122
1123 It was created by $as_me, which was
1124 generated by GNU Autoconf 2.54.  Invocation command line was
1125
1126   $ $0 $@
1127
1128 _ACEOF
1129 {
1130 cat <<_ASUNAME
1131 ## --------- ##
1132 ## Platform. ##
1133 ## --------- ##
1134
1135 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1136 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1137 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1138 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1139 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1140
1141 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1142 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1143
1144 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1145 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1146 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1147 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1148 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1149 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1150 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1151
1152 _ASUNAME
1153
1154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1155 for as_dir in $PATH
1156 do
1157   IFS=$as_save_IFS
1158   test -z "$as_dir" && as_dir=.
1159   echo "PATH: $as_dir"
1160 done
1161
1162 } >&5
1163
1164 cat >&5 <<_ACEOF
1165
1166
1167 ## ----------- ##
1168 ## Core tests. ##
1169 ## ----------- ##
1170
1171 _ACEOF
1172
1173
1174 # Keep a trace of the command line.
1175 # Strip out --no-create and --no-recursion so they do not pile up.
1176 # Also quote any args containing shell meta-characters.
1177 ac_configure_args=
1178 ac_sep=
1179 for ac_arg
1180 do
1181   case $ac_arg in
1182   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1183   | --no-cr | --no-c | -n ) continue ;;
1184   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186     continue ;;
1187   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1188     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1189   esac
1190   ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1191   # Get rid of the leading space.
1192   ac_sep=" "
1193 done
1194
1195 # When interrupted or exit'd, cleanup temporary files, and complete
1196 # config.log.  We remove comments because anyway the quotes in there
1197 # would cause problems or look ugly.
1198 # WARNING: Be sure not to use single quotes in there, as some shells,
1199 # such as our DU 5.0 friend, will then `close' the trap.
1200 trap 'exit_status=$?
1201   # Save into config.log some information that might help in debugging.
1202   {
1203     echo
1204
1205     cat <<\_ASBOX
1206 ## ---------------- ##
1207 ## Cache variables. ##
1208 ## ---------------- ##
1209 _ASBOX
1210     echo
1211     # The following way of writing the cache mishandles newlines in values,
1212 {
1213   (set) 2>&1 |
1214     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1215     *ac_space=\ *)
1216       sed -n \
1217         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1218           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1219       ;;
1220     *)
1221       sed -n \
1222         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1223       ;;
1224     esac;
1225 }
1226     echo
1227
1228     cat <<\_ASBOX
1229 ## ----------------- ##
1230 ## Output variables. ##
1231 ## ----------------- ##
1232 _ASBOX
1233     echo
1234     for ac_var in $ac_subst_vars
1235     do
1236       eval ac_val=$`echo $ac_var`
1237       echo "$ac_var='"'"'$ac_val'"'"'"
1238     done | sort
1239     echo
1240
1241     if test -n "$ac_subst_files"; then
1242       cat <<\_ASBOX
1243 ## ------------- ##
1244 ## Output files. ##
1245 ## ------------- ##
1246 _ASBOX
1247       echo
1248       for ac_var in $ac_subst_files
1249       do
1250         eval ac_val=$`echo $ac_var`
1251         echo "$ac_var='"'"'$ac_val'"'"'"
1252       done | sort
1253       echo
1254     fi
1255
1256     if test -s confdefs.h; then
1257       cat <<\_ASBOX
1258 ## ----------- ##
1259 ## confdefs.h. ##
1260 ## ----------- ##
1261 _ASBOX
1262       echo
1263       sed "/^$/d" confdefs.h | sort
1264       echo
1265     fi
1266     test "$ac_signal" != 0 &&
1267       echo "$as_me: caught signal $ac_signal"
1268     echo "$as_me: exit $exit_status"
1269   } >&5
1270   rm -f core core.* *.core &&
1271   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1272     exit $exit_status
1273      ' 0
1274 for ac_signal in 1 2 13 15; do
1275   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1276 done
1277 ac_signal=0
1278
1279 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1280 rm -rf conftest* confdefs.h
1281 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1282 echo >confdefs.h
1283
1284 # Predefined preprocessor variables.
1285
1286 cat >>confdefs.h <<_ACEOF
1287 #define PACKAGE_NAME "$PACKAGE_NAME"
1288 _ACEOF
1289
1290
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1293 _ACEOF
1294
1295
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1298 _ACEOF
1299
1300
1301 cat >>confdefs.h <<_ACEOF
1302 #define PACKAGE_STRING "$PACKAGE_STRING"
1303 _ACEOF
1304
1305
1306 cat >>confdefs.h <<_ACEOF
1307 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1308 _ACEOF
1309
1310
1311 # Let the site file select an alternate cache file if it wants to.
1312 # Prefer explicitly selected file to automatically selected ones.
1313 if test -z "$CONFIG_SITE"; then
1314   if test "x$prefix" != xNONE; then
1315     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1316   else
1317     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1318   fi
1319 fi
1320 for ac_site_file in $CONFIG_SITE; do
1321   if test -r "$ac_site_file"; then
1322     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1323 echo "$as_me: loading site script $ac_site_file" >&6;}
1324     sed 's/^/| /' "$ac_site_file" >&5
1325     . "$ac_site_file"
1326   fi
1327 done
1328
1329 if test -r "$cache_file"; then
1330   # Some versions of bash will fail to source /dev/null (special
1331   # files actually), so we avoid doing that.
1332   if test -f "$cache_file"; then
1333     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1334 echo "$as_me: loading cache $cache_file" >&6;}
1335     case $cache_file in
1336       [\\/]* | ?:[\\/]* ) . $cache_file;;
1337       *)                      . ./$cache_file;;
1338     esac
1339   fi
1340 else
1341   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1342 echo "$as_me: creating cache $cache_file" >&6;}
1343   >$cache_file
1344 fi
1345
1346 # Check that the precious variables saved in the cache have kept the same
1347 # value.
1348 ac_cache_corrupted=false
1349 for ac_var in `(set) 2>&1 |
1350                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1351   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1352   eval ac_new_set=\$ac_env_${ac_var}_set
1353   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1354   eval ac_new_val="\$ac_env_${ac_var}_value"
1355   case $ac_old_set,$ac_new_set in
1356     set,)
1357       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1358 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1359       ac_cache_corrupted=: ;;
1360     ,set)
1361       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1362 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1363       ac_cache_corrupted=: ;;
1364     ,);;
1365     *)
1366       if test "x$ac_old_val" != "x$ac_new_val"; then
1367         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1368 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1369         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1370 echo "$as_me:   former value:  $ac_old_val" >&2;}
1371         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1372 echo "$as_me:   current value: $ac_new_val" >&2;}
1373         ac_cache_corrupted=:
1374       fi;;
1375   esac
1376   # Pass precious variables to config.status.
1377   if test "$ac_new_set" = set; then
1378     case $ac_new_val in
1379     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1380       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1381     *) ac_arg=$ac_var=$ac_new_val ;;
1382     esac
1383     case " $ac_configure_args " in
1384       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1385       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1386     esac
1387   fi
1388 done
1389 if $ac_cache_corrupted; then
1390   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1391 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1392   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1393 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1394    { (exit 1); exit 1; }; }
1395 fi
1396
1397 ac_ext=c
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421           ac_config_headers="$ac_config_headers ddconfig.h:ddconfig_in.h"
1422
1423
1424 for ac_prog in gawk mawk nawk awk
1425 do
1426   # Extract the first word of "$ac_prog", so it can be a program name with args.
1427 set dummy $ac_prog; ac_word=$2
1428 echo "$as_me:$LINENO: checking for $ac_word" >&5
1429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1430 if test "${ac_cv_prog_AWK+set}" = set; then
1431   echo $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433   if test -n "$AWK"; then
1434   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1435 else
1436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1437 for as_dir in $PATH
1438 do
1439   IFS=$as_save_IFS
1440   test -z "$as_dir" && as_dir=.
1441   for ac_exec_ext in '' $ac_executable_extensions; do
1442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1443     ac_cv_prog_AWK="$ac_prog"
1444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1445     break 2
1446   fi
1447 done
1448 done
1449
1450 fi
1451 fi
1452 AWK=$ac_cv_prog_AWK
1453 if test -n "$AWK"; then
1454   echo "$as_me:$LINENO: result: $AWK" >&5
1455 echo "${ECHO_T}$AWK" >&6
1456 else
1457   echo "$as_me:$LINENO: result: no" >&5
1458 echo "${ECHO_T}no" >&6
1459 fi
1460
1461   test -n "$AWK" && break
1462 done
1463
1464
1465 echo "$as_me:$LINENO: checking version of the package" >&5
1466 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1467 if test -f .version; then
1468   VERSION=`cat .version`
1469   echo "$as_me:$LINENO: result: $VERSION" >&5
1470 echo "${ECHO_T}$VERSION" >&6
1471 else
1472   VERSION="0.0.0"
1473   echo "$as_me:$LINENO: result: unknown using 0.0.0" >&5
1474 echo "${ECHO_T}unknown using 0.0.0" >&6
1475 fi
1476 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1477 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1478 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1479
1480
1481
1482
1483 cat >>confdefs.h <<_ACEOF
1484 #define VERSIONSTR "${VERSION}"
1485 _ACEOF
1486
1487 cat >>confdefs.h <<_ACEOF
1488 #define VERSIONHI $VERSIONHI
1489 _ACEOF
1490
1491 cat >>confdefs.h <<_ACEOF
1492 #define VERSIONLO $VERSIONLO
1493 _ACEOF
1494
1495 cat >>confdefs.h <<_ACEOF
1496 #define VERSIONP $VERSIONP
1497 _ACEOF
1498
1499
1500 # Some options
1501 #==============
1502 # Check whether --enable-ucsim or --disable-ucsim was given.
1503 if test "${enable_ucsim+set}" = set; then
1504   enableval="$enable_ucsim"
1505   if test $enable_ucsim != "no"; then
1506     enable_ucsim="yes"
1507 fi
1508 else
1509   #default
1510 enable_ucsim="no"
1511 fi;
1512 # Check whether --enable-dlso or --disable-dlso was given.
1513 if test "${enable_dlso+set}" = set; then
1514   enableval="$enable_dlso"
1515   if test $enable_dlso != "no"; then
1516     enable_dlso="yes"
1517 fi
1518 else
1519   enable_dlso="no"
1520 fi;
1521 # Check whether --enable-51 or --disable-51 was given.
1522 if test "${enable_51+set}" = set; then
1523   enableval="$enable_51"
1524   if test $enable_51 != "no"; then
1525     enable_51="yes"
1526 fi
1527 else
1528   enable_51="yes"
1529 fi;
1530 # Check whether --enable-avr or --disable-avr was given.
1531 if test "${enable_avr+set}" = set; then
1532   enableval="$enable_avr"
1533   if test $enable_avr != "no"; then
1534     enable_avr="yes"
1535 fi
1536 else
1537   enable_avr="yes"
1538 fi;
1539 # Check whether --enable-z80 or --disable-z80 was given.
1540 if test "${enable_z80+set}" = set; then
1541   enableval="$enable_z80"
1542   if test $enable_z80 != "no"; then
1543     enable_z80="yes"
1544 fi
1545 else
1546   enable_z80="no"
1547 fi;
1548 # Check whether --enable-xa or --disable-xa was given.
1549 if test "${enable_xa+set}" = set; then
1550   enableval="$enable_xa"
1551   if test $enable_xa != "no"; then
1552     enable_xa="yes"
1553 fi
1554 else
1555   enable_xa="no"
1556 fi;
1557 # Check whether --enable-portmon or --disable-portmon was given.
1558 if test "${enable_portmon+set}" = set; then
1559   enableval="$enable_portmon"
1560   if test $enable_serio != "no"; then
1561     enable_serio="yes"
1562 fi
1563 else
1564   enable_serio="yes"
1565 fi;
1566
1567
1568
1569
1570
1571
1572
1573
1574 # Check whether --enable-statistic or --disable-statistic was given.
1575 if test "${enable_statistic+set}" = set; then
1576   enableval="$enable_statistic"
1577   if test $enable_statistic != "no"; then
1578    enable_statistic="yes"
1579 fi
1580 else
1581   enable_statistic="no"
1582 fi;
1583 cat >>confdefs.h <<_ACEOF
1584 #define STATISTIC $enable_statistic
1585 _ACEOF
1586
1587
1588
1589 # Required programs
1590 #-------------------
1591 ac_ext=cc
1592 ac_cpp='$CXXCPP $CPPFLAGS'
1593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1596 if test -n "$ac_tool_prefix"; then
1597   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1598   do
1599     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1601 echo "$as_me:$LINENO: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_CXX+set}" = set; then
1604   echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606   if test -n "$CXX"; then
1607   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1608 else
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 for as_dir in $PATH
1611 do
1612   IFS=$as_save_IFS
1613   test -z "$as_dir" && as_dir=.
1614   for ac_exec_ext in '' $ac_executable_extensions; do
1615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618     break 2
1619   fi
1620 done
1621 done
1622
1623 fi
1624 fi
1625 CXX=$ac_cv_prog_CXX
1626 if test -n "$CXX"; then
1627   echo "$as_me:$LINENO: result: $CXX" >&5
1628 echo "${ECHO_T}$CXX" >&6
1629 else
1630   echo "$as_me:$LINENO: result: no" >&5
1631 echo "${ECHO_T}no" >&6
1632 fi
1633
1634     test -n "$CXX" && break
1635   done
1636 fi
1637 if test -z "$CXX"; then
1638   ac_ct_CXX=$CXX
1639   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1640 do
1641   # Extract the first word of "$ac_prog", so it can be a program name with args.
1642 set dummy $ac_prog; ac_word=$2
1643 echo "$as_me:$LINENO: checking for $ac_word" >&5
1644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1646   echo $ECHO_N "(cached) $ECHO_C" >&6
1647 else
1648   if test -n "$ac_ct_CXX"; then
1649   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1650 else
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 for as_dir in $PATH
1653 do
1654   IFS=$as_save_IFS
1655   test -z "$as_dir" && as_dir=.
1656   for ac_exec_ext in '' $ac_executable_extensions; do
1657   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658     ac_cv_prog_ac_ct_CXX="$ac_prog"
1659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660     break 2
1661   fi
1662 done
1663 done
1664
1665 fi
1666 fi
1667 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1668 if test -n "$ac_ct_CXX"; then
1669   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1670 echo "${ECHO_T}$ac_ct_CXX" >&6
1671 else
1672   echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1674 fi
1675
1676   test -n "$ac_ct_CXX" && break
1677 done
1678 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1679
1680   CXX=$ac_ct_CXX
1681 fi
1682
1683
1684 # Provide some information about the compiler.
1685 echo "$as_me:$LINENO:" \
1686      "checking for C++ compiler version" >&5
1687 ac_compiler=`set X $ac_compile; echo $2`
1688 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1689   (eval $ac_compiler --version </dev/null >&5) 2>&5
1690   ac_status=$?
1691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1692   (exit $ac_status); }
1693 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1694   (eval $ac_compiler -v </dev/null >&5) 2>&5
1695   ac_status=$?
1696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1697   (exit $ac_status); }
1698 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1699   (eval $ac_compiler -V </dev/null >&5) 2>&5
1700   ac_status=$?
1701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1702   (exit $ac_status); }
1703
1704 cat >conftest.$ac_ext <<_ACEOF
1705 #line $LINENO "configure"
1706 #include "confdefs.h"
1707
1708 int
1709 main ()
1710 {
1711
1712   ;
1713   return 0;
1714 }
1715 _ACEOF
1716 ac_clean_files_save=$ac_clean_files
1717 ac_clean_files="$ac_clean_files a.out a.exe"
1718 # Try to create an executable without -o first, disregard a.out.
1719 # It will help us diagnose broken compilers, and finding out an intuition
1720 # of exeext.
1721 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1722 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1723 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1724 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1725   (eval $ac_link_default) 2>&5
1726   ac_status=$?
1727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1728   (exit $ac_status); }; then
1729   # Find the output, starting from the most likely.  This scheme is
1730 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1731 # resort.
1732
1733 # Be careful to initialize this variable, since it used to be cached.
1734 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1735 ac_cv_exeext=
1736 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1737   test -f "$ac_file" || continue
1738   case $ac_file in
1739     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1740     a.out ) # We found the default executable, but exeext='' is most
1741             # certainly right.
1742             break;;
1743     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1744           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1745           export ac_cv_exeext
1746           break;;
1747     * ) break;;
1748   esac
1749 done
1750 else
1751   echo "$as_me: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1753 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1754 check \`config.log' for details." >&5
1755 echo "$as_me: error: C++ compiler cannot create executables
1756 check \`config.log' for details." >&2;}
1757    { (exit 77); exit 77; }; }
1758 fi
1759
1760 ac_exeext=$ac_cv_exeext
1761 echo "$as_me:$LINENO: result: $ac_file" >&5
1762 echo "${ECHO_T}$ac_file" >&6
1763
1764 # Check the compiler produces executables we can run.  If not, either
1765 # the compiler is broken, or we cross compile.
1766 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1767 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1768 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1769 # If not cross compiling, check that we can run a simple program.
1770 if test "$cross_compiling" != yes; then
1771   if { ac_try='./$ac_file'
1772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1773   (eval $ac_try) 2>&5
1774   ac_status=$?
1775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1776   (exit $ac_status); }; }; then
1777     cross_compiling=no
1778   else
1779     if test "$cross_compiling" = maybe; then
1780         cross_compiling=yes
1781     else
1782         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1783 If you meant to cross compile, use \`--host'." >&5
1784 echo "$as_me: error: cannot run C++ compiled programs.
1785 If you meant to cross compile, use \`--host'." >&2;}
1786    { (exit 1); exit 1; }; }
1787     fi
1788   fi
1789 fi
1790 echo "$as_me:$LINENO: result: yes" >&5
1791 echo "${ECHO_T}yes" >&6
1792
1793 rm -f a.out a.exe conftest$ac_cv_exeext
1794 ac_clean_files=$ac_clean_files_save
1795 # Check the compiler produces executables we can run.  If not, either
1796 # the compiler is broken, or we cross compile.
1797 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1798 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1799 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1800 echo "${ECHO_T}$cross_compiling" >&6
1801
1802 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1803 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1805   (eval $ac_link) 2>&5
1806   ac_status=$?
1807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1808   (exit $ac_status); }; then
1809   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1810 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1811 # work properly (i.e., refer to `conftest.exe'), while it won't with
1812 # `rm'.
1813 for ac_file in conftest.exe conftest conftest.*; do
1814   test -f "$ac_file" || continue
1815   case $ac_file in
1816     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1817     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1818           export ac_cv_exeext
1819           break;;
1820     * ) break;;
1821   esac
1822 done
1823 else
1824   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1825 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1826    { (exit 1); exit 1; }; }
1827 fi
1828
1829 rm -f conftest$ac_cv_exeext
1830 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1831 echo "${ECHO_T}$ac_cv_exeext" >&6
1832
1833 rm -f conftest.$ac_ext
1834 EXEEXT=$ac_cv_exeext
1835 ac_exeext=$EXEEXT
1836 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1837 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1838 if test "${ac_cv_objext+set}" = set; then
1839   echo $ECHO_N "(cached) $ECHO_C" >&6
1840 else
1841   cat >conftest.$ac_ext <<_ACEOF
1842 #line $LINENO "configure"
1843 #include "confdefs.h"
1844
1845 int
1846 main ()
1847 {
1848
1849   ;
1850   return 0;
1851 }
1852 _ACEOF
1853 rm -f conftest.o conftest.obj
1854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1855   (eval $ac_compile) 2>&5
1856   ac_status=$?
1857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858   (exit $ac_status); }; then
1859   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1860   case $ac_file in
1861     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1862     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1863        break;;
1864   esac
1865 done
1866 else
1867   echo "$as_me: failed program was:" >&5
1868 cat conftest.$ac_ext >&5
1869 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1870 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1871    { (exit 1); exit 1; }; }
1872 fi
1873
1874 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1875 fi
1876 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1877 echo "${ECHO_T}$ac_cv_objext" >&6
1878 OBJEXT=$ac_cv_objext
1879 ac_objext=$OBJEXT
1880 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1881 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1882 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1883   echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885   cat >conftest.$ac_ext <<_ACEOF
1886 #line $LINENO "configure"
1887 #include "confdefs.h"
1888
1889 int
1890 main ()
1891 {
1892 #ifndef __GNUC__
1893        choke me
1894 #endif
1895
1896   ;
1897   return 0;
1898 }
1899 _ACEOF
1900 rm -f conftest.$ac_objext
1901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1902   (eval $ac_compile) 2>&5
1903   ac_status=$?
1904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905   (exit $ac_status); } &&
1906          { ac_try='test -s conftest.$ac_objext'
1907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1908   (eval $ac_try) 2>&5
1909   ac_status=$?
1910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911   (exit $ac_status); }; }; then
1912   ac_compiler_gnu=yes
1913 else
1914   echo "$as_me: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1916 ac_compiler_gnu=no
1917 fi
1918 rm -f conftest.$ac_objext conftest.$ac_ext
1919 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1920
1921 fi
1922 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1923 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1924 GXX=`test $ac_compiler_gnu = yes && echo yes`
1925 ac_test_CXXFLAGS=${CXXFLAGS+set}
1926 ac_save_CXXFLAGS=$CXXFLAGS
1927 CXXFLAGS="-g"
1928 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1929 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1930 if test "${ac_cv_prog_cxx_g+set}" = set; then
1931   echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933   cat >conftest.$ac_ext <<_ACEOF
1934 #line $LINENO "configure"
1935 #include "confdefs.h"
1936
1937 int
1938 main ()
1939 {
1940
1941   ;
1942   return 0;
1943 }
1944 _ACEOF
1945 rm -f conftest.$ac_objext
1946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1947   (eval $ac_compile) 2>&5
1948   ac_status=$?
1949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950   (exit $ac_status); } &&
1951          { ac_try='test -s conftest.$ac_objext'
1952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953   (eval $ac_try) 2>&5
1954   ac_status=$?
1955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956   (exit $ac_status); }; }; then
1957   ac_cv_prog_cxx_g=yes
1958 else
1959   echo "$as_me: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1961 ac_cv_prog_cxx_g=no
1962 fi
1963 rm -f conftest.$ac_objext conftest.$ac_ext
1964 fi
1965 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1966 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1967 if test "$ac_test_CXXFLAGS" = set; then
1968   CXXFLAGS=$ac_save_CXXFLAGS
1969 elif test $ac_cv_prog_cxx_g = yes; then
1970   if test "$GXX" = yes; then
1971     CXXFLAGS="-g -O2"
1972   else
1973     CXXFLAGS="-g"
1974   fi
1975 else
1976   if test "$GXX" = yes; then
1977     CXXFLAGS="-O2"
1978   else
1979     CXXFLAGS=
1980   fi
1981 fi
1982 for ac_declaration in \
1983    ''\
1984    '#include <stdlib.h>' \
1985    'extern "C" void std::exit (int) throw (); using std::exit;' \
1986    'extern "C" void std::exit (int); using std::exit;' \
1987    'extern "C" void exit (int) throw ();' \
1988    'extern "C" void exit (int);' \
1989    'void exit (int);'
1990 do
1991   cat >conftest.$ac_ext <<_ACEOF
1992 #line $LINENO "configure"
1993 #include "confdefs.h"
1994 #include <stdlib.h>
1995 $ac_declaration
1996 int
1997 main ()
1998 {
1999 exit (42);
2000   ;
2001   return 0;
2002 }
2003 _ACEOF
2004 rm -f conftest.$ac_objext
2005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006   (eval $ac_compile) 2>&5
2007   ac_status=$?
2008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009   (exit $ac_status); } &&
2010          { ac_try='test -s conftest.$ac_objext'
2011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012   (eval $ac_try) 2>&5
2013   ac_status=$?
2014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015   (exit $ac_status); }; }; then
2016   :
2017 else
2018   echo "$as_me: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2020 continue
2021 fi
2022 rm -f conftest.$ac_objext conftest.$ac_ext
2023   cat >conftest.$ac_ext <<_ACEOF
2024 #line $LINENO "configure"
2025 #include "confdefs.h"
2026 $ac_declaration
2027 int
2028 main ()
2029 {
2030 exit (42);
2031   ;
2032   return 0;
2033 }
2034 _ACEOF
2035 rm -f conftest.$ac_objext
2036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2037   (eval $ac_compile) 2>&5
2038   ac_status=$?
2039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040   (exit $ac_status); } &&
2041          { ac_try='test -s conftest.$ac_objext'
2042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043   (eval $ac_try) 2>&5
2044   ac_status=$?
2045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046   (exit $ac_status); }; }; then
2047   break
2048 else
2049   echo "$as_me: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2051 fi
2052 rm -f conftest.$ac_objext conftest.$ac_ext
2053 done
2054 rm -f conftest*
2055 if test -n "$ac_declaration"; then
2056   echo '#ifdef __cplusplus' >>confdefs.h
2057   echo $ac_declaration      >>confdefs.h
2058   echo '#endif'             >>confdefs.h
2059 fi
2060
2061 ac_ext=c
2062 ac_cpp='$CPP $CPPFLAGS'
2063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2066
2067 ac_ext=cc
2068 ac_cpp='$CXXCPP $CPPFLAGS'
2069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2072 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2073 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2074 if test -z "$CXXCPP"; then
2075   if test "${ac_cv_prog_CXXCPP+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078       # Double quotes because CXXCPP needs to be expanded
2079     for CXXCPP in "$CXX -E" "/lib/cpp"
2080     do
2081       ac_preproc_ok=false
2082 for ac_cxx_preproc_warn_flag in '' yes
2083 do
2084   # Use a header file that comes with gcc, so configuring glibc
2085   # with a fresh cross-compiler works.
2086   # On the NeXT, cc -E runs the code through the compiler's parser,
2087   # not just through cpp. "Syntax error" is here to catch this case.
2088   cat >conftest.$ac_ext <<_ACEOF
2089 #line $LINENO "configure"
2090 #include "confdefs.h"
2091 #include <assert.h>
2092                      Syntax error
2093 _ACEOF
2094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2096   ac_status=$?
2097   grep -v '^ *+' conftest.er1 >conftest.err
2098   rm -f conftest.er1
2099   cat conftest.err >&5
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); } >/dev/null; then
2102   if test -s conftest.err; then
2103     ac_cpp_err=$ac_cxx_preproc_warn_flag
2104   else
2105     ac_cpp_err=
2106   fi
2107 else
2108   ac_cpp_err=yes
2109 fi
2110 if test -z "$ac_cpp_err"; then
2111   :
2112 else
2113   echo "$as_me: failed program was:" >&5
2114   cat conftest.$ac_ext >&5
2115   # Broken: fails on valid input.
2116 continue
2117 fi
2118 rm -f conftest.err conftest.$ac_ext
2119
2120   # OK, works on sane cases.  Now check whether non-existent headers
2121   # can be detected and how.
2122   cat >conftest.$ac_ext <<_ACEOF
2123 #line $LINENO "configure"
2124 #include "confdefs.h"
2125 #include <ac_nonexistent.h>
2126 _ACEOF
2127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2128   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2129   ac_status=$?
2130   grep -v '^ *+' conftest.er1 >conftest.err
2131   rm -f conftest.er1
2132   cat conftest.err >&5
2133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134   (exit $ac_status); } >/dev/null; then
2135   if test -s conftest.err; then
2136     ac_cpp_err=$ac_cxx_preproc_warn_flag
2137   else
2138     ac_cpp_err=
2139   fi
2140 else
2141   ac_cpp_err=yes
2142 fi
2143 if test -z "$ac_cpp_err"; then
2144   # Broken: success on invalid input.
2145 continue
2146 else
2147   echo "$as_me: failed program was:" >&5
2148   cat conftest.$ac_ext >&5
2149   # Passes both tests.
2150 ac_preproc_ok=:
2151 break
2152 fi
2153 rm -f conftest.err conftest.$ac_ext
2154
2155 done
2156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2157 rm -f conftest.err conftest.$ac_ext
2158 if $ac_preproc_ok; then
2159   break
2160 fi
2161
2162     done
2163     ac_cv_prog_CXXCPP=$CXXCPP
2164
2165 fi
2166   CXXCPP=$ac_cv_prog_CXXCPP
2167 else
2168   ac_cv_prog_CXXCPP=$CXXCPP
2169 fi
2170 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2171 echo "${ECHO_T}$CXXCPP" >&6
2172 ac_preproc_ok=false
2173 for ac_cxx_preproc_warn_flag in '' yes
2174 do
2175   # Use a header file that comes with gcc, so configuring glibc
2176   # with a fresh cross-compiler works.
2177   # On the NeXT, cc -E runs the code through the compiler's parser,
2178   # not just through cpp. "Syntax error" is here to catch this case.
2179   cat >conftest.$ac_ext <<_ACEOF
2180 #line $LINENO "configure"
2181 #include "confdefs.h"
2182 #include <assert.h>
2183                      Syntax error
2184 _ACEOF
2185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2186   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2187   ac_status=$?
2188   grep -v '^ *+' conftest.er1 >conftest.err
2189   rm -f conftest.er1
2190   cat conftest.err >&5
2191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192   (exit $ac_status); } >/dev/null; then
2193   if test -s conftest.err; then
2194     ac_cpp_err=$ac_cxx_preproc_warn_flag
2195   else
2196     ac_cpp_err=
2197   fi
2198 else
2199   ac_cpp_err=yes
2200 fi
2201 if test -z "$ac_cpp_err"; then
2202   :
2203 else
2204   echo "$as_me: failed program was:" >&5
2205   cat conftest.$ac_ext >&5
2206   # Broken: fails on valid input.
2207 continue
2208 fi
2209 rm -f conftest.err conftest.$ac_ext
2210
2211   # OK, works on sane cases.  Now check whether non-existent headers
2212   # can be detected and how.
2213   cat >conftest.$ac_ext <<_ACEOF
2214 #line $LINENO "configure"
2215 #include "confdefs.h"
2216 #include <ac_nonexistent.h>
2217 _ACEOF
2218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2219   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2220   ac_status=$?
2221   grep -v '^ *+' conftest.er1 >conftest.err
2222   rm -f conftest.er1
2223   cat conftest.err >&5
2224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225   (exit $ac_status); } >/dev/null; then
2226   if test -s conftest.err; then
2227     ac_cpp_err=$ac_cxx_preproc_warn_flag
2228   else
2229     ac_cpp_err=
2230   fi
2231 else
2232   ac_cpp_err=yes
2233 fi
2234 if test -z "$ac_cpp_err"; then
2235   # Broken: success on invalid input.
2236 continue
2237 else
2238   echo "$as_me: failed program was:" >&5
2239   cat conftest.$ac_ext >&5
2240   # Passes both tests.
2241 ac_preproc_ok=:
2242 break
2243 fi
2244 rm -f conftest.err conftest.$ac_ext
2245
2246 done
2247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2248 rm -f conftest.err conftest.$ac_ext
2249 if $ac_preproc_ok; then
2250   :
2251 else
2252   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
2253 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
2254    { (exit 1); exit 1; }; }
2255 fi
2256
2257 ac_ext=c
2258 ac_cpp='$CPP $CPPFLAGS'
2259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2262
2263 ac_aux_dir=
2264 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2265   if test -f $ac_dir/install-sh; then
2266     ac_aux_dir=$ac_dir
2267     ac_install_sh="$ac_aux_dir/install-sh -c"
2268     break
2269   elif test -f $ac_dir/install.sh; then
2270     ac_aux_dir=$ac_dir
2271     ac_install_sh="$ac_aux_dir/install.sh -c"
2272     break
2273   elif test -f $ac_dir/shtool; then
2274     ac_aux_dir=$ac_dir
2275     ac_install_sh="$ac_aux_dir/shtool install -c"
2276     break
2277   fi
2278 done
2279 if test -z "$ac_aux_dir"; then
2280   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2281 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2282    { (exit 1); exit 1; }; }
2283 fi
2284 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2285 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2286 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2287
2288 # Find a good install program.  We prefer a C program (faster),
2289 # so one script is as good as another.  But avoid the broken or
2290 # incompatible versions:
2291 # SysV /etc/install, /usr/sbin/install
2292 # SunOS /usr/etc/install
2293 # IRIX /sbin/install
2294 # AIX /bin/install
2295 # AmigaOS /C/install, which installs bootblocks on floppy discs
2296 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2297 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2298 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2299 # ./install, which can be erroneously created by make from ./install.sh.
2300 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2301 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2302 if test -z "$INSTALL"; then
2303 if test "${ac_cv_path_install+set}" = set; then
2304   echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 for as_dir in $PATH
2308 do
2309   IFS=$as_save_IFS
2310   test -z "$as_dir" && as_dir=.
2311   # Account for people who put trailing slashes in PATH elements.
2312 case $as_dir/ in
2313   ./ | .// | /cC/* | \
2314   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2315   /usr/ucb/* ) ;;
2316   *)
2317     # OSF1 and SCO ODT 3.0 have their own names for install.
2318     # Don't use installbsd from OSF since it installs stuff as root
2319     # by default.
2320     for ac_prog in ginstall scoinst install; do
2321       for ac_exec_ext in '' $ac_executable_extensions; do
2322         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2323           if test $ac_prog = install &&
2324             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2325             # AIX install.  It has an incompatible calling convention.
2326             :
2327           elif test $ac_prog = install &&
2328             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2329             # program-specific install script used by HP pwplus--don't use.
2330             :
2331           else
2332             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2333             break 3
2334           fi
2335         fi
2336       done
2337     done
2338     ;;
2339 esac
2340 done
2341
2342
2343 fi
2344   if test "${ac_cv_path_install+set}" = set; then
2345     INSTALL=$ac_cv_path_install
2346   else
2347     # As a last resort, use the slow shell script.  We don't cache a
2348     # path for INSTALL within a source directory, because that will
2349     # break other packages using the cache if that directory is
2350     # removed, or if the path is relative.
2351     INSTALL=$ac_install_sh
2352   fi
2353 fi
2354 echo "$as_me:$LINENO: result: $INSTALL" >&5
2355 echo "${ECHO_T}$INSTALL" >&6
2356
2357 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2358 # It thinks the first close brace ends the variable substitution.
2359 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2360
2361 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2362
2363 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2364
2365 if test -n "$ac_tool_prefix"; then
2366   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2367 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2368 echo "$as_me:$LINENO: checking for $ac_word" >&5
2369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2370 if test "${ac_cv_prog_RANLIB+set}" = set; then
2371   echo $ECHO_N "(cached) $ECHO_C" >&6
2372 else
2373   if test -n "$RANLIB"; then
2374   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2375 else
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 for as_dir in $PATH
2378 do
2379   IFS=$as_save_IFS
2380   test -z "$as_dir" && as_dir=.
2381   for ac_exec_ext in '' $ac_executable_extensions; do
2382   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2383     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385     break 2
2386   fi
2387 done
2388 done
2389
2390 fi
2391 fi
2392 RANLIB=$ac_cv_prog_RANLIB
2393 if test -n "$RANLIB"; then
2394   echo "$as_me:$LINENO: result: $RANLIB" >&5
2395 echo "${ECHO_T}$RANLIB" >&6
2396 else
2397   echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6
2399 fi
2400
2401 fi
2402 if test -z "$ac_cv_prog_RANLIB"; then
2403   ac_ct_RANLIB=$RANLIB
2404   # Extract the first word of "ranlib", so it can be a program name with args.
2405 set dummy ranlib; ac_word=$2
2406 echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2408 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2409   echo $ECHO_N "(cached) $ECHO_C" >&6
2410 else
2411   if test -n "$ac_ct_RANLIB"; then
2412   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2413 else
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2416 do
2417   IFS=$as_save_IFS
2418   test -z "$as_dir" && as_dir=.
2419   for ac_exec_ext in '' $ac_executable_extensions; do
2420   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2421     ac_cv_prog_ac_ct_RANLIB="ranlib"
2422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423     break 2
2424   fi
2425 done
2426 done
2427
2428   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2429 fi
2430 fi
2431 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2432 if test -n "$ac_ct_RANLIB"; then
2433   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2434 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2435 else
2436   echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6
2438 fi
2439
2440   RANLIB=$ac_ct_RANLIB
2441 else
2442   RANLIB="$ac_cv_prog_RANLIB"
2443 fi
2444
2445
2446 # Extract the first word of "strip", so it can be a program name with args.
2447 set dummy strip; ac_word=$2
2448 echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2450 if test "${ac_cv_prog_STRIP+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   if test -n "$STRIP"; then
2454   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2455 else
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 for as_dir in $PATH
2458 do
2459   IFS=$as_save_IFS
2460   test -z "$as_dir" && as_dir=.
2461   for ac_exec_ext in '' $ac_executable_extensions; do
2462   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2463     ac_cv_prog_STRIP="strip"
2464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465     break 2
2466   fi
2467 done
2468 done
2469
2470   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2471 fi
2472 fi
2473 STRIP=$ac_cv_prog_STRIP
2474 if test -n "$STRIP"; then
2475   echo "$as_me:$LINENO: result: $STRIP" >&5
2476 echo "${ECHO_T}$STRIP" >&6
2477 else
2478   echo "$as_me:$LINENO: result: no" >&5
2479 echo "${ECHO_T}no" >&6
2480 fi
2481
2482
2483
2484 # Check whether --enable-shared or --disable-shared was given.
2485 if test "${enable_shared+set}" = set; then
2486   enableval="$enable_shared"
2487   p=${PACKAGE-default}
2488 case $enableval in
2489 yes) enable_shared=yes ;;
2490 no) enable_shared=no ;;
2491 *)
2492   enable_shared=no
2493   # Look at the argument we got.  We use all the common list separators.
2494   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2495   for pkg in $enableval; do
2496     if test "X$pkg" = "X$p"; then
2497       enable_shared=yes
2498     fi
2499   done
2500   IFS="$ac_save_ifs"
2501   ;;
2502 esac
2503 else
2504   enable_shared=yes
2505 fi;
2506 # Check whether --enable-static or --disable-static was given.
2507 if test "${enable_static+set}" = set; then
2508   enableval="$enable_static"
2509   p=${PACKAGE-default}
2510 case $enableval in
2511 yes) enable_static=yes ;;
2512 no) enable_static=no ;;
2513 *)
2514   enable_static=no
2515   # Look at the argument we got.  We use all the common list separators.
2516   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2517   for pkg in $enableval; do
2518     if test "X$pkg" = "X$p"; then
2519       enable_static=yes
2520     fi
2521   done
2522   IFS="$ac_save_ifs"
2523   ;;
2524 esac
2525 else
2526   enable_static=yes
2527 fi;
2528 # Check whether --enable-fast-install or --disable-fast-install was given.
2529 if test "${enable_fast_install+set}" = set; then
2530   enableval="$enable_fast_install"
2531   p=${PACKAGE-default}
2532 case $enableval in
2533 yes) enable_fast_install=yes ;;
2534 no) enable_fast_install=no ;;
2535 *)
2536   enable_fast_install=no
2537   # Look at the argument we got.  We use all the common list separators.
2538   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2539   for pkg in $enableval; do
2540     if test "X$pkg" = "X$p"; then
2541       enable_fast_install=yes
2542     fi
2543   done
2544   IFS="$ac_save_ifs"
2545   ;;
2546 esac
2547 else
2548   enable_fast_install=yes
2549 fi;
2550 # Make sure we can run config.sub.
2551 $ac_config_sub sun4 >/dev/null 2>&1 ||
2552   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2553 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2554    { (exit 1); exit 1; }; }
2555
2556 echo "$as_me:$LINENO: checking build system type" >&5
2557 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2558 if test "${ac_cv_build+set}" = set; then
2559   echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561   ac_cv_build_alias=$build_alias
2562 test -z "$ac_cv_build_alias" &&
2563   ac_cv_build_alias=`$ac_config_guess`
2564 test -z "$ac_cv_build_alias" &&
2565   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2566 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2567    { (exit 1); exit 1; }; }
2568 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2569   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2570 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2571    { (exit 1); exit 1; }; }
2572
2573 fi
2574 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2575 echo "${ECHO_T}$ac_cv_build" >&6
2576 build=$ac_cv_build
2577 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2578 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2579 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2580
2581
2582 echo "$as_me:$LINENO: checking host system type" >&5
2583 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2584 if test "${ac_cv_host+set}" = set; then
2585   echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587   ac_cv_host_alias=$host_alias
2588 test -z "$ac_cv_host_alias" &&
2589   ac_cv_host_alias=$ac_cv_build_alias
2590 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2591   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2592 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2593    { (exit 1); exit 1; }; }
2594
2595 fi
2596 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2597 echo "${ECHO_T}$ac_cv_host" >&6
2598 host=$ac_cv_host
2599 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2600 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2601 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2602
2603
2604 ac_ext=c
2605 ac_cpp='$CPP $CPPFLAGS'
2606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609 if test -n "$ac_tool_prefix"; then
2610   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2611 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2612 echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2614 if test "${ac_cv_prog_CC+set}" = set; then
2615   echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617   if test -n "$CC"; then
2618   ac_cv_prog_CC="$CC" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623   IFS=$as_save_IFS
2624   test -z "$as_dir" && as_dir=.
2625   for ac_exec_ext in '' $ac_executable_extensions; do
2626   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629     break 2
2630   fi
2631 done
2632 done
2633
2634 fi
2635 fi
2636 CC=$ac_cv_prog_CC
2637 if test -n "$CC"; then
2638   echo "$as_me:$LINENO: result: $CC" >&5
2639 echo "${ECHO_T}$CC" >&6
2640 else
2641   echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6
2643 fi
2644
2645 fi
2646 if test -z "$ac_cv_prog_CC"; then
2647   ac_ct_CC=$CC
2648   # Extract the first word of "gcc", so it can be a program name with args.
2649 set dummy gcc; ac_word=$2
2650 echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2652 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2653   echo $ECHO_N "(cached) $ECHO_C" >&6
2654 else
2655   if test -n "$ac_ct_CC"; then
2656   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661   IFS=$as_save_IFS
2662   test -z "$as_dir" && as_dir=.
2663   for ac_exec_ext in '' $ac_executable_extensions; do
2664   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2665     ac_cv_prog_ac_ct_CC="gcc"
2666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667     break 2
2668   fi
2669 done
2670 done
2671
2672 fi
2673 fi
2674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2675 if test -n "$ac_ct_CC"; then
2676   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2677 echo "${ECHO_T}$ac_ct_CC" >&6
2678 else
2679   echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6
2681 fi
2682
2683   CC=$ac_ct_CC
2684 else
2685   CC="$ac_cv_prog_CC"
2686 fi
2687
2688 if test -z "$CC"; then
2689   if test -n "$ac_tool_prefix"; then
2690   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2691 set dummy ${ac_tool_prefix}cc; ac_word=$2
2692 echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2694 if test "${ac_cv_prog_CC+set}" = set; then
2695   echo $ECHO_N "(cached) $ECHO_C" >&6
2696 else
2697   if test -n "$CC"; then
2698   ac_cv_prog_CC="$CC" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703   IFS=$as_save_IFS
2704   test -z "$as_dir" && as_dir=.
2705   for ac_exec_ext in '' $ac_executable_extensions; do
2706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707     ac_cv_prog_CC="${ac_tool_prefix}cc"
2708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709     break 2
2710   fi
2711 done
2712 done
2713
2714 fi
2715 fi
2716 CC=$ac_cv_prog_CC
2717 if test -n "$CC"; then
2718   echo "$as_me:$LINENO: result: $CC" >&5
2719 echo "${ECHO_T}$CC" >&6
2720 else
2721   echo "$as_me:$LINENO: result: no" >&5
2722 echo "${ECHO_T}no" >&6
2723 fi
2724
2725 fi
2726 if test -z "$ac_cv_prog_CC"; then
2727   ac_ct_CC=$CC
2728   # Extract the first word of "cc", so it can be a program name with args.
2729 set dummy cc; ac_word=$2
2730 echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2733   echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735   if test -n "$ac_ct_CC"; then
2736   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741   IFS=$as_save_IFS
2742   test -z "$as_dir" && as_dir=.
2743   for ac_exec_ext in '' $ac_executable_extensions; do
2744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745     ac_cv_prog_ac_ct_CC="cc"
2746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747     break 2
2748   fi
2749 done
2750 done
2751
2752 fi
2753 fi
2754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2755 if test -n "$ac_ct_CC"; then
2756   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2757 echo "${ECHO_T}$ac_ct_CC" >&6
2758 else
2759   echo "$as_me:$LINENO: result: no" >&5
2760 echo "${ECHO_T}no" >&6
2761 fi
2762
2763   CC=$ac_ct_CC
2764 else
2765   CC="$ac_cv_prog_CC"
2766 fi
2767
2768 fi
2769 if test -z "$CC"; then
2770   # Extract the first word of "cc", so it can be a program name with args.
2771 set dummy cc; ac_word=$2
2772 echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2774 if test "${ac_cv_prog_CC+set}" = set; then
2775   echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777   if test -n "$CC"; then
2778   ac_cv_prog_CC="$CC" # Let the user override the test.
2779 else
2780   ac_prog_rejected=no
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784   IFS=$as_save_IFS
2785   test -z "$as_dir" && as_dir=.
2786   for ac_exec_ext in '' $ac_executable_extensions; do
2787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2789        ac_prog_rejected=yes
2790        continue
2791      fi
2792     ac_cv_prog_CC="cc"
2793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794     break 2
2795   fi
2796 done
2797 done
2798
2799 if test $ac_prog_rejected = yes; then
2800   # We found a bogon in the path, so make sure we never use it.
2801   set dummy $ac_cv_prog_CC
2802   shift
2803   if test $# != 0; then
2804     # We chose a different compiler from the bogus one.
2805     # However, it has the same basename, so the bogon will be chosen
2806     # first if we set CC to just the basename; use the full file name.
2807     shift
2808     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2809   fi
2810 fi
2811 fi
2812 fi
2813 CC=$ac_cv_prog_CC
2814 if test -n "$CC"; then
2815   echo "$as_me:$LINENO: result: $CC" >&5
2816 echo "${ECHO_T}$CC" >&6
2817 else
2818   echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6
2820 fi
2821
2822 fi
2823 if test -z "$CC"; then
2824   if test -n "$ac_tool_prefix"; then
2825   for ac_prog in cl
2826   do
2827     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_CC+set}" = set; then
2832   echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834   if test -n "$CC"; then
2835   ac_cv_prog_CC="$CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840   IFS=$as_save_IFS
2841   test -z "$as_dir" && as_dir=.
2842   for ac_exec_ext in '' $ac_executable_extensions; do
2843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846     break 2
2847   fi
2848 done
2849 done
2850
2851 fi
2852 fi
2853 CC=$ac_cv_prog_CC
2854 if test -n "$CC"; then
2855   echo "$as_me:$LINENO: result: $CC" >&5
2856 echo "${ECHO_T}$CC" >&6
2857 else
2858   echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2860 fi
2861
2862     test -n "$CC" && break
2863   done
2864 fi
2865 if test -z "$CC"; then
2866   ac_ct_CC=$CC
2867   for ac_prog in cl
2868 do
2869   # Extract the first word of "$ac_prog", so it can be a program name with args.
2870 set dummy $ac_prog; ac_word=$2
2871 echo "$as_me:$LINENO: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2874   echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876   if test -n "$ac_ct_CC"; then
2877   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882   IFS=$as_save_IFS
2883   test -z "$as_dir" && as_dir=.
2884   for ac_exec_ext in '' $ac_executable_extensions; do
2885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886     ac_cv_prog_ac_ct_CC="$ac_prog"
2887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888     break 2
2889   fi
2890 done
2891 done
2892
2893 fi
2894 fi
2895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2896 if test -n "$ac_ct_CC"; then
2897   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2898 echo "${ECHO_T}$ac_ct_CC" >&6
2899 else
2900   echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2902 fi
2903
2904   test -n "$ac_ct_CC" && break
2905 done
2906
2907   CC=$ac_ct_CC
2908 fi
2909
2910 fi
2911
2912
2913 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2914 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2915    { (exit 1); exit 1; }; }
2916
2917 # Provide some information about the compiler.
2918 echo "$as_me:$LINENO:" \
2919      "checking for C compiler version" >&5
2920 ac_compiler=`set X $ac_compile; echo $2`
2921 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2922   (eval $ac_compiler --version </dev/null >&5) 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); }
2926 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2927   (eval $ac_compiler -v </dev/null >&5) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }
2931 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2932   (eval $ac_compiler -V </dev/null >&5) 2>&5
2933   ac_status=$?
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); }
2936
2937 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2938 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2939 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2940   echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942   cat >conftest.$ac_ext <<_ACEOF
2943 #line $LINENO "configure"
2944 #include "confdefs.h"
2945
2946 int
2947 main ()
2948 {
2949 #ifndef __GNUC__
2950        choke me
2951 #endif
2952
2953   ;
2954   return 0;
2955 }
2956 _ACEOF
2957 rm -f conftest.$ac_objext
2958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2959   (eval $ac_compile) 2>&5
2960   ac_status=$?
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); } &&
2963          { ac_try='test -s conftest.$ac_objext'
2964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965   (eval $ac_try) 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); }; }; then
2969   ac_compiler_gnu=yes
2970 else
2971   echo "$as_me: failed program was:" >&5
2972 cat conftest.$ac_ext >&5
2973 ac_compiler_gnu=no
2974 fi
2975 rm -f conftest.$ac_objext conftest.$ac_ext
2976 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2977
2978 fi
2979 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2980 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2981 GCC=`test $ac_compiler_gnu = yes && echo yes`
2982 ac_test_CFLAGS=${CFLAGS+set}
2983 ac_save_CFLAGS=$CFLAGS
2984 CFLAGS="-g"
2985 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2986 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2987 if test "${ac_cv_prog_cc_g+set}" = set; then
2988   echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990   cat >conftest.$ac_ext <<_ACEOF
2991 #line $LINENO "configure"
2992 #include "confdefs.h"
2993
2994 int
2995 main ()
2996 {
2997
2998   ;
2999   return 0;
3000 }
3001 _ACEOF
3002 rm -f conftest.$ac_objext
3003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3004   (eval $ac_compile) 2>&5
3005   ac_status=$?
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); } &&
3008          { ac_try='test -s conftest.$ac_objext'
3009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010   (eval $ac_try) 2>&5
3011   ac_status=$?
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); }; }; then
3014   ac_cv_prog_cc_g=yes
3015 else
3016   echo "$as_me: failed program was:" >&5
3017 cat conftest.$ac_ext >&5
3018 ac_cv_prog_cc_g=no
3019 fi
3020 rm -f conftest.$ac_objext conftest.$ac_ext
3021 fi
3022 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3023 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3024 if test "$ac_test_CFLAGS" = set; then
3025   CFLAGS=$ac_save_CFLAGS
3026 elif test $ac_cv_prog_cc_g = yes; then
3027   if test "$GCC" = yes; then
3028     CFLAGS="-g -O2"
3029   else
3030     CFLAGS="-g"
3031   fi
3032 else
3033   if test "$GCC" = yes; then
3034     CFLAGS="-O2"
3035   else
3036     CFLAGS=
3037   fi
3038 fi
3039 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3040 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3041 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3042   echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044   ac_cv_prog_cc_stdc=no
3045 ac_save_CC=$CC
3046 cat >conftest.$ac_ext <<_ACEOF
3047 #line $LINENO "configure"
3048 #include "confdefs.h"
3049 #include <stdarg.h>
3050 #include <stdio.h>
3051 #include <sys/types.h>
3052 #include <sys/stat.h>
3053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3054 struct buf { int x; };
3055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3056 static char *e (p, i)
3057      char **p;
3058      int i;
3059 {
3060   return p[i];
3061 }
3062 static char *f (char * (*g) (char **, int), char **p, ...)
3063 {
3064   char *s;
3065   va_list v;
3066   va_start (v,p);
3067   s = g (p, va_arg (v,int));
3068   va_end (v);
3069   return s;
3070 }
3071 int test (int i, double x);
3072 struct s1 {int (*f) (int a);};
3073 struct s2 {int (*f) (double a);};
3074 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3075 int argc;
3076 char **argv;
3077 int
3078 main ()
3079 {
3080 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3081   ;
3082   return 0;
3083 }
3084 _ACEOF
3085 # Don't try gcc -ansi; that turns off useful extensions and
3086 # breaks some systems' header files.
3087 # AIX                   -qlanglvl=ansi
3088 # Ultrix and OSF/1      -std1
3089 # HP-UX 10.20 and later -Ae
3090 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3091 # SVR4                  -Xc -D__EXTENSIONS__
3092 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3093 do
3094   CC="$ac_save_CC $ac_arg"
3095   rm -f conftest.$ac_objext
3096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3097   (eval $ac_compile) 2>&5
3098   ac_status=$?
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); } &&
3101          { ac_try='test -s conftest.$ac_objext'
3102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103   (eval $ac_try) 2>&5
3104   ac_status=$?
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); }; }; then
3107   ac_cv_prog_cc_stdc=$ac_arg
3108 break
3109 else
3110   echo "$as_me: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3112 fi
3113 rm -f conftest.$ac_objext
3114 done
3115 rm -f conftest.$ac_ext conftest.$ac_objext
3116 CC=$ac_save_CC
3117
3118 fi
3119
3120 case "x$ac_cv_prog_cc_stdc" in
3121   x|xno)
3122     echo "$as_me:$LINENO: result: none needed" >&5
3123 echo "${ECHO_T}none needed" >&6 ;;
3124   *)
3125     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3126 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3127     CC="$CC $ac_cv_prog_cc_stdc" ;;
3128 esac
3129
3130 # Some people use a C++ compiler to compile C.  Since we use `exit',
3131 # in C++ we need to declare it.  In case someone uses the same compiler
3132 # for both compiling C and C++ we need to have the C++ compiler decide
3133 # the declaration of exit, since it's the most demanding environment.
3134 cat >conftest.$ac_ext <<_ACEOF
3135 #ifndef __cplusplus
3136   choke me
3137 #endif
3138 _ACEOF
3139 rm -f conftest.$ac_objext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141   (eval $ac_compile) 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } &&
3145          { ac_try='test -s conftest.$ac_objext'
3146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147   (eval $ac_try) 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); }; }; then
3151   for ac_declaration in \
3152    ''\
3153    '#include <stdlib.h>' \
3154    'extern "C" void std::exit (int) throw (); using std::exit;' \
3155    'extern "C" void std::exit (int); using std::exit;' \
3156    'extern "C" void exit (int) throw ();' \
3157    'extern "C" void exit (int);' \
3158    'void exit (int);'
3159 do
3160   cat >conftest.$ac_ext <<_ACEOF
3161 #line $LINENO "configure"
3162 #include "confdefs.h"
3163 #include <stdlib.h>
3164 $ac_declaration
3165 int
3166 main ()
3167 {
3168 exit (42);
3169   ;
3170   return 0;
3171 }
3172 _ACEOF
3173 rm -f conftest.$ac_objext
3174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3175   (eval $ac_compile) 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); } &&
3179          { ac_try='test -s conftest.$ac_objext'
3180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181   (eval $ac_try) 2>&5
3182   ac_status=$?
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); }; }; then
3185   :
3186 else
3187   echo "$as_me: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3189 continue
3190 fi
3191 rm -f conftest.$ac_objext conftest.$ac_ext
3192   cat >conftest.$ac_ext <<_ACEOF
3193 #line $LINENO "configure"
3194 #include "confdefs.h"
3195 $ac_declaration
3196 int
3197 main ()
3198 {
3199 exit (42);
3200   ;
3201   return 0;
3202 }
3203 _ACEOF
3204 rm -f conftest.$ac_objext
3205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3206   (eval $ac_compile) 2>&5
3207   ac_status=$?
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); } &&
3210          { ac_try='test -s conftest.$ac_objext'
3211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212   (eval $ac_try) 2>&5
3213   ac_status=$?
3214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215   (exit $ac_status); }; }; then
3216   break
3217 else
3218   echo "$as_me: failed program was:" >&5
3219 cat conftest.$ac_ext >&5
3220 fi
3221 rm -f conftest.$ac_objext conftest.$ac_ext
3222 done
3223 rm -f conftest*
3224 if test -n "$ac_declaration"; then
3225   echo '#ifdef __cplusplus' >>confdefs.h
3226   echo $ac_declaration      >>confdefs.h
3227   echo '#endif'             >>confdefs.h
3228 fi
3229
3230 else
3231   echo "$as_me: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3233 fi
3234 rm -f conftest.$ac_objext conftest.$ac_ext
3235 ac_ext=c
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240
3241 # Find the correct PATH separator.  Usually this is `:', but
3242 # DJGPP uses `;' like DOS.
3243 if test "X${PATH_SEPARATOR+set}" != Xset; then
3244   UNAME=${UNAME-`uname 2>/dev/null`}
3245   case X$UNAME in
3246     *-DOS) lt_cv_sys_path_separator=';' ;;
3247     *)     lt_cv_sys_path_separator=':' ;;
3248   esac
3249   PATH_SEPARATOR=$lt_cv_sys_path_separator
3250 fi
3251
3252
3253 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3254 if test "${with_gnu_ld+set}" = set; then
3255   withval="$with_gnu_ld"
3256   test "$withval" = no || with_gnu_ld=yes
3257 else
3258   with_gnu_ld=no
3259 fi;
3260 ac_prog=ld
3261 if test "$GCC" = yes; then
3262   # Check if gcc -print-prog-name=ld gives a path.
3263   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3264 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3265   case $host in
3266   *-*-mingw*)
3267     # gcc leaves a trailing carriage return which upsets mingw
3268     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3269   *)
3270     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3271   esac
3272   case $ac_prog in
3273     # Accept absolute paths.
3274     [\\/]* | [A-Za-z]:[\\/]*)
3275       re_direlt='/[^/][^/]*/\.\./'
3276       # Canonicalize the path of ld
3277       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3278       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3279         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3280       done
3281       test -z "$LD" && LD="$ac_prog"
3282       ;;
3283   "")
3284     # If it fails, then pretend we aren't using GCC.
3285     ac_prog=ld
3286     ;;
3287   *)
3288     # If it is relative, then search for the first ld in PATH.
3289     with_gnu_ld=unknown
3290     ;;
3291   esac
3292 elif test "$with_gnu_ld" = yes; then
3293   echo "$as_me:$LINENO: checking for GNU ld" >&5
3294 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3295 else
3296   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3297 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3298 fi
3299 if test "${lt_cv_path_LD+set}" = set; then
3300   echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302   if test -z "$LD"; then
3303   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3304   for ac_dir in $PATH; do
3305     test -z "$ac_dir" && ac_dir=.
3306     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3307       lt_cv_path_LD="$ac_dir/$ac_prog"
3308       # Check to see if the program is GNU ld.  I'd rather use --version,
3309       # but apparently some GNU ld's only accept -v.
3310       # Break only if it was the GNU/non-GNU ld that we prefer.
3311       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3312         test "$with_gnu_ld" != no && break
3313       else
3314         test "$with_gnu_ld" != yes && break
3315       fi
3316     fi
3317   done
3318   IFS="$ac_save_ifs"
3319 else
3320   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3321 fi
3322 fi
3323
3324 LD="$lt_cv_path_LD"
3325 if test -n "$LD"; then
3326   echo "$as_me:$LINENO: result: $LD" >&5
3327 echo "${ECHO_T}$LD" >&6
3328 else
3329   echo "$as_me:$LINENO: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3331 fi
3332 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3333 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3334    { (exit 1); exit 1; }; }
3335 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3336 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3337 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3338   echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3341 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3342   lt_cv_prog_gnu_ld=yes
3343 else
3344   lt_cv_prog_gnu_ld=no
3345 fi
3346 fi
3347 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3348 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3349 with_gnu_ld=$lt_cv_prog_gnu_ld
3350
3351
3352 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3353 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3354 if test "${lt_cv_ld_reload_flag+set}" = set; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357   lt_cv_ld_reload_flag='-r'
3358 fi
3359 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3360 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3361 reload_flag=$lt_cv_ld_reload_flag
3362 test -n "$reload_flag" && reload_flag=" $reload_flag"
3363
3364 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3365 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3366 if test "${lt_cv_path_NM+set}" = set; then
3367   echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369   if test -n "$NM"; then
3370   # Let the user override the test.
3371   lt_cv_path_NM="$NM"
3372 else
3373   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3374   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3375     test -z "$ac_dir" && ac_dir=.
3376     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3377     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3378       # Check to see if the nm accepts a BSD-compat flag.
3379       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3380       #   nm: unknown option "B" ignored
3381       # Tru64's nm complains that /dev/null is an invalid object file
3382       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3383         lt_cv_path_NM="$tmp_nm -B"
3384         break
3385       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3386         lt_cv_path_NM="$tmp_nm -p"
3387         break
3388       else
3389         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3390         continue # so that we can try to find one that supports BSD flags
3391       fi
3392     fi
3393   done
3394   IFS="$ac_save_ifs"
3395   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3396 fi
3397 fi
3398
3399 NM="$lt_cv_path_NM"
3400 echo "$as_me:$LINENO: result: $NM" >&5
3401 echo "${ECHO_T}$NM" >&6
3402
3403 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3404 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3405 LN_S=$as_ln_s
3406 if test "$LN_S" = "ln -s"; then
3407   echo "$as_me:$LINENO: result: yes" >&5
3408 echo "${ECHO_T}yes" >&6
3409 else
3410   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3411 echo "${ECHO_T}no, using $LN_S" >&6
3412 fi
3413
3414 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3415 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3416 if test "${lt_cv_deplibs_check_method+set}" = set; then
3417   echo $ECHO_N "(cached) $ECHO_C" >&6
3418 else
3419   lt_cv_file_magic_cmd='$MAGIC_CMD'
3420 lt_cv_file_magic_test_file=
3421 lt_cv_deplibs_check_method='unknown'
3422 # Need to set the preceding variable on all platforms that support
3423 # interlibrary dependencies.
3424 # 'none' -- dependencies not supported.
3425 # `unknown' -- same as none, but documents that we really don't know.
3426 # 'pass_all' -- all dependencies passed with no checks.
3427 # 'test_compile' -- check by making test program.
3428 # 'file_magic [[regex]]' -- check by looking for files in library path
3429 # which responds to the $file_magic_cmd with a given egrep regex.
3430 # If you have `file' or equivalent on your system and you're not sure
3431 # whether `pass_all' will *always* work, you probably want this one.
3432
3433 case $host_os in
3434 aix4* | aix5*)
3435   lt_cv_deplibs_check_method=pass_all
3436   ;;
3437
3438 beos*)
3439   lt_cv_deplibs_check_method=pass_all
3440   ;;
3441
3442 bsdi4*)
3443   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3444   lt_cv_file_magic_cmd='/usr/bin/file -L'
3445   lt_cv_file_magic_test_file=/shlib/libc.so
3446   ;;
3447
3448 cygwin* | mingw* | pw32*)
3449   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3450   lt_cv_file_magic_cmd='$OBJDUMP -f'
3451   ;;
3452
3453 darwin* | rhapsody*)
3454   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3455   lt_cv_file_magic_cmd='/usr/bin/file -L'
3456   case "$host_os" in
3457   rhapsody* | darwin1.[012])
3458     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3459     ;;
3460   *) # Darwin 1.3 on
3461     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3462     ;;
3463   esac
3464   ;;
3465
3466 freebsd*)
3467   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3468     case $host_cpu in
3469     i*86 )
3470       # Not sure whether the presence of OpenBSD here was a mistake.
3471       # Let's accept both of them until this is cleared up.
3472       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3473       lt_cv_file_magic_cmd=/usr/bin/file
3474       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3475       ;;
3476     esac
3477   else
3478     lt_cv_deplibs_check_method=pass_all
3479   fi
3480   ;;
3481
3482 gnu*)
3483   lt_cv_deplibs_check_method=pass_all
3484   ;;
3485
3486 hpux10.20*|hpux11*)
3487   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3488   lt_cv_file_magic_cmd=/usr/bin/file
3489   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3490   ;;
3491
3492 irix5* | irix6* | nonstopux*)
3493   case $host_os in
3494   irix5* | nonstopux*)
3495     # this will be overridden with pass_all, but let us keep it just in case
3496     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3497     ;;
3498   *)
3499     case $LD in
3500     *-32|*"-32 ") libmagic=32-bit;;
3501     *-n32|*"-n32 ") libmagic=N32;;
3502     *-64|*"-64 ") libmagic=64-bit;;
3503     *) libmagic=never-match;;
3504     esac
3505     # this will be overridden with pass_all, but let us keep it just in case
3506     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3507     ;;
3508   esac
3509   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3510   lt_cv_deplibs_check_method=pass_all
3511   ;;
3512
3513 # This must be Linux ELF.
3514 linux-gnu*)
3515   case $host_cpu in
3516   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3517     lt_cv_deplibs_check_method=pass_all ;;
3518   *)
3519     # glibc up to 2.1.1 does not perform some relocations on ARM
3520     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3521   esac
3522   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3523   ;;
3524
3525 netbsd*)
3526   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3527     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3528   else
3529     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3530   fi
3531   ;;
3532
3533 newos6*)
3534   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3535   lt_cv_file_magic_cmd=/usr/bin/file
3536   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3537   ;;
3538
3539 openbsd*)
3540   lt_cv_file_magic_cmd=/usr/bin/file
3541   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3542   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3543     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3544   else
3545     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3546   fi
3547   ;;
3548
3549 osf3* | osf4* | osf5*)
3550   # this will be overridden with pass_all, but let us keep it just in case
3551   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3552   lt_cv_file_magic_test_file=/shlib/libc.so
3553   lt_cv_deplibs_check_method=pass_all
3554   ;;
3555
3556 sco3.2v5*)
3557   lt_cv_deplibs_check_method=pass_all
3558   ;;
3559
3560 solaris*)
3561   lt_cv_deplibs_check_method=pass_all
3562   lt_cv_file_magic_test_file=/lib/libc.so
3563   ;;
3564
3565 sysv5uw[78]* | sysv4*uw2*)
3566   lt_cv_deplibs_check_method=pass_all
3567   ;;
3568
3569 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3570   case $host_vendor in
3571   motorola)
3572     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]'
3573     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3574     ;;
3575   ncr)
3576     lt_cv_deplibs_check_method=pass_all
3577     ;;
3578   sequent)
3579     lt_cv_file_magic_cmd='/bin/file'
3580     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3581     ;;
3582   sni)
3583     lt_cv_file_magic_cmd='/bin/file'
3584     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3585     lt_cv_file_magic_test_file=/lib/libc.so
3586     ;;
3587   esac
3588   ;;
3589 esac
3590
3591 fi
3592 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3593 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3594 file_magic_cmd=$lt_cv_file_magic_cmd
3595 deplibs_check_method=$lt_cv_deplibs_check_method
3596
3597
3598
3599
3600
3601
3602
3603
3604 # Check for command to grab the raw symbol name followed by C symbol from nm.
3605 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3606 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3607 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3608   echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610
3611 # These are sane defaults that work on at least a few old systems.
3612 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3613
3614 # Character class describing NM global symbol codes.
3615 symcode='[BCDEGRST]'
3616
3617 # Regexp to match symbols that can be accessed directly from C.
3618 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3619
3620 # Transform the above into a raw symbol and a C symbol.
3621 symxfrm='\1 \2\3 \3'
3622
3623 # Transform an extracted symbol line into a proper C declaration
3624 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3625
3626 # Transform an extracted symbol line into symbol name and symbol address
3627 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3628
3629 # Define system-specific variables.
3630 case $host_os in
3631 aix*)
3632   symcode='[BCDT]'
3633   ;;
3634 cygwin* | mingw* | pw32*)
3635   symcode='[ABCDGISTW]'
3636   ;;
3637 hpux*) # Its linker distinguishes data from code symbols
3638   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3639   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3640   ;;
3641 irix* | nonstopux*)
3642   symcode='[BCDEGRST]'
3643   ;;
3644 solaris* | sysv5*)
3645   symcode='[BDT]'
3646   ;;
3647 sysv4)
3648   symcode='[DFNSTU]'
3649   ;;
3650 esac
3651
3652 # Handle CRLF in mingw tool chain
3653 opt_cr=
3654 case $host_os in
3655 mingw*)
3656   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3657   ;;
3658 esac
3659
3660 # If we're using GNU nm, then use its standard symbol codes.
3661 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3662   symcode='[ABCDGISTW]'
3663 fi
3664
3665 # Try without a prefix undercore, then with it.
3666 for ac_symprfx in "" "_"; do
3667
3668   # Write the raw and C identifiers.
3669 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3670
3671   # Check to see that the pipe works correctly.
3672   pipe_works=no
3673   rm -f conftest*
3674   cat > conftest.$ac_ext <<EOF
3675 #ifdef __cplusplus
3676 extern "C" {
3677 #endif
3678 char nm_test_var;
3679 void nm_test_func(){}
3680 #ifdef __cplusplus
3681 }
3682 #endif
3683 int main(){nm_test_var='a';nm_test_func();return(0);}
3684 EOF
3685
3686   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687   (eval $ac_compile) 2>&5
3688   ac_status=$?
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); }; then
3691     # Now try to grab the symbols.
3692     nlist=conftest.nm
3693     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3694   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3695   ac_status=$?
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); } && test -s "$nlist"; then
3698       # Try sorting and uniquifying the output.
3699       if sort "$nlist" | uniq > "$nlist"T; then
3700         mv -f "$nlist"T "$nlist"
3701       else
3702         rm -f "$nlist"T
3703       fi
3704
3705       # Make sure that we snagged all the symbols we need.
3706       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3707         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3708           cat <<EOF > conftest.$ac_ext
3709 #ifdef __cplusplus
3710 extern "C" {
3711 #endif
3712
3713 EOF
3714           # Now generate the symbol file.
3715           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3716
3717           cat <<EOF >> conftest.$ac_ext
3718 #if defined (__STDC__) && __STDC__
3719 # define lt_ptr void *
3720 #else
3721 # define lt_ptr char *
3722 # define const
3723 #endif
3724
3725 /* The mapping between symbol names and symbols. */
3726 const struct {
3727   const char *name;
3728   lt_ptr address;
3729 }
3730 lt_preloaded_symbols[] =
3731 {
3732 EOF
3733           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3734           cat <<\EOF >> conftest.$ac_ext
3735   {0, (lt_ptr) 0}
3736 };
3737
3738 #ifdef __cplusplus
3739 }
3740 #endif
3741 EOF
3742           # Now try linking the two files.
3743           mv conftest.$ac_objext conftstm.$ac_objext
3744           save_LIBS="$LIBS"
3745           save_CFLAGS="$CFLAGS"
3746           LIBS="conftstm.$ac_objext"
3747           CFLAGS="$CFLAGS$no_builtin_flag"
3748           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3749   (eval $ac_link) 2>&5
3750   ac_status=$?
3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752   (exit $ac_status); } && test -s conftest; then
3753             pipe_works=yes
3754           fi
3755           LIBS="$save_LIBS"
3756           CFLAGS="$save_CFLAGS"
3757         else
3758           echo "cannot find nm_test_func in $nlist" >&5
3759         fi
3760       else
3761         echo "cannot find nm_test_var in $nlist" >&5
3762       fi
3763     else
3764       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3765     fi
3766   else
3767     echo "$progname: failed program was:" >&5
3768     cat conftest.$ac_ext >&5
3769   fi
3770   rm -f conftest* conftst*
3771
3772   # Do not use the global_symbol_pipe unless it works.
3773   if test "$pipe_works" = yes; then
3774     break
3775   else
3776     lt_cv_sys_global_symbol_pipe=
3777   fi
3778 done
3779
3780 fi
3781
3782 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3783 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3784   global_symbol_to_cdecl=
3785   global_symbol_to_c_name_address=
3786 else
3787   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3788   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3789 fi
3790 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3791 then
3792   echo "$as_me:$LINENO: result: failed" >&5
3793 echo "${ECHO_T}failed" >&6
3794 else
3795   echo "$as_me:$LINENO: result: ok" >&5
3796 echo "${ECHO_T}ok" >&6
3797 fi
3798
3799 ac_ext=c
3800 ac_cpp='$CPP $CPPFLAGS'
3801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3805 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3806 # On Suns, sometimes $CPP names a directory.
3807 if test -n "$CPP" && test -d "$CPP"; then
3808   CPP=
3809 fi
3810 if test -z "$CPP"; then
3811   if test "${ac_cv_prog_CPP+set}" = set; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814       # Double quotes because CPP needs to be expanded
3815     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3816     do
3817       ac_preproc_ok=false
3818 for ac_c_preproc_warn_flag in '' yes
3819 do
3820   # Use a header file that comes with gcc, so configuring glibc
3821   # with a fresh cross-compiler works.
3822   # On the NeXT, cc -E runs the code through the compiler's parser,
3823   # not just through cpp. "Syntax error" is here to catch this case.
3824   cat >conftest.$ac_ext <<_ACEOF
3825 #line $LINENO "configure"
3826 #include "confdefs.h"
3827 #include <assert.h>
3828                      Syntax error
3829 _ACEOF
3830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3832   ac_status=$?
3833   grep -v '^ *+' conftest.er1 >conftest.err
3834   rm -f conftest.er1
3835   cat conftest.err >&5
3836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837   (exit $ac_status); } >/dev/null; then
3838   if test -s conftest.err; then
3839     ac_cpp_err=$ac_c_preproc_warn_flag
3840   else
3841     ac_cpp_err=
3842   fi
3843 else
3844   ac_cpp_err=yes
3845 fi
3846 if test -z "$ac_cpp_err"; then
3847   :
3848 else
3849   echo "$as_me: failed program was:" >&5
3850   cat conftest.$ac_ext >&5
3851   # Broken: fails on valid input.
3852 continue
3853 fi
3854 rm -f conftest.err conftest.$ac_ext
3855
3856   # OK, works on sane cases.  Now check whether non-existent headers
3857   # can be detected and how.
3858   cat >conftest.$ac_ext <<_ACEOF
3859 #line $LINENO "configure"
3860 #include "confdefs.h"
3861 #include <ac_nonexistent.h>
3862 _ACEOF
3863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3864   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3865   ac_status=$?
3866   grep -v '^ *+' conftest.er1 >conftest.err
3867   rm -f conftest.er1
3868   cat conftest.err >&5
3869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870   (exit $ac_status); } >/dev/null; then
3871   if test -s conftest.err; then
3872     ac_cpp_err=$ac_c_preproc_warn_flag
3873   else
3874     ac_cpp_err=
3875   fi
3876 else
3877   ac_cpp_err=yes
3878 fi
3879 if test -z "$ac_cpp_err"; then
3880   # Broken: success on invalid input.
3881 continue
3882 else
3883   echo "$as_me: failed program was:" >&5
3884   cat conftest.$ac_ext >&5
3885   # Passes both tests.
3886 ac_preproc_ok=:
3887 break
3888 fi
3889 rm -f conftest.err conftest.$ac_ext
3890
3891 done
3892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3893 rm -f conftest.err conftest.$ac_ext
3894 if $ac_preproc_ok; then
3895   break
3896 fi
3897
3898     done
3899     ac_cv_prog_CPP=$CPP
3900
3901 fi
3902   CPP=$ac_cv_prog_CPP
3903 else
3904   ac_cv_prog_CPP=$CPP
3905 fi
3906 echo "$as_me:$LINENO: result: $CPP" >&5
3907 echo "${ECHO_T}$CPP" >&6
3908 ac_preproc_ok=false
3909 for ac_c_preproc_warn_flag in '' yes
3910 do
3911   # Use a header file that comes with gcc, so configuring glibc
3912   # with a fresh cross-compiler works.
3913   # On the NeXT, cc -E runs the code through the compiler's parser,
3914   # not just through cpp. "Syntax error" is here to catch this case.
3915   cat >conftest.$ac_ext <<_ACEOF
3916 #line $LINENO "configure"
3917 #include "confdefs.h"
3918 #include <assert.h>
3919                      Syntax error
3920 _ACEOF
3921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3922   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3923   ac_status=$?
3924   grep -v '^ *+' conftest.er1 >conftest.err
3925   rm -f conftest.er1
3926   cat conftest.err >&5
3927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928   (exit $ac_status); } >/dev/null; then
3929   if test -s conftest.err; then
3930     ac_cpp_err=$ac_c_preproc_warn_flag
3931   else
3932     ac_cpp_err=
3933   fi
3934 else
3935   ac_cpp_err=yes
3936 fi
3937 if test -z "$ac_cpp_err"; then
3938   :
3939 else
3940   echo "$as_me: failed program was:" >&5
3941   cat conftest.$ac_ext >&5
3942   # Broken: fails on valid input.
3943 continue
3944 fi
3945 rm -f conftest.err conftest.$ac_ext
3946
3947   # OK, works on sane cases.  Now check whether non-existent headers
3948   # can be detected and how.
3949   cat >conftest.$ac_ext <<_ACEOF
3950 #line $LINENO "configure"
3951 #include "confdefs.h"
3952 #include <ac_nonexistent.h>
3953 _ACEOF
3954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3955   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3956   ac_status=$?
3957   grep -v '^ *+' conftest.er1 >conftest.err
3958   rm -f conftest.er1
3959   cat conftest.err >&5
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); } >/dev/null; then
3962   if test -s conftest.err; then
3963     ac_cpp_err=$ac_c_preproc_warn_flag
3964   else
3965     ac_cpp_err=
3966   fi
3967 else
3968   ac_cpp_err=yes
3969 fi
3970 if test -z "$ac_cpp_err"; then
3971   # Broken: success on invalid input.
3972 continue
3973 else
3974   echo "$as_me: failed program was:" >&5
3975   cat conftest.$ac_ext >&5
3976   # Passes both tests.
3977 ac_preproc_ok=:
3978 break
3979 fi
3980 rm -f conftest.err conftest.$ac_ext
3981
3982 done
3983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3984 rm -f conftest.err conftest.$ac_ext
3985 if $ac_preproc_ok; then
3986   :
3987 else
3988   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3989 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3990    { (exit 1); exit 1; }; }
3991 fi
3992
3993 ac_ext=c
3994 ac_cpp='$CPP $CPPFLAGS'
3995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998
3999
4000 echo "$as_me:$LINENO: checking for egrep" >&5
4001 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4002 if test "${ac_cv_prog_egrep+set}" = set; then
4003   echo $ECHO_N "(cached) $ECHO_C" >&6
4004 else
4005   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4006     then ac_cv_prog_egrep='grep -E'
4007     else ac_cv_prog_egrep='egrep'
4008     fi
4009 fi
4010 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4011 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4012  EGREP=$ac_cv_prog_egrep
4013
4014
4015 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4017 if test "${ac_cv_header_stdc+set}" = set; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020   cat >conftest.$ac_ext <<_ACEOF
4021 #line $LINENO "configure"
4022 #include "confdefs.h"
4023 #include <stdlib.h>
4024 #include <stdarg.h>
4025 #include <string.h>
4026 #include <float.h>
4027
4028 _ACEOF
4029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4030   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4031   ac_status=$?
4032   grep -v '^ *+' conftest.er1 >conftest.err
4033   rm -f conftest.er1
4034   cat conftest.err >&5
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); } >/dev/null; then
4037   if test -s conftest.err; then
4038     ac_cpp_err=$ac_c_preproc_warn_flag
4039   else
4040     ac_cpp_err=
4041   fi
4042 else
4043   ac_cpp_err=yes
4044 fi
4045 if test -z "$ac_cpp_err"; then
4046   ac_cv_header_stdc=yes
4047 else
4048   echo "$as_me: failed program was:" >&5
4049   cat conftest.$ac_ext >&5
4050   ac_cv_header_stdc=no
4051 fi
4052 rm -f conftest.err conftest.$ac_ext
4053
4054 if test $ac_cv_header_stdc = yes; then
4055   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4056   cat >conftest.$ac_ext <<_ACEOF
4057 #line $LINENO "configure"
4058 #include "confdefs.h"
4059 #include <string.h>
4060
4061 _ACEOF
4062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4063   $EGREP "memchr" >/dev/null 2>&1; then
4064   :
4065 else
4066   ac_cv_header_stdc=no
4067 fi
4068 rm -f conftest*
4069
4070 fi
4071
4072 if test $ac_cv_header_stdc = yes; then
4073   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4074   cat >conftest.$ac_ext <<_ACEOF
4075 #line $LINENO "configure"
4076 #include "confdefs.h"
4077 #include <stdlib.h>
4078
4079 _ACEOF
4080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4081   $EGREP "free" >/dev/null 2>&1; then
4082   :
4083 else
4084   ac_cv_header_stdc=no
4085 fi
4086 rm -f conftest*
4087
4088 fi
4089
4090 if test $ac_cv_header_stdc = yes; then
4091   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4092   if test "$cross_compiling" = yes; then
4093   :
4094 else
4095   cat >conftest.$ac_ext <<_ACEOF
4096 #line $LINENO "configure"
4097 #include "confdefs.h"
4098 #include <ctype.h>
4099 #if ((' ' & 0x0FF) == 0x020)
4100 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4101 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4102 #else
4103 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4104                      || ('j' <= (c) && (c) <= 'r') \
4105                      || ('s' <= (c) && (c) <= 'z'))
4106 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4107 #endif
4108
4109 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4110 int
4111 main ()
4112 {
4113   int i;
4114   for (i = 0; i < 256; i++)
4115     if (XOR (islower (i), ISLOWER (i))
4116         || toupper (i) != TOUPPER (i))
4117       exit(2);
4118   exit (0);
4119 }
4120 _ACEOF
4121 rm -f conftest$ac_exeext
4122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4123   (eval $ac_link) 2>&5
4124   ac_status=$?
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128   (eval $ac_try) 2>&5
4129   ac_status=$?
4130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131   (exit $ac_status); }; }; then
4132   :
4133 else
4134   echo "$as_me: program exited with status $ac_status" >&5
4135 echo "$as_me: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4137 ( exit $ac_status )
4138 ac_cv_header_stdc=no
4139 fi
4140 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4141 fi
4142 fi
4143 fi
4144 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4145 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4146 if test $ac_cv_header_stdc = yes; then
4147
4148 cat >>confdefs.h <<\_ACEOF
4149 #define STDC_HEADERS 1
4150 _ACEOF
4151
4152 fi
4153
4154 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4165                   inttypes.h stdint.h unistd.h
4166 do
4167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4168 echo "$as_me:$LINENO: checking for $ac_header" >&5
4169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4171   echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173   cat >conftest.$ac_ext <<_ACEOF
4174 #line $LINENO "configure"
4175 #include "confdefs.h"
4176 $ac_includes_default
4177
4178 #include <$ac_header>
4179 _ACEOF
4180 rm -f conftest.$ac_objext
4181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182   (eval $ac_compile) 2>&5
4183   ac_status=$?
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); } &&
4186          { ac_try='test -s conftest.$ac_objext'
4187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188   (eval $ac_try) 2>&5
4189   ac_status=$?
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); }; }; then
4192   eval "$as_ac_Header=yes"
4193 else
4194   echo "$as_me: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4196 eval "$as_ac_Header=no"
4197 fi
4198 rm -f conftest.$ac_objext conftest.$ac_ext
4199 fi
4200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4203   cat >>confdefs.h <<_ACEOF
4204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4205 _ACEOF
4206
4207 fi
4208
4209 done
4210
4211
4212
4213 for ac_header in dlfcn.h
4214 do
4215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4217   echo "$as_me:$LINENO: checking for $ac_header" >&5
4218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4220   echo $ECHO_N "(cached) $ECHO_C" >&6
4221 fi
4222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4224 else
4225   # Is the header compilable?
4226 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4228 cat >conftest.$ac_ext <<_ACEOF
4229 #line $LINENO "configure"
4230 #include "confdefs.h"
4231 $ac_includes_default
4232 #include <$ac_header>
4233 _ACEOF
4234 rm -f conftest.$ac_objext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4236   (eval $ac_compile) 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); } &&
4240          { ac_try='test -s conftest.$ac_objext'
4241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242   (eval $ac_try) 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); }; }; then
4246   ac_header_compiler=yes
4247 else
4248   echo "$as_me: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4250 ac_header_compiler=no
4251 fi
4252 rm -f conftest.$ac_objext conftest.$ac_ext
4253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4254 echo "${ECHO_T}$ac_header_compiler" >&6
4255
4256 # Is the header present?
4257 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4259 cat >conftest.$ac_ext <<_ACEOF
4260 #line $LINENO "configure"
4261 #include "confdefs.h"
4262 #include <$ac_header>
4263 _ACEOF
4264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4265   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4266   ac_status=$?
4267   grep -v '^ *+' conftest.er1 >conftest.err
4268   rm -f conftest.er1
4269   cat conftest.err >&5
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); } >/dev/null; then
4272   if test -s conftest.err; then
4273     ac_cpp_err=$ac_c_preproc_warn_flag
4274   else
4275     ac_cpp_err=
4276   fi
4277 else
4278   ac_cpp_err=yes
4279 fi
4280 if test -z "$ac_cpp_err"; then
4281   ac_header_preproc=yes
4282 else
4283   echo "$as_me: failed program was:" >&5
4284   cat conftest.$ac_ext >&5
4285   ac_header_preproc=no
4286 fi
4287 rm -f conftest.err conftest.$ac_ext
4288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4289 echo "${ECHO_T}$ac_header_preproc" >&6
4290
4291 # So?  What about this header?
4292 case $ac_header_compiler:$ac_header_preproc in
4293   yes:no )
4294     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4298   no:yes )
4299     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4301     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4305 esac
4306 echo "$as_me:$LINENO: checking for $ac_header" >&5
4307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4309   echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311   eval "$as_ac_Header=$ac_header_preproc"
4312 fi
4313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4315
4316 fi
4317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4318   cat >>confdefs.h <<_ACEOF
4319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4320 _ACEOF
4321
4322 fi
4323
4324 done
4325
4326
4327
4328
4329
4330 # Only perform the check for file, if the check method requires it
4331 case $deplibs_check_method in
4332 file_magic*)
4333   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4334     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4335 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4336 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4337   echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339   case $MAGIC_CMD in
4340   /*)
4341   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4342   ;;
4343   ?:/*)
4344   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4345   ;;
4346   *)
4347   ac_save_MAGIC_CMD="$MAGIC_CMD"
4348   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4349   ac_dummy="/usr/bin:$PATH"
4350   for ac_dir in $ac_dummy; do
4351     test -z "$ac_dir" && ac_dir=.
4352     if test -f $ac_dir/${ac_tool_prefix}file; then
4353       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4354       if test -n "$file_magic_test_file"; then
4355         case $deplibs_check_method in
4356         "file_magic "*)
4357           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4358           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4359           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4360             egrep "$file_magic_regex" > /dev/null; then
4361             :
4362           else
4363             cat <<EOF 1>&2
4364
4365 *** Warning: the command libtool uses to detect shared libraries,
4366 *** $file_magic_cmd, produces output that libtool cannot recognize.
4367 *** The result is that libtool may fail to recognize shared libraries
4368 *** as such.  This will affect the creation of libtool libraries that
4369 *** depend on shared libraries, but programs linked with such libtool
4370 *** libraries will work regardless of this problem.  Nevertheless, you
4371 *** may want to report the problem to your system manager and/or to
4372 *** bug-libtool@gnu.org
4373
4374 EOF
4375           fi ;;
4376         esac
4377       fi
4378       break
4379     fi
4380   done
4381   IFS="$ac_save_ifs"
4382   MAGIC_CMD="$ac_save_MAGIC_CMD"
4383   ;;
4384 esac
4385 fi
4386
4387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4388 if test -n "$MAGIC_CMD"; then
4389   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4390 echo "${ECHO_T}$MAGIC_CMD" >&6
4391 else
4392   echo "$as_me:$LINENO: result: no" >&5
4393 echo "${ECHO_T}no" >&6
4394 fi
4395
4396 if test -z "$lt_cv_path_MAGIC_CMD"; then
4397   if test -n "$ac_tool_prefix"; then
4398     echo "$as_me:$LINENO: checking for file" >&5
4399 echo $ECHO_N "checking for file... $ECHO_C" >&6
4400 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   case $MAGIC_CMD in
4404   /*)
4405   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4406   ;;
4407   ?:/*)
4408   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4409   ;;
4410   *)
4411   ac_save_MAGIC_CMD="$MAGIC_CMD"
4412   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4413   ac_dummy="/usr/bin:$PATH"
4414   for ac_dir in $ac_dummy; do
4415     test -z "$ac_dir" && ac_dir=.
4416     if test -f $ac_dir/file; then
4417       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4418       if test -n "$file_magic_test_file"; then
4419         case $deplibs_check_method in
4420         "file_magic "*)
4421           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4422           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4423           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4424             egrep "$file_magic_regex" > /dev/null; then
4425             :
4426           else
4427             cat <<EOF 1>&2
4428
4429 *** Warning: the command libtool uses to detect shared libraries,
4430 *** $file_magic_cmd, produces output that libtool cannot recognize.
4431 *** The result is that libtool may fail to recognize shared libraries
4432 *** as such.  This will affect the creation of libtool libraries that
4433 *** depend on shared libraries, but programs linked with such libtool
4434 *** libraries will work regardless of this problem.  Nevertheless, you
4435 *** may want to report the problem to your system manager and/or to
4436 *** bug-libtool@gnu.org
4437
4438 EOF
4439           fi ;;
4440         esac
4441       fi
4442       break
4443     fi
4444   done
4445   IFS="$ac_save_ifs"
4446   MAGIC_CMD="$ac_save_MAGIC_CMD"
4447   ;;
4448 esac
4449 fi
4450
4451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4452 if test -n "$MAGIC_CMD"; then
4453   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4454 echo "${ECHO_T}$MAGIC_CMD" >&6
4455 else
4456   echo "$as_me:$LINENO: result: no" >&5
4457 echo "${ECHO_T}no" >&6
4458 fi
4459
4460   else
4461     MAGIC_CMD=:
4462   fi
4463 fi
4464
4465   fi
4466   ;;
4467 esac
4468
4469 if test -n "$ac_tool_prefix"; then
4470   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4471 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4472 echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4474 if test "${ac_cv_prog_RANLIB+set}" = set; then
4475   echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477   if test -n "$RANLIB"; then
4478   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485   for ac_exec_ext in '' $ac_executable_extensions; do
4486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492 done
4493
4494 fi
4495 fi
4496 RANLIB=$ac_cv_prog_RANLIB
4497 if test -n "$RANLIB"; then
4498   echo "$as_me:$LINENO: result: $RANLIB" >&5
4499 echo "${ECHO_T}$RANLIB" >&6
4500 else
4501   echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4503 fi
4504
4505 fi
4506 if test -z "$ac_cv_prog_RANLIB"; then
4507   ac_ct_RANLIB=$RANLIB
4508   # Extract the first word of "ranlib", so it can be a program name with args.
4509 set dummy ranlib; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   if test -n "$ac_ct_RANLIB"; then
4516   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4517 else
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4520 do
4521   IFS=$as_save_IFS
4522   test -z "$as_dir" && as_dir=.
4523   for ac_exec_ext in '' $ac_executable_extensions; do
4524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525     ac_cv_prog_ac_ct_RANLIB="ranlib"
4526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527     break 2
4528   fi
4529 done
4530 done
4531
4532   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4533 fi
4534 fi
4535 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4536 if test -n "$ac_ct_RANLIB"; then
4537   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4538 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4539 else
4540   echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6
4542 fi
4543
4544   RANLIB=$ac_ct_RANLIB
4545 else
4546   RANLIB="$ac_cv_prog_RANLIB"
4547 fi
4548
4549 if test -n "$ac_tool_prefix"; then
4550   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4551 set dummy ${ac_tool_prefix}strip; ac_word=$2
4552 echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4554 if test "${ac_cv_prog_STRIP+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   if test -n "$STRIP"; then
4558   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563   IFS=$as_save_IFS
4564   test -z "$as_dir" && as_dir=.
4565   for ac_exec_ext in '' $ac_executable_extensions; do
4566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569     break 2
4570   fi
4571 done
4572 done
4573
4574 fi
4575 fi
4576 STRIP=$ac_cv_prog_STRIP
4577 if test -n "$STRIP"; then
4578   echo "$as_me:$LINENO: result: $STRIP" >&5
4579 echo "${ECHO_T}$STRIP" >&6
4580 else
4581   echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6
4583 fi
4584
4585 fi
4586 if test -z "$ac_cv_prog_STRIP"; then
4587   ac_ct_STRIP=$STRIP
4588   # Extract the first word of "strip", so it can be a program name with args.
4589 set dummy strip; ac_word=$2
4590 echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4592 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595   if test -n "$ac_ct_STRIP"; then
4596   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4600 do
4601   IFS=$as_save_IFS
4602   test -z "$as_dir" && as_dir=.
4603   for ac_exec_ext in '' $ac_executable_extensions; do
4604   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4605     ac_cv_prog_ac_ct_STRIP="strip"
4606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607     break 2
4608   fi
4609 done
4610 done
4611
4612   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4613 fi
4614 fi
4615 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4616 if test -n "$ac_ct_STRIP"; then
4617   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4618 echo "${ECHO_T}$ac_ct_STRIP" >&6
4619 else
4620   echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6
4622 fi
4623
4624   STRIP=$ac_ct_STRIP
4625 else
4626   STRIP="$ac_cv_prog_STRIP"
4627 fi
4628
4629
4630 enable_dlopen=no
4631 enable_win32_dll=no
4632
4633 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4634 if test "${enable_libtool_lock+set}" = set; then
4635   enableval="$enable_libtool_lock"
4636
4637 fi;
4638 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4639
4640 # Some flags need to be propagated to the compiler or linker for good
4641 # libtool support.
4642 case $host in
4643 *-*-irix6*)
4644   # Find out which ABI we are using.
4645   echo '#line 4645 "configure"' > conftest.$ac_ext
4646   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647   (eval $ac_compile) 2>&5
4648   ac_status=$?
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); }; then
4651     case `/usr/bin/file conftest.$ac_objext` in
4652     *32-bit*)
4653       LD="${LD-ld} -32"
4654       ;;
4655     *N32*)
4656       LD="${LD-ld} -n32"
4657       ;;
4658     *64-bit*)
4659       LD="${LD-ld} -64"
4660       ;;
4661     esac
4662   fi
4663   rm -rf conftest*
4664   ;;
4665
4666 *-*-sco3.2v5*)
4667   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4668   SAVE_CFLAGS="$CFLAGS"
4669   CFLAGS="$CFLAGS -belf"
4670   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4671 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4672 if test "${lt_cv_cc_needs_belf+set}" = set; then
4673   echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675
4676
4677      ac_ext=c
4678 ac_cpp='$CPP $CPPFLAGS'
4679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4682
4683      cat >conftest.$ac_ext <<_ACEOF
4684 #line $LINENO "configure"
4685 #include "confdefs.h"
4686
4687 int
4688 main ()
4689 {
4690
4691   ;
4692   return 0;
4693 }
4694 _ACEOF
4695 rm -f conftest.$ac_objext conftest$ac_exeext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4697   (eval $ac_link) 2>&5
4698   ac_status=$?
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); } &&
4701          { ac_try='test -s conftest$ac_exeext'
4702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703   (eval $ac_try) 2>&5
4704   ac_status=$?
4705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706   (exit $ac_status); }; }; then
4707   lt_cv_cc_needs_belf=yes
4708 else
4709   echo "$as_me: failed program was:" >&5
4710 cat conftest.$ac_ext >&5
4711 lt_cv_cc_needs_belf=no
4712 fi
4713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4714      ac_ext=c
4715 ac_cpp='$CPP $CPPFLAGS'
4716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4719
4720 fi
4721 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4722 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4723   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4724     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4725     CFLAGS="$SAVE_CFLAGS"
4726   fi
4727   ;;
4728
4729
4730 esac
4731
4732 # Sed substitution that helps us do robust quoting.  It backslashifies
4733 # metacharacters that are still active within double-quoted strings.
4734 Xsed='sed -e s/^X//'
4735 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4736
4737 # Same as above, but do not quote variable references.
4738 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4739
4740 # Sed substitution to delay expansion of an escaped shell variable in a
4741 # double_quote_subst'ed string.
4742 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4743
4744 # Constants:
4745 rm="rm -f"
4746
4747 # Global variables:
4748 default_ofile=libtool
4749 can_build_shared=yes
4750
4751 # All known linkers require a `.a' archive for static linking (except M$VC,
4752 # which needs '.lib').
4753 libext=a
4754 ltmain="$ac_aux_dir/ltmain.sh"
4755 ofile="$default_ofile"
4756 with_gnu_ld="$lt_cv_prog_gnu_ld"
4757 need_locks="$enable_libtool_lock"
4758
4759 old_CC="$CC"
4760 old_CFLAGS="$CFLAGS"
4761
4762 # Set sane defaults for various variables
4763 test -z "$AR" && AR=ar
4764 test -z "$AR_FLAGS" && AR_FLAGS=cru
4765 test -z "$AS" && AS=as
4766 test -z "$CC" && CC=cc
4767 test -z "$DLLTOOL" && DLLTOOL=dlltool
4768 test -z "$LD" && LD=ld
4769 test -z "$LN_S" && LN_S="ln -s"
4770 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4771 test -z "$NM" && NM=nm
4772 test -z "$OBJDUMP" && OBJDUMP=objdump
4773 test -z "$RANLIB" && RANLIB=:
4774 test -z "$STRIP" && STRIP=:
4775 test -z "$ac_objext" && ac_objext=o
4776
4777 if test x"$host" != x"$build"; then
4778   ac_tool_prefix=${host_alias}-
4779 else
4780   ac_tool_prefix=
4781 fi
4782
4783 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4784 case $host_os in
4785 linux-gnu*) ;;
4786 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4787 esac
4788
4789 case $host_os in
4790 aix3*)
4791   # AIX sometimes has problems with the GCC collect2 program.  For some
4792   # reason, if we set the COLLECT_NAMES environment variable, the problems
4793   # vanish in a puff of smoke.
4794   if test "X${COLLECT_NAMES+set}" != Xset; then
4795     COLLECT_NAMES=
4796     export COLLECT_NAMES
4797   fi
4798   ;;
4799 esac
4800
4801 # Determine commands to create old-style static archives.
4802 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4803 old_postinstall_cmds='chmod 644 $oldlib'
4804 old_postuninstall_cmds=
4805
4806 if test -n "$RANLIB"; then
4807   case $host_os in
4808   openbsd*)
4809     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4810     ;;
4811   *)
4812     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4813     ;;
4814   esac
4815   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4816 fi
4817
4818 # Allow CC to be a program name with arguments.
4819 set dummy $CC
4820 compiler="$2"
4821
4822 ## FIXME: this should be a separate macro
4823 ##
4824 echo "$as_me:$LINENO: checking for objdir" >&5
4825 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4826 rm -f .libs 2>/dev/null
4827 mkdir .libs 2>/dev/null
4828 if test -d .libs; then
4829   objdir=.libs
4830 else
4831   # MS-DOS does not allow filenames that begin with a dot.
4832   objdir=_libs
4833 fi
4834 rmdir .libs 2>/dev/null
4835 echo "$as_me:$LINENO: result: $objdir" >&5
4836 echo "${ECHO_T}$objdir" >&6
4837 ##
4838 ## END FIXME
4839
4840
4841 ## FIXME: this should be a separate macro
4842 ##
4843
4844 # Check whether --with-pic or --without-pic was given.
4845 if test "${with_pic+set}" = set; then
4846   withval="$with_pic"
4847   pic_mode="$withval"
4848 else
4849   pic_mode=default
4850 fi;
4851 test -z "$pic_mode" && pic_mode=default
4852
4853 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4854 # in isolation, and that seeing it set (from the cache) indicates that
4855 # the associated values are set (in the cache) correctly too.
4856 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4857 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4858 if test "${lt_cv_prog_cc_pic+set}" = set; then
4859   echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861    lt_cv_prog_cc_pic=
4862   lt_cv_prog_cc_shlib=
4863   lt_cv_prog_cc_wl=
4864   lt_cv_prog_cc_static=
4865   lt_cv_prog_cc_no_builtin=
4866   lt_cv_prog_cc_can_build_shared=$can_build_shared
4867
4868   if test "$GCC" = yes; then
4869     lt_cv_prog_cc_wl='-Wl,'
4870     lt_cv_prog_cc_static='-static'
4871
4872     case $host_os in
4873     aix*)
4874       # Below there is a dirty hack to force normal static linking with -ldl
4875       # The problem is because libdl dynamically linked with both libc and
4876       # libC (AIX C++ library), which obviously doesn't included in libraries
4877       # list by gcc. This cause undefined symbols with -static flags.
4878       # This hack allows C programs to be linked with "-static -ldl", but
4879       # not sure about C++ programs.
4880       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4881       ;;
4882     amigaos*)
4883       # FIXME: we need at least 68020 code to build shared libraries, but
4884       # adding the `-m68020' flag to GCC prevents building anything better,
4885       # like `-m68040'.
4886       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4887       ;;
4888     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4889       # PIC is the default for these OSes.
4890       ;;
4891     darwin* | rhapsody*)
4892       # PIC is the default on this platform
4893       # Common symbols not allowed in MH_DYLIB files
4894       lt_cv_prog_cc_pic='-fno-common'
4895       ;;
4896     cygwin* | mingw* | pw32* | os2*)
4897       # This hack is so that the source file can tell whether it is being
4898       # built for inclusion in a dll (and should export symbols for example).
4899       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4900       ;;
4901     sysv4*MP*)
4902       if test -d /usr/nec; then
4903          lt_cv_prog_cc_pic=-Kconform_pic
4904       fi
4905       ;;
4906     *)
4907       lt_cv_prog_cc_pic='-fPIC'
4908       ;;
4909     esac
4910   else
4911     # PORTME Check for PIC flags for the system compiler.
4912     case $host_os in
4913     aix3* | aix4* | aix5*)
4914       lt_cv_prog_cc_wl='-Wl,'
4915       # All AIX code is PIC.
4916       if test "$host_cpu" = ia64; then
4917         # AIX 5 now supports IA64 processor
4918         lt_cv_prog_cc_static='-Bstatic'
4919       else
4920         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4921       fi
4922       ;;
4923
4924     hpux9* | hpux10* | hpux11*)
4925       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4926       lt_cv_prog_cc_wl='-Wl,'
4927       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4928       lt_cv_prog_cc_pic='+Z'
4929       ;;
4930
4931     irix5* | irix6* | nonstopux*)
4932       lt_cv_prog_cc_wl='-Wl,'
4933       lt_cv_prog_cc_static='-non_shared'
4934       # PIC (with -KPIC) is the default.
4935       ;;
4936
4937     cygwin* | mingw* | pw32* | os2*)
4938       # This hack is so that the source file can tell whether it is being
4939       # built for inclusion in a dll (and should export symbols for example).
4940       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4941       ;;
4942
4943     newsos6)
4944       lt_cv_prog_cc_pic='-KPIC'
4945       lt_cv_prog_cc_static='-Bstatic'
4946       ;;
4947
4948     osf3* | osf4* | osf5*)
4949       # All OSF/1 code is PIC.
4950       lt_cv_prog_cc_wl='-Wl,'
4951       lt_cv_prog_cc_static='-non_shared'
4952       ;;
4953
4954     sco3.2v5*)
4955       lt_cv_prog_cc_pic='-Kpic'
4956       lt_cv_prog_cc_static='-dn'
4957       lt_cv_prog_cc_shlib='-belf'
4958       ;;
4959
4960     solaris*)
4961       lt_cv_prog_cc_pic='-KPIC'
4962       lt_cv_prog_cc_static='-Bstatic'
4963       lt_cv_prog_cc_wl='-Wl,'
4964       ;;
4965
4966     sunos4*)
4967       lt_cv_prog_cc_pic='-PIC'
4968       lt_cv_prog_cc_static='-Bstatic'
4969       lt_cv_prog_cc_wl='-Qoption ld '
4970       ;;
4971
4972     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4973       lt_cv_prog_cc_pic='-KPIC'
4974       lt_cv_prog_cc_static='-Bstatic'
4975       if test "x$host_vendor" = xsni; then
4976         lt_cv_prog_cc_wl='-LD'
4977       else
4978         lt_cv_prog_cc_wl='-Wl,'
4979       fi
4980       ;;
4981
4982     uts4*)
4983       lt_cv_prog_cc_pic='-pic'
4984       lt_cv_prog_cc_static='-Bstatic'
4985       ;;
4986
4987     sysv4*MP*)
4988       if test -d /usr/nec ;then
4989         lt_cv_prog_cc_pic='-Kconform_pic'
4990         lt_cv_prog_cc_static='-Bstatic'
4991       fi
4992       ;;
4993
4994     *)
4995       lt_cv_prog_cc_can_build_shared=no
4996       ;;
4997     esac
4998   fi
4999
5000 fi
5001
5002 if test -z "$lt_cv_prog_cc_pic"; then
5003   echo "$as_me:$LINENO: result: none" >&5
5004 echo "${ECHO_T}none" >&6
5005 else
5006   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5007 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5008
5009   # Check to make sure the pic_flag actually works.
5010   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5011 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5012   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5013   echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015       save_CFLAGS="$CFLAGS"
5016     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5017     cat >conftest.$ac_ext <<_ACEOF
5018 #line $LINENO "configure"
5019 #include "confdefs.h"
5020
5021 int
5022 main ()
5023 {
5024
5025   ;
5026   return 0;
5027 }
5028 _ACEOF
5029 rm -f conftest.$ac_objext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5031   (eval $ac_compile) 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); } &&
5035          { ac_try='test -s conftest.$ac_objext'
5036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037   (eval $ac_try) 2>&5
5038   ac_status=$?
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); }; }; then
5041         case $host_os in
5042       hpux9* | hpux10* | hpux11*)
5043         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5044         # they create non-PIC objects.  So, if there were any warnings, we
5045         # assume that PIC is not supported.
5046         if test -s conftest.err; then
5047           lt_cv_prog_cc_pic_works=no
5048         else
5049           lt_cv_prog_cc_pic_works=yes
5050         fi
5051         ;;
5052       *)
5053         lt_cv_prog_cc_pic_works=yes
5054         ;;
5055       esac
5056
5057 else
5058   echo "$as_me: failed program was:" >&5
5059 cat conftest.$ac_ext >&5
5060       lt_cv_prog_cc_pic_works=no
5061
5062 fi
5063 rm -f conftest.$ac_objext conftest.$ac_ext
5064     CFLAGS="$save_CFLAGS"
5065
5066 fi
5067
5068
5069   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5070     lt_cv_prog_cc_pic=
5071     lt_cv_prog_cc_can_build_shared=no
5072   else
5073     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5074   fi
5075
5076   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5077 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5078 fi
5079 ##
5080 ## END FIXME
5081
5082 # Check for any special shared library compilation flags.
5083 if test -n "$lt_cv_prog_cc_shlib"; then
5084   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5085 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5086   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5087   else
5088    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5089 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5090     lt_cv_prog_cc_can_build_shared=no
5091   fi
5092 fi
5093
5094 ## FIXME: this should be a separate macro
5095 ##
5096 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5097 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5098 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5099   echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101     lt_cv_prog_cc_static_works=no
5102   save_LDFLAGS="$LDFLAGS"
5103   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5104   cat >conftest.$ac_ext <<_ACEOF
5105 #line $LINENO "configure"
5106 #include "confdefs.h"
5107
5108 int
5109 main ()
5110 {
5111
5112   ;
5113   return 0;
5114 }
5115 _ACEOF
5116 rm -f conftest.$ac_objext conftest$ac_exeext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5118   (eval $ac_link) 2>&5
5119   ac_status=$?
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); } &&
5122          { ac_try='test -s conftest$ac_exeext'
5123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124   (eval $ac_try) 2>&5
5125   ac_status=$?
5126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127   (exit $ac_status); }; }; then
5128   lt_cv_prog_cc_static_works=yes
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 cat conftest.$ac_ext >&5
5132 fi
5133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5134   LDFLAGS="$save_LDFLAGS"
5135
5136 fi
5137
5138
5139 # Belt *and* braces to stop my trousers falling down:
5140 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5141 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5142 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5143
5144 pic_flag="$lt_cv_prog_cc_pic"
5145 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5146 wl="$lt_cv_prog_cc_wl"
5147 link_static_flag="$lt_cv_prog_cc_static"
5148 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5149 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5150 ##
5151 ## END FIXME
5152
5153
5154 ## FIXME: this should be a separate macro
5155 ##
5156 # Check to see if options -o and -c are simultaneously supported by compiler
5157 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5158 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5159 if test "${lt_cv_compiler_c_o+set}" = set; then
5160   echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162
5163 $rm -r conftest 2>/dev/null
5164 mkdir conftest
5165 cd conftest
5166 echo "int some_variable = 0;" > conftest.$ac_ext
5167 mkdir out
5168 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5169 # that will create temporary files in the current directory regardless of
5170 # the output directory.  Thus, making CWD read-only will cause this test
5171 # to fail, enabling locking or at least warning the user not to do parallel
5172 # builds.
5173 chmod -w .
5174 save_CFLAGS="$CFLAGS"
5175 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5176 compiler_c_o=no
5177 if { (eval echo configure:5177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5178   # The compiler can only warn and ignore the option if not recognized
5179   # So say no if there are warnings
5180   if test -s out/conftest.err; then
5181     lt_cv_compiler_c_o=no
5182   else
5183     lt_cv_compiler_c_o=yes
5184   fi
5185 else
5186   # Append any errors to the config.log.
5187   cat out/conftest.err 1>&5
5188   lt_cv_compiler_c_o=no
5189 fi
5190 CFLAGS="$save_CFLAGS"
5191 chmod u+w .
5192 $rm conftest* out/*
5193 rmdir out
5194 cd ..
5195 rmdir conftest
5196 $rm -r conftest 2>/dev/null
5197
5198 fi
5199
5200 compiler_c_o=$lt_cv_compiler_c_o
5201 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5202 echo "${ECHO_T}$compiler_c_o" >&6
5203
5204 if test x"$compiler_c_o" = x"yes"; then
5205   # Check to see if we can write to a .lo
5206   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5207 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5208   if test "${lt_cv_compiler_o_lo+set}" = set; then
5209   echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211
5212   lt_cv_compiler_o_lo=no
5213   save_CFLAGS="$CFLAGS"
5214   CFLAGS="$CFLAGS -c -o conftest.lo"
5215   save_objext="$ac_objext"
5216   ac_objext=lo
5217   cat >conftest.$ac_ext <<_ACEOF
5218 #line $LINENO "configure"
5219 #include "confdefs.h"
5220
5221 int
5222 main ()
5223 {
5224 int some_variable = 0;
5225   ;
5226   return 0;
5227 }
5228 _ACEOF
5229 rm -f conftest.$ac_objext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231   (eval $ac_compile) 2>&5
5232   ac_status=$?
5233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234   (exit $ac_status); } &&
5235          { ac_try='test -s conftest.$ac_objext'
5236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237   (eval $ac_try) 2>&5
5238   ac_status=$?
5239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); }; }; then
5241       # The compiler can only warn and ignore the option if not recognized
5242     # So say no if there are warnings
5243     if test -s conftest.err; then
5244       lt_cv_compiler_o_lo=no
5245     else
5246       lt_cv_compiler_o_lo=yes
5247     fi
5248
5249 else
5250   echo "$as_me: failed program was:" >&5
5251 cat conftest.$ac_ext >&5
5252 fi
5253 rm -f conftest.$ac_objext conftest.$ac_ext
5254   ac_objext="$save_objext"
5255   CFLAGS="$save_CFLAGS"
5256
5257 fi
5258
5259   compiler_o_lo=$lt_cv_compiler_o_lo
5260   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5261 echo "${ECHO_T}$compiler_o_lo" >&6
5262 else
5263   compiler_o_lo=no
5264 fi
5265 ##
5266 ## END FIXME
5267
5268 ## FIXME: this should be a separate macro
5269 ##
5270 # Check to see if we can do hard links to lock some files if needed
5271 hard_links="nottested"
5272 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5273   # do not overwrite the value of need_locks provided by the user
5274   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5275 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5276   hard_links=yes
5277   $rm conftest*
5278   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5279   touch conftest.a
5280   ln conftest.a conftest.b 2>&5 || hard_links=no
5281   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5282   echo "$as_me:$LINENO: result: $hard_links" >&5
5283 echo "${ECHO_T}$hard_links" >&6
5284   if test "$hard_links" = no; then
5285     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5286 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5287     need_locks=warn
5288   fi
5289 else
5290   need_locks=no
5291 fi
5292 ##
5293 ## END FIXME
5294
5295 ## FIXME: this should be a separate macro
5296 ##
5297 if test "$GCC" = yes; then
5298   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5299   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5300 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5301   echo "int some_variable = 0;" > conftest.$ac_ext
5302   save_CFLAGS="$CFLAGS"
5303   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5304   compiler_rtti_exceptions=no
5305   cat >conftest.$ac_ext <<_ACEOF
5306 #line $LINENO "configure"
5307 #include "confdefs.h"
5308
5309 int
5310 main ()
5311 {
5312 int some_variable = 0;
5313   ;
5314   return 0;
5315 }
5316 _ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319   (eval $ac_compile) 2>&5
5320   ac_status=$?
5321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322   (exit $ac_status); } &&
5323          { ac_try='test -s conftest.$ac_objext'
5324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325   (eval $ac_try) 2>&5
5326   ac_status=$?
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); }; }; then
5329       # The compiler can only warn and ignore the option if not recognized
5330     # So say no if there are warnings
5331     if test -s conftest.err; then
5332       compiler_rtti_exceptions=no
5333     else
5334       compiler_rtti_exceptions=yes
5335     fi
5336
5337 else
5338   echo "$as_me: failed program was:" >&5
5339 cat conftest.$ac_ext >&5
5340 fi
5341 rm -f conftest.$ac_objext conftest.$ac_ext
5342   CFLAGS="$save_CFLAGS"
5343   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5344 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5345
5346   if test "$compiler_rtti_exceptions" = "yes"; then
5347     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5348   else
5349     no_builtin_flag=' -fno-builtin'
5350   fi
5351 fi
5352 ##
5353 ## END FIXME
5354
5355 ## FIXME: this should be a separate macro
5356 ##
5357 # See if the linker supports building shared libraries.
5358 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5359 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5360
5361 allow_undefined_flag=
5362 no_undefined_flag=
5363 need_lib_prefix=unknown
5364 need_version=unknown
5365 # when you set need_version to no, make sure it does not cause -set_version
5366 # flags to be left without arguments
5367 archive_cmds=
5368 archive_expsym_cmds=
5369 old_archive_from_new_cmds=
5370 old_archive_from_expsyms_cmds=
5371 export_dynamic_flag_spec=
5372 whole_archive_flag_spec=
5373 thread_safe_flag_spec=
5374 hardcode_into_libs=no
5375 hardcode_libdir_flag_spec=
5376 hardcode_libdir_separator=
5377 hardcode_direct=no
5378 hardcode_minus_L=no
5379 hardcode_shlibpath_var=unsupported
5380 runpath_var=
5381 link_all_deplibs=unknown
5382 always_export_symbols=no
5383 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5384 # include_expsyms should be a list of space-separated symbols to be *always*
5385 # included in the symbol list
5386 include_expsyms=
5387 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5388 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5389 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5390 # as well as any symbol that contains `d'.
5391 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5392 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5393 # platforms (ab)use it in PIC code, but their linkers get confused if
5394 # the symbol is explicitly referenced.  Since portable code cannot
5395 # rely on this symbol name, it's probably fine to never include it in
5396 # preloaded symbol tables.
5397 extract_expsyms_cmds=
5398
5399 case $host_os in
5400 cygwin* | mingw* | pw32*)
5401   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5402   # When not using gcc, we currently assume that we are using
5403   # Microsoft Visual C++.
5404   if test "$GCC" != yes; then
5405     with_gnu_ld=no
5406   fi
5407   ;;
5408 openbsd*)
5409   with_gnu_ld=no
5410   ;;
5411 esac
5412
5413 ld_shlibs=yes
5414 if test "$with_gnu_ld" = yes; then
5415   # If archive_cmds runs LD, not CC, wlarc should be empty
5416   wlarc='${wl}'
5417
5418   # See if GNU ld supports shared libraries.
5419   case $host_os in
5420   aix3* | aix4* | aix5*)
5421     # On AIX, the GNU linker is very broken
5422     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5423     ld_shlibs=no
5424     cat <<EOF 1>&2
5425
5426 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5427 *** to be unable to reliably create shared libraries on AIX.
5428 *** Therefore, libtool is disabling shared libraries support.  If you
5429 *** really care for shared libraries, you may want to modify your PATH
5430 *** so that a non-GNU linker is found, and then restart.
5431
5432 EOF
5433     ;;
5434
5435   amigaos*)
5436     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)'
5437     hardcode_libdir_flag_spec='-L$libdir'
5438     hardcode_minus_L=yes
5439
5440     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5441     # that the semantics of dynamic libraries on AmigaOS, at least up
5442     # to version 4, is to share data among multiple programs linked
5443     # with the same dynamic library.  Since this doesn't match the
5444     # behavior of shared libraries on other platforms, we can use
5445     # them.
5446     ld_shlibs=no
5447     ;;
5448
5449   beos*)
5450     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5451       allow_undefined_flag=unsupported
5452       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5453       # support --undefined.  This deserves some investigation.  FIXME
5454       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5455     else
5456       ld_shlibs=no
5457     fi
5458     ;;
5459
5460   cygwin* | mingw* | pw32*)
5461     # hardcode_libdir_flag_spec is actually meaningless, as there is
5462     # no search path for DLLs.
5463     hardcode_libdir_flag_spec='-L$libdir'
5464     allow_undefined_flag=unsupported
5465     always_export_symbols=yes
5466
5467     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5468       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5469       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5470       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5471       else $CC -o impgen impgen.c ; fi)~
5472       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5473
5474     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5475
5476     # cygwin and mingw dlls have different entry points and sets of symbols
5477     # to exclude.
5478     # FIXME: what about values for MSVC?
5479     dll_entry=__cygwin_dll_entry@12
5480     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5481     case $host_os in
5482     mingw*)
5483       # mingw values
5484       dll_entry=_DllMainCRTStartup@12
5485       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5486       ;;
5487     esac
5488
5489     # mingw and cygwin differ, and it's simplest to just exclude the union
5490     # of the two symbol sets.
5491     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5492
5493     # recent cygwin and mingw systems supply a stub DllMain which the user
5494     # can override, but on older systems we have to supply one (in ltdll.c)
5495     if test "x$lt_cv_need_dllmain" = "xyes"; then
5496       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5497       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5498         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5499     else
5500       ltdll_obj=
5501       ltdll_cmds=
5502     fi
5503
5504     # Extract the symbol export list from an `--export-all' def file,
5505     # then regenerate the def file from the symbol export list, so that
5506     # the compiled dll only exports the symbol export list.
5507     # Be careful not to strip the DATA tag left be newer dlltools.
5508     export_symbols_cmds="$ltdll_cmds"'
5509       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5510       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5511
5512     # If the export-symbols file already is a .def file (1st line
5513     # is EXPORTS), use it as is.
5514     # If DATA tags from a recent dlltool are present, honour them!
5515     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5516         cp $export_symbols $output_objdir/$soname-def;
5517       else
5518         echo EXPORTS > $output_objdir/$soname-def;
5519         _lt_hint=1;
5520         cat $export_symbols | while read symbol; do
5521          set dummy \$symbol;
5522          case \$# in
5523            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5524            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5525          esac;
5526          _lt_hint=`expr 1 + \$_lt_hint`;
5527         done;
5528       fi~
5529       '"$ltdll_cmds"'
5530       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5531       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5532       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5533       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5534       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5535     ;;
5536
5537   netbsd*)
5538     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5539       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5540       wlarc=
5541     else
5542       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5543       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5544     fi
5545     ;;
5546
5547   solaris* | sysv5*)
5548     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5549       ld_shlibs=no
5550       cat <<EOF 1>&2
5551
5552 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5553 *** create shared libraries on Solaris systems.  Therefore, libtool
5554 *** is disabling shared libraries support.  We urge you to upgrade GNU
5555 *** binutils to release 2.9.1 or newer.  Another option is to modify
5556 *** your PATH or compiler configuration so that the native linker is
5557 *** used, and then restart.
5558
5559 EOF
5560     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5561       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5562       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5563     else
5564       ld_shlibs=no
5565     fi
5566     ;;
5567
5568   sunos4*)
5569     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5570     wlarc=
5571     hardcode_direct=yes
5572     hardcode_shlibpath_var=no
5573     ;;
5574
5575   *)
5576     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5577       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5578       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5579     else
5580       ld_shlibs=no
5581     fi
5582     ;;
5583   esac
5584
5585   if test "$ld_shlibs" = yes; then
5586     runpath_var=LD_RUN_PATH
5587     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5588     export_dynamic_flag_spec='${wl}--export-dynamic'
5589     case $host_os in
5590     cygwin* | mingw* | pw32*)
5591       # dlltool doesn't understand --whole-archive et. al.
5592       whole_archive_flag_spec=
5593       ;;
5594     *)
5595       # ancient GNU ld didn't support --whole-archive et. al.
5596       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5597         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5598       else
5599         whole_archive_flag_spec=
5600       fi
5601       ;;
5602     esac
5603   fi
5604 else
5605   # PORTME fill in a description of your system's linker (not GNU ld)
5606   case $host_os in
5607   aix3*)
5608     allow_undefined_flag=unsupported
5609     always_export_symbols=yes
5610     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'
5611     # Note: this linker hardcodes the directories in LIBPATH if there
5612     # are no directories specified by -L.
5613     hardcode_minus_L=yes
5614     if test "$GCC" = yes && test -z "$link_static_flag"; then
5615       # Neither direct hardcoding nor static linking is supported with a
5616       # broken collect2.
5617       hardcode_direct=unsupported
5618     fi
5619     ;;
5620
5621   aix4* | aix5*)
5622     if test "$host_cpu" = ia64; then
5623       # On IA64, the linker does run time linking by default, so we don't
5624       # have to do anything special.
5625       aix_use_runtimelinking=no
5626       exp_sym_flag='-Bexport'
5627       no_entry_flag=""
5628     else
5629       aix_use_runtimelinking=no
5630
5631       # Test if we are trying to use run time linking or normal
5632       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5633       # need to do runtime linking.
5634       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5635         for ld_flag in $LDFLAGS; do
5636           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5637             aix_use_runtimelinking=yes
5638             break
5639           fi
5640         done
5641       esac
5642
5643       exp_sym_flag='-bexport'
5644       no_entry_flag='-bnoentry'
5645     fi
5646
5647     # When large executables or shared objects are built, AIX ld can
5648     # have problems creating the table of contents.  If linking a library
5649     # or program results in "error TOC overflow" add -mminimal-toc to
5650     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5651     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5652
5653     hardcode_direct=yes
5654     archive_cmds=''
5655     hardcode_libdir_separator=':'
5656     if test "$GCC" = yes; then
5657       case $host_os in aix4.[012]|aix4.[012].*)
5658         collect2name=`${CC} -print-prog-name=collect2`
5659         if test -f "$collect2name" && \
5660           strings "$collect2name" | grep resolve_lib_name >/dev/null
5661         then
5662           # We have reworked collect2
5663           hardcode_direct=yes
5664         else
5665           # We have old collect2
5666           hardcode_direct=unsupported
5667           # It fails to find uninstalled libraries when the uninstalled
5668           # path is not listed in the libpath.  Setting hardcode_minus_L
5669           # to unsupported forces relinking
5670           hardcode_minus_L=yes
5671           hardcode_libdir_flag_spec='-L$libdir'
5672           hardcode_libdir_separator=
5673         fi
5674       esac
5675
5676       shared_flag='-shared'
5677     else
5678       # not using gcc
5679       if test "$host_cpu" = ia64; then
5680         shared_flag='${wl}-G'
5681       else
5682         if test "$aix_use_runtimelinking" = yes; then
5683           shared_flag='${wl}-G'
5684         else
5685           shared_flag='${wl}-bM:SRE'
5686         fi
5687       fi
5688     fi
5689
5690     # It seems that -bexpall can do strange things, so it is better to
5691     # generate a list of symbols to export.
5692     always_export_symbols=yes
5693     if test "$aix_use_runtimelinking" = yes; then
5694       # Warning - without using the other runtime loading flags (-brtl),
5695       # -berok will link without error, but may produce a broken library.
5696       allow_undefined_flag='-berok'
5697       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5698       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"
5699     else
5700       if test "$host_cpu" = ia64; then
5701         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5702         allow_undefined_flag="-z nodefs"
5703         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5704       else
5705         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5706         # Warning - without using the other run time loading flags,
5707         # -berok will link without error, but may produce a broken library.
5708         allow_undefined_flag='${wl}-berok'
5709         # This is a bit strange, but is similar to how AIX traditionally builds
5710         # it's shared libraries.
5711         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5712       fi
5713     fi
5714     ;;
5715
5716   amigaos*)
5717     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)'
5718     hardcode_libdir_flag_spec='-L$libdir'
5719     hardcode_minus_L=yes
5720     # see comment about different semantics on the GNU ld section
5721     ld_shlibs=no
5722     ;;
5723
5724   cygwin* | mingw* | pw32*)
5725     # When not using gcc, we currently assume that we are using
5726     # Microsoft Visual C++.
5727     # hardcode_libdir_flag_spec is actually meaningless, as there is
5728     # no search path for DLLs.
5729     hardcode_libdir_flag_spec=' '
5730     allow_undefined_flag=unsupported
5731     # Tell ltmain to make .lib files, not .a files.
5732     libext=lib
5733     # FIXME: Setting linknames here is a bad hack.
5734     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5735     # The linker will automatically build a .lib file if we build a DLL.
5736     old_archive_from_new_cmds='true'
5737     # FIXME: Should let the user specify the lib program.
5738     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5739     fix_srcfile_path='`cygpath -w "$srcfile"`'
5740     ;;
5741
5742   darwin* | rhapsody*)
5743     case "$host_os" in
5744     rhapsody* | darwin1.[012])
5745       allow_undefined_flag='-undefined suppress'
5746       ;;
5747     *) # Darwin 1.3 on
5748       allow_undefined_flag='-flat_namespace -undefined suppress'
5749       ;;
5750     esac
5751     # FIXME: Relying on posixy $() will cause problems for
5752     #        cross-compilation, but unfortunately the echo tests do not
5753     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5754     #        `"' quotes if we put them in here... so don't!
5755     archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5756     # We need to add '_' to the symbols in $export_symbols first
5757     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5758     hardcode_direct=yes
5759     hardcode_shlibpath_var=no
5760     whole_archive_flag_spec='-all_load $convenience'
5761     ;;
5762
5763   freebsd1*)
5764     ld_shlibs=no
5765     ;;
5766
5767   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5768   # support.  Future versions do this automatically, but an explicit c++rt0.o
5769   # does not break anything, and helps significantly (at the cost of a little
5770   # extra space).
5771   freebsd2.2*)
5772     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5773     hardcode_libdir_flag_spec='-R$libdir'
5774     hardcode_direct=yes
5775     hardcode_shlibpath_var=no
5776     ;;
5777
5778   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5779   freebsd2*)
5780     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5781     hardcode_direct=yes
5782     hardcode_minus_L=yes
5783     hardcode_shlibpath_var=no
5784     ;;
5785
5786   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5787   freebsd*)
5788     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5789     hardcode_libdir_flag_spec='-R$libdir'
5790     hardcode_direct=yes
5791     hardcode_shlibpath_var=no
5792     ;;
5793
5794   hpux9* | hpux10* | hpux11*)
5795     case $host_os in
5796     hpux9*) 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' ;;
5797     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5798     esac
5799     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5800     hardcode_libdir_separator=:
5801     hardcode_direct=yes
5802     hardcode_minus_L=yes # Not in the search PATH, but as the default
5803                          # location of the library.
5804     export_dynamic_flag_spec='${wl}-E'
5805     ;;
5806
5807   irix5* | irix6* | nonstopux*)
5808     if test "$GCC" = yes; then
5809       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'
5810     else
5811       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'
5812     fi
5813     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5814     hardcode_libdir_separator=:
5815     link_all_deplibs=yes
5816     ;;
5817
5818   netbsd*)
5819     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5820       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5821     else
5822       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5823     fi
5824     hardcode_libdir_flag_spec='-R$libdir'
5825     hardcode_direct=yes
5826     hardcode_shlibpath_var=no
5827     ;;
5828
5829   newsos6)
5830     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5831     hardcode_direct=yes
5832     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5833     hardcode_libdir_separator=:
5834     hardcode_shlibpath_var=no
5835     ;;
5836
5837   openbsd*)
5838     hardcode_direct=yes
5839     hardcode_shlibpath_var=no
5840     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5841       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5842       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5843       export_dynamic_flag_spec='${wl}-E'
5844     else
5845       case "$host_os" in
5846       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5847         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5848         hardcode_libdir_flag_spec='-R$libdir'
5849         ;;
5850       *)
5851         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5852         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5853         ;;
5854       esac
5855     fi
5856     ;;
5857
5858   os2*)
5859     hardcode_libdir_flag_spec='-L$libdir'
5860     hardcode_minus_L=yes
5861     allow_undefined_flag=unsupported
5862     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'
5863     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5864     ;;
5865
5866   osf3*)
5867     if test "$GCC" = yes; then
5868       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5869       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'
5870     else
5871       allow_undefined_flag=' -expect_unresolved \*'
5872       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'
5873     fi
5874     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5875     hardcode_libdir_separator=:
5876     ;;
5877
5878   osf4* | osf5*)        # as osf3* with the addition of -msym flag
5879     if test "$GCC" = yes; then
5880       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5881       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'
5882       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5883     else
5884       allow_undefined_flag=' -expect_unresolved \*'
5885       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'
5886       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5887       $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'
5888
5889       #Both c and cxx compiler support -rpath directly
5890       hardcode_libdir_flag_spec='-rpath $libdir'
5891     fi
5892     hardcode_libdir_separator=:
5893     ;;
5894
5895   sco3.2v5*)
5896     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5897     hardcode_shlibpath_var=no
5898     runpath_var=LD_RUN_PATH
5899     hardcode_runpath_var=yes
5900     export_dynamic_flag_spec='${wl}-Bexport'
5901     ;;
5902
5903   solaris*)
5904     # gcc --version < 3.0 without binutils cannot create self contained
5905     # shared libraries reliably, requiring libgcc.a to resolve some of
5906     # the object symbols generated in some cases.  Libraries that use
5907     # assert need libgcc.a to resolve __eprintf, for example.  Linking
5908     # a copy of libgcc.a into every shared library to guarantee resolving
5909     # such symbols causes other problems:  According to Tim Van Holder
5910     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5911     # (to the application) exception stack for one thing.
5912     no_undefined_flag=' -z defs'
5913     if test "$GCC" = yes; then
5914       case `$CC --version 2>/dev/null` in
5915       [12].*)
5916         cat <<EOF 1>&2
5917
5918 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5919 *** create self contained shared libraries on Solaris systems, without
5920 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5921 *** -no-undefined support, which will at least allow you to build shared
5922 *** libraries.  However, you may find that when you link such libraries
5923 *** into an application without using GCC, you have to manually add
5924 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5925 *** upgrade to a newer version of GCC.  Another option is to rebuild your
5926 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5927
5928 EOF
5929         no_undefined_flag=
5930         ;;
5931       esac
5932     fi
5933     # $CC -shared without GNU ld will not create a library from C++
5934     # object files and a static libstdc++, better avoid it by now
5935     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5936     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5937                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5938     hardcode_libdir_flag_spec='-R$libdir'
5939     hardcode_shlibpath_var=no
5940     case $host_os in
5941     solaris2.[0-5] | solaris2.[0-5].*) ;;
5942     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5943       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5944     esac
5945     link_all_deplibs=yes
5946     ;;
5947
5948   sunos4*)
5949     if test "x$host_vendor" = xsequent; then
5950       # Use $CC to link under sequent, because it throws in some extra .o
5951       # files that make .init and .fini sections work.
5952       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5953     else
5954       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5955     fi
5956     hardcode_libdir_flag_spec='-L$libdir'
5957     hardcode_direct=yes
5958     hardcode_minus_L=yes
5959     hardcode_shlibpath_var=no
5960     ;;
5961
5962   sysv4)
5963     if test "x$host_vendor" = xsno; then
5964       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5965       hardcode_direct=yes # is this really true???
5966     else
5967       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5968       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5969     fi
5970     runpath_var='LD_RUN_PATH'
5971     hardcode_shlibpath_var=no
5972     ;;
5973
5974   sysv4.3*)
5975     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5976     hardcode_shlibpath_var=no
5977     export_dynamic_flag_spec='-Bexport'
5978     ;;
5979
5980   sysv5*)
5981     no_undefined_flag=' -z text'
5982     # $CC -shared without GNU ld will not create a library from C++
5983     # object files and a static libstdc++, better avoid it by now
5984     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5985     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5986                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5987     hardcode_libdir_flag_spec=
5988     hardcode_shlibpath_var=no
5989     runpath_var='LD_RUN_PATH'
5990     ;;
5991
5992   uts4*)
5993     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5994     hardcode_libdir_flag_spec='-L$libdir'
5995     hardcode_shlibpath_var=no
5996     ;;
5997
5998   dgux*)
5999     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6000     hardcode_libdir_flag_spec='-L$libdir'
6001     hardcode_shlibpath_var=no
6002     ;;
6003
6004   sysv4*MP*)
6005     if test -d /usr/nec; then
6006       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6007       hardcode_shlibpath_var=no
6008       runpath_var=LD_RUN_PATH
6009       hardcode_runpath_var=yes
6010       ld_shlibs=yes
6011     fi
6012     ;;
6013
6014   sysv4.2uw2*)
6015     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6016     hardcode_direct=yes
6017     hardcode_minus_L=no
6018     hardcode_shlibpath_var=no
6019     hardcode_runpath_var=yes
6020     runpath_var=LD_RUN_PATH
6021     ;;
6022
6023   sysv5uw7* | unixware7*)
6024     no_undefined_flag='${wl}-z ${wl}text'
6025     if test "$GCC" = yes; then
6026       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6027     else
6028       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6029     fi
6030     runpath_var='LD_RUN_PATH'
6031     hardcode_shlibpath_var=no
6032     ;;
6033
6034   *)
6035     ld_shlibs=no
6036     ;;
6037   esac
6038 fi
6039 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6040 echo "${ECHO_T}$ld_shlibs" >&6
6041 test "$ld_shlibs" = no && can_build_shared=no
6042 ##
6043 ## END FIXME
6044
6045 ## FIXME: this should be a separate macro
6046 ##
6047 # Check hardcoding attributes.
6048 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6049 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6050 hardcode_action=
6051 if test -n "$hardcode_libdir_flag_spec" || \
6052    test -n "$runpath_var"; then
6053
6054   # We can hardcode non-existant directories.
6055   if test "$hardcode_direct" != no &&
6056      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6057      # have to relink, otherwise we might link with an installed library
6058      # when we should be linking with a yet-to-be-installed one
6059      ## test "$hardcode_shlibpath_var" != no &&
6060      test "$hardcode_minus_L" != no; then
6061     # Linking always hardcodes the temporary library directory.
6062     hardcode_action=relink
6063   else
6064     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6065     hardcode_action=immediate
6066   fi
6067 else
6068   # We cannot hardcode anything, or else we can only hardcode existing
6069   # directories.
6070   hardcode_action=unsupported
6071 fi
6072 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6073 echo "${ECHO_T}$hardcode_action" >&6
6074 ##
6075 ## END FIXME
6076
6077 ## FIXME: this should be a separate macro
6078 ##
6079 striplib=
6080 old_striplib=
6081 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6082 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6083 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6084   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6085   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6086   echo "$as_me:$LINENO: result: yes" >&5
6087 echo "${ECHO_T}yes" >&6
6088 else
6089   echo "$as_me:$LINENO: result: no" >&5
6090 echo "${ECHO_T}no" >&6
6091 fi
6092 ##
6093 ## END FIXME
6094
6095 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6096 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6097
6098 ## FIXME: this should be a separate macro
6099 ##
6100 # PORTME Fill in your ld.so characteristics
6101 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6102 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6103 library_names_spec=
6104 libname_spec='lib$name'
6105 soname_spec=
6106 postinstall_cmds=
6107 postuninstall_cmds=
6108 finish_cmds=
6109 finish_eval=
6110 shlibpath_var=
6111 shlibpath_overrides_runpath=unknown
6112 version_type=none
6113 dynamic_linker="$host_os ld.so"
6114 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6115 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6116
6117 case $host_os in
6118 aix3*)
6119   version_type=linux
6120   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6121   shlibpath_var=LIBPATH
6122
6123   # AIX has no versioning support, so we append a major version to the name.
6124   soname_spec='${libname}${release}.so$major'
6125   ;;
6126
6127 aix4* | aix5*)
6128   version_type=linux
6129   if test "$host_cpu" = ia64; then
6130     # AIX 5 supports IA64
6131     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6132     shlibpath_var=LD_LIBRARY_PATH
6133   else
6134     # With GCC up to 2.95.x, collect2 would create an import file
6135     # for dependence libraries.  The import file would start with
6136     # the line `#! .'.  This would cause the generated library to
6137     # depend on `.', always an invalid library.  This was fixed in
6138     # development snapshots of GCC prior to 3.0.
6139     case $host_os in
6140       aix4 | aix4.[01] | aix4.[01].*)
6141         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6142              echo ' yes '
6143              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6144           :
6145         else
6146           can_build_shared=no
6147         fi
6148         ;;
6149     esac
6150     # AIX (on Power*) has no versioning support, so currently we can
6151     # not hardcode correct soname into executable. Probably we can
6152     # add versioning support to collect2, so additional links can
6153     # be useful in future.
6154     if test "$aix_use_runtimelinking" = yes; then
6155       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6156       # instead of lib<name>.a to let people know that these are not
6157       # typical AIX shared libraries.
6158       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6159     else
6160       # We preserve .a as extension for shared libraries through AIX4.2
6161       # and later when we are not doing run time linking.
6162       library_names_spec='${libname}${release}.a $libname.a'
6163       soname_spec='${libname}${release}.so$major'
6164     fi
6165     shlibpath_var=LIBPATH
6166   fi
6167   ;;
6168
6169 amigaos*)
6170   library_names_spec='$libname.ixlibrary $libname.a'
6171   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6172   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'
6173   ;;
6174
6175 beos*)
6176   library_names_spec='${libname}.so'
6177   dynamic_linker="$host_os ld.so"
6178   shlibpath_var=LIBRARY_PATH
6179   ;;
6180
6181 bsdi4*)
6182   version_type=linux
6183   need_version=no
6184   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6185   soname_spec='${libname}${release}.so$major'
6186   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6187   shlibpath_var=LD_LIBRARY_PATH
6188   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6189   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6190   export_dynamic_flag_spec=-rdynamic
6191   # the default ld.so.conf also contains /usr/contrib/lib and
6192   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6193   # libtool to hard-code these into programs
6194   ;;
6195
6196 cygwin* | mingw* | pw32*)
6197   version_type=windows
6198   need_version=no
6199   need_lib_prefix=no
6200   case $GCC,$host_os in
6201   yes,cygwin*)
6202     library_names_spec='$libname.dll.a'
6203     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6204     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6205       dldir=$destdir/`dirname \$dlpath`~
6206       test -d \$dldir || mkdir -p \$dldir~
6207       $install_prog .libs/$dlname \$dldir/$dlname'
6208     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6209       dlpath=$dir/\$dldll~
6210        $rm \$dlpath'
6211     ;;
6212   yes,mingw*)
6213     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6214     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6215     ;;
6216   yes,pw32*)
6217     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6218     ;;
6219   *)
6220     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6221     ;;
6222   esac
6223   dynamic_linker='Win32 ld.exe'
6224   # FIXME: first we should search . and the directory the executable is in
6225   shlibpath_var=PATH
6226   ;;
6227
6228 darwin* | rhapsody*)
6229   dynamic_linker="$host_os dyld"
6230   version_type=darwin
6231   need_lib_prefix=no
6232   need_version=no
6233   # FIXME: Relying on posixy $() will cause problems for
6234   #        cross-compilation, but unfortunately the echo tests do not
6235   #        yet detect zsh echo's removal of \ escapes.
6236   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6237   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6238   shlibpath_overrides_runpath=yes
6239   shlibpath_var=DYLD_LIBRARY_PATH
6240   ;;
6241
6242 freebsd1*)
6243   dynamic_linker=no
6244   ;;
6245
6246 freebsd*)
6247   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6248   version_type=freebsd-$objformat
6249   case $version_type in
6250     freebsd-elf*)
6251       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6252       need_version=no
6253       need_lib_prefix=no
6254       ;;
6255     freebsd-*)
6256       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6257       need_version=yes
6258       ;;
6259   esac
6260   shlibpath_var=LD_LIBRARY_PATH
6261   case $host_os in
6262   freebsd2*)
6263     shlibpath_overrides_runpath=yes
6264     ;;
6265   *)
6266     shlibpath_overrides_runpath=no
6267     hardcode_into_libs=yes
6268     ;;
6269   esac
6270   ;;
6271
6272 gnu*)
6273   version_type=linux
6274   need_lib_prefix=no
6275   need_version=no
6276   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6277   soname_spec='${libname}${release}.so$major'
6278   shlibpath_var=LD_LIBRARY_PATH
6279   hardcode_into_libs=yes
6280   ;;
6281
6282 hpux9* | hpux10* | hpux11*)
6283   # Give a soname corresponding to the major version so that dld.sl refuses to
6284   # link against other versions.
6285   dynamic_linker="$host_os dld.sl"
6286   version_type=sunos
6287   need_lib_prefix=no
6288   need_version=no
6289   shlibpath_var=SHLIB_PATH
6290   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6291   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6292   soname_spec='${libname}${release}.sl$major'
6293   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6294   postinstall_cmds='chmod 555 $lib'
6295   ;;
6296
6297 irix5* | irix6* | nonstopux*)
6298   case $host_os in
6299     nonstopux*) version_type=nonstopux ;;
6300     *)          version_type=irix ;;
6301   esac
6302   need_lib_prefix=no
6303   need_version=no
6304   soname_spec='${libname}${release}.so$major'
6305   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6306   case $host_os in
6307   irix5* | nonstopux*)
6308     libsuff= shlibsuff=
6309     ;;
6310   *)
6311     case $LD in # libtool.m4 will add one of these switches to LD
6312     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6313     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6314     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6315     *) libsuff= shlibsuff= libmagic=never-match;;
6316     esac
6317     ;;
6318   esac
6319   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6320   shlibpath_overrides_runpath=no
6321   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6322   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6323   ;;
6324
6325 # No shared lib support for Linux oldld, aout, or coff.
6326 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6327   dynamic_linker=no
6328   ;;
6329
6330 # This must be Linux ELF.
6331 linux-gnu*)
6332   version_type=linux
6333   need_lib_prefix=no
6334   need_version=no
6335   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6336   soname_spec='${libname}${release}.so$major'
6337   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6338   shlibpath_var=LD_LIBRARY_PATH
6339   shlibpath_overrides_runpath=no
6340   # This implies no fast_install, which is unacceptable.
6341   # Some rework will be needed to allow for fast_install
6342   # before this can be enabled.
6343   hardcode_into_libs=yes
6344
6345   # We used to test for /lib/ld.so.1 and disable shared libraries on
6346   # powerpc, because MkLinux only supported shared libraries with the
6347   # GNU dynamic linker.  Since this was broken with cross compilers,
6348   # most powerpc-linux boxes support dynamic linking these days and
6349   # people can always --disable-shared, the test was removed, and we
6350   # assume the GNU/Linux dynamic linker is in use.
6351   dynamic_linker='GNU/Linux ld.so'
6352   ;;
6353
6354 netbsd*)
6355   version_type=sunos
6356   need_lib_prefix=no
6357   need_version=no
6358   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6359     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6360     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6361     dynamic_linker='NetBSD (a.out) ld.so'
6362   else
6363     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6364     soname_spec='${libname}${release}.so$major'
6365     dynamic_linker='NetBSD ld.elf_so'
6366   fi
6367   shlibpath_var=LD_LIBRARY_PATH
6368   shlibpath_overrides_runpath=yes
6369   hardcode_into_libs=yes
6370   ;;
6371
6372 newsos6)
6373   version_type=linux
6374   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6375   shlibpath_var=LD_LIBRARY_PATH
6376   shlibpath_overrides_runpath=yes
6377   ;;
6378
6379 openbsd*)
6380   version_type=sunos
6381   need_lib_prefix=no
6382   need_version=no
6383   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6384     case "$host_os" in
6385     openbsd2.[89] | openbsd2.[89].*)
6386       shlibpath_overrides_runpath=no
6387       ;;
6388     *)
6389       shlibpath_overrides_runpath=yes
6390       ;;
6391     esac
6392   else
6393     shlibpath_overrides_runpath=yes
6394   fi
6395   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6396   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6397   shlibpath_var=LD_LIBRARY_PATH
6398   ;;
6399
6400 os2*)
6401   libname_spec='$name'
6402   need_lib_prefix=no
6403   library_names_spec='$libname.dll $libname.a'
6404   dynamic_linker='OS/2 ld.exe'
6405   shlibpath_var=LIBPATH
6406   ;;
6407
6408 osf3* | osf4* | osf5*)
6409   version_type=osf
6410   need_version=no
6411   soname_spec='${libname}${release}.so'
6412   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6413   shlibpath_var=LD_LIBRARY_PATH
6414   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6415   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6416   ;;
6417
6418 sco3.2v5*)
6419   version_type=osf
6420   soname_spec='${libname}${release}.so$major'
6421   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6422   shlibpath_var=LD_LIBRARY_PATH
6423   ;;
6424
6425 solaris*)
6426   version_type=linux
6427   need_lib_prefix=no
6428   need_version=no
6429   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6430   soname_spec='${libname}${release}.so$major'
6431   shlibpath_var=LD_LIBRARY_PATH
6432   shlibpath_overrides_runpath=yes
6433   hardcode_into_libs=yes
6434   # ldd complains unless libraries are executable
6435   postinstall_cmds='chmod +x $lib'
6436   ;;
6437
6438 sunos4*)
6439   version_type=sunos
6440   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6441   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6442   shlibpath_var=LD_LIBRARY_PATH
6443   shlibpath_overrides_runpath=yes
6444   if test "$with_gnu_ld" = yes; then
6445     need_lib_prefix=no
6446   fi
6447   need_version=yes
6448   ;;
6449
6450 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6451   version_type=linux
6452   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6453   soname_spec='${libname}${release}.so$major'
6454   shlibpath_var=LD_LIBRARY_PATH
6455   case $host_vendor in
6456     sni)
6457       shlibpath_overrides_runpath=no
6458       ;;
6459     motorola)
6460       need_lib_prefix=no
6461       need_version=no
6462       shlibpath_overrides_runpath=no
6463       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6464       ;;
6465   esac
6466   ;;
6467
6468 uts4*)
6469   version_type=linux
6470   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6471   soname_spec='${libname}${release}.so$major'
6472   shlibpath_var=LD_LIBRARY_PATH
6473   ;;
6474
6475 dgux*)
6476   version_type=linux
6477   need_lib_prefix=no
6478   need_version=no
6479   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6480   soname_spec='${libname}${release}.so$major'
6481   shlibpath_var=LD_LIBRARY_PATH
6482   ;;
6483
6484 sysv4*MP*)
6485   if test -d /usr/nec ;then
6486     version_type=linux
6487     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6488     soname_spec='$libname.so.$major'
6489     shlibpath_var=LD_LIBRARY_PATH
6490   fi
6491   ;;
6492
6493 *)
6494   dynamic_linker=no
6495   ;;
6496 esac
6497 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6498 echo "${ECHO_T}$dynamic_linker" >&6
6499 test "$dynamic_linker" = no && can_build_shared=no
6500 ##
6501 ## END FIXME
6502
6503 ## FIXME: this should be a separate macro
6504 ##
6505 # Report the final consequences.
6506 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6507 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6508 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6509 echo "${ECHO_T}$can_build_shared" >&6
6510 ##
6511 ## END FIXME
6512
6513 ## FIXME: this should be a separate macro
6514 ##
6515 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6516 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6517 test "$can_build_shared" = "no" && enable_shared=no
6518
6519 # On AIX, shared libraries and static libraries use the same namespace, and
6520 # are all built from PIC.
6521 case "$host_os" in
6522 aix3*)
6523   test "$enable_shared" = yes && enable_static=no
6524   if test -n "$RANLIB"; then
6525     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6526     postinstall_cmds='$RANLIB $lib'
6527   fi
6528   ;;
6529
6530 aix4*)
6531   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6532     test "$enable_shared" = yes && enable_static=no
6533   fi
6534   ;;
6535 esac
6536 echo "$as_me:$LINENO: result: $enable_shared" >&5
6537 echo "${ECHO_T}$enable_shared" >&6
6538 ##
6539 ## END FIXME
6540
6541 ## FIXME: this should be a separate macro
6542 ##
6543 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6544 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6545 # Make sure either enable_shared or enable_static is yes.
6546 test "$enable_shared" = yes || enable_static=yes
6547 echo "$as_me:$LINENO: result: $enable_static" >&5
6548 echo "${ECHO_T}$enable_static" >&6
6549 ##
6550 ## END FIXME
6551
6552 if test "$hardcode_action" = relink; then
6553   # Fast installation is not supported
6554   enable_fast_install=no
6555 elif test "$shlibpath_overrides_runpath" = yes ||
6556      test "$enable_shared" = no; then
6557   # Fast installation is not necessary
6558   enable_fast_install=needless
6559 fi
6560
6561 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6562 if test "$GCC" = yes; then
6563   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6564 fi
6565
6566 if test "x$enable_dlopen" != xyes; then
6567   enable_dlopen=unknown
6568   enable_dlopen_self=unknown
6569   enable_dlopen_self_static=unknown
6570 else
6571   lt_cv_dlopen=no
6572   lt_cv_dlopen_libs=
6573
6574   case $host_os in
6575   beos*)
6576     lt_cv_dlopen="load_add_on"
6577     lt_cv_dlopen_libs=
6578     lt_cv_dlopen_self=yes
6579     ;;
6580
6581   cygwin* | mingw* | pw32*)
6582     lt_cv_dlopen="LoadLibrary"
6583     lt_cv_dlopen_libs=
6584    ;;
6585
6586   *)
6587     echo "$as_me:$LINENO: checking for shl_load" >&5
6588 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6589 if test "${ac_cv_func_shl_load+set}" = set; then
6590   echo $ECHO_N "(cached) $ECHO_C" >&6
6591 else
6592   cat >conftest.$ac_ext <<_ACEOF
6593 #line $LINENO "configure"
6594 #include "confdefs.h"
6595 /* System header to define __stub macros and hopefully few prototypes,
6596     which can conflict with char shl_load (); below.  */
6597 #include <assert.h>
6598 /* Override any gcc2 internal prototype to avoid an error.  */
6599 #ifdef __cplusplus
6600 extern "C"
6601 #endif
6602 /* We use char because int might match the return type of a gcc2
6603    builtin and then its argument prototype would still apply.  */
6604 char shl_load ();
6605 char (*f) ();
6606
6607 int
6608 main ()
6609 {
6610 /* The GNU C library defines this for functions which it implements
6611     to always fail with ENOSYS.  Some functions are actually named
6612     something starting with __ and the normal name is an alias.  */
6613 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6614 choke me
6615 #else
6616 f = shl_load;
6617 #endif
6618
6619   ;
6620   return 0;
6621 }
6622 _ACEOF
6623 rm -f conftest.$ac_objext conftest$ac_exeext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6625   (eval $ac_link) 2>&5
6626   ac_status=$?
6627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628   (exit $ac_status); } &&
6629          { ac_try='test -s conftest$ac_exeext'
6630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631   (eval $ac_try) 2>&5
6632   ac_status=$?
6633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); }; }; then
6635   ac_cv_func_shl_load=yes
6636 else
6637   echo "$as_me: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6639 ac_cv_func_shl_load=no
6640 fi
6641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6642 fi
6643 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6644 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6645 if test $ac_cv_func_shl_load = yes; then
6646   lt_cv_dlopen="shl_load"
6647 else
6648   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6649 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6650 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6651   echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653   ac_check_lib_save_LIBS=$LIBS
6654 LIBS="-ldld  $LIBS"
6655 cat >conftest.$ac_ext <<_ACEOF
6656 #line $LINENO "configure"
6657 #include "confdefs.h"
6658
6659 /* Override any gcc2 internal prototype to avoid an error.  */
6660 #ifdef __cplusplus
6661 extern "C"
6662 #endif
6663 /* We use char because int might match the return type of a gcc2
6664    builtin and then its argument prototype would still apply.  */
6665 char shl_load ();
6666 int
6667 main ()
6668 {
6669 shl_load ();
6670   ;
6671   return 0;
6672 }
6673 _ACEOF
6674 rm -f conftest.$ac_objext conftest$ac_exeext
6675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6676   (eval $ac_link) 2>&5
6677   ac_status=$?
6678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); } &&
6680          { ac_try='test -s conftest$ac_exeext'
6681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682   (eval $ac_try) 2>&5
6683   ac_status=$?
6684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685   (exit $ac_status); }; }; then
6686   ac_cv_lib_dld_shl_load=yes
6687 else
6688   echo "$as_me: failed program was:" >&5
6689 cat conftest.$ac_ext >&5
6690 ac_cv_lib_dld_shl_load=no
6691 fi
6692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6693 LIBS=$ac_check_lib_save_LIBS
6694 fi
6695 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6696 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6697 if test $ac_cv_lib_dld_shl_load = yes; then
6698   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6699 else
6700   echo "$as_me:$LINENO: checking for dlopen" >&5
6701 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6702 if test "${ac_cv_func_dlopen+set}" = set; then
6703   echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705   cat >conftest.$ac_ext <<_ACEOF
6706 #line $LINENO "configure"
6707 #include "confdefs.h"
6708 /* System header to define __stub macros and hopefully few prototypes,
6709     which can conflict with char dlopen (); below.  */
6710 #include <assert.h>
6711 /* Override any gcc2 internal prototype to avoid an error.  */
6712 #ifdef __cplusplus
6713 extern "C"
6714 #endif
6715 /* We use char because int might match the return type of a gcc2
6716    builtin and then its argument prototype would still apply.  */
6717 char dlopen ();
6718 char (*f) ();
6719
6720 int
6721 main ()
6722 {
6723 /* The GNU C library defines this for functions which it implements
6724     to always fail with ENOSYS.  Some functions are actually named
6725     something starting with __ and the normal name is an alias.  */
6726 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6727 choke me
6728 #else
6729 f = dlopen;
6730 #endif
6731
6732   ;
6733   return 0;
6734 }
6735 _ACEOF
6736 rm -f conftest.$ac_objext conftest$ac_exeext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6738   (eval $ac_link) 2>&5
6739   ac_status=$?
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); } &&
6742          { ac_try='test -s conftest$ac_exeext'
6743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744   (eval $ac_try) 2>&5
6745   ac_status=$?
6746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747   (exit $ac_status); }; }; then
6748   ac_cv_func_dlopen=yes
6749 else
6750   echo "$as_me: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6752 ac_cv_func_dlopen=no
6753 fi
6754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6755 fi
6756 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6757 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6758 if test $ac_cv_func_dlopen = yes; then
6759   lt_cv_dlopen="dlopen"
6760 else
6761   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6762 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6763 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   ac_check_lib_save_LIBS=$LIBS
6767 LIBS="-ldl  $LIBS"
6768 cat >conftest.$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6770 #include "confdefs.h"
6771
6772 /* Override any gcc2 internal prototype to avoid an error.  */
6773 #ifdef __cplusplus
6774 extern "C"
6775 #endif
6776 /* We use char because int might match the return type of a gcc2
6777    builtin and then its argument prototype would still apply.  */
6778 char dlopen ();
6779 int
6780 main ()
6781 {
6782 dlopen ();
6783   ;
6784   return 0;
6785 }
6786 _ACEOF
6787 rm -f conftest.$ac_objext conftest$ac_exeext
6788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6789   (eval $ac_link) 2>&5
6790   ac_status=$?
6791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792   (exit $ac_status); } &&
6793          { ac_try='test -s conftest$ac_exeext'
6794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795   (eval $ac_try) 2>&5
6796   ac_status=$?
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); }; }; then
6799   ac_cv_lib_dl_dlopen=yes
6800 else
6801   echo "$as_me: failed program was:" >&5
6802 cat conftest.$ac_ext >&5
6803 ac_cv_lib_dl_dlopen=no
6804 fi
6805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6806 LIBS=$ac_check_lib_save_LIBS
6807 fi
6808 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6809 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6810 if test $ac_cv_lib_dl_dlopen = yes; then
6811   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6812 else
6813   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6814 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6815 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6816   echo $ECHO_N "(cached) $ECHO_C" >&6
6817 else
6818   ac_check_lib_save_LIBS=$LIBS
6819 LIBS="-lsvld  $LIBS"
6820 cat >conftest.$ac_ext <<_ACEOF
6821 #line $LINENO "configure"
6822 #include "confdefs.h"
6823
6824 /* Override any gcc2 internal prototype to avoid an error.  */
6825 #ifdef __cplusplus
6826 extern "C"
6827 #endif
6828 /* We use char because int might match the return type of a gcc2
6829    builtin and then its argument prototype would still apply.  */
6830 char dlopen ();
6831 int
6832 main ()
6833 {
6834 dlopen ();
6835   ;
6836   return 0;
6837 }
6838 _ACEOF
6839 rm -f conftest.$ac_objext conftest$ac_exeext
6840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6841   (eval $ac_link) 2>&5
6842   ac_status=$?
6843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844   (exit $ac_status); } &&
6845          { ac_try='test -s conftest$ac_exeext'
6846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847   (eval $ac_try) 2>&5
6848   ac_status=$?
6849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850   (exit $ac_status); }; }; then
6851   ac_cv_lib_svld_dlopen=yes
6852 else
6853   echo "$as_me: failed program was:" >&5
6854 cat conftest.$ac_ext >&5
6855 ac_cv_lib_svld_dlopen=no
6856 fi
6857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6858 LIBS=$ac_check_lib_save_LIBS
6859 fi
6860 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6861 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6862 if test $ac_cv_lib_svld_dlopen = yes; then
6863   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6864 else
6865   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6866 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6867 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6868   echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870   ac_check_lib_save_LIBS=$LIBS
6871 LIBS="-ldld  $LIBS"
6872 cat >conftest.$ac_ext <<_ACEOF
6873 #line $LINENO "configure"
6874 #include "confdefs.h"
6875
6876 /* Override any gcc2 internal prototype to avoid an error.  */
6877 #ifdef __cplusplus
6878 extern "C"
6879 #endif
6880 /* We use char because int might match the return type of a gcc2
6881    builtin and then its argument prototype would still apply.  */
6882 char dld_link ();
6883 int
6884 main ()
6885 {
6886 dld_link ();
6887   ;
6888   return 0;
6889 }
6890 _ACEOF
6891 rm -f conftest.$ac_objext conftest$ac_exeext
6892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6893   (eval $ac_link) 2>&5
6894   ac_status=$?
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); } &&
6897          { ac_try='test -s conftest$ac_exeext'
6898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899   (eval $ac_try) 2>&5
6900   ac_status=$?
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); }; }; then
6903   ac_cv_lib_dld_dld_link=yes
6904 else
6905   echo "$as_me: failed program was:" >&5
6906 cat conftest.$ac_ext >&5
6907 ac_cv_lib_dld_dld_link=no
6908 fi
6909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6910 LIBS=$ac_check_lib_save_LIBS
6911 fi
6912 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6913 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6914 if test $ac_cv_lib_dld_dld_link = yes; then
6915   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6916 fi
6917
6918
6919 fi
6920
6921
6922 fi
6923
6924
6925 fi
6926
6927
6928 fi
6929
6930
6931 fi
6932
6933     ;;
6934   esac
6935
6936   if test "x$lt_cv_dlopen" != xno; then
6937     enable_dlopen=yes
6938   else
6939     enable_dlopen=no
6940   fi
6941
6942   case $lt_cv_dlopen in
6943   dlopen)
6944     save_CPPFLAGS="$CPPFLAGS"
6945         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6946
6947     save_LDFLAGS="$LDFLAGS"
6948     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6949
6950     save_LIBS="$LIBS"
6951     LIBS="$lt_cv_dlopen_libs $LIBS"
6952
6953     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6954 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6955 if test "${lt_cv_dlopen_self+set}" = set; then
6956   echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958           if test "$cross_compiling" = yes; then :
6959   lt_cv_dlopen_self=cross
6960 else
6961     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6962   lt_status=$lt_dlunknown
6963   cat > conftest.$ac_ext <<EOF
6964 #line 6964 "configure"
6965 #include "confdefs.h"
6966
6967 #if HAVE_DLFCN_H
6968 #include <dlfcn.h>
6969 #endif
6970
6971 #include <stdio.h>
6972
6973 #ifdef RTLD_GLOBAL
6974 #  define LT_DLGLOBAL           RTLD_GLOBAL
6975 #else
6976 #  ifdef DL_GLOBAL
6977 #    define LT_DLGLOBAL         DL_GLOBAL
6978 #  else
6979 #    define LT_DLGLOBAL         0
6980 #  endif
6981 #endif
6982
6983 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6984    find out it does not work in some platform. */
6985 #ifndef LT_DLLAZY_OR_NOW
6986 #  ifdef RTLD_LAZY
6987 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6988 #  else
6989 #    ifdef DL_LAZY
6990 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6991 #    else
6992 #      ifdef RTLD_NOW
6993 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6994 #      else
6995 #        ifdef DL_NOW
6996 #          define LT_DLLAZY_OR_NOW      DL_NOW
6997 #        else
6998 #          define LT_DLLAZY_OR_NOW      0
6999 #        endif
7000 #      endif
7001 #    endif
7002 #  endif
7003 #endif
7004
7005 #ifdef __cplusplus
7006 extern "C" void exit (int);
7007 #endif
7008
7009 void fnord() { int i=42;}
7010 int main ()
7011 {
7012   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7013   int status = $lt_dlunknown;
7014
7015   if (self)
7016     {
7017       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7018       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7019       /* dlclose (self); */
7020     }
7021
7022     exit (status);
7023 }
7024 EOF
7025   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7026   (eval $ac_link) 2>&5
7027   ac_status=$?
7028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7030     (./conftest; exit; ) 2>/dev/null
7031     lt_status=$?
7032     case x$lt_status in
7033       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7034       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7035       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7036     esac
7037   else :
7038     # compilation failed
7039     lt_cv_dlopen_self=no
7040   fi
7041 fi
7042 rm -fr conftest*
7043
7044
7045 fi
7046 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7047 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7048
7049     if test "x$lt_cv_dlopen_self" = xyes; then
7050       LDFLAGS="$LDFLAGS $link_static_flag"
7051       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7052 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7053 if test "${lt_cv_dlopen_self_static+set}" = set; then
7054   echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056           if test "$cross_compiling" = yes; then :
7057   lt_cv_dlopen_self_static=cross
7058 else
7059     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7060   lt_status=$lt_dlunknown
7061   cat > conftest.$ac_ext <<EOF
7062 #line 7062 "configure"
7063 #include "confdefs.h"
7064
7065 #if HAVE_DLFCN_H
7066 #include <dlfcn.h>
7067 #endif
7068
7069 #include <stdio.h>
7070
7071 #ifdef RTLD_GLOBAL
7072 #  define LT_DLGLOBAL           RTLD_GLOBAL
7073 #else
7074 #  ifdef DL_GLOBAL
7075 #    define LT_DLGLOBAL         DL_GLOBAL
7076 #  else
7077 #    define LT_DLGLOBAL         0
7078 #  endif
7079 #endif
7080
7081 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7082    find out it does not work in some platform. */
7083 #ifndef LT_DLLAZY_OR_NOW
7084 #  ifdef RTLD_LAZY
7085 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7086 #  else
7087 #    ifdef DL_LAZY
7088 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7089 #    else
7090 #      ifdef RTLD_NOW
7091 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7092 #      else
7093 #        ifdef DL_NOW
7094 #          define LT_DLLAZY_OR_NOW      DL_NOW
7095 #        else
7096 #          define LT_DLLAZY_OR_NOW      0
7097 #        endif
7098 #      endif
7099 #    endif
7100 #  endif
7101 #endif
7102
7103 #ifdef __cplusplus
7104 extern "C" void exit (int);
7105 #endif
7106
7107 void fnord() { int i=42;}
7108 int main ()
7109 {
7110   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7111   int status = $lt_dlunknown;
7112
7113   if (self)
7114     {
7115       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7116       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7117       /* dlclose (self); */
7118     }
7119
7120     exit (status);
7121 }
7122 EOF
7123   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7124   (eval $ac_link) 2>&5
7125   ac_status=$?
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7128     (./conftest; exit; ) 2>/dev/null
7129     lt_status=$?
7130     case x$lt_status in
7131       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7132       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7133       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7134     esac
7135   else :
7136     # compilation failed
7137     lt_cv_dlopen_self_static=no
7138   fi
7139 fi
7140 rm -fr conftest*
7141
7142
7143 fi
7144 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7145 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7146     fi
7147
7148     CPPFLAGS="$save_CPPFLAGS"
7149     LDFLAGS="$save_LDFLAGS"
7150     LIBS="$save_LIBS"
7151     ;;
7152   esac
7153
7154   case $lt_cv_dlopen_self in
7155   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7156   *) enable_dlopen_self=unknown ;;
7157   esac
7158
7159   case $lt_cv_dlopen_self_static in
7160   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7161   *) enable_dlopen_self_static=unknown ;;
7162   esac
7163 fi
7164
7165
7166 ## FIXME: this should be a separate macro
7167 ##
7168 if test "$enable_shared" = yes && test "$GCC" = yes; then
7169   case $archive_cmds in
7170   *'~'*)
7171     # FIXME: we may have to deal with multi-command sequences.
7172     ;;
7173   '$CC '*)
7174     # Test whether the compiler implicitly links with -lc since on some
7175     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7176     # to ld, don't add -lc before -lgcc.
7177     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7178 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7179     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7180   echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182   $rm conftest*
7183     echo 'static int dummy;' > conftest.$ac_ext
7184
7185     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7186   (eval $ac_compile) 2>&5
7187   ac_status=$?
7188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189   (exit $ac_status); }; then
7190       soname=conftest
7191       lib=conftest
7192       libobjs=conftest.$ac_objext
7193       deplibs=
7194       wl=$lt_cv_prog_cc_wl
7195       compiler_flags=-v
7196       linker_flags=-v
7197       verstring=
7198       output_objdir=.
7199       libname=conftest
7200       save_allow_undefined_flag=$allow_undefined_flag
7201       allow_undefined_flag=
7202       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7203   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7204   ac_status=$?
7205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206   (exit $ac_status); }
7207       then
7208         lt_cv_archive_cmds_need_lc=no
7209       else
7210         lt_cv_archive_cmds_need_lc=yes
7211       fi
7212       allow_undefined_flag=$save_allow_undefined_flag
7213     else
7214       cat conftest.err 1>&5
7215     fi
7216 fi
7217
7218     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7219 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7220     ;;
7221   esac
7222 fi
7223 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7224 ##
7225 ## END FIXME
7226
7227 ## FIXME: this should be a separate macro
7228 ##
7229 # The second clause should only fire when bootstrapping the
7230 # libtool distribution, otherwise you forgot to ship ltmain.sh
7231 # with your package, and you will get complaints that there are
7232 # no rules to generate ltmain.sh.
7233 if test -f "$ltmain"; then
7234   :
7235 else
7236   # If there is no Makefile yet, we rely on a make rule to execute
7237   # `config.status --recheck' to rerun these tests and create the
7238   # libtool script then.
7239   test -f Makefile && make "$ltmain"
7240 fi
7241
7242 if test -f "$ltmain"; then
7243   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7244   $rm -f "${ofile}T"
7245
7246   echo creating $ofile
7247
7248   # Now quote all the things that may contain metacharacters while being
7249   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7250   # variables and quote the copies for generation of the libtool script.
7251   for var in echo old_CC old_CFLAGS \
7252     AR AR_FLAGS CC LD LN_S NM SHELL \
7253     reload_flag reload_cmds wl \
7254     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7255     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7256     library_names_spec soname_spec \
7257     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7258     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7259     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7260     old_striplib striplib file_magic_cmd export_symbols_cmds \
7261     deplibs_check_method allow_undefined_flag no_undefined_flag \
7262     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7263     global_symbol_to_c_name_address \
7264     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7265     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7266     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7267
7268     case $var in
7269     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7270     old_postinstall_cmds | old_postuninstall_cmds | \
7271     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7272     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7273     postinstall_cmds | postuninstall_cmds | \
7274     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7275       # Double-quote double-evaled strings.
7276       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7277       ;;
7278     *)
7279       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7280       ;;
7281     esac
7282   done
7283
7284   cat <<__EOF__ > "${ofile}T"
7285 #! $SHELL
7286
7287 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7288 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7289 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7290 #
7291 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7292 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7293 #
7294 # This program is free software; you can redistribute it and/or modify
7295 # it under the terms of the GNU General Public License as published by
7296 # the Free Software Foundation; either version 2 of the License, or
7297 # (at your option) any later version.
7298 #
7299 # This program is distributed in the hope that it will be useful, but
7300 # WITHOUT ANY WARRANTY; without even the implied warranty of
7301 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7302 # General Public License for more details.
7303 #
7304 # You should have received a copy of the GNU General Public License
7305 # along with this program; if not, write to the Free Software
7306 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7307 #
7308 # As a special exception to the GNU General Public License, if you
7309 # distribute this file as part of a program that contains a
7310 # configuration script generated by Autoconf, you may include it under
7311 # the same distribution terms that you use for the rest of that program.
7312
7313 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7314 Xsed="sed -e s/^X//"
7315
7316 # The HP-UX ksh and POSIX shell print the target directory to stdout
7317 # if CDPATH is set.
7318 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7319
7320 # ### BEGIN LIBTOOL CONFIG
7321
7322 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7323
7324 # Shell to use when invoking shell scripts.
7325 SHELL=$lt_SHELL
7326
7327 # Whether or not to build shared libraries.
7328 build_libtool_libs=$enable_shared
7329
7330 # Whether or not to build static libraries.
7331 build_old_libs=$enable_static
7332
7333 # Whether or not to add -lc for building shared libraries.
7334 build_libtool_need_lc=$need_lc
7335
7336 # Whether or not to optimize for fast installation.
7337 fast_install=$enable_fast_install
7338
7339 # The host system.
7340 host_alias=$host_alias
7341 host=$host
7342
7343 # An echo program that does not interpret backslashes.
7344 echo=$lt_echo
7345
7346 # The archiver.
7347 AR=$lt_AR
7348 AR_FLAGS=$lt_AR_FLAGS
7349
7350 # The default C compiler.
7351 CC=$lt_CC
7352
7353 # Is the compiler the GNU C compiler?
7354 with_gcc=$GCC
7355
7356 # The linker used to build libraries.
7357 LD=$lt_LD
7358
7359 # Whether we need hard or soft links.
7360 LN_S=$lt_LN_S
7361
7362 # A BSD-compatible nm program.
7363 NM=$lt_NM
7364
7365 # A symbol stripping program
7366 STRIP=$STRIP
7367
7368 # Used to examine libraries when file_magic_cmd begins "file"
7369 MAGIC_CMD=$MAGIC_CMD
7370
7371 # Used on cygwin: DLL creation program.
7372 DLLTOOL="$DLLTOOL"
7373
7374 # Used on cygwin: object dumper.
7375 OBJDUMP="$OBJDUMP"
7376
7377 # Used on cygwin: assembler.
7378 AS="$AS"
7379
7380 # The name of the directory that contains temporary libtool files.
7381 objdir=$objdir
7382
7383 # How to create reloadable object files.
7384 reload_flag=$lt_reload_flag
7385 reload_cmds=$lt_reload_cmds
7386
7387 # How to pass a linker flag through the compiler.
7388 wl=$lt_wl
7389
7390 # Object file suffix (normally "o").
7391 objext="$ac_objext"
7392
7393 # Old archive suffix (normally "a").
7394 libext="$libext"
7395
7396 # Executable file suffix (normally "").
7397 exeext="$exeext"
7398
7399 # Additional compiler flags for building library objects.
7400 pic_flag=$lt_pic_flag
7401 pic_mode=$pic_mode
7402
7403 # Does compiler simultaneously support -c and -o options?
7404 compiler_c_o=$lt_compiler_c_o
7405
7406 # Can we write directly to a .lo ?
7407 compiler_o_lo=$lt_compiler_o_lo
7408
7409 # Must we lock files when doing compilation ?
7410 need_locks=$lt_need_locks
7411
7412 # Do we need the lib prefix for modules?
7413 need_lib_prefix=$need_lib_prefix
7414
7415 # Do we need a version for libraries?
7416 need_version=$need_version
7417
7418 # Whether dlopen is supported.
7419 dlopen_support=$enable_dlopen
7420
7421 # Whether dlopen of programs is supported.
7422 dlopen_self=$enable_dlopen_self
7423
7424 # Whether dlopen of statically linked programs is supported.
7425 dlopen_self_static=$enable_dlopen_self_static
7426
7427 # Compiler flag to prevent dynamic linking.
7428 link_static_flag=$lt_link_static_flag
7429
7430 # Compiler flag to turn off builtin functions.
7431 no_builtin_flag=$lt_no_builtin_flag
7432
7433 # Compiler flag to allow reflexive dlopens.
7434 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7435
7436 # Compiler flag to generate shared objects directly from archives.
7437 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7438
7439 # Compiler flag to generate thread-safe objects.
7440 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7441
7442 # Library versioning type.
7443 version_type=$version_type
7444
7445 # Format of library name prefix.
7446 libname_spec=$lt_libname_spec
7447
7448 # List of archive names.  First name is the real one, the rest are links.
7449 # The last name is the one that the linker finds with -lNAME.
7450 library_names_spec=$lt_library_names_spec
7451
7452 # The coded name of the library, if different from the real name.
7453 soname_spec=$lt_soname_spec
7454
7455 # Commands used to build and install an old-style archive.
7456 RANLIB=$lt_RANLIB
7457 old_archive_cmds=$lt_old_archive_cmds
7458 old_postinstall_cmds=$lt_old_postinstall_cmds
7459 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7460
7461 # Create an old-style archive from a shared archive.
7462 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7463
7464 # Create a temporary old-style archive to link instead of a shared archive.
7465 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7466
7467 # Commands used to build and install a shared archive.
7468 archive_cmds=$lt_archive_cmds
7469 archive_expsym_cmds=$lt_archive_expsym_cmds
7470 postinstall_cmds=$lt_postinstall_cmds
7471 postuninstall_cmds=$lt_postuninstall_cmds
7472
7473 # Commands to strip libraries.
7474 old_striplib=$lt_old_striplib
7475 striplib=$lt_striplib
7476
7477 # Method to check whether dependent libraries are shared objects.
7478 deplibs_check_method=$lt_deplibs_check_method
7479
7480 # Command to use when deplibs_check_method == file_magic.
7481 file_magic_cmd=$lt_file_magic_cmd
7482
7483 # Flag that allows shared libraries with undefined symbols to be built.
7484 allow_undefined_flag=$lt_allow_undefined_flag
7485
7486 # Flag that forces no undefined symbols.
7487 no_undefined_flag=$lt_no_undefined_flag
7488
7489 # Commands used to finish a libtool library installation in a directory.
7490 finish_cmds=$lt_finish_cmds
7491
7492 # Same as above, but a single script fragment to be evaled but not shown.
7493 finish_eval=$lt_finish_eval
7494
7495 # Take the output of nm and produce a listing of raw symbols and C names.
7496 global_symbol_pipe=$lt_global_symbol_pipe
7497
7498 # Transform the output of nm in a proper C declaration
7499 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7500
7501 # Transform the output of nm in a C name address pair
7502 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7503
7504 # This is the shared library runtime path variable.
7505 runpath_var=$runpath_var
7506
7507 # This is the shared library path variable.
7508 shlibpath_var=$shlibpath_var
7509
7510 # Is shlibpath searched before the hard-coded library search path?
7511 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7512
7513 # How to hardcode a shared library path into an executable.
7514 hardcode_action=$hardcode_action
7515
7516 # Whether we should hardcode library paths into libraries.
7517 hardcode_into_libs=$hardcode_into_libs
7518
7519 # Flag to hardcode \$libdir into a binary during linking.
7520 # This must work even if \$libdir does not exist.
7521 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7522
7523 # Whether we need a single -rpath flag with a separated argument.
7524 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7525
7526 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7527 # resulting binary.
7528 hardcode_direct=$hardcode_direct
7529
7530 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7531 # resulting binary.
7532 hardcode_minus_L=$hardcode_minus_L
7533
7534 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7535 # the resulting binary.
7536 hardcode_shlibpath_var=$hardcode_shlibpath_var
7537
7538 # Variables whose values should be saved in libtool wrapper scripts and
7539 # restored at relink time.
7540 variables_saved_for_relink="$variables_saved_for_relink"
7541
7542 # Whether libtool must link a program against all its dependency libraries.
7543 link_all_deplibs=$link_all_deplibs
7544
7545 # Compile-time system search path for libraries
7546 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7547
7548 # Run-time system search path for libraries
7549 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7550
7551 # Fix the shell variable \$srcfile for the compiler.
7552 fix_srcfile_path="$fix_srcfile_path"
7553
7554 # Set to yes if exported symbols are required.
7555 always_export_symbols=$always_export_symbols
7556
7557 # The commands to list exported symbols.
7558 export_symbols_cmds=$lt_export_symbols_cmds
7559
7560 # The commands to extract the exported symbol list from a shared archive.
7561 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7562
7563 # Symbols that should not be listed in the preloaded symbols.
7564 exclude_expsyms=$lt_exclude_expsyms
7565
7566 # Symbols that must always be exported.
7567 include_expsyms=$lt_include_expsyms
7568
7569 # ### END LIBTOOL CONFIG
7570
7571 __EOF__
7572
7573   case $host_os in
7574   aix3*)
7575     cat <<\EOF >> "${ofile}T"
7576
7577 # AIX sometimes has problems with the GCC collect2 program.  For some
7578 # reason, if we set the COLLECT_NAMES environment variable, the problems
7579 # vanish in a puff of smoke.
7580 if test "X${COLLECT_NAMES+set}" != Xset; then
7581   COLLECT_NAMES=
7582   export COLLECT_NAMES
7583 fi
7584 EOF
7585     ;;
7586   esac
7587
7588   case $host_os in
7589   cygwin* | mingw* | pw32* | os2*)
7590     cat <<'EOF' >> "${ofile}T"
7591       # This is a source program that is used to create dlls on Windows
7592       # Don't remove nor modify the starting and closing comments
7593 # /* ltdll.c starts here */
7594 # #define WIN32_LEAN_AND_MEAN
7595 # #include <windows.h>
7596 # #undef WIN32_LEAN_AND_MEAN
7597 # #include <stdio.h>
7598 #
7599 # #ifndef __CYGWIN__
7600 # #  ifdef __CYGWIN32__
7601 # #    define __CYGWIN__ __CYGWIN32__
7602 # #  endif
7603 # #endif
7604 #
7605 # #ifdef __cplusplus
7606 # extern "C" {
7607 # #endif
7608 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7609 # #ifdef __cplusplus
7610 # }
7611 # #endif
7612 #
7613 # #ifdef __CYGWIN__
7614 # #include <cygwin/cygwin_dll.h>
7615 # DECLARE_CYGWIN_DLL( DllMain );
7616 # #endif
7617 # HINSTANCE __hDllInstance_base;
7618 #
7619 # BOOL APIENTRY
7620 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7621 # {
7622 #   __hDllInstance_base = hInst;
7623 #   return TRUE;
7624 # }
7625 # /* ltdll.c ends here */
7626         # This is a source program that is used to create import libraries
7627         # on Windows for dlls which lack them. Don't remove nor modify the
7628         # starting and closing comments
7629 # /* impgen.c starts here */
7630 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7631 #
7632 #  This file is part of GNU libtool.
7633 #
7634 #  This program is free software; you can redistribute it and/or modify
7635 #  it under the terms of the GNU General Public License as published by
7636 #  the Free Software Foundation; either version 2 of the License, or
7637 #  (at your option) any later version.
7638 #
7639 #  This program is distributed in the hope that it will be useful,
7640 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7641 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7642 #  GNU General Public License for more details.
7643 #
7644 #  You should have received a copy of the GNU General Public License
7645 #  along with this program; if not, write to the Free Software
7646 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7647 #  */
7648 #
7649 # #include <stdio.h>            /* for printf() */
7650 # #include <unistd.h>           /* for open(), lseek(), read() */
7651 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7652 # #include <string.h>           /* for strdup() */
7653 #
7654 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7655 # #ifndef O_BINARY
7656 # #define O_BINARY 0
7657 # #endif
7658 #
7659 # static unsigned int
7660 # pe_get16 (fd, offset)
7661 #      int fd;
7662 #      int offset;
7663 # {
7664 #   unsigned char b[2];
7665 #   lseek (fd, offset, SEEK_SET);
7666 #   read (fd, b, 2);
7667 #   return b[0] + (b[1]<<8);
7668 # }
7669 #
7670 # static unsigned int
7671 # pe_get32 (fd, offset)
7672 #     int fd;
7673 #     int offset;
7674 # {
7675 #   unsigned char b[4];
7676 #   lseek (fd, offset, SEEK_SET);
7677 #   read (fd, b, 4);
7678 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7679 # }
7680 #
7681 # static unsigned int
7682 # pe_as32 (ptr)
7683 #      void *ptr;
7684 # {
7685 #   unsigned char *b = ptr;
7686 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7687 # }
7688 #
7689 # int
7690 # main (argc, argv)
7691 #     int argc;
7692 #     char *argv[];
7693 # {
7694 #     int dll;
7695 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7696 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
7697 #     unsigned long name_rvas, nexp;
7698 #     unsigned char *expdata, *erva;
7699 #     char *filename, *dll_name;
7700 #
7701 #     filename = argv[1];
7702 #
7703 #     dll = open(filename, O_RDONLY|O_BINARY);
7704 #     if (dll < 1)
7705 #       return 1;
7706 #
7707 #     dll_name = filename;
7708 #
7709 #     for (i=0; filename[i]; i++)
7710 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7711 #           dll_name = filename + i +1;
7712 #
7713 #     pe_header_offset = pe_get32 (dll, 0x3c);
7714 #     opthdr_ofs = pe_header_offset + 4 + 20;
7715 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7716 #
7717 #     if (num_entries < 1) /* no exports */
7718 #       return 1;
7719 #
7720 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7721 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
7722 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7723 #     secptr = (pe_header_offset + 4 + 20 +
7724 #             pe_get16 (dll, pe_header_offset + 4 + 16));
7725 #
7726 #     expptr = 0;
7727 #     for (i = 0; i < nsections; i++)
7728 #     {
7729 #       char sname[8];
7730 #       unsigned long secptr1 = secptr + 40 * i;
7731 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7732 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7733 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7734 #       lseek(dll, secptr1, SEEK_SET);
7735 #       read(dll, sname, 8);
7736 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
7737 #       {
7738 #           expptr = fptr + (export_rva - vaddr);
7739 #           if (export_rva + export_size > vaddr + vsize)
7740 #               export_size = vsize - (export_rva - vaddr);
7741 #           break;
7742 #       }
7743 #     }
7744 #
7745 #     expdata = (unsigned char*)malloc(export_size);
7746 #     lseek (dll, expptr, SEEK_SET);
7747 #     read (dll, expdata, export_size);
7748 #     erva = expdata - export_rva;
7749 #
7750 #     nexp = pe_as32 (expdata+24);
7751 #     name_rvas = pe_as32 (expdata+32);
7752 #
7753 #     printf ("EXPORTS\n");
7754 #     for (i = 0; i<nexp; i++)
7755 #     {
7756 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7757 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7758 #     }
7759 #
7760 #     return 0;
7761 # }
7762 # /* impgen.c ends here */
7763
7764 EOF
7765     ;;
7766   esac
7767
7768   # We use sed instead of cat because bash on DJGPP gets confused if
7769   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7770   # text mode, it properly converts lines to CR/LF.  This bash problem
7771   # is reportedly fixed, but why not run on old versions too?
7772   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7773
7774   mv -f "${ofile}T" "$ofile" || \
7775     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7776   chmod +x "$ofile"
7777 fi
7778 ##
7779 ## END FIXME
7780
7781
7782
7783
7784
7785 # This can be used to rebuild libtool when needed
7786 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7787
7788 # Always use our own libtool.
7789 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7790
7791 # Prevent multiple expansion
7792
7793
7794
7795
7796 ac_ext=cc
7797 ac_cpp='$CXXCPP $CPPFLAGS'
7798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7801
7802
7803 # Checking for header files.
7804 # ===========================================================================
7805
7806 if test -d /stuff/include; then
7807   CPPFLAGS="$CPPFLAGS -I/stuff/include"
7808 fi
7809
7810
7811
7812 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7813 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7814 if test "${ac_cv_header_stdc+set}" = set; then
7815   echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817   cat >conftest.$ac_ext <<_ACEOF
7818 #line $LINENO "configure"
7819 #include "confdefs.h"
7820 #include <stdlib.h>
7821 #include <stdarg.h>
7822 #include <string.h>
7823 #include <float.h>
7824
7825 _ACEOF
7826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7827   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7828   ac_status=$?
7829   grep -v '^ *+' conftest.er1 >conftest.err
7830   rm -f conftest.er1
7831   cat conftest.err >&5
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); } >/dev/null; then
7834   if test -s conftest.err; then
7835     ac_cpp_err=$ac_cxx_preproc_warn_flag
7836   else
7837     ac_cpp_err=
7838   fi
7839 else
7840   ac_cpp_err=yes
7841 fi
7842 if test -z "$ac_cpp_err"; then
7843   ac_cv_header_stdc=yes
7844 else
7845   echo "$as_me: failed program was:" >&5
7846   cat conftest.$ac_ext >&5
7847   ac_cv_header_stdc=no
7848 fi
7849 rm -f conftest.err conftest.$ac_ext
7850
7851 if test $ac_cv_header_stdc = yes; then
7852   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7853   cat >conftest.$ac_ext <<_ACEOF
7854 #line $LINENO "configure"
7855 #include "confdefs.h"
7856 #include <string.h>
7857
7858 _ACEOF
7859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7860   $EGREP "memchr" >/dev/null 2>&1; then
7861   :
7862 else
7863   ac_cv_header_stdc=no
7864 fi
7865 rm -f conftest*
7866
7867 fi
7868
7869 if test $ac_cv_header_stdc = yes; then
7870   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7871   cat >conftest.$ac_ext <<_ACEOF
7872 #line $LINENO "configure"
7873 #include "confdefs.h"
7874 #include <stdlib.h>
7875
7876 _ACEOF
7877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7878   $EGREP "free" >/dev/null 2>&1; then
7879   :
7880 else
7881   ac_cv_header_stdc=no
7882 fi
7883 rm -f conftest*
7884
7885 fi
7886
7887 if test $ac_cv_header_stdc = yes; then
7888   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7889   if test "$cross_compiling" = yes; then
7890   :
7891 else
7892   cat >conftest.$ac_ext <<_ACEOF
7893 #line $LINENO "configure"
7894 #include "confdefs.h"
7895 #include <ctype.h>
7896 #if ((' ' & 0x0FF) == 0x020)
7897 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7898 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7899 #else
7900 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7901                      || ('j' <= (c) && (c) <= 'r') \
7902                      || ('s' <= (c) && (c) <= 'z'))
7903 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7904 #endif
7905
7906 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7907 int
7908 main ()
7909 {
7910   int i;
7911   for (i = 0; i < 256; i++)
7912     if (XOR (islower (i), ISLOWER (i))
7913         || toupper (i) != TOUPPER (i))
7914       exit(2);
7915   exit (0);
7916 }
7917 _ACEOF
7918 rm -f conftest$ac_exeext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7920   (eval $ac_link) 2>&5
7921   ac_status=$?
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925   (eval $ac_try) 2>&5
7926   ac_status=$?
7927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928   (exit $ac_status); }; }; then
7929   :
7930 else
7931   echo "$as_me: program exited with status $ac_status" >&5
7932 echo "$as_me: failed program was:" >&5
7933 cat conftest.$ac_ext >&5
7934 ( exit $ac_status )
7935 ac_cv_header_stdc=no
7936 fi
7937 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7938 fi
7939 fi
7940 fi
7941 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7942 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7943 if test $ac_cv_header_stdc = yes; then
7944
7945 cat >>confdefs.h <<\_ACEOF
7946 #define STDC_HEADERS 1
7947 _ACEOF
7948
7949 fi
7950
7951
7952 for ac_header in getopt.h
7953 do
7954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7956   echo "$as_me:$LINENO: checking for $ac_header" >&5
7957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7959   echo $ECHO_N "(cached) $ECHO_C" >&6
7960 fi
7961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7963 else
7964   # Is the header compilable?
7965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7967 cat >conftest.$ac_ext <<_ACEOF
7968 #line $LINENO "configure"
7969 #include "confdefs.h"
7970 $ac_includes_default
7971 #include <$ac_header>
7972 _ACEOF
7973 rm -f conftest.$ac_objext
7974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7975   (eval $ac_compile) 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); } &&
7979          { ac_try='test -s conftest.$ac_objext'
7980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981   (eval $ac_try) 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; }; then
7985   ac_header_compiler=yes
7986 else
7987   echo "$as_me: failed program was:" >&5
7988 cat conftest.$ac_ext >&5
7989 ac_header_compiler=no
7990 fi
7991 rm -f conftest.$ac_objext conftest.$ac_ext
7992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7993 echo "${ECHO_T}$ac_header_compiler" >&6
7994
7995 # Is the header present?
7996 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7998 cat >conftest.$ac_ext <<_ACEOF
7999 #line $LINENO "configure"
8000 #include "confdefs.h"
8001 #include <$ac_header>
8002 _ACEOF
8003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8005   ac_status=$?
8006   grep -v '^ *+' conftest.er1 >conftest.err
8007   rm -f conftest.er1
8008   cat conftest.err >&5
8009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010   (exit $ac_status); } >/dev/null; then
8011   if test -s conftest.err; then
8012     ac_cpp_err=$ac_cxx_preproc_warn_flag
8013   else
8014     ac_cpp_err=
8015   fi
8016 else
8017   ac_cpp_err=yes
8018 fi
8019 if test -z "$ac_cpp_err"; then
8020   ac_header_preproc=yes
8021 else
8022   echo "$as_me: failed program was:" >&5
8023   cat conftest.$ac_ext >&5
8024   ac_header_preproc=no
8025 fi
8026 rm -f conftest.err conftest.$ac_ext
8027 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8028 echo "${ECHO_T}$ac_header_preproc" >&6
8029
8030 # So?  What about this header?
8031 case $ac_header_compiler:$ac_header_preproc in
8032   yes:no )
8033     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8037   no:yes )
8038     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8040     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8044 esac
8045 echo "$as_me:$LINENO: checking for $ac_header" >&5
8046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8048   echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050   eval "$as_ac_Header=$ac_header_preproc"
8051 fi
8052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8054
8055 fi
8056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8057   cat >>confdefs.h <<_ACEOF
8058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8059 _ACEOF
8060
8061 fi
8062
8063 done
8064
8065
8066 for ac_header in unistd.h
8067 do
8068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8070   echo "$as_me:$LINENO: checking for $ac_header" >&5
8071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8073   echo $ECHO_N "(cached) $ECHO_C" >&6
8074 fi
8075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8077 else
8078   # Is the header compilable?
8079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8081 cat >conftest.$ac_ext <<_ACEOF
8082 #line $LINENO "configure"
8083 #include "confdefs.h"
8084 $ac_includes_default
8085 #include <$ac_header>
8086 _ACEOF
8087 rm -f conftest.$ac_objext
8088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8089   (eval $ac_compile) 2>&5
8090   ac_status=$?
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); } &&
8093          { ac_try='test -s conftest.$ac_objext'
8094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095   (eval $ac_try) 2>&5
8096   ac_status=$?
8097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098   (exit $ac_status); }; }; then
8099   ac_header_compiler=yes
8100 else
8101   echo "$as_me: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8103 ac_header_compiler=no
8104 fi
8105 rm -f conftest.$ac_objext conftest.$ac_ext
8106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8107 echo "${ECHO_T}$ac_header_compiler" >&6
8108
8109 # Is the header present?
8110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8112 cat >conftest.$ac_ext <<_ACEOF
8113 #line $LINENO "configure"
8114 #include "confdefs.h"
8115 #include <$ac_header>
8116 _ACEOF
8117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8119   ac_status=$?
8120   grep -v '^ *+' conftest.er1 >conftest.err
8121   rm -f conftest.er1
8122   cat conftest.err >&5
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); } >/dev/null; then
8125   if test -s conftest.err; then
8126     ac_cpp_err=$ac_cxx_preproc_warn_flag
8127   else
8128     ac_cpp_err=
8129   fi
8130 else
8131   ac_cpp_err=yes
8132 fi
8133 if test -z "$ac_cpp_err"; then
8134   ac_header_preproc=yes
8135 else
8136   echo "$as_me: failed program was:" >&5
8137   cat conftest.$ac_ext >&5
8138   ac_header_preproc=no
8139 fi
8140 rm -f conftest.err conftest.$ac_ext
8141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8142 echo "${ECHO_T}$ac_header_preproc" >&6
8143
8144 # So?  What about this header?
8145 case $ac_header_compiler:$ac_header_preproc in
8146   yes:no )
8147     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8151   no:yes )
8152     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8154     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8156     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8158 esac
8159 echo "$as_me:$LINENO: checking for $ac_header" >&5
8160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8162   echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164   eval "$as_ac_Header=$ac_header_preproc"
8165 fi
8166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8168
8169 fi
8170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8171   cat >>confdefs.h <<_ACEOF
8172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8173 _ACEOF
8174
8175 fi
8176
8177 done
8178
8179 if test "${ac_cv_header_sys_socket_h+set}" = set; then
8180   echo "$as_me:$LINENO: checking for sys/socket.h" >&5
8181 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
8182 if test "${ac_cv_header_sys_socket_h+set}" = set; then
8183   echo $ECHO_N "(cached) $ECHO_C" >&6
8184 fi
8185 echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
8186 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
8187 else
8188   # Is the header compilable?
8189 echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
8190 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
8191 cat >conftest.$ac_ext <<_ACEOF
8192 #line $LINENO "configure"
8193 #include "confdefs.h"
8194 $ac_includes_default
8195 #include <sys/socket.h>
8196 _ACEOF
8197 rm -f conftest.$ac_objext
8198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8199   (eval $ac_compile) 2>&5
8200   ac_status=$?
8201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202   (exit $ac_status); } &&
8203          { ac_try='test -s conftest.$ac_objext'
8204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205   (eval $ac_try) 2>&5
8206   ac_status=$?
8207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208   (exit $ac_status); }; }; then
8209   ac_header_compiler=yes
8210 else
8211   echo "$as_me: failed program was:" >&5
8212 cat conftest.$ac_ext >&5
8213 ac_header_compiler=no
8214 fi
8215 rm -f conftest.$ac_objext conftest.$ac_ext
8216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8217 echo "${ECHO_T}$ac_header_compiler" >&6
8218
8219 # Is the header present?
8220 echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
8221 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
8222 cat >conftest.$ac_ext <<_ACEOF
8223 #line $LINENO "configure"
8224 #include "confdefs.h"
8225 #include <sys/socket.h>
8226 _ACEOF
8227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8228   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8229   ac_status=$?
8230   grep -v '^ *+' conftest.er1 >conftest.err
8231   rm -f conftest.er1
8232   cat conftest.err >&5
8233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234   (exit $ac_status); } >/dev/null; then
8235   if test -s conftest.err; then
8236     ac_cpp_err=$ac_cxx_preproc_warn_flag
8237   else
8238     ac_cpp_err=
8239   fi
8240 else
8241   ac_cpp_err=yes
8242 fi
8243 if test -z "$ac_cpp_err"; then
8244   ac_header_preproc=yes
8245 else
8246   echo "$as_me: failed program was:" >&5
8247   cat conftest.$ac_ext >&5
8248   ac_header_preproc=no
8249 fi
8250 rm -f conftest.err conftest.$ac_ext
8251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8252 echo "${ECHO_T}$ac_header_preproc" >&6
8253
8254 # So?  What about this header?
8255 case $ac_header_compiler:$ac_header_preproc in
8256   yes:no )
8257     { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
8258 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8259     { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
8260 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;};;
8261   no:yes )
8262     { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
8263 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
8264     { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
8265 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
8266     { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
8267 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;};;
8268 esac
8269 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
8270 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
8271 if test "${ac_cv_header_sys_socket_h+set}" = set; then
8272   echo $ECHO_N "(cached) $ECHO_C" >&6
8273 else
8274   ac_cv_header_sys_socket_h=$ac_header_preproc
8275 fi
8276 echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
8277 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
8278
8279 fi
8280 if test $ac_cv_header_sys_socket_h = yes; then
8281   cat >>confdefs.h <<\_ACEOF
8282 #define SOCKET_AVAIL 1
8283 _ACEOF
8284
8285     cat >>confdefs.h <<\_ACEOF
8286 #define HAVE_SYS_SOCKET_H 1
8287 _ACEOF
8288
8289     cat >conftest.$ac_ext <<_ACEOF
8290 #line $LINENO "configure"
8291 #include "confdefs.h"
8292 #include <sys/socket.h>
8293
8294 _ACEOF
8295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8296   $EGREP "socklen_t" >/dev/null 2>&1; then
8297   cat >>confdefs.h <<_ACEOF
8298 #define SOCKLEN_T socklen_t
8299 _ACEOF
8300
8301 else
8302   cat >>confdefs.h <<_ACEOF
8303 #define SOCKLEN_T uint
8304 _ACEOF
8305
8306 fi
8307 rm -f conftest*
8308
8309
8310 fi
8311
8312
8313 if test "${ac_cv_header_dlfcn_h+set}" = set; then
8314   echo "$as_me:$LINENO: checking for dlfcn.h" >&5
8315 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
8316 if test "${ac_cv_header_dlfcn_h+set}" = set; then
8317   echo $ECHO_N "(cached) $ECHO_C" >&6
8318 fi
8319 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
8320 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
8321 else
8322   # Is the header compilable?
8323 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
8324 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
8325 cat >conftest.$ac_ext <<_ACEOF
8326 #line $LINENO "configure"
8327 #include "confdefs.h"
8328 $ac_includes_default
8329 #include <dlfcn.h>
8330 _ACEOF
8331 rm -f conftest.$ac_objext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8333   (eval $ac_compile) 2>&5
8334   ac_status=$?
8335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336   (exit $ac_status); } &&
8337          { ac_try='test -s conftest.$ac_objext'
8338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339   (eval $ac_try) 2>&5
8340   ac_status=$?
8341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342   (exit $ac_status); }; }; then
8343   ac_header_compiler=yes
8344 else
8345   echo "$as_me: failed program was:" >&5
8346 cat conftest.$ac_ext >&5
8347 ac_header_compiler=no
8348 fi
8349 rm -f conftest.$ac_objext conftest.$ac_ext
8350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8351 echo "${ECHO_T}$ac_header_compiler" >&6
8352
8353 # Is the header present?
8354 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
8355 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
8356 cat >conftest.$ac_ext <<_ACEOF
8357 #line $LINENO "configure"
8358 #include "confdefs.h"
8359 #include <dlfcn.h>
8360 _ACEOF
8361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8362   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8363   ac_status=$?
8364   grep -v '^ *+' conftest.er1 >conftest.err
8365   rm -f conftest.er1
8366   cat conftest.err >&5
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); } >/dev/null; then
8369   if test -s conftest.err; then
8370     ac_cpp_err=$ac_cxx_preproc_warn_flag
8371   else
8372     ac_cpp_err=
8373   fi
8374 else
8375   ac_cpp_err=yes
8376 fi
8377 if test -z "$ac_cpp_err"; then
8378   ac_header_preproc=yes
8379 else
8380   echo "$as_me: failed program was:" >&5
8381   cat conftest.$ac_ext >&5
8382   ac_header_preproc=no
8383 fi
8384 rm -f conftest.err conftest.$ac_ext
8385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8386 echo "${ECHO_T}$ac_header_preproc" >&6
8387
8388 # So?  What about this header?
8389 case $ac_header_compiler:$ac_header_preproc in
8390   yes:no )
8391     { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
8392 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8393     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
8394 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;};;
8395   no:yes )
8396     { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
8397 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
8398     { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
8399 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
8400     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
8401 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;};;
8402 esac
8403 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
8404 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
8405 if test "${ac_cv_header_dlfcn_h+set}" = set; then
8406   echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408   ac_cv_header_dlfcn_h=$ac_header_preproc
8409 fi
8410 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
8411 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
8412
8413 fi
8414
8415
8416
8417
8418
8419
8420
8421 ac_header_dirent=no
8422 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8423   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8424 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8425 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8427   echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429   cat >conftest.$ac_ext <<_ACEOF
8430 #line $LINENO "configure"
8431 #include "confdefs.h"
8432 #include <sys/types.h>
8433 #include <$ac_hdr>
8434
8435 int
8436 main ()
8437 {
8438 if ((DIR *) 0)
8439 return 0;
8440   ;
8441   return 0;
8442 }
8443 _ACEOF
8444 rm -f conftest.$ac_objext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8446   (eval $ac_compile) 2>&5
8447   ac_status=$?
8448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   (exit $ac_status); } &&
8450          { ac_try='test -s conftest.$ac_objext'
8451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452   (eval $ac_try) 2>&5
8453   ac_status=$?
8454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); }; }; then
8456   eval "$as_ac_Header=yes"
8457 else
8458   echo "$as_me: failed program was:" >&5
8459 cat conftest.$ac_ext >&5
8460 eval "$as_ac_Header=no"
8461 fi
8462 rm -f conftest.$ac_objext conftest.$ac_ext
8463 fi
8464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8467   cat >>confdefs.h <<_ACEOF
8468 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8469 _ACEOF
8470
8471 ac_header_dirent=$ac_hdr; break
8472 fi
8473
8474 done
8475 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8476 if test $ac_header_dirent = dirent.h; then
8477   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8478 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8479 if test "${ac_cv_search_opendir+set}" = set; then
8480   echo $ECHO_N "(cached) $ECHO_C" >&6
8481 else
8482   ac_func_search_save_LIBS=$LIBS
8483 ac_cv_search_opendir=no
8484 cat >conftest.$ac_ext <<_ACEOF
8485 #line $LINENO "configure"
8486 #include "confdefs.h"
8487
8488 /* Override any gcc2 internal prototype to avoid an error.  */
8489 #ifdef __cplusplus
8490 extern "C"
8491 #endif
8492 /* We use char because int might match the return type of a gcc2
8493    builtin and then its argument prototype would still apply.  */
8494 char opendir ();
8495 int
8496 main ()
8497 {
8498 opendir ();
8499   ;
8500   return 0;
8501 }
8502 _ACEOF
8503 rm -f conftest.$ac_objext conftest$ac_exeext
8504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8505   (eval $ac_link) 2>&5
8506   ac_status=$?
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); } &&
8509          { ac_try='test -s conftest$ac_exeext'
8510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511   (eval $ac_try) 2>&5
8512   ac_status=$?
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   (exit $ac_status); }; }; then
8515   ac_cv_search_opendir="none required"
8516 else
8517   echo "$as_me: failed program was:" >&5
8518 cat conftest.$ac_ext >&5
8519 fi
8520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8521 if test "$ac_cv_search_opendir" = no; then
8522   for ac_lib in dir; do
8523     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8524     cat >conftest.$ac_ext <<_ACEOF
8525 #line $LINENO "configure"
8526 #include "confdefs.h"
8527
8528 /* Override any gcc2 internal prototype to avoid an error.  */
8529 #ifdef __cplusplus
8530 extern "C"
8531 #endif
8532 /* We use char because int might match the return type of a gcc2
8533    builtin and then its argument prototype would still apply.  */
8534 char opendir ();
8535 int
8536 main ()
8537 {
8538 opendir ();
8539   ;
8540   return 0;
8541 }
8542 _ACEOF
8543 rm -f conftest.$ac_objext conftest$ac_exeext
8544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8545   (eval $ac_link) 2>&5
8546   ac_status=$?
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); } &&
8549          { ac_try='test -s conftest$ac_exeext'
8550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551   (eval $ac_try) 2>&5
8552   ac_status=$?
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); }; }; then
8555   ac_cv_search_opendir="-l$ac_lib"
8556 break
8557 else
8558   echo "$as_me: failed program was:" >&5
8559 cat conftest.$ac_ext >&5
8560 fi
8561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8562   done
8563 fi
8564 LIBS=$ac_func_search_save_LIBS
8565 fi
8566 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8567 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8568 if test "$ac_cv_search_opendir" != no; then
8569   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8570
8571 fi
8572
8573 else
8574   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8575 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8576 if test "${ac_cv_search_opendir+set}" = set; then
8577   echo $ECHO_N "(cached) $ECHO_C" >&6
8578 else
8579   ac_func_search_save_LIBS=$LIBS
8580 ac_cv_search_opendir=no
8581 cat >conftest.$ac_ext <<_ACEOF
8582 #line $LINENO "configure"
8583 #include "confdefs.h"
8584
8585 /* Override any gcc2 internal prototype to avoid an error.  */
8586 #ifdef __cplusplus
8587 extern "C"
8588 #endif
8589 /* We use char because int might match the return type of a gcc2
8590    builtin and then its argument prototype would still apply.  */
8591 char opendir ();
8592 int
8593 main ()
8594 {
8595 opendir ();
8596   ;
8597   return 0;
8598 }
8599 _ACEOF
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602   (eval $ac_link) 2>&5
8603   ac_status=$?
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); } &&
8606          { ac_try='test -s conftest$ac_exeext'
8607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608   (eval $ac_try) 2>&5
8609   ac_status=$?
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); }; }; then
8612   ac_cv_search_opendir="none required"
8613 else
8614   echo "$as_me: failed program was:" >&5
8615 cat conftest.$ac_ext >&5
8616 fi
8617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8618 if test "$ac_cv_search_opendir" = no; then
8619   for ac_lib in x; do
8620     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8621     cat >conftest.$ac_ext <<_ACEOF
8622 #line $LINENO "configure"
8623 #include "confdefs.h"
8624
8625 /* Override any gcc2 internal prototype to avoid an error.  */
8626 #ifdef __cplusplus
8627 extern "C"
8628 #endif
8629 /* We use char because int might match the return type of a gcc2
8630    builtin and then its argument prototype would still apply.  */
8631 char opendir ();
8632 int
8633 main ()
8634 {
8635 opendir ();
8636   ;
8637   return 0;
8638 }
8639 _ACEOF
8640 rm -f conftest.$ac_objext conftest$ac_exeext
8641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8642   (eval $ac_link) 2>&5
8643   ac_status=$?
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); } &&
8646          { ac_try='test -s conftest$ac_exeext'
8647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648   (eval $ac_try) 2>&5
8649   ac_status=$?
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   (exit $ac_status); }; }; then
8652   ac_cv_search_opendir="-l$ac_lib"
8653 break
8654 else
8655   echo "$as_me: failed program was:" >&5
8656 cat conftest.$ac_ext >&5
8657 fi
8658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8659   done
8660 fi
8661 LIBS=$ac_func_search_save_LIBS
8662 fi
8663 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8664 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8665 if test "$ac_cv_search_opendir" != no; then
8666   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8667
8668 fi
8669
8670 fi
8671
8672
8673 # This must be after CXXCPP
8674
8675 echo "$as_me:$LINENO: checking which header file defines FD_ macros" >&5
8676 echo $ECHO_N "checking which header file defines FD_ macros... $ECHO_C" >&6
8677 if test "${ucsim_cv_fd+set}" = set; then
8678   echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680   ucsim_cv_fd="unknown"
8681 cat >conftest.$ac_ext <<_ACEOF
8682 #line $LINENO "configure"
8683 #include "confdefs.h"
8684
8685 #include <sys/time.h>
8686 #ifdef FD_ZERO
8687 yes
8688 #endif
8689 _ACEOF
8690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8691   $EGREP "yes" >/dev/null 2>&1; then
8692   ucsim_cv_fd="<sys/time.h>"
8693 fi
8694 rm -f conftest*
8695
8696 cat >conftest.$ac_ext <<_ACEOF
8697 #line $LINENO "configure"
8698 #include "confdefs.h"
8699
8700 #include <sys/types.h>
8701 #ifdef FD_ZERO
8702 yes
8703 #endif
8704 _ACEOF
8705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8706   $EGREP "yes" >/dev/null 2>&1; then
8707   ucsim_cv_fd="<sys/types.h>"
8708 fi
8709 rm -f conftest*
8710
8711 cat >conftest.$ac_ext <<_ACEOF
8712 #line $LINENO "configure"
8713 #include "confdefs.h"
8714
8715 #include <sys/select.h>
8716 #ifdef FD_ZERO
8717 yes
8718 #endif
8719 _ACEOF
8720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8721   $EGREP "yes" >/dev/null 2>&1; then
8722   ucsim_cv_fd="<sys/types.h>"
8723 fi
8724 rm -f conftest*
8725
8726 fi
8727 echo "$as_me:$LINENO: result: $ucsim_cv_fd" >&5
8728 echo "${ECHO_T}$ucsim_cv_fd" >&6
8729
8730 cat >>confdefs.h <<\_ACEOF
8731 #define FD_HEADER_OK 0
8732 _ACEOF
8733
8734 if echo $ucsim_cv_fd|grep time >/dev/null 2>&1; then
8735 cat >>confdefs.h <<\_ACEOF
8736 #define FD_NEED_TIME_H 1
8737 _ACEOF
8738
8739 cat >>confdefs.h <<\_ACEOF
8740 #define FD_HEADER_OK 1
8741 _ACEOF
8742
8743 else
8744 cat >>confdefs.h <<\_ACEOF
8745 #define FD_NEED_TIME_H 0
8746 _ACEOF
8747
8748 fi
8749 if echo $ucsim_cv_fd|grep types >/dev/null 2>&1; then
8750 cat >>confdefs.h <<\_ACEOF
8751 #define FD_NEED_TYPES_H 1
8752 _ACEOF
8753
8754 cat >>confdefs.h <<\_ACEOF
8755 #define FD_HEADER_OK 1
8756 _ACEOF
8757
8758 else
8759 cat >>confdefs.h <<\_ACEOF
8760 #define FD_NEED_TYPES_H 0
8761 _ACEOF
8762
8763 fi
8764 if echo $ucsim_cv_fd|grep select >/dev/null 2>&1; then
8765 cat >>confdefs.h <<\_ACEOF
8766 #define FD_NEED_SELECT_H 1
8767 _ACEOF
8768
8769 cat >>confdefs.h <<\_ACEOF
8770 #define FD_HEADER_OK 1
8771 _ACEOF
8772
8773 else
8774 cat >>confdefs.h <<\_ACEOF
8775 #define FD_NEED_SELECT_H 0
8776 _ACEOF
8777
8778 fi
8779
8780 cat >>confdefs.h <<_ACEOF
8781 #define HEADER_FD ${ucsim_cv_fd}
8782 _ACEOF
8783
8784
8785
8786 # Checking for functions/libs
8787 # ===========================================================================
8788
8789 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8790 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8791 if test "${ac_cv_lib_socket_socket+set}" = set; then
8792   echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8794   ac_check_lib_save_LIBS=$LIBS
8795 LIBS="-lsocket  $LIBS"
8796 cat >conftest.$ac_ext <<_ACEOF
8797 #line $LINENO "configure"
8798 #include "confdefs.h"
8799
8800 /* Override any gcc2 internal prototype to avoid an error.  */
8801 #ifdef __cplusplus
8802 extern "C"
8803 #endif
8804 /* We use char because int might match the return type of a gcc2
8805    builtin and then its argument prototype would still apply.  */
8806 char socket ();
8807 int
8808 main ()
8809 {
8810 socket ();
8811   ;
8812   return 0;
8813 }
8814 _ACEOF
8815 rm -f conftest.$ac_objext conftest$ac_exeext
8816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8817   (eval $ac_link) 2>&5
8818   ac_status=$?
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); } &&
8821          { ac_try='test -s conftest$ac_exeext'
8822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823   (eval $ac_try) 2>&5
8824   ac_status=$?
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); }; }; then
8827   ac_cv_lib_socket_socket=yes
8828 else
8829   echo "$as_me: failed program was:" >&5
8830 cat conftest.$ac_ext >&5
8831 ac_cv_lib_socket_socket=no
8832 fi
8833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8834 LIBS=$ac_check_lib_save_LIBS
8835 fi
8836 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8837 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8838 if test $ac_cv_lib_socket_socket = yes; then
8839   cat >>confdefs.h <<_ACEOF
8840 #define HAVE_LIBSOCKET 1
8841 _ACEOF
8842
8843   LIBS="-lsocket $LIBS"
8844
8845 fi
8846
8847
8848 echo "$as_me:$LINENO: checking for xdr_short in -lnsl" >&5
8849 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6
8850 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853   ac_check_lib_save_LIBS=$LIBS
8854 LIBS="-lnsl  $LIBS"
8855 cat >conftest.$ac_ext <<_ACEOF
8856 #line $LINENO "configure"
8857 #include "confdefs.h"
8858
8859 /* Override any gcc2 internal prototype to avoid an error.  */
8860 #ifdef __cplusplus
8861 extern "C"
8862 #endif
8863 /* We use char because int might match the return type of a gcc2
8864    builtin and then its argument prototype would still apply.  */
8865 char xdr_short ();
8866 int
8867 main ()
8868 {
8869 xdr_short ();
8870   ;
8871   return 0;
8872 }
8873 _ACEOF
8874 rm -f conftest.$ac_objext conftest$ac_exeext
8875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8876   (eval $ac_link) 2>&5
8877   ac_status=$?
8878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); } &&
8880          { ac_try='test -s conftest$ac_exeext'
8881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882   (eval $ac_try) 2>&5
8883   ac_status=$?
8884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885   (exit $ac_status); }; }; then
8886   ac_cv_lib_nsl_xdr_short=yes
8887 else
8888   echo "$as_me: failed program was:" >&5
8889 cat conftest.$ac_ext >&5
8890 ac_cv_lib_nsl_xdr_short=no
8891 fi
8892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8893 LIBS=$ac_check_lib_save_LIBS
8894 fi
8895 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_xdr_short" >&5
8896 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6
8897 if test $ac_cv_lib_nsl_xdr_short = yes; then
8898   cat >>confdefs.h <<_ACEOF
8899 #define HAVE_LIBNSL 1
8900 _ACEOF
8901
8902   LIBS="-lnsl $LIBS"
8903
8904 fi
8905
8906 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8907 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8908 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8909   echo $ECHO_N "(cached) $ECHO_C" >&6
8910 else
8911   ac_check_lib_save_LIBS=$LIBS
8912 LIBS="-ldl  $LIBS"
8913 cat >conftest.$ac_ext <<_ACEOF
8914 #line $LINENO "configure"
8915 #include "confdefs.h"
8916
8917 /* Override any gcc2 internal prototype to avoid an error.  */
8918 #ifdef __cplusplus
8919 extern "C"
8920 #endif
8921 /* We use char because int might match the return type of a gcc2
8922    builtin and then its argument prototype would still apply.  */
8923 char dlopen ();
8924 int
8925 main ()
8926 {
8927 dlopen ();
8928   ;
8929   return 0;
8930 }
8931 _ACEOF
8932 rm -f conftest.$ac_objext conftest$ac_exeext
8933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8934   (eval $ac_link) 2>&5
8935   ac_status=$?
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); } &&
8938          { ac_try='test -s conftest$ac_exeext'
8939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940   (eval $ac_try) 2>&5
8941   ac_status=$?
8942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); }; }; then
8944   ac_cv_lib_dl_dlopen=yes
8945 else
8946   echo "$as_me: failed program was:" >&5
8947 cat conftest.$ac_ext >&5
8948 ac_cv_lib_dl_dlopen=no
8949 fi
8950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8951 LIBS=$ac_check_lib_save_LIBS
8952 fi
8953 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8954 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8955 if test $ac_cv_lib_dl_dlopen = yes; then
8956   dl_ok="yes"
8957 DL="-ldl"
8958 else
8959   dl_ok="no"
8960 DL=""
8961 fi
8962
8963
8964
8965 echo "$as_me:$LINENO: checking for panel_above in -lpanel" >&5
8966 echo $ECHO_N "checking for panel_above in -lpanel... $ECHO_C" >&6
8967 if test "${ac_cv_lib_panel_panel_above+set}" = set; then
8968   echo $ECHO_N "(cached) $ECHO_C" >&6
8969 else
8970   ac_check_lib_save_LIBS=$LIBS
8971 LIBS="-lpanel -lcurses $LIBS"
8972 cat >conftest.$ac_ext <<_ACEOF
8973 #line $LINENO "configure"
8974 #include "confdefs.h"
8975
8976 /* Override any gcc2 internal prototype to avoid an error.  */
8977 #ifdef __cplusplus
8978 extern "C"
8979 #endif
8980 /* We use char because int might match the return type of a gcc2
8981    builtin and then its argument prototype would still apply.  */
8982 char panel_above ();
8983 int
8984 main ()
8985 {
8986 panel_above ();
8987   ;
8988   return 0;
8989 }
8990 _ACEOF
8991 rm -f conftest.$ac_objext conftest$ac_exeext
8992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8993   (eval $ac_link) 2>&5
8994   ac_status=$?
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); } &&
8997          { ac_try='test -s conftest$ac_exeext'
8998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999   (eval $ac_try) 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); }; }; then
9003   ac_cv_lib_panel_panel_above=yes
9004 else
9005   echo "$as_me: failed program was:" >&5
9006 cat conftest.$ac_ext >&5
9007 ac_cv_lib_panel_panel_above=no
9008 fi
9009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9010 LIBS=$ac_check_lib_save_LIBS
9011 fi
9012 echo "$as_me:$LINENO: result: $ac_cv_lib_panel_panel_above" >&5
9013 echo "${ECHO_T}$ac_cv_lib_panel_panel_above" >&6
9014 if test $ac_cv_lib_panel_panel_above = yes; then
9015   panel_ok="yes"
9016 curses_ok="yes"
9017 CURSES_LIBS="-lpanel -lcurses"
9018
9019 else
9020   panel_ok="no"
9021 echo "$as_me:$LINENO: checking for nl in -lcurses" >&5
9022 echo $ECHO_N "checking for nl in -lcurses... $ECHO_C" >&6
9023 if test "${ac_cv_lib_curses_nl+set}" = set; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   ac_check_lib_save_LIBS=$LIBS
9027 LIBS="-lcurses  $LIBS"
9028 cat >conftest.$ac_ext <<_ACEOF
9029 #line $LINENO "configure"
9030 #include "confdefs.h"
9031
9032 /* Override any gcc2 internal prototype to avoid an error.  */
9033 #ifdef __cplusplus
9034 extern "C"
9035 #endif
9036 /* We use char because int might match the return type of a gcc2
9037    builtin and then its argument prototype would still apply.  */
9038 char nl ();
9039 int
9040 main ()
9041 {
9042 nl ();
9043   ;
9044   return 0;
9045 }
9046 _ACEOF
9047 rm -f conftest.$ac_objext conftest$ac_exeext
9048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9049   (eval $ac_link) 2>&5
9050   ac_status=$?
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); } &&
9053          { ac_try='test -s conftest$ac_exeext'
9054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055   (eval $ac_try) 2>&5
9056   ac_status=$?
9057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   (exit $ac_status); }; }; then
9059   ac_cv_lib_curses_nl=yes
9060 else
9061   echo "$as_me: failed program was:" >&5
9062 cat conftest.$ac_ext >&5
9063 ac_cv_lib_curses_nl=no
9064 fi
9065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9066 LIBS=$ac_check_lib_save_LIBS
9067 fi
9068 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_nl" >&5
9069 echo "${ECHO_T}$ac_cv_lib_curses_nl" >&6
9070 if test $ac_cv_lib_curses_nl = yes; then
9071   curses_ok="yes"
9072 CURSES_LIBS="-lcurses"
9073
9074 else
9075   ncurses_ok="no"
9076 fi
9077
9078
9079 fi
9080
9081
9082
9083
9084
9085
9086 for ac_func in vprintf
9087 do
9088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9089 echo "$as_me:$LINENO: checking for $ac_func" >&5
9090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9091 if eval "test \"\${$as_ac_var+set}\" = set"; then
9092   echo $ECHO_N "(cached) $ECHO_C" >&6
9093 else
9094   cat >conftest.$ac_ext <<_ACEOF
9095 #line $LINENO "configure"
9096 #include "confdefs.h"
9097 /* System header to define __stub macros and hopefully few prototypes,
9098     which can conflict with char $ac_func (); below.  */
9099 #include <assert.h>
9100 /* Override any gcc2 internal prototype to avoid an error.  */
9101 #ifdef __cplusplus
9102 extern "C"
9103 #endif
9104 /* We use char because int might match the return type of a gcc2
9105    builtin and then its argument prototype would still apply.  */
9106 char $ac_func ();
9107 char (*f) ();
9108
9109 int
9110 main ()
9111 {
9112 /* The GNU C library defines this for functions which it implements
9113     to always fail with ENOSYS.  Some functions are actually named
9114     something starting with __ and the normal name is an alias.  */
9115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9116 choke me
9117 #else
9118 f = $ac_func;
9119 #endif
9120
9121   ;
9122   return 0;
9123 }
9124 _ACEOF
9125 rm -f conftest.$ac_objext conftest$ac_exeext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9127   (eval $ac_link) 2>&5
9128   ac_status=$?
9129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130   (exit $ac_status); } &&
9131          { ac_try='test -s conftest$ac_exeext'
9132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133   (eval $ac_try) 2>&5
9134   ac_status=$?
9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); }; }; then
9137   eval "$as_ac_var=yes"
9138 else
9139   echo "$as_me: failed program was:" >&5
9140 cat conftest.$ac_ext >&5
9141 eval "$as_ac_var=no"
9142 fi
9143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9144 fi
9145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9147 if test `eval echo '${'$as_ac_var'}'` = yes; then
9148   cat >>confdefs.h <<_ACEOF
9149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9150 _ACEOF
9151
9152 echo "$as_me:$LINENO: checking for _doprnt" >&5
9153 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
9154 if test "${ac_cv_func__doprnt+set}" = set; then
9155   echo $ECHO_N "(cached) $ECHO_C" >&6
9156 else
9157   cat >conftest.$ac_ext <<_ACEOF
9158 #line $LINENO "configure"
9159 #include "confdefs.h"
9160 /* System header to define __stub macros and hopefully few prototypes,
9161     which can conflict with char _doprnt (); below.  */
9162 #include <assert.h>
9163 /* Override any gcc2 internal prototype to avoid an error.  */
9164 #ifdef __cplusplus
9165 extern "C"
9166 #endif
9167 /* We use char because int might match the return type of a gcc2
9168    builtin and then its argument prototype would still apply.  */
9169 char _doprnt ();
9170 char (*f) ();
9171
9172 int
9173 main ()
9174 {
9175 /* The GNU C library defines this for functions which it implements
9176     to always fail with ENOSYS.  Some functions are actually named
9177     something starting with __ and the normal name is an alias.  */
9178 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9179 choke me
9180 #else
9181 f = _doprnt;
9182 #endif
9183
9184   ;
9185   return 0;
9186 }
9187 _ACEOF
9188 rm -f conftest.$ac_objext 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); } &&
9194          { ac_try='test -s conftest$ac_exeext'
9195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196   (eval $ac_try) 2>&5
9197   ac_status=$?
9198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199   (exit $ac_status); }; }; then
9200   ac_cv_func__doprnt=yes
9201 else
9202   echo "$as_me: failed program was:" >&5
9203 cat conftest.$ac_ext >&5
9204 ac_cv_func__doprnt=no
9205 fi
9206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9207 fi
9208 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9209 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
9210 if test $ac_cv_func__doprnt = yes; then
9211
9212 cat >>confdefs.h <<\_ACEOF
9213 #define HAVE_DOPRNT 1
9214 _ACEOF
9215
9216 fi
9217
9218 fi
9219 done
9220
9221
9222
9223
9224 for ac_func in vsnprintf vasprintf
9225 do
9226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9227 echo "$as_me:$LINENO: checking for $ac_func" >&5
9228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9229 if eval "test \"\${$as_ac_var+set}\" = set"; then
9230   echo $ECHO_N "(cached) $ECHO_C" >&6
9231 else
9232   cat >conftest.$ac_ext <<_ACEOF
9233 #line $LINENO "configure"
9234 #include "confdefs.h"
9235 /* System header to define __stub macros and hopefully few prototypes,
9236     which can conflict with char $ac_func (); below.  */
9237 #include <assert.h>
9238 /* Override any gcc2 internal prototype to avoid an error.  */
9239 #ifdef __cplusplus
9240 extern "C"
9241 #endif
9242 /* We use char because int might match the return type of a gcc2
9243    builtin and then its argument prototype would still apply.  */
9244 char $ac_func ();
9245 char (*f) ();
9246
9247 int
9248 main ()
9249 {
9250 /* The GNU C library defines this for functions which it implements
9251     to always fail with ENOSYS.  Some functions are actually named
9252     something starting with __ and the normal name is an alias.  */
9253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9254 choke me
9255 #else
9256 f = $ac_func;
9257 #endif
9258
9259   ;
9260   return 0;
9261 }
9262 _ACEOF
9263 rm -f conftest.$ac_objext conftest$ac_exeext
9264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9265   (eval $ac_link) 2>&5
9266   ac_status=$?
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); } &&
9269          { ac_try='test -s conftest$ac_exeext'
9270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271   (eval $ac_try) 2>&5
9272   ac_status=$?
9273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274   (exit $ac_status); }; }; then
9275   eval "$as_ac_var=yes"
9276 else
9277   echo "$as_me: failed program was:" >&5
9278 cat conftest.$ac_ext >&5
9279 eval "$as_ac_var=no"
9280 fi
9281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9282 fi
9283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9285 if test `eval echo '${'$as_ac_var'}'` = yes; then
9286   cat >>confdefs.h <<_ACEOF
9287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9288 _ACEOF
9289
9290 fi
9291 done
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301 for ac_func in strlen strcpy strcat strstr strcmp strerror strtok strdup
9302 do
9303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9304 echo "$as_me:$LINENO: checking for $ac_func" >&5
9305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9306 if eval "test \"\${$as_ac_var+set}\" = set"; then
9307   echo $ECHO_N "(cached) $ECHO_C" >&6
9308 else
9309   cat >conftest.$ac_ext <<_ACEOF
9310 #line $LINENO "configure"
9311 #include "confdefs.h"
9312 /* System header to define __stub macros and hopefully few prototypes,
9313     which can conflict with char $ac_func (); below.  */
9314 #include <assert.h>
9315 /* Override any gcc2 internal prototype to avoid an error.  */
9316 #ifdef __cplusplus
9317 extern "C"
9318 #endif
9319 /* We use char because int might match the return type of a gcc2
9320    builtin and then its argument prototype would still apply.  */
9321 char $ac_func ();
9322 char (*f) ();
9323
9324 int
9325 main ()
9326 {
9327 /* The GNU C library defines this for functions which it implements
9328     to always fail with ENOSYS.  Some functions are actually named
9329     something starting with __ and the normal name is an alias.  */
9330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9331 choke me
9332 #else
9333 f = $ac_func;
9334 #endif
9335
9336   ;
9337   return 0;
9338 }
9339 _ACEOF
9340 rm -f conftest.$ac_objext conftest$ac_exeext
9341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9342   (eval $ac_link) 2>&5
9343   ac_status=$?
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   (exit $ac_status); } &&
9346          { ac_try='test -s conftest$ac_exeext'
9347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348   (eval $ac_try) 2>&5
9349   ac_status=$?
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); }; }; then
9352   eval "$as_ac_var=yes"
9353 else
9354   echo "$as_me: failed program was:" >&5
9355 cat conftest.$ac_ext >&5
9356 eval "$as_ac_var=no"
9357 fi
9358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9359 fi
9360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9362 if test `eval echo '${'$as_ac_var'}'` = yes; then
9363   cat >>confdefs.h <<_ACEOF
9364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9365 _ACEOF
9366
9367 fi
9368 done
9369
9370
9371
9372 for ac_func in strchr memcpy
9373 do
9374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9375 echo "$as_me:$LINENO: checking for $ac_func" >&5
9376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9377 if eval "test \"\${$as_ac_var+set}\" = set"; then
9378   echo $ECHO_N "(cached) $ECHO_C" >&6
9379 else
9380   cat >conftest.$ac_ext <<_ACEOF
9381 #line $LINENO "configure"
9382 #include "confdefs.h"
9383 /* System header to define __stub macros and hopefully few prototypes,
9384     which can conflict with char $ac_func (); below.  */
9385 #include <assert.h>
9386 /* Override any gcc2 internal prototype to avoid an error.  */
9387 #ifdef __cplusplus
9388 extern "C"
9389 #endif
9390 /* We use char because int might match the return type of a gcc2
9391    builtin and then its argument prototype would still apply.  */
9392 char $ac_func ();
9393 char (*f) ();
9394
9395 int
9396 main ()
9397 {
9398 /* The GNU C library defines this for functions which it implements
9399     to always fail with ENOSYS.  Some functions are actually named
9400     something starting with __ and the normal name is an alias.  */
9401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9402 choke me
9403 #else
9404 f = $ac_func;
9405 #endif
9406
9407   ;
9408   return 0;
9409 }
9410 _ACEOF
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9413   (eval $ac_link) 2>&5
9414   ac_status=$?
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); } &&
9417          { ac_try='test -s conftest$ac_exeext'
9418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419   (eval $ac_try) 2>&5
9420   ac_status=$?
9421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); }; }; then
9423   eval "$as_ac_var=yes"
9424 else
9425   echo "$as_me: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9427 eval "$as_ac_var=no"
9428 fi
9429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9430 fi
9431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9433 if test `eval echo '${'$as_ac_var'}'` = yes; then
9434   cat >>confdefs.h <<_ACEOF
9435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9436 _ACEOF
9437
9438 fi
9439 done
9440
9441
9442 for ac_func in fgets
9443 do
9444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9445 echo "$as_me:$LINENO: checking for $ac_func" >&5
9446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9447 if eval "test \"\${$as_ac_var+set}\" = set"; then
9448   echo $ECHO_N "(cached) $ECHO_C" >&6
9449 else
9450   cat >conftest.$ac_ext <<_ACEOF
9451 #line $LINENO "configure"
9452 #include "confdefs.h"
9453 /* System header to define __stub macros and hopefully few prototypes,
9454     which can conflict with char $ac_func (); below.  */
9455 #include <assert.h>
9456 /* Override any gcc2 internal prototype to avoid an error.  */
9457 #ifdef __cplusplus
9458 extern "C"
9459 #endif
9460 /* We use char because int might match the return type of a gcc2
9461    builtin and then its argument prototype would still apply.  */
9462 char $ac_func ();
9463 char (*f) ();
9464
9465 int
9466 main ()
9467 {
9468 /* The GNU C library defines this for functions which it implements
9469     to always fail with ENOSYS.  Some functions are actually named
9470     something starting with __ and the normal name is an alias.  */
9471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9472 choke me
9473 #else
9474 f = $ac_func;
9475 #endif
9476
9477   ;
9478   return 0;
9479 }
9480 _ACEOF
9481 rm -f conftest.$ac_objext conftest$ac_exeext
9482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9483   (eval $ac_link) 2>&5
9484   ac_status=$?
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); } &&
9487          { ac_try='test -s conftest$ac_exeext'
9488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489   (eval $ac_try) 2>&5
9490   ac_status=$?
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); }; }; then
9493   eval "$as_ac_var=yes"
9494 else
9495   echo "$as_me: failed program was:" >&5
9496 cat conftest.$ac_ext >&5
9497 eval "$as_ac_var=no"
9498 fi
9499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9500 fi
9501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9503 if test `eval echo '${'$as_ac_var'}'` = yes; then
9504   cat >>confdefs.h <<_ACEOF
9505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9506 _ACEOF
9507
9508 fi
9509 done
9510
9511
9512 for ac_func in yylex
9513 do
9514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9515 echo "$as_me:$LINENO: checking for $ac_func" >&5
9516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9517 if eval "test \"\${$as_ac_var+set}\" = set"; then
9518   echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520   cat >conftest.$ac_ext <<_ACEOF
9521 #line $LINENO "configure"
9522 #include "confdefs.h"
9523 /* System header to define __stub macros and hopefully few prototypes,
9524     which can conflict with char $ac_func (); below.  */
9525 #include <assert.h>
9526 /* Override any gcc2 internal prototype to avoid an error.  */
9527 #ifdef __cplusplus
9528 extern "C"
9529 #endif
9530 /* We use char because int might match the return type of a gcc2
9531    builtin and then its argument prototype would still apply.  */
9532 char $ac_func ();
9533 char (*f) ();
9534
9535 int
9536 main ()
9537 {
9538 /* The GNU C library defines this for functions which it implements
9539     to always fail with ENOSYS.  Some functions are actually named
9540     something starting with __ and the normal name is an alias.  */
9541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9542 choke me
9543 #else
9544 f = $ac_func;
9545 #endif
9546
9547   ;
9548   return 0;
9549 }
9550 _ACEOF
9551 rm -f conftest.$ac_objext conftest$ac_exeext
9552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9553   (eval $ac_link) 2>&5
9554   ac_status=$?
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); } &&
9557          { ac_try='test -s conftest$ac_exeext'
9558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559   (eval $ac_try) 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); }; }; then
9563   eval "$as_ac_var=yes"
9564 else
9565   echo "$as_me: failed program was:" >&5
9566 cat conftest.$ac_ext >&5
9567 eval "$as_ac_var=no"
9568 fi
9569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9570 fi
9571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9573 if test `eval echo '${'$as_ac_var'}'` = yes; then
9574   cat >>confdefs.h <<_ACEOF
9575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9576 _ACEOF
9577
9578 fi
9579 done
9580
9581
9582 echo "$as_me:$LINENO: checking whether scanf knows %a" >&5
9583 echo $ECHO_N "checking whether scanf knows %a... $ECHO_C" >&6
9584 if test "${ucsim_cv_scanf_a+set}" = set; then
9585   echo $ECHO_N "(cached) $ECHO_C" >&6
9586 else
9587   echo "a b" >conftest.data
9588 if test "$cross_compiling" = yes; then
9589   ucsim_cv_scanf_a="unknown"
9590 else
9591   cat >conftest.$ac_ext <<_ACEOF
9592 #line $LINENO "configure"
9593 #include "confdefs.h"
9594
9595 #include <stdio.h>
9596 void main(void)
9597 {
9598   FILE *f;
9599   char *a;
9600   int  i;
9601   if ((f= fopen("conftest.data", "r")) == NULL)
9602     exit(1);
9603   i= fscanf(f, " %a[a-z] ", &a);
9604   fclose(f);
9605   if (i == 0)
9606     exit(2);
9607   if (i == 1)
9608     exit(0);
9609   exit(3);
9610 }
9611 _ACEOF
9612 rm -f conftest$ac_exeext
9613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9614   (eval $ac_link) 2>&5
9615   ac_status=$?
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619   (eval $ac_try) 2>&5
9620   ac_status=$?
9621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); }; }; then
9623   ucsim_cv_scanf_a="yes"
9624 else
9625   echo "$as_me: program exited with status $ac_status" >&5
9626 echo "$as_me: failed program was:" >&5
9627 cat conftest.$ac_ext >&5
9628 ( exit $ac_status )
9629 ucsim_cv_scanf_a="no"
9630 fi
9631 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9632 fi
9633
9634 fi
9635 echo "$as_me:$LINENO: result: $ucsim_cv_scanf_a" >&5
9636 echo "${ECHO_T}$ucsim_cv_scanf_a" >&6
9637 if test "$ucsim_cv_scanf_a" = "yes"; then
9638   cat >>confdefs.h <<\_ACEOF
9639 #define SCANF_A 1
9640 _ACEOF
9641
9642 fi
9643
9644 echo "$as_me:$LINENO: checking whether getcwd is GNUish" >&5
9645 echo $ECHO_N "checking whether getcwd is GNUish... $ECHO_C" >&6
9646 if test "${ucsim_cv_getcwd+set}" = set; then
9647   echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649   if test "$cross_compiling" = yes; then
9650   ucsim_cv_getcwd="unknown"
9651 else
9652   cat >conftest.$ac_ext <<_ACEOF
9653 #line $LINENO "configure"
9654 #include "confdefs.h"
9655
9656 #include <unistd.h>
9657 void main(void)
9658 {
9659   if ((getcwd(NULL, 0)) == NULL)
9660     exit(1);
9661   exit(0);
9662 }
9663 _ACEOF
9664 rm -f conftest$ac_exeext
9665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9666   (eval $ac_link) 2>&5
9667   ac_status=$?
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671   (eval $ac_try) 2>&5
9672   ac_status=$?
9673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); }; }; then
9675   ucsim_cv_getcwd="yes"
9676 else
9677   echo "$as_me: program exited with status $ac_status" >&5
9678 echo "$as_me: failed program was:" >&5
9679 cat conftest.$ac_ext >&5
9680 ( exit $ac_status )
9681 ucsim_cv_getcwd="no"
9682 fi
9683 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9684 fi
9685
9686 fi
9687 echo "$as_me:$LINENO: result: $ucsim_cv_getcwd" >&5
9688 echo "${ECHO_T}$ucsim_cv_getcwd" >&6
9689 if test "$ucsim_cv_getcwd" = "yes"; then
9690   cat >>confdefs.h <<\_ACEOF
9691 #define GNU_GETCWD 1
9692 _ACEOF
9693
9694 fi
9695
9696
9697 #'
9698
9699 echo "$as_me:$LINENO: checking for type of length pointer parameter of accept" >&5
9700 echo $ECHO_N "checking for type of length pointer parameter of accept... $ECHO_C" >&6
9701 if test "${ucsim_cv_accept_length_type+set}" = set; then
9702   echo $ECHO_N "(cached) $ECHO_C" >&6
9703 else
9704   ac_save_CPPFLAGS="$CPPFLAGS"
9705     ucsim_cv_accept_length_type=no
9706     for ac_val in int size_t socklen_t; do
9707       CPPFLAGS="$ac_save_CPPFLAGS -DACCEPT_SOCKLEN_T=$ac_val"
9708       cat >conftest.$ac_ext <<_ACEOF
9709 #line $LINENO "configure"
9710 #include "confdefs.h"
9711 #include <sys/types.h>
9712 #include <sys/socket.h>
9713 int
9714 main ()
9715 {
9716 struct sockaddr a; $ac_val len; accept (0, &a, &len);
9717   ;
9718   return 0;
9719 }
9720 _ACEOF
9721 rm -f conftest.$ac_objext
9722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9723   (eval $ac_compile) 2>&5
9724   ac_status=$?
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); } &&
9727          { ac_try='test -s conftest.$ac_objext'
9728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729   (eval $ac_try) 2>&5
9730   ac_status=$?
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); }; }; then
9733   ucsim_cv_accept_length_type=$ac_val; break
9734 else
9735   echo "$as_me: failed program was:" >&5
9736 cat conftest.$ac_ext >&5
9737 fi
9738 rm -f conftest.$ac_objext conftest.$ac_ext
9739     done
9740     CPPFLAGS="$ac_save_CPPFLAGS"
9741 fi
9742 echo "$as_me:$LINENO: result: $ucsim_cv_accept_length_type" >&5
9743 echo "${ECHO_T}$ucsim_cv_accept_length_type" >&6
9744   if test "$ucsim_cv_accept_length_type" != no; then
9745
9746 cat >>confdefs.h <<_ACEOF
9747 #define ACCEPT_SOCKLEN_T $ucsim_cv_accept_length_type
9748 _ACEOF
9749
9750   fi
9751
9752
9753
9754 # Macro definitions
9755 ###################
9756
9757 # DD_COPT macro checks if the compiler specified as the 1st parameter
9758 # supports option specified as the 2nd parameter
9759 # For example: DD_COPT(CXX, fPIC)
9760
9761
9762
9763
9764 # Checking characteristics of compilers and other programs
9765 # --------------------------------------------------------
9766
9767 # Cross compiling overrides
9768 # FIXME
9769 if test "$CC" = "i586-mingw32msvc-gcc"; then
9770   ac_cv_c_bigendian=no
9771   ac_cv_sizeof_char=1
9772   ac_cv_sizeof_short=2
9773   ac_cv_sizeof_int=4
9774   ac_cv_sizeof_long=4
9775   ac_cv_sizeof_long_long=4
9776 fi
9777
9778 if test "$cross_compiling" = "no"
9779 then
9780     echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9781 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9782 if test "${ac_cv_c_bigendian+set}" = set; then
9783   echo $ECHO_N "(cached) $ECHO_C" >&6
9784 else
9785   # See if sys/param.h defines the BYTE_ORDER macro.
9786 cat >conftest.$ac_ext <<_ACEOF
9787 #line $LINENO "configure"
9788 #include "confdefs.h"
9789 #include <sys/types.h>
9790 #include <sys/param.h>
9791
9792 int
9793 main ()
9794 {
9795 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9796  bogus endian macros
9797 #endif
9798
9799   ;
9800   return 0;
9801 }
9802 _ACEOF
9803 rm -f conftest.$ac_objext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9805   (eval $ac_compile) 2>&5
9806   ac_status=$?
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); } &&
9809          { ac_try='test -s conftest.$ac_objext'
9810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811   (eval $ac_try) 2>&5
9812   ac_status=$?
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); }; }; then
9815   # It does; now see whether it defined to BIG_ENDIAN or not.
9816 cat >conftest.$ac_ext <<_ACEOF
9817 #line $LINENO "configure"
9818 #include "confdefs.h"
9819 #include <sys/types.h>
9820 #include <sys/param.h>
9821
9822 int
9823 main ()
9824 {
9825 #if BYTE_ORDER != BIG_ENDIAN
9826  not big endian
9827 #endif
9828
9829   ;
9830   return 0;
9831 }
9832 _ACEOF
9833 rm -f conftest.$ac_objext
9834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9835   (eval $ac_compile) 2>&5
9836   ac_status=$?
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); } &&
9839          { ac_try='test -s conftest.$ac_objext'
9840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841   (eval $ac_try) 2>&5
9842   ac_status=$?
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); }; }; then
9845   ac_cv_c_bigendian=yes
9846 else
9847   echo "$as_me: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9849 ac_cv_c_bigendian=no
9850 fi
9851 rm -f conftest.$ac_objext conftest.$ac_ext
9852 else
9853   echo "$as_me: failed program was:" >&5
9854 cat conftest.$ac_ext >&5
9855 # It does not; compile a test program.
9856 if test "$cross_compiling" = yes; then
9857   # try to guess the endianness by grepping values into an object file
9858   ac_cv_c_bigendian=unknown
9859   cat >conftest.$ac_ext <<_ACEOF
9860 #line $LINENO "configure"
9861 #include "confdefs.h"
9862 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9863 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9864 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9865 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9866 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9867 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9868 int
9869 main ()
9870 {
9871  _ascii (); _ebcdic ();
9872   ;
9873   return 0;
9874 }
9875 _ACEOF
9876 rm -f conftest.$ac_objext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9878   (eval $ac_compile) 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); } &&
9882          { ac_try='test -s conftest.$ac_objext'
9883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884   (eval $ac_try) 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); }; }; then
9888   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9889   ac_cv_c_bigendian=yes
9890 fi
9891 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9892   if test "$ac_cv_c_bigendian" = unknown; then
9893     ac_cv_c_bigendian=no
9894   else
9895     # finding both strings is unlikely to happen, but who knows?
9896     ac_cv_c_bigendian=unknown
9897   fi
9898 fi
9899 else
9900   echo "$as_me: failed program was:" >&5
9901 cat conftest.$ac_ext >&5
9902 fi
9903 rm -f conftest.$ac_objext conftest.$ac_ext
9904 else
9905   cat >conftest.$ac_ext <<_ACEOF
9906 #line $LINENO "configure"
9907 #include "confdefs.h"
9908 int
9909 main ()
9910 {
9911   /* Are we little or big endian?  From Harbison&Steele.  */
9912   union
9913   {
9914     long l;
9915     char c[sizeof (long)];
9916   } u;
9917   u.l = 1;
9918   exit (u.c[sizeof (long) - 1] == 1);
9919 }
9920 _ACEOF
9921 rm -f conftest$ac_exeext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923   (eval $ac_link) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928   (eval $ac_try) 2>&5
9929   ac_status=$?
9930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931   (exit $ac_status); }; }; then
9932   ac_cv_c_bigendian=no
9933 else
9934   echo "$as_me: program exited with status $ac_status" >&5
9935 echo "$as_me: failed program was:" >&5
9936 cat conftest.$ac_ext >&5
9937 ( exit $ac_status )
9938 ac_cv_c_bigendian=yes
9939 fi
9940 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9941 fi
9942 fi
9943 rm -f conftest.$ac_objext conftest.$ac_ext
9944 fi
9945 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9946 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9947 case $ac_cv_c_bigendian in
9948   yes)
9949
9950 cat >>confdefs.h <<\_ACEOF
9951 #define WORDS_BIGENDIAN 1
9952 _ACEOF
9953  ;;
9954   no)
9955      ;;
9956   *)
9957     { { echo "$as_me:$LINENO: error: unknown endianness
9958 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9959 echo "$as_me: error: unknown endianness
9960 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9961    { (exit 1); exit 1; }; } ;;
9962 esac
9963
9964 else
9965 #echo "CROSS ENDIAN"
9966     if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
9967         ac_cv_c_bigendian=no
9968     else
9969         : # FIXME
9970     fi
9971 #echo "CROSS ENDIAN DONE"
9972 fi
9973
9974 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
9975 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
9976 if test "${ucsim_cv_MM+set}" = set; then
9977   echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979   echo "#include <stdio.h>" >_test_.c
9980 echo "" >>_test_.c
9981 $CXXCPP -v -MM _test_.c 1>&5 2>&5
9982 if test "$?" = "0"; then
9983   ucsim_cv_MM="-MM"
9984 else
9985   ucsim_cv_MM="-M"
9986 fi
9987 rm -f _test_.*
9988 fi
9989 echo "$as_me:$LINENO: result: $ucsim_cv_MM" >&5
9990 echo "${ECHO_T}$ucsim_cv_MM" >&6
9991 M_OR_MM=$ucsim_cv_MM
9992
9993
9994 # This is the first time when CFLAGS are set/modified!!
9995
9996
9997 echo "$as_me:$LINENO: checking whether $CXX accepts -ggdb" >&5
9998 echo $ECHO_N "checking whether $CXX accepts -ggdb... $ECHO_C" >&6
9999 if test "${ucsim_cv_CXXggdb+set}" = set; then
10000   echo $ECHO_N "(cached) $ECHO_C" >&6
10001 else
10002   cat >_test_.c <<EOF
10003 #include <stdio.h>
10004 void main(void) {}
10005 EOF
10006 $CXX -v -ggdb -c _test_.c 1>&5 2>&5
10007 if test "$?" = "0"; then
10008   ucsim_cv_CXXggdb="yes"
10009 else
10010   ucsim_cv_CXXggdb="no"
10011 fi
10012 rm -f _test_.* a.out
10013 fi
10014 echo "$as_me:$LINENO: result: $ucsim_cv_CXXggdb" >&5
10015 echo "${ECHO_T}$ucsim_cv_CXXggdb" >&6
10016
10017 if test "$ucsim_cv_CXXggdb" = "yes"; then
10018     if test "$CXXFLAGS"x = x ;then
10019         CXXFLAGS="-ggdb"
10020     else
10021         CXXFLAGS="$CXXFLAGS -ggdb"
10022     fi
10023 fi
10024
10025
10026 echo "$as_me:$LINENO: checking whether $CXX accepts -pipe" >&5
10027 echo $ECHO_N "checking whether $CXX accepts -pipe... $ECHO_C" >&6
10028 if test "${ucsim_cv_CXXpipe+set}" = set; then
10029   echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031   cat >_test_.c <<EOF
10032 #include <stdio.h>
10033 void main(void) {}
10034 EOF
10035 $CXX -v -pipe -c _test_.c 1>&5 2>&5
10036 if test "$?" = "0"; then
10037   ucsim_cv_CXXpipe="yes"
10038 else
10039   ucsim_cv_CXXpipe="no"
10040 fi
10041 rm -f _test_.* a.out
10042 fi
10043 echo "$as_me:$LINENO: result: $ucsim_cv_CXXpipe" >&5
10044 echo "${ECHO_T}$ucsim_cv_CXXpipe" >&6
10045
10046 if test "$ucsim_cv_CXXpipe" = "yes"; then
10047   CXXFLAGS="$CXXFLAGS -pipe"
10048 fi
10049
10050 PICOPT=""
10051 SHAREDLIB="no"
10052
10053 echo "$as_me:$LINENO: checking whether $CXX accepts -fPIC" >&5
10054 echo $ECHO_N "checking whether $CXX accepts -fPIC... $ECHO_C" >&6
10055 if test "${ucsim_cv_CXXfPIC+set}" = set; then
10056   echo $ECHO_N "(cached) $ECHO_C" >&6
10057 else
10058   cat >_test_.c <<EOF
10059 #include <stdio.h>
10060 void main(void) {}
10061 EOF
10062 $CXX -v -fPIC -c _test_.c 1>&5 2>&5
10063 if test "$?" = "0"; then
10064   ucsim_cv_CXXfPIC="yes"
10065 else
10066   ucsim_cv_CXXfPIC="no"
10067 fi
10068 rm -f _test_.* a.out
10069 fi
10070 echo "$as_me:$LINENO: result: $ucsim_cv_CXXfPIC" >&5
10071 echo "${ECHO_T}$ucsim_cv_CXXfPIC" >&6
10072
10073 if test "$ucsim_cv_CXXfPIC" = "yes"; then
10074     PICOPT="-fPIC"
10075 else
10076
10077 echo "$as_me:$LINENO: checking whether $CXX accepts -fpic" >&5
10078 echo $ECHO_N "checking whether $CXX accepts -fpic... $ECHO_C" >&6
10079 if test "${ucsim_cv_CXXfpic+set}" = set; then
10080   echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082   cat >_test_.c <<EOF
10083 #include <stdio.h>
10084 void main(void) {}
10085 EOF
10086 $CXX -v -fpic -c _test_.c 1>&5 2>&5
10087 if test "$?" = "0"; then
10088   ucsim_cv_CXXfpic="yes"
10089 else
10090   ucsim_cv_CXXfpic="no"
10091 fi
10092 rm -f _test_.* a.out
10093 fi
10094 echo "$as_me:$LINENO: result: $ucsim_cv_CXXfpic" >&5
10095 echo "${ECHO_T}$ucsim_cv_CXXfpic" >&6
10096
10097     if test "$ucsim_cv_CXXfpic" = "yes"; then
10098         PICOPT="-fpic"
10099     fi
10100 fi
10101 if test "$PICOPT"x != "x"; then
10102     SHAREDLIB="yes"
10103 fi
10104 # If this is Cygwin neither use Position Independant Code
10105 # nor build .so
10106 # Quick + dirty by Bernhard
10107 # FIXME
10108 if $CXX -v 2>&1 | grep -i cygwin 1>&5 2>&5; then
10109     PICOPT=""
10110     SHAREDLIB="no"
10111 fi
10112
10113
10114
10115 dlso_ok="no"
10116 if test $SHAREDLIB = "yes" -a $dl_ok = "yes" -a $enable_dlso = "yes"; then
10117     dlso_ok="yes"
10118 fi
10119
10120
10121 # Checks for typedefs, structures, and compiler characteristics.
10122 # ===========================================================================
10123
10124 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10125 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10126 if test "${ac_cv_type_signal+set}" = set; then
10127   echo $ECHO_N "(cached) $ECHO_C" >&6
10128 else
10129   cat >conftest.$ac_ext <<_ACEOF
10130 #line $LINENO "configure"
10131 #include "confdefs.h"
10132 #include <sys/types.h>
10133 #include <signal.h>
10134 #ifdef signal
10135 # undef signal
10136 #endif
10137 #ifdef __cplusplus
10138 extern "C" void (*signal (int, void (*)(int)))(int);
10139 #else
10140 void (*signal ()) ();
10141 #endif
10142
10143 int
10144 main ()
10145 {
10146 int i;
10147   ;
10148   return 0;
10149 }
10150 _ACEOF
10151 rm -f conftest.$ac_objext
10152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10153   (eval $ac_compile) 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); } &&
10157          { ac_try='test -s conftest.$ac_objext'
10158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159   (eval $ac_try) 2>&5
10160   ac_status=$?
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); }; }; then
10163   ac_cv_type_signal=void
10164 else
10165   echo "$as_me: failed program was:" >&5
10166 cat conftest.$ac_ext >&5
10167 ac_cv_type_signal=int
10168 fi
10169 rm -f conftest.$ac_objext conftest.$ac_ext
10170 fi
10171 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10172 echo "${ECHO_T}$ac_cv_type_signal" >&6
10173
10174 cat >>confdefs.h <<_ACEOF
10175 #define RETSIGTYPE $ac_cv_type_signal
10176 _ACEOF
10177
10178
10179 if test "$cross_compiling" = "no"; then
10180 echo "$as_me:$LINENO: checking for char" >&5
10181 echo $ECHO_N "checking for char... $ECHO_C" >&6
10182 if test "${ac_cv_type_char+set}" = set; then
10183   echo $ECHO_N "(cached) $ECHO_C" >&6
10184 else
10185   cat >conftest.$ac_ext <<_ACEOF
10186 #line $LINENO "configure"
10187 #include "confdefs.h"
10188 $ac_includes_default
10189 int
10190 main ()
10191 {
10192 if ((char *) 0)
10193   return 0;
10194 if (sizeof (char))
10195   return 0;
10196   ;
10197   return 0;
10198 }
10199 _ACEOF
10200 rm -f conftest.$ac_objext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10202   (eval $ac_compile) 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); } &&
10206          { ac_try='test -s conftest.$ac_objext'
10207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208   (eval $ac_try) 2>&5
10209   ac_status=$?
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); }; }; then
10212   ac_cv_type_char=yes
10213 else
10214   echo "$as_me: failed program was:" >&5
10215 cat conftest.$ac_ext >&5
10216 ac_cv_type_char=no
10217 fi
10218 rm -f conftest.$ac_objext conftest.$ac_ext
10219 fi
10220 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
10221 echo "${ECHO_T}$ac_cv_type_char" >&6
10222
10223 echo "$as_me:$LINENO: checking size of char" >&5
10224 echo $ECHO_N "checking size of char... $ECHO_C" >&6
10225 if test "${ac_cv_sizeof_char+set}" = set; then
10226   echo $ECHO_N "(cached) $ECHO_C" >&6
10227 else
10228   if test "$ac_cv_type_char" = yes; then
10229   # The cast to unsigned long works around a bug in the HP C Compiler
10230   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10231   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10232   # This bug is HP SR number 8606223364.
10233   if test "$cross_compiling" = yes; then
10234   # Depending upon the size, compute the lo and hi bounds.
10235 cat >conftest.$ac_ext <<_ACEOF
10236 #line $LINENO "configure"
10237 #include "confdefs.h"
10238 $ac_includes_default
10239 int
10240 main ()
10241 {
10242 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
10243 test_array [0] = 0
10244
10245   ;
10246   return 0;
10247 }
10248 _ACEOF
10249 rm -f conftest.$ac_objext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251   (eval $ac_compile) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); } &&
10255          { ac_try='test -s conftest.$ac_objext'
10256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257   (eval $ac_try) 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); }; }; then
10261   ac_lo=0 ac_mid=0
10262   while :; do
10263     cat >conftest.$ac_ext <<_ACEOF
10264 #line $LINENO "configure"
10265 #include "confdefs.h"
10266 $ac_includes_default
10267 int
10268 main ()
10269 {
10270 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
10271 test_array [0] = 0
10272
10273   ;
10274   return 0;
10275 }
10276 _ACEOF
10277 rm -f conftest.$ac_objext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10279   (eval $ac_compile) 2>&5
10280   ac_status=$?
10281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282   (exit $ac_status); } &&
10283          { ac_try='test -s conftest.$ac_objext'
10284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285   (eval $ac_try) 2>&5
10286   ac_status=$?
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); }; }; then
10289   ac_hi=$ac_mid; break
10290 else
10291   echo "$as_me: failed program was:" >&5
10292 cat conftest.$ac_ext >&5
10293 ac_lo=`expr $ac_mid + 1`
10294                     if test $ac_lo -le $ac_mid; then
10295                       ac_lo= ac_hi=
10296                       break
10297                     fi
10298                     ac_mid=`expr 2 '*' $ac_mid + 1`
10299 fi
10300 rm -f conftest.$ac_objext conftest.$ac_ext
10301   done
10302 else
10303   echo "$as_me: failed program was:" >&5
10304 cat conftest.$ac_ext >&5
10305 cat >conftest.$ac_ext <<_ACEOF
10306 #line $LINENO "configure"
10307 #include "confdefs.h"
10308 $ac_includes_default
10309 int
10310 main ()
10311 {
10312 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
10313 test_array [0] = 0
10314
10315   ;
10316   return 0;
10317 }
10318 _ACEOF
10319 rm -f conftest.$ac_objext
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); } &&
10325          { ac_try='test -s conftest.$ac_objext'
10326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327   (eval $ac_try) 2>&5
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); }; }; then
10331   ac_hi=-1 ac_mid=-1
10332   while :; do
10333     cat >conftest.$ac_ext <<_ACEOF
10334 #line $LINENO "configure"
10335 #include "confdefs.h"
10336 $ac_includes_default
10337 int
10338 main ()
10339 {
10340 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
10341 test_array [0] = 0
10342
10343   ;
10344   return 0;
10345 }
10346 _ACEOF
10347 rm -f conftest.$ac_objext
10348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10349   (eval $ac_compile) 2>&5
10350   ac_status=$?
10351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352   (exit $ac_status); } &&
10353          { ac_try='test -s conftest.$ac_objext'
10354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355   (eval $ac_try) 2>&5
10356   ac_status=$?
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); }; }; then
10359   ac_lo=$ac_mid; break
10360 else
10361   echo "$as_me: failed program was:" >&5
10362 cat conftest.$ac_ext >&5
10363 ac_hi=`expr '(' $ac_mid ')' - 1`
10364                        if test $ac_mid -le $ac_hi; then
10365                          ac_lo= ac_hi=
10366                          break
10367                        fi
10368                        ac_mid=`expr 2 '*' $ac_mid`
10369 fi
10370 rm -f conftest.$ac_objext conftest.$ac_ext
10371   done
10372 else
10373   echo "$as_me: failed program was:" >&5
10374 cat conftest.$ac_ext >&5
10375 ac_lo= ac_hi=
10376 fi
10377 rm -f conftest.$ac_objext conftest.$ac_ext
10378 fi
10379 rm -f conftest.$ac_objext conftest.$ac_ext
10380 # Binary search between lo and hi bounds.
10381 while test "x$ac_lo" != "x$ac_hi"; do
10382   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10383   cat >conftest.$ac_ext <<_ACEOF
10384 #line $LINENO "configure"
10385 #include "confdefs.h"
10386 $ac_includes_default
10387 int
10388 main ()
10389 {
10390 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
10391 test_array [0] = 0
10392
10393   ;
10394   return 0;
10395 }
10396 _ACEOF
10397 rm -f conftest.$ac_objext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10399   (eval $ac_compile) 2>&5
10400   ac_status=$?
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); } &&
10403          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10409   ac_hi=$ac_mid
10410 else
10411   echo "$as_me: failed program was:" >&5
10412 cat conftest.$ac_ext >&5
10413 ac_lo=`expr '(' $ac_mid ')' + 1`
10414 fi
10415 rm -f conftest.$ac_objext conftest.$ac_ext
10416 done
10417 case $ac_lo in
10418 ?*) ac_cv_sizeof_char=$ac_lo;;
10419 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
10420 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
10421    { (exit 1); exit 1; }; } ;;
10422 esac
10423 else
10424   if test "$cross_compiling" = yes; then
10425   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10426 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10427    { (exit 1); exit 1; }; }
10428 else
10429   cat >conftest.$ac_ext <<_ACEOF
10430 #line $LINENO "configure"
10431 #include "confdefs.h"
10432 $ac_includes_default
10433 long longval () { return (long) (sizeof (char)); }
10434 unsigned long ulongval () { return (long) (sizeof (char)); }
10435 #include <stdio.h>
10436 #include <stdlib.h>
10437 int
10438 main ()
10439 {
10440
10441   FILE *f = fopen ("conftest.val", "w");
10442   if (! f)
10443     exit (1);
10444   if (((long) (sizeof (char))) < 0)
10445     {
10446       long i = longval ();
10447       if (i != ((long) (sizeof (char))))
10448         exit (1);
10449       fprintf (f, "%ld\n", i);
10450     }
10451   else
10452     {
10453       unsigned long i = ulongval ();
10454       if (i != ((long) (sizeof (char))))
10455         exit (1);
10456       fprintf (f, "%lu\n", i);
10457     }
10458   exit (ferror (f) || fclose (f) != 0);
10459
10460   ;
10461   return 0;
10462 }
10463 _ACEOF
10464 rm -f conftest$ac_exeext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466   (eval $ac_link) 2>&5
10467   ac_status=$?
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471   (eval $ac_try) 2>&5
10472   ac_status=$?
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); }; }; then
10475   ac_cv_sizeof_char=`cat conftest.val`
10476 else
10477   echo "$as_me: program exited with status $ac_status" >&5
10478 echo "$as_me: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10480 ( exit $ac_status )
10481 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
10482 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
10483    { (exit 1); exit 1; }; }
10484 fi
10485 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10486 fi
10487 fi
10488 rm -f conftest.val
10489 else
10490   ac_cv_sizeof_char=0
10491 fi
10492 fi
10493 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
10494 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
10495 cat >>confdefs.h <<_ACEOF
10496 #define SIZEOF_CHAR $ac_cv_sizeof_char
10497 _ACEOF
10498
10499
10500 echo "$as_me:$LINENO: checking for short" >&5
10501 echo $ECHO_N "checking for short... $ECHO_C" >&6
10502 if test "${ac_cv_type_short+set}" = set; then
10503   echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505   cat >conftest.$ac_ext <<_ACEOF
10506 #line $LINENO "configure"
10507 #include "confdefs.h"
10508 $ac_includes_default
10509 int
10510 main ()
10511 {
10512 if ((short *) 0)
10513   return 0;
10514 if (sizeof (short))
10515   return 0;
10516   ;
10517   return 0;
10518 }
10519 _ACEOF
10520 rm -f conftest.$ac_objext
10521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10522   (eval $ac_compile) 2>&5
10523   ac_status=$?
10524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525   (exit $ac_status); } &&
10526          { ac_try='test -s conftest.$ac_objext'
10527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528   (eval $ac_try) 2>&5
10529   ac_status=$?
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); }; }; then
10532   ac_cv_type_short=yes
10533 else
10534   echo "$as_me: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10536 ac_cv_type_short=no
10537 fi
10538 rm -f conftest.$ac_objext conftest.$ac_ext
10539 fi
10540 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
10541 echo "${ECHO_T}$ac_cv_type_short" >&6
10542
10543 echo "$as_me:$LINENO: checking size of short" >&5
10544 echo $ECHO_N "checking size of short... $ECHO_C" >&6
10545 if test "${ac_cv_sizeof_short+set}" = set; then
10546   echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548   if test "$ac_cv_type_short" = yes; then
10549   # The cast to unsigned long works around a bug in the HP C Compiler
10550   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10551   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10552   # This bug is HP SR number 8606223364.
10553   if test "$cross_compiling" = yes; then
10554   # Depending upon the size, compute the lo and hi bounds.
10555 cat >conftest.$ac_ext <<_ACEOF
10556 #line $LINENO "configure"
10557 #include "confdefs.h"
10558 $ac_includes_default
10559 int
10560 main ()
10561 {
10562 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
10563 test_array [0] = 0
10564
10565   ;
10566   return 0;
10567 }
10568 _ACEOF
10569 rm -f conftest.$ac_objext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10571   (eval $ac_compile) 2>&5
10572   ac_status=$?
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); } &&
10575          { ac_try='test -s conftest.$ac_objext'
10576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577   (eval $ac_try) 2>&5
10578   ac_status=$?
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); }; }; then
10581   ac_lo=0 ac_mid=0
10582   while :; do
10583     cat >conftest.$ac_ext <<_ACEOF
10584 #line $LINENO "configure"
10585 #include "confdefs.h"
10586 $ac_includes_default
10587 int
10588 main ()
10589 {
10590 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
10591 test_array [0] = 0
10592
10593   ;
10594   return 0;
10595 }
10596 _ACEOF
10597 rm -f conftest.$ac_objext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10599   (eval $ac_compile) 2>&5
10600   ac_status=$?
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); } &&
10603          { ac_try='test -s conftest.$ac_objext'
10604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605   (eval $ac_try) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; }; then
10609   ac_hi=$ac_mid; break
10610 else
10611   echo "$as_me: failed program was:" >&5
10612 cat conftest.$ac_ext >&5
10613 ac_lo=`expr $ac_mid + 1`
10614                     if test $ac_lo -le $ac_mid; then
10615                       ac_lo= ac_hi=
10616                       break
10617                     fi
10618                     ac_mid=`expr 2 '*' $ac_mid + 1`
10619 fi
10620 rm -f conftest.$ac_objext conftest.$ac_ext
10621   done
10622 else
10623   echo "$as_me: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10625 cat >conftest.$ac_ext <<_ACEOF
10626 #line $LINENO "configure"
10627 #include "confdefs.h"
10628 $ac_includes_default
10629 int
10630 main ()
10631 {
10632 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
10633 test_array [0] = 0
10634
10635   ;
10636   return 0;
10637 }
10638 _ACEOF
10639 rm -f conftest.$ac_objext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10641   (eval $ac_compile) 2>&5
10642   ac_status=$?
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); } &&
10645          { ac_try='test -s conftest.$ac_objext'
10646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647   (eval $ac_try) 2>&5
10648   ac_status=$?
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); }; }; then
10651   ac_hi=-1 ac_mid=-1
10652   while :; do
10653     cat >conftest.$ac_ext <<_ACEOF
10654 #line $LINENO "configure"
10655 #include "confdefs.h"
10656 $ac_includes_default
10657 int
10658 main ()
10659 {
10660 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
10661 test_array [0] = 0
10662
10663   ;
10664   return 0;
10665 }
10666 _ACEOF
10667 rm -f conftest.$ac_objext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669   (eval $ac_compile) 2>&5
10670   ac_status=$?
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); } &&
10673          { ac_try='test -s conftest.$ac_objext'
10674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675   (eval $ac_try) 2>&5
10676   ac_status=$?
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); }; }; then
10679   ac_lo=$ac_mid; break
10680 else
10681   echo "$as_me: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10683 ac_hi=`expr '(' $ac_mid ')' - 1`
10684                        if test $ac_mid -le $ac_hi; then
10685                          ac_lo= ac_hi=
10686                          break
10687                        fi
10688                        ac_mid=`expr 2 '*' $ac_mid`
10689 fi
10690 rm -f conftest.$ac_objext conftest.$ac_ext
10691   done
10692 else
10693   echo "$as_me: failed program was:" >&5
10694 cat conftest.$ac_ext >&5
10695 ac_lo= ac_hi=
10696 fi
10697 rm -f conftest.$ac_objext conftest.$ac_ext
10698 fi
10699 rm -f conftest.$ac_objext conftest.$ac_ext
10700 # Binary search between lo and hi bounds.
10701 while test "x$ac_lo" != "x$ac_hi"; do
10702   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10703   cat >conftest.$ac_ext <<_ACEOF
10704 #line $LINENO "configure"
10705 #include "confdefs.h"
10706 $ac_includes_default
10707 int
10708 main ()
10709 {
10710 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
10711 test_array [0] = 0
10712
10713   ;
10714   return 0;
10715 }
10716 _ACEOF
10717 rm -f conftest.$ac_objext
10718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10719   (eval $ac_compile) 2>&5
10720   ac_status=$?
10721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722   (exit $ac_status); } &&
10723          { ac_try='test -s conftest.$ac_objext'
10724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725   (eval $ac_try) 2>&5
10726   ac_status=$?
10727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728   (exit $ac_status); }; }; then
10729   ac_hi=$ac_mid
10730 else
10731   echo "$as_me: failed program was:" >&5
10732 cat conftest.$ac_ext >&5
10733 ac_lo=`expr '(' $ac_mid ')' + 1`
10734 fi
10735 rm -f conftest.$ac_objext conftest.$ac_ext
10736 done
10737 case $ac_lo in
10738 ?*) ac_cv_sizeof_short=$ac_lo;;
10739 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
10740 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
10741    { (exit 1); exit 1; }; } ;;
10742 esac
10743 else
10744   if test "$cross_compiling" = yes; then
10745   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10746 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10747    { (exit 1); exit 1; }; }
10748 else
10749   cat >conftest.$ac_ext <<_ACEOF
10750 #line $LINENO "configure"
10751 #include "confdefs.h"
10752 $ac_includes_default
10753 long longval () { return (long) (sizeof (short)); }
10754 unsigned long ulongval () { return (long) (sizeof (short)); }
10755 #include <stdio.h>
10756 #include <stdlib.h>
10757 int
10758 main ()
10759 {
10760
10761   FILE *f = fopen ("conftest.val", "w");
10762   if (! f)
10763     exit (1);
10764   if (((long) (sizeof (short))) < 0)
10765     {
10766       long i = longval ();
10767       if (i != ((long) (sizeof (short))))
10768         exit (1);
10769       fprintf (f, "%ld\n", i);
10770     }
10771   else
10772     {
10773       unsigned long i = ulongval ();
10774       if (i != ((long) (sizeof (short))))
10775         exit (1);
10776       fprintf (f, "%lu\n", i);
10777     }
10778   exit (ferror (f) || fclose (f) != 0);
10779
10780   ;
10781   return 0;
10782 }
10783 _ACEOF
10784 rm -f conftest$ac_exeext
10785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10786   (eval $ac_link) 2>&5
10787   ac_status=$?
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791   (eval $ac_try) 2>&5
10792   ac_status=$?
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); }; }; then
10795   ac_cv_sizeof_short=`cat conftest.val`
10796 else
10797   echo "$as_me: program exited with status $ac_status" >&5
10798 echo "$as_me: failed program was:" >&5
10799 cat conftest.$ac_ext >&5
10800 ( exit $ac_status )
10801 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
10802 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
10803    { (exit 1); exit 1; }; }
10804 fi
10805 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10806 fi
10807 fi
10808 rm -f conftest.val
10809 else
10810   ac_cv_sizeof_short=0
10811 fi
10812 fi
10813 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
10814 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
10815 cat >>confdefs.h <<_ACEOF
10816 #define SIZEOF_SHORT $ac_cv_sizeof_short
10817 _ACEOF
10818
10819
10820 echo "$as_me:$LINENO: checking for int" >&5
10821 echo $ECHO_N "checking for int... $ECHO_C" >&6
10822 if test "${ac_cv_type_int+set}" = set; then
10823   echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825   cat >conftest.$ac_ext <<_ACEOF
10826 #line $LINENO "configure"
10827 #include "confdefs.h"
10828 $ac_includes_default
10829 int
10830 main ()
10831 {
10832 if ((int *) 0)
10833   return 0;
10834 if (sizeof (int))
10835   return 0;
10836   ;
10837   return 0;
10838 }
10839 _ACEOF
10840 rm -f conftest.$ac_objext
10841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10842   (eval $ac_compile) 2>&5
10843   ac_status=$?
10844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845   (exit $ac_status); } &&
10846          { ac_try='test -s conftest.$ac_objext'
10847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848   (eval $ac_try) 2>&5
10849   ac_status=$?
10850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851   (exit $ac_status); }; }; then
10852   ac_cv_type_int=yes
10853 else
10854   echo "$as_me: failed program was:" >&5
10855 cat conftest.$ac_ext >&5
10856 ac_cv_type_int=no
10857 fi
10858 rm -f conftest.$ac_objext conftest.$ac_ext
10859 fi
10860 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10861 echo "${ECHO_T}$ac_cv_type_int" >&6
10862
10863 echo "$as_me:$LINENO: checking size of int" >&5
10864 echo $ECHO_N "checking size of int... $ECHO_C" >&6
10865 if test "${ac_cv_sizeof_int+set}" = set; then
10866   echo $ECHO_N "(cached) $ECHO_C" >&6
10867 else
10868   if test "$ac_cv_type_int" = yes; then
10869   # The cast to unsigned long works around a bug in the HP C Compiler
10870   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10871   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10872   # This bug is HP SR number 8606223364.
10873   if test "$cross_compiling" = yes; then
10874   # Depending upon the size, compute the lo and hi bounds.
10875 cat >conftest.$ac_ext <<_ACEOF
10876 #line $LINENO "configure"
10877 #include "confdefs.h"
10878 $ac_includes_default
10879 int
10880 main ()
10881 {
10882 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
10883 test_array [0] = 0
10884
10885   ;
10886   return 0;
10887 }
10888 _ACEOF
10889 rm -f conftest.$ac_objext
10890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891   (eval $ac_compile) 2>&5
10892   ac_status=$?
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); } &&
10895          { ac_try='test -s conftest.$ac_objext'
10896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10897   (eval $ac_try) 2>&5
10898   ac_status=$?
10899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900   (exit $ac_status); }; }; then
10901   ac_lo=0 ac_mid=0
10902   while :; do
10903     cat >conftest.$ac_ext <<_ACEOF
10904 #line $LINENO "configure"
10905 #include "confdefs.h"
10906 $ac_includes_default
10907 int
10908 main ()
10909 {
10910 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
10911 test_array [0] = 0
10912
10913   ;
10914   return 0;
10915 }
10916 _ACEOF
10917 rm -f conftest.$ac_objext
10918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10919   (eval $ac_compile) 2>&5
10920   ac_status=$?
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); } &&
10923          { ac_try='test -s conftest.$ac_objext'
10924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925   (eval $ac_try) 2>&5
10926   ac_status=$?
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); }; }; then
10929   ac_hi=$ac_mid; break
10930 else
10931   echo "$as_me: failed program was:" >&5
10932 cat conftest.$ac_ext >&5
10933 ac_lo=`expr $ac_mid + 1`
10934                     if test $ac_lo -le $ac_mid; then
10935                       ac_lo= ac_hi=
10936                       break
10937                     fi
10938                     ac_mid=`expr 2 '*' $ac_mid + 1`
10939 fi
10940 rm -f conftest.$ac_objext conftest.$ac_ext
10941   done
10942 else
10943   echo "$as_me: failed program was:" >&5
10944 cat conftest.$ac_ext >&5
10945 cat >conftest.$ac_ext <<_ACEOF
10946 #line $LINENO "configure"
10947 #include "confdefs.h"
10948 $ac_includes_default
10949 int
10950 main ()
10951 {
10952 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
10953 test_array [0] = 0
10954
10955   ;
10956   return 0;
10957 }
10958 _ACEOF
10959 rm -f conftest.$ac_objext
10960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10961   (eval $ac_compile) 2>&5
10962   ac_status=$?
10963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964   (exit $ac_status); } &&
10965          { ac_try='test -s conftest.$ac_objext'
10966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967   (eval $ac_try) 2>&5
10968   ac_status=$?
10969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970   (exit $ac_status); }; }; then
10971   ac_hi=-1 ac_mid=-1
10972   while :; do
10973     cat >conftest.$ac_ext <<_ACEOF
10974 #line $LINENO "configure"
10975 #include "confdefs.h"
10976 $ac_includes_default
10977 int
10978 main ()
10979 {
10980 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
10981 test_array [0] = 0
10982
10983   ;
10984   return 0;
10985 }
10986 _ACEOF
10987 rm -f conftest.$ac_objext
10988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10989   (eval $ac_compile) 2>&5
10990   ac_status=$?
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); } &&
10993          { ac_try='test -s conftest.$ac_objext'
10994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995   (eval $ac_try) 2>&5
10996   ac_status=$?
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); }; }; then
10999   ac_lo=$ac_mid; break
11000 else
11001   echo "$as_me: failed program was:" >&5
11002 cat conftest.$ac_ext >&5
11003 ac_hi=`expr '(' $ac_mid ')' - 1`
11004                        if test $ac_mid -le $ac_hi; then
11005                          ac_lo= ac_hi=
11006                          break
11007                        fi
11008                        ac_mid=`expr 2 '*' $ac_mid`
11009 fi
11010 rm -f conftest.$ac_objext conftest.$ac_ext
11011   done
11012 else
11013   echo "$as_me: failed program was:" >&5
11014 cat conftest.$ac_ext >&5
11015 ac_lo= ac_hi=
11016 fi
11017 rm -f conftest.$ac_objext conftest.$ac_ext
11018 fi
11019 rm -f conftest.$ac_objext conftest.$ac_ext
11020 # Binary search between lo and hi bounds.
11021 while test "x$ac_lo" != "x$ac_hi"; do
11022   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11023   cat >conftest.$ac_ext <<_ACEOF
11024 #line $LINENO "configure"
11025 #include "confdefs.h"
11026 $ac_includes_default
11027 int
11028 main ()
11029 {
11030 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11031 test_array [0] = 0
11032
11033   ;
11034   return 0;
11035 }
11036 _ACEOF
11037 rm -f conftest.$ac_objext
11038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11039   (eval $ac_compile) 2>&5
11040   ac_status=$?
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); } &&
11043          { ac_try='test -s conftest.$ac_objext'
11044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045   (eval $ac_try) 2>&5
11046   ac_status=$?
11047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048   (exit $ac_status); }; }; then
11049   ac_hi=$ac_mid
11050 else
11051   echo "$as_me: failed program was:" >&5
11052 cat conftest.$ac_ext >&5
11053 ac_lo=`expr '(' $ac_mid ')' + 1`
11054 fi
11055 rm -f conftest.$ac_objext conftest.$ac_ext
11056 done
11057 case $ac_lo in
11058 ?*) ac_cv_sizeof_int=$ac_lo;;
11059 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
11060 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
11061    { (exit 1); exit 1; }; } ;;
11062 esac
11063 else
11064   if test "$cross_compiling" = yes; then
11065   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11066 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11067    { (exit 1); exit 1; }; }
11068 else
11069   cat >conftest.$ac_ext <<_ACEOF
11070 #line $LINENO "configure"
11071 #include "confdefs.h"
11072 $ac_includes_default
11073 long longval () { return (long) (sizeof (int)); }
11074 unsigned long ulongval () { return (long) (sizeof (int)); }
11075 #include <stdio.h>
11076 #include <stdlib.h>
11077 int
11078 main ()
11079 {
11080
11081   FILE *f = fopen ("conftest.val", "w");
11082   if (! f)
11083     exit (1);
11084   if (((long) (sizeof (int))) < 0)
11085     {
11086       long i = longval ();
11087       if (i != ((long) (sizeof (int))))
11088         exit (1);
11089       fprintf (f, "%ld\n", i);
11090     }
11091   else
11092     {
11093       unsigned long i = ulongval ();
11094       if (i != ((long) (sizeof (int))))
11095         exit (1);
11096       fprintf (f, "%lu\n", i);
11097     }
11098   exit (ferror (f) || fclose (f) != 0);
11099
11100   ;
11101   return 0;
11102 }
11103 _ACEOF
11104 rm -f conftest$ac_exeext
11105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11106   (eval $ac_link) 2>&5
11107   ac_status=$?
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111   (eval $ac_try) 2>&5
11112   ac_status=$?
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); }; }; then
11115   ac_cv_sizeof_int=`cat conftest.val`
11116 else
11117   echo "$as_me: program exited with status $ac_status" >&5
11118 echo "$as_me: failed program was:" >&5
11119 cat conftest.$ac_ext >&5
11120 ( exit $ac_status )
11121 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
11122 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
11123    { (exit 1); exit 1; }; }
11124 fi
11125 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11126 fi
11127 fi
11128 rm -f conftest.val
11129 else
11130   ac_cv_sizeof_int=0
11131 fi
11132 fi
11133 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
11134 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
11135 cat >>confdefs.h <<_ACEOF
11136 #define SIZEOF_INT $ac_cv_sizeof_int
11137 _ACEOF
11138
11139
11140 echo "$as_me:$LINENO: checking for long" >&5
11141 echo $ECHO_N "checking for long... $ECHO_C" >&6
11142 if test "${ac_cv_type_long+set}" = set; then
11143   echo $ECHO_N "(cached) $ECHO_C" >&6
11144 else
11145   cat >conftest.$ac_ext <<_ACEOF
11146 #line $LINENO "configure"
11147 #include "confdefs.h"
11148 $ac_includes_default
11149 int
11150 main ()
11151 {
11152 if ((long *) 0)
11153   return 0;
11154 if (sizeof (long))
11155   return 0;
11156   ;
11157   return 0;
11158 }
11159 _ACEOF
11160 rm -f conftest.$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162   (eval $ac_compile) 2>&5
11163   ac_status=$?
11164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165   (exit $ac_status); } &&
11166          { ac_try='test -s conftest.$ac_objext'
11167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168   (eval $ac_try) 2>&5
11169   ac_status=$?
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); }; }; then
11172   ac_cv_type_long=yes
11173 else
11174   echo "$as_me: failed program was:" >&5
11175 cat conftest.$ac_ext >&5
11176 ac_cv_type_long=no
11177 fi
11178 rm -f conftest.$ac_objext conftest.$ac_ext
11179 fi
11180 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11181 echo "${ECHO_T}$ac_cv_type_long" >&6
11182
11183 echo "$as_me:$LINENO: checking size of long" >&5
11184 echo $ECHO_N "checking size of long... $ECHO_C" >&6
11185 if test "${ac_cv_sizeof_long+set}" = set; then
11186   echo $ECHO_N "(cached) $ECHO_C" >&6
11187 else
11188   if test "$ac_cv_type_long" = yes; then
11189   # The cast to unsigned long works around a bug in the HP C Compiler
11190   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11191   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11192   # This bug is HP SR number 8606223364.
11193   if test "$cross_compiling" = yes; then
11194   # Depending upon the size, compute the lo and hi bounds.
11195 cat >conftest.$ac_ext <<_ACEOF
11196 #line $LINENO "configure"
11197 #include "confdefs.h"
11198 $ac_includes_default
11199 int
11200 main ()
11201 {
11202 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
11203 test_array [0] = 0
11204
11205   ;
11206   return 0;
11207 }
11208 _ACEOF
11209 rm -f conftest.$ac_objext
11210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11211   (eval $ac_compile) 2>&5
11212   ac_status=$?
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); } &&
11215          { ac_try='test -s conftest.$ac_objext'
11216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217   (eval $ac_try) 2>&5
11218   ac_status=$?
11219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220   (exit $ac_status); }; }; then
11221   ac_lo=0 ac_mid=0
11222   while :; do
11223     cat >conftest.$ac_ext <<_ACEOF
11224 #line $LINENO "configure"
11225 #include "confdefs.h"
11226 $ac_includes_default
11227 int
11228 main ()
11229 {
11230 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11231 test_array [0] = 0
11232
11233   ;
11234   return 0;
11235 }
11236 _ACEOF
11237 rm -f conftest.$ac_objext
11238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11239   (eval $ac_compile) 2>&5
11240   ac_status=$?
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); } &&
11243          { ac_try='test -s conftest.$ac_objext'
11244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245   (eval $ac_try) 2>&5
11246   ac_status=$?
11247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248   (exit $ac_status); }; }; then
11249   ac_hi=$ac_mid; break
11250 else
11251   echo "$as_me: failed program was:" >&5
11252 cat conftest.$ac_ext >&5
11253 ac_lo=`expr $ac_mid + 1`
11254                     if test $ac_lo -le $ac_mid; then
11255                       ac_lo= ac_hi=
11256                       break
11257                     fi
11258                     ac_mid=`expr 2 '*' $ac_mid + 1`
11259 fi
11260 rm -f conftest.$ac_objext conftest.$ac_ext
11261   done
11262 else
11263   echo "$as_me: failed program was:" >&5
11264 cat conftest.$ac_ext >&5
11265 cat >conftest.$ac_ext <<_ACEOF
11266 #line $LINENO "configure"
11267 #include "confdefs.h"
11268 $ac_includes_default
11269 int
11270 main ()
11271 {
11272 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
11273 test_array [0] = 0
11274
11275   ;
11276   return 0;
11277 }
11278 _ACEOF
11279 rm -f conftest.$ac_objext
11280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11281   (eval $ac_compile) 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); } &&
11285          { ac_try='test -s conftest.$ac_objext'
11286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287   (eval $ac_try) 2>&5
11288   ac_status=$?
11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   (exit $ac_status); }; }; then
11291   ac_hi=-1 ac_mid=-1
11292   while :; do
11293     cat >conftest.$ac_ext <<_ACEOF
11294 #line $LINENO "configure"
11295 #include "confdefs.h"
11296 $ac_includes_default
11297 int
11298 main ()
11299 {
11300 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
11301 test_array [0] = 0
11302
11303   ;
11304   return 0;
11305 }
11306 _ACEOF
11307 rm -f conftest.$ac_objext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11309   (eval $ac_compile) 2>&5
11310   ac_status=$?
11311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312   (exit $ac_status); } &&
11313          { ac_try='test -s conftest.$ac_objext'
11314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315   (eval $ac_try) 2>&5
11316   ac_status=$?
11317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318   (exit $ac_status); }; }; then
11319   ac_lo=$ac_mid; break
11320 else
11321   echo "$as_me: failed program was:" >&5
11322 cat conftest.$ac_ext >&5
11323 ac_hi=`expr '(' $ac_mid ')' - 1`
11324                        if test $ac_mid -le $ac_hi; then
11325                          ac_lo= ac_hi=
11326                          break
11327                        fi
11328                        ac_mid=`expr 2 '*' $ac_mid`
11329 fi
11330 rm -f conftest.$ac_objext conftest.$ac_ext
11331   done
11332 else
11333   echo "$as_me: failed program was:" >&5
11334 cat conftest.$ac_ext >&5
11335 ac_lo= ac_hi=
11336 fi
11337 rm -f conftest.$ac_objext conftest.$ac_ext
11338 fi
11339 rm -f conftest.$ac_objext conftest.$ac_ext
11340 # Binary search between lo and hi bounds.
11341 while test "x$ac_lo" != "x$ac_hi"; do
11342   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11343   cat >conftest.$ac_ext <<_ACEOF
11344 #line $LINENO "configure"
11345 #include "confdefs.h"
11346 $ac_includes_default
11347 int
11348 main ()
11349 {
11350 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11351 test_array [0] = 0
11352
11353   ;
11354   return 0;
11355 }
11356 _ACEOF
11357 rm -f conftest.$ac_objext
11358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11359   (eval $ac_compile) 2>&5
11360   ac_status=$?
11361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362   (exit $ac_status); } &&
11363          { ac_try='test -s conftest.$ac_objext'
11364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365   (eval $ac_try) 2>&5
11366   ac_status=$?
11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368   (exit $ac_status); }; }; then
11369   ac_hi=$ac_mid
11370 else
11371   echo "$as_me: failed program was:" >&5
11372 cat conftest.$ac_ext >&5
11373 ac_lo=`expr '(' $ac_mid ')' + 1`
11374 fi
11375 rm -f conftest.$ac_objext conftest.$ac_ext
11376 done
11377 case $ac_lo in
11378 ?*) ac_cv_sizeof_long=$ac_lo;;
11379 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
11380 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
11381    { (exit 1); exit 1; }; } ;;
11382 esac
11383 else
11384   if test "$cross_compiling" = yes; then
11385   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11386 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11387    { (exit 1); exit 1; }; }
11388 else
11389   cat >conftest.$ac_ext <<_ACEOF
11390 #line $LINENO "configure"
11391 #include "confdefs.h"
11392 $ac_includes_default
11393 long longval () { return (long) (sizeof (long)); }
11394 unsigned long ulongval () { return (long) (sizeof (long)); }
11395 #include <stdio.h>
11396 #include <stdlib.h>
11397 int
11398 main ()
11399 {
11400
11401   FILE *f = fopen ("conftest.val", "w");
11402   if (! f)
11403     exit (1);
11404   if (((long) (sizeof (long))) < 0)
11405     {
11406       long i = longval ();
11407       if (i != ((long) (sizeof (long))))
11408         exit (1);
11409       fprintf (f, "%ld\n", i);
11410     }
11411   else
11412     {
11413       unsigned long i = ulongval ();
11414       if (i != ((long) (sizeof (long))))
11415         exit (1);
11416       fprintf (f, "%lu\n", i);
11417     }
11418   exit (ferror (f) || fclose (f) != 0);
11419
11420   ;
11421   return 0;
11422 }
11423 _ACEOF
11424 rm -f conftest$ac_exeext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426   (eval $ac_link) 2>&5
11427   ac_status=$?
11428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431   (eval $ac_try) 2>&5
11432   ac_status=$?
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); }; }; then
11435   ac_cv_sizeof_long=`cat conftest.val`
11436 else
11437   echo "$as_me: program exited with status $ac_status" >&5
11438 echo "$as_me: failed program was:" >&5
11439 cat conftest.$ac_ext >&5
11440 ( exit $ac_status )
11441 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
11442 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
11443    { (exit 1); exit 1; }; }
11444 fi
11445 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11446 fi
11447 fi
11448 rm -f conftest.val
11449 else
11450   ac_cv_sizeof_long=0
11451 fi
11452 fi
11453 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
11454 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
11455 cat >>confdefs.h <<_ACEOF
11456 #define SIZEOF_LONG $ac_cv_sizeof_long
11457 _ACEOF
11458
11459
11460 echo "$as_me:$LINENO: checking for long long" >&5
11461 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11462 if test "${ac_cv_type_long_long+set}" = set; then
11463   echo $ECHO_N "(cached) $ECHO_C" >&6
11464 else
11465   cat >conftest.$ac_ext <<_ACEOF
11466 #line $LINENO "configure"
11467 #include "confdefs.h"
11468 $ac_includes_default
11469 int
11470 main ()
11471 {
11472 if ((long long *) 0)
11473   return 0;
11474 if (sizeof (long long))
11475   return 0;
11476   ;
11477   return 0;
11478 }
11479 _ACEOF
11480 rm -f conftest.$ac_objext
11481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11482   (eval $ac_compile) 2>&5
11483   ac_status=$?
11484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485   (exit $ac_status); } &&
11486          { ac_try='test -s conftest.$ac_objext'
11487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488   (eval $ac_try) 2>&5
11489   ac_status=$?
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); }; }; then
11492   ac_cv_type_long_long=yes
11493 else
11494   echo "$as_me: failed program was:" >&5
11495 cat conftest.$ac_ext >&5
11496 ac_cv_type_long_long=no
11497 fi
11498 rm -f conftest.$ac_objext conftest.$ac_ext
11499 fi
11500 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11501 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11502
11503 echo "$as_me:$LINENO: checking size of long long" >&5
11504 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11505 if test "${ac_cv_sizeof_long_long+set}" = set; then
11506   echo $ECHO_N "(cached) $ECHO_C" >&6
11507 else
11508   if test "$ac_cv_type_long_long" = yes; then
11509   # The cast to unsigned long works around a bug in the HP C Compiler
11510   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11511   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11512   # This bug is HP SR number 8606223364.
11513   if test "$cross_compiling" = yes; then
11514   # Depending upon the size, compute the lo and hi bounds.
11515 cat >conftest.$ac_ext <<_ACEOF
11516 #line $LINENO "configure"
11517 #include "confdefs.h"
11518 $ac_includes_default
11519 int
11520 main ()
11521 {
11522 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11523 test_array [0] = 0
11524
11525   ;
11526   return 0;
11527 }
11528 _ACEOF
11529 rm -f conftest.$ac_objext
11530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11531   (eval $ac_compile) 2>&5
11532   ac_status=$?
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); } &&
11535          { ac_try='test -s conftest.$ac_objext'
11536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537   (eval $ac_try) 2>&5
11538   ac_status=$?
11539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540   (exit $ac_status); }; }; then
11541   ac_lo=0 ac_mid=0
11542   while :; do
11543     cat >conftest.$ac_ext <<_ACEOF
11544 #line $LINENO "configure"
11545 #include "confdefs.h"
11546 $ac_includes_default
11547 int
11548 main ()
11549 {
11550 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11551 test_array [0] = 0
11552
11553   ;
11554   return 0;
11555 }
11556 _ACEOF
11557 rm -f conftest.$ac_objext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11559   (eval $ac_compile) 2>&5
11560   ac_status=$?
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); } &&
11563          { ac_try='test -s conftest.$ac_objext'
11564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565   (eval $ac_try) 2>&5
11566   ac_status=$?
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); }; }; then
11569   ac_hi=$ac_mid; break
11570 else
11571   echo "$as_me: failed program was:" >&5
11572 cat conftest.$ac_ext >&5
11573 ac_lo=`expr $ac_mid + 1`
11574                     if test $ac_lo -le $ac_mid; then
11575                       ac_lo= ac_hi=
11576                       break
11577                     fi
11578                     ac_mid=`expr 2 '*' $ac_mid + 1`
11579 fi
11580 rm -f conftest.$ac_objext conftest.$ac_ext
11581   done
11582 else
11583   echo "$as_me: failed program was:" >&5
11584 cat conftest.$ac_ext >&5
11585 cat >conftest.$ac_ext <<_ACEOF
11586 #line $LINENO "configure"
11587 #include "confdefs.h"
11588 $ac_includes_default
11589 int
11590 main ()
11591 {
11592 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11593 test_array [0] = 0
11594
11595   ;
11596   return 0;
11597 }
11598 _ACEOF
11599 rm -f conftest.$ac_objext
11600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11601   (eval $ac_compile) 2>&5
11602   ac_status=$?
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); } &&
11605          { ac_try='test -s conftest.$ac_objext'
11606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607   (eval $ac_try) 2>&5
11608   ac_status=$?
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); }; }; then
11611   ac_hi=-1 ac_mid=-1
11612   while :; do
11613     cat >conftest.$ac_ext <<_ACEOF
11614 #line $LINENO "configure"
11615 #include "confdefs.h"
11616 $ac_includes_default
11617 int
11618 main ()
11619 {
11620 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11621 test_array [0] = 0
11622
11623   ;
11624   return 0;
11625 }
11626 _ACEOF
11627 rm -f conftest.$ac_objext
11628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11629   (eval $ac_compile) 2>&5
11630   ac_status=$?
11631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632   (exit $ac_status); } &&
11633          { ac_try='test -s conftest.$ac_objext'
11634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635   (eval $ac_try) 2>&5
11636   ac_status=$?
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); }; }; then
11639   ac_lo=$ac_mid; break
11640 else
11641   echo "$as_me: failed program was:" >&5
11642 cat conftest.$ac_ext >&5
11643 ac_hi=`expr '(' $ac_mid ')' - 1`
11644                        if test $ac_mid -le $ac_hi; then
11645                          ac_lo= ac_hi=
11646                          break
11647                        fi
11648                        ac_mid=`expr 2 '*' $ac_mid`
11649 fi
11650 rm -f conftest.$ac_objext conftest.$ac_ext
11651   done
11652 else
11653   echo "$as_me: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11655 ac_lo= ac_hi=
11656 fi
11657 rm -f conftest.$ac_objext conftest.$ac_ext
11658 fi
11659 rm -f conftest.$ac_objext conftest.$ac_ext
11660 # Binary search between lo and hi bounds.
11661 while test "x$ac_lo" != "x$ac_hi"; do
11662   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11663   cat >conftest.$ac_ext <<_ACEOF
11664 #line $LINENO "configure"
11665 #include "confdefs.h"
11666 $ac_includes_default
11667 int
11668 main ()
11669 {
11670 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11671 test_array [0] = 0
11672
11673   ;
11674   return 0;
11675 }
11676 _ACEOF
11677 rm -f conftest.$ac_objext
11678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11679   (eval $ac_compile) 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); } &&
11683          { ac_try='test -s conftest.$ac_objext'
11684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685   (eval $ac_try) 2>&5
11686   ac_status=$?
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); }; }; then
11689   ac_hi=$ac_mid
11690 else
11691   echo "$as_me: failed program was:" >&5
11692 cat conftest.$ac_ext >&5
11693 ac_lo=`expr '(' $ac_mid ')' + 1`
11694 fi
11695 rm -f conftest.$ac_objext conftest.$ac_ext
11696 done
11697 case $ac_lo in
11698 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11699 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
11700 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
11701    { (exit 1); exit 1; }; } ;;
11702 esac
11703 else
11704   if test "$cross_compiling" = yes; then
11705   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11706 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11707    { (exit 1); exit 1; }; }
11708 else
11709   cat >conftest.$ac_ext <<_ACEOF
11710 #line $LINENO "configure"
11711 #include "confdefs.h"
11712 $ac_includes_default
11713 long longval () { return (long) (sizeof (long long)); }
11714 unsigned long ulongval () { return (long) (sizeof (long long)); }
11715 #include <stdio.h>
11716 #include <stdlib.h>
11717 int
11718 main ()
11719 {
11720
11721   FILE *f = fopen ("conftest.val", "w");
11722   if (! f)
11723     exit (1);
11724   if (((long) (sizeof (long long))) < 0)
11725     {
11726       long i = longval ();
11727       if (i != ((long) (sizeof (long long))))
11728         exit (1);
11729       fprintf (f, "%ld\n", i);
11730     }
11731   else
11732     {
11733       unsigned long i = ulongval ();
11734       if (i != ((long) (sizeof (long long))))
11735         exit (1);
11736       fprintf (f, "%lu\n", i);
11737     }
11738   exit (ferror (f) || fclose (f) != 0);
11739
11740   ;
11741   return 0;
11742 }
11743 _ACEOF
11744 rm -f conftest$ac_exeext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11746   (eval $ac_link) 2>&5
11747   ac_status=$?
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751   (eval $ac_try) 2>&5
11752   ac_status=$?
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); }; }; then
11755   ac_cv_sizeof_long_long=`cat conftest.val`
11756 else
11757   echo "$as_me: program exited with status $ac_status" >&5
11758 echo "$as_me: failed program was:" >&5
11759 cat conftest.$ac_ext >&5
11760 ( exit $ac_status )
11761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
11762 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
11763    { (exit 1); exit 1; }; }
11764 fi
11765 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11766 fi
11767 fi
11768 rm -f conftest.val
11769 else
11770   ac_cv_sizeof_long_long=0
11771 fi
11772 fi
11773 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11774 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11775 cat >>confdefs.h <<_ACEOF
11776 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11777 _ACEOF
11778
11779
11780 else
11781     if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
11782         ac_cv_sizeof_char=1
11783         ac_cv_sizeof_short=2
11784         ac_cv_sizeof_int=4
11785         ac_cv_sizeof_long=4
11786         ac_cv_sizeof_long_long=4
11787     else
11788         : # FIXME
11789     fi
11790 #echo
11791 fi
11792
11793 type_name()
11794 {
11795     if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
11796         echo "char"
11797         exit
11798     fi
11799     if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
11800         echo "short"
11801         exit
11802     fi
11803     if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
11804         echo "int"
11805         exit
11806     fi
11807     if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
11808         echo "long"
11809         exit
11810     fi
11811     if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
11812         echo "long long"
11813         exit
11814     fi
11815     echo "long long"
11816 }
11817
11818 echo "$as_me:$LINENO: checking type name for byte" >&5
11819 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
11820 TYPE_BYTE=`type_name 1`
11821 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
11822 echo "${ECHO_T}$TYPE_BYTE" >&6
11823 echo "$as_me:$LINENO: checking type name for word" >&5
11824 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
11825 TYPE_WORD=`type_name 2`
11826 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
11827 echo "${ECHO_T}$TYPE_WORD" >&6
11828 echo "$as_me:$LINENO: checking type name for dword" >&5
11829 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
11830 TYPE_DWORD=`type_name 4`
11831 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
11832 echo "${ECHO_T}$TYPE_DWORD" >&6
11833 cat >>confdefs.h <<_ACEOF
11834 #define TYPE_BYTE $TYPE_BYTE
11835 _ACEOF
11836
11837 cat >>confdefs.h <<_ACEOF
11838 #define TYPE_WORD $TYPE_WORD
11839 _ACEOF
11840
11841 cat >>confdefs.h <<_ACEOF
11842 #define TYPE_DWORD $TYPE_DWORD
11843 _ACEOF
11844
11845
11846 if echo $TYPE_DWORD|grep short >/dev/null; then
11847     A="h"
11848 elif echo $TYPE_DWORD|grep long >/dev/null; then
11849     A="l"
11850 else
11851     A=""
11852 fi
11853
11854 if echo $TYPE_WORD|grep short >/dev/null; then M="h"
11855 elif echo $TYPE_WORD|grep long >/dev/null; then M="l"
11856 else M=""
11857 fi
11858
11859 cat >>confdefs.h <<_ACEOF
11860 #define _A_ "${A}"
11861 _ACEOF
11862
11863 cat >>confdefs.h <<_ACEOF
11864 #define _M_ "${M}"
11865 _ACEOF
11866
11867
11868
11869 # Generating output files
11870 # ===========================================================================
11871
11872                                                                                                               ac_config_files="$ac_config_files main.mk:main_in.mk packages.mk:packages_in.mk sim.src/Makefile cmd.src/Makefile s51.src/Makefile avr.src/Makefile z80.src/Makefile xa.src/Makefile gui.src/Makefile gui.src/serio.src/Makefile doc/Makefile"
11873 cat >confcache <<\_ACEOF
11874 # This file is a shell script that caches the results of configure
11875 # tests run on this system so they can be shared between configure
11876 # scripts and configure runs, see configure's option --config-cache.
11877 # It is not useful on other systems.  If it contains results you don't
11878 # want to keep, you may remove or edit it.
11879 #
11880 # config.status only pays attention to the cache file if you give it
11881 # the --recheck option to rerun configure.
11882 #
11883 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11884 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11885 # following values.
11886
11887 _ACEOF
11888
11889 # The following way of writing the cache mishandles newlines in values,
11890 # but we know of no workaround that is simple, portable, and efficient.
11891 # So, don't put newlines in cache variables' values.
11892 # Ultrix sh set writes to stderr and can't be redirected directly,
11893 # and sets the high bit in the cache file unless we assign to the vars.
11894 {
11895   (set) 2>&1 |
11896     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11897     *ac_space=\ *)
11898       # `set' does not quote correctly, so add quotes (double-quote
11899       # substitution turns \\\\ into \\, and sed turns \\ into \).
11900       sed -n \
11901         "s/'/'\\\\''/g;
11902           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11903       ;;
11904     *)
11905       # `set' quotes correctly as required by POSIX, so do not add quotes.
11906       sed -n \
11907         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11908       ;;
11909     esac;
11910 } |
11911   sed '
11912      t clear
11913      : clear
11914      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11915      t end
11916      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11917      : end' >>confcache
11918 if cmp -s $cache_file confcache; then :; else
11919   if test -w $cache_file; then
11920     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11921     cat confcache >$cache_file
11922   else
11923     echo "not updating unwritable cache $cache_file"
11924   fi
11925 fi
11926 rm -f confcache
11927
11928 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11929 # Let make expand exec_prefix.
11930 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11931
11932 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11933 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11934 # trailing colons and then remove the whole line if VPATH becomes empty
11935 # (actually we leave an empty line to preserve line numbers).
11936 if test "x$srcdir" = x.; then
11937   ac_vpsub='/^[         ]*VPATH[        ]*=/{
11938 s/:*\$(srcdir):*/:/;
11939 s/:*\${srcdir}:*/:/;
11940 s/:*@srcdir@:*/:/;
11941 s/^\([^=]*=[    ]*\):*/\1/;
11942 s/:*$//;
11943 s/^[^=]*=[      ]*$//;
11944 }'
11945 fi
11946
11947 DEFS=-DHAVE_CONFIG_H
11948
11949 ac_libobjs=
11950 ac_ltlibobjs=
11951 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11952   # 1. Remove the extension, and $U if already installed.
11953   ac_i=`echo "$ac_i" |
11954          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11955   # 2. Add them.
11956   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11957   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11958 done
11959 LIBOBJS=$ac_libobjs
11960
11961 LTLIBOBJS=$ac_ltlibobjs
11962
11963
11964
11965 : ${CONFIG_STATUS=./config.status}
11966 ac_clean_files_save=$ac_clean_files
11967 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11968 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11969 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11970 cat >$CONFIG_STATUS <<_ACEOF
11971 #! $SHELL
11972 # Generated by $as_me.
11973 # Run this file to recreate the current configuration.
11974 # Compiler output produced by configure, useful for debugging
11975 # configure, is in config.log if it exists.
11976
11977 debug=false
11978 SHELL=\${CONFIG_SHELL-$SHELL}
11979 _ACEOF
11980
11981 cat >>$CONFIG_STATUS <<\_ACEOF
11982 ## --------------------- ##
11983 ## M4sh Initialization.  ##
11984 ## --------------------- ##
11985
11986 # Be Bourne compatible
11987 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11988   emulate sh
11989   NULLCMD=:
11990   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11991   # is contrary to our usage.  Disable this feature.
11992   alias -g '${1+"$@"}'='"$@"'
11993 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11994   set -o posix
11995 fi
11996
11997 # Support unset when possible.
11998 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11999   as_unset=unset
12000 else
12001   as_unset=false
12002 fi
12003
12004
12005 # Work around bugs in pre-3.0 UWIN ksh.
12006 $as_unset ENV MAIL MAILPATH
12007 PS1='$ '
12008 PS2='> '
12009 PS4='+ '
12010
12011 # NLS nuisances.
12012 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
12013 do
12014   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
12015     eval $as_var=C; export $as_var
12016   else
12017     $as_unset $as_var
12018   fi
12019 done
12020
12021 # Required to use basename.
12022 if expr a : '\(a\)' >/dev/null 2>&1; then
12023   as_expr=expr
12024 else
12025   as_expr=false
12026 fi
12027
12028 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12029   as_basename=basename
12030 else
12031   as_basename=false
12032 fi
12033
12034
12035 # Name of the executable.
12036 as_me=`$as_basename "$0" ||
12037 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12038          X"$0" : 'X\(//\)$' \| \
12039          X"$0" : 'X\(/\)$' \| \
12040          .     : '\(.\)' 2>/dev/null ||
12041 echo X/"$0" |
12042     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12043           /^X\/\(\/\/\)$/{ s//\1/; q; }
12044           /^X\/\(\/\).*/{ s//\1/; q; }
12045           s/.*/./; q'`
12046
12047
12048 # PATH needs CR, and LINENO needs CR and PATH.
12049 # Avoid depending upon Character Ranges.
12050 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12051 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12052 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12053 as_cr_digits='0123456789'
12054 as_cr_alnum=$as_cr_Letters$as_cr_digits
12055
12056 # The user is always right.
12057 if test "${PATH_SEPARATOR+set}" != set; then
12058   echo "#! /bin/sh" >conftest.sh
12059   echo  "exit 0"   >>conftest.sh
12060   chmod +x conftest.sh
12061   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
12062     PATH_SEPARATOR=';'
12063   else
12064     PATH_SEPARATOR=:
12065   fi
12066   rm -f conftest.sh
12067 fi
12068
12069
12070   as_lineno_1=$LINENO
12071   as_lineno_2=$LINENO
12072   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12073   test "x$as_lineno_1" != "x$as_lineno_2" &&
12074   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12075   # Find who we are.  Look in the path if we contain no path at all
12076   # relative or not.
12077   case $0 in
12078     *[\\/]* ) as_myself=$0 ;;
12079     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080 for as_dir in $PATH
12081 do
12082   IFS=$as_save_IFS
12083   test -z "$as_dir" && as_dir=.
12084   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12085 done
12086
12087        ;;
12088   esac
12089   # We did not find ourselves, most probably we were run as `sh COMMAND'
12090   # in which case we are not to be found in the path.
12091   if test "x$as_myself" = x; then
12092     as_myself=$0
12093   fi
12094   if test ! -f "$as_myself"; then
12095     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12096 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12097    { (exit 1); exit 1; }; }
12098   fi
12099   case $CONFIG_SHELL in
12100   '')
12101     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12103 do
12104   IFS=$as_save_IFS
12105   test -z "$as_dir" && as_dir=.
12106   for as_base in sh bash ksh sh5; do
12107          case $as_dir in
12108          /*)
12109            if ("$as_dir/$as_base" -c '
12110   as_lineno_1=$LINENO
12111   as_lineno_2=$LINENO
12112   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12113   test "x$as_lineno_1" != "x$as_lineno_2" &&
12114   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12115              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12116              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12117              CONFIG_SHELL=$as_dir/$as_base
12118              export CONFIG_SHELL
12119              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12120            fi;;
12121          esac
12122        done
12123 done
12124 ;;
12125   esac
12126
12127   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12128   # uniformly replaced by the line number.  The first 'sed' inserts a
12129   # line-number line before each line; the second 'sed' does the real
12130   # work.  The second script uses 'N' to pair each line-number line
12131   # with the numbered line, and appends trailing '-' during
12132   # substitution so that $LINENO is not a special case at line end.
12133   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12134   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12135   sed '=' <$as_myself |
12136     sed '
12137       N
12138       s,$,-,
12139       : loop
12140       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12141       t loop
12142       s,-$,,
12143       s,^['$as_cr_digits']*\n,,
12144     ' >$as_me.lineno &&
12145   chmod +x $as_me.lineno ||
12146     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12147 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12148    { (exit 1); exit 1; }; }
12149
12150   # Don't try to exec as it changes $[0], causing all sort of problems
12151   # (the dirname of $[0] is not the place where we might find the
12152   # original and so on.  Autoconf is especially sensible to this).
12153   . ./$as_me.lineno
12154   # Exit status is that of the last command.
12155   exit
12156 }
12157
12158
12159 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12160   *c*,-n*) ECHO_N= ECHO_C='
12161 ' ECHO_T='      ' ;;
12162   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12163   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12164 esac
12165
12166 if expr a : '\(a\)' >/dev/null 2>&1; then
12167   as_expr=expr
12168 else
12169   as_expr=false
12170 fi
12171
12172 rm -f conf$$ conf$$.exe conf$$.file
12173 echo >conf$$.file
12174 if ln -s conf$$.file conf$$ 2>/dev/null; then
12175   # We could just check for DJGPP; but this test a) works b) is more generic
12176   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12177   if test -f conf$$.exe; then
12178     # Don't use ln at all; we don't have any links
12179     as_ln_s='cp -p'
12180   else
12181     as_ln_s='ln -s'
12182   fi
12183 elif ln conf$$.file conf$$ 2>/dev/null; then
12184   as_ln_s=ln
12185 else
12186   as_ln_s='cp -p'
12187 fi
12188 rm -f conf$$ conf$$.exe conf$$.file
12189
12190 if mkdir -p . 2>/dev/null; then
12191   as_mkdir_p=:
12192 else
12193   as_mkdir_p=false
12194 fi
12195
12196 as_executable_p="test -f"
12197
12198 # Sed expression to map a string onto a valid CPP name.
12199 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12200
12201 # Sed expression to map a string onto a valid variable name.
12202 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12203
12204
12205 # IFS
12206 # We need space, tab and new line, in precisely that order.
12207 as_nl='
12208 '
12209 IFS="   $as_nl"
12210
12211 # CDPATH.
12212 $as_unset CDPATH
12213
12214 exec 6>&1
12215
12216 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12217 # report actual input values of CONFIG_FILES etc. instead of their
12218 # values after options handling.  Logging --version etc. is OK.
12219 exec 5>>config.log
12220 {
12221   echo
12222   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12223 ## Running $as_me. ##
12224 _ASBOX
12225 } >&5
12226 cat >&5 <<_CSEOF
12227
12228 This file was extended by $as_me, which was
12229 generated by GNU Autoconf 2.54.  Invocation command line was
12230
12231   CONFIG_FILES    = $CONFIG_FILES
12232   CONFIG_HEADERS  = $CONFIG_HEADERS
12233   CONFIG_LINKS    = $CONFIG_LINKS
12234   CONFIG_COMMANDS = $CONFIG_COMMANDS
12235   $ $0 $@
12236
12237 _CSEOF
12238 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12239 echo >&5
12240 _ACEOF
12241
12242 # Files that config.status was made for.
12243 if test -n "$ac_config_files"; then
12244   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12245 fi
12246
12247 if test -n "$ac_config_headers"; then
12248   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12249 fi
12250
12251 if test -n "$ac_config_links"; then
12252   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12253 fi
12254
12255 if test -n "$ac_config_commands"; then
12256   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12257 fi
12258
12259 cat >>$CONFIG_STATUS <<\_ACEOF
12260
12261 ac_cs_usage="\
12262 \`$as_me' instantiates files from templates according to the
12263 current configuration.
12264
12265 Usage: $0 [OPTIONS] [FILE]...
12266
12267   -h, --help       print this help, then exit
12268   -V, --version    print version number, then exit
12269   -d, --debug      don't remove temporary files
12270       --recheck    update $as_me by reconfiguring in the same conditions
12271   --file=FILE[:TEMPLATE]
12272                    instantiate the configuration file FILE
12273   --header=FILE[:TEMPLATE]
12274                    instantiate the configuration header FILE
12275
12276 Configuration files:
12277 $config_files
12278
12279 Configuration headers:
12280 $config_headers
12281
12282 Report bugs to <bug-autoconf@gnu.org>."
12283 _ACEOF
12284
12285 cat >>$CONFIG_STATUS <<_ACEOF
12286 ac_cs_version="\\
12287 config.status
12288 configured by $0, generated by GNU Autoconf 2.54,
12289   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12290
12291 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12292 Free Software Foundation, Inc.
12293 This config.status script is free software; the Free Software Foundation
12294 gives unlimited permission to copy, distribute and modify it."
12295 srcdir=$srcdir
12296 INSTALL="$INSTALL"
12297 _ACEOF
12298
12299 cat >>$CONFIG_STATUS <<\_ACEOF
12300 # If no file are specified by the user, then we need to provide default
12301 # value.  By we need to know if files were specified by the user.
12302 ac_need_defaults=:
12303 while test $# != 0
12304 do
12305   case $1 in
12306   --*=*)
12307     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12308     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12309     ac_shift=:
12310     ;;
12311   -*)
12312     ac_option=$1
12313     ac_optarg=$2
12314     ac_shift=shift
12315     ;;
12316   *) # This is not an option, so the user has probably given explicit
12317      # arguments.
12318      ac_option=$1
12319      ac_need_defaults=false;;
12320   esac
12321
12322   case $ac_option in
12323   # Handling of the options.
12324 _ACEOF
12325 cat >>$CONFIG_STATUS <<_ACEOF
12326   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12327     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12328     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12329 _ACEOF
12330 cat >>$CONFIG_STATUS <<\_ACEOF
12331   --version | --vers* | -V )
12332     echo "$ac_cs_version"; exit 0 ;;
12333   --he | --h)
12334     # Conflict between --help and --header
12335     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12336 Try \`$0 --help' for more information." >&5
12337 echo "$as_me: error: ambiguous option: $1
12338 Try \`$0 --help' for more information." >&2;}
12339    { (exit 1); exit 1; }; };;
12340   --help | --hel | -h )
12341     echo "$ac_cs_usage"; exit 0 ;;
12342   --debug | --d* | -d )
12343     debug=: ;;
12344   --file | --fil | --fi | --f )
12345     $ac_shift
12346     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12347     ac_need_defaults=false;;
12348   --header | --heade | --head | --hea )
12349     $ac_shift
12350     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12351     ac_need_defaults=false;;
12352
12353   # This is an error.
12354   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12355 Try \`$0 --help' for more information." >&5
12356 echo "$as_me: error: unrecognized option: $1
12357 Try \`$0 --help' for more information." >&2;}
12358    { (exit 1); exit 1; }; } ;;
12359
12360   *) ac_config_targets="$ac_config_targets $1" ;;
12361
12362   esac
12363   shift
12364 done
12365
12366 _ACEOF
12367
12368
12369
12370
12371
12372 cat >>$CONFIG_STATUS <<\_ACEOF
12373 for ac_config_target in $ac_config_targets
12374 do
12375   case "$ac_config_target" in
12376   # Handling of arguments.
12377   "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
12378   "packages.mk" ) CONFIG_FILES="$CONFIG_FILES packages.mk:packages_in.mk" ;;
12379   "sim.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES sim.src/Makefile" ;;
12380   "cmd.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd.src/Makefile" ;;
12381   "s51.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES s51.src/Makefile" ;;
12382   "avr.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES avr.src/Makefile" ;;
12383   "z80.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES z80.src/Makefile" ;;
12384   "xa.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES xa.src/Makefile" ;;
12385   "gui.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui.src/Makefile" ;;
12386   "gui.src/serio.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui.src/serio.src/Makefile" ;;
12387   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12388   "ddconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ddconfig.h:ddconfig_in.h" ;;
12389   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12390 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12391    { (exit 1); exit 1; }; };;
12392   esac
12393 done
12394
12395 # If the user did not use the arguments to specify the items to instantiate,
12396 # then the envvar interface is used.  Set only those that are not.
12397 # We use the long form for the default assignment because of an extremely
12398 # bizarre bug on SunOS 4.1.3.
12399 if $ac_need_defaults; then
12400   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12401   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12402 fi
12403
12404 # Create a temporary directory, and hook for its removal unless debugging.
12405 $debug ||
12406 {
12407   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12408   trap '{ (exit 1); exit 1; }' 1 2 13 15
12409 }
12410
12411 # Create a (secure) tmp directory for tmp files.
12412 : ${TMPDIR=/tmp}
12413 {
12414   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12415   test -n "$tmp" && test -d "$tmp"
12416 }  ||
12417 {
12418   tmp=$TMPDIR/cs$$-$RANDOM
12419   (umask 077 && mkdir $tmp)
12420 } ||
12421 {
12422    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12423    { (exit 1); exit 1; }
12424 }
12425
12426 _ACEOF
12427
12428 cat >>$CONFIG_STATUS <<_ACEOF
12429
12430 #
12431 # CONFIG_FILES section.
12432 #
12433
12434 # No need to generate the scripts if there are no CONFIG_FILES.
12435 # This happens for instance when ./config.status config.h
12436 if test -n "\$CONFIG_FILES"; then
12437   # Protect against being on the right side of a sed subst in config.status.
12438   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12439    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12440 s,@SHELL@,$SHELL,;t t
12441 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12442 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12443 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12444 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12445 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12446 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12447 s,@exec_prefix@,$exec_prefix,;t t
12448 s,@prefix@,$prefix,;t t
12449 s,@program_transform_name@,$program_transform_name,;t t
12450 s,@bindir@,$bindir,;t t
12451 s,@sbindir@,$sbindir,;t t
12452 s,@libexecdir@,$libexecdir,;t t
12453 s,@datadir@,$datadir,;t t
12454 s,@sysconfdir@,$sysconfdir,;t t
12455 s,@sharedstatedir@,$sharedstatedir,;t t
12456 s,@localstatedir@,$localstatedir,;t t
12457 s,@libdir@,$libdir,;t t
12458 s,@includedir@,$includedir,;t t
12459 s,@oldincludedir@,$oldincludedir,;t t
12460 s,@infodir@,$infodir,;t t
12461 s,@mandir@,$mandir,;t t
12462 s,@build_alias@,$build_alias,;t t
12463 s,@host_alias@,$host_alias,;t t
12464 s,@target_alias@,$target_alias,;t t
12465 s,@DEFS@,$DEFS,;t t
12466 s,@ECHO_C@,$ECHO_C,;t t
12467 s,@ECHO_N@,$ECHO_N,;t t
12468 s,@ECHO_T@,$ECHO_T,;t t
12469 s,@LIBS@,$LIBS,;t t
12470 s,@AWK@,$AWK,;t t
12471 s,@VERSION@,$VERSION,;t t
12472 s,@VERSIONHI@,$VERSIONHI,;t t
12473 s,@VERSIONLO@,$VERSIONLO,;t t
12474 s,@VERSIONP@,$VERSIONP,;t t
12475 s,@enable_ucsim@,$enable_ucsim,;t t
12476 s,@enable_dlso@,$enable_dlso,;t t
12477 s,@enable_51@,$enable_51,;t t
12478 s,@enable_avr@,$enable_avr,;t t
12479 s,@enable_z80@,$enable_z80,;t t
12480 s,@enable_xa@,$enable_xa,;t t
12481 s,@enable_serio@,$enable_serio,;t t
12482 s,@CXX@,$CXX,;t t
12483 s,@CXXFLAGS@,$CXXFLAGS,;t t
12484 s,@LDFLAGS@,$LDFLAGS,;t t
12485 s,@CPPFLAGS@,$CPPFLAGS,;t t
12486 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12487 s,@EXEEXT@,$EXEEXT,;t t
12488 s,@OBJEXT@,$OBJEXT,;t t
12489 s,@CXXCPP@,$CXXCPP,;t t
12490 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12491 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12492 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12493 s,@RANLIB@,$RANLIB,;t t
12494 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12495 s,@STRIP@,$STRIP,;t t
12496 s,@build@,$build,;t t
12497 s,@build_cpu@,$build_cpu,;t t
12498 s,@build_vendor@,$build_vendor,;t t
12499 s,@build_os@,$build_os,;t t
12500 s,@host@,$host,;t t
12501 s,@host_cpu@,$host_cpu,;t t
12502 s,@host_vendor@,$host_vendor,;t t
12503 s,@host_os@,$host_os,;t t
12504 s,@CC@,$CC,;t t
12505 s,@CFLAGS@,$CFLAGS,;t t
12506 s,@ac_ct_CC@,$ac_ct_CC,;t t
12507 s,@LN_S@,$LN_S,;t t
12508 s,@ECHO@,$ECHO,;t t
12509 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12510 s,@CPP@,$CPP,;t t
12511 s,@EGREP@,$EGREP,;t t
12512 s,@LIBTOOL@,$LIBTOOL,;t t
12513 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
12514 s,@dl_ok@,$dl_ok,;t t
12515 s,@DL@,$DL,;t t
12516 s,@panel_ok@,$panel_ok,;t t
12517 s,@curses_ok@,$curses_ok,;t t
12518 s,@CURSES_LIBS@,$CURSES_LIBS,;t t
12519 s,@M_OR_MM@,$M_OR_MM,;t t
12520 s,@SHAREDLIB@,$SHAREDLIB,;t t
12521 s,@PICOPT@,$PICOPT,;t t
12522 s,@dlso_ok@,$dlso_ok,;t t
12523 s,@LIBOBJS@,$LIBOBJS,;t t
12524 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12525 CEOF
12526
12527 _ACEOF
12528
12529   cat >>$CONFIG_STATUS <<\_ACEOF
12530   # Split the substitutions into bite-sized pieces for seds with
12531   # small command number limits, like on Digital OSF/1 and HP-UX.
12532   ac_max_sed_lines=48
12533   ac_sed_frag=1 # Number of current file.
12534   ac_beg=1 # First line for current file.
12535   ac_end=$ac_max_sed_lines # Line after last line for current file.
12536   ac_more_lines=:
12537   ac_sed_cmds=
12538   while $ac_more_lines; do
12539     if test $ac_beg -gt 1; then
12540       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12541     else
12542       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12543     fi
12544     if test ! -s $tmp/subs.frag; then
12545       ac_more_lines=false
12546     else
12547       # The purpose of the label and of the branching condition is to
12548       # speed up the sed processing (if there are no `@' at all, there
12549       # is no need to browse any of the substitutions).
12550       # These are the two extra sed commands mentioned above.
12551       (echo ':t
12552   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12553       if test -z "$ac_sed_cmds"; then
12554         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12555       else
12556         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12557       fi
12558       ac_sed_frag=`expr $ac_sed_frag + 1`
12559       ac_beg=$ac_end
12560       ac_end=`expr $ac_end + $ac_max_sed_lines`
12561     fi
12562   done
12563   if test -z "$ac_sed_cmds"; then
12564     ac_sed_cmds=cat
12565   fi
12566 fi # test -n "$CONFIG_FILES"
12567
12568 _ACEOF
12569 cat >>$CONFIG_STATUS <<\_ACEOF
12570 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12571   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12572   case $ac_file in
12573   - | *:- | *:-:* ) # input from stdin
12574         cat >$tmp/stdin
12575         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12576         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12577   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12578         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12579   * )   ac_file_in=$ac_file.in ;;
12580   esac
12581
12582   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12583   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12584 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12585          X"$ac_file" : 'X\(//\)[^/]' \| \
12586          X"$ac_file" : 'X\(//\)$' \| \
12587          X"$ac_file" : 'X\(/\)' \| \
12588          .     : '\(.\)' 2>/dev/null ||
12589 echo X"$ac_file" |
12590     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12591           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12592           /^X\(\/\/\)$/{ s//\1/; q; }
12593           /^X\(\/\).*/{ s//\1/; q; }
12594           s/.*/./; q'`
12595   { if $as_mkdir_p; then
12596     mkdir -p "$ac_dir"
12597   else
12598     as_dir="$ac_dir"
12599     as_dirs=
12600     while test ! -d "$as_dir"; do
12601       as_dirs="$as_dir $as_dirs"
12602       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12604          X"$as_dir" : 'X\(//\)[^/]' \| \
12605          X"$as_dir" : 'X\(//\)$' \| \
12606          X"$as_dir" : 'X\(/\)' \| \
12607          .     : '\(.\)' 2>/dev/null ||
12608 echo X"$as_dir" |
12609     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12610           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12611           /^X\(\/\/\)$/{ s//\1/; q; }
12612           /^X\(\/\).*/{ s//\1/; q; }
12613           s/.*/./; q'`
12614     done
12615     test ! -n "$as_dirs" || mkdir $as_dirs
12616   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12617 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12618    { (exit 1); exit 1; }; }; }
12619
12620   ac_builddir=.
12621
12622 if test "$ac_dir" != .; then
12623   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12624   # A "../" for each directory in $ac_dir_suffix.
12625   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12626 else
12627   ac_dir_suffix= ac_top_builddir=
12628 fi
12629
12630 case $srcdir in
12631   .)  # No --srcdir option.  We are building in place.
12632     ac_srcdir=.
12633     if test -z "$ac_top_builddir"; then
12634        ac_top_srcdir=.
12635     else
12636        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12637     fi ;;
12638   [\\/]* | ?:[\\/]* )  # Absolute path.
12639     ac_srcdir=$srcdir$ac_dir_suffix;
12640     ac_top_srcdir=$srcdir ;;
12641   *) # Relative path.
12642     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12643     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12644 esac
12645 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12646 # absolute.
12647 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12648 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12649 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12650 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12651
12652
12653   case $INSTALL in
12654   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12655   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12656   esac
12657
12658   if test x"$ac_file" != x-; then
12659     { echo "$as_me:$LINENO: creating $ac_file" >&5
12660 echo "$as_me: creating $ac_file" >&6;}
12661     rm -f "$ac_file"
12662   fi
12663   # Let's still pretend it is `configure' which instantiates (i.e., don't
12664   # use $as_me), people would be surprised to read:
12665   #    /* config.h.  Generated by config.status.  */
12666   if test x"$ac_file" = x-; then
12667     configure_input=
12668   else
12669     configure_input="$ac_file.  "
12670   fi
12671   configure_input=$configure_input"Generated from `echo $ac_file_in |
12672                                      sed 's,.*/,,'` by configure."
12673
12674   # First look for the input files in the build tree, otherwise in the
12675   # src tree.
12676   ac_file_inputs=`IFS=:
12677     for f in $ac_file_in; do
12678       case $f in
12679       -) echo $tmp/stdin ;;
12680       [\\/$]*)
12681          # Absolute (can't be DOS-style, as IFS=:)
12682          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12683 echo "$as_me: error: cannot find input file: $f" >&2;}
12684    { (exit 1); exit 1; }; }
12685          echo $f;;
12686       *) # Relative
12687          if test -f "$f"; then
12688            # Build tree
12689            echo $f
12690          elif test -f "$srcdir/$f"; then
12691            # Source tree
12692            echo $srcdir/$f
12693          else
12694            # /dev/null tree
12695            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12696 echo "$as_me: error: cannot find input file: $f" >&2;}
12697    { (exit 1); exit 1; }; }
12698          fi;;
12699       esac
12700     done` || { (exit 1); exit 1; }
12701 _ACEOF
12702 cat >>$CONFIG_STATUS <<_ACEOF
12703   sed "$ac_vpsub
12704 $extrasub
12705 _ACEOF
12706 cat >>$CONFIG_STATUS <<\_ACEOF
12707 :t
12708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12709 s,@configure_input@,$configure_input,;t t
12710 s,@srcdir@,$ac_srcdir,;t t
12711 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12712 s,@top_srcdir@,$ac_top_srcdir,;t t
12713 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12714 s,@builddir@,$ac_builddir,;t t
12715 s,@abs_builddir@,$ac_abs_builddir,;t t
12716 s,@top_builddir@,$ac_top_builddir,;t t
12717 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12718 s,@INSTALL@,$ac_INSTALL,;t t
12719 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12720   rm -f $tmp/stdin
12721   if test x"$ac_file" != x-; then
12722     mv $tmp/out $ac_file
12723   else
12724     cat $tmp/out
12725     rm -f $tmp/out
12726   fi
12727
12728 done
12729 _ACEOF
12730 cat >>$CONFIG_STATUS <<\_ACEOF
12731
12732 #
12733 # CONFIG_HEADER section.
12734 #
12735
12736 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12737 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12738 #
12739 # ac_d sets the value in "#define NAME VALUE" lines.
12740 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
12741 ac_dB='[        ].*$,\1#\2'
12742 ac_dC=' '
12743 ac_dD=',;t'
12744 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12745 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12746 ac_uB='$,\1#\2define\3'
12747 ac_uC=' '
12748 ac_uD=',;t'
12749
12750 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12751   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12752   case $ac_file in
12753   - | *:- | *:-:* ) # input from stdin
12754         cat >$tmp/stdin
12755         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12756         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12757   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12758         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12759   * )   ac_file_in=$ac_file.in ;;
12760   esac
12761
12762   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12763 echo "$as_me: creating $ac_file" >&6;}
12764
12765   # First look for the input files in the build tree, otherwise in the
12766   # src tree.
12767   ac_file_inputs=`IFS=:
12768     for f in $ac_file_in; do
12769       case $f in
12770       -) echo $tmp/stdin ;;
12771       [\\/$]*)
12772          # Absolute (can't be DOS-style, as IFS=:)
12773          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12774 echo "$as_me: error: cannot find input file: $f" >&2;}
12775    { (exit 1); exit 1; }; }
12776          echo $f;;
12777       *) # Relative
12778          if test -f "$f"; then
12779            # Build tree
12780            echo $f
12781          elif test -f "$srcdir/$f"; then
12782            # Source tree
12783            echo $srcdir/$f
12784          else
12785            # /dev/null tree
12786            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12787 echo "$as_me: error: cannot find input file: $f" >&2;}
12788    { (exit 1); exit 1; }; }
12789          fi;;
12790       esac
12791     done` || { (exit 1); exit 1; }
12792   # Remove the trailing spaces.
12793   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
12794
12795 _ACEOF
12796
12797 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12798 # `conftest.undefs', that substitutes the proper values into
12799 # config.h.in to produce config.h.  The first handles `#define'
12800 # templates, and the second `#undef' templates.
12801 # And first: Protect against being on the right side of a sed subst in
12802 # config.status.  Protect against being in an unquoted here document
12803 # in config.status.
12804 rm -f conftest.defines conftest.undefs
12805 # Using a here document instead of a string reduces the quoting nightmare.
12806 # Putting comments in sed scripts is not portable.
12807 #
12808 # `end' is used to avoid that the second main sed command (meant for
12809 # 0-ary CPP macros) applies to n-ary macro definitions.
12810 # See the Autoconf documentation for `clear'.
12811 cat >confdef2sed.sed <<\_ACEOF
12812 s/[\\&,]/\\&/g
12813 s,[\\$`],\\&,g
12814 t clear
12815 : clear
12816 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12817 t end
12818 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12819 : end
12820 _ACEOF
12821 # If some macros were called several times there might be several times
12822 # the same #defines, which is useless.  Nevertheless, we may not want to
12823 # sort them, since we want the *last* AC-DEFINE to be honored.
12824 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12825 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12826 rm -f confdef2sed.sed
12827
12828 # This sed command replaces #undef with comments.  This is necessary, for
12829 # example, in the case of _POSIX_SOURCE, which is predefined and required
12830 # on some systems where configure will not decide to define it.
12831 cat >>conftest.undefs <<\_ACEOF
12832 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12833 _ACEOF
12834
12835 # Break up conftest.defines because some shells have a limit on the size
12836 # of here documents, and old seds have small limits too (100 cmds).
12837 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12838 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12839 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12840 echo '  :' >>$CONFIG_STATUS
12841 rm -f conftest.tail
12842 while grep . conftest.defines >/dev/null
12843 do
12844   # Write a limited-size here document to $tmp/defines.sed.
12845   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12846   # Speed up: don't consider the non `#define' lines.
12847   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
12848   # Work around the forget-to-reset-the-flag bug.
12849   echo 't clr' >>$CONFIG_STATUS
12850   echo ': clr' >>$CONFIG_STATUS
12851   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12852   echo 'CEOF
12853   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12854   rm -f $tmp/in
12855   mv $tmp/out $tmp/in
12856 ' >>$CONFIG_STATUS
12857   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12858   rm -f conftest.defines
12859   mv conftest.tail conftest.defines
12860 done
12861 rm -f conftest.defines
12862 echo '  fi # grep' >>$CONFIG_STATUS
12863 echo >>$CONFIG_STATUS
12864
12865 # Break up conftest.undefs because some shells have a limit on the size
12866 # of here documents, and old seds have small limits too (100 cmds).
12867 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12868 rm -f conftest.tail
12869 while grep . conftest.undefs >/dev/null
12870 do
12871   # Write a limited-size here document to $tmp/undefs.sed.
12872   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12873   # Speed up: don't consider the non `#undef'
12874   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12875   # Work around the forget-to-reset-the-flag bug.
12876   echo 't clr' >>$CONFIG_STATUS
12877   echo ': clr' >>$CONFIG_STATUS
12878   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12879   echo 'CEOF
12880   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12881   rm -f $tmp/in
12882   mv $tmp/out $tmp/in
12883 ' >>$CONFIG_STATUS
12884   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12885   rm -f conftest.undefs
12886   mv conftest.tail conftest.undefs
12887 done
12888 rm -f conftest.undefs
12889
12890 cat >>$CONFIG_STATUS <<\_ACEOF
12891   # Let's still pretend it is `configure' which instantiates (i.e., don't
12892   # use $as_me), people would be surprised to read:
12893   #    /* config.h.  Generated by config.status.  */
12894   if test x"$ac_file" = x-; then
12895     echo "/* Generated by configure.  */" >$tmp/config.h
12896   else
12897     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12898   fi
12899   cat $tmp/in >>$tmp/config.h
12900   rm -f $tmp/in
12901   if test x"$ac_file" != x-; then
12902     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12903       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12904 echo "$as_me: $ac_file is unchanged" >&6;}
12905     else
12906       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12907 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12908          X"$ac_file" : 'X\(//\)[^/]' \| \
12909          X"$ac_file" : 'X\(//\)$' \| \
12910          X"$ac_file" : 'X\(/\)' \| \
12911          .     : '\(.\)' 2>/dev/null ||
12912 echo X"$ac_file" |
12913     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12914           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12915           /^X\(\/\/\)$/{ s//\1/; q; }
12916           /^X\(\/\).*/{ s//\1/; q; }
12917           s/.*/./; q'`
12918       { if $as_mkdir_p; then
12919     mkdir -p "$ac_dir"
12920   else
12921     as_dir="$ac_dir"
12922     as_dirs=
12923     while test ! -d "$as_dir"; do
12924       as_dirs="$as_dir $as_dirs"
12925       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12926 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12927          X"$as_dir" : 'X\(//\)[^/]' \| \
12928          X"$as_dir" : 'X\(//\)$' \| \
12929          X"$as_dir" : 'X\(/\)' \| \
12930          .     : '\(.\)' 2>/dev/null ||
12931 echo X"$as_dir" |
12932     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12933           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12934           /^X\(\/\/\)$/{ s//\1/; q; }
12935           /^X\(\/\).*/{ s//\1/; q; }
12936           s/.*/./; q'`
12937     done
12938     test ! -n "$as_dirs" || mkdir $as_dirs
12939   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12940 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12941    { (exit 1); exit 1; }; }; }
12942
12943       rm -f $ac_file
12944       mv $tmp/config.h $ac_file
12945     fi
12946   else
12947     cat $tmp/config.h
12948     rm -f $tmp/config.h
12949   fi
12950 done
12951 _ACEOF
12952
12953 cat >>$CONFIG_STATUS <<\_ACEOF
12954
12955 { (exit 0); exit 0; }
12956 _ACEOF
12957 chmod +x $CONFIG_STATUS
12958 ac_clean_files=$ac_clean_files_save
12959
12960
12961 # configure is writing to config.log, and then calls config.status.
12962 # config.status does its own redirection, appending to config.log.
12963 # Unfortunately, on DOS this fails, as config.log is still kept open
12964 # by configure, so config.status won't be able to write to it; its
12965 # output is simply discarded.  So we exec the FD to /dev/null,
12966 # effectively closing config.log, so it can be properly (re)opened and
12967 # appended to by config.status.  When coming back to configure, we
12968 # need to make the FD available again.
12969 if test "$no_create" != yes; then
12970   ac_cs_success=:
12971   exec 5>/dev/null
12972   $SHELL $CONFIG_STATUS || ac_cs_success=false
12973   exec 5>>config.log
12974   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12975   # would make configure fail if this is the last instruction.
12976   $ac_cs_success || { (exit 1); exit 1; }
12977 fi
12978
12979
12980 #gui.src/portmon.src/Makefile
12981
12982
12983 # End of configure/configure.in