865f6db97f6fab6ae566195e36d38ff12089f524
[fw/sdcc] / sim / ucsim / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
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 \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Find the correct PATH separator.  Usually this is `:', but
244 # DJGPP uses `;' like DOS.
245 if test "X${PATH_SEPARATOR+set}" != Xset; then
246   UNAME=${UNAME-`uname 2>/dev/null`}
247   case X$UNAME in
248     *-DOS) lt_cv_sys_path_separator=';' ;;
249     *)     lt_cv_sys_path_separator=':' ;;
250   esac
251   PATH_SEPARATOR=$lt_cv_sys_path_separator
252 fi
253
254
255 # Check that we are running under the correct shell.
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 case X$ECHO in
259 X*--fallback-echo)
260   # Remove one level of quotation (which was required for Make).
261   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262   ;;
263 esac
264
265 echo=${ECHO-echo}
266 if test "X$1" = X--no-reexec; then
267   # Discard the --no-reexec flag, and continue.
268   shift
269 elif test "X$1" = X--fallback-echo; then
270   # Avoid inline document here, it may be left over
271   :
272 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273   # Yippee, $echo works!
274   :
275 else
276   # Restart under the correct shell.
277   exec $SHELL "$0" --no-reexec ${1+"$@"}
278 fi
279
280 if test "X$1" = X--fallback-echo; then
281   # used as fallback echo
282   shift
283   cat <<EOF
284
285 EOF
286   exit 0
287 fi
288
289 # The HP-UX ksh and POSIX shell print the target directory to stdout
290 # if CDPATH is set.
291 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293 if test -z "$ECHO"; then
294 if test "X${echo_test_string+set}" != Xset; then
295 # find a string as large as possible, as long as the shell can cope with it
296   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299        echo_test_string="`eval $cmd`" &&
300        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301     then
302       break
303     fi
304   done
305 fi
306
307 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309    test "X$echo_testing_string" = "X$echo_test_string"; then
310   :
311 else
312   # The Solaris, AIX, and Digital Unix default echo programs unquote
313   # backslashes.  This makes it impossible to quote backslashes using
314   #   echo "$something" | sed 's/\\/\\\\/g'
315   #
316   # So, first we look for a working echo in the user's PATH.
317
318   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319   for dir in $PATH /usr/ucb; do
320     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323        test "X$echo_testing_string" = "X$echo_test_string"; then
324       echo="$dir/echo"
325       break
326     fi
327   done
328   IFS="$save_ifs"
329
330   if test "X$echo" = Xecho; then
331     # We didn't find a better echo, so look for alternatives.
332     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334        test "X$echo_testing_string" = "X$echo_test_string"; then
335       # This shell has a builtin print -r that does the trick.
336       echo='print -r'
337     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338          test "X$CONFIG_SHELL" != X/bin/ksh; then
339       # If we have ksh, try running configure again with it.
340       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341       export ORIGINAL_CONFIG_SHELL
342       CONFIG_SHELL=/bin/ksh
343       export CONFIG_SHELL
344       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345     else
346       # Try using printf.
347       echo='printf %s\n'
348       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350          test "X$echo_testing_string" = "X$echo_test_string"; then
351         # Cool, printf works
352         :
353       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358         export CONFIG_SHELL
359         SHELL="$CONFIG_SHELL"
360         export SHELL
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363            test "X$echo_testing_string" = 'X\t' &&
364            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365            test "X$echo_testing_string" = "X$echo_test_string"; then
366         echo="$CONFIG_SHELL $0 --fallback-echo"
367       else
368         # maybe with a smaller string...
369         prev=:
370
371         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373           then
374             break
375           fi
376           prev="$cmd"
377         done
378
379         if test "$prev" != 'sed 50q "$0"'; then
380           echo_test_string=`eval $prev`
381           export echo_test_string
382           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383         else
384           # Oops.  We lost completely, so just stick with echo.
385           echo=echo
386         fi
387       fi
388     fi
389   fi
390 fi
391 fi
392
393 # Copy echo and quote the copy suitably for passing to libtool from
394 # the Makefile, instead of quoting the original, which is used later.
395 ECHO=$echo
396 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 fi
399
400
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME=
427 PACKAGE_TARNAME=
428 PACKAGE_VERSION=
429 PACKAGE_STRING=
430 PACKAGE_BUGREPORT=
431
432 ac_unique_file=".version"
433 # Factoring default headers for most tests.
434 ac_includes_default="\
435 #include <stdio.h>
436 #if HAVE_SYS_TYPES_H
437 # include <sys/types.h>
438 #endif
439 #if HAVE_SYS_STAT_H
440 # include <sys/stat.h>
441 #endif
442 #if STDC_HEADERS
443 # include <stdlib.h>
444 # include <stddef.h>
445 #else
446 # if HAVE_STDLIB_H
447 #  include <stdlib.h>
448 # endif
449 #endif
450 #if HAVE_STRING_H
451 # if !STDC_HEADERS && HAVE_MEMORY_H
452 #  include <memory.h>
453 # endif
454 # include <string.h>
455 #endif
456 #if HAVE_STRINGS_H
457 # include <strings.h>
458 #endif
459 #if HAVE_INTTYPES_H
460 # include <inttypes.h>
461 #else
462 # if HAVE_STDINT_H
463 #  include <stdint.h>
464 # endif
465 #endif
466 #if HAVE_UNISTD_H
467 # include <unistd.h>
468 #endif"
469
470 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_hc08 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 docdir LIBOBJS LTLIBOBJS'
471 ac_subst_files=''
472
473 # Initialize some variables set by options.
474 ac_init_help=
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
478 cache_file=/dev/null
479 exec_prefix=NONE
480 no_create=
481 no_recursion=
482 prefix=NONE
483 program_prefix=NONE
484 program_suffix=NONE
485 program_transform_name=s,x,x,
486 silent=
487 site=
488 srcdir=
489 verbose=
490 x_includes=NONE
491 x_libraries=NONE
492
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
510
511 ac_prev=
512 for ac_option
513 do
514   # If the previous option needs an argument, assign it.
515   if test -n "$ac_prev"; then
516     eval "$ac_prev=\$ac_option"
517     ac_prev=
518     continue
519   fi
520
521   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523   # Accept the important Cygnus configure options, so we can diagnose typos.
524
525   case $ac_option in
526
527   -bindir | --bindir | --bindi | --bind | --bin | --bi)
528     ac_prev=bindir ;;
529   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530     bindir=$ac_optarg ;;
531
532   -build | --build | --buil | --bui | --bu)
533     ac_prev=build_alias ;;
534   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535     build_alias=$ac_optarg ;;
536
537   -cache-file | --cache-file | --cache-fil | --cache-fi \
538   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539     ac_prev=cache_file ;;
540   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542     cache_file=$ac_optarg ;;
543
544   --config-cache | -C)
545     cache_file=config.cache ;;
546
547   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548     ac_prev=datadir ;;
549   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550   | --da=*)
551     datadir=$ac_optarg ;;
552
553   -disable-* | --disable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     eval "enable_$ac_feature=no" ;;
561
562   -enable-* | --enable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     case $ac_option in
570       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571       *) ac_optarg=yes ;;
572     esac
573     eval "enable_$ac_feature='$ac_optarg'" ;;
574
575   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577   | --exec | --exe | --ex)
578     ac_prev=exec_prefix ;;
579   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581   | --exec=* | --exe=* | --ex=*)
582     exec_prefix=$ac_optarg ;;
583
584   -gas | --gas | --ga | --g)
585     # Obsolete; use --with-gas.
586     with_gas=yes ;;
587
588   -help | --help | --hel | --he | -h)
589     ac_init_help=long ;;
590   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591     ac_init_help=recursive ;;
592   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593     ac_init_help=short ;;
594
595   -host | --host | --hos | --ho)
596     ac_prev=host_alias ;;
597   -host=* | --host=* | --hos=* | --ho=*)
598     host_alias=$ac_optarg ;;
599
600   -includedir | --includedir | --includedi | --included | --include \
601   | --includ | --inclu | --incl | --inc)
602     ac_prev=includedir ;;
603   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604   | --includ=* | --inclu=* | --incl=* | --inc=*)
605     includedir=$ac_optarg ;;
606
607   -infodir | --infodir | --infodi | --infod | --info | --inf)
608     ac_prev=infodir ;;
609   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610     infodir=$ac_optarg ;;
611
612   -libdir | --libdir | --libdi | --libd)
613     ac_prev=libdir ;;
614   -libdir=* | --libdir=* | --libdi=* | --libd=*)
615     libdir=$ac_optarg ;;
616
617   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618   | --libexe | --libex | --libe)
619     ac_prev=libexecdir ;;
620   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621   | --libexe=* | --libex=* | --libe=*)
622     libexecdir=$ac_optarg ;;
623
624   -localstatedir | --localstatedir | --localstatedi | --localstated \
625   | --localstate | --localstat | --localsta | --localst \
626   | --locals | --local | --loca | --loc | --lo)
627     ac_prev=localstatedir ;;
628   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631     localstatedir=$ac_optarg ;;
632
633   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634     ac_prev=mandir ;;
635   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636     mandir=$ac_optarg ;;
637
638   -nfp | --nfp | --nf)
639     # Obsolete; use --without-fp.
640     with_fp=no ;;
641
642   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643   | --no-cr | --no-c | -n)
644     no_create=yes ;;
645
646   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648     no_recursion=yes ;;
649
650   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652   | --oldin | --oldi | --old | --ol | --o)
653     ac_prev=oldincludedir ;;
654   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657     oldincludedir=$ac_optarg ;;
658
659   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660     ac_prev=prefix ;;
661   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662     prefix=$ac_optarg ;;
663
664   -program-prefix | --program-prefix | --program-prefi | --program-pref \
665   | --program-pre | --program-pr | --program-p)
666     ac_prev=program_prefix ;;
667   -program-prefix=* | --program-prefix=* | --program-prefi=* \
668   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669     program_prefix=$ac_optarg ;;
670
671   -program-suffix | --program-suffix | --program-suffi | --program-suff \
672   | --program-suf | --program-su | --program-s)
673     ac_prev=program_suffix ;;
674   -program-suffix=* | --program-suffix=* | --program-suffi=* \
675   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676     program_suffix=$ac_optarg ;;
677
678   -program-transform-name | --program-transform-name \
679   | --program-transform-nam | --program-transform-na \
680   | --program-transform-n | --program-transform- \
681   | --program-transform | --program-transfor \
682   | --program-transfo | --program-transf \
683   | --program-trans | --program-tran \
684   | --progr-tra | --program-tr | --program-t)
685     ac_prev=program_transform_name ;;
686   -program-transform-name=* | --program-transform-name=* \
687   | --program-transform-nam=* | --program-transform-na=* \
688   | --program-transform-n=* | --program-transform-=* \
689   | --program-transform=* | --program-transfor=* \
690   | --program-transfo=* | --program-transf=* \
691   | --program-trans=* | --program-tran=* \
692   | --progr-tra=* | --program-tr=* | --program-t=*)
693     program_transform_name=$ac_optarg ;;
694
695   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696   | -silent | --silent | --silen | --sile | --sil)
697     silent=yes ;;
698
699   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700     ac_prev=sbindir ;;
701   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702   | --sbi=* | --sb=*)
703     sbindir=$ac_optarg ;;
704
705   -sharedstatedir | --sharedstatedir | --sharedstatedi \
706   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707   | --sharedst | --shareds | --shared | --share | --shar \
708   | --sha | --sh)
709     ac_prev=sharedstatedir ;;
710   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713   | --sha=* | --sh=*)
714     sharedstatedir=$ac_optarg ;;
715
716   -site | --site | --sit)
717     ac_prev=site ;;
718   -site=* | --site=* | --sit=*)
719     site=$ac_optarg ;;
720
721   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722     ac_prev=srcdir ;;
723   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724     srcdir=$ac_optarg ;;
725
726   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727   | --syscon | --sysco | --sysc | --sys | --sy)
728     ac_prev=sysconfdir ;;
729   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731     sysconfdir=$ac_optarg ;;
732
733   -target | --target | --targe | --targ | --tar | --ta | --t)
734     ac_prev=target_alias ;;
735   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736     target_alias=$ac_optarg ;;
737
738   -v | -verbose | --verbose | --verbos | --verbo | --verb)
739     verbose=yes ;;
740
741   -version | --version | --versio | --versi | --vers | -V)
742     ac_init_version=: ;;
743
744   -with-* | --with-*)
745     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746     # Reject names that are not valid shell variable names.
747     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748       { echo "$as_me: error: invalid package name: $ac_package" >&2
749    { (exit 1); exit 1; }; }
750     ac_package=`echo $ac_package| sed 's/-/_/g'`
751     case $ac_option in
752       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753       *) ac_optarg=yes ;;
754     esac
755     eval "with_$ac_package='$ac_optarg'" ;;
756
757   -without-* | --without-*)
758     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759     # Reject names that are not valid shell variable names.
760     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761       { echo "$as_me: error: invalid package name: $ac_package" >&2
762    { (exit 1); exit 1; }; }
763     ac_package=`echo $ac_package | sed 's/-/_/g'`
764     eval "with_$ac_package=no" ;;
765
766   --x)
767     # Obsolete; use --with-x.
768     with_x=yes ;;
769
770   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771   | --x-incl | --x-inc | --x-in | --x-i)
772     ac_prev=x_includes ;;
773   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775     x_includes=$ac_optarg ;;
776
777   -x-libraries | --x-libraries | --x-librarie | --x-librari \
778   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779     ac_prev=x_libraries ;;
780   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782     x_libraries=$ac_optarg ;;
783
784   -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786    { (exit 1); exit 1; }; }
787     ;;
788
789   *=*)
790     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791     # Reject names that are not valid shell variable names.
792     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794    { (exit 1); exit 1; }; }
795     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796     eval "$ac_envvar='$ac_optarg'"
797     export $ac_envvar ;;
798
799   *)
800     # FIXME: should be removed in autoconf 3.0.
801     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805     ;;
806
807   esac
808 done
809
810 if test -n "$ac_prev"; then
811   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812   { echo "$as_me: error: missing argument to $ac_option" >&2
813    { (exit 1); exit 1; }; }
814 fi
815
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
818 do
819   eval ac_val=$`echo $ac_var`
820   case $ac_val in
821     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823    { (exit 1); exit 1; }; };;
824   esac
825 done
826
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829               localstatedir libdir includedir oldincludedir infodir mandir
830 do
831   eval ac_val=$`echo $ac_var`
832   case $ac_val in
833     [\\/$]* | ?:[\\/]* ) ;;
834     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835    { (exit 1); exit 1; }; };;
836   esac
837 done
838
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
842 build=$build_alias
843 host=$host_alias
844 target=$target_alias
845
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848   if test "x$build_alias" = x; then
849     cross_compiling=maybe
850     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851     If a cross compiler is detected then cross compile mode will be used." >&2
852   elif test "x$build_alias" != "x$host_alias"; then
853     cross_compiling=yes
854   fi
855 fi
856
857 ac_tool_prefix=
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860 test "$silent" = yes && exec 6>/dev/null
861
862
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865   ac_srcdir_defaulted=yes
866   # Try the directory containing this script, then its parent.
867   ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869          X"$0" : 'X\(//\)[^/]' \| \
870          X"$0" : 'X\(//\)$' \| \
871          X"$0" : 'X\(/\)' \| \
872          .     : '\(.\)' 2>/dev/null ||
873 echo X"$0" |
874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876           /^X\(\/\/\)$/{ s//\1/; q; }
877           /^X\(\/\).*/{ s//\1/; q; }
878           s/.*/./; q'`
879   srcdir=$ac_confdir
880   if test ! -r $srcdir/$ac_unique_file; then
881     srcdir=..
882   fi
883 else
884   ac_srcdir_defaulted=no
885 fi
886 if test ! -r $srcdir/$ac_unique_file; then
887   if test "$ac_srcdir_defaulted" = yes; then
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889    { (exit 1); exit 1; }; }
890   else
891     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892    { (exit 1); exit 1; }; }
893   fi
894 fi
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897    { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CXXCPP_set=${CXXCPP+set}
928 ac_env_CXXCPP_value=$CXXCPP
929 ac_cv_env_CXXCPP_set=${CXXCPP+set}
930 ac_cv_env_CXXCPP_value=$CXXCPP
931 ac_env_CC_set=${CC+set}
932 ac_env_CC_value=$CC
933 ac_cv_env_CC_set=${CC+set}
934 ac_cv_env_CC_value=$CC
935 ac_env_CFLAGS_set=${CFLAGS+set}
936 ac_env_CFLAGS_value=$CFLAGS
937 ac_cv_env_CFLAGS_set=${CFLAGS+set}
938 ac_cv_env_CFLAGS_value=$CFLAGS
939 ac_env_CPP_set=${CPP+set}
940 ac_env_CPP_value=$CPP
941 ac_cv_env_CPP_set=${CPP+set}
942 ac_cv_env_CPP_value=$CPP
943 ac_env_docdir_set=${docdir+set}
944 ac_env_docdir_value=$docdir
945 ac_cv_env_docdir_set=${docdir+set}
946 ac_cv_env_docdir_value=$docdir
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952   # Omit some internal or obsolete options to make the list less imposing.
953   # This message is too long to be a string in the A/UX 3.1 sh.
954   cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965   -h, --help              display this help and exit
966       --help=short        display options specific to this package
967       --help=recursive    display the short help of all the included packages
968   -V, --version           display version information and exit
969   -q, --quiet, --silent   do not print \`checking...' messages
970       --cache-file=FILE   cache test results in FILE [disabled]
971   -C, --config-cache      alias for \`--cache-file=config.cache'
972   -n, --no-create         do not create output files
973       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977   cat <<_ACEOF
978 Installation directories:
979   --prefix=PREFIX         install architecture-independent files in PREFIX
980                           [$ac_default_prefix]
981   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982                           [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992   --bindir=DIR           user executables [EPREFIX/bin]
993   --sbindir=DIR          system admin executables [EPREFIX/sbin]
994   --libexecdir=DIR       program executables [EPREFIX/libexec]
995   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999   --libdir=DIR           object code libraries [EPREFIX/lib]
1000   --includedir=DIR       C header files [PREFIX/include]
1001   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002   --infodir=DIR          info documentation [PREFIX/info]
1003   --mandir=DIR           man documentation [PREFIX/man]
1004 _ACEOF
1005
1006   cat <<\_ACEOF
1007
1008 System types:
1009   --build=BUILD     configure for building on BUILD [guessed]
1010   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1011 _ACEOF
1012 fi
1013
1014 if test -n "$ac_init_help"; then
1015
1016   cat <<\_ACEOF
1017
1018 Optional Features:
1019   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1020   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1021   --enable-ucsim          compile ucsim frontend
1022   --enable-dlso           compile dynamically loadable shared libraries
1023   --disable-51            do not compile simulator for MCS51
1024   --disable-avr           do not compile simulator for AVR
1025   --enable-z80            compile simulator for Z80
1026   --enable-hc08            compile simulator for hc08
1027   --enable-xa             compile simulator for XA
1028   --enable-serio          compile serio GUI tool (needs curses)
1029   --enable-statistic      compile statistical features (slower simulation)
1030   --enable-shared=PKGS  build shared libraries default=yes
1031   --enable-static=PKGS  build static libraries default=yes
1032   --enable-fast-install=PKGS  optimize for fast installation default=yes
1033   --disable-libtool-lock  avoid locking (might break parallel builds)
1034
1035 Optional Packages:
1036   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1037   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1038   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1039   --with-pic              try to use only PIC/non-PIC objects default=use both
1040
1041 Some influential environment variables:
1042   CXX         C++ compiler command
1043   CXXFLAGS    C++ compiler flags
1044   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1045               nonstandard directory <lib dir>
1046   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1047               headers in a nonstandard directory <include dir>
1048   CXXCPP      C++ preprocessor
1049   CC          C compiler command
1050   CFLAGS      C compiler flags
1051   CPP         C preprocessor
1052   docdir      documentation installation directory
1053
1054 Use these variables to override the choices made by `configure' or to help
1055 it to find libraries and programs with nonstandard names/locations.
1056
1057 _ACEOF
1058 fi
1059
1060 if test "$ac_init_help" = "recursive"; then
1061   # If there are subdirs, report their specific --help.
1062   ac_popdir=`pwd`
1063   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1064     test -d $ac_dir || continue
1065     ac_builddir=.
1066
1067 if test "$ac_dir" != .; then
1068   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1069   # A "../" for each directory in $ac_dir_suffix.
1070   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1071 else
1072   ac_dir_suffix= ac_top_builddir=
1073 fi
1074
1075 case $srcdir in
1076   .)  # No --srcdir option.  We are building in place.
1077     ac_srcdir=.
1078     if test -z "$ac_top_builddir"; then
1079        ac_top_srcdir=.
1080     else
1081        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1082     fi ;;
1083   [\\/]* | ?:[\\/]* )  # Absolute path.
1084     ac_srcdir=$srcdir$ac_dir_suffix;
1085     ac_top_srcdir=$srcdir ;;
1086   *) # Relative path.
1087     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1088     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1089 esac
1090 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1091 # absolute.
1092 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1093 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1094 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1095 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1096
1097     cd $ac_dir
1098     # Check for guested configure; otherwise get Cygnus style configure.
1099     if test -f $ac_srcdir/configure.gnu; then
1100       echo
1101       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1102     elif test -f $ac_srcdir/configure; then
1103       echo
1104       $SHELL $ac_srcdir/configure  --help=recursive
1105     elif test -f $ac_srcdir/configure.ac ||
1106            test -f $ac_srcdir/configure.in; then
1107       echo
1108       $ac_configure --help
1109     else
1110       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1111     fi
1112     cd $ac_popdir
1113   done
1114 fi
1115
1116 test -n "$ac_init_help" && exit 0
1117 if $ac_init_version; then
1118   cat <<\_ACEOF
1119
1120 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1121 Free Software Foundation, Inc.
1122 This configure script is free software; the Free Software Foundation
1123 gives unlimited permission to copy, distribute and modify it.
1124 _ACEOF
1125   exit 0
1126 fi
1127 exec 5>config.log
1128 cat >&5 <<_ACEOF
1129 This file contains any messages produced by compilers while
1130 running configure, to aid debugging if configure makes a mistake.
1131
1132 It was created by $as_me, which was
1133 generated by GNU Autoconf 2.57.  Invocation command line was
1134
1135   $ $0 $@
1136
1137 _ACEOF
1138 {
1139 cat <<_ASUNAME
1140 ## --------- ##
1141 ## Platform. ##
1142 ## --------- ##
1143
1144 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1145 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1146 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1147 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1148 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1149
1150 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1151 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1152
1153 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1154 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1155 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1156 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1157 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1158 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1159 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1160
1161 _ASUNAME
1162
1163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1164 for as_dir in $PATH
1165 do
1166   IFS=$as_save_IFS
1167   test -z "$as_dir" && as_dir=.
1168   echo "PATH: $as_dir"
1169 done
1170
1171 } >&5
1172
1173 cat >&5 <<_ACEOF
1174
1175
1176 ## ----------- ##
1177 ## Core tests. ##
1178 ## ----------- ##
1179
1180 _ACEOF
1181
1182
1183 # Keep a trace of the command line.
1184 # Strip out --no-create and --no-recursion so they do not pile up.
1185 # Strip out --silent because we don't want to record it for future runs.
1186 # Also quote any args containing shell meta-characters.
1187 # Make two passes to allow for proper duplicate-argument suppression.
1188 ac_configure_args=
1189 ac_configure_args0=
1190 ac_configure_args1=
1191 ac_sep=
1192 ac_must_keep_next=false
1193 for ac_pass in 1 2
1194 do
1195   for ac_arg
1196   do
1197     case $ac_arg in
1198     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1199     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200     | -silent | --silent | --silen | --sile | --sil)
1201       continue ;;
1202     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1203       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1204     esac
1205     case $ac_pass in
1206     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1207     2)
1208       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1209       if test $ac_must_keep_next = true; then
1210         ac_must_keep_next=false # Got value, back to normal.
1211       else
1212         case $ac_arg in
1213           *=* | --config-cache | -C | -disable-* | --disable-* \
1214           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1215           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1216           | -with-* | --with-* | -without-* | --without-* | --x)
1217             case "$ac_configure_args0 " in
1218               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1219             esac
1220             ;;
1221           -* ) ac_must_keep_next=true ;;
1222         esac
1223       fi
1224       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1225       # Get rid of the leading space.
1226       ac_sep=" "
1227       ;;
1228     esac
1229   done
1230 done
1231 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1232 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1233
1234 # When interrupted or exit'd, cleanup temporary files, and complete
1235 # config.log.  We remove comments because anyway the quotes in there
1236 # would cause problems or look ugly.
1237 # WARNING: Be sure not to use single quotes in there, as some shells,
1238 # such as our DU 5.0 friend, will then `close' the trap.
1239 trap 'exit_status=$?
1240   # Save into config.log some information that might help in debugging.
1241   {
1242     echo
1243
1244     cat <<\_ASBOX
1245 ## ---------------- ##
1246 ## Cache variables. ##
1247 ## ---------------- ##
1248 _ASBOX
1249     echo
1250     # The following way of writing the cache mishandles newlines in values,
1251 {
1252   (set) 2>&1 |
1253     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1254     *ac_space=\ *)
1255       sed -n \
1256         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1257           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1258       ;;
1259     *)
1260       sed -n \
1261         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1262       ;;
1263     esac;
1264 }
1265     echo
1266
1267     cat <<\_ASBOX
1268 ## ----------------- ##
1269 ## Output variables. ##
1270 ## ----------------- ##
1271 _ASBOX
1272     echo
1273     for ac_var in $ac_subst_vars
1274     do
1275       eval ac_val=$`echo $ac_var`
1276       echo "$ac_var='"'"'$ac_val'"'"'"
1277     done | sort
1278     echo
1279
1280     if test -n "$ac_subst_files"; then
1281       cat <<\_ASBOX
1282 ## ------------- ##
1283 ## Output files. ##
1284 ## ------------- ##
1285 _ASBOX
1286       echo
1287       for ac_var in $ac_subst_files
1288       do
1289         eval ac_val=$`echo $ac_var`
1290         echo "$ac_var='"'"'$ac_val'"'"'"
1291       done | sort
1292       echo
1293     fi
1294
1295     if test -s confdefs.h; then
1296       cat <<\_ASBOX
1297 ## ----------- ##
1298 ## confdefs.h. ##
1299 ## ----------- ##
1300 _ASBOX
1301       echo
1302       sed "/^$/d" confdefs.h | sort
1303       echo
1304     fi
1305     test "$ac_signal" != 0 &&
1306       echo "$as_me: caught signal $ac_signal"
1307     echo "$as_me: exit $exit_status"
1308   } >&5
1309   rm -f core core.* *.core &&
1310   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1311     exit $exit_status
1312      ' 0
1313 for ac_signal in 1 2 13 15; do
1314   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1315 done
1316 ac_signal=0
1317
1318 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1319 rm -rf conftest* confdefs.h
1320 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1321 echo >confdefs.h
1322
1323 # Predefined preprocessor variables.
1324
1325 cat >>confdefs.h <<_ACEOF
1326 #define PACKAGE_NAME "$PACKAGE_NAME"
1327 _ACEOF
1328
1329
1330 cat >>confdefs.h <<_ACEOF
1331 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1332 _ACEOF
1333
1334
1335 cat >>confdefs.h <<_ACEOF
1336 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1337 _ACEOF
1338
1339
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_STRING "$PACKAGE_STRING"
1342 _ACEOF
1343
1344
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1347 _ACEOF
1348
1349
1350 # Let the site file select an alternate cache file if it wants to.
1351 # Prefer explicitly selected file to automatically selected ones.
1352 if test -z "$CONFIG_SITE"; then
1353   if test "x$prefix" != xNONE; then
1354     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1355   else
1356     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1357   fi
1358 fi
1359 for ac_site_file in $CONFIG_SITE; do
1360   if test -r "$ac_site_file"; then
1361     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1362 echo "$as_me: loading site script $ac_site_file" >&6;}
1363     sed 's/^/| /' "$ac_site_file" >&5
1364     . "$ac_site_file"
1365   fi
1366 done
1367
1368 if test -r "$cache_file"; then
1369   # Some versions of bash will fail to source /dev/null (special
1370   # files actually), so we avoid doing that.
1371   if test -f "$cache_file"; then
1372     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1373 echo "$as_me: loading cache $cache_file" >&6;}
1374     case $cache_file in
1375       [\\/]* | ?:[\\/]* ) . $cache_file;;
1376       *)                      . ./$cache_file;;
1377     esac
1378   fi
1379 else
1380   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1381 echo "$as_me: creating cache $cache_file" >&6;}
1382   >$cache_file
1383 fi
1384
1385 # Check that the precious variables saved in the cache have kept the same
1386 # value.
1387 ac_cache_corrupted=false
1388 for ac_var in `(set) 2>&1 |
1389                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1390   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1391   eval ac_new_set=\$ac_env_${ac_var}_set
1392   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1393   eval ac_new_val="\$ac_env_${ac_var}_value"
1394   case $ac_old_set,$ac_new_set in
1395     set,)
1396       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1397 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1398       ac_cache_corrupted=: ;;
1399     ,set)
1400       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1401 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1402       ac_cache_corrupted=: ;;
1403     ,);;
1404     *)
1405       if test "x$ac_old_val" != "x$ac_new_val"; then
1406         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1407 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1408         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1409 echo "$as_me:   former value:  $ac_old_val" >&2;}
1410         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1411 echo "$as_me:   current value: $ac_new_val" >&2;}
1412         ac_cache_corrupted=:
1413       fi;;
1414   esac
1415   # Pass precious variables to config.status.
1416   if test "$ac_new_set" = set; then
1417     case $ac_new_val in
1418     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1419       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1420     *) ac_arg=$ac_var=$ac_new_val ;;
1421     esac
1422     case " $ac_configure_args " in
1423       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1424       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1425     esac
1426   fi
1427 done
1428 if $ac_cache_corrupted; then
1429   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1430 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1431   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1432 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1433    { (exit 1); exit 1; }; }
1434 fi
1435
1436 ac_ext=c
1437 ac_cpp='$CPP $CPPFLAGS'
1438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460           ac_config_headers="$ac_config_headers ddconfig.h:ddconfig_in.h"
1461
1462
1463 for ac_prog in gawk mawk nawk awk
1464 do
1465   # Extract the first word of "$ac_prog", so it can be a program name with args.
1466 set dummy $ac_prog; ac_word=$2
1467 echo "$as_me:$LINENO: checking for $ac_word" >&5
1468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1469 if test "${ac_cv_prog_AWK+set}" = set; then
1470   echo $ECHO_N "(cached) $ECHO_C" >&6
1471 else
1472   if test -n "$AWK"; then
1473   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1474 else
1475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476 for as_dir in $PATH
1477 do
1478   IFS=$as_save_IFS
1479   test -z "$as_dir" && as_dir=.
1480   for ac_exec_ext in '' $ac_executable_extensions; do
1481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1482     ac_cv_prog_AWK="$ac_prog"
1483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1484     break 2
1485   fi
1486 done
1487 done
1488
1489 fi
1490 fi
1491 AWK=$ac_cv_prog_AWK
1492 if test -n "$AWK"; then
1493   echo "$as_me:$LINENO: result: $AWK" >&5
1494 echo "${ECHO_T}$AWK" >&6
1495 else
1496   echo "$as_me:$LINENO: result: no" >&5
1497 echo "${ECHO_T}no" >&6
1498 fi
1499
1500   test -n "$AWK" && break
1501 done
1502
1503
1504 echo "$as_me:$LINENO: checking version of the package" >&5
1505 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1506 if test -f .version; then
1507   VERSION=`cat .version`
1508   echo "$as_me:$LINENO: result: $VERSION" >&5
1509 echo "${ECHO_T}$VERSION" >&6
1510 else
1511   VERSION="0.0.0"
1512   echo "$as_me:$LINENO: result: unknown using 0.0.0" >&5
1513 echo "${ECHO_T}unknown using 0.0.0" >&6
1514 fi
1515 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1516 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1517 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1518
1519
1520
1521
1522 cat >>confdefs.h <<_ACEOF
1523 #define VERSIONSTR "${VERSION}"
1524 _ACEOF
1525
1526 cat >>confdefs.h <<_ACEOF
1527 #define VERSIONHI $VERSIONHI
1528 _ACEOF
1529
1530 cat >>confdefs.h <<_ACEOF
1531 #define VERSIONLO $VERSIONLO
1532 _ACEOF
1533
1534 cat >>confdefs.h <<_ACEOF
1535 #define VERSIONP $VERSIONP
1536 _ACEOF
1537
1538
1539 # Some options
1540 #==============
1541 # Check whether --enable-ucsim or --disable-ucsim was given.
1542 if test "${enable_ucsim+set}" = set; then
1543   enableval="$enable_ucsim"
1544   if test $enable_ucsim != "no"; then
1545     enable_ucsim="yes"
1546 fi
1547 else
1548   #default
1549 enable_ucsim="no"
1550 fi;
1551 # Check whether --enable-dlso or --disable-dlso was given.
1552 if test "${enable_dlso+set}" = set; then
1553   enableval="$enable_dlso"
1554   if test $enable_dlso != "no"; then
1555     enable_dlso="yes"
1556 fi
1557 else
1558   enable_dlso="no"
1559 fi;
1560 # Check whether --enable-51 or --disable-51 was given.
1561 if test "${enable_51+set}" = set; then
1562   enableval="$enable_51"
1563   if test $enable_51 != "no"; then
1564     enable_51="yes"
1565 fi
1566 else
1567   enable_51="yes"
1568 fi;
1569 # Check whether --enable-avr or --disable-avr was given.
1570 if test "${enable_avr+set}" = set; then
1571   enableval="$enable_avr"
1572   if test $enable_avr != "no"; then
1573     enable_avr="yes"
1574 fi
1575 else
1576   enable_avr="yes"
1577 fi;
1578 # Check whether --enable-z80 or --disable-z80 was given.
1579 if test "${enable_z80+set}" = set; then
1580   enableval="$enable_z80"
1581   if test $enable_z80 != "no"; then
1582     enable_z80="yes"
1583 fi
1584 else
1585   enable_z80="no"
1586 fi;
1587 # Check whether --enable-hc08 or --disable-hc08 was given.
1588 if test "${enable_hc08+set}" = set; then
1589   enableval="$enable_hc08"
1590   if test $enable_hc08 != "no"; then
1591     enable_hc08="yes"
1592 fi
1593 else
1594   enable_hc08="yes"
1595 fi;
1596 # Check whether --enable-xa or --disable-xa was given.
1597 if test "${enable_xa+set}" = set; then
1598   enableval="$enable_xa"
1599   if test $enable_xa != "no"; then
1600     enable_xa="yes"
1601 fi
1602 else
1603   enable_xa="no"
1604 fi;
1605 # Check whether --enable-portmon or --disable-portmon was given.
1606 if test "${enable_portmon+set}" = set; then
1607   enableval="$enable_portmon"
1608   if test $enable_serio != "no"; then
1609     enable_serio="yes"
1610 fi
1611 else
1612   enable_serio="yes"
1613 fi;
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623 # Check whether --enable-statistic or --disable-statistic was given.
1624 if test "${enable_statistic+set}" = set; then
1625   enableval="$enable_statistic"
1626   if test $enable_statistic != "no"; then
1627    enable_statistic="yes"
1628 fi
1629 else
1630   enable_statistic="no"
1631 fi;
1632 cat >>confdefs.h <<_ACEOF
1633 #define STATISTIC $enable_statistic
1634 _ACEOF
1635
1636
1637
1638 # Required programs
1639 #-------------------
1640 ac_ext=cc
1641 ac_cpp='$CXXCPP $CPPFLAGS'
1642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1645 if test -n "$ac_tool_prefix"; then
1646   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1647   do
1648     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CXX+set}" = set; then
1653   echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655   if test -n "$CXX"; then
1656   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1657 else
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661   IFS=$as_save_IFS
1662   test -z "$as_dir" && as_dir=.
1663   for ac_exec_ext in '' $ac_executable_extensions; do
1664   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667     break 2
1668   fi
1669 done
1670 done
1671
1672 fi
1673 fi
1674 CXX=$ac_cv_prog_CXX
1675 if test -n "$CXX"; then
1676   echo "$as_me:$LINENO: result: $CXX" >&5
1677 echo "${ECHO_T}$CXX" >&6
1678 else
1679   echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1681 fi
1682
1683     test -n "$CXX" && break
1684   done
1685 fi
1686 if test -z "$CXX"; then
1687   ac_ct_CXX=$CXX
1688   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1689 do
1690   # Extract the first word of "$ac_prog", so it can be a program name with args.
1691 set dummy $ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1695   echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697   if test -n "$ac_ct_CXX"; then
1698   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1699 else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   for ac_exec_ext in '' $ac_executable_extensions; do
1706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707     ac_cv_prog_ac_ct_CXX="$ac_prog"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710   fi
1711 done
1712 done
1713
1714 fi
1715 fi
1716 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1717 if test -n "$ac_ct_CXX"; then
1718   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1719 echo "${ECHO_T}$ac_ct_CXX" >&6
1720 else
1721   echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
1724
1725   test -n "$ac_ct_CXX" && break
1726 done
1727 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1728
1729   CXX=$ac_ct_CXX
1730 fi
1731
1732
1733 # Provide some information about the compiler.
1734 echo "$as_me:$LINENO:" \
1735      "checking for C++ compiler version" >&5
1736 ac_compiler=`set X $ac_compile; echo $2`
1737 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1738   (eval $ac_compiler --version </dev/null >&5) 2>&5
1739   ac_status=$?
1740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741   (exit $ac_status); }
1742 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1743   (eval $ac_compiler -v </dev/null >&5) 2>&5
1744   ac_status=$?
1745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1746   (exit $ac_status); }
1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1748   (eval $ac_compiler -V </dev/null >&5) 2>&5
1749   ac_status=$?
1750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751   (exit $ac_status); }
1752
1753 cat >conftest.$ac_ext <<_ACEOF
1754 #line $LINENO "configure"
1755 /* confdefs.h.  */
1756 _ACEOF
1757 cat confdefs.h >>conftest.$ac_ext
1758 cat >>conftest.$ac_ext <<_ACEOF
1759 /* end confdefs.h.  */
1760
1761 int
1762 main ()
1763 {
1764
1765   ;
1766   return 0;
1767 }
1768 _ACEOF
1769 ac_clean_files_save=$ac_clean_files
1770 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1771 # Try to create an executable without -o first, disregard a.out.
1772 # It will help us diagnose broken compilers, and finding out an intuition
1773 # of exeext.
1774 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1775 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1776 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1777 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1778   (eval $ac_link_default) 2>&5
1779   ac_status=$?
1780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781   (exit $ac_status); }; then
1782   # Find the output, starting from the most likely.  This scheme is
1783 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1784 # resort.
1785
1786 # Be careful to initialize this variable, since it used to be cached.
1787 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1788 ac_cv_exeext=
1789 # b.out is created by i960 compilers.
1790 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1791 do
1792   test -f "$ac_file" || continue
1793   case $ac_file in
1794     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1795         ;;
1796     conftest.$ac_ext )
1797         # This is the source file.
1798         ;;
1799     [ab].out )
1800         # We found the default executable, but exeext='' is most
1801         # certainly right.
1802         break;;
1803     *.* )
1804         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1805         # FIXME: I believe we export ac_cv_exeext for Libtool,
1806         # but it would be cool to find out if it's true.  Does anybody
1807         # maintain Libtool? --akim.
1808         export ac_cv_exeext
1809         break;;
1810     * )
1811         break;;
1812   esac
1813 done
1814 else
1815   echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1817
1818 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1819 See \`config.log' for more details." >&5
1820 echo "$as_me: error: C++ compiler cannot create executables
1821 See \`config.log' for more details." >&2;}
1822    { (exit 77); exit 77; }; }
1823 fi
1824
1825 ac_exeext=$ac_cv_exeext
1826 echo "$as_me:$LINENO: result: $ac_file" >&5
1827 echo "${ECHO_T}$ac_file" >&6
1828
1829 # Check the compiler produces executables we can run.  If not, either
1830 # the compiler is broken, or we cross compile.
1831 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1832 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1833 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1834 # If not cross compiling, check that we can run a simple program.
1835 if test "$cross_compiling" != yes; then
1836   if { ac_try='./$ac_file'
1837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1838   (eval $ac_try) 2>&5
1839   ac_status=$?
1840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841   (exit $ac_status); }; }; then
1842     cross_compiling=no
1843   else
1844     if test "$cross_compiling" = maybe; then
1845         cross_compiling=yes
1846     else
1847         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1848 If you meant to cross compile, use \`--host'.
1849 See \`config.log' for more details." >&5
1850 echo "$as_me: error: cannot run C++ compiled programs.
1851 If you meant to cross compile, use \`--host'.
1852 See \`config.log' for more details." >&2;}
1853    { (exit 1); exit 1; }; }
1854     fi
1855   fi
1856 fi
1857 echo "$as_me:$LINENO: result: yes" >&5
1858 echo "${ECHO_T}yes" >&6
1859
1860 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1861 ac_clean_files=$ac_clean_files_save
1862 # Check the compiler produces executables we can run.  If not, either
1863 # the compiler is broken, or we cross compile.
1864 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1865 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1866 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1867 echo "${ECHO_T}$cross_compiling" >&6
1868
1869 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1870 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1872   (eval $ac_link) 2>&5
1873   ac_status=$?
1874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875   (exit $ac_status); }; then
1876   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1877 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1878 # work properly (i.e., refer to `conftest.exe'), while it won't with
1879 # `rm'.
1880 for ac_file in conftest.exe conftest conftest.*; do
1881   test -f "$ac_file" || continue
1882   case $ac_file in
1883     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1884     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1885           export ac_cv_exeext
1886           break;;
1887     * ) break;;
1888   esac
1889 done
1890 else
1891   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1892 See \`config.log' for more details." >&5
1893 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1894 See \`config.log' for more details." >&2;}
1895    { (exit 1); exit 1; }; }
1896 fi
1897
1898 rm -f conftest$ac_cv_exeext
1899 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1900 echo "${ECHO_T}$ac_cv_exeext" >&6
1901
1902 rm -f conftest.$ac_ext
1903 EXEEXT=$ac_cv_exeext
1904 ac_exeext=$EXEEXT
1905 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1906 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1907 if test "${ac_cv_objext+set}" = set; then
1908   echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910   cat >conftest.$ac_ext <<_ACEOF
1911 #line $LINENO "configure"
1912 /* confdefs.h.  */
1913 _ACEOF
1914 cat confdefs.h >>conftest.$ac_ext
1915 cat >>conftest.$ac_ext <<_ACEOF
1916 /* end confdefs.h.  */
1917
1918 int
1919 main ()
1920 {
1921
1922   ;
1923   return 0;
1924 }
1925 _ACEOF
1926 rm -f conftest.o conftest.obj
1927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1928   (eval $ac_compile) 2>&5
1929   ac_status=$?
1930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931   (exit $ac_status); }; then
1932   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1933   case $ac_file in
1934     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1935     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1936        break;;
1937   esac
1938 done
1939 else
1940   echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1942
1943 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1944 See \`config.log' for more details." >&5
1945 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1946 See \`config.log' for more details." >&2;}
1947    { (exit 1); exit 1; }; }
1948 fi
1949
1950 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1951 fi
1952 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1953 echo "${ECHO_T}$ac_cv_objext" >&6
1954 OBJEXT=$ac_cv_objext
1955 ac_objext=$OBJEXT
1956 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1957 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1958 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   cat >conftest.$ac_ext <<_ACEOF
1962 #line $LINENO "configure"
1963 /* confdefs.h.  */
1964 _ACEOF
1965 cat confdefs.h >>conftest.$ac_ext
1966 cat >>conftest.$ac_ext <<_ACEOF
1967 /* end confdefs.h.  */
1968
1969 int
1970 main ()
1971 {
1972 #ifndef __GNUC__
1973        choke me
1974 #endif
1975
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 rm -f conftest.$ac_objext
1981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1982   (eval $ac_compile) 2>&5
1983   ac_status=$?
1984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985   (exit $ac_status); } &&
1986          { ac_try='test -s conftest.$ac_objext'
1987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1988   (eval $ac_try) 2>&5
1989   ac_status=$?
1990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991   (exit $ac_status); }; }; then
1992   ac_compiler_gnu=yes
1993 else
1994   echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1996
1997 ac_compiler_gnu=no
1998 fi
1999 rm -f conftest.$ac_objext conftest.$ac_ext
2000 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2001
2002 fi
2003 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2004 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2005 GXX=`test $ac_compiler_gnu = yes && echo yes`
2006 ac_test_CXXFLAGS=${CXXFLAGS+set}
2007 ac_save_CXXFLAGS=$CXXFLAGS
2008 CXXFLAGS="-g"
2009 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2010 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2011 if test "${ac_cv_prog_cxx_g+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   cat >conftest.$ac_ext <<_ACEOF
2015 #line $LINENO "configure"
2016 /* confdefs.h.  */
2017 _ACEOF
2018 cat confdefs.h >>conftest.$ac_ext
2019 cat >>conftest.$ac_ext <<_ACEOF
2020 /* end confdefs.h.  */
2021
2022 int
2023 main ()
2024 {
2025
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 rm -f conftest.$ac_objext
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032   (eval $ac_compile) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); } &&
2036          { ac_try='test -s conftest.$ac_objext'
2037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038   (eval $ac_try) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); }; }; then
2042   ac_cv_prog_cxx_g=yes
2043 else
2044   echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2046
2047 ac_cv_prog_cxx_g=no
2048 fi
2049 rm -f conftest.$ac_objext conftest.$ac_ext
2050 fi
2051 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2052 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2053 if test "$ac_test_CXXFLAGS" = set; then
2054   CXXFLAGS=$ac_save_CXXFLAGS
2055 elif test $ac_cv_prog_cxx_g = yes; then
2056   if test "$GXX" = yes; then
2057     CXXFLAGS="-g -O2"
2058   else
2059     CXXFLAGS="-g"
2060   fi
2061 else
2062   if test "$GXX" = yes; then
2063     CXXFLAGS="-O2"
2064   else
2065     CXXFLAGS=
2066   fi
2067 fi
2068 for ac_declaration in \
2069    ''\
2070    '#include <stdlib.h>' \
2071    'extern "C" void std::exit (int) throw (); using std::exit;' \
2072    'extern "C" void std::exit (int); using std::exit;' \
2073    'extern "C" void exit (int) throw ();' \
2074    'extern "C" void exit (int);' \
2075    'void exit (int);'
2076 do
2077   cat >conftest.$ac_ext <<_ACEOF
2078 #line $LINENO "configure"
2079 /* confdefs.h.  */
2080 _ACEOF
2081 cat confdefs.h >>conftest.$ac_ext
2082 cat >>conftest.$ac_ext <<_ACEOF
2083 /* end confdefs.h.  */
2084 #include <stdlib.h>
2085 $ac_declaration
2086 int
2087 main ()
2088 {
2089 exit (42);
2090   ;
2091   return 0;
2092 }
2093 _ACEOF
2094 rm -f conftest.$ac_objext
2095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096   (eval $ac_compile) 2>&5
2097   ac_status=$?
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); } &&
2100          { ac_try='test -s conftest.$ac_objext'
2101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102   (eval $ac_try) 2>&5
2103   ac_status=$?
2104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105   (exit $ac_status); }; }; then
2106   :
2107 else
2108   echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2110
2111 continue
2112 fi
2113 rm -f conftest.$ac_objext conftest.$ac_ext
2114   cat >conftest.$ac_ext <<_ACEOF
2115 #line $LINENO "configure"
2116 /* confdefs.h.  */
2117 _ACEOF
2118 cat confdefs.h >>conftest.$ac_ext
2119 cat >>conftest.$ac_ext <<_ACEOF
2120 /* end confdefs.h.  */
2121 $ac_declaration
2122 int
2123 main ()
2124 {
2125 exit (42);
2126   ;
2127   return 0;
2128 }
2129 _ACEOF
2130 rm -f conftest.$ac_objext
2131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2132   (eval $ac_compile) 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); } &&
2136          { ac_try='test -s conftest.$ac_objext'
2137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138   (eval $ac_try) 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }; }; then
2142   break
2143 else
2144   echo "$as_me: failed program was:" >&5
2145 sed 's/^/| /' conftest.$ac_ext >&5
2146
2147 fi
2148 rm -f conftest.$ac_objext conftest.$ac_ext
2149 done
2150 rm -f conftest*
2151 if test -n "$ac_declaration"; then
2152   echo '#ifdef __cplusplus' >>confdefs.h
2153   echo $ac_declaration      >>confdefs.h
2154   echo '#endif'             >>confdefs.h
2155 fi
2156
2157 ac_ext=c
2158 ac_cpp='$CPP $CPPFLAGS'
2159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2162
2163 ac_ext=cc
2164 ac_cpp='$CXXCPP $CPPFLAGS'
2165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2168 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2169 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2170 if test -z "$CXXCPP"; then
2171   if test "${ac_cv_prog_CXXCPP+set}" = set; then
2172   echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174       # Double quotes because CXXCPP needs to be expanded
2175     for CXXCPP in "$CXX -E" "/lib/cpp"
2176     do
2177       ac_preproc_ok=false
2178 for ac_cxx_preproc_warn_flag in '' yes
2179 do
2180   # Use a header file that comes with gcc, so configuring glibc
2181   # with a fresh cross-compiler works.
2182   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2183   # <limits.h> exists even on freestanding compilers.
2184   # On the NeXT, cc -E runs the code through the compiler's parser,
2185   # not just through cpp. "Syntax error" is here to catch this case.
2186   cat >conftest.$ac_ext <<_ACEOF
2187 #line $LINENO "configure"
2188 /* confdefs.h.  */
2189 _ACEOF
2190 cat confdefs.h >>conftest.$ac_ext
2191 cat >>conftest.$ac_ext <<_ACEOF
2192 /* end confdefs.h.  */
2193 #ifdef __STDC__
2194 # include <limits.h>
2195 #else
2196 # include <assert.h>
2197 #endif
2198                      Syntax error
2199 _ACEOF
2200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2201   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2202   ac_status=$?
2203   grep -v '^ *+' conftest.er1 >conftest.err
2204   rm -f conftest.er1
2205   cat conftest.err >&5
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); } >/dev/null; then
2208   if test -s conftest.err; then
2209     ac_cpp_err=$ac_cxx_preproc_warn_flag
2210   else
2211     ac_cpp_err=
2212   fi
2213 else
2214   ac_cpp_err=yes
2215 fi
2216 if test -z "$ac_cpp_err"; then
2217   :
2218 else
2219   echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.$ac_ext >&5
2221
2222   # Broken: fails on valid input.
2223 continue
2224 fi
2225 rm -f conftest.err conftest.$ac_ext
2226
2227   # OK, works on sane cases.  Now check whether non-existent headers
2228   # can be detected and how.
2229   cat >conftest.$ac_ext <<_ACEOF
2230 #line $LINENO "configure"
2231 /* confdefs.h.  */
2232 _ACEOF
2233 cat confdefs.h >>conftest.$ac_ext
2234 cat >>conftest.$ac_ext <<_ACEOF
2235 /* end confdefs.h.  */
2236 #include <ac_nonexistent.h>
2237 _ACEOF
2238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2239   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2240   ac_status=$?
2241   grep -v '^ *+' conftest.er1 >conftest.err
2242   rm -f conftest.er1
2243   cat conftest.err >&5
2244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245   (exit $ac_status); } >/dev/null; then
2246   if test -s conftest.err; then
2247     ac_cpp_err=$ac_cxx_preproc_warn_flag
2248   else
2249     ac_cpp_err=
2250   fi
2251 else
2252   ac_cpp_err=yes
2253 fi
2254 if test -z "$ac_cpp_err"; then
2255   # Broken: success on invalid input.
2256 continue
2257 else
2258   echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2260
2261   # Passes both tests.
2262 ac_preproc_ok=:
2263 break
2264 fi
2265 rm -f conftest.err conftest.$ac_ext
2266
2267 done
2268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2269 rm -f conftest.err conftest.$ac_ext
2270 if $ac_preproc_ok; then
2271   break
2272 fi
2273
2274     done
2275     ac_cv_prog_CXXCPP=$CXXCPP
2276
2277 fi
2278   CXXCPP=$ac_cv_prog_CXXCPP
2279 else
2280   ac_cv_prog_CXXCPP=$CXXCPP
2281 fi
2282 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2283 echo "${ECHO_T}$CXXCPP" >&6
2284 ac_preproc_ok=false
2285 for ac_cxx_preproc_warn_flag in '' yes
2286 do
2287   # Use a header file that comes with gcc, so configuring glibc
2288   # with a fresh cross-compiler works.
2289   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2290   # <limits.h> exists even on freestanding compilers.
2291   # On the NeXT, cc -E runs the code through the compiler's parser,
2292   # not just through cpp. "Syntax error" is here to catch this case.
2293   cat >conftest.$ac_ext <<_ACEOF
2294 #line $LINENO "configure"
2295 /* confdefs.h.  */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h.  */
2300 #ifdef __STDC__
2301 # include <limits.h>
2302 #else
2303 # include <assert.h>
2304 #endif
2305                      Syntax error
2306 _ACEOF
2307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2308   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2309   ac_status=$?
2310   grep -v '^ *+' conftest.er1 >conftest.err
2311   rm -f conftest.er1
2312   cat conftest.err >&5
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); } >/dev/null; then
2315   if test -s conftest.err; then
2316     ac_cpp_err=$ac_cxx_preproc_warn_flag
2317   else
2318     ac_cpp_err=
2319   fi
2320 else
2321   ac_cpp_err=yes
2322 fi
2323 if test -z "$ac_cpp_err"; then
2324   :
2325 else
2326   echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2328
2329   # Broken: fails on valid input.
2330 continue
2331 fi
2332 rm -f conftest.err conftest.$ac_ext
2333
2334   # OK, works on sane cases.  Now check whether non-existent headers
2335   # can be detected and how.
2336   cat >conftest.$ac_ext <<_ACEOF
2337 #line $LINENO "configure"
2338 /* confdefs.h.  */
2339 _ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h.  */
2343 #include <ac_nonexistent.h>
2344 _ACEOF
2345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2346   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2347   ac_status=$?
2348   grep -v '^ *+' conftest.er1 >conftest.err
2349   rm -f conftest.er1
2350   cat conftest.err >&5
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); } >/dev/null; then
2353   if test -s conftest.err; then
2354     ac_cpp_err=$ac_cxx_preproc_warn_flag
2355   else
2356     ac_cpp_err=
2357   fi
2358 else
2359   ac_cpp_err=yes
2360 fi
2361 if test -z "$ac_cpp_err"; then
2362   # Broken: success on invalid input.
2363 continue
2364 else
2365   echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2367
2368   # Passes both tests.
2369 ac_preproc_ok=:
2370 break
2371 fi
2372 rm -f conftest.err conftest.$ac_ext
2373
2374 done
2375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2376 rm -f conftest.err conftest.$ac_ext
2377 if $ac_preproc_ok; then
2378   :
2379 else
2380   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2381 See \`config.log' for more details." >&5
2382 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2383 See \`config.log' for more details." >&2;}
2384    { (exit 1); exit 1; }; }
2385 fi
2386
2387 ac_ext=c
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392
2393 ac_aux_dir=
2394 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2395   if test -f $ac_dir/install-sh; then
2396     ac_aux_dir=$ac_dir
2397     ac_install_sh="$ac_aux_dir/install-sh -c"
2398     break
2399   elif test -f $ac_dir/install.sh; then
2400     ac_aux_dir=$ac_dir
2401     ac_install_sh="$ac_aux_dir/install.sh -c"
2402     break
2403   elif test -f $ac_dir/shtool; then
2404     ac_aux_dir=$ac_dir
2405     ac_install_sh="$ac_aux_dir/shtool install -c"
2406     break
2407   fi
2408 done
2409 if test -z "$ac_aux_dir"; then
2410   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2411 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2412    { (exit 1); exit 1; }; }
2413 fi
2414 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2415 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2416 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2417
2418 # Find a good install program.  We prefer a C program (faster),
2419 # so one script is as good as another.  But avoid the broken or
2420 # incompatible versions:
2421 # SysV /etc/install, /usr/sbin/install
2422 # SunOS /usr/etc/install
2423 # IRIX /sbin/install
2424 # AIX /bin/install
2425 # AmigaOS /C/install, which installs bootblocks on floppy discs
2426 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2427 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2428 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2429 # ./install, which can be erroneously created by make from ./install.sh.
2430 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2431 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2432 if test -z "$INSTALL"; then
2433 if test "${ac_cv_path_install+set}" = set; then
2434   echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439   IFS=$as_save_IFS
2440   test -z "$as_dir" && as_dir=.
2441   # Account for people who put trailing slashes in PATH elements.
2442 case $as_dir/ in
2443   ./ | .// | /cC/* | \
2444   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2445   /usr/ucb/* ) ;;
2446   *)
2447     # OSF1 and SCO ODT 3.0 have their own names for install.
2448     # Don't use installbsd from OSF since it installs stuff as root
2449     # by default.
2450     for ac_prog in ginstall scoinst install; do
2451       for ac_exec_ext in '' $ac_executable_extensions; do
2452         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2453           if test $ac_prog = install &&
2454             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2455             # AIX install.  It has an incompatible calling convention.
2456             :
2457           elif test $ac_prog = install &&
2458             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2459             # program-specific install script used by HP pwplus--don't use.
2460             :
2461           else
2462             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2463             break 3
2464           fi
2465         fi
2466       done
2467     done
2468     ;;
2469 esac
2470 done
2471
2472
2473 fi
2474   if test "${ac_cv_path_install+set}" = set; then
2475     INSTALL=$ac_cv_path_install
2476   else
2477     # As a last resort, use the slow shell script.  We don't cache a
2478     # path for INSTALL within a source directory, because that will
2479     # break other packages using the cache if that directory is
2480     # removed, or if the path is relative.
2481     INSTALL=$ac_install_sh
2482   fi
2483 fi
2484 echo "$as_me:$LINENO: result: $INSTALL" >&5
2485 echo "${ECHO_T}$INSTALL" >&6
2486
2487 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2488 # It thinks the first close brace ends the variable substitution.
2489 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2490
2491 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2492
2493 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2494
2495 if test -n "$ac_tool_prefix"; then
2496   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2497 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2498 echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2500 if test "${ac_cv_prog_RANLIB+set}" = set; then
2501   echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503   if test -n "$RANLIB"; then
2504   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509   IFS=$as_save_IFS
2510   test -z "$as_dir" && as_dir=.
2511   for ac_exec_ext in '' $ac_executable_extensions; do
2512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515     break 2
2516   fi
2517 done
2518 done
2519
2520 fi
2521 fi
2522 RANLIB=$ac_cv_prog_RANLIB
2523 if test -n "$RANLIB"; then
2524   echo "$as_me:$LINENO: result: $RANLIB" >&5
2525 echo "${ECHO_T}$RANLIB" >&6
2526 else
2527   echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6
2529 fi
2530
2531 fi
2532 if test -z "$ac_cv_prog_RANLIB"; then
2533   ac_ct_RANLIB=$RANLIB
2534   # Extract the first word of "ranlib", so it can be a program name with args.
2535 set dummy ranlib; ac_word=$2
2536 echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2538 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2539   echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541   if test -n "$ac_ct_RANLIB"; then
2542   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2543 else
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 for as_dir in $PATH
2546 do
2547   IFS=$as_save_IFS
2548   test -z "$as_dir" && as_dir=.
2549   for ac_exec_ext in '' $ac_executable_extensions; do
2550   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2551     ac_cv_prog_ac_ct_RANLIB="ranlib"
2552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553     break 2
2554   fi
2555 done
2556 done
2557
2558   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2559 fi
2560 fi
2561 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2562 if test -n "$ac_ct_RANLIB"; then
2563   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2564 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2565 else
2566   echo "$as_me:$LINENO: result: no" >&5
2567 echo "${ECHO_T}no" >&6
2568 fi
2569
2570   RANLIB=$ac_ct_RANLIB
2571 else
2572   RANLIB="$ac_cv_prog_RANLIB"
2573 fi
2574
2575
2576 # Extract the first word of "strip", so it can be a program name with args.
2577 set dummy strip; ac_word=$2
2578 echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2580 if test "${ac_cv_prog_STRIP+set}" = set; then
2581   echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583   if test -n "$STRIP"; then
2584   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589   IFS=$as_save_IFS
2590   test -z "$as_dir" && as_dir=.
2591   for ac_exec_ext in '' $ac_executable_extensions; do
2592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593     ac_cv_prog_STRIP="strip"
2594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595     break 2
2596   fi
2597 done
2598 done
2599
2600   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2601 fi
2602 fi
2603 STRIP=$ac_cv_prog_STRIP
2604 if test -n "$STRIP"; then
2605   echo "$as_me:$LINENO: result: $STRIP" >&5
2606 echo "${ECHO_T}$STRIP" >&6
2607 else
2608   echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6
2610 fi
2611
2612
2613
2614 # Check whether --enable-shared or --disable-shared was given.
2615 if test "${enable_shared+set}" = set; then
2616   enableval="$enable_shared"
2617   p=${PACKAGE-default}
2618 case $enableval in
2619 yes) enable_shared=yes ;;
2620 no) enable_shared=no ;;
2621 *)
2622   enable_shared=no
2623   # Look at the argument we got.  We use all the common list separators.
2624   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2625   for pkg in $enableval; do
2626     if test "X$pkg" = "X$p"; then
2627       enable_shared=yes
2628     fi
2629   done
2630   IFS="$ac_save_ifs"
2631   ;;
2632 esac
2633 else
2634   enable_shared=yes
2635 fi;
2636 # Check whether --enable-static or --disable-static was given.
2637 if test "${enable_static+set}" = set; then
2638   enableval="$enable_static"
2639   p=${PACKAGE-default}
2640 case $enableval in
2641 yes) enable_static=yes ;;
2642 no) enable_static=no ;;
2643 *)
2644   enable_static=no
2645   # Look at the argument we got.  We use all the common list separators.
2646   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2647   for pkg in $enableval; do
2648     if test "X$pkg" = "X$p"; then
2649       enable_static=yes
2650     fi
2651   done
2652   IFS="$ac_save_ifs"
2653   ;;
2654 esac
2655 else
2656   enable_static=yes
2657 fi;
2658 # Check whether --enable-fast-install or --disable-fast-install was given.
2659 if test "${enable_fast_install+set}" = set; then
2660   enableval="$enable_fast_install"
2661   p=${PACKAGE-default}
2662 case $enableval in
2663 yes) enable_fast_install=yes ;;
2664 no) enable_fast_install=no ;;
2665 *)
2666   enable_fast_install=no
2667   # Look at the argument we got.  We use all the common list separators.
2668   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2669   for pkg in $enableval; do
2670     if test "X$pkg" = "X$p"; then
2671       enable_fast_install=yes
2672     fi
2673   done
2674   IFS="$ac_save_ifs"
2675   ;;
2676 esac
2677 else
2678   enable_fast_install=yes
2679 fi;
2680 # Make sure we can run config.sub.
2681 $ac_config_sub sun4 >/dev/null 2>&1 ||
2682   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2683 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2684    { (exit 1); exit 1; }; }
2685
2686 echo "$as_me:$LINENO: checking build system type" >&5
2687 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2688 if test "${ac_cv_build+set}" = set; then
2689   echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691   ac_cv_build_alias=$build_alias
2692 test -z "$ac_cv_build_alias" &&
2693   ac_cv_build_alias=`$ac_config_guess`
2694 test -z "$ac_cv_build_alias" &&
2695   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2696 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2697    { (exit 1); exit 1; }; }
2698 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2699   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2700 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2701    { (exit 1); exit 1; }; }
2702
2703 fi
2704 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2705 echo "${ECHO_T}$ac_cv_build" >&6
2706 build=$ac_cv_build
2707 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2708 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2709 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2710
2711
2712 echo "$as_me:$LINENO: checking host system type" >&5
2713 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2714 if test "${ac_cv_host+set}" = set; then
2715   echo $ECHO_N "(cached) $ECHO_C" >&6
2716 else
2717   ac_cv_host_alias=$host_alias
2718 test -z "$ac_cv_host_alias" &&
2719   ac_cv_host_alias=$ac_cv_build_alias
2720 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2721   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2722 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2723    { (exit 1); exit 1; }; }
2724
2725 fi
2726 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2727 echo "${ECHO_T}$ac_cv_host" >&6
2728 host=$ac_cv_host
2729 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2730 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2731 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2732
2733
2734 ac_ext=c
2735 ac_cpp='$CPP $CPPFLAGS'
2736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739 if test -n "$ac_tool_prefix"; then
2740   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2742 echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744 if test "${ac_cv_prog_CC+set}" = set; then
2745   echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747   if test -n "$CC"; then
2748   ac_cv_prog_CC="$CC" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753   IFS=$as_save_IFS
2754   test -z "$as_dir" && as_dir=.
2755   for ac_exec_ext in '' $ac_executable_extensions; do
2756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759     break 2
2760   fi
2761 done
2762 done
2763
2764 fi
2765 fi
2766 CC=$ac_cv_prog_CC
2767 if test -n "$CC"; then
2768   echo "$as_me:$LINENO: result: $CC" >&5
2769 echo "${ECHO_T}$CC" >&6
2770 else
2771   echo "$as_me:$LINENO: result: no" >&5
2772 echo "${ECHO_T}no" >&6
2773 fi
2774
2775 fi
2776 if test -z "$ac_cv_prog_CC"; then
2777   ac_ct_CC=$CC
2778   # Extract the first word of "gcc", so it can be a program name with args.
2779 set dummy gcc; ac_word=$2
2780 echo "$as_me:$LINENO: checking for $ac_word" >&5
2781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2782 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2783   echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785   if test -n "$ac_ct_CC"; then
2786   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791   IFS=$as_save_IFS
2792   test -z "$as_dir" && as_dir=.
2793   for ac_exec_ext in '' $ac_executable_extensions; do
2794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795     ac_cv_prog_ac_ct_CC="gcc"
2796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797     break 2
2798   fi
2799 done
2800 done
2801
2802 fi
2803 fi
2804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2805 if test -n "$ac_ct_CC"; then
2806   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2807 echo "${ECHO_T}$ac_ct_CC" >&6
2808 else
2809   echo "$as_me:$LINENO: result: no" >&5
2810 echo "${ECHO_T}no" >&6
2811 fi
2812
2813   CC=$ac_ct_CC
2814 else
2815   CC="$ac_cv_prog_CC"
2816 fi
2817
2818 if test -z "$CC"; then
2819   if test -n "$ac_tool_prefix"; then
2820   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2821 set dummy ${ac_tool_prefix}cc; ac_word=$2
2822 echo "$as_me:$LINENO: checking for $ac_word" >&5
2823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2824 if test "${ac_cv_prog_CC+set}" = set; then
2825   echo $ECHO_N "(cached) $ECHO_C" >&6
2826 else
2827   if test -n "$CC"; then
2828   ac_cv_prog_CC="$CC" # Let the user override the test.
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2832 do
2833   IFS=$as_save_IFS
2834   test -z "$as_dir" && as_dir=.
2835   for ac_exec_ext in '' $ac_executable_extensions; do
2836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837     ac_cv_prog_CC="${ac_tool_prefix}cc"
2838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839     break 2
2840   fi
2841 done
2842 done
2843
2844 fi
2845 fi
2846 CC=$ac_cv_prog_CC
2847 if test -n "$CC"; then
2848   echo "$as_me:$LINENO: result: $CC" >&5
2849 echo "${ECHO_T}$CC" >&6
2850 else
2851   echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6
2853 fi
2854
2855 fi
2856 if test -z "$ac_cv_prog_CC"; then
2857   ac_ct_CC=$CC
2858   # Extract the first word of "cc", so it can be a program name with args.
2859 set dummy cc; ac_word=$2
2860 echo "$as_me:$LINENO: checking for $ac_word" >&5
2861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2863   echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865   if test -n "$ac_ct_CC"; then
2866   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871   IFS=$as_save_IFS
2872   test -z "$as_dir" && as_dir=.
2873   for ac_exec_ext in '' $ac_executable_extensions; do
2874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875     ac_cv_prog_ac_ct_CC="cc"
2876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877     break 2
2878   fi
2879 done
2880 done
2881
2882 fi
2883 fi
2884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2885 if test -n "$ac_ct_CC"; then
2886   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2887 echo "${ECHO_T}$ac_ct_CC" >&6
2888 else
2889   echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6
2891 fi
2892
2893   CC=$ac_ct_CC
2894 else
2895   CC="$ac_cv_prog_CC"
2896 fi
2897
2898 fi
2899 if test -z "$CC"; then
2900   # Extract the first word of "cc", so it can be a program name with args.
2901 set dummy cc; ac_word=$2
2902 echo "$as_me:$LINENO: checking for $ac_word" >&5
2903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2904 if test "${ac_cv_prog_CC+set}" = set; then
2905   echo $ECHO_N "(cached) $ECHO_C" >&6
2906 else
2907   if test -n "$CC"; then
2908   ac_cv_prog_CC="$CC" # Let the user override the test.
2909 else
2910   ac_prog_rejected=no
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914   IFS=$as_save_IFS
2915   test -z "$as_dir" && as_dir=.
2916   for ac_exec_ext in '' $ac_executable_extensions; do
2917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2919        ac_prog_rejected=yes
2920        continue
2921      fi
2922     ac_cv_prog_CC="cc"
2923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924     break 2
2925   fi
2926 done
2927 done
2928
2929 if test $ac_prog_rejected = yes; then
2930   # We found a bogon in the path, so make sure we never use it.
2931   set dummy $ac_cv_prog_CC
2932   shift
2933   if test $# != 0; then
2934     # We chose a different compiler from the bogus one.
2935     # However, it has the same basename, so the bogon will be chosen
2936     # first if we set CC to just the basename; use the full file name.
2937     shift
2938     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2939   fi
2940 fi
2941 fi
2942 fi
2943 CC=$ac_cv_prog_CC
2944 if test -n "$CC"; then
2945   echo "$as_me:$LINENO: result: $CC" >&5
2946 echo "${ECHO_T}$CC" >&6
2947 else
2948   echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6
2950 fi
2951
2952 fi
2953 if test -z "$CC"; then
2954   if test -n "$ac_tool_prefix"; then
2955   for ac_prog in cl
2956   do
2957     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2959 echo "$as_me:$LINENO: checking for $ac_word" >&5
2960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2961 if test "${ac_cv_prog_CC+set}" = set; then
2962   echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964   if test -n "$CC"; then
2965   ac_cv_prog_CC="$CC" # Let the user override the test.
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2969 do
2970   IFS=$as_save_IFS
2971   test -z "$as_dir" && as_dir=.
2972   for ac_exec_ext in '' $ac_executable_extensions; do
2973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2974     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976     break 2
2977   fi
2978 done
2979 done
2980
2981 fi
2982 fi
2983 CC=$ac_cv_prog_CC
2984 if test -n "$CC"; then
2985   echo "$as_me:$LINENO: result: $CC" >&5
2986 echo "${ECHO_T}$CC" >&6
2987 else
2988   echo "$as_me:$LINENO: result: no" >&5
2989 echo "${ECHO_T}no" >&6
2990 fi
2991
2992     test -n "$CC" && break
2993   done
2994 fi
2995 if test -z "$CC"; then
2996   ac_ct_CC=$CC
2997   for ac_prog in cl
2998 do
2999   # Extract the first word of "$ac_prog", so it can be a program name with args.
3000 set dummy $ac_prog; ac_word=$2
3001 echo "$as_me:$LINENO: checking for $ac_word" >&5
3002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3004   echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006   if test -n "$ac_ct_CC"; then
3007   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3011 do
3012   IFS=$as_save_IFS
3013   test -z "$as_dir" && as_dir=.
3014   for ac_exec_ext in '' $ac_executable_extensions; do
3015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016     ac_cv_prog_ac_ct_CC="$ac_prog"
3017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3018     break 2
3019   fi
3020 done
3021 done
3022
3023 fi
3024 fi
3025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3026 if test -n "$ac_ct_CC"; then
3027   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3028 echo "${ECHO_T}$ac_ct_CC" >&6
3029 else
3030   echo "$as_me:$LINENO: result: no" >&5
3031 echo "${ECHO_T}no" >&6
3032 fi
3033
3034   test -n "$ac_ct_CC" && break
3035 done
3036
3037   CC=$ac_ct_CC
3038 fi
3039
3040 fi
3041
3042
3043 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3044 See \`config.log' for more details." >&5
3045 echo "$as_me: error: no acceptable C compiler found in \$PATH
3046 See \`config.log' for more details." >&2;}
3047    { (exit 1); exit 1; }; }
3048
3049 # Provide some information about the compiler.
3050 echo "$as_me:$LINENO:" \
3051      "checking for C compiler version" >&5
3052 ac_compiler=`set X $ac_compile; echo $2`
3053 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3054   (eval $ac_compiler --version </dev/null >&5) 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }
3058 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3059   (eval $ac_compiler -v </dev/null >&5) 2>&5
3060   ac_status=$?
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); }
3063 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3064   (eval $ac_compiler -V </dev/null >&5) 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }
3068
3069 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3070 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3071 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3072   echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074   cat >conftest.$ac_ext <<_ACEOF
3075 #line $LINENO "configure"
3076 /* confdefs.h.  */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h.  */
3081
3082 int
3083 main ()
3084 {
3085 #ifndef __GNUC__
3086        choke me
3087 #endif
3088
3089   ;
3090   return 0;
3091 }
3092 _ACEOF
3093 rm -f conftest.$ac_objext
3094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3095   (eval $ac_compile) 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); } &&
3099          { ac_try='test -s conftest.$ac_objext'
3100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101   (eval $ac_try) 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }; }; then
3105   ac_compiler_gnu=yes
3106 else
3107   echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3109
3110 ac_compiler_gnu=no
3111 fi
3112 rm -f conftest.$ac_objext conftest.$ac_ext
3113 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3114
3115 fi
3116 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3117 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3118 GCC=`test $ac_compiler_gnu = yes && echo yes`
3119 ac_test_CFLAGS=${CFLAGS+set}
3120 ac_save_CFLAGS=$CFLAGS
3121 CFLAGS="-g"
3122 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3123 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3124 if test "${ac_cv_prog_cc_g+set}" = set; then
3125   echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127   cat >conftest.$ac_ext <<_ACEOF
3128 #line $LINENO "configure"
3129 /* confdefs.h.  */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h.  */
3134
3135 int
3136 main ()
3137 {
3138
3139   ;
3140   return 0;
3141 }
3142 _ACEOF
3143 rm -f conftest.$ac_objext
3144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145   (eval $ac_compile) 2>&5
3146   ac_status=$?
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); } &&
3149          { ac_try='test -s conftest.$ac_objext'
3150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151   (eval $ac_try) 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }; }; then
3155   ac_cv_prog_cc_g=yes
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160 ac_cv_prog_cc_g=no
3161 fi
3162 rm -f conftest.$ac_objext conftest.$ac_ext
3163 fi
3164 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3165 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3166 if test "$ac_test_CFLAGS" = set; then
3167   CFLAGS=$ac_save_CFLAGS
3168 elif test $ac_cv_prog_cc_g = yes; then
3169   if test "$GCC" = yes; then
3170     CFLAGS="-g -O2"
3171   else
3172     CFLAGS="-g"
3173   fi
3174 else
3175   if test "$GCC" = yes; then
3176     CFLAGS="-O2"
3177   else
3178     CFLAGS=
3179   fi
3180 fi
3181 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3182 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3183 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   ac_cv_prog_cc_stdc=no
3187 ac_save_CC=$CC
3188 cat >conftest.$ac_ext <<_ACEOF
3189 #line $LINENO "configure"
3190 /* confdefs.h.  */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h.  */
3195 #include <stdarg.h>
3196 #include <stdio.h>
3197 #include <sys/types.h>
3198 #include <sys/stat.h>
3199 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3200 struct buf { int x; };
3201 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3202 static char *e (p, i)
3203      char **p;
3204      int i;
3205 {
3206   return p[i];
3207 }
3208 static char *f (char * (*g) (char **, int), char **p, ...)
3209 {
3210   char *s;
3211   va_list v;
3212   va_start (v,p);
3213   s = g (p, va_arg (v,int));
3214   va_end (v);
3215   return s;
3216 }
3217 int test (int i, double x);
3218 struct s1 {int (*f) (int a);};
3219 struct s2 {int (*f) (double a);};
3220 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3221 int argc;
3222 char **argv;
3223 int
3224 main ()
3225 {
3226 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3227   ;
3228   return 0;
3229 }
3230 _ACEOF
3231 # Don't try gcc -ansi; that turns off useful extensions and
3232 # breaks some systems' header files.
3233 # AIX                   -qlanglvl=ansi
3234 # Ultrix and OSF/1      -std1
3235 # HP-UX 10.20 and later -Ae
3236 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3237 # SVR4                  -Xc -D__EXTENSIONS__
3238 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3239 do
3240   CC="$ac_save_CC $ac_arg"
3241   rm -f conftest.$ac_objext
3242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3243   (eval $ac_compile) 2>&5
3244   ac_status=$?
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); } &&
3247          { ac_try='test -s conftest.$ac_objext'
3248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249   (eval $ac_try) 2>&5
3250   ac_status=$?
3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); }; }; then
3253   ac_cv_prog_cc_stdc=$ac_arg
3254 break
3255 else
3256   echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3258
3259 fi
3260 rm -f conftest.$ac_objext
3261 done
3262 rm -f conftest.$ac_ext conftest.$ac_objext
3263 CC=$ac_save_CC
3264
3265 fi
3266
3267 case "x$ac_cv_prog_cc_stdc" in
3268   x|xno)
3269     echo "$as_me:$LINENO: result: none needed" >&5
3270 echo "${ECHO_T}none needed" >&6 ;;
3271   *)
3272     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3273 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3274     CC="$CC $ac_cv_prog_cc_stdc" ;;
3275 esac
3276
3277 # Some people use a C++ compiler to compile C.  Since we use `exit',
3278 # in C++ we need to declare it.  In case someone uses the same compiler
3279 # for both compiling C and C++ we need to have the C++ compiler decide
3280 # the declaration of exit, since it's the most demanding environment.
3281 cat >conftest.$ac_ext <<_ACEOF
3282 #ifndef __cplusplus
3283   choke me
3284 #endif
3285 _ACEOF
3286 rm -f conftest.$ac_objext
3287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3288   (eval $ac_compile) 2>&5
3289   ac_status=$?
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); } &&
3292          { ac_try='test -s conftest.$ac_objext'
3293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294   (eval $ac_try) 2>&5
3295   ac_status=$?
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); }; }; then
3298   for ac_declaration in \
3299    ''\
3300    '#include <stdlib.h>' \
3301    'extern "C" void std::exit (int) throw (); using std::exit;' \
3302    'extern "C" void std::exit (int); using std::exit;' \
3303    'extern "C" void exit (int) throw ();' \
3304    'extern "C" void exit (int);' \
3305    'void exit (int);'
3306 do
3307   cat >conftest.$ac_ext <<_ACEOF
3308 #line $LINENO "configure"
3309 /* confdefs.h.  */
3310 _ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h.  */
3314 #include <stdlib.h>
3315 $ac_declaration
3316 int
3317 main ()
3318 {
3319 exit (42);
3320   ;
3321   return 0;
3322 }
3323 _ACEOF
3324 rm -f conftest.$ac_objext
3325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3326   (eval $ac_compile) 2>&5
3327   ac_status=$?
3328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329   (exit $ac_status); } &&
3330          { ac_try='test -s conftest.$ac_objext'
3331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332   (eval $ac_try) 2>&5
3333   ac_status=$?
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); }; }; then
3336   :
3337 else
3338   echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3340
3341 continue
3342 fi
3343 rm -f conftest.$ac_objext conftest.$ac_ext
3344   cat >conftest.$ac_ext <<_ACEOF
3345 #line $LINENO "configure"
3346 /* confdefs.h.  */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h.  */
3351 $ac_declaration
3352 int
3353 main ()
3354 {
3355 exit (42);
3356   ;
3357   return 0;
3358 }
3359 _ACEOF
3360 rm -f conftest.$ac_objext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362   (eval $ac_compile) 2>&5
3363   ac_status=$?
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } &&
3366          { ac_try='test -s conftest.$ac_objext'
3367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368   (eval $ac_try) 2>&5
3369   ac_status=$?
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); }; }; then
3372   break
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377 fi
3378 rm -f conftest.$ac_objext conftest.$ac_ext
3379 done
3380 rm -f conftest*
3381 if test -n "$ac_declaration"; then
3382   echo '#ifdef __cplusplus' >>confdefs.h
3383   echo $ac_declaration      >>confdefs.h
3384   echo '#endif'             >>confdefs.h
3385 fi
3386
3387 else
3388   echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391 fi
3392 rm -f conftest.$ac_objext conftest.$ac_ext
3393 ac_ext=c
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398
3399 # Find the correct PATH separator.  Usually this is `:', but
3400 # DJGPP uses `;' like DOS.
3401 if test "X${PATH_SEPARATOR+set}" != Xset; then
3402   UNAME=${UNAME-`uname 2>/dev/null`}
3403   case X$UNAME in
3404     *-DOS) lt_cv_sys_path_separator=';' ;;
3405     *)     lt_cv_sys_path_separator=':' ;;
3406   esac
3407   PATH_SEPARATOR=$lt_cv_sys_path_separator
3408 fi
3409
3410
3411 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3412 if test "${with_gnu_ld+set}" = set; then
3413   withval="$with_gnu_ld"
3414   test "$withval" = no || with_gnu_ld=yes
3415 else
3416   with_gnu_ld=no
3417 fi;
3418 ac_prog=ld
3419 if test "$GCC" = yes; then
3420   # Check if gcc -print-prog-name=ld gives a path.
3421   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3422 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3423   case $host in
3424   *-*-mingw*)
3425     # gcc leaves a trailing carriage return which upsets mingw
3426     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3427   *)
3428     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3429   esac
3430   case $ac_prog in
3431     # Accept absolute paths.
3432     [\\/]* | [A-Za-z]:[\\/]*)
3433       re_direlt='/[^/][^/]*/\.\./'
3434       # Canonicalize the path of ld
3435       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3436       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3437         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3438       done
3439       test -z "$LD" && LD="$ac_prog"
3440       ;;
3441   "")
3442     # If it fails, then pretend we aren't using GCC.
3443     ac_prog=ld
3444     ;;
3445   *)
3446     # If it is relative, then search for the first ld in PATH.
3447     with_gnu_ld=unknown
3448     ;;
3449   esac
3450 elif test "$with_gnu_ld" = yes; then
3451   echo "$as_me:$LINENO: checking for GNU ld" >&5
3452 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3453 else
3454   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3455 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3456 fi
3457 if test "${lt_cv_path_LD+set}" = set; then
3458   echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460   if test -z "$LD"; then
3461   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3462   for ac_dir in $PATH; do
3463     test -z "$ac_dir" && ac_dir=.
3464     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3465       lt_cv_path_LD="$ac_dir/$ac_prog"
3466       # Check to see if the program is GNU ld.  I'd rather use --version,
3467       # but apparently some GNU ld's only accept -v.
3468       # Break only if it was the GNU/non-GNU ld that we prefer.
3469       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3470         test "$with_gnu_ld" != no && break
3471       else
3472         test "$with_gnu_ld" != yes && break
3473       fi
3474     fi
3475   done
3476   IFS="$ac_save_ifs"
3477 else
3478   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3479 fi
3480 fi
3481
3482 LD="$lt_cv_path_LD"
3483 if test -n "$LD"; then
3484   echo "$as_me:$LINENO: result: $LD" >&5
3485 echo "${ECHO_T}$LD" >&6
3486 else
3487   echo "$as_me:$LINENO: result: no" >&5
3488 echo "${ECHO_T}no" >&6
3489 fi
3490 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3491 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3492    { (exit 1); exit 1; }; }
3493 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3494 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3495 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3496   echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3499 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3500   lt_cv_prog_gnu_ld=yes
3501 else
3502   lt_cv_prog_gnu_ld=no
3503 fi
3504 fi
3505 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3506 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3507 with_gnu_ld=$lt_cv_prog_gnu_ld
3508
3509
3510 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3511 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3512 if test "${lt_cv_ld_reload_flag+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   lt_cv_ld_reload_flag='-r'
3516 fi
3517 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3518 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3519 reload_flag=$lt_cv_ld_reload_flag
3520 test -n "$reload_flag" && reload_flag=" $reload_flag"
3521
3522 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3523 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3524 if test "${lt_cv_path_NM+set}" = set; then
3525   echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527   if test -n "$NM"; then
3528   # Let the user override the test.
3529   lt_cv_path_NM="$NM"
3530 else
3531   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3532   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3533     test -z "$ac_dir" && ac_dir=.
3534     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3535     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3536       # Check to see if the nm accepts a BSD-compat flag.
3537       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3538       #   nm: unknown option "B" ignored
3539       # Tru64's nm complains that /dev/null is an invalid object file
3540       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3541         lt_cv_path_NM="$tmp_nm -B"
3542         break
3543       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3544         lt_cv_path_NM="$tmp_nm -p"
3545         break
3546       else
3547         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3548         continue # so that we can try to find one that supports BSD flags
3549       fi
3550     fi
3551   done
3552   IFS="$ac_save_ifs"
3553   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3554 fi
3555 fi
3556
3557 NM="$lt_cv_path_NM"
3558 echo "$as_me:$LINENO: result: $NM" >&5
3559 echo "${ECHO_T}$NM" >&6
3560
3561 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3562 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3563 LN_S=$as_ln_s
3564 if test "$LN_S" = "ln -s"; then
3565   echo "$as_me:$LINENO: result: yes" >&5
3566 echo "${ECHO_T}yes" >&6
3567 else
3568   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3569 echo "${ECHO_T}no, using $LN_S" >&6
3570 fi
3571
3572 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3573 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3574 if test "${lt_cv_deplibs_check_method+set}" = set; then
3575   echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577   lt_cv_file_magic_cmd='$MAGIC_CMD'
3578 lt_cv_file_magic_test_file=
3579 lt_cv_deplibs_check_method='unknown'
3580 # Need to set the preceding variable on all platforms that support
3581 # interlibrary dependencies.
3582 # 'none' -- dependencies not supported.
3583 # `unknown' -- same as none, but documents that we really don't know.
3584 # 'pass_all' -- all dependencies passed with no checks.
3585 # 'test_compile' -- check by making test program.
3586 # 'file_magic [[regex]]' -- check by looking for files in library path
3587 # which responds to the $file_magic_cmd with a given egrep regex.
3588 # If you have `file' or equivalent on your system and you're not sure
3589 # whether `pass_all' will *always* work, you probably want this one.
3590
3591 case $host_os in
3592 aix4* | aix5*)
3593   lt_cv_deplibs_check_method=pass_all
3594   ;;
3595
3596 beos*)
3597   lt_cv_deplibs_check_method=pass_all
3598   ;;
3599
3600 bsdi4*)
3601   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3602   lt_cv_file_magic_cmd='/usr/bin/file -L'
3603   lt_cv_file_magic_test_file=/shlib/libc.so
3604   ;;
3605
3606 cygwin* | mingw* | pw32*)
3607   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3608   lt_cv_file_magic_cmd='$OBJDUMP -f'
3609   ;;
3610
3611 darwin* | rhapsody*)
3612   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3613   lt_cv_file_magic_cmd='/usr/bin/file -L'
3614   case "$host_os" in
3615   rhapsody* | darwin1.[012])
3616     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3617     ;;
3618   *) # Darwin 1.3 on
3619     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3620     ;;
3621   esac
3622   ;;
3623
3624 freebsd*)
3625   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3626     case $host_cpu in
3627     i*86 )
3628       # Not sure whether the presence of OpenBSD here was a mistake.
3629       # Let's accept both of them until this is cleared up.
3630       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3631       lt_cv_file_magic_cmd=/usr/bin/file
3632       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3633       ;;
3634     esac
3635   else
3636     lt_cv_deplibs_check_method=pass_all
3637   fi
3638   ;;
3639
3640 gnu*)
3641   lt_cv_deplibs_check_method=pass_all
3642   ;;
3643
3644 hpux10.20*|hpux11*)
3645   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3646   lt_cv_file_magic_cmd=/usr/bin/file
3647   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3648   ;;
3649
3650 irix5* | irix6* | nonstopux*)
3651   case $host_os in
3652   irix5* | nonstopux*)
3653     # this will be overridden with pass_all, but let us keep it just in case
3654     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3655     ;;
3656   *)
3657     case $LD in
3658     *-32|*"-32 ") libmagic=32-bit;;
3659     *-n32|*"-n32 ") libmagic=N32;;
3660     *-64|*"-64 ") libmagic=64-bit;;
3661     *) libmagic=never-match;;
3662     esac
3663     # this will be overridden with pass_all, but let us keep it just in case
3664     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3665     ;;
3666   esac
3667   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3668   lt_cv_deplibs_check_method=pass_all
3669   ;;
3670
3671 # This must be Linux ELF.
3672 linux-gnu*)
3673   case $host_cpu in
3674   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3675     lt_cv_deplibs_check_method=pass_all ;;
3676   *)
3677     # glibc up to 2.1.1 does not perform some relocations on ARM
3678     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3679   esac
3680   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3681   ;;
3682
3683 netbsd*)
3684   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3685     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3686   else
3687     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3688   fi
3689   ;;
3690
3691 newos6*)
3692   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3693   lt_cv_file_magic_cmd=/usr/bin/file
3694   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3695   ;;
3696
3697 openbsd*)
3698   lt_cv_file_magic_cmd=/usr/bin/file
3699   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3700   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3701     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3702   else
3703     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3704   fi
3705   ;;
3706
3707 osf3* | osf4* | osf5*)
3708   # this will be overridden with pass_all, but let us keep it just in case
3709   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3710   lt_cv_file_magic_test_file=/shlib/libc.so
3711   lt_cv_deplibs_check_method=pass_all
3712   ;;
3713
3714 sco3.2v5*)
3715   lt_cv_deplibs_check_method=pass_all
3716   ;;
3717
3718 solaris*)
3719   lt_cv_deplibs_check_method=pass_all
3720   lt_cv_file_magic_test_file=/lib/libc.so
3721   ;;
3722
3723 sysv5uw[78]* | sysv4*uw2*)
3724   lt_cv_deplibs_check_method=pass_all
3725   ;;
3726
3727 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3728   case $host_vendor in
3729   motorola)
3730     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]'
3731     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3732     ;;
3733   ncr)
3734     lt_cv_deplibs_check_method=pass_all
3735     ;;
3736   sequent)
3737     lt_cv_file_magic_cmd='/bin/file'
3738     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3739     ;;
3740   sni)
3741     lt_cv_file_magic_cmd='/bin/file'
3742     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3743     lt_cv_file_magic_test_file=/lib/libc.so
3744     ;;
3745   esac
3746   ;;
3747 esac
3748
3749 fi
3750 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3751 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3752 file_magic_cmd=$lt_cv_file_magic_cmd
3753 deplibs_check_method=$lt_cv_deplibs_check_method
3754
3755
3756
3757
3758
3759
3760
3761
3762 # Check for command to grab the raw symbol name followed by C symbol from nm.
3763 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3764 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3765 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3766   echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768
3769 # These are sane defaults that work on at least a few old systems.
3770 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3771
3772 # Character class describing NM global symbol codes.
3773 symcode='[BCDEGRST]'
3774
3775 # Regexp to match symbols that can be accessed directly from C.
3776 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3777
3778 # Transform the above into a raw symbol and a C symbol.
3779 symxfrm='\1 \2\3 \3'
3780
3781 # Transform an extracted symbol line into a proper C declaration
3782 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3783
3784 # Transform an extracted symbol line into symbol name and symbol address
3785 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'"
3786
3787 # Define system-specific variables.
3788 case $host_os in
3789 aix*)
3790   symcode='[BCDT]'
3791   ;;
3792 cygwin* | mingw* | pw32*)
3793   symcode='[ABCDGISTW]'
3794   ;;
3795 hpux*) # Its linker distinguishes data from code symbols
3796   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3797   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'"
3798   ;;
3799 irix* | nonstopux*)
3800   symcode='[BCDEGRST]'
3801   ;;
3802 solaris* | sysv5*)
3803   symcode='[BDT]'
3804   ;;
3805 sysv4)
3806   symcode='[DFNSTU]'
3807   ;;
3808 esac
3809
3810 # Handle CRLF in mingw tool chain
3811 opt_cr=
3812 case $host_os in
3813 mingw*)
3814   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3815   ;;
3816 esac
3817
3818 # If we're using GNU nm, then use its standard symbol codes.
3819 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3820   symcode='[ABCDGISTW]'
3821 fi
3822
3823 # Try without a prefix undercore, then with it.
3824 for ac_symprfx in "" "_"; do
3825
3826   # Write the raw and C identifiers.
3827 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3828
3829   # Check to see that the pipe works correctly.
3830   pipe_works=no
3831   rm -f conftest*
3832   cat > conftest.$ac_ext <<EOF
3833 #ifdef __cplusplus
3834 extern "C" {
3835 #endif
3836 char nm_test_var;
3837 void nm_test_func(){}
3838 #ifdef __cplusplus
3839 }
3840 #endif
3841 int main(){nm_test_var='a';nm_test_func();return(0);}
3842 EOF
3843
3844   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845   (eval $ac_compile) 2>&5
3846   ac_status=$?
3847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); }; then
3849     # Now try to grab the symbols.
3850     nlist=conftest.nm
3851     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3852   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); } && test -s "$nlist"; then
3856       # Try sorting and uniquifying the output.
3857       if sort "$nlist" | uniq > "$nlist"T; then
3858         mv -f "$nlist"T "$nlist"
3859       else
3860         rm -f "$nlist"T
3861       fi
3862
3863       # Make sure that we snagged all the symbols we need.
3864       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3865         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3866           cat <<EOF > conftest.$ac_ext
3867 #ifdef __cplusplus
3868 extern "C" {
3869 #endif
3870
3871 EOF
3872           # Now generate the symbol file.
3873           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3874
3875           cat <<EOF >> conftest.$ac_ext
3876 #if defined (__STDC__) && __STDC__
3877 # define lt_ptr void *
3878 #else
3879 # define lt_ptr char *
3880 # define const
3881 #endif
3882
3883 /* The mapping between symbol names and symbols. */
3884 const struct {
3885   const char *name;
3886   lt_ptr address;
3887 }
3888 lt_preloaded_symbols[] =
3889 {
3890 EOF
3891           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3892           cat <<\EOF >> conftest.$ac_ext
3893   {0, (lt_ptr) 0}
3894 };
3895
3896 #ifdef __cplusplus
3897 }
3898 #endif
3899 EOF
3900           # Now try linking the two files.
3901           mv conftest.$ac_objext conftstm.$ac_objext
3902           save_LIBS="$LIBS"
3903           save_CFLAGS="$CFLAGS"
3904           LIBS="conftstm.$ac_objext"
3905           CFLAGS="$CFLAGS$no_builtin_flag"
3906           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3907   (eval $ac_link) 2>&5
3908   ac_status=$?
3909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910   (exit $ac_status); } && test -s conftest; then
3911             pipe_works=yes
3912           fi
3913           LIBS="$save_LIBS"
3914           CFLAGS="$save_CFLAGS"
3915         else
3916           echo "cannot find nm_test_func in $nlist" >&5
3917         fi
3918       else
3919         echo "cannot find nm_test_var in $nlist" >&5
3920       fi
3921     else
3922       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3923     fi
3924   else
3925     echo "$progname: failed program was:" >&5
3926     cat conftest.$ac_ext >&5
3927   fi
3928   rm -f conftest* conftst*
3929
3930   # Do not use the global_symbol_pipe unless it works.
3931   if test "$pipe_works" = yes; then
3932     break
3933   else
3934     lt_cv_sys_global_symbol_pipe=
3935   fi
3936 done
3937
3938 fi
3939
3940 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3941 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3942   global_symbol_to_cdecl=
3943   global_symbol_to_c_name_address=
3944 else
3945   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3946   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3947 fi
3948 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3949 then
3950   echo "$as_me:$LINENO: result: failed" >&5
3951 echo "${ECHO_T}failed" >&6
3952 else
3953   echo "$as_me:$LINENO: result: ok" >&5
3954 echo "${ECHO_T}ok" >&6
3955 fi
3956
3957 ac_ext=c
3958 ac_cpp='$CPP $CPPFLAGS'
3959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3963 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3964 # On Suns, sometimes $CPP names a directory.
3965 if test -n "$CPP" && test -d "$CPP"; then
3966   CPP=
3967 fi
3968 if test -z "$CPP"; then
3969   if test "${ac_cv_prog_CPP+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972       # Double quotes because CPP needs to be expanded
3973     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3974     do
3975       ac_preproc_ok=false
3976 for ac_c_preproc_warn_flag in '' yes
3977 do
3978   # Use a header file that comes with gcc, so configuring glibc
3979   # with a fresh cross-compiler works.
3980   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3981   # <limits.h> exists even on freestanding compilers.
3982   # On the NeXT, cc -E runs the code through the compiler's parser,
3983   # not just through cpp. "Syntax error" is here to catch this case.
3984   cat >conftest.$ac_ext <<_ACEOF
3985 #line $LINENO "configure"
3986 /* confdefs.h.  */
3987 _ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h.  */
3991 #ifdef __STDC__
3992 # include <limits.h>
3993 #else
3994 # include <assert.h>
3995 #endif
3996                      Syntax error
3997 _ACEOF
3998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3999   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4000   ac_status=$?
4001   grep -v '^ *+' conftest.er1 >conftest.err
4002   rm -f conftest.er1
4003   cat conftest.err >&5
4004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005   (exit $ac_status); } >/dev/null; then
4006   if test -s conftest.err; then
4007     ac_cpp_err=$ac_c_preproc_warn_flag
4008   else
4009     ac_cpp_err=
4010   fi
4011 else
4012   ac_cpp_err=yes
4013 fi
4014 if test -z "$ac_cpp_err"; then
4015   :
4016 else
4017   echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4019
4020   # Broken: fails on valid input.
4021 continue
4022 fi
4023 rm -f conftest.err conftest.$ac_ext
4024
4025   # OK, works on sane cases.  Now check whether non-existent headers
4026   # can be detected and how.
4027   cat >conftest.$ac_ext <<_ACEOF
4028 #line $LINENO "configure"
4029 /* confdefs.h.  */
4030 _ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h.  */
4034 #include <ac_nonexistent.h>
4035 _ACEOF
4036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4037   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4038   ac_status=$?
4039   grep -v '^ *+' conftest.er1 >conftest.err
4040   rm -f conftest.er1
4041   cat conftest.err >&5
4042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043   (exit $ac_status); } >/dev/null; then
4044   if test -s conftest.err; then
4045     ac_cpp_err=$ac_c_preproc_warn_flag
4046   else
4047     ac_cpp_err=
4048   fi
4049 else
4050   ac_cpp_err=yes
4051 fi
4052 if test -z "$ac_cpp_err"; then
4053   # Broken: success on invalid input.
4054 continue
4055 else
4056   echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4058
4059   # Passes both tests.
4060 ac_preproc_ok=:
4061 break
4062 fi
4063 rm -f conftest.err conftest.$ac_ext
4064
4065 done
4066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4067 rm -f conftest.err conftest.$ac_ext
4068 if $ac_preproc_ok; then
4069   break
4070 fi
4071
4072     done
4073     ac_cv_prog_CPP=$CPP
4074
4075 fi
4076   CPP=$ac_cv_prog_CPP
4077 else
4078   ac_cv_prog_CPP=$CPP
4079 fi
4080 echo "$as_me:$LINENO: result: $CPP" >&5
4081 echo "${ECHO_T}$CPP" >&6
4082 ac_preproc_ok=false
4083 for ac_c_preproc_warn_flag in '' yes
4084 do
4085   # Use a header file that comes with gcc, so configuring glibc
4086   # with a fresh cross-compiler works.
4087   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4088   # <limits.h> exists even on freestanding compilers.
4089   # On the NeXT, cc -E runs the code through the compiler's parser,
4090   # not just through cpp. "Syntax error" is here to catch this case.
4091   cat >conftest.$ac_ext <<_ACEOF
4092 #line $LINENO "configure"
4093 /* confdefs.h.  */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h.  */
4098 #ifdef __STDC__
4099 # include <limits.h>
4100 #else
4101 # include <assert.h>
4102 #endif
4103                      Syntax error
4104 _ACEOF
4105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4106   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4107   ac_status=$?
4108   grep -v '^ *+' conftest.er1 >conftest.err
4109   rm -f conftest.er1
4110   cat conftest.err >&5
4111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); } >/dev/null; then
4113   if test -s conftest.err; then
4114     ac_cpp_err=$ac_c_preproc_warn_flag
4115   else
4116     ac_cpp_err=
4117   fi
4118 else
4119   ac_cpp_err=yes
4120 fi
4121 if test -z "$ac_cpp_err"; then
4122   :
4123 else
4124   echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4126
4127   # Broken: fails on valid input.
4128 continue
4129 fi
4130 rm -f conftest.err conftest.$ac_ext
4131
4132   # OK, works on sane cases.  Now check whether non-existent headers
4133   # can be detected and how.
4134   cat >conftest.$ac_ext <<_ACEOF
4135 #line $LINENO "configure"
4136 /* confdefs.h.  */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h.  */
4141 #include <ac_nonexistent.h>
4142 _ACEOF
4143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4145   ac_status=$?
4146   grep -v '^ *+' conftest.er1 >conftest.err
4147   rm -f conftest.er1
4148   cat conftest.err >&5
4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); } >/dev/null; then
4151   if test -s conftest.err; then
4152     ac_cpp_err=$ac_c_preproc_warn_flag
4153   else
4154     ac_cpp_err=
4155   fi
4156 else
4157   ac_cpp_err=yes
4158 fi
4159 if test -z "$ac_cpp_err"; then
4160   # Broken: success on invalid input.
4161 continue
4162 else
4163   echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4165
4166   # Passes both tests.
4167 ac_preproc_ok=:
4168 break
4169 fi
4170 rm -f conftest.err conftest.$ac_ext
4171
4172 done
4173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4174 rm -f conftest.err conftest.$ac_ext
4175 if $ac_preproc_ok; then
4176   :
4177 else
4178   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4179 See \`config.log' for more details." >&5
4180 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4181 See \`config.log' for more details." >&2;}
4182    { (exit 1); exit 1; }; }
4183 fi
4184
4185 ac_ext=c
4186 ac_cpp='$CPP $CPPFLAGS'
4187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190
4191
4192 echo "$as_me:$LINENO: checking for egrep" >&5
4193 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4194 if test "${ac_cv_prog_egrep+set}" = set; then
4195   echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4198     then ac_cv_prog_egrep='grep -E'
4199     else ac_cv_prog_egrep='egrep'
4200     fi
4201 fi
4202 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4203 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4204  EGREP=$ac_cv_prog_egrep
4205
4206
4207 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4208 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4209 if test "${ac_cv_header_stdc+set}" = set; then
4210   echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212   cat >conftest.$ac_ext <<_ACEOF
4213 #line $LINENO "configure"
4214 /* confdefs.h.  */
4215 _ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h.  */
4219 #include <stdlib.h>
4220 #include <stdarg.h>
4221 #include <string.h>
4222 #include <float.h>
4223
4224 int
4225 main ()
4226 {
4227
4228   ;
4229   return 0;
4230 }
4231 _ACEOF
4232 rm -f conftest.$ac_objext
4233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4234   (eval $ac_compile) 2>&5
4235   ac_status=$?
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); } &&
4238          { ac_try='test -s conftest.$ac_objext'
4239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240   (eval $ac_try) 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); }; }; then
4244   ac_cv_header_stdc=yes
4245 else
4246   echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249 ac_cv_header_stdc=no
4250 fi
4251 rm -f conftest.$ac_objext conftest.$ac_ext
4252
4253 if test $ac_cv_header_stdc = yes; then
4254   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4255   cat >conftest.$ac_ext <<_ACEOF
4256 #line $LINENO "configure"
4257 /* confdefs.h.  */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h.  */
4262 #include <string.h>
4263
4264 _ACEOF
4265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4266   $EGREP "memchr" >/dev/null 2>&1; then
4267   :
4268 else
4269   ac_cv_header_stdc=no
4270 fi
4271 rm -f conftest*
4272
4273 fi
4274
4275 if test $ac_cv_header_stdc = yes; then
4276   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4277   cat >conftest.$ac_ext <<_ACEOF
4278 #line $LINENO "configure"
4279 /* confdefs.h.  */
4280 _ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h.  */
4284 #include <stdlib.h>
4285
4286 _ACEOF
4287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4288   $EGREP "free" >/dev/null 2>&1; then
4289   :
4290 else
4291   ac_cv_header_stdc=no
4292 fi
4293 rm -f conftest*
4294
4295 fi
4296
4297 if test $ac_cv_header_stdc = yes; then
4298   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4299   if test "$cross_compiling" = yes; then
4300   :
4301 else
4302   cat >conftest.$ac_ext <<_ACEOF
4303 #line $LINENO "configure"
4304 /* confdefs.h.  */
4305 _ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h.  */
4309 #include <ctype.h>
4310 #if ((' ' & 0x0FF) == 0x020)
4311 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4312 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4313 #else
4314 # define ISLOWER(c) \
4315                    (('a' <= (c) && (c) <= 'i') \
4316                      || ('j' <= (c) && (c) <= 'r') \
4317                      || ('s' <= (c) && (c) <= 'z'))
4318 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4319 #endif
4320
4321 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4322 int
4323 main ()
4324 {
4325   int i;
4326   for (i = 0; i < 256; i++)
4327     if (XOR (islower (i), ISLOWER (i))
4328         || toupper (i) != TOUPPER (i))
4329       exit(2);
4330   exit (0);
4331 }
4332 _ACEOF
4333 rm -f conftest$ac_exeext
4334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4335   (eval $ac_link) 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340   (eval $ac_try) 2>&5
4341   ac_status=$?
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); }; }; then
4344   :
4345 else
4346   echo "$as_me: program exited with status $ac_status" >&5
4347 echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4349
4350 ( exit $ac_status )
4351 ac_cv_header_stdc=no
4352 fi
4353 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4354 fi
4355 fi
4356 fi
4357 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4358 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4359 if test $ac_cv_header_stdc = yes; then
4360
4361 cat >>confdefs.h <<\_ACEOF
4362 #define STDC_HEADERS 1
4363 _ACEOF
4364
4365 fi
4366
4367 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4378                   inttypes.h stdint.h unistd.h
4379 do
4380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4381 echo "$as_me:$LINENO: checking for $ac_header" >&5
4382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386   cat >conftest.$ac_ext <<_ACEOF
4387 #line $LINENO "configure"
4388 /* confdefs.h.  */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h.  */
4393 $ac_includes_default
4394
4395 #include <$ac_header>
4396 _ACEOF
4397 rm -f conftest.$ac_objext
4398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399   (eval $ac_compile) 2>&5
4400   ac_status=$?
4401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402   (exit $ac_status); } &&
4403          { ac_try='test -s conftest.$ac_objext'
4404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405   (eval $ac_try) 2>&5
4406   ac_status=$?
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); }; }; then
4409   eval "$as_ac_Header=yes"
4410 else
4411   echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4413
4414 eval "$as_ac_Header=no"
4415 fi
4416 rm -f conftest.$ac_objext conftest.$ac_ext
4417 fi
4418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4421   cat >>confdefs.h <<_ACEOF
4422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4423 _ACEOF
4424
4425 fi
4426
4427 done
4428
4429
4430
4431 for ac_header in dlfcn.h
4432 do
4433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4435   echo "$as_me:$LINENO: checking for $ac_header" >&5
4436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4438   echo $ECHO_N "(cached) $ECHO_C" >&6
4439 fi
4440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4442 else
4443   # Is the header compilable?
4444 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4445 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4446 cat >conftest.$ac_ext <<_ACEOF
4447 #line $LINENO "configure"
4448 /* confdefs.h.  */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h.  */
4453 $ac_includes_default
4454 #include <$ac_header>
4455 _ACEOF
4456 rm -f conftest.$ac_objext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4458   (eval $ac_compile) 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); } &&
4462          { ac_try='test -s conftest.$ac_objext'
4463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464   (eval $ac_try) 2>&5
4465   ac_status=$?
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); }; }; then
4468   ac_header_compiler=yes
4469 else
4470   echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4472
4473 ac_header_compiler=no
4474 fi
4475 rm -f conftest.$ac_objext conftest.$ac_ext
4476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4477 echo "${ECHO_T}$ac_header_compiler" >&6
4478
4479 # Is the header present?
4480 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4482 cat >conftest.$ac_ext <<_ACEOF
4483 #line $LINENO "configure"
4484 /* confdefs.h.  */
4485 _ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h.  */
4489 #include <$ac_header>
4490 _ACEOF
4491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4492   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4493   ac_status=$?
4494   grep -v '^ *+' conftest.er1 >conftest.err
4495   rm -f conftest.er1
4496   cat conftest.err >&5
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); } >/dev/null; then
4499   if test -s conftest.err; then
4500     ac_cpp_err=$ac_c_preproc_warn_flag
4501   else
4502     ac_cpp_err=
4503   fi
4504 else
4505   ac_cpp_err=yes
4506 fi
4507 if test -z "$ac_cpp_err"; then
4508   ac_header_preproc=yes
4509 else
4510   echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4512
4513   ac_header_preproc=no
4514 fi
4515 rm -f conftest.err conftest.$ac_ext
4516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4517 echo "${ECHO_T}$ac_header_preproc" >&6
4518
4519 # So?  What about this header?
4520 case $ac_header_compiler:$ac_header_preproc in
4521   yes:no )
4522     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4526     (
4527       cat <<\_ASBOX
4528 ## ------------------------------------ ##
4529 ## Report this to bug-autoconf@gnu.org. ##
4530 ## ------------------------------------ ##
4531 _ASBOX
4532     ) |
4533       sed "s/^/$as_me: WARNING:     /" >&2
4534     ;;
4535   no:yes )
4536     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4538     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4539 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4542     (
4543       cat <<\_ASBOX
4544 ## ------------------------------------ ##
4545 ## Report this to bug-autoconf@gnu.org. ##
4546 ## ------------------------------------ ##
4547 _ASBOX
4548     ) |
4549       sed "s/^/$as_me: WARNING:     /" >&2
4550     ;;
4551 esac
4552 echo "$as_me:$LINENO: checking for $ac_header" >&5
4553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   eval "$as_ac_Header=$ac_header_preproc"
4558 fi
4559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4561
4562 fi
4563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4564   cat >>confdefs.h <<_ACEOF
4565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4566 _ACEOF
4567
4568 fi
4569
4570 done
4571
4572
4573
4574
4575
4576 # Only perform the check for file, if the check method requires it
4577 case $deplibs_check_method in
4578 file_magic*)
4579   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4580     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4581 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4582 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4583   echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585   case $MAGIC_CMD in
4586   /*)
4587   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4588   ;;
4589   ?:/*)
4590   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4591   ;;
4592   *)
4593   ac_save_MAGIC_CMD="$MAGIC_CMD"
4594   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4595   ac_dummy="/usr/bin:$PATH"
4596   for ac_dir in $ac_dummy; do
4597     test -z "$ac_dir" && ac_dir=.
4598     if test -f $ac_dir/${ac_tool_prefix}file; then
4599       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4600       if test -n "$file_magic_test_file"; then
4601         case $deplibs_check_method in
4602         "file_magic "*)
4603           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4604           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4605           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4606             egrep "$file_magic_regex" > /dev/null; then
4607             :
4608           else
4609             cat <<EOF 1>&2
4610
4611 *** Warning: the command libtool uses to detect shared libraries,
4612 *** $file_magic_cmd, produces output that libtool cannot recognize.
4613 *** The result is that libtool may fail to recognize shared libraries
4614 *** as such.  This will affect the creation of libtool libraries that
4615 *** depend on shared libraries, but programs linked with such libtool
4616 *** libraries will work regardless of this problem.  Nevertheless, you
4617 *** may want to report the problem to your system manager and/or to
4618 *** bug-libtool@gnu.org
4619
4620 EOF
4621           fi ;;
4622         esac
4623       fi
4624       break
4625     fi
4626   done
4627   IFS="$ac_save_ifs"
4628   MAGIC_CMD="$ac_save_MAGIC_CMD"
4629   ;;
4630 esac
4631 fi
4632
4633 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4634 if test -n "$MAGIC_CMD"; then
4635   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4636 echo "${ECHO_T}$MAGIC_CMD" >&6
4637 else
4638   echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4640 fi
4641
4642 if test -z "$lt_cv_path_MAGIC_CMD"; then
4643   if test -n "$ac_tool_prefix"; then
4644     echo "$as_me:$LINENO: checking for file" >&5
4645 echo $ECHO_N "checking for file... $ECHO_C" >&6
4646 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4647   echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649   case $MAGIC_CMD in
4650   /*)
4651   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4652   ;;
4653   ?:/*)
4654   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4655   ;;
4656   *)
4657   ac_save_MAGIC_CMD="$MAGIC_CMD"
4658   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4659   ac_dummy="/usr/bin:$PATH"
4660   for ac_dir in $ac_dummy; do
4661     test -z "$ac_dir" && ac_dir=.
4662     if test -f $ac_dir/file; then
4663       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4664       if test -n "$file_magic_test_file"; then
4665         case $deplibs_check_method in
4666         "file_magic "*)
4667           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4668           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4669           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4670             egrep "$file_magic_regex" > /dev/null; then
4671             :
4672           else
4673             cat <<EOF 1>&2
4674
4675 *** Warning: the command libtool uses to detect shared libraries,
4676 *** $file_magic_cmd, produces output that libtool cannot recognize.
4677 *** The result is that libtool may fail to recognize shared libraries
4678 *** as such.  This will affect the creation of libtool libraries that
4679 *** depend on shared libraries, but programs linked with such libtool
4680 *** libraries will work regardless of this problem.  Nevertheless, you
4681 *** may want to report the problem to your system manager and/or to
4682 *** bug-libtool@gnu.org
4683
4684 EOF
4685           fi ;;
4686         esac
4687       fi
4688       break
4689     fi
4690   done
4691   IFS="$ac_save_ifs"
4692   MAGIC_CMD="$ac_save_MAGIC_CMD"
4693   ;;
4694 esac
4695 fi
4696
4697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4698 if test -n "$MAGIC_CMD"; then
4699   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4700 echo "${ECHO_T}$MAGIC_CMD" >&6
4701 else
4702   echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6
4704 fi
4705
4706   else
4707     MAGIC_CMD=:
4708   fi
4709 fi
4710
4711   fi
4712   ;;
4713 esac
4714
4715 if test -n "$ac_tool_prefix"; then
4716   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4718 echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720 if test "${ac_cv_prog_RANLIB+set}" = set; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723   if test -n "$RANLIB"; then
4724   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729   IFS=$as_save_IFS
4730   test -z "$as_dir" && as_dir=.
4731   for ac_exec_ext in '' $ac_executable_extensions; do
4732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735     break 2
4736   fi
4737 done
4738 done
4739
4740 fi
4741 fi
4742 RANLIB=$ac_cv_prog_RANLIB
4743 if test -n "$RANLIB"; then
4744   echo "$as_me:$LINENO: result: $RANLIB" >&5
4745 echo "${ECHO_T}$RANLIB" >&6
4746 else
4747   echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4749 fi
4750
4751 fi
4752 if test -z "$ac_cv_prog_RANLIB"; then
4753   ac_ct_RANLIB=$RANLIB
4754   # Extract the first word of "ranlib", so it can be a program name with args.
4755 set dummy ranlib; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4759   echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761   if test -n "$ac_ct_RANLIB"; then
4762   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767   IFS=$as_save_IFS
4768   test -z "$as_dir" && as_dir=.
4769   for ac_exec_ext in '' $ac_executable_extensions; do
4770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771     ac_cv_prog_ac_ct_RANLIB="ranlib"
4772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773     break 2
4774   fi
4775 done
4776 done
4777
4778   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4779 fi
4780 fi
4781 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4782 if test -n "$ac_ct_RANLIB"; then
4783   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4784 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4785 else
4786   echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4788 fi
4789
4790   RANLIB=$ac_ct_RANLIB
4791 else
4792   RANLIB="$ac_cv_prog_RANLIB"
4793 fi
4794
4795 if test -n "$ac_tool_prefix"; then
4796   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4797 set dummy ${ac_tool_prefix}strip; ac_word=$2
4798 echo "$as_me:$LINENO: checking for $ac_word" >&5
4799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4800 if test "${ac_cv_prog_STRIP+set}" = set; then
4801   echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803   if test -n "$STRIP"; then
4804   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4805 else
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4808 do
4809   IFS=$as_save_IFS
4810   test -z "$as_dir" && as_dir=.
4811   for ac_exec_ext in '' $ac_executable_extensions; do
4812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4815     break 2
4816   fi
4817 done
4818 done
4819
4820 fi
4821 fi
4822 STRIP=$ac_cv_prog_STRIP
4823 if test -n "$STRIP"; then
4824   echo "$as_me:$LINENO: result: $STRIP" >&5
4825 echo "${ECHO_T}$STRIP" >&6
4826 else
4827   echo "$as_me:$LINENO: result: no" >&5
4828 echo "${ECHO_T}no" >&6
4829 fi
4830
4831 fi
4832 if test -z "$ac_cv_prog_STRIP"; then
4833   ac_ct_STRIP=$STRIP
4834   # Extract the first word of "strip", so it can be a program name with args.
4835 set dummy strip; ac_word=$2
4836 echo "$as_me:$LINENO: checking for $ac_word" >&5
4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4838 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841   if test -n "$ac_ct_STRIP"; then
4842   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4843 else
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH
4846 do
4847   IFS=$as_save_IFS
4848   test -z "$as_dir" && as_dir=.
4849   for ac_exec_ext in '' $ac_executable_extensions; do
4850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4851     ac_cv_prog_ac_ct_STRIP="strip"
4852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4853     break 2
4854   fi
4855 done
4856 done
4857
4858   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4859 fi
4860 fi
4861 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4862 if test -n "$ac_ct_STRIP"; then
4863   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4864 echo "${ECHO_T}$ac_ct_STRIP" >&6
4865 else
4866   echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6
4868 fi
4869
4870   STRIP=$ac_ct_STRIP
4871 else
4872   STRIP="$ac_cv_prog_STRIP"
4873 fi
4874
4875
4876 enable_dlopen=no
4877 enable_win32_dll=no
4878
4879 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4880 if test "${enable_libtool_lock+set}" = set; then
4881   enableval="$enable_libtool_lock"
4882
4883 fi;
4884 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4885
4886 # Some flags need to be propagated to the compiler or linker for good
4887 # libtool support.
4888 case $host in
4889 *-*-irix6*)
4890   # Find out which ABI we are using.
4891   echo '#line 4891 "configure"' > conftest.$ac_ext
4892   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4893   (eval $ac_compile) 2>&5
4894   ac_status=$?
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); }; then
4897     case `/usr/bin/file conftest.$ac_objext` in
4898     *32-bit*)
4899       LD="${LD-ld} -32"
4900       ;;
4901     *N32*)
4902       LD="${LD-ld} -n32"
4903       ;;
4904     *64-bit*)
4905       LD="${LD-ld} -64"
4906       ;;
4907     esac
4908   fi
4909   rm -rf conftest*
4910   ;;
4911
4912 *-*-sco3.2v5*)
4913   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4914   SAVE_CFLAGS="$CFLAGS"
4915   CFLAGS="$CFLAGS -belf"
4916   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4917 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4918 if test "${lt_cv_cc_needs_belf+set}" = set; then
4919   echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921
4922
4923      ac_ext=c
4924 ac_cpp='$CPP $CPPFLAGS'
4925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4928
4929      cat >conftest.$ac_ext <<_ACEOF
4930 #line $LINENO "configure"
4931 /* confdefs.h.  */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h.  */
4936
4937 int
4938 main ()
4939 {
4940
4941   ;
4942   return 0;
4943 }
4944 _ACEOF
4945 rm -f conftest.$ac_objext conftest$ac_exeext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4947   (eval $ac_link) 2>&5
4948   ac_status=$?
4949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950   (exit $ac_status); } &&
4951          { ac_try='test -s conftest$ac_exeext'
4952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953   (eval $ac_try) 2>&5
4954   ac_status=$?
4955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956   (exit $ac_status); }; }; then
4957   lt_cv_cc_needs_belf=yes
4958 else
4959   echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4961
4962 lt_cv_cc_needs_belf=no
4963 fi
4964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4965      ac_ext=c
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970
4971 fi
4972 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4973 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4974   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4975     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4976     CFLAGS="$SAVE_CFLAGS"
4977   fi
4978   ;;
4979
4980
4981 esac
4982
4983 # Sed substitution that helps us do robust quoting.  It backslashifies
4984 # metacharacters that are still active within double-quoted strings.
4985 Xsed='sed -e s/^X//'
4986 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4987
4988 # Same as above, but do not quote variable references.
4989 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4990
4991 # Sed substitution to delay expansion of an escaped shell variable in a
4992 # double_quote_subst'ed string.
4993 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4994
4995 # Constants:
4996 rm="rm -f"
4997
4998 # Global variables:
4999 default_ofile=libtool
5000 can_build_shared=yes
5001
5002 # All known linkers require a `.a' archive for static linking (except M$VC,
5003 # which needs '.lib').
5004 libext=a
5005 ltmain="$ac_aux_dir/ltmain.sh"
5006 ofile="$default_ofile"
5007 with_gnu_ld="$lt_cv_prog_gnu_ld"
5008 need_locks="$enable_libtool_lock"
5009
5010 old_CC="$CC"
5011 old_CFLAGS="$CFLAGS"
5012
5013 # Set sane defaults for various variables
5014 test -z "$AR" && AR=ar
5015 test -z "$AR_FLAGS" && AR_FLAGS=cru
5016 test -z "$AS" && AS=as
5017 test -z "$CC" && CC=cc
5018 test -z "$DLLTOOL" && DLLTOOL=dlltool
5019 test -z "$LD" && LD=ld
5020 test -z "$LN_S" && LN_S="ln -s"
5021 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5022 test -z "$NM" && NM=nm
5023 test -z "$OBJDUMP" && OBJDUMP=objdump
5024 test -z "$RANLIB" && RANLIB=:
5025 test -z "$STRIP" && STRIP=:
5026 test -z "$ac_objext" && ac_objext=o
5027
5028 if test x"$host" != x"$build"; then
5029   ac_tool_prefix=${host_alias}-
5030 else
5031   ac_tool_prefix=
5032 fi
5033
5034 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5035 case $host_os in
5036 linux-gnu*) ;;
5037 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5038 esac
5039
5040 case $host_os in
5041 aix3*)
5042   # AIX sometimes has problems with the GCC collect2 program.  For some
5043   # reason, if we set the COLLECT_NAMES environment variable, the problems
5044   # vanish in a puff of smoke.
5045   if test "X${COLLECT_NAMES+set}" != Xset; then
5046     COLLECT_NAMES=
5047     export COLLECT_NAMES
5048   fi
5049   ;;
5050 esac
5051
5052 # Determine commands to create old-style static archives.
5053 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5054 old_postinstall_cmds='chmod 644 $oldlib'
5055 old_postuninstall_cmds=
5056
5057 if test -n "$RANLIB"; then
5058   case $host_os in
5059   openbsd*)
5060     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5061     ;;
5062   *)
5063     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5064     ;;
5065   esac
5066   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5067 fi
5068
5069 # Allow CC to be a program name with arguments.
5070 set dummy $CC
5071 compiler="$2"
5072
5073 ## FIXME: this should be a separate macro
5074 ##
5075 echo "$as_me:$LINENO: checking for objdir" >&5
5076 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5077 rm -f .libs 2>/dev/null
5078 mkdir .libs 2>/dev/null
5079 if test -d .libs; then
5080   objdir=.libs
5081 else
5082   # MS-DOS does not allow filenames that begin with a dot.
5083   objdir=_libs
5084 fi
5085 rmdir .libs 2>/dev/null
5086 echo "$as_me:$LINENO: result: $objdir" >&5
5087 echo "${ECHO_T}$objdir" >&6
5088 ##
5089 ## END FIXME
5090
5091
5092 ## FIXME: this should be a separate macro
5093 ##
5094
5095 # Check whether --with-pic or --without-pic was given.
5096 if test "${with_pic+set}" = set; then
5097   withval="$with_pic"
5098   pic_mode="$withval"
5099 else
5100   pic_mode=default
5101 fi;
5102 test -z "$pic_mode" && pic_mode=default
5103
5104 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5105 # in isolation, and that seeing it set (from the cache) indicates that
5106 # the associated values are set (in the cache) correctly too.
5107 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5108 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5109 if test "${lt_cv_prog_cc_pic+set}" = set; then
5110   echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112    lt_cv_prog_cc_pic=
5113   lt_cv_prog_cc_shlib=
5114   lt_cv_prog_cc_wl=
5115   lt_cv_prog_cc_static=
5116   lt_cv_prog_cc_no_builtin=
5117   lt_cv_prog_cc_can_build_shared=$can_build_shared
5118
5119   if test "$GCC" = yes; then
5120     lt_cv_prog_cc_wl='-Wl,'
5121     lt_cv_prog_cc_static='-static'
5122
5123     case $host_os in
5124     aix*)
5125       # Below there is a dirty hack to force normal static linking with -ldl
5126       # The problem is because libdl dynamically linked with both libc and
5127       # libC (AIX C++ library), which obviously doesn't included in libraries
5128       # list by gcc. This cause undefined symbols with -static flags.
5129       # This hack allows C programs to be linked with "-static -ldl", but
5130       # not sure about C++ programs.
5131       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5132       ;;
5133     amigaos*)
5134       # FIXME: we need at least 68020 code to build shared libraries, but
5135       # adding the `-m68020' flag to GCC prevents building anything better,
5136       # like `-m68040'.
5137       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5138       ;;
5139     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5140       # PIC is the default for these OSes.
5141       ;;
5142     darwin* | rhapsody*)
5143       # PIC is the default on this platform
5144       # Common symbols not allowed in MH_DYLIB files
5145       lt_cv_prog_cc_pic='-fno-common'
5146       ;;
5147     cygwin* | mingw* | pw32* | os2*)
5148       # This hack is so that the source file can tell whether it is being
5149       # built for inclusion in a dll (and should export symbols for example).
5150       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5151       ;;
5152     sysv4*MP*)
5153       if test -d /usr/nec; then
5154          lt_cv_prog_cc_pic=-Kconform_pic
5155       fi
5156       ;;
5157     *)
5158       lt_cv_prog_cc_pic='-fPIC'
5159       ;;
5160     esac
5161   else
5162     # PORTME Check for PIC flags for the system compiler.
5163     case $host_os in
5164     aix3* | aix4* | aix5*)
5165       lt_cv_prog_cc_wl='-Wl,'
5166       # All AIX code is PIC.
5167       if test "$host_cpu" = ia64; then
5168         # AIX 5 now supports IA64 processor
5169         lt_cv_prog_cc_static='-Bstatic'
5170       else
5171         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5172       fi
5173       ;;
5174
5175     hpux9* | hpux10* | hpux11*)
5176       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5177       lt_cv_prog_cc_wl='-Wl,'
5178       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5179       lt_cv_prog_cc_pic='+Z'
5180       ;;
5181
5182     irix5* | irix6* | nonstopux*)
5183       lt_cv_prog_cc_wl='-Wl,'
5184       lt_cv_prog_cc_static='-non_shared'
5185       # PIC (with -KPIC) is the default.
5186       ;;
5187
5188     cygwin* | mingw* | pw32* | os2*)
5189       # This hack is so that the source file can tell whether it is being
5190       # built for inclusion in a dll (and should export symbols for example).
5191       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5192       ;;
5193
5194     newsos6)
5195       lt_cv_prog_cc_pic='-KPIC'
5196       lt_cv_prog_cc_static='-Bstatic'
5197       ;;
5198
5199     osf3* | osf4* | osf5*)
5200       # All OSF/1 code is PIC.
5201       lt_cv_prog_cc_wl='-Wl,'
5202       lt_cv_prog_cc_static='-non_shared'
5203       ;;
5204
5205     sco3.2v5*)
5206       lt_cv_prog_cc_pic='-Kpic'
5207       lt_cv_prog_cc_static='-dn'
5208       lt_cv_prog_cc_shlib='-belf'
5209       ;;
5210
5211     solaris*)
5212       lt_cv_prog_cc_pic='-KPIC'
5213       lt_cv_prog_cc_static='-Bstatic'
5214       lt_cv_prog_cc_wl='-Wl,'
5215       ;;
5216
5217     sunos4*)
5218       lt_cv_prog_cc_pic='-PIC'
5219       lt_cv_prog_cc_static='-Bstatic'
5220       lt_cv_prog_cc_wl='-Qoption ld '
5221       ;;
5222
5223     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5224       lt_cv_prog_cc_pic='-KPIC'
5225       lt_cv_prog_cc_static='-Bstatic'
5226       if test "x$host_vendor" = xsni; then
5227         lt_cv_prog_cc_wl='-LD'
5228       else
5229         lt_cv_prog_cc_wl='-Wl,'
5230       fi
5231       ;;
5232
5233     uts4*)
5234       lt_cv_prog_cc_pic='-pic'
5235       lt_cv_prog_cc_static='-Bstatic'
5236       ;;
5237
5238     sysv4*MP*)
5239       if test -d /usr/nec ;then
5240         lt_cv_prog_cc_pic='-Kconform_pic'
5241         lt_cv_prog_cc_static='-Bstatic'
5242       fi
5243       ;;
5244
5245     *)
5246       lt_cv_prog_cc_can_build_shared=no
5247       ;;
5248     esac
5249   fi
5250
5251 fi
5252
5253 if test -z "$lt_cv_prog_cc_pic"; then
5254   echo "$as_me:$LINENO: result: none" >&5
5255 echo "${ECHO_T}none" >&6
5256 else
5257   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5258 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5259
5260   # Check to make sure the pic_flag actually works.
5261   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5262 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5263   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5264   echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266       save_CFLAGS="$CFLAGS"
5267     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5268     cat >conftest.$ac_ext <<_ACEOF
5269 #line $LINENO "configure"
5270 /* confdefs.h.  */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h.  */
5275
5276 int
5277 main ()
5278 {
5279
5280   ;
5281   return 0;
5282 }
5283 _ACEOF
5284 rm -f conftest.$ac_objext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286   (eval $ac_compile) 2>&5
5287   ac_status=$?
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); } &&
5290          { ac_try='test -s conftest.$ac_objext'
5291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292   (eval $ac_try) 2>&5
5293   ac_status=$?
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); }; }; then
5296         case $host_os in
5297       hpux9* | hpux10* | hpux11*)
5298         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5299         # they create non-PIC objects.  So, if there were any warnings, we
5300         # assume that PIC is not supported.
5301         if test -s conftest.err; then
5302           lt_cv_prog_cc_pic_works=no
5303         else
5304           lt_cv_prog_cc_pic_works=yes
5305         fi
5306         ;;
5307       *)
5308         lt_cv_prog_cc_pic_works=yes
5309         ;;
5310       esac
5311
5312 else
5313   echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5315
5316       lt_cv_prog_cc_pic_works=no
5317
5318 fi
5319 rm -f conftest.$ac_objext conftest.$ac_ext
5320     CFLAGS="$save_CFLAGS"
5321
5322 fi
5323
5324
5325   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5326     lt_cv_prog_cc_pic=
5327     lt_cv_prog_cc_can_build_shared=no
5328   else
5329     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5330   fi
5331
5332   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5333 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5334 fi
5335 ##
5336 ## END FIXME
5337
5338 # Check for any special shared library compilation flags.
5339 if test -n "$lt_cv_prog_cc_shlib"; then
5340   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5341 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5342   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5343   else
5344    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5345 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5346     lt_cv_prog_cc_can_build_shared=no
5347   fi
5348 fi
5349
5350 ## FIXME: this should be a separate macro
5351 ##
5352 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5353 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5354 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5355   echo $ECHO_N "(cached) $ECHO_C" >&6
5356 else
5357     lt_cv_prog_cc_static_works=no
5358   save_LDFLAGS="$LDFLAGS"
5359   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5360   cat >conftest.$ac_ext <<_ACEOF
5361 #line $LINENO "configure"
5362 /* confdefs.h.  */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h.  */
5367
5368 int
5369 main ()
5370 {
5371
5372   ;
5373   return 0;
5374 }
5375 _ACEOF
5376 rm -f conftest.$ac_objext conftest$ac_exeext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5378   (eval $ac_link) 2>&5
5379   ac_status=$?
5380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381   (exit $ac_status); } &&
5382          { ac_try='test -s conftest$ac_exeext'
5383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384   (eval $ac_try) 2>&5
5385   ac_status=$?
5386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); }; }; then
5388   lt_cv_prog_cc_static_works=yes
5389 else
5390   echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5392
5393 fi
5394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5395   LDFLAGS="$save_LDFLAGS"
5396
5397 fi
5398
5399
5400 # Belt *and* braces to stop my trousers falling down:
5401 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5402 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5403 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5404
5405 pic_flag="$lt_cv_prog_cc_pic"
5406 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5407 wl="$lt_cv_prog_cc_wl"
5408 link_static_flag="$lt_cv_prog_cc_static"
5409 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5410 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5411 ##
5412 ## END FIXME
5413
5414
5415 ## FIXME: this should be a separate macro
5416 ##
5417 # Check to see if options -o and -c are simultaneously supported by compiler
5418 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5419 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5420 if test "${lt_cv_compiler_c_o+set}" = set; then
5421   echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423
5424 $rm -r conftest 2>/dev/null
5425 mkdir conftest
5426 cd conftest
5427 echo "int some_variable = 0;" > conftest.$ac_ext
5428 mkdir out
5429 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5430 # that will create temporary files in the current directory regardless of
5431 # the output directory.  Thus, making CWD read-only will cause this test
5432 # to fail, enabling locking or at least warning the user not to do parallel
5433 # builds.
5434 chmod -w .
5435 save_CFLAGS="$CFLAGS"
5436 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5437 compiler_c_o=no
5438 if { (eval echo configure:5438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5439   # The compiler can only warn and ignore the option if not recognized
5440   # So say no if there are warnings
5441   if test -s out/conftest.err; then
5442     lt_cv_compiler_c_o=no
5443   else
5444     lt_cv_compiler_c_o=yes
5445   fi
5446 else
5447   # Append any errors to the config.log.
5448   cat out/conftest.err 1>&5
5449   lt_cv_compiler_c_o=no
5450 fi
5451 CFLAGS="$save_CFLAGS"
5452 chmod u+w .
5453 $rm conftest* out/*
5454 rmdir out
5455 cd ..
5456 rmdir conftest
5457 $rm -r conftest 2>/dev/null
5458
5459 fi
5460
5461 compiler_c_o=$lt_cv_compiler_c_o
5462 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5463 echo "${ECHO_T}$compiler_c_o" >&6
5464
5465 if test x"$compiler_c_o" = x"yes"; then
5466   # Check to see if we can write to a .lo
5467   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5468 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5469   if test "${lt_cv_compiler_o_lo+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472
5473   lt_cv_compiler_o_lo=no
5474   save_CFLAGS="$CFLAGS"
5475   CFLAGS="$CFLAGS -c -o conftest.lo"
5476   save_objext="$ac_objext"
5477   ac_objext=lo
5478   cat >conftest.$ac_ext <<_ACEOF
5479 #line $LINENO "configure"
5480 /* confdefs.h.  */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h.  */
5485
5486 int
5487 main ()
5488 {
5489 int some_variable = 0;
5490   ;
5491   return 0;
5492 }
5493 _ACEOF
5494 rm -f conftest.$ac_objext
5495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5496   (eval $ac_compile) 2>&5
5497   ac_status=$?
5498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499   (exit $ac_status); } &&
5500          { ac_try='test -s conftest.$ac_objext'
5501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502   (eval $ac_try) 2>&5
5503   ac_status=$?
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); }; }; then
5506       # The compiler can only warn and ignore the option if not recognized
5507     # So say no if there are warnings
5508     if test -s conftest.err; then
5509       lt_cv_compiler_o_lo=no
5510     else
5511       lt_cv_compiler_o_lo=yes
5512     fi
5513
5514 else
5515   echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5517
5518 fi
5519 rm -f conftest.$ac_objext conftest.$ac_ext
5520   ac_objext="$save_objext"
5521   CFLAGS="$save_CFLAGS"
5522
5523 fi
5524
5525   compiler_o_lo=$lt_cv_compiler_o_lo
5526   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5527 echo "${ECHO_T}$compiler_o_lo" >&6
5528 else
5529   compiler_o_lo=no
5530 fi
5531 ##
5532 ## END FIXME
5533
5534 ## FIXME: this should be a separate macro
5535 ##
5536 # Check to see if we can do hard links to lock some files if needed
5537 hard_links="nottested"
5538 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5539   # do not overwrite the value of need_locks provided by the user
5540   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5541 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5542   hard_links=yes
5543   $rm conftest*
5544   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5545   touch conftest.a
5546   ln conftest.a conftest.b 2>&5 || hard_links=no
5547   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5548   echo "$as_me:$LINENO: result: $hard_links" >&5
5549 echo "${ECHO_T}$hard_links" >&6
5550   if test "$hard_links" = no; then
5551     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5552 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5553     need_locks=warn
5554   fi
5555 else
5556   need_locks=no
5557 fi
5558 ##
5559 ## END FIXME
5560
5561 ## FIXME: this should be a separate macro
5562 ##
5563 if test "$GCC" = yes; then
5564   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5565   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5566 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5567   echo "int some_variable = 0;" > conftest.$ac_ext
5568   save_CFLAGS="$CFLAGS"
5569   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5570   compiler_rtti_exceptions=no
5571   cat >conftest.$ac_ext <<_ACEOF
5572 #line $LINENO "configure"
5573 /* confdefs.h.  */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h.  */
5578
5579 int
5580 main ()
5581 {
5582 int some_variable = 0;
5583   ;
5584   return 0;
5585 }
5586 _ACEOF
5587 rm -f conftest.$ac_objext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589   (eval $ac_compile) 2>&5
5590   ac_status=$?
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); } &&
5593          { ac_try='test -s conftest.$ac_objext'
5594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595   (eval $ac_try) 2>&5
5596   ac_status=$?
5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598   (exit $ac_status); }; }; then
5599       # The compiler can only warn and ignore the option if not recognized
5600     # So say no if there are warnings
5601     if test -s conftest.err; then
5602       compiler_rtti_exceptions=no
5603     else
5604       compiler_rtti_exceptions=yes
5605     fi
5606
5607 else
5608   echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5610
5611 fi
5612 rm -f conftest.$ac_objext conftest.$ac_ext
5613   CFLAGS="$save_CFLAGS"
5614   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5615 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5616
5617   if test "$compiler_rtti_exceptions" = "yes"; then
5618     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5619   else
5620     no_builtin_flag=' -fno-builtin'
5621   fi
5622 fi
5623 ##
5624 ## END FIXME
5625
5626 ## FIXME: this should be a separate macro
5627 ##
5628 # See if the linker supports building shared libraries.
5629 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5630 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5631
5632 allow_undefined_flag=
5633 no_undefined_flag=
5634 need_lib_prefix=unknown
5635 need_version=unknown
5636 # when you set need_version to no, make sure it does not cause -set_version
5637 # flags to be left without arguments
5638 archive_cmds=
5639 archive_expsym_cmds=
5640 old_archive_from_new_cmds=
5641 old_archive_from_expsyms_cmds=
5642 export_dynamic_flag_spec=
5643 whole_archive_flag_spec=
5644 thread_safe_flag_spec=
5645 hardcode_into_libs=no
5646 hardcode_libdir_flag_spec=
5647 hardcode_libdir_separator=
5648 hardcode_direct=no
5649 hardcode_minus_L=no
5650 hardcode_shlibpath_var=unsupported
5651 runpath_var=
5652 link_all_deplibs=unknown
5653 always_export_symbols=no
5654 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5655 # include_expsyms should be a list of space-separated symbols to be *always*
5656 # included in the symbol list
5657 include_expsyms=
5658 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5659 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5660 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5661 # as well as any symbol that contains `d'.
5662 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5663 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5664 # platforms (ab)use it in PIC code, but their linkers get confused if
5665 # the symbol is explicitly referenced.  Since portable code cannot
5666 # rely on this symbol name, it's probably fine to never include it in
5667 # preloaded symbol tables.
5668 extract_expsyms_cmds=
5669
5670 case $host_os in
5671 cygwin* | mingw* | pw32*)
5672   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5673   # When not using gcc, we currently assume that we are using
5674   # Microsoft Visual C++.
5675   if test "$GCC" != yes; then
5676     with_gnu_ld=no
5677   fi
5678   ;;
5679 openbsd*)
5680   with_gnu_ld=no
5681   ;;
5682 esac
5683
5684 ld_shlibs=yes
5685 if test "$with_gnu_ld" = yes; then
5686   # If archive_cmds runs LD, not CC, wlarc should be empty
5687   wlarc='${wl}'
5688
5689   # See if GNU ld supports shared libraries.
5690   case $host_os in
5691   aix3* | aix4* | aix5*)
5692     # On AIX, the GNU linker is very broken
5693     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5694     ld_shlibs=no
5695     cat <<EOF 1>&2
5696
5697 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5698 *** to be unable to reliably create shared libraries on AIX.
5699 *** Therefore, libtool is disabling shared libraries support.  If you
5700 *** really care for shared libraries, you may want to modify your PATH
5701 *** so that a non-GNU linker is found, and then restart.
5702
5703 EOF
5704     ;;
5705
5706   amigaos*)
5707     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)'
5708     hardcode_libdir_flag_spec='-L$libdir'
5709     hardcode_minus_L=yes
5710
5711     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5712     # that the semantics of dynamic libraries on AmigaOS, at least up
5713     # to version 4, is to share data among multiple programs linked
5714     # with the same dynamic library.  Since this doesn't match the
5715     # behavior of shared libraries on other platforms, we can use
5716     # them.
5717     ld_shlibs=no
5718     ;;
5719
5720   beos*)
5721     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5722       allow_undefined_flag=unsupported
5723       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5724       # support --undefined.  This deserves some investigation.  FIXME
5725       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5726     else
5727       ld_shlibs=no
5728     fi
5729     ;;
5730
5731   cygwin* | mingw* | pw32*)
5732     # hardcode_libdir_flag_spec is actually meaningless, as there is
5733     # no search path for DLLs.
5734     hardcode_libdir_flag_spec='-L$libdir'
5735     allow_undefined_flag=unsupported
5736     always_export_symbols=yes
5737
5738     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5739       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5740       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5741       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5742       else $CC -o impgen impgen.c ; fi)~
5743       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5744
5745     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5746
5747     # cygwin and mingw dlls have different entry points and sets of symbols
5748     # to exclude.
5749     # FIXME: what about values for MSVC?
5750     dll_entry=__cygwin_dll_entry@12
5751     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5752     case $host_os in
5753     mingw*)
5754       # mingw values
5755       dll_entry=_DllMainCRTStartup@12
5756       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5757       ;;
5758     esac
5759
5760     # mingw and cygwin differ, and it's simplest to just exclude the union
5761     # of the two symbol sets.
5762     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5763
5764     # recent cygwin and mingw systems supply a stub DllMain which the user
5765     # can override, but on older systems we have to supply one (in ltdll.c)
5766     if test "x$lt_cv_need_dllmain" = "xyes"; then
5767       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5768       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~
5769         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5770     else
5771       ltdll_obj=
5772       ltdll_cmds=
5773     fi
5774
5775     # Extract the symbol export list from an `--export-all' def file,
5776     # then regenerate the def file from the symbol export list, so that
5777     # the compiled dll only exports the symbol export list.
5778     # Be careful not to strip the DATA tag left be newer dlltools.
5779     export_symbols_cmds="$ltdll_cmds"'
5780       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5781       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5782
5783     # If the export-symbols file already is a .def file (1st line
5784     # is EXPORTS), use it as is.
5785     # If DATA tags from a recent dlltool are present, honour them!
5786     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5787         cp $export_symbols $output_objdir/$soname-def;
5788       else
5789         echo EXPORTS > $output_objdir/$soname-def;
5790         _lt_hint=1;
5791         cat $export_symbols | while read symbol; do
5792          set dummy \$symbol;
5793          case \$# in
5794            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5795            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5796          esac;
5797          _lt_hint=`expr 1 + \$_lt_hint`;
5798         done;
5799       fi~
5800       '"$ltdll_cmds"'
5801       $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~
5802       $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~
5803       $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~
5804       $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~
5805       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5806     ;;
5807
5808   netbsd*)
5809     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5810       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5811       wlarc=
5812     else
5813       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5814       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5815     fi
5816     ;;
5817
5818   solaris* | sysv5*)
5819     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5820       ld_shlibs=no
5821       cat <<EOF 1>&2
5822
5823 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5824 *** create shared libraries on Solaris systems.  Therefore, libtool
5825 *** is disabling shared libraries support.  We urge you to upgrade GNU
5826 *** binutils to release 2.9.1 or newer.  Another option is to modify
5827 *** your PATH or compiler configuration so that the native linker is
5828 *** used, and then restart.
5829
5830 EOF
5831     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5832       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5833       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5834     else
5835       ld_shlibs=no
5836     fi
5837     ;;
5838
5839   sunos4*)
5840     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5841     wlarc=
5842     hardcode_direct=yes
5843     hardcode_shlibpath_var=no
5844     ;;
5845
5846   *)
5847     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5848       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5849       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5850     else
5851       ld_shlibs=no
5852     fi
5853     ;;
5854   esac
5855
5856   if test "$ld_shlibs" = yes; then
5857     runpath_var=LD_RUN_PATH
5858     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5859     export_dynamic_flag_spec='${wl}--export-dynamic'
5860     case $host_os in
5861     cygwin* | mingw* | pw32*)
5862       # dlltool doesn't understand --whole-archive et. al.
5863       whole_archive_flag_spec=
5864       ;;
5865     *)
5866       # ancient GNU ld didn't support --whole-archive et. al.
5867       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5868         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5869       else
5870         whole_archive_flag_spec=
5871       fi
5872       ;;
5873     esac
5874   fi
5875 else
5876   # PORTME fill in a description of your system's linker (not GNU ld)
5877   case $host_os in
5878   aix3*)
5879     allow_undefined_flag=unsupported
5880     always_export_symbols=yes
5881     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'
5882     # Note: this linker hardcodes the directories in LIBPATH if there
5883     # are no directories specified by -L.
5884     hardcode_minus_L=yes
5885     if test "$GCC" = yes && test -z "$link_static_flag"; then
5886       # Neither direct hardcoding nor static linking is supported with a
5887       # broken collect2.
5888       hardcode_direct=unsupported
5889     fi
5890     ;;
5891
5892   aix4* | aix5*)
5893     if test "$host_cpu" = ia64; then
5894       # On IA64, the linker does run time linking by default, so we don't
5895       # have to do anything special.
5896       aix_use_runtimelinking=no
5897       exp_sym_flag='-Bexport'
5898       no_entry_flag=""
5899     else
5900       aix_use_runtimelinking=no
5901
5902       # Test if we are trying to use run time linking or normal
5903       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5904       # need to do runtime linking.
5905       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5906         for ld_flag in $LDFLAGS; do
5907           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5908             aix_use_runtimelinking=yes
5909             break
5910           fi
5911         done
5912       esac
5913
5914       exp_sym_flag='-bexport'
5915       no_entry_flag='-bnoentry'
5916     fi
5917
5918     # When large executables or shared objects are built, AIX ld can
5919     # have problems creating the table of contents.  If linking a library
5920     # or program results in "error TOC overflow" add -mminimal-toc to
5921     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5922     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5923
5924     hardcode_direct=yes
5925     archive_cmds=''
5926     hardcode_libdir_separator=':'
5927     if test "$GCC" = yes; then
5928       case $host_os in aix4.[012]|aix4.[012].*)
5929         collect2name=`${CC} -print-prog-name=collect2`
5930         if test -f "$collect2name" && \
5931           strings "$collect2name" | grep resolve_lib_name >/dev/null
5932         then
5933           # We have reworked collect2
5934           hardcode_direct=yes
5935         else
5936           # We have old collect2
5937           hardcode_direct=unsupported
5938           # It fails to find uninstalled libraries when the uninstalled
5939           # path is not listed in the libpath.  Setting hardcode_minus_L
5940           # to unsupported forces relinking
5941           hardcode_minus_L=yes
5942           hardcode_libdir_flag_spec='-L$libdir'
5943           hardcode_libdir_separator=
5944         fi
5945       esac
5946
5947       shared_flag='-shared'
5948     else
5949       # not using gcc
5950       if test "$host_cpu" = ia64; then
5951         shared_flag='${wl}-G'
5952       else
5953         if test "$aix_use_runtimelinking" = yes; then
5954           shared_flag='${wl}-G'
5955         else
5956           shared_flag='${wl}-bM:SRE'
5957         fi
5958       fi
5959     fi
5960
5961     # It seems that -bexpall can do strange things, so it is better to
5962     # generate a list of symbols to export.
5963     always_export_symbols=yes
5964     if test "$aix_use_runtimelinking" = yes; then
5965       # Warning - without using the other runtime loading flags (-brtl),
5966       # -berok will link without error, but may produce a broken library.
5967       allow_undefined_flag='-berok'
5968       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5969       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"
5970     else
5971       if test "$host_cpu" = ia64; then
5972         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5973         allow_undefined_flag="-z nodefs"
5974         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"
5975       else
5976         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5977         # Warning - without using the other run time loading flags,
5978         # -berok will link without error, but may produce a broken library.
5979         allow_undefined_flag='${wl}-berok'
5980         # This is a bit strange, but is similar to how AIX traditionally builds
5981         # it's shared libraries.
5982         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'
5983       fi
5984     fi
5985     ;;
5986
5987   amigaos*)
5988     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)'
5989     hardcode_libdir_flag_spec='-L$libdir'
5990     hardcode_minus_L=yes
5991     # see comment about different semantics on the GNU ld section
5992     ld_shlibs=no
5993     ;;
5994
5995   cygwin* | mingw* | pw32*)
5996     # When not using gcc, we currently assume that we are using
5997     # Microsoft Visual C++.
5998     # hardcode_libdir_flag_spec is actually meaningless, as there is
5999     # no search path for DLLs.
6000     hardcode_libdir_flag_spec=' '
6001     allow_undefined_flag=unsupported
6002     # Tell ltmain to make .lib files, not .a files.
6003     libext=lib
6004     # FIXME: Setting linknames here is a bad hack.
6005     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6006     # The linker will automatically build a .lib file if we build a DLL.
6007     old_archive_from_new_cmds='true'
6008     # FIXME: Should let the user specify the lib program.
6009     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6010     fix_srcfile_path='`cygpath -w "$srcfile"`'
6011     ;;
6012
6013   darwin* | rhapsody*)
6014     case "$host_os" in
6015     rhapsody* | darwin1.[012])
6016       allow_undefined_flag='-undefined suppress'
6017       ;;
6018     *) # Darwin 1.3 on
6019       allow_undefined_flag='-flat_namespace -undefined suppress'
6020       ;;
6021     esac
6022     # FIXME: Relying on posixy $() will cause problems for
6023     #        cross-compilation, but unfortunately the echo tests do not
6024     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6025     #        `"' quotes if we put them in here... so don't!
6026     archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6027     # We need to add '_' to the symbols in $export_symbols first
6028     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6029     hardcode_direct=yes
6030     hardcode_shlibpath_var=no
6031     whole_archive_flag_spec='-all_load $convenience'
6032     ;;
6033
6034   freebsd1*)
6035     ld_shlibs=no
6036     ;;
6037
6038   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6039   # support.  Future versions do this automatically, but an explicit c++rt0.o
6040   # does not break anything, and helps significantly (at the cost of a little
6041   # extra space).
6042   freebsd2.2*)
6043     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6044     hardcode_libdir_flag_spec='-R$libdir'
6045     hardcode_direct=yes
6046     hardcode_shlibpath_var=no
6047     ;;
6048
6049   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6050   freebsd2*)
6051     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6052     hardcode_direct=yes
6053     hardcode_minus_L=yes
6054     hardcode_shlibpath_var=no
6055     ;;
6056
6057   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6058   freebsd*)
6059     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6060     hardcode_libdir_flag_spec='-R$libdir'
6061     hardcode_direct=yes
6062     hardcode_shlibpath_var=no
6063     ;;
6064
6065   hpux9* | hpux10* | hpux11*)
6066     case $host_os in
6067     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' ;;
6068     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6069     esac
6070     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6071     hardcode_libdir_separator=:
6072     hardcode_direct=yes
6073     hardcode_minus_L=yes # Not in the search PATH, but as the default
6074                          # location of the library.
6075     export_dynamic_flag_spec='${wl}-E'
6076     ;;
6077
6078   irix5* | irix6* | nonstopux*)
6079     if test "$GCC" = yes; then
6080       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'
6081     else
6082       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'
6083     fi
6084     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6085     hardcode_libdir_separator=:
6086     link_all_deplibs=yes
6087     ;;
6088
6089   netbsd*)
6090     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6091       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6092     else
6093       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6094     fi
6095     hardcode_libdir_flag_spec='-R$libdir'
6096     hardcode_direct=yes
6097     hardcode_shlibpath_var=no
6098     ;;
6099
6100   newsos6)
6101     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6102     hardcode_direct=yes
6103     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6104     hardcode_libdir_separator=:
6105     hardcode_shlibpath_var=no
6106     ;;
6107
6108   openbsd*)
6109     hardcode_direct=yes
6110     hardcode_shlibpath_var=no
6111     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6112       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6113       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6114       export_dynamic_flag_spec='${wl}-E'
6115     else
6116       case "$host_os" in
6117       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6118         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6119         hardcode_libdir_flag_spec='-R$libdir'
6120         ;;
6121       *)
6122         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6123         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6124         ;;
6125       esac
6126     fi
6127     ;;
6128
6129   os2*)
6130     hardcode_libdir_flag_spec='-L$libdir'
6131     hardcode_minus_L=yes
6132     allow_undefined_flag=unsupported
6133     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'
6134     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6135     ;;
6136
6137   osf3*)
6138     if test "$GCC" = yes; then
6139       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6140       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'
6141     else
6142       allow_undefined_flag=' -expect_unresolved \*'
6143       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'
6144     fi
6145     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6146     hardcode_libdir_separator=:
6147     ;;
6148
6149   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6150     if test "$GCC" = yes; then
6151       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6152       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'
6153       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6154     else
6155       allow_undefined_flag=' -expect_unresolved \*'
6156       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'
6157       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6158       $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'
6159
6160       #Both c and cxx compiler support -rpath directly
6161       hardcode_libdir_flag_spec='-rpath $libdir'
6162     fi
6163     hardcode_libdir_separator=:
6164     ;;
6165
6166   sco3.2v5*)
6167     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6168     hardcode_shlibpath_var=no
6169     runpath_var=LD_RUN_PATH
6170     hardcode_runpath_var=yes
6171     export_dynamic_flag_spec='${wl}-Bexport'
6172     ;;
6173
6174   solaris*)
6175     # gcc --version < 3.0 without binutils cannot create self contained
6176     # shared libraries reliably, requiring libgcc.a to resolve some of
6177     # the object symbols generated in some cases.  Libraries that use
6178     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6179     # a copy of libgcc.a into every shared library to guarantee resolving
6180     # such symbols causes other problems:  According to Tim Van Holder
6181     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6182     # (to the application) exception stack for one thing.
6183     no_undefined_flag=' -z defs'
6184     if test "$GCC" = yes; then
6185       case `$CC --version 2>/dev/null` in
6186       [12].*)
6187         cat <<EOF 1>&2
6188
6189 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6190 *** create self contained shared libraries on Solaris systems, without
6191 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6192 *** -no-undefined support, which will at least allow you to build shared
6193 *** libraries.  However, you may find that when you link such libraries
6194 *** into an application without using GCC, you have to manually add
6195 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6196 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6197 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6198
6199 EOF
6200         no_undefined_flag=
6201         ;;
6202       esac
6203     fi
6204     # $CC -shared without GNU ld will not create a library from C++
6205     # object files and a static libstdc++, better avoid it by now
6206     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6207     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6208                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6209     hardcode_libdir_flag_spec='-R$libdir'
6210     hardcode_shlibpath_var=no
6211     case $host_os in
6212     solaris2.[0-5] | solaris2.[0-5].*) ;;
6213     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6214       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6215     esac
6216     link_all_deplibs=yes
6217     ;;
6218
6219   sunos4*)
6220     if test "x$host_vendor" = xsequent; then
6221       # Use $CC to link under sequent, because it throws in some extra .o
6222       # files that make .init and .fini sections work.
6223       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6224     else
6225       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6226     fi
6227     hardcode_libdir_flag_spec='-L$libdir'
6228     hardcode_direct=yes
6229     hardcode_minus_L=yes
6230     hardcode_shlibpath_var=no
6231     ;;
6232
6233   sysv4)
6234     if test "x$host_vendor" = xsno; then
6235       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6236       hardcode_direct=yes # is this really true???
6237     else
6238       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6239       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6240     fi
6241     runpath_var='LD_RUN_PATH'
6242     hardcode_shlibpath_var=no
6243     ;;
6244
6245   sysv4.3*)
6246     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6247     hardcode_shlibpath_var=no
6248     export_dynamic_flag_spec='-Bexport'
6249     ;;
6250
6251   sysv5*)
6252     no_undefined_flag=' -z text'
6253     # $CC -shared without GNU ld will not create a library from C++
6254     # object files and a static libstdc++, better avoid it by now
6255     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6256     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6257                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6258     hardcode_libdir_flag_spec=
6259     hardcode_shlibpath_var=no
6260     runpath_var='LD_RUN_PATH'
6261     ;;
6262
6263   uts4*)
6264     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6265     hardcode_libdir_flag_spec='-L$libdir'
6266     hardcode_shlibpath_var=no
6267     ;;
6268
6269   dgux*)
6270     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6271     hardcode_libdir_flag_spec='-L$libdir'
6272     hardcode_shlibpath_var=no
6273     ;;
6274
6275   sysv4*MP*)
6276     if test -d /usr/nec; then
6277       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6278       hardcode_shlibpath_var=no
6279       runpath_var=LD_RUN_PATH
6280       hardcode_runpath_var=yes
6281       ld_shlibs=yes
6282     fi
6283     ;;
6284
6285   sysv4.2uw2*)
6286     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6287     hardcode_direct=yes
6288     hardcode_minus_L=no
6289     hardcode_shlibpath_var=no
6290     hardcode_runpath_var=yes
6291     runpath_var=LD_RUN_PATH
6292     ;;
6293
6294   sysv5uw7* | unixware7*)
6295     no_undefined_flag='${wl}-z ${wl}text'
6296     if test "$GCC" = yes; then
6297       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6298     else
6299       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6300     fi
6301     runpath_var='LD_RUN_PATH'
6302     hardcode_shlibpath_var=no
6303     ;;
6304
6305   *)
6306     ld_shlibs=no
6307     ;;
6308   esac
6309 fi
6310 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6311 echo "${ECHO_T}$ld_shlibs" >&6
6312 test "$ld_shlibs" = no && can_build_shared=no
6313 ##
6314 ## END FIXME
6315
6316 ## FIXME: this should be a separate macro
6317 ##
6318 # Check hardcoding attributes.
6319 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6320 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6321 hardcode_action=
6322 if test -n "$hardcode_libdir_flag_spec" || \
6323    test -n "$runpath_var"; then
6324
6325   # We can hardcode non-existant directories.
6326   if test "$hardcode_direct" != no &&
6327      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6328      # have to relink, otherwise we might link with an installed library
6329      # when we should be linking with a yet-to-be-installed one
6330      ## test "$hardcode_shlibpath_var" != no &&
6331      test "$hardcode_minus_L" != no; then
6332     # Linking always hardcodes the temporary library directory.
6333     hardcode_action=relink
6334   else
6335     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6336     hardcode_action=immediate
6337   fi
6338 else
6339   # We cannot hardcode anything, or else we can only hardcode existing
6340   # directories.
6341   hardcode_action=unsupported
6342 fi
6343 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6344 echo "${ECHO_T}$hardcode_action" >&6
6345 ##
6346 ## END FIXME
6347
6348 ## FIXME: this should be a separate macro
6349 ##
6350 striplib=
6351 old_striplib=
6352 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6353 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6354 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6355   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6356   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6357   echo "$as_me:$LINENO: result: yes" >&5
6358 echo "${ECHO_T}yes" >&6
6359 else
6360   echo "$as_me:$LINENO: result: no" >&5
6361 echo "${ECHO_T}no" >&6
6362 fi
6363 ##
6364 ## END FIXME
6365
6366 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6367 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6368
6369 ## FIXME: this should be a separate macro
6370 ##
6371 # PORTME Fill in your ld.so characteristics
6372 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6373 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6374 library_names_spec=
6375 libname_spec='lib$name'
6376 soname_spec=
6377 postinstall_cmds=
6378 postuninstall_cmds=
6379 finish_cmds=
6380 finish_eval=
6381 shlibpath_var=
6382 shlibpath_overrides_runpath=unknown
6383 version_type=none
6384 dynamic_linker="$host_os ld.so"
6385 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6386 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6387
6388 case $host_os in
6389 aix3*)
6390   version_type=linux
6391   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6392   shlibpath_var=LIBPATH
6393
6394   # AIX has no versioning support, so we append a major version to the name.
6395   soname_spec='${libname}${release}.so$major'
6396   ;;
6397
6398 aix4* | aix5*)
6399   version_type=linux
6400   if test "$host_cpu" = ia64; then
6401     # AIX 5 supports IA64
6402     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6403     shlibpath_var=LD_LIBRARY_PATH
6404   else
6405     # With GCC up to 2.95.x, collect2 would create an import file
6406     # for dependence libraries.  The import file would start with
6407     # the line `#! .'.  This would cause the generated library to
6408     # depend on `.', always an invalid library.  This was fixed in
6409     # development snapshots of GCC prior to 3.0.
6410     case $host_os in
6411       aix4 | aix4.[01] | aix4.[01].*)
6412         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6413              echo ' yes '
6414              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6415           :
6416         else
6417           can_build_shared=no
6418         fi
6419         ;;
6420     esac
6421     # AIX (on Power*) has no versioning support, so currently we can
6422     # not hardcode correct soname into executable. Probably we can
6423     # add versioning support to collect2, so additional links can
6424     # be useful in future.
6425     if test "$aix_use_runtimelinking" = yes; then
6426       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6427       # instead of lib<name>.a to let people know that these are not
6428       # typical AIX shared libraries.
6429       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6430     else
6431       # We preserve .a as extension for shared libraries through AIX4.2
6432       # and later when we are not doing run time linking.
6433       library_names_spec='${libname}${release}.a $libname.a'
6434       soname_spec='${libname}${release}.so$major'
6435     fi
6436     shlibpath_var=LIBPATH
6437   fi
6438   ;;
6439
6440 amigaos*)
6441   library_names_spec='$libname.ixlibrary $libname.a'
6442   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6443   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'
6444   ;;
6445
6446 beos*)
6447   library_names_spec='${libname}.so'
6448   dynamic_linker="$host_os ld.so"
6449   shlibpath_var=LIBRARY_PATH
6450   ;;
6451
6452 bsdi4*)
6453   version_type=linux
6454   need_version=no
6455   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6456   soname_spec='${libname}${release}.so$major'
6457   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6458   shlibpath_var=LD_LIBRARY_PATH
6459   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6460   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6461   export_dynamic_flag_spec=-rdynamic
6462   # the default ld.so.conf also contains /usr/contrib/lib and
6463   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6464   # libtool to hard-code these into programs
6465   ;;
6466
6467 cygwin* | mingw* | pw32*)
6468   version_type=windows
6469   need_version=no
6470   need_lib_prefix=no
6471   case $GCC,$host_os in
6472   yes,cygwin*)
6473     library_names_spec='$libname.dll.a'
6474     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6475     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6476       dldir=$destdir/`dirname \$dlpath`~
6477       test -d \$dldir || mkdir -p \$dldir~
6478       $install_prog .libs/$dlname \$dldir/$dlname'
6479     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6480       dlpath=$dir/\$dldll~
6481        $rm \$dlpath'
6482     ;;
6483   yes,mingw*)
6484     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6485     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6486     ;;
6487   yes,pw32*)
6488     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6489     ;;
6490   *)
6491     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6492     ;;
6493   esac
6494   dynamic_linker='Win32 ld.exe'
6495   # FIXME: first we should search . and the directory the executable is in
6496   shlibpath_var=PATH
6497   ;;
6498
6499 darwin* | rhapsody*)
6500   dynamic_linker="$host_os dyld"
6501   version_type=darwin
6502   need_lib_prefix=no
6503   need_version=no
6504   # FIXME: Relying on posixy $() will cause problems for
6505   #        cross-compilation, but unfortunately the echo tests do not
6506   #        yet detect zsh echo's removal of \ escapes.
6507   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)'
6508   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6509   shlibpath_overrides_runpath=yes
6510   shlibpath_var=DYLD_LIBRARY_PATH
6511   ;;
6512
6513 freebsd1*)
6514   dynamic_linker=no
6515   ;;
6516
6517 freebsd*)
6518   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6519   version_type=freebsd-$objformat
6520   case $version_type in
6521     freebsd-elf*)
6522       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6523       need_version=no
6524       need_lib_prefix=no
6525       ;;
6526     freebsd-*)
6527       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6528       need_version=yes
6529       ;;
6530   esac
6531   shlibpath_var=LD_LIBRARY_PATH
6532   case $host_os in
6533   freebsd2*)
6534     shlibpath_overrides_runpath=yes
6535     ;;
6536   *)
6537     shlibpath_overrides_runpath=no
6538     hardcode_into_libs=yes
6539     ;;
6540   esac
6541   ;;
6542
6543 gnu*)
6544   version_type=linux
6545   need_lib_prefix=no
6546   need_version=no
6547   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6548   soname_spec='${libname}${release}.so$major'
6549   shlibpath_var=LD_LIBRARY_PATH
6550   hardcode_into_libs=yes
6551   ;;
6552
6553 hpux9* | hpux10* | hpux11*)
6554   # Give a soname corresponding to the major version so that dld.sl refuses to
6555   # link against other versions.
6556   dynamic_linker="$host_os dld.sl"
6557   version_type=sunos
6558   need_lib_prefix=no
6559   need_version=no
6560   shlibpath_var=SHLIB_PATH
6561   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6562   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6563   soname_spec='${libname}${release}.sl$major'
6564   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6565   postinstall_cmds='chmod 555 $lib'
6566   ;;
6567
6568 irix5* | irix6* | nonstopux*)
6569   case $host_os in
6570     nonstopux*) version_type=nonstopux ;;
6571     *)          version_type=irix ;;
6572   esac
6573   need_lib_prefix=no
6574   need_version=no
6575   soname_spec='${libname}${release}.so$major'
6576   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6577   case $host_os in
6578   irix5* | nonstopux*)
6579     libsuff= shlibsuff=
6580     ;;
6581   *)
6582     case $LD in # libtool.m4 will add one of these switches to LD
6583     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6584     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6585     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6586     *) libsuff= shlibsuff= libmagic=never-match;;
6587     esac
6588     ;;
6589   esac
6590   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6591   shlibpath_overrides_runpath=no
6592   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6593   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6594   ;;
6595
6596 # No shared lib support for Linux oldld, aout, or coff.
6597 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6598   dynamic_linker=no
6599   ;;
6600
6601 # This must be Linux ELF.
6602 linux-gnu*)
6603   version_type=linux
6604   need_lib_prefix=no
6605   need_version=no
6606   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6607   soname_spec='${libname}${release}.so$major'
6608   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6609   shlibpath_var=LD_LIBRARY_PATH
6610   shlibpath_overrides_runpath=no
6611   # This implies no fast_install, which is unacceptable.
6612   # Some rework will be needed to allow for fast_install
6613   # before this can be enabled.
6614   hardcode_into_libs=yes
6615
6616   # We used to test for /lib/ld.so.1 and disable shared libraries on
6617   # powerpc, because MkLinux only supported shared libraries with the
6618   # GNU dynamic linker.  Since this was broken with cross compilers,
6619   # most powerpc-linux boxes support dynamic linking these days and
6620   # people can always --disable-shared, the test was removed, and we
6621   # assume the GNU/Linux dynamic linker is in use.
6622   dynamic_linker='GNU/Linux ld.so'
6623   ;;
6624
6625 netbsd*)
6626   version_type=sunos
6627   need_lib_prefix=no
6628   need_version=no
6629   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6630     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6631     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6632     dynamic_linker='NetBSD (a.out) ld.so'
6633   else
6634     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6635     soname_spec='${libname}${release}.so$major'
6636     dynamic_linker='NetBSD ld.elf_so'
6637   fi
6638   shlibpath_var=LD_LIBRARY_PATH
6639   shlibpath_overrides_runpath=yes
6640   hardcode_into_libs=yes
6641   ;;
6642
6643 newsos6)
6644   version_type=linux
6645   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6646   shlibpath_var=LD_LIBRARY_PATH
6647   shlibpath_overrides_runpath=yes
6648   ;;
6649
6650 openbsd*)
6651   version_type=sunos
6652   need_lib_prefix=no
6653   need_version=no
6654   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6655     case "$host_os" in
6656     openbsd2.[89] | openbsd2.[89].*)
6657       shlibpath_overrides_runpath=no
6658       ;;
6659     *)
6660       shlibpath_overrides_runpath=yes
6661       ;;
6662     esac
6663   else
6664     shlibpath_overrides_runpath=yes
6665   fi
6666   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6667   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6668   shlibpath_var=LD_LIBRARY_PATH
6669   ;;
6670
6671 os2*)
6672   libname_spec='$name'
6673   need_lib_prefix=no
6674   library_names_spec='$libname.dll $libname.a'
6675   dynamic_linker='OS/2 ld.exe'
6676   shlibpath_var=LIBPATH
6677   ;;
6678
6679 osf3* | osf4* | osf5*)
6680   version_type=osf
6681   need_version=no
6682   soname_spec='${libname}${release}.so'
6683   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6684   shlibpath_var=LD_LIBRARY_PATH
6685   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6686   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6687   ;;
6688
6689 sco3.2v5*)
6690   version_type=osf
6691   soname_spec='${libname}${release}.so$major'
6692   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6693   shlibpath_var=LD_LIBRARY_PATH
6694   ;;
6695
6696 solaris*)
6697   version_type=linux
6698   need_lib_prefix=no
6699   need_version=no
6700   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6701   soname_spec='${libname}${release}.so$major'
6702   shlibpath_var=LD_LIBRARY_PATH
6703   shlibpath_overrides_runpath=yes
6704   hardcode_into_libs=yes
6705   # ldd complains unless libraries are executable
6706   postinstall_cmds='chmod +x $lib'
6707   ;;
6708
6709 sunos4*)
6710   version_type=sunos
6711   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6712   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6713   shlibpath_var=LD_LIBRARY_PATH
6714   shlibpath_overrides_runpath=yes
6715   if test "$with_gnu_ld" = yes; then
6716     need_lib_prefix=no
6717   fi
6718   need_version=yes
6719   ;;
6720
6721 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6722   version_type=linux
6723   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6724   soname_spec='${libname}${release}.so$major'
6725   shlibpath_var=LD_LIBRARY_PATH
6726   case $host_vendor in
6727     sni)
6728       shlibpath_overrides_runpath=no
6729       ;;
6730     motorola)
6731       need_lib_prefix=no
6732       need_version=no
6733       shlibpath_overrides_runpath=no
6734       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6735       ;;
6736   esac
6737   ;;
6738
6739 uts4*)
6740   version_type=linux
6741   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6742   soname_spec='${libname}${release}.so$major'
6743   shlibpath_var=LD_LIBRARY_PATH
6744   ;;
6745
6746 dgux*)
6747   version_type=linux
6748   need_lib_prefix=no
6749   need_version=no
6750   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6751   soname_spec='${libname}${release}.so$major'
6752   shlibpath_var=LD_LIBRARY_PATH
6753   ;;
6754
6755 sysv4*MP*)
6756   if test -d /usr/nec ;then
6757     version_type=linux
6758     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6759     soname_spec='$libname.so.$major'
6760     shlibpath_var=LD_LIBRARY_PATH
6761   fi
6762   ;;
6763
6764 *)
6765   dynamic_linker=no
6766   ;;
6767 esac
6768 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6769 echo "${ECHO_T}$dynamic_linker" >&6
6770 test "$dynamic_linker" = no && can_build_shared=no
6771 ##
6772 ## END FIXME
6773
6774 ## FIXME: this should be a separate macro
6775 ##
6776 # Report the final consequences.
6777 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6778 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6779 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6780 echo "${ECHO_T}$can_build_shared" >&6
6781 ##
6782 ## END FIXME
6783
6784 ## FIXME: this should be a separate macro
6785 ##
6786 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6787 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6788 test "$can_build_shared" = "no" && enable_shared=no
6789
6790 # On AIX, shared libraries and static libraries use the same namespace, and
6791 # are all built from PIC.
6792 case "$host_os" in
6793 aix3*)
6794   test "$enable_shared" = yes && enable_static=no
6795   if test -n "$RANLIB"; then
6796     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6797     postinstall_cmds='$RANLIB $lib'
6798   fi
6799   ;;
6800
6801 aix4*)
6802   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6803     test "$enable_shared" = yes && enable_static=no
6804   fi
6805   ;;
6806 esac
6807 echo "$as_me:$LINENO: result: $enable_shared" >&5
6808 echo "${ECHO_T}$enable_shared" >&6
6809 ##
6810 ## END FIXME
6811
6812 ## FIXME: this should be a separate macro
6813 ##
6814 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6815 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6816 # Make sure either enable_shared or enable_static is yes.
6817 test "$enable_shared" = yes || enable_static=yes
6818 echo "$as_me:$LINENO: result: $enable_static" >&5
6819 echo "${ECHO_T}$enable_static" >&6
6820 ##
6821 ## END FIXME
6822
6823 if test "$hardcode_action" = relink; then
6824   # Fast installation is not supported
6825   enable_fast_install=no
6826 elif test "$shlibpath_overrides_runpath" = yes ||
6827      test "$enable_shared" = no; then
6828   # Fast installation is not necessary
6829   enable_fast_install=needless
6830 fi
6831
6832 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6833 if test "$GCC" = yes; then
6834   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6835 fi
6836
6837 if test "x$enable_dlopen" != xyes; then
6838   enable_dlopen=unknown
6839   enable_dlopen_self=unknown
6840   enable_dlopen_self_static=unknown
6841 else
6842   lt_cv_dlopen=no
6843   lt_cv_dlopen_libs=
6844
6845   case $host_os in
6846   beos*)
6847     lt_cv_dlopen="load_add_on"
6848     lt_cv_dlopen_libs=
6849     lt_cv_dlopen_self=yes
6850     ;;
6851
6852   cygwin* | mingw* | pw32*)
6853     lt_cv_dlopen="LoadLibrary"
6854     lt_cv_dlopen_libs=
6855    ;;
6856
6857   *)
6858     echo "$as_me:$LINENO: checking for shl_load" >&5
6859 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6860 if test "${ac_cv_func_shl_load+set}" = set; then
6861   echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863   cat >conftest.$ac_ext <<_ACEOF
6864 #line $LINENO "configure"
6865 /* confdefs.h.  */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h.  */
6870 /* System header to define __stub macros and hopefully few prototypes,
6871     which can conflict with char shl_load (); below.
6872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6873     <limits.h> exists even on freestanding compilers.  */
6874 #ifdef __STDC__
6875 # include <limits.h>
6876 #else
6877 # include <assert.h>
6878 #endif
6879 /* Override any gcc2 internal prototype to avoid an error.  */
6880 #ifdef __cplusplus
6881 extern "C"
6882 {
6883 #endif
6884 /* We use char because int might match the return type of a gcc2
6885    builtin and then its argument prototype would still apply.  */
6886 char shl_load ();
6887 /* The GNU C library defines this for functions which it implements
6888     to always fail with ENOSYS.  Some functions are actually named
6889     something starting with __ and the normal name is an alias.  */
6890 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6891 choke me
6892 #else
6893 char (*f) () = shl_load;
6894 #endif
6895 #ifdef __cplusplus
6896 }
6897 #endif
6898
6899 int
6900 main ()
6901 {
6902 return f != shl_load;
6903   ;
6904   return 0;
6905 }
6906 _ACEOF
6907 rm -f conftest.$ac_objext conftest$ac_exeext
6908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6909   (eval $ac_link) 2>&5
6910   ac_status=$?
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); } &&
6913          { ac_try='test -s conftest$ac_exeext'
6914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915   (eval $ac_try) 2>&5
6916   ac_status=$?
6917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918   (exit $ac_status); }; }; then
6919   ac_cv_func_shl_load=yes
6920 else
6921   echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6923
6924 ac_cv_func_shl_load=no
6925 fi
6926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6927 fi
6928 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6929 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6930 if test $ac_cv_func_shl_load = yes; then
6931   lt_cv_dlopen="shl_load"
6932 else
6933   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6934 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6935 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6936   echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938   ac_check_lib_save_LIBS=$LIBS
6939 LIBS="-ldld  $LIBS"
6940 cat >conftest.$ac_ext <<_ACEOF
6941 #line $LINENO "configure"
6942 /* confdefs.h.  */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h.  */
6947
6948 /* Override any gcc2 internal prototype to avoid an error.  */
6949 #ifdef __cplusplus
6950 extern "C"
6951 #endif
6952 /* We use char because int might match the return type of a gcc2
6953    builtin and then its argument prototype would still apply.  */
6954 char shl_load ();
6955 int
6956 main ()
6957 {
6958 shl_load ();
6959   ;
6960   return 0;
6961 }
6962 _ACEOF
6963 rm -f conftest.$ac_objext conftest$ac_exeext
6964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6965   (eval $ac_link) 2>&5
6966   ac_status=$?
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); } &&
6969          { ac_try='test -s conftest$ac_exeext'
6970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971   (eval $ac_try) 2>&5
6972   ac_status=$?
6973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974   (exit $ac_status); }; }; then
6975   ac_cv_lib_dld_shl_load=yes
6976 else
6977   echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.$ac_ext >&5
6979
6980 ac_cv_lib_dld_shl_load=no
6981 fi
6982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6983 LIBS=$ac_check_lib_save_LIBS
6984 fi
6985 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6986 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6987 if test $ac_cv_lib_dld_shl_load = yes; then
6988   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6989 else
6990   echo "$as_me:$LINENO: checking for dlopen" >&5
6991 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6992 if test "${ac_cv_func_dlopen+set}" = set; then
6993   echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995   cat >conftest.$ac_ext <<_ACEOF
6996 #line $LINENO "configure"
6997 /* confdefs.h.  */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h.  */
7002 /* System header to define __stub macros and hopefully few prototypes,
7003     which can conflict with char dlopen (); below.
7004     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7005     <limits.h> exists even on freestanding compilers.  */
7006 #ifdef __STDC__
7007 # include <limits.h>
7008 #else
7009 # include <assert.h>
7010 #endif
7011 /* Override any gcc2 internal prototype to avoid an error.  */
7012 #ifdef __cplusplus
7013 extern "C"
7014 {
7015 #endif
7016 /* We use char because int might match the return type of a gcc2
7017    builtin and then its argument prototype would still apply.  */
7018 char dlopen ();
7019 /* The GNU C library defines this for functions which it implements
7020     to always fail with ENOSYS.  Some functions are actually named
7021     something starting with __ and the normal name is an alias.  */
7022 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7023 choke me
7024 #else
7025 char (*f) () = dlopen;
7026 #endif
7027 #ifdef __cplusplus
7028 }
7029 #endif
7030
7031 int
7032 main ()
7033 {
7034 return f != dlopen;
7035   ;
7036   return 0;
7037 }
7038 _ACEOF
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041   (eval $ac_link) 2>&5
7042   ac_status=$?
7043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044   (exit $ac_status); } &&
7045          { ac_try='test -s conftest$ac_exeext'
7046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047   (eval $ac_try) 2>&5
7048   ac_status=$?
7049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050   (exit $ac_status); }; }; then
7051   ac_cv_func_dlopen=yes
7052 else
7053   echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7055
7056 ac_cv_func_dlopen=no
7057 fi
7058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7059 fi
7060 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7061 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7062 if test $ac_cv_func_dlopen = yes; then
7063   lt_cv_dlopen="dlopen"
7064 else
7065   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7066 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7067 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7068   echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070   ac_check_lib_save_LIBS=$LIBS
7071 LIBS="-ldl  $LIBS"
7072 cat >conftest.$ac_ext <<_ACEOF
7073 #line $LINENO "configure"
7074 /* confdefs.h.  */
7075 _ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h.  */
7079
7080 /* Override any gcc2 internal prototype to avoid an error.  */
7081 #ifdef __cplusplus
7082 extern "C"
7083 #endif
7084 /* We use char because int might match the return type of a gcc2
7085    builtin and then its argument prototype would still apply.  */
7086 char dlopen ();
7087 int
7088 main ()
7089 {
7090 dlopen ();
7091   ;
7092   return 0;
7093 }
7094 _ACEOF
7095 rm -f conftest.$ac_objext conftest$ac_exeext
7096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7097   (eval $ac_link) 2>&5
7098   ac_status=$?
7099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100   (exit $ac_status); } &&
7101          { ac_try='test -s conftest$ac_exeext'
7102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103   (eval $ac_try) 2>&5
7104   ac_status=$?
7105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106   (exit $ac_status); }; }; then
7107   ac_cv_lib_dl_dlopen=yes
7108 else
7109   echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7111
7112 ac_cv_lib_dl_dlopen=no
7113 fi
7114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7115 LIBS=$ac_check_lib_save_LIBS
7116 fi
7117 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7118 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7119 if test $ac_cv_lib_dl_dlopen = yes; then
7120   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7121 else
7122   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7123 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7124 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7125   echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127   ac_check_lib_save_LIBS=$LIBS
7128 LIBS="-lsvld  $LIBS"
7129 cat >conftest.$ac_ext <<_ACEOF
7130 #line $LINENO "configure"
7131 /* confdefs.h.  */
7132 _ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h.  */
7136
7137 /* Override any gcc2 internal prototype to avoid an error.  */
7138 #ifdef __cplusplus
7139 extern "C"
7140 #endif
7141 /* We use char because int might match the return type of a gcc2
7142    builtin and then its argument prototype would still apply.  */
7143 char dlopen ();
7144 int
7145 main ()
7146 {
7147 dlopen ();
7148   ;
7149   return 0;
7150 }
7151 _ACEOF
7152 rm -f conftest.$ac_objext conftest$ac_exeext
7153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7154   (eval $ac_link) 2>&5
7155   ac_status=$?
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); } &&
7158          { ac_try='test -s conftest$ac_exeext'
7159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160   (eval $ac_try) 2>&5
7161   ac_status=$?
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); }; }; then
7164   ac_cv_lib_svld_dlopen=yes
7165 else
7166   echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7168
7169 ac_cv_lib_svld_dlopen=no
7170 fi
7171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7172 LIBS=$ac_check_lib_save_LIBS
7173 fi
7174 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7175 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7176 if test $ac_cv_lib_svld_dlopen = yes; then
7177   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7178 else
7179   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7180 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7181 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7182   echo $ECHO_N "(cached) $ECHO_C" >&6
7183 else
7184   ac_check_lib_save_LIBS=$LIBS
7185 LIBS="-ldld  $LIBS"
7186 cat >conftest.$ac_ext <<_ACEOF
7187 #line $LINENO "configure"
7188 /* confdefs.h.  */
7189 _ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h.  */
7193
7194 /* Override any gcc2 internal prototype to avoid an error.  */
7195 #ifdef __cplusplus
7196 extern "C"
7197 #endif
7198 /* We use char because int might match the return type of a gcc2
7199    builtin and then its argument prototype would still apply.  */
7200 char dld_link ();
7201 int
7202 main ()
7203 {
7204 dld_link ();
7205   ;
7206   return 0;
7207 }
7208 _ACEOF
7209 rm -f conftest.$ac_objext conftest$ac_exeext
7210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7211   (eval $ac_link) 2>&5
7212   ac_status=$?
7213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214   (exit $ac_status); } &&
7215          { ac_try='test -s conftest$ac_exeext'
7216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217   (eval $ac_try) 2>&5
7218   ac_status=$?
7219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220   (exit $ac_status); }; }; then
7221   ac_cv_lib_dld_dld_link=yes
7222 else
7223   echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7225
7226 ac_cv_lib_dld_dld_link=no
7227 fi
7228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7229 LIBS=$ac_check_lib_save_LIBS
7230 fi
7231 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7232 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7233 if test $ac_cv_lib_dld_dld_link = yes; then
7234   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7235 fi
7236
7237
7238 fi
7239
7240
7241 fi
7242
7243
7244 fi
7245
7246
7247 fi
7248
7249
7250 fi
7251
7252     ;;
7253   esac
7254
7255   if test "x$lt_cv_dlopen" != xno; then
7256     enable_dlopen=yes
7257   else
7258     enable_dlopen=no
7259   fi
7260
7261   case $lt_cv_dlopen in
7262   dlopen)
7263     save_CPPFLAGS="$CPPFLAGS"
7264         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7265
7266     save_LDFLAGS="$LDFLAGS"
7267     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7268
7269     save_LIBS="$LIBS"
7270     LIBS="$lt_cv_dlopen_libs $LIBS"
7271
7272     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7273 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7274 if test "${lt_cv_dlopen_self+set}" = set; then
7275   echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277           if test "$cross_compiling" = yes; then :
7278   lt_cv_dlopen_self=cross
7279 else
7280     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7281   lt_status=$lt_dlunknown
7282   cat > conftest.$ac_ext <<EOF
7283 #line 7283 "configure"
7284 #include "confdefs.h"
7285
7286 #if HAVE_DLFCN_H
7287 #include <dlfcn.h>
7288 #endif
7289
7290 #include <stdio.h>
7291
7292 #ifdef RTLD_GLOBAL
7293 #  define LT_DLGLOBAL           RTLD_GLOBAL
7294 #else
7295 #  ifdef DL_GLOBAL
7296 #    define LT_DLGLOBAL         DL_GLOBAL
7297 #  else
7298 #    define LT_DLGLOBAL         0
7299 #  endif
7300 #endif
7301
7302 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7303    find out it does not work in some platform. */
7304 #ifndef LT_DLLAZY_OR_NOW
7305 #  ifdef RTLD_LAZY
7306 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7307 #  else
7308 #    ifdef DL_LAZY
7309 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7310 #    else
7311 #      ifdef RTLD_NOW
7312 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7313 #      else
7314 #        ifdef DL_NOW
7315 #          define LT_DLLAZY_OR_NOW      DL_NOW
7316 #        else
7317 #          define LT_DLLAZY_OR_NOW      0
7318 #        endif
7319 #      endif
7320 #    endif
7321 #  endif
7322 #endif
7323
7324 #ifdef __cplusplus
7325 extern "C" void exit (int);
7326 #endif
7327
7328 void fnord() { int i=42;}
7329 int main ()
7330 {
7331   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7332   int status = $lt_dlunknown;
7333
7334   if (self)
7335     {
7336       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7337       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7338       /* dlclose (self); */
7339     }
7340
7341     exit (status);
7342 }
7343 EOF
7344   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7345   (eval $ac_link) 2>&5
7346   ac_status=$?
7347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7349     (./conftest; exit; ) 2>/dev/null
7350     lt_status=$?
7351     case x$lt_status in
7352       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7353       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7354       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7355     esac
7356   else :
7357     # compilation failed
7358     lt_cv_dlopen_self=no
7359   fi
7360 fi
7361 rm -fr conftest*
7362
7363
7364 fi
7365 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7366 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7367
7368     if test "x$lt_cv_dlopen_self" = xyes; then
7369       LDFLAGS="$LDFLAGS $link_static_flag"
7370       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7371 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7372 if test "${lt_cv_dlopen_self_static+set}" = set; then
7373   echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375           if test "$cross_compiling" = yes; then :
7376   lt_cv_dlopen_self_static=cross
7377 else
7378     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7379   lt_status=$lt_dlunknown
7380   cat > conftest.$ac_ext <<EOF
7381 #line 7381 "configure"
7382 #include "confdefs.h"
7383
7384 #if HAVE_DLFCN_H
7385 #include <dlfcn.h>
7386 #endif
7387
7388 #include <stdio.h>
7389
7390 #ifdef RTLD_GLOBAL
7391 #  define LT_DLGLOBAL           RTLD_GLOBAL
7392 #else
7393 #  ifdef DL_GLOBAL
7394 #    define LT_DLGLOBAL         DL_GLOBAL
7395 #  else
7396 #    define LT_DLGLOBAL         0
7397 #  endif
7398 #endif
7399
7400 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7401    find out it does not work in some platform. */
7402 #ifndef LT_DLLAZY_OR_NOW
7403 #  ifdef RTLD_LAZY
7404 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7405 #  else
7406 #    ifdef DL_LAZY
7407 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7408 #    else
7409 #      ifdef RTLD_NOW
7410 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7411 #      else
7412 #        ifdef DL_NOW
7413 #          define LT_DLLAZY_OR_NOW      DL_NOW
7414 #        else
7415 #          define LT_DLLAZY_OR_NOW      0
7416 #        endif
7417 #      endif
7418 #    endif
7419 #  endif
7420 #endif
7421
7422 #ifdef __cplusplus
7423 extern "C" void exit (int);
7424 #endif
7425
7426 void fnord() { int i=42;}
7427 int main ()
7428 {
7429   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7430   int status = $lt_dlunknown;
7431
7432   if (self)
7433     {
7434       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7435       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7436       /* dlclose (self); */
7437     }
7438
7439     exit (status);
7440 }
7441 EOF
7442   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443   (eval $ac_link) 2>&5
7444   ac_status=$?
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7447     (./conftest; exit; ) 2>/dev/null
7448     lt_status=$?
7449     case x$lt_status in
7450       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7451       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7452       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7453     esac
7454   else :
7455     # compilation failed
7456     lt_cv_dlopen_self_static=no
7457   fi
7458 fi
7459 rm -fr conftest*
7460
7461
7462 fi
7463 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7464 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7465     fi
7466
7467     CPPFLAGS="$save_CPPFLAGS"
7468     LDFLAGS="$save_LDFLAGS"
7469     LIBS="$save_LIBS"
7470     ;;
7471   esac
7472
7473   case $lt_cv_dlopen_self in
7474   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7475   *) enable_dlopen_self=unknown ;;
7476   esac
7477
7478   case $lt_cv_dlopen_self_static in
7479   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7480   *) enable_dlopen_self_static=unknown ;;
7481   esac
7482 fi
7483
7484
7485 ## FIXME: this should be a separate macro
7486 ##
7487 if test "$enable_shared" = yes && test "$GCC" = yes; then
7488   case $archive_cmds in
7489   *'~'*)
7490     # FIXME: we may have to deal with multi-command sequences.
7491     ;;
7492   '$CC '*)
7493     # Test whether the compiler implicitly links with -lc since on some
7494     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7495     # to ld, don't add -lc before -lgcc.
7496     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7497 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7498     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7499   echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501   $rm conftest*
7502     echo 'static int dummy;' > conftest.$ac_ext
7503
7504     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7505   (eval $ac_compile) 2>&5
7506   ac_status=$?
7507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508   (exit $ac_status); }; then
7509       soname=conftest
7510       lib=conftest
7511       libobjs=conftest.$ac_objext
7512       deplibs=
7513       wl=$lt_cv_prog_cc_wl
7514       compiler_flags=-v
7515       linker_flags=-v
7516       verstring=
7517       output_objdir=.
7518       libname=conftest
7519       save_allow_undefined_flag=$allow_undefined_flag
7520       allow_undefined_flag=
7521       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7522   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7523   ac_status=$?
7524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); }
7526       then
7527         lt_cv_archive_cmds_need_lc=no
7528       else
7529         lt_cv_archive_cmds_need_lc=yes
7530       fi
7531       allow_undefined_flag=$save_allow_undefined_flag
7532     else
7533       cat conftest.err 1>&5
7534     fi
7535 fi
7536
7537     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7538 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7539     ;;
7540   esac
7541 fi
7542 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7543 ##
7544 ## END FIXME
7545
7546 ## FIXME: this should be a separate macro
7547 ##
7548 # The second clause should only fire when bootstrapping the
7549 # libtool distribution, otherwise you forgot to ship ltmain.sh
7550 # with your package, and you will get complaints that there are
7551 # no rules to generate ltmain.sh.
7552 if test -f "$ltmain"; then
7553   :
7554 else
7555   # If there is no Makefile yet, we rely on a make rule to execute
7556   # `config.status --recheck' to rerun these tests and create the
7557   # libtool script then.
7558   test -f Makefile && make "$ltmain"
7559 fi
7560
7561 if test -f "$ltmain"; then
7562   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7563   $rm -f "${ofile}T"
7564
7565   echo creating $ofile
7566
7567   # Now quote all the things that may contain metacharacters while being
7568   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7569   # variables and quote the copies for generation of the libtool script.
7570   for var in echo old_CC old_CFLAGS \
7571     AR AR_FLAGS CC LD LN_S NM SHELL \
7572     reload_flag reload_cmds wl \
7573     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7574     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7575     library_names_spec soname_spec \
7576     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7577     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7578     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7579     old_striplib striplib file_magic_cmd export_symbols_cmds \
7580     deplibs_check_method allow_undefined_flag no_undefined_flag \
7581     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7582     global_symbol_to_c_name_address \
7583     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7584     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7585     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7586
7587     case $var in
7588     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7589     old_postinstall_cmds | old_postuninstall_cmds | \
7590     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7591     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7592     postinstall_cmds | postuninstall_cmds | \
7593     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7594       # Double-quote double-evaled strings.
7595       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7596       ;;
7597     *)
7598       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7599       ;;
7600     esac
7601   done
7602
7603   cat <<__EOF__ > "${ofile}T"
7604 #! $SHELL
7605
7606 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7607 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7608 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7609 #
7610 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7611 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7612 #
7613 # This program is free software; you can redistribute it and/or modify
7614 # it under the terms of the GNU General Public License as published by
7615 # the Free Software Foundation; either version 2 of the License, or
7616 # (at your option) any later version.
7617 #
7618 # This program is distributed in the hope that it will be useful, but
7619 # WITHOUT ANY WARRANTY; without even the implied warranty of
7620 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7621 # General Public License for more details.
7622 #
7623 # You should have received a copy of the GNU General Public License
7624 # along with this program; if not, write to the Free Software
7625 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7626 #
7627 # As a special exception to the GNU General Public License, if you
7628 # distribute this file as part of a program that contains a
7629 # configuration script generated by Autoconf, you may include it under
7630 # the same distribution terms that you use for the rest of that program.
7631
7632 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7633 Xsed="sed -e s/^X//"
7634
7635 # The HP-UX ksh and POSIX shell print the target directory to stdout
7636 # if CDPATH is set.
7637 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7638
7639 # ### BEGIN LIBTOOL CONFIG
7640
7641 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7642
7643 # Shell to use when invoking shell scripts.
7644 SHELL=$lt_SHELL
7645
7646 # Whether or not to build shared libraries.
7647 build_libtool_libs=$enable_shared
7648
7649 # Whether or not to build static libraries.
7650 build_old_libs=$enable_static
7651
7652 # Whether or not to add -lc for building shared libraries.
7653 build_libtool_need_lc=$need_lc
7654
7655 # Whether or not to optimize for fast installation.
7656 fast_install=$enable_fast_install
7657
7658 # The host system.
7659 host_alias=$host_alias
7660 host=$host
7661
7662 # An echo program that does not interpret backslashes.
7663 echo=$lt_echo
7664
7665 # The archiver.
7666 AR=$lt_AR
7667 AR_FLAGS=$lt_AR_FLAGS
7668
7669 # The default C compiler.
7670 CC=$lt_CC
7671
7672 # Is the compiler the GNU C compiler?
7673 with_gcc=$GCC
7674
7675 # The linker used to build libraries.
7676 LD=$lt_LD
7677
7678 # Whether we need hard or soft links.
7679 LN_S=$lt_LN_S
7680
7681 # A BSD-compatible nm program.
7682 NM=$lt_NM
7683
7684 # A symbol stripping program
7685 STRIP=$STRIP
7686
7687 # Used to examine libraries when file_magic_cmd begins "file"
7688 MAGIC_CMD=$MAGIC_CMD
7689
7690 # Used on cygwin: DLL creation program.
7691 DLLTOOL="$DLLTOOL"
7692
7693 # Used on cygwin: object dumper.
7694 OBJDUMP="$OBJDUMP"
7695
7696 # Used on cygwin: assembler.
7697 AS="$AS"
7698
7699 # The name of the directory that contains temporary libtool files.
7700 objdir=$objdir
7701
7702 # How to create reloadable object files.
7703 reload_flag=$lt_reload_flag
7704 reload_cmds=$lt_reload_cmds
7705
7706 # How to pass a linker flag through the compiler.
7707 wl=$lt_wl
7708
7709 # Object file suffix (normally "o").
7710 objext="$ac_objext"
7711
7712 # Old archive suffix (normally "a").
7713 libext="$libext"
7714
7715 # Executable file suffix (normally "").
7716 exeext="$exeext"
7717
7718 # Additional compiler flags for building library objects.
7719 pic_flag=$lt_pic_flag
7720 pic_mode=$pic_mode
7721
7722 # Does compiler simultaneously support -c and -o options?
7723 compiler_c_o=$lt_compiler_c_o
7724
7725 # Can we write directly to a .lo ?
7726 compiler_o_lo=$lt_compiler_o_lo
7727
7728 # Must we lock files when doing compilation ?
7729 need_locks=$lt_need_locks
7730
7731 # Do we need the lib prefix for modules?
7732 need_lib_prefix=$need_lib_prefix
7733
7734 # Do we need a version for libraries?
7735 need_version=$need_version
7736
7737 # Whether dlopen is supported.
7738 dlopen_support=$enable_dlopen
7739
7740 # Whether dlopen of programs is supported.
7741 dlopen_self=$enable_dlopen_self
7742
7743 # Whether dlopen of statically linked programs is supported.
7744 dlopen_self_static=$enable_dlopen_self_static
7745
7746 # Compiler flag to prevent dynamic linking.
7747 link_static_flag=$lt_link_static_flag
7748
7749 # Compiler flag to turn off builtin functions.
7750 no_builtin_flag=$lt_no_builtin_flag
7751
7752 # Compiler flag to allow reflexive dlopens.
7753 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7754
7755 # Compiler flag to generate shared objects directly from archives.
7756 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7757
7758 # Compiler flag to generate thread-safe objects.
7759 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7760
7761 # Library versioning type.
7762 version_type=$version_type
7763
7764 # Format of library name prefix.
7765 libname_spec=$lt_libname_spec
7766
7767 # List of archive names.  First name is the real one, the rest are links.
7768 # The last name is the one that the linker finds with -lNAME.
7769 library_names_spec=$lt_library_names_spec
7770
7771 # The coded name of the library, if different from the real name.
7772 soname_spec=$lt_soname_spec
7773
7774 # Commands used to build and install an old-style archive.
7775 RANLIB=$lt_RANLIB
7776 old_archive_cmds=$lt_old_archive_cmds
7777 old_postinstall_cmds=$lt_old_postinstall_cmds
7778 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7779
7780 # Create an old-style archive from a shared archive.
7781 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7782
7783 # Create a temporary old-style archive to link instead of a shared archive.
7784 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7785
7786 # Commands used to build and install a shared archive.
7787 archive_cmds=$lt_archive_cmds
7788 archive_expsym_cmds=$lt_archive_expsym_cmds
7789 postinstall_cmds=$lt_postinstall_cmds
7790 postuninstall_cmds=$lt_postuninstall_cmds
7791
7792 # Commands to strip libraries.
7793 old_striplib=$lt_old_striplib
7794 striplib=$lt_striplib
7795
7796 # Method to check whether dependent libraries are shared objects.
7797 deplibs_check_method=$lt_deplibs_check_method
7798
7799 # Command to use when deplibs_check_method == file_magic.
7800 file_magic_cmd=$lt_file_magic_cmd
7801
7802 # Flag that allows shared libraries with undefined symbols to be built.
7803 allow_undefined_flag=$lt_allow_undefined_flag
7804
7805 # Flag that forces no undefined symbols.
7806 no_undefined_flag=$lt_no_undefined_flag
7807
7808 # Commands used to finish a libtool library installation in a directory.
7809 finish_cmds=$lt_finish_cmds
7810
7811 # Same as above, but a single script fragment to be evaled but not shown.
7812 finish_eval=$lt_finish_eval
7813
7814 # Take the output of nm and produce a listing of raw symbols and C names.
7815 global_symbol_pipe=$lt_global_symbol_pipe
7816
7817 # Transform the output of nm in a proper C declaration
7818 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7819
7820 # Transform the output of nm in a C name address pair
7821 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7822
7823 # This is the shared library runtime path variable.
7824 runpath_var=$runpath_var
7825
7826 # This is the shared library path variable.
7827 shlibpath_var=$shlibpath_var
7828
7829 # Is shlibpath searched before the hard-coded library search path?
7830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7831
7832 # How to hardcode a shared library path into an executable.
7833 hardcode_action=$hardcode_action
7834
7835 # Whether we should hardcode library paths into libraries.
7836 hardcode_into_libs=$hardcode_into_libs
7837
7838 # Flag to hardcode \$libdir into a binary during linking.
7839 # This must work even if \$libdir does not exist.
7840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7841
7842 # Whether we need a single -rpath flag with a separated argument.
7843 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7844
7845 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7846 # resulting binary.
7847 hardcode_direct=$hardcode_direct
7848
7849 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7850 # resulting binary.
7851 hardcode_minus_L=$hardcode_minus_L
7852
7853 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7854 # the resulting binary.
7855 hardcode_shlibpath_var=$hardcode_shlibpath_var
7856
7857 # Variables whose values should be saved in libtool wrapper scripts and
7858 # restored at relink time.
7859 variables_saved_for_relink="$variables_saved_for_relink"
7860
7861 # Whether libtool must link a program against all its dependency libraries.
7862 link_all_deplibs=$link_all_deplibs
7863
7864 # Compile-time system search path for libraries
7865 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7866
7867 # Run-time system search path for libraries
7868 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7869
7870 # Fix the shell variable \$srcfile for the compiler.
7871 fix_srcfile_path="$fix_srcfile_path"
7872
7873 # Set to yes if exported symbols are required.
7874 always_export_symbols=$always_export_symbols
7875
7876 # The commands to list exported symbols.
7877 export_symbols_cmds=$lt_export_symbols_cmds
7878
7879 # The commands to extract the exported symbol list from a shared archive.
7880 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7881
7882 # Symbols that should not be listed in the preloaded symbols.
7883 exclude_expsyms=$lt_exclude_expsyms
7884
7885 # Symbols that must always be exported.
7886 include_expsyms=$lt_include_expsyms
7887
7888 # ### END LIBTOOL CONFIG
7889
7890 __EOF__
7891
7892   case $host_os in
7893   aix3*)
7894     cat <<\EOF >> "${ofile}T"
7895
7896 # AIX sometimes has problems with the GCC collect2 program.  For some
7897 # reason, if we set the COLLECT_NAMES environment variable, the problems
7898 # vanish in a puff of smoke.
7899 if test "X${COLLECT_NAMES+set}" != Xset; then
7900   COLLECT_NAMES=
7901   export COLLECT_NAMES
7902 fi
7903 EOF
7904     ;;
7905   esac
7906
7907   case $host_os in
7908   cygwin* | mingw* | pw32* | os2*)
7909     cat <<'EOF' >> "${ofile}T"
7910       # This is a source program that is used to create dlls on Windows
7911       # Don't remove nor modify the starting and closing comments
7912 # /* ltdll.c starts here */
7913 # #define WIN32_LEAN_AND_MEAN
7914 # #include <windows.h>
7915 # #undef WIN32_LEAN_AND_MEAN
7916 # #include <stdio.h>
7917 #
7918 # #ifndef __CYGWIN__
7919 # #  ifdef __CYGWIN32__
7920 # #    define __CYGWIN__ __CYGWIN32__
7921 # #  endif
7922 # #endif
7923 #
7924 # #ifdef __cplusplus
7925 # extern "C" {
7926 # #endif
7927 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7928 # #ifdef __cplusplus
7929 # }
7930 # #endif
7931 #
7932 # #ifdef __CYGWIN__
7933 # #include <cygwin/cygwin_dll.h>
7934 # DECLARE_CYGWIN_DLL( DllMain );
7935 # #endif
7936 # HINSTANCE __hDllInstance_base;
7937 #
7938 # BOOL APIENTRY
7939 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7940 # {
7941 #   __hDllInstance_base = hInst;
7942 #   return TRUE;
7943 # }
7944 # /* ltdll.c ends here */
7945         # This is a source program that is used to create import libraries
7946         # on Windows for dlls which lack them. Don't remove nor modify the
7947         # starting and closing comments
7948 # /* impgen.c starts here */
7949 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7950 #
7951 #  This file is part of GNU libtool.
7952 #
7953 #  This program is free software; you can redistribute it and/or modify
7954 #  it under the terms of the GNU General Public License as published by
7955 #  the Free Software Foundation; either version 2 of the License, or
7956 #  (at your option) any later version.
7957 #
7958 #  This program is distributed in the hope that it will be useful,
7959 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7960 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7961 #  GNU General Public License for more details.
7962 #
7963 #  You should have received a copy of the GNU General Public License
7964 #  along with this program; if not, write to the Free Software
7965 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7966 #  */
7967 #
7968 # #include <stdio.h>            /* for printf() */
7969 # #include <unistd.h>           /* for open(), lseek(), read() */
7970 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7971 # #include <string.h>           /* for strdup() */
7972 #
7973 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7974 # #ifndef O_BINARY
7975 # #define O_BINARY 0
7976 # #endif
7977 #
7978 # static unsigned int
7979 # pe_get16 (fd, offset)
7980 #      int fd;
7981 #      int offset;
7982 # {
7983 #   unsigned char b[2];
7984 #   lseek (fd, offset, SEEK_SET);
7985 #   read (fd, b, 2);
7986 #   return b[0] + (b[1]<<8);
7987 # }
7988 #
7989 # static unsigned int
7990 # pe_get32 (fd, offset)
7991 #     int fd;
7992 #     int offset;
7993 # {
7994 #   unsigned char b[4];
7995 #   lseek (fd, offset, SEEK_SET);
7996 #   read (fd, b, 4);
7997 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7998 # }
7999 #
8000 # static unsigned int
8001 # pe_as32 (ptr)
8002 #      void *ptr;
8003 # {
8004 #   unsigned char *b = ptr;
8005 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8006 # }
8007 #
8008 # int
8009 # main (argc, argv)
8010 #     int argc;
8011 #     char *argv[];
8012 # {
8013 #     int dll;
8014 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8015 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8016 #     unsigned long name_rvas, nexp;
8017 #     unsigned char *expdata, *erva;
8018 #     char *filename, *dll_name;
8019 #
8020 #     filename = argv[1];
8021 #
8022 #     dll = open(filename, O_RDONLY|O_BINARY);
8023 #     if (dll < 1)
8024 #       return 1;
8025 #
8026 #     dll_name = filename;
8027 #
8028 #     for (i=0; filename[i]; i++)
8029 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8030 #           dll_name = filename + i +1;
8031 #
8032 #     pe_header_offset = pe_get32 (dll, 0x3c);
8033 #     opthdr_ofs = pe_header_offset + 4 + 20;
8034 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8035 #
8036 #     if (num_entries < 1) /* no exports */
8037 #       return 1;
8038 #
8039 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8040 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8041 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8042 #     secptr = (pe_header_offset + 4 + 20 +
8043 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8044 #
8045 #     expptr = 0;
8046 #     for (i = 0; i < nsections; i++)
8047 #     {
8048 #       char sname[8];
8049 #       unsigned long secptr1 = secptr + 40 * i;
8050 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8051 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8052 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8053 #       lseek(dll, secptr1, SEEK_SET);
8054 #       read(dll, sname, 8);
8055 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8056 #       {
8057 #           expptr = fptr + (export_rva - vaddr);
8058 #           if (export_rva + export_size > vaddr + vsize)
8059 #               export_size = vsize - (export_rva - vaddr);
8060 #           break;
8061 #       }
8062 #     }
8063 #
8064 #     expdata = (unsigned char*)malloc(export_size);
8065 #     lseek (dll, expptr, SEEK_SET);
8066 #     read (dll, expdata, export_size);
8067 #     erva = expdata - export_rva;
8068 #
8069 #     nexp = pe_as32 (expdata+24);
8070 #     name_rvas = pe_as32 (expdata+32);
8071 #
8072 #     printf ("EXPORTS\n");
8073 #     for (i = 0; i<nexp; i++)
8074 #     {
8075 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8076 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8077 #     }
8078 #
8079 #     return 0;
8080 # }
8081 # /* impgen.c ends here */
8082
8083 EOF
8084     ;;
8085   esac
8086
8087   # We use sed instead of cat because bash on DJGPP gets confused if
8088   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8089   # text mode, it properly converts lines to CR/LF.  This bash problem
8090   # is reportedly fixed, but why not run on old versions too?
8091   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8092
8093   mv -f "${ofile}T" "$ofile" || \
8094     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8095   chmod +x "$ofile"
8096 fi
8097 ##
8098 ## END FIXME
8099
8100
8101
8102
8103
8104 # This can be used to rebuild libtool when needed
8105 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8106
8107 # Always use our own libtool.
8108 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8109
8110 # Prevent multiple expansion
8111
8112
8113
8114
8115 ac_ext=cc
8116 ac_cpp='$CXXCPP $CPPFLAGS'
8117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8120
8121
8122 # Checking for header files.
8123 # ===========================================================================
8124
8125 if test -d /stuff/include; then
8126   CPPFLAGS="$CPPFLAGS -I/stuff/include"
8127 fi
8128
8129
8130
8131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8133 if test "${ac_cv_header_stdc+set}" = set; then
8134   echo $ECHO_N "(cached) $ECHO_C" >&6
8135 else
8136   cat >conftest.$ac_ext <<_ACEOF
8137 #line $LINENO "configure"
8138 /* confdefs.h.  */
8139 _ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h.  */
8143 #include <stdlib.h>
8144 #include <stdarg.h>
8145 #include <string.h>
8146 #include <float.h>
8147
8148 int
8149 main ()
8150 {
8151
8152   ;
8153   return 0;
8154 }
8155 _ACEOF
8156 rm -f conftest.$ac_objext
8157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8158   (eval $ac_compile) 2>&5
8159   ac_status=$?
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); } &&
8162          { ac_try='test -s conftest.$ac_objext'
8163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164   (eval $ac_try) 2>&5
8165   ac_status=$?
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); }; }; then
8168   ac_cv_header_stdc=yes
8169 else
8170   echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8172
8173 ac_cv_header_stdc=no
8174 fi
8175 rm -f conftest.$ac_objext conftest.$ac_ext
8176
8177 if test $ac_cv_header_stdc = yes; then
8178   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8179   cat >conftest.$ac_ext <<_ACEOF
8180 #line $LINENO "configure"
8181 /* confdefs.h.  */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h.  */
8186 #include <string.h>
8187
8188 _ACEOF
8189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8190   $EGREP "memchr" >/dev/null 2>&1; then
8191   :
8192 else
8193   ac_cv_header_stdc=no
8194 fi
8195 rm -f conftest*
8196
8197 fi
8198
8199 if test $ac_cv_header_stdc = yes; then
8200   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8201   cat >conftest.$ac_ext <<_ACEOF
8202 #line $LINENO "configure"
8203 /* confdefs.h.  */
8204 _ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h.  */
8208 #include <stdlib.h>
8209
8210 _ACEOF
8211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8212   $EGREP "free" >/dev/null 2>&1; then
8213   :
8214 else
8215   ac_cv_header_stdc=no
8216 fi
8217 rm -f conftest*
8218
8219 fi
8220
8221 if test $ac_cv_header_stdc = yes; then
8222   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8223   if test "$cross_compiling" = yes; then
8224   :
8225 else
8226   cat >conftest.$ac_ext <<_ACEOF
8227 #line $LINENO "configure"
8228 /* confdefs.h.  */
8229 _ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h.  */
8233 #include <ctype.h>
8234 #if ((' ' & 0x0FF) == 0x020)
8235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8237 #else
8238 # define ISLOWER(c) \
8239                    (('a' <= (c) && (c) <= 'i') \
8240                      || ('j' <= (c) && (c) <= 'r') \
8241                      || ('s' <= (c) && (c) <= 'z'))
8242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8243 #endif
8244
8245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8246 int
8247 main ()
8248 {
8249   int i;
8250   for (i = 0; i < 256; i++)
8251     if (XOR (islower (i), ISLOWER (i))
8252         || toupper (i) != TOUPPER (i))
8253       exit(2);
8254   exit (0);
8255 }
8256 _ACEOF
8257 rm -f conftest$ac_exeext
8258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8259   (eval $ac_link) 2>&5
8260   ac_status=$?
8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264   (eval $ac_try) 2>&5
8265   ac_status=$?
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); }; }; then
8268   :
8269 else
8270   echo "$as_me: program exited with status $ac_status" >&5
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8273
8274 ( exit $ac_status )
8275 ac_cv_header_stdc=no
8276 fi
8277 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8278 fi
8279 fi
8280 fi
8281 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8282 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8283 if test $ac_cv_header_stdc = yes; then
8284
8285 cat >>confdefs.h <<\_ACEOF
8286 #define STDC_HEADERS 1
8287 _ACEOF
8288
8289 fi
8290
8291
8292 for ac_header in getopt.h
8293 do
8294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8296   echo "$as_me:$LINENO: checking for $ac_header" >&5
8297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 fi
8301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8303 else
8304   # Is the header compilable?
8305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8307 cat >conftest.$ac_ext <<_ACEOF
8308 #line $LINENO "configure"
8309 /* confdefs.h.  */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h.  */
8314 $ac_includes_default
8315 #include <$ac_header>
8316 _ACEOF
8317 rm -f conftest.$ac_objext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8319   (eval $ac_compile) 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); } &&
8323          { ac_try='test -s conftest.$ac_objext'
8324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325   (eval $ac_try) 2>&5
8326   ac_status=$?
8327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328   (exit $ac_status); }; }; then
8329   ac_header_compiler=yes
8330 else
8331   echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8333
8334 ac_header_compiler=no
8335 fi
8336 rm -f conftest.$ac_objext conftest.$ac_ext
8337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8338 echo "${ECHO_T}$ac_header_compiler" >&6
8339
8340 # Is the header present?
8341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8343 cat >conftest.$ac_ext <<_ACEOF
8344 #line $LINENO "configure"
8345 /* confdefs.h.  */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h.  */
8350 #include <$ac_header>
8351 _ACEOF
8352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8353   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8354   ac_status=$?
8355   grep -v '^ *+' conftest.er1 >conftest.err
8356   rm -f conftest.er1
8357   cat conftest.err >&5
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); } >/dev/null; then
8360   if test -s conftest.err; then
8361     ac_cpp_err=$ac_cxx_preproc_warn_flag
8362   else
8363     ac_cpp_err=
8364   fi
8365 else
8366   ac_cpp_err=yes
8367 fi
8368 if test -z "$ac_cpp_err"; then
8369   ac_header_preproc=yes
8370 else
8371   echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8373
8374   ac_header_preproc=no
8375 fi
8376 rm -f conftest.err conftest.$ac_ext
8377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8378 echo "${ECHO_T}$ac_header_preproc" >&6
8379
8380 # So?  What about this header?
8381 case $ac_header_compiler:$ac_header_preproc in
8382   yes:no )
8383     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8387     (
8388       cat <<\_ASBOX
8389 ## ------------------------------------ ##
8390 ## Report this to bug-autoconf@gnu.org. ##
8391 ## ------------------------------------ ##
8392 _ASBOX
8393     ) |
8394       sed "s/^/$as_me: WARNING:     /" >&2
8395     ;;
8396   no:yes )
8397     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8399     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8403     (
8404       cat <<\_ASBOX
8405 ## ------------------------------------ ##
8406 ## Report this to bug-autoconf@gnu.org. ##
8407 ## ------------------------------------ ##
8408 _ASBOX
8409     ) |
8410       sed "s/^/$as_me: WARNING:     /" >&2
8411     ;;
8412 esac
8413 echo "$as_me:$LINENO: checking for $ac_header" >&5
8414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8416   echo $ECHO_N "(cached) $ECHO_C" >&6
8417 else
8418   eval "$as_ac_Header=$ac_header_preproc"
8419 fi
8420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8422
8423 fi
8424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8425   cat >>confdefs.h <<_ACEOF
8426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8427 _ACEOF
8428
8429 fi
8430
8431 done
8432
8433
8434 for ac_header in unistd.h
8435 do
8436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8438   echo "$as_me:$LINENO: checking for $ac_header" >&5
8439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8441   echo $ECHO_N "(cached) $ECHO_C" >&6
8442 fi
8443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8445 else
8446   # Is the header compilable?
8447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8449 cat >conftest.$ac_ext <<_ACEOF
8450 #line $LINENO "configure"
8451 /* confdefs.h.  */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h.  */
8456 $ac_includes_default
8457 #include <$ac_header>
8458 _ACEOF
8459 rm -f conftest.$ac_objext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8461   (eval $ac_compile) 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); } &&
8465          { ac_try='test -s conftest.$ac_objext'
8466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467   (eval $ac_try) 2>&5
8468   ac_status=$?
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); }; }; then
8471   ac_header_compiler=yes
8472 else
8473   echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8475
8476 ac_header_compiler=no
8477 fi
8478 rm -f conftest.$ac_objext conftest.$ac_ext
8479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8480 echo "${ECHO_T}$ac_header_compiler" >&6
8481
8482 # Is the header present?
8483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8485 cat >conftest.$ac_ext <<_ACEOF
8486 #line $LINENO "configure"
8487 /* confdefs.h.  */
8488 _ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h.  */
8492 #include <$ac_header>
8493 _ACEOF
8494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8495   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8496   ac_status=$?
8497   grep -v '^ *+' conftest.er1 >conftest.err
8498   rm -f conftest.er1
8499   cat conftest.err >&5
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); } >/dev/null; then
8502   if test -s conftest.err; then
8503     ac_cpp_err=$ac_cxx_preproc_warn_flag
8504   else
8505     ac_cpp_err=
8506   fi
8507 else
8508   ac_cpp_err=yes
8509 fi
8510 if test -z "$ac_cpp_err"; then
8511   ac_header_preproc=yes
8512 else
8513   echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516   ac_header_preproc=no
8517 fi
8518 rm -f conftest.err conftest.$ac_ext
8519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8520 echo "${ECHO_T}$ac_header_preproc" >&6
8521
8522 # So?  What about this header?
8523 case $ac_header_compiler:$ac_header_preproc in
8524   yes:no )
8525     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8529     (
8530       cat <<\_ASBOX
8531 ## ------------------------------------ ##
8532 ## Report this to bug-autoconf@gnu.org. ##
8533 ## ------------------------------------ ##
8534 _ASBOX
8535     ) |
8536       sed "s/^/$as_me: WARNING:     /" >&2
8537     ;;
8538   no:yes )
8539     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8541     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8543     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8545     (
8546       cat <<\_ASBOX
8547 ## ------------------------------------ ##
8548 ## Report this to bug-autoconf@gnu.org. ##
8549 ## ------------------------------------ ##
8550 _ASBOX
8551     ) |
8552       sed "s/^/$as_me: WARNING:     /" >&2
8553     ;;
8554 esac
8555 echo "$as_me:$LINENO: checking for $ac_header" >&5
8556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8558   echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560   eval "$as_ac_Header=$ac_header_preproc"
8561 fi
8562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8564
8565 fi
8566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8567   cat >>confdefs.h <<_ACEOF
8568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8569 _ACEOF
8570
8571 fi
8572
8573 done
8574
8575 if test "${ac_cv_header_sys_socket_h+set}" = set; then
8576   echo "$as_me:$LINENO: checking for sys/socket.h" >&5
8577 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
8578 if test "${ac_cv_header_sys_socket_h+set}" = set; then
8579   echo $ECHO_N "(cached) $ECHO_C" >&6
8580 fi
8581 echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
8582 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
8583 else
8584   # Is the header compilable?
8585 echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
8586 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
8587 cat >conftest.$ac_ext <<_ACEOF
8588 #line $LINENO "configure"
8589 /* confdefs.h.  */
8590 _ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h.  */
8594 $ac_includes_default
8595 #include <sys/socket.h>
8596 _ACEOF
8597 rm -f conftest.$ac_objext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8599   (eval $ac_compile) 2>&5
8600   ac_status=$?
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); } &&
8603          { ac_try='test -s conftest.$ac_objext'
8604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605   (eval $ac_try) 2>&5
8606   ac_status=$?
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); }; }; then
8609   ac_header_compiler=yes
8610 else
8611   echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8613
8614 ac_header_compiler=no
8615 fi
8616 rm -f conftest.$ac_objext conftest.$ac_ext
8617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8618 echo "${ECHO_T}$ac_header_compiler" >&6
8619
8620 # Is the header present?
8621 echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
8622 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
8623 cat >conftest.$ac_ext <<_ACEOF
8624 #line $LINENO "configure"
8625 /* confdefs.h.  */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h.  */
8630 #include <sys/socket.h>
8631 _ACEOF
8632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8633   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8634   ac_status=$?
8635   grep -v '^ *+' conftest.er1 >conftest.err
8636   rm -f conftest.er1
8637   cat conftest.err >&5
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); } >/dev/null; then
8640   if test -s conftest.err; then
8641     ac_cpp_err=$ac_cxx_preproc_warn_flag
8642   else
8643     ac_cpp_err=
8644   fi
8645 else
8646   ac_cpp_err=yes
8647 fi
8648 if test -z "$ac_cpp_err"; then
8649   ac_header_preproc=yes
8650 else
8651   echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8653
8654   ac_header_preproc=no
8655 fi
8656 rm -f conftest.err conftest.$ac_ext
8657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8658 echo "${ECHO_T}$ac_header_preproc" >&6
8659
8660 # So?  What about this header?
8661 case $ac_header_compiler:$ac_header_preproc in
8662   yes:no )
8663     { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
8664 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8665     { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
8666 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
8667     (
8668       cat <<\_ASBOX
8669 ## ------------------------------------ ##
8670 ## Report this to bug-autoconf@gnu.org. ##
8671 ## ------------------------------------ ##
8672 _ASBOX
8673     ) |
8674       sed "s/^/$as_me: WARNING:     /" >&2
8675     ;;
8676   no:yes )
8677     { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
8678 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
8679     { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
8680 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
8681     { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
8682 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
8683     (
8684       cat <<\_ASBOX
8685 ## ------------------------------------ ##
8686 ## Report this to bug-autoconf@gnu.org. ##
8687 ## ------------------------------------ ##
8688 _ASBOX
8689     ) |
8690       sed "s/^/$as_me: WARNING:     /" >&2
8691     ;;
8692 esac
8693 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
8694 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
8695 if test "${ac_cv_header_sys_socket_h+set}" = set; then
8696   echo $ECHO_N "(cached) $ECHO_C" >&6
8697 else
8698   ac_cv_header_sys_socket_h=$ac_header_preproc
8699 fi
8700 echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
8701 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
8702
8703 fi
8704 if test $ac_cv_header_sys_socket_h = yes; then
8705   cat >>confdefs.h <<\_ACEOF
8706 #define SOCKET_AVAIL 1
8707 _ACEOF
8708
8709     cat >>confdefs.h <<\_ACEOF
8710 #define HAVE_SYS_SOCKET_H 1
8711 _ACEOF
8712
8713     cat >conftest.$ac_ext <<_ACEOF
8714 #line $LINENO "configure"
8715 /* confdefs.h.  */
8716 _ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h.  */
8720 #include <sys/socket.h>
8721
8722 _ACEOF
8723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8724   $EGREP "socklen_t" >/dev/null 2>&1; then
8725   cat >>confdefs.h <<_ACEOF
8726 #define SOCKLEN_T socklen_t
8727 _ACEOF
8728
8729 else
8730   cat >>confdefs.h <<_ACEOF
8731 #define SOCKLEN_T uint
8732 _ACEOF
8733
8734 fi
8735 rm -f conftest*
8736
8737
8738 fi
8739
8740
8741 if test "${ac_cv_header_dlfcn_h+set}" = set; then
8742   echo "$as_me:$LINENO: checking for dlfcn.h" >&5
8743 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
8744 if test "${ac_cv_header_dlfcn_h+set}" = set; then
8745   echo $ECHO_N "(cached) $ECHO_C" >&6
8746 fi
8747 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
8748 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
8749 else
8750   # Is the header compilable?
8751 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
8752 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
8753 cat >conftest.$ac_ext <<_ACEOF
8754 #line $LINENO "configure"
8755 /* confdefs.h.  */
8756 _ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h.  */
8760 $ac_includes_default
8761 #include <dlfcn.h>
8762 _ACEOF
8763 rm -f conftest.$ac_objext
8764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8765   (eval $ac_compile) 2>&5
8766   ac_status=$?
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); } &&
8769          { ac_try='test -s conftest.$ac_objext'
8770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771   (eval $ac_try) 2>&5
8772   ac_status=$?
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); }; }; then
8775   ac_header_compiler=yes
8776 else
8777   echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8779
8780 ac_header_compiler=no
8781 fi
8782 rm -f conftest.$ac_objext conftest.$ac_ext
8783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8784 echo "${ECHO_T}$ac_header_compiler" >&6
8785
8786 # Is the header present?
8787 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
8788 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
8789 cat >conftest.$ac_ext <<_ACEOF
8790 #line $LINENO "configure"
8791 /* confdefs.h.  */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h.  */
8796 #include <dlfcn.h>
8797 _ACEOF
8798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8799   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8800   ac_status=$?
8801   grep -v '^ *+' conftest.er1 >conftest.err
8802   rm -f conftest.er1
8803   cat conftest.err >&5
8804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   (exit $ac_status); } >/dev/null; then
8806   if test -s conftest.err; then
8807     ac_cpp_err=$ac_cxx_preproc_warn_flag
8808   else
8809     ac_cpp_err=
8810   fi
8811 else
8812   ac_cpp_err=yes
8813 fi
8814 if test -z "$ac_cpp_err"; then
8815   ac_header_preproc=yes
8816 else
8817   echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8819
8820   ac_header_preproc=no
8821 fi
8822 rm -f conftest.err conftest.$ac_ext
8823 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8824 echo "${ECHO_T}$ac_header_preproc" >&6
8825
8826 # So?  What about this header?
8827 case $ac_header_compiler:$ac_header_preproc in
8828   yes:no )
8829     { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
8830 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8831     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
8832 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
8833     (
8834       cat <<\_ASBOX
8835 ## ------------------------------------ ##
8836 ## Report this to bug-autoconf@gnu.org. ##
8837 ## ------------------------------------ ##
8838 _ASBOX
8839     ) |
8840       sed "s/^/$as_me: WARNING:     /" >&2
8841     ;;
8842   no:yes )
8843     { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
8844 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
8845     { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
8846 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
8847     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
8848 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
8849     (
8850       cat <<\_ASBOX
8851 ## ------------------------------------ ##
8852 ## Report this to bug-autoconf@gnu.org. ##
8853 ## ------------------------------------ ##
8854 _ASBOX
8855     ) |
8856       sed "s/^/$as_me: WARNING:     /" >&2
8857     ;;
8858 esac
8859 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
8860 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
8861 if test "${ac_cv_header_dlfcn_h+set}" = set; then
8862   echo $ECHO_N "(cached) $ECHO_C" >&6
8863 else
8864   ac_cv_header_dlfcn_h=$ac_header_preproc
8865 fi
8866 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
8867 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
8868
8869 fi
8870
8871
8872
8873
8874
8875
8876
8877 ac_header_dirent=no
8878 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8879   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8880 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8881 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8883   echo $ECHO_N "(cached) $ECHO_C" >&6
8884 else
8885   cat >conftest.$ac_ext <<_ACEOF
8886 #line $LINENO "configure"
8887 /* confdefs.h.  */
8888 _ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h.  */
8892 #include <sys/types.h>
8893 #include <$ac_hdr>
8894
8895 int
8896 main ()
8897 {
8898 if ((DIR *) 0)
8899 return 0;
8900   ;
8901   return 0;
8902 }
8903 _ACEOF
8904 rm -f conftest.$ac_objext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8906   (eval $ac_compile) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); } &&
8910          { ac_try='test -s conftest.$ac_objext'
8911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912   (eval $ac_try) 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); }; }; then
8916   eval "$as_ac_Header=yes"
8917 else
8918   echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921 eval "$as_ac_Header=no"
8922 fi
8923 rm -f conftest.$ac_objext conftest.$ac_ext
8924 fi
8925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8928   cat >>confdefs.h <<_ACEOF
8929 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8930 _ACEOF
8931
8932 ac_header_dirent=$ac_hdr; break
8933 fi
8934
8935 done
8936 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8937 if test $ac_header_dirent = dirent.h; then
8938   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8939 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8940 if test "${ac_cv_search_opendir+set}" = set; then
8941   echo $ECHO_N "(cached) $ECHO_C" >&6
8942 else
8943   ac_func_search_save_LIBS=$LIBS
8944 ac_cv_search_opendir=no
8945 cat >conftest.$ac_ext <<_ACEOF
8946 #line $LINENO "configure"
8947 /* confdefs.h.  */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h.  */
8952
8953 /* Override any gcc2 internal prototype to avoid an error.  */
8954 #ifdef __cplusplus
8955 extern "C"
8956 #endif
8957 /* We use char because int might match the return type of a gcc2
8958    builtin and then its argument prototype would still apply.  */
8959 char opendir ();
8960 int
8961 main ()
8962 {
8963 opendir ();
8964   ;
8965   return 0;
8966 }
8967 _ACEOF
8968 rm -f conftest.$ac_objext conftest$ac_exeext
8969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8970   (eval $ac_link) 2>&5
8971   ac_status=$?
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); } &&
8974          { ac_try='test -s conftest$ac_exeext'
8975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976   (eval $ac_try) 2>&5
8977   ac_status=$?
8978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979   (exit $ac_status); }; }; then
8980   ac_cv_search_opendir="none required"
8981 else
8982   echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8984
8985 fi
8986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8987 if test "$ac_cv_search_opendir" = no; then
8988   for ac_lib in dir; do
8989     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8990     cat >conftest.$ac_ext <<_ACEOF
8991 #line $LINENO "configure"
8992 /* confdefs.h.  */
8993 _ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h.  */
8997
8998 /* Override any gcc2 internal prototype to avoid an error.  */
8999 #ifdef __cplusplus
9000 extern "C"
9001 #endif
9002 /* We use char because int might match the return type of a gcc2
9003    builtin and then its argument prototype would still apply.  */
9004 char opendir ();
9005 int
9006 main ()
9007 {
9008 opendir ();
9009   ;
9010   return 0;
9011 }
9012 _ACEOF
9013 rm -f conftest.$ac_objext conftest$ac_exeext
9014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9015   (eval $ac_link) 2>&5
9016   ac_status=$?
9017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018   (exit $ac_status); } &&
9019          { ac_try='test -s conftest$ac_exeext'
9020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021   (eval $ac_try) 2>&5
9022   ac_status=$?
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); }; }; then
9025   ac_cv_search_opendir="-l$ac_lib"
9026 break
9027 else
9028   echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031 fi
9032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9033   done
9034 fi
9035 LIBS=$ac_func_search_save_LIBS
9036 fi
9037 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9038 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9039 if test "$ac_cv_search_opendir" != no; then
9040   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9041
9042 fi
9043
9044 else
9045   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9046 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9047 if test "${ac_cv_search_opendir+set}" = set; then
9048   echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050   ac_func_search_save_LIBS=$LIBS
9051 ac_cv_search_opendir=no
9052 cat >conftest.$ac_ext <<_ACEOF
9053 #line $LINENO "configure"
9054 /* confdefs.h.  */
9055 _ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h.  */
9059
9060 /* Override any gcc2 internal prototype to avoid an error.  */
9061 #ifdef __cplusplus
9062 extern "C"
9063 #endif
9064 /* We use char because int might match the return type of a gcc2
9065    builtin and then its argument prototype would still apply.  */
9066 char opendir ();
9067 int
9068 main ()
9069 {
9070 opendir ();
9071   ;
9072   return 0;
9073 }
9074 _ACEOF
9075 rm -f conftest.$ac_objext conftest$ac_exeext
9076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9077   (eval $ac_link) 2>&5
9078   ac_status=$?
9079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080   (exit $ac_status); } &&
9081          { ac_try='test -s conftest$ac_exeext'
9082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083   (eval $ac_try) 2>&5
9084   ac_status=$?
9085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086   (exit $ac_status); }; }; then
9087   ac_cv_search_opendir="none required"
9088 else
9089   echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9091
9092 fi
9093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9094 if test "$ac_cv_search_opendir" = no; then
9095   for ac_lib in x; do
9096     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9097     cat >conftest.$ac_ext <<_ACEOF
9098 #line $LINENO "configure"
9099 /* confdefs.h.  */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h.  */
9104
9105 /* Override any gcc2 internal prototype to avoid an error.  */
9106 #ifdef __cplusplus
9107 extern "C"
9108 #endif
9109 /* We use char because int might match the return type of a gcc2
9110    builtin and then its argument prototype would still apply.  */
9111 char opendir ();
9112 int
9113 main ()
9114 {
9115 opendir ();
9116   ;
9117   return 0;
9118 }
9119 _ACEOF
9120 rm -f conftest.$ac_objext conftest$ac_exeext
9121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9122   (eval $ac_link) 2>&5
9123   ac_status=$?
9124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125   (exit $ac_status); } &&
9126          { ac_try='test -s conftest$ac_exeext'
9127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128   (eval $ac_try) 2>&5
9129   ac_status=$?
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); }; }; then
9132   ac_cv_search_opendir="-l$ac_lib"
9133 break
9134 else
9135   echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9137
9138 fi
9139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9140   done
9141 fi
9142 LIBS=$ac_func_search_save_LIBS
9143 fi
9144 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9145 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9146 if test "$ac_cv_search_opendir" != no; then
9147   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9148
9149 fi
9150
9151 fi
9152
9153
9154 # This must be after CXXCPP
9155
9156 echo "$as_me:$LINENO: checking which header file defines FD_ macros" >&5
9157 echo $ECHO_N "checking which header file defines FD_ macros... $ECHO_C" >&6
9158 if test "${ucsim_cv_fd+set}" = set; then
9159   echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161   ucsim_cv_fd="unknown"
9162 cat >conftest.$ac_ext <<_ACEOF
9163 #line $LINENO "configure"
9164 /* confdefs.h.  */
9165 _ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h.  */
9169
9170 #include <sys/time.h>
9171 #ifdef FD_ZERO
9172 yes
9173 #endif
9174 _ACEOF
9175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9176   $EGREP "yes" >/dev/null 2>&1; then
9177   ucsim_cv_fd="<sys/time.h>"
9178 fi
9179 rm -f conftest*
9180
9181 cat >conftest.$ac_ext <<_ACEOF
9182 #line $LINENO "configure"
9183 /* confdefs.h.  */
9184 _ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h.  */
9188
9189 #include <sys/types.h>
9190 #ifdef FD_ZERO
9191 yes
9192 #endif
9193 _ACEOF
9194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9195   $EGREP "yes" >/dev/null 2>&1; then
9196   ucsim_cv_fd="<sys/types.h>"
9197 fi
9198 rm -f conftest*
9199
9200 cat >conftest.$ac_ext <<_ACEOF
9201 #line $LINENO "configure"
9202 /* confdefs.h.  */
9203 _ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h.  */
9207
9208 #include <sys/select.h>
9209 #ifdef FD_ZERO
9210 yes
9211 #endif
9212 _ACEOF
9213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9214   $EGREP "yes" >/dev/null 2>&1; then
9215   ucsim_cv_fd="<sys/types.h>"
9216 fi
9217 rm -f conftest*
9218
9219 fi
9220 echo "$as_me:$LINENO: result: $ucsim_cv_fd" >&5
9221 echo "${ECHO_T}$ucsim_cv_fd" >&6
9222
9223 cat >>confdefs.h <<\_ACEOF
9224 #define FD_HEADER_OK 0
9225 _ACEOF
9226
9227 if echo $ucsim_cv_fd|grep time >/dev/null 2>&1; then
9228 cat >>confdefs.h <<\_ACEOF
9229 #define FD_NEED_TIME_H 1
9230 _ACEOF
9231
9232 cat >>confdefs.h <<\_ACEOF
9233 #define FD_HEADER_OK 1
9234 _ACEOF
9235
9236 else
9237 cat >>confdefs.h <<\_ACEOF
9238 #define FD_NEED_TIME_H 0
9239 _ACEOF
9240
9241 fi
9242 if echo $ucsim_cv_fd|grep types >/dev/null 2>&1; then
9243 cat >>confdefs.h <<\_ACEOF
9244 #define FD_NEED_TYPES_H 1
9245 _ACEOF
9246
9247 cat >>confdefs.h <<\_ACEOF
9248 #define FD_HEADER_OK 1
9249 _ACEOF
9250
9251 else
9252 cat >>confdefs.h <<\_ACEOF
9253 #define FD_NEED_TYPES_H 0
9254 _ACEOF
9255
9256 fi
9257 if echo $ucsim_cv_fd|grep select >/dev/null 2>&1; then
9258 cat >>confdefs.h <<\_ACEOF
9259 #define FD_NEED_SELECT_H 1
9260 _ACEOF
9261
9262 cat >>confdefs.h <<\_ACEOF
9263 #define FD_HEADER_OK 1
9264 _ACEOF
9265
9266 else
9267 cat >>confdefs.h <<\_ACEOF
9268 #define FD_NEED_SELECT_H 0
9269 _ACEOF
9270
9271 fi
9272
9273 cat >>confdefs.h <<_ACEOF
9274 #define HEADER_FD ${ucsim_cv_fd}
9275 _ACEOF
9276
9277
9278
9279 # Checking for functions/libs
9280 # ===========================================================================
9281
9282 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9283 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9284 if test "${ac_cv_lib_socket_socket+set}" = set; then
9285   echo $ECHO_N "(cached) $ECHO_C" >&6
9286 else
9287   ac_check_lib_save_LIBS=$LIBS
9288 LIBS="-lsocket  $LIBS"
9289 cat >conftest.$ac_ext <<_ACEOF
9290 #line $LINENO "configure"
9291 /* confdefs.h.  */
9292 _ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h.  */
9296
9297 /* Override any gcc2 internal prototype to avoid an error.  */
9298 #ifdef __cplusplus
9299 extern "C"
9300 #endif
9301 /* We use char because int might match the return type of a gcc2
9302    builtin and then its argument prototype would still apply.  */
9303 char socket ();
9304 int
9305 main ()
9306 {
9307 socket ();
9308   ;
9309   return 0;
9310 }
9311 _ACEOF
9312 rm -f conftest.$ac_objext conftest$ac_exeext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314   (eval $ac_link) 2>&5
9315   ac_status=$?
9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); } &&
9318          { ac_try='test -s conftest$ac_exeext'
9319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320   (eval $ac_try) 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); }; }; then
9324   ac_cv_lib_socket_socket=yes
9325 else
9326   echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329 ac_cv_lib_socket_socket=no
9330 fi
9331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9332 LIBS=$ac_check_lib_save_LIBS
9333 fi
9334 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9335 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9336 if test $ac_cv_lib_socket_socket = yes; then
9337   cat >>confdefs.h <<_ACEOF
9338 #define HAVE_LIBSOCKET 1
9339 _ACEOF
9340
9341   LIBS="-lsocket $LIBS"
9342
9343 fi
9344
9345
9346 echo "$as_me:$LINENO: checking for xdr_short in -lnsl" >&5
9347 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6
9348 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
9349   echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351   ac_check_lib_save_LIBS=$LIBS
9352 LIBS="-lnsl  $LIBS"
9353 cat >conftest.$ac_ext <<_ACEOF
9354 #line $LINENO "configure"
9355 /* confdefs.h.  */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h.  */
9360
9361 /* Override any gcc2 internal prototype to avoid an error.  */
9362 #ifdef __cplusplus
9363 extern "C"
9364 #endif
9365 /* We use char because int might match the return type of a gcc2
9366    builtin and then its argument prototype would still apply.  */
9367 char xdr_short ();
9368 int
9369 main ()
9370 {
9371 xdr_short ();
9372   ;
9373   return 0;
9374 }
9375 _ACEOF
9376 rm -f conftest.$ac_objext conftest$ac_exeext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378   (eval $ac_link) 2>&5
9379   ac_status=$?
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); } &&
9382          { ac_try='test -s conftest$ac_exeext'
9383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384   (eval $ac_try) 2>&5
9385   ac_status=$?
9386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387   (exit $ac_status); }; }; then
9388   ac_cv_lib_nsl_xdr_short=yes
9389 else
9390   echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9392
9393 ac_cv_lib_nsl_xdr_short=no
9394 fi
9395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9396 LIBS=$ac_check_lib_save_LIBS
9397 fi
9398 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_xdr_short" >&5
9399 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6
9400 if test $ac_cv_lib_nsl_xdr_short = yes; then
9401   cat >>confdefs.h <<_ACEOF
9402 #define HAVE_LIBNSL 1
9403 _ACEOF
9404
9405   LIBS="-lnsl $LIBS"
9406
9407 fi
9408
9409 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9410 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9411 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9412   echo $ECHO_N "(cached) $ECHO_C" >&6
9413 else
9414   ac_check_lib_save_LIBS=$LIBS
9415 LIBS="-ldl  $LIBS"
9416 cat >conftest.$ac_ext <<_ACEOF
9417 #line $LINENO "configure"
9418 /* confdefs.h.  */
9419 _ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h.  */
9423
9424 /* Override any gcc2 internal prototype to avoid an error.  */
9425 #ifdef __cplusplus
9426 extern "C"
9427 #endif
9428 /* We use char because int might match the return type of a gcc2
9429    builtin and then its argument prototype would still apply.  */
9430 char dlopen ();
9431 int
9432 main ()
9433 {
9434 dlopen ();
9435   ;
9436   return 0;
9437 }
9438 _ACEOF
9439 rm -f conftest.$ac_objext conftest$ac_exeext
9440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9441   (eval $ac_link) 2>&5
9442   ac_status=$?
9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); } &&
9445          { ac_try='test -s conftest$ac_exeext'
9446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447   (eval $ac_try) 2>&5
9448   ac_status=$?
9449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   (exit $ac_status); }; }; then
9451   ac_cv_lib_dl_dlopen=yes
9452 else
9453   echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9455
9456 ac_cv_lib_dl_dlopen=no
9457 fi
9458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9459 LIBS=$ac_check_lib_save_LIBS
9460 fi
9461 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9462 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9463 if test $ac_cv_lib_dl_dlopen = yes; then
9464   dl_ok="yes"
9465 DL="-ldl"
9466 else
9467   dl_ok="no"
9468 DL=""
9469 fi
9470
9471
9472
9473 echo "$as_me:$LINENO: checking for panel_above in -lpanel" >&5
9474 echo $ECHO_N "checking for panel_above in -lpanel... $ECHO_C" >&6
9475 if test "${ac_cv_lib_panel_panel_above+set}" = set; then
9476   echo $ECHO_N "(cached) $ECHO_C" >&6
9477 else
9478   ac_check_lib_save_LIBS=$LIBS
9479 LIBS="-lpanel -lcurses $LIBS"
9480 cat >conftest.$ac_ext <<_ACEOF
9481 #line $LINENO "configure"
9482 /* confdefs.h.  */
9483 _ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h.  */
9487
9488 /* Override any gcc2 internal prototype to avoid an error.  */
9489 #ifdef __cplusplus
9490 extern "C"
9491 #endif
9492 /* We use char because int might match the return type of a gcc2
9493    builtin and then its argument prototype would still apply.  */
9494 char panel_above ();
9495 int
9496 main ()
9497 {
9498 panel_above ();
9499   ;
9500   return 0;
9501 }
9502 _ACEOF
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9505   (eval $ac_link) 2>&5
9506   ac_status=$?
9507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508   (exit $ac_status); } &&
9509          { ac_try='test -s conftest$ac_exeext'
9510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511   (eval $ac_try) 2>&5
9512   ac_status=$?
9513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514   (exit $ac_status); }; }; then
9515   ac_cv_lib_panel_panel_above=yes
9516 else
9517   echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.$ac_ext >&5
9519
9520 ac_cv_lib_panel_panel_above=no
9521 fi
9522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9523 LIBS=$ac_check_lib_save_LIBS
9524 fi
9525 echo "$as_me:$LINENO: result: $ac_cv_lib_panel_panel_above" >&5
9526 echo "${ECHO_T}$ac_cv_lib_panel_panel_above" >&6
9527 if test $ac_cv_lib_panel_panel_above = yes; then
9528   panel_ok="yes"
9529 curses_ok="yes"
9530 CURSES_LIBS="-lpanel -lcurses"
9531
9532 else
9533   panel_ok="no"
9534 echo "$as_me:$LINENO: checking for nl in -lcurses" >&5
9535 echo $ECHO_N "checking for nl in -lcurses... $ECHO_C" >&6
9536 if test "${ac_cv_lib_curses_nl+set}" = set; then
9537   echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539   ac_check_lib_save_LIBS=$LIBS
9540 LIBS="-lcurses  $LIBS"
9541 cat >conftest.$ac_ext <<_ACEOF
9542 #line $LINENO "configure"
9543 /* confdefs.h.  */
9544 _ACEOF
9545 cat confdefs.h >>conftest.$ac_ext
9546 cat >>conftest.$ac_ext <<_ACEOF
9547 /* end confdefs.h.  */
9548
9549 /* Override any gcc2 internal prototype to avoid an error.  */
9550 #ifdef __cplusplus
9551 extern "C"
9552 #endif
9553 /* We use char because int might match the return type of a gcc2
9554    builtin and then its argument prototype would still apply.  */
9555 char nl ();
9556 int
9557 main ()
9558 {
9559 nl ();
9560   ;
9561   return 0;
9562 }
9563 _ACEOF
9564 rm -f conftest.$ac_objext conftest$ac_exeext
9565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9566   (eval $ac_link) 2>&5
9567   ac_status=$?
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); } &&
9570          { ac_try='test -s conftest$ac_exeext'
9571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572   (eval $ac_try) 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); }; }; then
9576   ac_cv_lib_curses_nl=yes
9577 else
9578   echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9580
9581 ac_cv_lib_curses_nl=no
9582 fi
9583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9584 LIBS=$ac_check_lib_save_LIBS
9585 fi
9586 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_nl" >&5
9587 echo "${ECHO_T}$ac_cv_lib_curses_nl" >&6
9588 if test $ac_cv_lib_curses_nl = yes; then
9589   curses_ok="yes"
9590 CURSES_LIBS="-lcurses"
9591
9592 else
9593   ncurses_ok="no"
9594 fi
9595
9596
9597 fi
9598
9599
9600
9601
9602
9603
9604 for ac_func in vprintf
9605 do
9606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9607 echo "$as_me:$LINENO: checking for $ac_func" >&5
9608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9609 if eval "test \"\${$as_ac_var+set}\" = set"; then
9610   echo $ECHO_N "(cached) $ECHO_C" >&6
9611 else
9612   cat >conftest.$ac_ext <<_ACEOF
9613 #line $LINENO "configure"
9614 /* confdefs.h.  */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h.  */
9619 /* System header to define __stub macros and hopefully few prototypes,
9620     which can conflict with char $ac_func (); below.
9621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9622     <limits.h> exists even on freestanding compilers.  */
9623 #ifdef __STDC__
9624 # include <limits.h>
9625 #else
9626 # include <assert.h>
9627 #endif
9628 /* Override any gcc2 internal prototype to avoid an error.  */
9629 #ifdef __cplusplus
9630 extern "C"
9631 {
9632 #endif
9633 /* We use char because int might match the return type of a gcc2
9634    builtin and then its argument prototype would still apply.  */
9635 char $ac_func ();
9636 /* The GNU C library defines this for functions which it implements
9637     to always fail with ENOSYS.  Some functions are actually named
9638     something starting with __ and the normal name is an alias.  */
9639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9640 choke me
9641 #else
9642 char (*f) () = $ac_func;
9643 #endif
9644 #ifdef __cplusplus
9645 }
9646 #endif
9647
9648 int
9649 main ()
9650 {
9651 return f != $ac_func;
9652   ;
9653   return 0;
9654 }
9655 _ACEOF
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9658   (eval $ac_link) 2>&5
9659   ac_status=$?
9660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661   (exit $ac_status); } &&
9662          { ac_try='test -s conftest$ac_exeext'
9663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664   (eval $ac_try) 2>&5
9665   ac_status=$?
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); }; }; then
9668   eval "$as_ac_var=yes"
9669 else
9670   echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9672
9673 eval "$as_ac_var=no"
9674 fi
9675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9676 fi
9677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9679 if test `eval echo '${'$as_ac_var'}'` = yes; then
9680   cat >>confdefs.h <<_ACEOF
9681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9682 _ACEOF
9683
9684 echo "$as_me:$LINENO: checking for _doprnt" >&5
9685 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
9686 if test "${ac_cv_func__doprnt+set}" = set; then
9687   echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689   cat >conftest.$ac_ext <<_ACEOF
9690 #line $LINENO "configure"
9691 /* confdefs.h.  */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h.  */
9696 /* System header to define __stub macros and hopefully few prototypes,
9697     which can conflict with char _doprnt (); below.
9698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9699     <limits.h> exists even on freestanding compilers.  */
9700 #ifdef __STDC__
9701 # include <limits.h>
9702 #else
9703 # include <assert.h>
9704 #endif
9705 /* Override any gcc2 internal prototype to avoid an error.  */
9706 #ifdef __cplusplus
9707 extern "C"
9708 {
9709 #endif
9710 /* We use char because int might match the return type of a gcc2
9711    builtin and then its argument prototype would still apply.  */
9712 char _doprnt ();
9713 /* The GNU C library defines this for functions which it implements
9714     to always fail with ENOSYS.  Some functions are actually named
9715     something starting with __ and the normal name is an alias.  */
9716 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9717 choke me
9718 #else
9719 char (*f) () = _doprnt;
9720 #endif
9721 #ifdef __cplusplus
9722 }
9723 #endif
9724
9725 int
9726 main ()
9727 {
9728 return f != _doprnt;
9729   ;
9730   return 0;
9731 }
9732 _ACEOF
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735   (eval $ac_link) 2>&5
9736   ac_status=$?
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); } &&
9739          { ac_try='test -s conftest$ac_exeext'
9740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741   (eval $ac_try) 2>&5
9742   ac_status=$?
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); }; }; then
9745   ac_cv_func__doprnt=yes
9746 else
9747   echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9749
9750 ac_cv_func__doprnt=no
9751 fi
9752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9753 fi
9754 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9755 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
9756 if test $ac_cv_func__doprnt = yes; then
9757
9758 cat >>confdefs.h <<\_ACEOF
9759 #define HAVE_DOPRNT 1
9760 _ACEOF
9761
9762 fi
9763
9764 fi
9765 done
9766
9767
9768
9769
9770 for ac_func in vsnprintf vasprintf
9771 do
9772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9773 echo "$as_me:$LINENO: checking for $ac_func" >&5
9774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9775 if eval "test \"\${$as_ac_var+set}\" = set"; then
9776   echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778   cat >conftest.$ac_ext <<_ACEOF
9779 #line $LINENO "configure"
9780 /* confdefs.h.  */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h.  */
9785 /* System header to define __stub macros and hopefully few prototypes,
9786     which can conflict with char $ac_func (); below.
9787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9788     <limits.h> exists even on freestanding compilers.  */
9789 #ifdef __STDC__
9790 # include <limits.h>
9791 #else
9792 # include <assert.h>
9793 #endif
9794 /* Override any gcc2 internal prototype to avoid an error.  */
9795 #ifdef __cplusplus
9796 extern "C"
9797 {
9798 #endif
9799 /* We use char because int might match the return type of a gcc2
9800    builtin and then its argument prototype would still apply.  */
9801 char $ac_func ();
9802 /* The GNU C library defines this for functions which it implements
9803     to always fail with ENOSYS.  Some functions are actually named
9804     something starting with __ and the normal name is an alias.  */
9805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9806 choke me
9807 #else
9808 char (*f) () = $ac_func;
9809 #endif
9810 #ifdef __cplusplus
9811 }
9812 #endif
9813
9814 int
9815 main ()
9816 {
9817 return f != $ac_func;
9818   ;
9819   return 0;
9820 }
9821 _ACEOF
9822 rm -f conftest.$ac_objext conftest$ac_exeext
9823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9824   (eval $ac_link) 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); } &&
9828          { ac_try='test -s conftest$ac_exeext'
9829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830   (eval $ac_try) 2>&5
9831   ac_status=$?
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); }; }; then
9834   eval "$as_ac_var=yes"
9835 else
9836   echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9838
9839 eval "$as_ac_var=no"
9840 fi
9841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9842 fi
9843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9845 if test `eval echo '${'$as_ac_var'}'` = yes; then
9846   cat >>confdefs.h <<_ACEOF
9847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9848 _ACEOF
9849
9850 fi
9851 done
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861 for ac_func in strlen strcpy strcat strstr strcmp strerror strtok strdup
9862 do
9863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9864 echo "$as_me:$LINENO: checking for $ac_func" >&5
9865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9866 if eval "test \"\${$as_ac_var+set}\" = set"; then
9867   echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869   cat >conftest.$ac_ext <<_ACEOF
9870 #line $LINENO "configure"
9871 /* confdefs.h.  */
9872 _ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h.  */
9876 /* System header to define __stub macros and hopefully few prototypes,
9877     which can conflict with char $ac_func (); below.
9878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9879     <limits.h> exists even on freestanding compilers.  */
9880 #ifdef __STDC__
9881 # include <limits.h>
9882 #else
9883 # include <assert.h>
9884 #endif
9885 /* Override any gcc2 internal prototype to avoid an error.  */
9886 #ifdef __cplusplus
9887 extern "C"
9888 {
9889 #endif
9890 /* We use char because int might match the return type of a gcc2
9891    builtin and then its argument prototype would still apply.  */
9892 char $ac_func ();
9893 /* The GNU C library defines this for functions which it implements
9894     to always fail with ENOSYS.  Some functions are actually named
9895     something starting with __ and the normal name is an alias.  */
9896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9897 choke me
9898 #else
9899 char (*f) () = $ac_func;
9900 #endif
9901 #ifdef __cplusplus
9902 }
9903 #endif
9904
9905 int
9906 main ()
9907 {
9908 return f != $ac_func;
9909   ;
9910   return 0;
9911 }
9912 _ACEOF
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915   (eval $ac_link) 2>&5
9916   ac_status=$?
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); } &&
9919          { ac_try='test -s conftest$ac_exeext'
9920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921   (eval $ac_try) 2>&5
9922   ac_status=$?
9923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924   (exit $ac_status); }; }; then
9925   eval "$as_ac_var=yes"
9926 else
9927   echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.$ac_ext >&5
9929
9930 eval "$as_ac_var=no"
9931 fi
9932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9933 fi
9934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9936 if test `eval echo '${'$as_ac_var'}'` = yes; then
9937   cat >>confdefs.h <<_ACEOF
9938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9939 _ACEOF
9940
9941 fi
9942 done
9943
9944
9945
9946 for ac_func in strchr memcpy
9947 do
9948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9949 echo "$as_me:$LINENO: checking for $ac_func" >&5
9950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9951 if eval "test \"\${$as_ac_var+set}\" = set"; then
9952   echo $ECHO_N "(cached) $ECHO_C" >&6
9953 else
9954   cat >conftest.$ac_ext <<_ACEOF
9955 #line $LINENO "configure"
9956 /* confdefs.h.  */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h.  */
9961 /* System header to define __stub macros and hopefully few prototypes,
9962     which can conflict with char $ac_func (); below.
9963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9964     <limits.h> exists even on freestanding compilers.  */
9965 #ifdef __STDC__
9966 # include <limits.h>
9967 #else
9968 # include <assert.h>
9969 #endif
9970 /* Override any gcc2 internal prototype to avoid an error.  */
9971 #ifdef __cplusplus
9972 extern "C"
9973 {
9974 #endif
9975 /* We use char because int might match the return type of a gcc2
9976    builtin and then its argument prototype would still apply.  */
9977 char $ac_func ();
9978 /* The GNU C library defines this for functions which it implements
9979     to always fail with ENOSYS.  Some functions are actually named
9980     something starting with __ and the normal name is an alias.  */
9981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9982 choke me
9983 #else
9984 char (*f) () = $ac_func;
9985 #endif
9986 #ifdef __cplusplus
9987 }
9988 #endif
9989
9990 int
9991 main ()
9992 {
9993 return f != $ac_func;
9994   ;
9995   return 0;
9996 }
9997 _ACEOF
9998 rm -f conftest.$ac_objext conftest$ac_exeext
9999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10000   (eval $ac_link) 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); } &&
10004          { ac_try='test -s conftest$ac_exeext'
10005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006   (eval $ac_try) 2>&5
10007   ac_status=$?
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); }; }; then
10010   eval "$as_ac_var=yes"
10011 else
10012   echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10014
10015 eval "$as_ac_var=no"
10016 fi
10017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10018 fi
10019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10021 if test `eval echo '${'$as_ac_var'}'` = yes; then
10022   cat >>confdefs.h <<_ACEOF
10023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10024 _ACEOF
10025
10026 fi
10027 done
10028
10029
10030 for ac_func in fgets
10031 do
10032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10033 echo "$as_me:$LINENO: checking for $ac_func" >&5
10034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10035 if eval "test \"\${$as_ac_var+set}\" = set"; then
10036   echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038   cat >conftest.$ac_ext <<_ACEOF
10039 #line $LINENO "configure"
10040 /* confdefs.h.  */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h.  */
10045 /* System header to define __stub macros and hopefully few prototypes,
10046     which can conflict with char $ac_func (); below.
10047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10048     <limits.h> exists even on freestanding compilers.  */
10049 #ifdef __STDC__
10050 # include <limits.h>
10051 #else
10052 # include <assert.h>
10053 #endif
10054 /* Override any gcc2 internal prototype to avoid an error.  */
10055 #ifdef __cplusplus
10056 extern "C"
10057 {
10058 #endif
10059 /* We use char because int might match the return type of a gcc2
10060    builtin and then its argument prototype would still apply.  */
10061 char $ac_func ();
10062 /* The GNU C library defines this for functions which it implements
10063     to always fail with ENOSYS.  Some functions are actually named
10064     something starting with __ and the normal name is an alias.  */
10065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10066 choke me
10067 #else
10068 char (*f) () = $ac_func;
10069 #endif
10070 #ifdef __cplusplus
10071 }
10072 #endif
10073
10074 int
10075 main ()
10076 {
10077 return f != $ac_func;
10078   ;
10079   return 0;
10080 }
10081 _ACEOF
10082 rm -f conftest.$ac_objext conftest$ac_exeext
10083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10084   (eval $ac_link) 2>&5
10085   ac_status=$?
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); } &&
10088          { ac_try='test -s conftest$ac_exeext'
10089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090   (eval $ac_try) 2>&5
10091   ac_status=$?
10092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093   (exit $ac_status); }; }; then
10094   eval "$as_ac_var=yes"
10095 else
10096   echo "$as_me: failed program was:" >&5
10097 sed 's/^/| /' conftest.$ac_ext >&5
10098
10099 eval "$as_ac_var=no"
10100 fi
10101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10102 fi
10103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10105 if test `eval echo '${'$as_ac_var'}'` = yes; then
10106   cat >>confdefs.h <<_ACEOF
10107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10108 _ACEOF
10109
10110 fi
10111 done
10112
10113
10114 for ac_func in yylex
10115 do
10116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10117 echo "$as_me:$LINENO: checking for $ac_func" >&5
10118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10119 if eval "test \"\${$as_ac_var+set}\" = set"; then
10120   echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122   cat >conftest.$ac_ext <<_ACEOF
10123 #line $LINENO "configure"
10124 /* confdefs.h.  */
10125 _ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h.  */
10129 /* System header to define __stub macros and hopefully few prototypes,
10130     which can conflict with char $ac_func (); below.
10131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10132     <limits.h> exists even on freestanding compilers.  */
10133 #ifdef __STDC__
10134 # include <limits.h>
10135 #else
10136 # include <assert.h>
10137 #endif
10138 /* Override any gcc2 internal prototype to avoid an error.  */
10139 #ifdef __cplusplus
10140 extern "C"
10141 {
10142 #endif
10143 /* We use char because int might match the return type of a gcc2
10144    builtin and then its argument prototype would still apply.  */
10145 char $ac_func ();
10146 /* The GNU C library defines this for functions which it implements
10147     to always fail with ENOSYS.  Some functions are actually named
10148     something starting with __ and the normal name is an alias.  */
10149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10150 choke me
10151 #else
10152 char (*f) () = $ac_func;
10153 #endif
10154 #ifdef __cplusplus
10155 }
10156 #endif
10157
10158 int
10159 main ()
10160 {
10161 return f != $ac_func;
10162   ;
10163   return 0;
10164 }
10165 _ACEOF
10166 rm -f conftest.$ac_objext conftest$ac_exeext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10168   (eval $ac_link) 2>&5
10169   ac_status=$?
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); } &&
10172          { ac_try='test -s conftest$ac_exeext'
10173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174   (eval $ac_try) 2>&5
10175   ac_status=$?
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); }; }; then
10178   eval "$as_ac_var=yes"
10179 else
10180   echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10182
10183 eval "$as_ac_var=no"
10184 fi
10185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10186 fi
10187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10189 if test `eval echo '${'$as_ac_var'}'` = yes; then
10190   cat >>confdefs.h <<_ACEOF
10191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10192 _ACEOF
10193
10194 fi
10195 done
10196
10197
10198 echo "$as_me:$LINENO: checking whether scanf knows %a" >&5
10199 echo $ECHO_N "checking whether scanf knows %a... $ECHO_C" >&6
10200 if test "${ucsim_cv_scanf_a+set}" = set; then
10201   echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203   echo "a b" >conftest.data
10204 if test "$cross_compiling" = yes; then
10205   ucsim_cv_scanf_a="unknown"
10206 else
10207   cat >conftest.$ac_ext <<_ACEOF
10208 #line $LINENO "configure"
10209 /* confdefs.h.  */
10210 _ACEOF
10211 cat confdefs.h >>conftest.$ac_ext
10212 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h.  */
10214
10215 #include <stdio.h>
10216 void main(void)
10217 {
10218   FILE *f;
10219   char *a;
10220   int  i;
10221   if ((f= fopen("conftest.data", "r")) == NULL)
10222     exit(1);
10223   i= fscanf(f, " %a[a-z] ", &a);
10224   fclose(f);
10225   if (i == 0)
10226     exit(2);
10227   if (i == 1)
10228     exit(0);
10229   exit(3);
10230 }
10231 _ACEOF
10232 rm -f conftest$ac_exeext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234   (eval $ac_link) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239   (eval $ac_try) 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); }; }; then
10243   ucsim_cv_scanf_a="yes"
10244 else
10245   echo "$as_me: program exited with status $ac_status" >&5
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10248
10249 ( exit $ac_status )
10250 ucsim_cv_scanf_a="no"
10251 fi
10252 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10253 fi
10254
10255 fi
10256 echo "$as_me:$LINENO: result: $ucsim_cv_scanf_a" >&5
10257 echo "${ECHO_T}$ucsim_cv_scanf_a" >&6
10258 if test "$ucsim_cv_scanf_a" = "yes"; then
10259   cat >>confdefs.h <<\_ACEOF
10260 #define SCANF_A 1
10261 _ACEOF
10262
10263 fi
10264
10265 echo "$as_me:$LINENO: checking whether getcwd is GNUish" >&5
10266 echo $ECHO_N "checking whether getcwd is GNUish... $ECHO_C" >&6
10267 if test "${ucsim_cv_getcwd+set}" = set; then
10268   echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270   if test "$cross_compiling" = yes; then
10271   ucsim_cv_getcwd="unknown"
10272 else
10273   cat >conftest.$ac_ext <<_ACEOF
10274 #line $LINENO "configure"
10275 /* confdefs.h.  */
10276 _ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h.  */
10280
10281 #include <unistd.h>
10282 void main(void)
10283 {
10284   if ((getcwd(NULL, 0)) == NULL)
10285     exit(1);
10286   exit(0);
10287 }
10288 _ACEOF
10289 rm -f conftest$ac_exeext
10290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10291   (eval $ac_link) 2>&5
10292   ac_status=$?
10293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296   (eval $ac_try) 2>&5
10297   ac_status=$?
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); }; }; then
10300   ucsim_cv_getcwd="yes"
10301 else
10302   echo "$as_me: program exited with status $ac_status" >&5
10303 echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10305
10306 ( exit $ac_status )
10307 ucsim_cv_getcwd="no"
10308 fi
10309 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10310 fi
10311
10312 fi
10313 echo "$as_me:$LINENO: result: $ucsim_cv_getcwd" >&5
10314 echo "${ECHO_T}$ucsim_cv_getcwd" >&6
10315 if test "$ucsim_cv_getcwd" = "yes"; then
10316   cat >>confdefs.h <<\_ACEOF
10317 #define GNU_GETCWD 1
10318 _ACEOF
10319
10320 fi
10321
10322
10323 #'
10324
10325 echo "$as_me:$LINENO: checking for type of length pointer parameter of accept" >&5
10326 echo $ECHO_N "checking for type of length pointer parameter of accept... $ECHO_C" >&6
10327 if test "${ucsim_cv_accept_length_type+set}" = set; then
10328   echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330   ac_save_CPPFLAGS="$CPPFLAGS"
10331     ucsim_cv_accept_length_type=no
10332     for ac_val in int size_t socklen_t; do
10333       CPPFLAGS="$ac_save_CPPFLAGS -DACCEPT_SOCKLEN_T=$ac_val"
10334       cat >conftest.$ac_ext <<_ACEOF
10335 #line $LINENO "configure"
10336 /* confdefs.h.  */
10337 _ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h.  */
10341 #include <sys/types.h>
10342 #include <sys/socket.h>
10343 int
10344 main ()
10345 {
10346 struct sockaddr a; $ac_val len; accept (0, &a, &len);
10347   ;
10348   return 0;
10349 }
10350 _ACEOF
10351 rm -f conftest.$ac_objext
10352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353   (eval $ac_compile) 2>&5
10354   ac_status=$?
10355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356   (exit $ac_status); } &&
10357          { ac_try='test -s conftest.$ac_objext'
10358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359   (eval $ac_try) 2>&5
10360   ac_status=$?
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); }; }; then
10363   ucsim_cv_accept_length_type=$ac_val; break
10364 else
10365   echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10367
10368 fi
10369 rm -f conftest.$ac_objext conftest.$ac_ext
10370     done
10371     CPPFLAGS="$ac_save_CPPFLAGS"
10372 fi
10373 echo "$as_me:$LINENO: result: $ucsim_cv_accept_length_type" >&5
10374 echo "${ECHO_T}$ucsim_cv_accept_length_type" >&6
10375   if test "$ucsim_cv_accept_length_type" != no; then
10376
10377 cat >>confdefs.h <<_ACEOF
10378 #define ACCEPT_SOCKLEN_T $ucsim_cv_accept_length_type
10379 _ACEOF
10380
10381   fi
10382
10383
10384
10385 # Macro definitions
10386 ###################
10387
10388 # DD_COPT macro checks if the compiler specified as the 1st parameter
10389 # supports option specified as the 2nd parameter
10390 # For example: DD_COPT(CXX, fPIC)
10391
10392
10393
10394
10395 # Checking characteristics of compilers and other programs
10396 # --------------------------------------------------------
10397
10398 # Cross compiling overrides
10399 # FIXME
10400 if test "$CC" = "i586-mingw32msvc-gcc"; then
10401   ac_cv_c_bigendian=no
10402   ac_cv_sizeof_char=1
10403   ac_cv_sizeof_short=2
10404   ac_cv_sizeof_int=4
10405   ac_cv_sizeof_long=4
10406   ac_cv_sizeof_long_long=4
10407 fi
10408
10409 if test "$cross_compiling" = "no"
10410 then
10411     echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10412 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10413 if test "${ac_cv_c_bigendian+set}" = set; then
10414   echo $ECHO_N "(cached) $ECHO_C" >&6
10415 else
10416   # See if sys/param.h defines the BYTE_ORDER macro.
10417 cat >conftest.$ac_ext <<_ACEOF
10418 #line $LINENO "configure"
10419 /* confdefs.h.  */
10420 _ACEOF
10421 cat confdefs.h >>conftest.$ac_ext
10422 cat >>conftest.$ac_ext <<_ACEOF
10423 /* end confdefs.h.  */
10424 #include <sys/types.h>
10425 #include <sys/param.h>
10426
10427 int
10428 main ()
10429 {
10430 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10431  bogus endian macros
10432 #endif
10433
10434   ;
10435   return 0;
10436 }
10437 _ACEOF
10438 rm -f conftest.$ac_objext
10439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10440   (eval $ac_compile) 2>&5
10441   ac_status=$?
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); } &&
10444          { ac_try='test -s conftest.$ac_objext'
10445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446   (eval $ac_try) 2>&5
10447   ac_status=$?
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); }; }; then
10450   # It does; now see whether it defined to BIG_ENDIAN or not.
10451 cat >conftest.$ac_ext <<_ACEOF
10452 #line $LINENO "configure"
10453 /* confdefs.h.  */
10454 _ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h.  */
10458 #include <sys/types.h>
10459 #include <sys/param.h>
10460
10461 int
10462 main ()
10463 {
10464 #if BYTE_ORDER != BIG_ENDIAN
10465  not big endian
10466 #endif
10467
10468   ;
10469   return 0;
10470 }
10471 _ACEOF
10472 rm -f conftest.$ac_objext
10473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10474   (eval $ac_compile) 2>&5
10475   ac_status=$?
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); } &&
10478          { ac_try='test -s conftest.$ac_objext'
10479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480   (eval $ac_try) 2>&5
10481   ac_status=$?
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); }; }; then
10484   ac_cv_c_bigendian=yes
10485 else
10486   echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489 ac_cv_c_bigendian=no
10490 fi
10491 rm -f conftest.$ac_objext conftest.$ac_ext
10492 else
10493   echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10495
10496 # It does not; compile a test program.
10497 if test "$cross_compiling" = yes; then
10498   # try to guess the endianness by grepping values into an object file
10499   ac_cv_c_bigendian=unknown
10500   cat >conftest.$ac_ext <<_ACEOF
10501 #line $LINENO "configure"
10502 /* confdefs.h.  */
10503 _ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h.  */
10507 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10508 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10509 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10510 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10511 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10512 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10513 int
10514 main ()
10515 {
10516  _ascii (); _ebcdic ();
10517   ;
10518   return 0;
10519 }
10520 _ACEOF
10521 rm -f conftest.$ac_objext
10522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10523   (eval $ac_compile) 2>&5
10524   ac_status=$?
10525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526   (exit $ac_status); } &&
10527          { ac_try='test -s conftest.$ac_objext'
10528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529   (eval $ac_try) 2>&5
10530   ac_status=$?
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); }; }; then
10533   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10534   ac_cv_c_bigendian=yes
10535 fi
10536 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10537   if test "$ac_cv_c_bigendian" = unknown; then
10538     ac_cv_c_bigendian=no
10539   else
10540     # finding both strings is unlikely to happen, but who knows?
10541     ac_cv_c_bigendian=unknown
10542   fi
10543 fi
10544 else
10545   echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10547
10548 fi
10549 rm -f conftest.$ac_objext conftest.$ac_ext
10550 else
10551   cat >conftest.$ac_ext <<_ACEOF
10552 #line $LINENO "configure"
10553 /* confdefs.h.  */
10554 _ACEOF
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h.  */
10558 int
10559 main ()
10560 {
10561   /* Are we little or big endian?  From Harbison&Steele.  */
10562   union
10563   {
10564     long l;
10565     char c[sizeof (long)];
10566   } u;
10567   u.l = 1;
10568   exit (u.c[sizeof (long) - 1] == 1);
10569 }
10570 _ACEOF
10571 rm -f conftest$ac_exeext
10572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10573   (eval $ac_link) 2>&5
10574   ac_status=$?
10575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578   (eval $ac_try) 2>&5
10579   ac_status=$?
10580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581   (exit $ac_status); }; }; then
10582   ac_cv_c_bigendian=no
10583 else
10584   echo "$as_me: program exited with status $ac_status" >&5
10585 echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10587
10588 ( exit $ac_status )
10589 ac_cv_c_bigendian=yes
10590 fi
10591 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10592 fi
10593 fi
10594 rm -f conftest.$ac_objext conftest.$ac_ext
10595 fi
10596 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10597 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10598 case $ac_cv_c_bigendian in
10599   yes)
10600
10601 cat >>confdefs.h <<\_ACEOF
10602 #define WORDS_BIGENDIAN 1
10603 _ACEOF
10604  ;;
10605   no)
10606      ;;
10607   *)
10608     { { echo "$as_me:$LINENO: error: unknown endianness
10609 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10610 echo "$as_me: error: unknown endianness
10611 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10612    { (exit 1); exit 1; }; } ;;
10613 esac
10614
10615 else
10616 #echo "CROSS ENDIAN"
10617     if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
10618         ac_cv_c_bigendian=no
10619     else
10620         : # FIXME
10621     fi
10622 #echo "CROSS ENDIAN DONE"
10623 fi
10624
10625 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
10626 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
10627 if test "${ucsim_cv_MM+set}" = set; then
10628   echo $ECHO_N "(cached) $ECHO_C" >&6
10629 else
10630   echo "#include <stdio.h>" >_test_.c
10631 echo "" >>_test_.c
10632 $CXXCPP -v -MM _test_.c 1>&5 2>&5
10633 if test "$?" = "0"; then
10634   ucsim_cv_MM="-MM"
10635 else
10636   ucsim_cv_MM="-M"
10637 fi
10638 rm -f _test_.*
10639 fi
10640 echo "$as_me:$LINENO: result: $ucsim_cv_MM" >&5
10641 echo "${ECHO_T}$ucsim_cv_MM" >&6
10642 M_OR_MM=$ucsim_cv_MM
10643
10644
10645 # This is the first time when CFLAGS are set/modified!!
10646
10647
10648 echo "$as_me:$LINENO: checking whether $CXX accepts -ggdb" >&5
10649 echo $ECHO_N "checking whether $CXX accepts -ggdb... $ECHO_C" >&6
10650 if test "${ucsim_cv_CXXggdb+set}" = set; then
10651   echo $ECHO_N "(cached) $ECHO_C" >&6
10652 else
10653   cat >_test_.c <<EOF
10654 #include <stdio.h>
10655 void main(void) {}
10656 EOF
10657 $CXX -v -ggdb -c _test_.c 1>&5 2>&5
10658 if test "$?" = "0"; then
10659   ucsim_cv_CXXggdb="yes"
10660 else
10661   ucsim_cv_CXXggdb="no"
10662 fi
10663 rm -f _test_.* a.out
10664 fi
10665 echo "$as_me:$LINENO: result: $ucsim_cv_CXXggdb" >&5
10666 echo "${ECHO_T}$ucsim_cv_CXXggdb" >&6
10667
10668 if test "$ucsim_cv_CXXggdb" = "yes"; then
10669     if test "$CXXFLAGS"x = x ;then
10670         CXXFLAGS="-ggdb"
10671     else
10672         CXXFLAGS="$CXXFLAGS -ggdb"
10673     fi
10674 fi
10675
10676
10677 echo "$as_me:$LINENO: checking whether $CXX accepts -pipe" >&5
10678 echo $ECHO_N "checking whether $CXX accepts -pipe... $ECHO_C" >&6
10679 if test "${ucsim_cv_CXXpipe+set}" = set; then
10680   echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682   cat >_test_.c <<EOF
10683 #include <stdio.h>
10684 void main(void) {}
10685 EOF
10686 $CXX -v -pipe -c _test_.c 1>&5 2>&5
10687 if test "$?" = "0"; then
10688   ucsim_cv_CXXpipe="yes"
10689 else
10690   ucsim_cv_CXXpipe="no"
10691 fi
10692 rm -f _test_.* a.out
10693 fi
10694 echo "$as_me:$LINENO: result: $ucsim_cv_CXXpipe" >&5
10695 echo "${ECHO_T}$ucsim_cv_CXXpipe" >&6
10696
10697 if test "$ucsim_cv_CXXpipe" = "yes"; then
10698   CXXFLAGS="$CXXFLAGS -pipe"
10699 fi
10700
10701 PICOPT=""
10702 SHAREDLIB="no"
10703
10704 echo "$as_me:$LINENO: checking whether $CXX accepts -fPIC" >&5
10705 echo $ECHO_N "checking whether $CXX accepts -fPIC... $ECHO_C" >&6
10706 if test "${ucsim_cv_CXXfPIC+set}" = set; then
10707   echo $ECHO_N "(cached) $ECHO_C" >&6
10708 else
10709   cat >_test_.c <<EOF
10710 #include <stdio.h>
10711 void main(void) {}
10712 EOF
10713 $CXX -v -fPIC -c _test_.c 1>&5 2>&5
10714 if test "$?" = "0"; then
10715   ucsim_cv_CXXfPIC="yes"
10716 else
10717   ucsim_cv_CXXfPIC="no"
10718 fi
10719 rm -f _test_.* a.out
10720 fi
10721 echo "$as_me:$LINENO: result: $ucsim_cv_CXXfPIC" >&5
10722 echo "${ECHO_T}$ucsim_cv_CXXfPIC" >&6
10723
10724 if test "$ucsim_cv_CXXfPIC" = "yes"; then
10725     PICOPT="-fPIC"
10726 else
10727
10728 echo "$as_me:$LINENO: checking whether $CXX accepts -fpic" >&5
10729 echo $ECHO_N "checking whether $CXX accepts -fpic... $ECHO_C" >&6
10730 if test "${ucsim_cv_CXXfpic+set}" = set; then
10731   echo $ECHO_N "(cached) $ECHO_C" >&6
10732 else
10733   cat >_test_.c <<EOF
10734 #include <stdio.h>
10735 void main(void) {}
10736 EOF
10737 $CXX -v -fpic -c _test_.c 1>&5 2>&5
10738 if test "$?" = "0"; then
10739   ucsim_cv_CXXfpic="yes"
10740 else
10741   ucsim_cv_CXXfpic="no"
10742 fi
10743 rm -f _test_.* a.out
10744 fi
10745 echo "$as_me:$LINENO: result: $ucsim_cv_CXXfpic" >&5
10746 echo "${ECHO_T}$ucsim_cv_CXXfpic" >&6
10747
10748     if test "$ucsim_cv_CXXfpic" = "yes"; then
10749         PICOPT="-fpic"
10750     fi
10751 fi
10752 if test "$PICOPT"x != "x"; then
10753     SHAREDLIB="yes"
10754 fi
10755 # If this is Cygwin neither use Position Independant Code
10756 # nor build .so
10757 # Quick + dirty by Bernhard
10758 # FIXME
10759 if $CXX -v 2>&1 | grep -i cygwin 1>&5 2>&5; then
10760     PICOPT=""
10761     SHAREDLIB="no"
10762 fi
10763
10764
10765
10766 dlso_ok="no"
10767 if test $SHAREDLIB = "yes" -a $dl_ok = "yes" -a $enable_dlso = "yes"; then
10768     dlso_ok="yes"
10769 fi
10770
10771
10772 # Checks for typedefs, structures, and compiler characteristics.
10773 # ===========================================================================
10774
10775 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10776 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10777 if test "${ac_cv_type_signal+set}" = set; then
10778   echo $ECHO_N "(cached) $ECHO_C" >&6
10779 else
10780   cat >conftest.$ac_ext <<_ACEOF
10781 #line $LINENO "configure"
10782 /* confdefs.h.  */
10783 _ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h.  */
10787 #include <sys/types.h>
10788 #include <signal.h>
10789 #ifdef signal
10790 # undef signal
10791 #endif
10792 #ifdef __cplusplus
10793 extern "C" void (*signal (int, void (*)(int)))(int);
10794 #else
10795 void (*signal ()) ();
10796 #endif
10797
10798 int
10799 main ()
10800 {
10801 int i;
10802   ;
10803   return 0;
10804 }
10805 _ACEOF
10806 rm -f conftest.$ac_objext
10807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10808   (eval $ac_compile) 2>&5
10809   ac_status=$?
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); } &&
10812          { ac_try='test -s conftest.$ac_objext'
10813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814   (eval $ac_try) 2>&5
10815   ac_status=$?
10816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817   (exit $ac_status); }; }; then
10818   ac_cv_type_signal=void
10819 else
10820   echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10822
10823 ac_cv_type_signal=int
10824 fi
10825 rm -f conftest.$ac_objext conftest.$ac_ext
10826 fi
10827 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10828 echo "${ECHO_T}$ac_cv_type_signal" >&6
10829
10830 cat >>confdefs.h <<_ACEOF
10831 #define RETSIGTYPE $ac_cv_type_signal
10832 _ACEOF
10833
10834
10835 if test "$cross_compiling" = "no"; then
10836 echo "$as_me:$LINENO: checking for char" >&5
10837 echo $ECHO_N "checking for char... $ECHO_C" >&6
10838 if test "${ac_cv_type_char+set}" = set; then
10839   echo $ECHO_N "(cached) $ECHO_C" >&6
10840 else
10841   cat >conftest.$ac_ext <<_ACEOF
10842 #line $LINENO "configure"
10843 /* confdefs.h.  */
10844 _ACEOF
10845 cat confdefs.h >>conftest.$ac_ext
10846 cat >>conftest.$ac_ext <<_ACEOF
10847 /* end confdefs.h.  */
10848 $ac_includes_default
10849 int
10850 main ()
10851 {
10852 if ((char *) 0)
10853   return 0;
10854 if (sizeof (char))
10855   return 0;
10856   ;
10857   return 0;
10858 }
10859 _ACEOF
10860 rm -f conftest.$ac_objext
10861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10862   (eval $ac_compile) 2>&5
10863   ac_status=$?
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); } &&
10866          { ac_try='test -s conftest.$ac_objext'
10867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868   (eval $ac_try) 2>&5
10869   ac_status=$?
10870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); }; }; then
10872   ac_cv_type_char=yes
10873 else
10874   echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10876
10877 ac_cv_type_char=no
10878 fi
10879 rm -f conftest.$ac_objext conftest.$ac_ext
10880 fi
10881 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
10882 echo "${ECHO_T}$ac_cv_type_char" >&6
10883
10884 echo "$as_me:$LINENO: checking size of char" >&5
10885 echo $ECHO_N "checking size of char... $ECHO_C" >&6
10886 if test "${ac_cv_sizeof_char+set}" = set; then
10887   echo $ECHO_N "(cached) $ECHO_C" >&6
10888 else
10889   if test "$ac_cv_type_char" = yes; then
10890   # The cast to unsigned long works around a bug in the HP C Compiler
10891   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10892   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10893   # This bug is HP SR number 8606223364.
10894   if test "$cross_compiling" = yes; then
10895   # Depending upon the size, compute the lo and hi bounds.
10896 cat >conftest.$ac_ext <<_ACEOF
10897 #line $LINENO "configure"
10898 /* confdefs.h.  */
10899 _ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h.  */
10903 $ac_includes_default
10904 int
10905 main ()
10906 {
10907 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
10908 test_array [0] = 0
10909
10910   ;
10911   return 0;
10912 }
10913 _ACEOF
10914 rm -f conftest.$ac_objext
10915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10916   (eval $ac_compile) 2>&5
10917   ac_status=$?
10918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919   (exit $ac_status); } &&
10920          { ac_try='test -s conftest.$ac_objext'
10921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10922   (eval $ac_try) 2>&5
10923   ac_status=$?
10924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925   (exit $ac_status); }; }; then
10926   ac_lo=0 ac_mid=0
10927   while :; do
10928     cat >conftest.$ac_ext <<_ACEOF
10929 #line $LINENO "configure"
10930 /* confdefs.h.  */
10931 _ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h.  */
10935 $ac_includes_default
10936 int
10937 main ()
10938 {
10939 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
10940 test_array [0] = 0
10941
10942   ;
10943   return 0;
10944 }
10945 _ACEOF
10946 rm -f conftest.$ac_objext
10947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10948   (eval $ac_compile) 2>&5
10949   ac_status=$?
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); } &&
10952          { ac_try='test -s conftest.$ac_objext'
10953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954   (eval $ac_try) 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }; }; then
10958   ac_hi=$ac_mid; break
10959 else
10960   echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10962
10963 ac_lo=`expr $ac_mid + 1`
10964                     if test $ac_lo -le $ac_mid; then
10965                       ac_lo= ac_hi=
10966                       break
10967                     fi
10968                     ac_mid=`expr 2 '*' $ac_mid + 1`
10969 fi
10970 rm -f conftest.$ac_objext conftest.$ac_ext
10971   done
10972 else
10973   echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10975
10976 cat >conftest.$ac_ext <<_ACEOF
10977 #line $LINENO "configure"
10978 /* confdefs.h.  */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h.  */
10983 $ac_includes_default
10984 int
10985 main ()
10986 {
10987 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
10988 test_array [0] = 0
10989
10990   ;
10991   return 0;
10992 }
10993 _ACEOF
10994 rm -f conftest.$ac_objext
10995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10996   (eval $ac_compile) 2>&5
10997   ac_status=$?
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); } &&
11000          { ac_try='test -s conftest.$ac_objext'
11001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002   (eval $ac_try) 2>&5
11003   ac_status=$?
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); }; }; then
11006   ac_hi=-1 ac_mid=-1
11007   while :; do
11008     cat >conftest.$ac_ext <<_ACEOF
11009 #line $LINENO "configure"
11010 /* confdefs.h.  */
11011 _ACEOF
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h.  */
11015 $ac_includes_default
11016 int
11017 main ()
11018 {
11019 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11020 test_array [0] = 0
11021
11022   ;
11023   return 0;
11024 }
11025 _ACEOF
11026 rm -f conftest.$ac_objext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11028   (eval $ac_compile) 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); } &&
11032          { ac_try='test -s conftest.$ac_objext'
11033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034   (eval $ac_try) 2>&5
11035   ac_status=$?
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); }; }; then
11038   ac_lo=$ac_mid; break
11039 else
11040   echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11042
11043 ac_hi=`expr '(' $ac_mid ')' - 1`
11044                        if test $ac_mid -le $ac_hi; then
11045                          ac_lo= ac_hi=
11046                          break
11047                        fi
11048                        ac_mid=`expr 2 '*' $ac_mid`
11049 fi
11050 rm -f conftest.$ac_objext conftest.$ac_ext
11051   done
11052 else
11053   echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11055
11056 ac_lo= ac_hi=
11057 fi
11058 rm -f conftest.$ac_objext conftest.$ac_ext
11059 fi
11060 rm -f conftest.$ac_objext conftest.$ac_ext
11061 # Binary search between lo and hi bounds.
11062 while test "x$ac_lo" != "x$ac_hi"; do
11063   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11064   cat >conftest.$ac_ext <<_ACEOF
11065 #line $LINENO "configure"
11066 /* confdefs.h.  */
11067 _ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h.  */
11071 $ac_includes_default
11072 int
11073 main ()
11074 {
11075 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11076 test_array [0] = 0
11077
11078   ;
11079   return 0;
11080 }
11081 _ACEOF
11082 rm -f conftest.$ac_objext
11083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11084   (eval $ac_compile) 2>&5
11085   ac_status=$?
11086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087   (exit $ac_status); } &&
11088          { ac_try='test -s conftest.$ac_objext'
11089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090   (eval $ac_try) 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); }; }; then
11094   ac_hi=$ac_mid
11095 else
11096   echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099 ac_lo=`expr '(' $ac_mid ')' + 1`
11100 fi
11101 rm -f conftest.$ac_objext conftest.$ac_ext
11102 done
11103 case $ac_lo in
11104 ?*) ac_cv_sizeof_char=$ac_lo;;
11105 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11106 See \`config.log' for more details." >&5
11107 echo "$as_me: error: cannot compute sizeof (char), 77
11108 See \`config.log' for more details." >&2;}
11109    { (exit 1); exit 1; }; } ;;
11110 esac
11111 else
11112   if test "$cross_compiling" = yes; then
11113   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11114 See \`config.log' for more details." >&5
11115 echo "$as_me: error: cannot run test program while cross compiling
11116 See \`config.log' for more details." >&2;}
11117    { (exit 1); exit 1; }; }
11118 else
11119   cat >conftest.$ac_ext <<_ACEOF
11120 #line $LINENO "configure"
11121 /* confdefs.h.  */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h.  */
11126 $ac_includes_default
11127 long longval () { return (long) (sizeof (char)); }
11128 unsigned long ulongval () { return (long) (sizeof (char)); }
11129 #include <stdio.h>
11130 #include <stdlib.h>
11131 int
11132 main ()
11133 {
11134
11135   FILE *f = fopen ("conftest.val", "w");
11136   if (! f)
11137     exit (1);
11138   if (((long) (sizeof (char))) < 0)
11139     {
11140       long i = longval ();
11141       if (i != ((long) (sizeof (char))))
11142         exit (1);
11143       fprintf (f, "%ld\n", i);
11144     }
11145   else
11146     {
11147       unsigned long i = ulongval ();
11148       if (i != ((long) (sizeof (char))))
11149         exit (1);
11150       fprintf (f, "%lu\n", i);
11151     }
11152   exit (ferror (f) || fclose (f) != 0);
11153
11154   ;
11155   return 0;
11156 }
11157 _ACEOF
11158 rm -f conftest$ac_exeext
11159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160   (eval $ac_link) 2>&5
11161   ac_status=$?
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165   (eval $ac_try) 2>&5
11166   ac_status=$?
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); }; }; then
11169   ac_cv_sizeof_char=`cat conftest.val`
11170 else
11171   echo "$as_me: program exited with status $ac_status" >&5
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11174
11175 ( exit $ac_status )
11176 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11177 See \`config.log' for more details." >&5
11178 echo "$as_me: error: cannot compute sizeof (char), 77
11179 See \`config.log' for more details." >&2;}
11180    { (exit 1); exit 1; }; }
11181 fi
11182 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11183 fi
11184 fi
11185 rm -f conftest.val
11186 else
11187   ac_cv_sizeof_char=0
11188 fi
11189 fi
11190 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11191 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11192 cat >>confdefs.h <<_ACEOF
11193 #define SIZEOF_CHAR $ac_cv_sizeof_char
11194 _ACEOF
11195
11196
11197 echo "$as_me:$LINENO: checking for short" >&5
11198 echo $ECHO_N "checking for short... $ECHO_C" >&6
11199 if test "${ac_cv_type_short+set}" = set; then
11200   echo $ECHO_N "(cached) $ECHO_C" >&6
11201 else
11202   cat >conftest.$ac_ext <<_ACEOF
11203 #line $LINENO "configure"
11204 /* confdefs.h.  */
11205 _ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h.  */
11209 $ac_includes_default
11210 int
11211 main ()
11212 {
11213 if ((short *) 0)
11214   return 0;
11215 if (sizeof (short))
11216   return 0;
11217   ;
11218   return 0;
11219 }
11220 _ACEOF
11221 rm -f conftest.$ac_objext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223   (eval $ac_compile) 2>&5
11224   ac_status=$?
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); } &&
11227          { ac_try='test -s conftest.$ac_objext'
11228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229   (eval $ac_try) 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); }; }; then
11233   ac_cv_type_short=yes
11234 else
11235   echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11237
11238 ac_cv_type_short=no
11239 fi
11240 rm -f conftest.$ac_objext conftest.$ac_ext
11241 fi
11242 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11243 echo "${ECHO_T}$ac_cv_type_short" >&6
11244
11245 echo "$as_me:$LINENO: checking size of short" >&5
11246 echo $ECHO_N "checking size of short... $ECHO_C" >&6
11247 if test "${ac_cv_sizeof_short+set}" = set; then
11248   echo $ECHO_N "(cached) $ECHO_C" >&6
11249 else
11250   if test "$ac_cv_type_short" = yes; then
11251   # The cast to unsigned long works around a bug in the HP C Compiler
11252   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11253   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11254   # This bug is HP SR number 8606223364.
11255   if test "$cross_compiling" = yes; then
11256   # Depending upon the size, compute the lo and hi bounds.
11257 cat >conftest.$ac_ext <<_ACEOF
11258 #line $LINENO "configure"
11259 /* confdefs.h.  */
11260 _ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h.  */
11264 $ac_includes_default
11265 int
11266 main ()
11267 {
11268 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11269 test_array [0] = 0
11270
11271   ;
11272   return 0;
11273 }
11274 _ACEOF
11275 rm -f conftest.$ac_objext
11276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11277   (eval $ac_compile) 2>&5
11278   ac_status=$?
11279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280   (exit $ac_status); } &&
11281          { ac_try='test -s conftest.$ac_objext'
11282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283   (eval $ac_try) 2>&5
11284   ac_status=$?
11285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286   (exit $ac_status); }; }; then
11287   ac_lo=0 ac_mid=0
11288   while :; do
11289     cat >conftest.$ac_ext <<_ACEOF
11290 #line $LINENO "configure"
11291 /* confdefs.h.  */
11292 _ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h.  */
11296 $ac_includes_default
11297 int
11298 main ()
11299 {
11300 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $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_hi=$ac_mid; break
11320 else
11321   echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11323
11324 ac_lo=`expr $ac_mid + 1`
11325                     if test $ac_lo -le $ac_mid; then
11326                       ac_lo= ac_hi=
11327                       break
11328                     fi
11329                     ac_mid=`expr 2 '*' $ac_mid + 1`
11330 fi
11331 rm -f conftest.$ac_objext conftest.$ac_ext
11332   done
11333 else
11334   echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11336
11337 cat >conftest.$ac_ext <<_ACEOF
11338 #line $LINENO "configure"
11339 /* confdefs.h.  */
11340 _ACEOF
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h.  */
11344 $ac_includes_default
11345 int
11346 main ()
11347 {
11348 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
11349 test_array [0] = 0
11350
11351   ;
11352   return 0;
11353 }
11354 _ACEOF
11355 rm -f conftest.$ac_objext
11356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11357   (eval $ac_compile) 2>&5
11358   ac_status=$?
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); } &&
11361          { ac_try='test -s conftest.$ac_objext'
11362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363   (eval $ac_try) 2>&5
11364   ac_status=$?
11365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366   (exit $ac_status); }; }; then
11367   ac_hi=-1 ac_mid=-1
11368   while :; do
11369     cat >conftest.$ac_ext <<_ACEOF
11370 #line $LINENO "configure"
11371 /* confdefs.h.  */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h.  */
11376 $ac_includes_default
11377 int
11378 main ()
11379 {
11380 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
11381 test_array [0] = 0
11382
11383   ;
11384   return 0;
11385 }
11386 _ACEOF
11387 rm -f conftest.$ac_objext
11388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11389   (eval $ac_compile) 2>&5
11390   ac_status=$?
11391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392   (exit $ac_status); } &&
11393          { ac_try='test -s conftest.$ac_objext'
11394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395   (eval $ac_try) 2>&5
11396   ac_status=$?
11397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); }; }; then
11399   ac_lo=$ac_mid; break
11400 else
11401   echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11403
11404 ac_hi=`expr '(' $ac_mid ')' - 1`
11405                        if test $ac_mid -le $ac_hi; then
11406                          ac_lo= ac_hi=
11407                          break
11408                        fi
11409                        ac_mid=`expr 2 '*' $ac_mid`
11410 fi
11411 rm -f conftest.$ac_objext conftest.$ac_ext
11412   done
11413 else
11414   echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11416
11417 ac_lo= ac_hi=
11418 fi
11419 rm -f conftest.$ac_objext conftest.$ac_ext
11420 fi
11421 rm -f conftest.$ac_objext conftest.$ac_ext
11422 # Binary search between lo and hi bounds.
11423 while test "x$ac_lo" != "x$ac_hi"; do
11424   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11425   cat >conftest.$ac_ext <<_ACEOF
11426 #line $LINENO "configure"
11427 /* confdefs.h.  */
11428 _ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h.  */
11432 $ac_includes_default
11433 int
11434 main ()
11435 {
11436 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11437 test_array [0] = 0
11438
11439   ;
11440   return 0;
11441 }
11442 _ACEOF
11443 rm -f conftest.$ac_objext
11444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11445   (eval $ac_compile) 2>&5
11446   ac_status=$?
11447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448   (exit $ac_status); } &&
11449          { ac_try='test -s conftest.$ac_objext'
11450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451   (eval $ac_try) 2>&5
11452   ac_status=$?
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); }; }; then
11455   ac_hi=$ac_mid
11456 else
11457   echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11459
11460 ac_lo=`expr '(' $ac_mid ')' + 1`
11461 fi
11462 rm -f conftest.$ac_objext conftest.$ac_ext
11463 done
11464 case $ac_lo in
11465 ?*) ac_cv_sizeof_short=$ac_lo;;
11466 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11467 See \`config.log' for more details." >&5
11468 echo "$as_me: error: cannot compute sizeof (short), 77
11469 See \`config.log' for more details." >&2;}
11470    { (exit 1); exit 1; }; } ;;
11471 esac
11472 else
11473   if test "$cross_compiling" = yes; then
11474   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11475 See \`config.log' for more details." >&5
11476 echo "$as_me: error: cannot run test program while cross compiling
11477 See \`config.log' for more details." >&2;}
11478    { (exit 1); exit 1; }; }
11479 else
11480   cat >conftest.$ac_ext <<_ACEOF
11481 #line $LINENO "configure"
11482 /* confdefs.h.  */
11483 _ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h.  */
11487 $ac_includes_default
11488 long longval () { return (long) (sizeof (short)); }
11489 unsigned long ulongval () { return (long) (sizeof (short)); }
11490 #include <stdio.h>
11491 #include <stdlib.h>
11492 int
11493 main ()
11494 {
11495
11496   FILE *f = fopen ("conftest.val", "w");
11497   if (! f)
11498     exit (1);
11499   if (((long) (sizeof (short))) < 0)
11500     {
11501       long i = longval ();
11502       if (i != ((long) (sizeof (short))))
11503         exit (1);
11504       fprintf (f, "%ld\n", i);
11505     }
11506   else
11507     {
11508       unsigned long i = ulongval ();
11509       if (i != ((long) (sizeof (short))))
11510         exit (1);
11511       fprintf (f, "%lu\n", i);
11512     }
11513   exit (ferror (f) || fclose (f) != 0);
11514
11515   ;
11516   return 0;
11517 }
11518 _ACEOF
11519 rm -f conftest$ac_exeext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11521   (eval $ac_link) 2>&5
11522   ac_status=$?
11523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526   (eval $ac_try) 2>&5
11527   ac_status=$?
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); }; }; then
11530   ac_cv_sizeof_short=`cat conftest.val`
11531 else
11532   echo "$as_me: program exited with status $ac_status" >&5
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11535
11536 ( exit $ac_status )
11537 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11538 See \`config.log' for more details." >&5
11539 echo "$as_me: error: cannot compute sizeof (short), 77
11540 See \`config.log' for more details." >&2;}
11541    { (exit 1); exit 1; }; }
11542 fi
11543 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11544 fi
11545 fi
11546 rm -f conftest.val
11547 else
11548   ac_cv_sizeof_short=0
11549 fi
11550 fi
11551 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11552 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
11553 cat >>confdefs.h <<_ACEOF
11554 #define SIZEOF_SHORT $ac_cv_sizeof_short
11555 _ACEOF
11556
11557
11558 echo "$as_me:$LINENO: checking for int" >&5
11559 echo $ECHO_N "checking for int... $ECHO_C" >&6
11560 if test "${ac_cv_type_int+set}" = set; then
11561   echo $ECHO_N "(cached) $ECHO_C" >&6
11562 else
11563   cat >conftest.$ac_ext <<_ACEOF
11564 #line $LINENO "configure"
11565 /* confdefs.h.  */
11566 _ACEOF
11567 cat confdefs.h >>conftest.$ac_ext
11568 cat >>conftest.$ac_ext <<_ACEOF
11569 /* end confdefs.h.  */
11570 $ac_includes_default
11571 int
11572 main ()
11573 {
11574 if ((int *) 0)
11575   return 0;
11576 if (sizeof (int))
11577   return 0;
11578   ;
11579   return 0;
11580 }
11581 _ACEOF
11582 rm -f conftest.$ac_objext
11583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11584   (eval $ac_compile) 2>&5
11585   ac_status=$?
11586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587   (exit $ac_status); } &&
11588          { ac_try='test -s conftest.$ac_objext'
11589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590   (eval $ac_try) 2>&5
11591   ac_status=$?
11592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593   (exit $ac_status); }; }; then
11594   ac_cv_type_int=yes
11595 else
11596   echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11598
11599 ac_cv_type_int=no
11600 fi
11601 rm -f conftest.$ac_objext conftest.$ac_ext
11602 fi
11603 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11604 echo "${ECHO_T}$ac_cv_type_int" >&6
11605
11606 echo "$as_me:$LINENO: checking size of int" >&5
11607 echo $ECHO_N "checking size of int... $ECHO_C" >&6
11608 if test "${ac_cv_sizeof_int+set}" = set; then
11609   echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11611   if test "$ac_cv_type_int" = yes; then
11612   # The cast to unsigned long works around a bug in the HP C Compiler
11613   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11614   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11615   # This bug is HP SR number 8606223364.
11616   if test "$cross_compiling" = yes; then
11617   # Depending upon the size, compute the lo and hi bounds.
11618 cat >conftest.$ac_ext <<_ACEOF
11619 #line $LINENO "configure"
11620 /* confdefs.h.  */
11621 _ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h.  */
11625 $ac_includes_default
11626 int
11627 main ()
11628 {
11629 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
11630 test_array [0] = 0
11631
11632   ;
11633   return 0;
11634 }
11635 _ACEOF
11636 rm -f conftest.$ac_objext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11638   (eval $ac_compile) 2>&5
11639   ac_status=$?
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); } &&
11642          { ac_try='test -s conftest.$ac_objext'
11643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644   (eval $ac_try) 2>&5
11645   ac_status=$?
11646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647   (exit $ac_status); }; }; then
11648   ac_lo=0 ac_mid=0
11649   while :; do
11650     cat >conftest.$ac_ext <<_ACEOF
11651 #line $LINENO "configure"
11652 /* confdefs.h.  */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h.  */
11657 $ac_includes_default
11658 int
11659 main ()
11660 {
11661 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11662 test_array [0] = 0
11663
11664   ;
11665   return 0;
11666 }
11667 _ACEOF
11668 rm -f conftest.$ac_objext
11669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11670   (eval $ac_compile) 2>&5
11671   ac_status=$?
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); } &&
11674          { ac_try='test -s conftest.$ac_objext'
11675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676   (eval $ac_try) 2>&5
11677   ac_status=$?
11678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679   (exit $ac_status); }; }; then
11680   ac_hi=$ac_mid; break
11681 else
11682   echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11684
11685 ac_lo=`expr $ac_mid + 1`
11686                     if test $ac_lo -le $ac_mid; then
11687                       ac_lo= ac_hi=
11688                       break
11689                     fi
11690                     ac_mid=`expr 2 '*' $ac_mid + 1`
11691 fi
11692 rm -f conftest.$ac_objext conftest.$ac_ext
11693   done
11694 else
11695   echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11697
11698 cat >conftest.$ac_ext <<_ACEOF
11699 #line $LINENO "configure"
11700 /* confdefs.h.  */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h.  */
11705 $ac_includes_default
11706 int
11707 main ()
11708 {
11709 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
11710 test_array [0] = 0
11711
11712   ;
11713   return 0;
11714 }
11715 _ACEOF
11716 rm -f conftest.$ac_objext
11717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11718   (eval $ac_compile) 2>&5
11719   ac_status=$?
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); } &&
11722          { ac_try='test -s conftest.$ac_objext'
11723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724   (eval $ac_try) 2>&5
11725   ac_status=$?
11726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); }; }; then
11728   ac_hi=-1 ac_mid=-1
11729   while :; do
11730     cat >conftest.$ac_ext <<_ACEOF
11731 #line $LINENO "configure"
11732 /* confdefs.h.  */
11733 _ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h.  */
11737 $ac_includes_default
11738 int
11739 main ()
11740 {
11741 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
11742 test_array [0] = 0
11743
11744   ;
11745   return 0;
11746 }
11747 _ACEOF
11748 rm -f conftest.$ac_objext
11749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11750   (eval $ac_compile) 2>&5
11751   ac_status=$?
11752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753   (exit $ac_status); } &&
11754          { ac_try='test -s conftest.$ac_objext'
11755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756   (eval $ac_try) 2>&5
11757   ac_status=$?
11758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); }; }; then
11760   ac_lo=$ac_mid; break
11761 else
11762   echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11764
11765 ac_hi=`expr '(' $ac_mid ')' - 1`
11766                        if test $ac_mid -le $ac_hi; then
11767                          ac_lo= ac_hi=
11768                          break
11769                        fi
11770                        ac_mid=`expr 2 '*' $ac_mid`
11771 fi
11772 rm -f conftest.$ac_objext conftest.$ac_ext
11773   done
11774 else
11775   echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11777
11778 ac_lo= ac_hi=
11779 fi
11780 rm -f conftest.$ac_objext conftest.$ac_ext
11781 fi
11782 rm -f conftest.$ac_objext conftest.$ac_ext
11783 # Binary search between lo and hi bounds.
11784 while test "x$ac_lo" != "x$ac_hi"; do
11785   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11786   cat >conftest.$ac_ext <<_ACEOF
11787 #line $LINENO "configure"
11788 /* confdefs.h.  */
11789 _ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h.  */
11793 $ac_includes_default
11794 int
11795 main ()
11796 {
11797 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11798 test_array [0] = 0
11799
11800   ;
11801   return 0;
11802 }
11803 _ACEOF
11804 rm -f conftest.$ac_objext
11805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11806   (eval $ac_compile) 2>&5
11807   ac_status=$?
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); } &&
11810          { ac_try='test -s conftest.$ac_objext'
11811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812   (eval $ac_try) 2>&5
11813   ac_status=$?
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); }; }; then
11816   ac_hi=$ac_mid
11817 else
11818   echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11820
11821 ac_lo=`expr '(' $ac_mid ')' + 1`
11822 fi
11823 rm -f conftest.$ac_objext conftest.$ac_ext
11824 done
11825 case $ac_lo in
11826 ?*) ac_cv_sizeof_int=$ac_lo;;
11827 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11828 See \`config.log' for more details." >&5
11829 echo "$as_me: error: cannot compute sizeof (int), 77
11830 See \`config.log' for more details." >&2;}
11831    { (exit 1); exit 1; }; } ;;
11832 esac
11833 else
11834   if test "$cross_compiling" = yes; then
11835   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11836 See \`config.log' for more details." >&5
11837 echo "$as_me: error: cannot run test program while cross compiling
11838 See \`config.log' for more details." >&2;}
11839    { (exit 1); exit 1; }; }
11840 else
11841   cat >conftest.$ac_ext <<_ACEOF
11842 #line $LINENO "configure"
11843 /* confdefs.h.  */
11844 _ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h.  */
11848 $ac_includes_default
11849 long longval () { return (long) (sizeof (int)); }
11850 unsigned long ulongval () { return (long) (sizeof (int)); }
11851 #include <stdio.h>
11852 #include <stdlib.h>
11853 int
11854 main ()
11855 {
11856
11857   FILE *f = fopen ("conftest.val", "w");
11858   if (! f)
11859     exit (1);
11860   if (((long) (sizeof (int))) < 0)
11861     {
11862       long i = longval ();
11863       if (i != ((long) (sizeof (int))))
11864         exit (1);
11865       fprintf (f, "%ld\n", i);
11866     }
11867   else
11868     {
11869       unsigned long i = ulongval ();
11870       if (i != ((long) (sizeof (int))))
11871         exit (1);
11872       fprintf (f, "%lu\n", i);
11873     }
11874   exit (ferror (f) || fclose (f) != 0);
11875
11876   ;
11877   return 0;
11878 }
11879 _ACEOF
11880 rm -f conftest$ac_exeext
11881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11882   (eval $ac_link) 2>&5
11883   ac_status=$?
11884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887   (eval $ac_try) 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); }; }; then
11891   ac_cv_sizeof_int=`cat conftest.val`
11892 else
11893   echo "$as_me: program exited with status $ac_status" >&5
11894 echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11896
11897 ( exit $ac_status )
11898 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11899 See \`config.log' for more details." >&5
11900 echo "$as_me: error: cannot compute sizeof (int), 77
11901 See \`config.log' for more details." >&2;}
11902    { (exit 1); exit 1; }; }
11903 fi
11904 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11905 fi
11906 fi
11907 rm -f conftest.val
11908 else
11909   ac_cv_sizeof_int=0
11910 fi
11911 fi
11912 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
11913 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
11914 cat >>confdefs.h <<_ACEOF
11915 #define SIZEOF_INT $ac_cv_sizeof_int
11916 _ACEOF
11917
11918
11919 echo "$as_me:$LINENO: checking for long" >&5
11920 echo $ECHO_N "checking for long... $ECHO_C" >&6
11921 if test "${ac_cv_type_long+set}" = set; then
11922   echo $ECHO_N "(cached) $ECHO_C" >&6
11923 else
11924   cat >conftest.$ac_ext <<_ACEOF
11925 #line $LINENO "configure"
11926 /* confdefs.h.  */
11927 _ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h.  */
11931 $ac_includes_default
11932 int
11933 main ()
11934 {
11935 if ((long *) 0)
11936   return 0;
11937 if (sizeof (long))
11938   return 0;
11939   ;
11940   return 0;
11941 }
11942 _ACEOF
11943 rm -f conftest.$ac_objext
11944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11945   (eval $ac_compile) 2>&5
11946   ac_status=$?
11947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948   (exit $ac_status); } &&
11949          { ac_try='test -s conftest.$ac_objext'
11950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951   (eval $ac_try) 2>&5
11952   ac_status=$?
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); }; }; then
11955   ac_cv_type_long=yes
11956 else
11957   echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11959
11960 ac_cv_type_long=no
11961 fi
11962 rm -f conftest.$ac_objext conftest.$ac_ext
11963 fi
11964 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11965 echo "${ECHO_T}$ac_cv_type_long" >&6
11966
11967 echo "$as_me:$LINENO: checking size of long" >&5
11968 echo $ECHO_N "checking size of long... $ECHO_C" >&6
11969 if test "${ac_cv_sizeof_long+set}" = set; then
11970   echo $ECHO_N "(cached) $ECHO_C" >&6
11971 else
11972   if test "$ac_cv_type_long" = yes; then
11973   # The cast to unsigned long works around a bug in the HP C Compiler
11974   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11975   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11976   # This bug is HP SR number 8606223364.
11977   if test "$cross_compiling" = yes; then
11978   # Depending upon the size, compute the lo and hi bounds.
11979 cat >conftest.$ac_ext <<_ACEOF
11980 #line $LINENO "configure"
11981 /* confdefs.h.  */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h.  */
11986 $ac_includes_default
11987 int
11988 main ()
11989 {
11990 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
11991 test_array [0] = 0
11992
11993   ;
11994   return 0;
11995 }
11996 _ACEOF
11997 rm -f conftest.$ac_objext
11998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11999   (eval $ac_compile) 2>&5
12000   ac_status=$?
12001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002   (exit $ac_status); } &&
12003          { ac_try='test -s conftest.$ac_objext'
12004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005   (eval $ac_try) 2>&5
12006   ac_status=$?
12007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008   (exit $ac_status); }; }; then
12009   ac_lo=0 ac_mid=0
12010   while :; do
12011     cat >conftest.$ac_ext <<_ACEOF
12012 #line $LINENO "configure"
12013 /* confdefs.h.  */
12014 _ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h.  */
12018 $ac_includes_default
12019 int
12020 main ()
12021 {
12022 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12023 test_array [0] = 0
12024
12025   ;
12026   return 0;
12027 }
12028 _ACEOF
12029 rm -f conftest.$ac_objext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12031   (eval $ac_compile) 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); } &&
12035          { ac_try='test -s conftest.$ac_objext'
12036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037   (eval $ac_try) 2>&5
12038   ac_status=$?
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); }; }; then
12041   ac_hi=$ac_mid; break
12042 else
12043   echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12045
12046 ac_lo=`expr $ac_mid + 1`
12047                     if test $ac_lo -le $ac_mid; then
12048                       ac_lo= ac_hi=
12049                       break
12050                     fi
12051                     ac_mid=`expr 2 '*' $ac_mid + 1`
12052 fi
12053 rm -f conftest.$ac_objext conftest.$ac_ext
12054   done
12055 else
12056   echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12058
12059 cat >conftest.$ac_ext <<_ACEOF
12060 #line $LINENO "configure"
12061 /* confdefs.h.  */
12062 _ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h.  */
12066 $ac_includes_default
12067 int
12068 main ()
12069 {
12070 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12071 test_array [0] = 0
12072
12073   ;
12074   return 0;
12075 }
12076 _ACEOF
12077 rm -f conftest.$ac_objext
12078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12079   (eval $ac_compile) 2>&5
12080   ac_status=$?
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); } &&
12083          { ac_try='test -s conftest.$ac_objext'
12084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085   (eval $ac_try) 2>&5
12086   ac_status=$?
12087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088   (exit $ac_status); }; }; then
12089   ac_hi=-1 ac_mid=-1
12090   while :; do
12091     cat >conftest.$ac_ext <<_ACEOF
12092 #line $LINENO "configure"
12093 /* confdefs.h.  */
12094 _ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h.  */
12098 $ac_includes_default
12099 int
12100 main ()
12101 {
12102 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12103 test_array [0] = 0
12104
12105   ;
12106   return 0;
12107 }
12108 _ACEOF
12109 rm -f conftest.$ac_objext
12110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12111   (eval $ac_compile) 2>&5
12112   ac_status=$?
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); } &&
12115          { ac_try='test -s conftest.$ac_objext'
12116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117   (eval $ac_try) 2>&5
12118   ac_status=$?
12119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120   (exit $ac_status); }; }; then
12121   ac_lo=$ac_mid; break
12122 else
12123   echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12125
12126 ac_hi=`expr '(' $ac_mid ')' - 1`
12127                        if test $ac_mid -le $ac_hi; then
12128                          ac_lo= ac_hi=
12129                          break
12130                        fi
12131                        ac_mid=`expr 2 '*' $ac_mid`
12132 fi
12133 rm -f conftest.$ac_objext conftest.$ac_ext
12134   done
12135 else
12136   echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12138
12139 ac_lo= ac_hi=
12140 fi
12141 rm -f conftest.$ac_objext conftest.$ac_ext
12142 fi
12143 rm -f conftest.$ac_objext conftest.$ac_ext
12144 # Binary search between lo and hi bounds.
12145 while test "x$ac_lo" != "x$ac_hi"; do
12146   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12147   cat >conftest.$ac_ext <<_ACEOF
12148 #line $LINENO "configure"
12149 /* confdefs.h.  */
12150 _ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h.  */
12154 $ac_includes_default
12155 int
12156 main ()
12157 {
12158 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12159 test_array [0] = 0
12160
12161   ;
12162   return 0;
12163 }
12164 _ACEOF
12165 rm -f conftest.$ac_objext
12166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12167   (eval $ac_compile) 2>&5
12168   ac_status=$?
12169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170   (exit $ac_status); } &&
12171          { ac_try='test -s conftest.$ac_objext'
12172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173   (eval $ac_try) 2>&5
12174   ac_status=$?
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); }; }; then
12177   ac_hi=$ac_mid
12178 else
12179   echo "$as_me: failed program was:" >&5
12180 sed 's/^/| /' conftest.$ac_ext >&5
12181
12182 ac_lo=`expr '(' $ac_mid ')' + 1`
12183 fi
12184 rm -f conftest.$ac_objext conftest.$ac_ext
12185 done
12186 case $ac_lo in
12187 ?*) ac_cv_sizeof_long=$ac_lo;;
12188 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12189 See \`config.log' for more details." >&5
12190 echo "$as_me: error: cannot compute sizeof (long), 77
12191 See \`config.log' for more details." >&2;}
12192    { (exit 1); exit 1; }; } ;;
12193 esac
12194 else
12195   if test "$cross_compiling" = yes; then
12196   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12197 See \`config.log' for more details." >&5
12198 echo "$as_me: error: cannot run test program while cross compiling
12199 See \`config.log' for more details." >&2;}
12200    { (exit 1); exit 1; }; }
12201 else
12202   cat >conftest.$ac_ext <<_ACEOF
12203 #line $LINENO "configure"
12204 /* confdefs.h.  */
12205 _ACEOF
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h.  */
12209 $ac_includes_default
12210 long longval () { return (long) (sizeof (long)); }
12211 unsigned long ulongval () { return (long) (sizeof (long)); }
12212 #include <stdio.h>
12213 #include <stdlib.h>
12214 int
12215 main ()
12216 {
12217
12218   FILE *f = fopen ("conftest.val", "w");
12219   if (! f)
12220     exit (1);
12221   if (((long) (sizeof (long))) < 0)
12222     {
12223       long i = longval ();
12224       if (i != ((long) (sizeof (long))))
12225         exit (1);
12226       fprintf (f, "%ld\n", i);
12227     }
12228   else
12229     {
12230       unsigned long i = ulongval ();
12231       if (i != ((long) (sizeof (long))))
12232         exit (1);
12233       fprintf (f, "%lu\n", i);
12234     }
12235   exit (ferror (f) || fclose (f) != 0);
12236
12237   ;
12238   return 0;
12239 }
12240 _ACEOF
12241 rm -f conftest$ac_exeext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12243   (eval $ac_link) 2>&5
12244   ac_status=$?
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248   (eval $ac_try) 2>&5
12249   ac_status=$?
12250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251   (exit $ac_status); }; }; then
12252   ac_cv_sizeof_long=`cat conftest.val`
12253 else
12254   echo "$as_me: program exited with status $ac_status" >&5
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12257
12258 ( exit $ac_status )
12259 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12260 See \`config.log' for more details." >&5
12261 echo "$as_me: error: cannot compute sizeof (long), 77
12262 See \`config.log' for more details." >&2;}
12263    { (exit 1); exit 1; }; }
12264 fi
12265 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12266 fi
12267 fi
12268 rm -f conftest.val
12269 else
12270   ac_cv_sizeof_long=0
12271 fi
12272 fi
12273 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12274 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12275 cat >>confdefs.h <<_ACEOF
12276 #define SIZEOF_LONG $ac_cv_sizeof_long
12277 _ACEOF
12278
12279
12280 echo "$as_me:$LINENO: checking for long long" >&5
12281 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12282 if test "${ac_cv_type_long_long+set}" = set; then
12283   echo $ECHO_N "(cached) $ECHO_C" >&6
12284 else
12285   cat >conftest.$ac_ext <<_ACEOF
12286 #line $LINENO "configure"
12287 /* confdefs.h.  */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h.  */
12292 $ac_includes_default
12293 int
12294 main ()
12295 {
12296 if ((long long *) 0)
12297   return 0;
12298 if (sizeof (long long))
12299   return 0;
12300   ;
12301   return 0;
12302 }
12303 _ACEOF
12304 rm -f conftest.$ac_objext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12306   (eval $ac_compile) 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); } &&
12310          { ac_try='test -s conftest.$ac_objext'
12311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312   (eval $ac_try) 2>&5
12313   ac_status=$?
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); }; }; then
12316   ac_cv_type_long_long=yes
12317 else
12318   echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12320
12321 ac_cv_type_long_long=no
12322 fi
12323 rm -f conftest.$ac_objext conftest.$ac_ext
12324 fi
12325 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12326 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12327
12328 echo "$as_me:$LINENO: checking size of long long" >&5
12329 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12330 if test "${ac_cv_sizeof_long_long+set}" = set; then
12331   echo $ECHO_N "(cached) $ECHO_C" >&6
12332 else
12333   if test "$ac_cv_type_long_long" = yes; then
12334   # The cast to unsigned long works around a bug in the HP C Compiler
12335   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12336   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12337   # This bug is HP SR number 8606223364.
12338   if test "$cross_compiling" = yes; then
12339   # Depending upon the size, compute the lo and hi bounds.
12340 cat >conftest.$ac_ext <<_ACEOF
12341 #line $LINENO "configure"
12342 /* confdefs.h.  */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h.  */
12347 $ac_includes_default
12348 int
12349 main ()
12350 {
12351 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12352 test_array [0] = 0
12353
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 rm -f conftest.$ac_objext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12360   (eval $ac_compile) 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); } &&
12364          { ac_try='test -s conftest.$ac_objext'
12365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366   (eval $ac_try) 2>&5
12367   ac_status=$?
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); }; }; then
12370   ac_lo=0 ac_mid=0
12371   while :; do
12372     cat >conftest.$ac_ext <<_ACEOF
12373 #line $LINENO "configure"
12374 /* confdefs.h.  */
12375 _ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h.  */
12379 $ac_includes_default
12380 int
12381 main ()
12382 {
12383 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12384 test_array [0] = 0
12385
12386   ;
12387   return 0;
12388 }
12389 _ACEOF
12390 rm -f conftest.$ac_objext
12391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12392   (eval $ac_compile) 2>&5
12393   ac_status=$?
12394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395   (exit $ac_status); } &&
12396          { ac_try='test -s conftest.$ac_objext'
12397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12398   (eval $ac_try) 2>&5
12399   ac_status=$?
12400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401   (exit $ac_status); }; }; then
12402   ac_hi=$ac_mid; break
12403 else
12404   echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12406
12407 ac_lo=`expr $ac_mid + 1`
12408                     if test $ac_lo -le $ac_mid; then
12409                       ac_lo= ac_hi=
12410                       break
12411                     fi
12412                     ac_mid=`expr 2 '*' $ac_mid + 1`
12413 fi
12414 rm -f conftest.$ac_objext conftest.$ac_ext
12415   done
12416 else
12417   echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12419
12420 cat >conftest.$ac_ext <<_ACEOF
12421 #line $LINENO "configure"
12422 /* confdefs.h.  */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h.  */
12427 $ac_includes_default
12428 int
12429 main ()
12430 {
12431 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12432 test_array [0] = 0
12433
12434   ;
12435   return 0;
12436 }
12437 _ACEOF
12438 rm -f conftest.$ac_objext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12440   (eval $ac_compile) 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); } &&
12444          { ac_try='test -s conftest.$ac_objext'
12445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446   (eval $ac_try) 2>&5
12447   ac_status=$?
12448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449   (exit $ac_status); }; }; then
12450   ac_hi=-1 ac_mid=-1
12451   while :; do
12452     cat >conftest.$ac_ext <<_ACEOF
12453 #line $LINENO "configure"
12454 /* confdefs.h.  */
12455 _ACEOF
12456 cat confdefs.h >>conftest.$ac_ext
12457 cat >>conftest.$ac_ext <<_ACEOF
12458 /* end confdefs.h.  */
12459 $ac_includes_default
12460 int
12461 main ()
12462 {
12463 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12464 test_array [0] = 0
12465
12466   ;
12467   return 0;
12468 }
12469 _ACEOF
12470 rm -f conftest.$ac_objext
12471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12472   (eval $ac_compile) 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); } &&
12476          { ac_try='test -s conftest.$ac_objext'
12477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478   (eval $ac_try) 2>&5
12479   ac_status=$?
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); }; }; then
12482   ac_lo=$ac_mid; break
12483 else
12484   echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12486
12487 ac_hi=`expr '(' $ac_mid ')' - 1`
12488                        if test $ac_mid -le $ac_hi; then
12489                          ac_lo= ac_hi=
12490                          break
12491                        fi
12492                        ac_mid=`expr 2 '*' $ac_mid`
12493 fi
12494 rm -f conftest.$ac_objext conftest.$ac_ext
12495   done
12496 else
12497   echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12499
12500 ac_lo= ac_hi=
12501 fi
12502 rm -f conftest.$ac_objext conftest.$ac_ext
12503 fi
12504 rm -f conftest.$ac_objext conftest.$ac_ext
12505 # Binary search between lo and hi bounds.
12506 while test "x$ac_lo" != "x$ac_hi"; do
12507   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12508   cat >conftest.$ac_ext <<_ACEOF
12509 #line $LINENO "configure"
12510 /* confdefs.h.  */
12511 _ACEOF
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h.  */
12515 $ac_includes_default
12516 int
12517 main ()
12518 {
12519 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12520 test_array [0] = 0
12521
12522   ;
12523   return 0;
12524 }
12525 _ACEOF
12526 rm -f conftest.$ac_objext
12527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12528   (eval $ac_compile) 2>&5
12529   ac_status=$?
12530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531   (exit $ac_status); } &&
12532          { ac_try='test -s conftest.$ac_objext'
12533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534   (eval $ac_try) 2>&5
12535   ac_status=$?
12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537   (exit $ac_status); }; }; then
12538   ac_hi=$ac_mid
12539 else
12540   echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12542
12543 ac_lo=`expr '(' $ac_mid ')' + 1`
12544 fi
12545 rm -f conftest.$ac_objext conftest.$ac_ext
12546 done
12547 case $ac_lo in
12548 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12549 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12550 See \`config.log' for more details." >&5
12551 echo "$as_me: error: cannot compute sizeof (long long), 77
12552 See \`config.log' for more details." >&2;}
12553    { (exit 1); exit 1; }; } ;;
12554 esac
12555 else
12556   if test "$cross_compiling" = yes; then
12557   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12558 See \`config.log' for more details." >&5
12559 echo "$as_me: error: cannot run test program while cross compiling
12560 See \`config.log' for more details." >&2;}
12561    { (exit 1); exit 1; }; }
12562 else
12563   cat >conftest.$ac_ext <<_ACEOF
12564 #line $LINENO "configure"
12565 /* confdefs.h.  */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h.  */
12570 $ac_includes_default
12571 long longval () { return (long) (sizeof (long long)); }
12572 unsigned long ulongval () { return (long) (sizeof (long long)); }
12573 #include <stdio.h>
12574 #include <stdlib.h>
12575 int
12576 main ()
12577 {
12578
12579   FILE *f = fopen ("conftest.val", "w");
12580   if (! f)
12581     exit (1);
12582   if (((long) (sizeof (long long))) < 0)
12583     {
12584       long i = longval ();
12585       if (i != ((long) (sizeof (long long))))
12586         exit (1);
12587       fprintf (f, "%ld\n", i);
12588     }
12589   else
12590     {
12591       unsigned long i = ulongval ();
12592       if (i != ((long) (sizeof (long long))))
12593         exit (1);
12594       fprintf (f, "%lu\n", i);
12595     }
12596   exit (ferror (f) || fclose (f) != 0);
12597
12598   ;
12599   return 0;
12600 }
12601 _ACEOF
12602 rm -f conftest$ac_exeext
12603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12604   (eval $ac_link) 2>&5
12605   ac_status=$?
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609   (eval $ac_try) 2>&5
12610   ac_status=$?
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); }; }; then
12613   ac_cv_sizeof_long_long=`cat conftest.val`
12614 else
12615   echo "$as_me: program exited with status $ac_status" >&5
12616 echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12618
12619 ( exit $ac_status )
12620 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12621 See \`config.log' for more details." >&5
12622 echo "$as_me: error: cannot compute sizeof (long long), 77
12623 See \`config.log' for more details." >&2;}
12624    { (exit 1); exit 1; }; }
12625 fi
12626 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12627 fi
12628 fi
12629 rm -f conftest.val
12630 else
12631   ac_cv_sizeof_long_long=0
12632 fi
12633 fi
12634 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12635 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12636 cat >>confdefs.h <<_ACEOF
12637 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12638 _ACEOF
12639
12640
12641 else
12642     if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
12643         ac_cv_sizeof_char=1
12644         ac_cv_sizeof_short=2
12645         ac_cv_sizeof_int=4
12646         ac_cv_sizeof_long=4
12647         ac_cv_sizeof_long_long=4
12648     else
12649         : # FIXME
12650     fi
12651 #echo
12652 fi
12653
12654 type_name()
12655 {
12656     if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
12657         echo "char"
12658         exit
12659     fi
12660     if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
12661         echo "short"
12662         exit
12663     fi
12664     if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
12665         echo "int"
12666         exit
12667     fi
12668     if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
12669         echo "long"
12670         exit
12671     fi
12672     if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
12673         echo "long long"
12674         exit
12675     fi
12676     echo "long long"
12677 }
12678
12679 echo "$as_me:$LINENO: checking type name for byte" >&5
12680 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
12681 TYPE_BYTE=`type_name 1`
12682 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
12683 echo "${ECHO_T}$TYPE_BYTE" >&6
12684 echo "$as_me:$LINENO: checking type name for word" >&5
12685 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
12686 TYPE_WORD=`type_name 2`
12687 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
12688 echo "${ECHO_T}$TYPE_WORD" >&6
12689 echo "$as_me:$LINENO: checking type name for dword" >&5
12690 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
12691 TYPE_DWORD=`type_name 4`
12692 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
12693 echo "${ECHO_T}$TYPE_DWORD" >&6
12694 cat >>confdefs.h <<_ACEOF
12695 #define TYPE_BYTE $TYPE_BYTE
12696 _ACEOF
12697
12698 cat >>confdefs.h <<_ACEOF
12699 #define TYPE_WORD $TYPE_WORD
12700 _ACEOF
12701
12702 cat >>confdefs.h <<_ACEOF
12703 #define TYPE_DWORD $TYPE_DWORD
12704 _ACEOF
12705
12706
12707 if echo $TYPE_DWORD|grep short >/dev/null; then
12708     A="h"
12709 elif echo $TYPE_DWORD|grep long >/dev/null; then
12710     A="l"
12711 else
12712     A=""
12713 fi
12714
12715 if echo $TYPE_WORD|grep short >/dev/null; then M="h"
12716 elif echo $TYPE_WORD|grep long >/dev/null; then M="l"
12717 else M=""
12718 fi
12719
12720 cat >>confdefs.h <<_ACEOF
12721 #define _A_ "${A}"
12722 _ACEOF
12723
12724 cat >>confdefs.h <<_ACEOF
12725 #define _M_ "${M}"
12726 _ACEOF
12727
12728
12729 # *nix default: "${datadir}/sdcc/doc"
12730
12731 if test "${docdir}" = ""; then
12732     docdir="\${datadir}"/sdcc/doc
12733 fi
12734
12735
12736 # Generating output files
12737 # ===========================================================================
12738
12739                                                                                                                         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 hc08.src/Makefile xa.src/Makefile gui.src/Makefile gui.src/serio.src/Makefile doc/Makefile"
12740 cat >confcache <<\_ACEOF
12741 # This file is a shell script that caches the results of configure
12742 # tests run on this system so they can be shared between configure
12743 # scripts and configure runs, see configure's option --config-cache.
12744 # It is not useful on other systems.  If it contains results you don't
12745 # want to keep, you may remove or edit it.
12746 #
12747 # config.status only pays attention to the cache file if you give it
12748 # the --recheck option to rerun configure.
12749 #
12750 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12751 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12752 # following values.
12753
12754 _ACEOF
12755
12756 # The following way of writing the cache mishandles newlines in values,
12757 # but we know of no workaround that is simple, portable, and efficient.
12758 # So, don't put newlines in cache variables' values.
12759 # Ultrix sh set writes to stderr and can't be redirected directly,
12760 # and sets the high bit in the cache file unless we assign to the vars.
12761 {
12762   (set) 2>&1 |
12763     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12764     *ac_space=\ *)
12765       # `set' does not quote correctly, so add quotes (double-quote
12766       # substitution turns \\\\ into \\, and sed turns \\ into \).
12767       sed -n \
12768         "s/'/'\\\\''/g;
12769           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12770       ;;
12771     *)
12772       # `set' quotes correctly as required by POSIX, so do not add quotes.
12773       sed -n \
12774         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12775       ;;
12776     esac;
12777 } |
12778   sed '
12779      t clear
12780      : clear
12781      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12782      t end
12783      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12784      : end' >>confcache
12785 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12786   if test -w $cache_file; then
12787     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12788     cat confcache >$cache_file
12789   else
12790     echo "not updating unwritable cache $cache_file"
12791   fi
12792 fi
12793 rm -f confcache
12794
12795 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12796 # Let make expand exec_prefix.
12797 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12798
12799 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12800 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12801 # trailing colons and then remove the whole line if VPATH becomes empty
12802 # (actually we leave an empty line to preserve line numbers).
12803 if test "x$srcdir" = x.; then
12804   ac_vpsub='/^[         ]*VPATH[        ]*=/{
12805 s/:*\$(srcdir):*/:/;
12806 s/:*\${srcdir}:*/:/;
12807 s/:*@srcdir@:*/:/;
12808 s/^\([^=]*=[    ]*\):*/\1/;
12809 s/:*$//;
12810 s/^[^=]*=[      ]*$//;
12811 }'
12812 fi
12813
12814 DEFS=-DHAVE_CONFIG_H
12815
12816 ac_libobjs=
12817 ac_ltlibobjs=
12818 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12819   # 1. Remove the extension, and $U if already installed.
12820   ac_i=`echo "$ac_i" |
12821          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12822   # 2. Add them.
12823   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12824   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12825 done
12826 LIBOBJS=$ac_libobjs
12827
12828 LTLIBOBJS=$ac_ltlibobjs
12829
12830
12831
12832 : ${CONFIG_STATUS=./config.status}
12833 ac_clean_files_save=$ac_clean_files
12834 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12835 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12836 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12837 cat >$CONFIG_STATUS <<_ACEOF
12838 #! $SHELL
12839 # Generated by $as_me.
12840 # Run this file to recreate the current configuration.
12841 # Compiler output produced by configure, useful for debugging
12842 # configure, is in config.log if it exists.
12843
12844 debug=false
12845 ac_cs_recheck=false
12846 ac_cs_silent=false
12847 SHELL=\${CONFIG_SHELL-$SHELL}
12848 _ACEOF
12849
12850 cat >>$CONFIG_STATUS <<\_ACEOF
12851 ## --------------------- ##
12852 ## M4sh Initialization.  ##
12853 ## --------------------- ##
12854
12855 # Be Bourne compatible
12856 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12857   emulate sh
12858   NULLCMD=:
12859   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12860   # is contrary to our usage.  Disable this feature.
12861   alias -g '${1+"$@"}'='"$@"'
12862 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12863   set -o posix
12864 fi
12865
12866 # Support unset when possible.
12867 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12868   as_unset=unset
12869 else
12870   as_unset=false
12871 fi
12872
12873
12874 # Work around bugs in pre-3.0 UWIN ksh.
12875 $as_unset ENV MAIL MAILPATH
12876 PS1='$ '
12877 PS2='> '
12878 PS4='+ '
12879
12880 # NLS nuisances.
12881 for as_var in \
12882   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12883   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12884   LC_TELEPHONE LC_TIME
12885 do
12886   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
12887     eval $as_var=C; export $as_var
12888   else
12889     $as_unset $as_var
12890   fi
12891 done
12892
12893 # Required to use basename.
12894 if expr a : '\(a\)' >/dev/null 2>&1; then
12895   as_expr=expr
12896 else
12897   as_expr=false
12898 fi
12899
12900 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12901   as_basename=basename
12902 else
12903   as_basename=false
12904 fi
12905
12906
12907 # Name of the executable.
12908 as_me=`$as_basename "$0" ||
12909 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12910          X"$0" : 'X\(//\)$' \| \
12911          X"$0" : 'X\(/\)$' \| \
12912          .     : '\(.\)' 2>/dev/null ||
12913 echo X/"$0" |
12914     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12915           /^X\/\(\/\/\)$/{ s//\1/; q; }
12916           /^X\/\(\/\).*/{ s//\1/; q; }
12917           s/.*/./; q'`
12918
12919
12920 # PATH needs CR, and LINENO needs CR and PATH.
12921 # Avoid depending upon Character Ranges.
12922 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12923 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12924 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12925 as_cr_digits='0123456789'
12926 as_cr_alnum=$as_cr_Letters$as_cr_digits
12927
12928 # The user is always right.
12929 if test "${PATH_SEPARATOR+set}" != set; then
12930   echo "#! /bin/sh" >conf$$.sh
12931   echo  "exit 0"   >>conf$$.sh
12932   chmod +x conf$$.sh
12933   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12934     PATH_SEPARATOR=';'
12935   else
12936     PATH_SEPARATOR=:
12937   fi
12938   rm -f conf$$.sh
12939 fi
12940
12941
12942   as_lineno_1=$LINENO
12943   as_lineno_2=$LINENO
12944   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12945   test "x$as_lineno_1" != "x$as_lineno_2" &&
12946   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12947   # Find who we are.  Look in the path if we contain no path at all
12948   # relative or not.
12949   case $0 in
12950     *[\\/]* ) as_myself=$0 ;;
12951     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12952 for as_dir in $PATH
12953 do
12954   IFS=$as_save_IFS
12955   test -z "$as_dir" && as_dir=.
12956   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12957 done
12958
12959        ;;
12960   esac
12961   # We did not find ourselves, most probably we were run as `sh COMMAND'
12962   # in which case we are not to be found in the path.
12963   if test "x$as_myself" = x; then
12964     as_myself=$0
12965   fi
12966   if test ! -f "$as_myself"; then
12967     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12968 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12969    { (exit 1); exit 1; }; }
12970   fi
12971   case $CONFIG_SHELL in
12972   '')
12973     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12974 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12975 do
12976   IFS=$as_save_IFS
12977   test -z "$as_dir" && as_dir=.
12978   for as_base in sh bash ksh sh5; do
12979          case $as_dir in
12980          /*)
12981            if ("$as_dir/$as_base" -c '
12982   as_lineno_1=$LINENO
12983   as_lineno_2=$LINENO
12984   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12985   test "x$as_lineno_1" != "x$as_lineno_2" &&
12986   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12987              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12988              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12989              CONFIG_SHELL=$as_dir/$as_base
12990              export CONFIG_SHELL
12991              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12992            fi;;
12993          esac
12994        done
12995 done
12996 ;;
12997   esac
12998
12999   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13000   # uniformly replaced by the line number.  The first 'sed' inserts a
13001   # line-number line before each line; the second 'sed' does the real
13002   # work.  The second script uses 'N' to pair each line-number line
13003   # with the numbered line, and appends trailing '-' during
13004   # substitution so that $LINENO is not a special case at line end.
13005   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13006   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13007   sed '=' <$as_myself |
13008     sed '
13009       N
13010       s,$,-,
13011       : loop
13012       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13013       t loop
13014       s,-$,,
13015       s,^['$as_cr_digits']*\n,,
13016     ' >$as_me.lineno &&
13017   chmod +x $as_me.lineno ||
13018     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13019 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13020    { (exit 1); exit 1; }; }
13021
13022   # Don't try to exec as it changes $[0], causing all sort of problems
13023   # (the dirname of $[0] is not the place where we might find the
13024   # original and so on.  Autoconf is especially sensible to this).
13025   . ./$as_me.lineno
13026   # Exit status is that of the last command.
13027   exit
13028 }
13029
13030
13031 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13032   *c*,-n*) ECHO_N= ECHO_C='
13033 ' ECHO_T='      ' ;;
13034   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13035   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13036 esac
13037
13038 if expr a : '\(a\)' >/dev/null 2>&1; then
13039   as_expr=expr
13040 else
13041   as_expr=false
13042 fi
13043
13044 rm -f conf$$ conf$$.exe conf$$.file
13045 echo >conf$$.file
13046 if ln -s conf$$.file conf$$ 2>/dev/null; then
13047   # We could just check for DJGPP; but this test a) works b) is more generic
13048   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13049   if test -f conf$$.exe; then
13050     # Don't use ln at all; we don't have any links
13051     as_ln_s='cp -p'
13052   else
13053     as_ln_s='ln -s'
13054   fi
13055 elif ln conf$$.file conf$$ 2>/dev/null; then
13056   as_ln_s=ln
13057 else
13058   as_ln_s='cp -p'
13059 fi
13060 rm -f conf$$ conf$$.exe conf$$.file
13061
13062 if mkdir -p . 2>/dev/null; then
13063   as_mkdir_p=:
13064 else
13065   as_mkdir_p=false
13066 fi
13067
13068 as_executable_p="test -f"
13069
13070 # Sed expression to map a string onto a valid CPP name.
13071 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13072
13073 # Sed expression to map a string onto a valid variable name.
13074 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13075
13076
13077 # IFS
13078 # We need space, tab and new line, in precisely that order.
13079 as_nl='
13080 '
13081 IFS="   $as_nl"
13082
13083 # CDPATH.
13084 $as_unset CDPATH
13085
13086 exec 6>&1
13087
13088 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13089 # report actual input values of CONFIG_FILES etc. instead of their
13090 # values after options handling.  Logging --version etc. is OK.
13091 exec 5>>config.log
13092 {
13093   echo
13094   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13095 ## Running $as_me. ##
13096 _ASBOX
13097 } >&5
13098 cat >&5 <<_CSEOF
13099
13100 This file was extended by $as_me, which was
13101 generated by GNU Autoconf 2.57.  Invocation command line was
13102
13103   CONFIG_FILES    = $CONFIG_FILES
13104   CONFIG_HEADERS  = $CONFIG_HEADERS
13105   CONFIG_LINKS    = $CONFIG_LINKS
13106   CONFIG_COMMANDS = $CONFIG_COMMANDS
13107   $ $0 $@
13108
13109 _CSEOF
13110 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13111 echo >&5
13112 _ACEOF
13113
13114 # Files that config.status was made for.
13115 if test -n "$ac_config_files"; then
13116   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13117 fi
13118
13119 if test -n "$ac_config_headers"; then
13120   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13121 fi
13122
13123 if test -n "$ac_config_links"; then
13124   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13125 fi
13126
13127 if test -n "$ac_config_commands"; then
13128   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13129 fi
13130
13131 cat >>$CONFIG_STATUS <<\_ACEOF
13132
13133 ac_cs_usage="\
13134 \`$as_me' instantiates files from templates according to the
13135 current configuration.
13136
13137 Usage: $0 [OPTIONS] [FILE]...
13138
13139   -h, --help       print this help, then exit
13140   -V, --version    print version number, then exit
13141   -q, --quiet      do not print progress messages
13142   -d, --debug      don't remove temporary files
13143       --recheck    update $as_me by reconfiguring in the same conditions
13144   --file=FILE[:TEMPLATE]
13145                    instantiate the configuration file FILE
13146   --header=FILE[:TEMPLATE]
13147                    instantiate the configuration header FILE
13148
13149 Configuration files:
13150 $config_files
13151
13152 Configuration headers:
13153 $config_headers
13154
13155 Report bugs to <bug-autoconf@gnu.org>."
13156 _ACEOF
13157
13158 cat >>$CONFIG_STATUS <<_ACEOF
13159 ac_cs_version="\\
13160 config.status
13161 configured by $0, generated by GNU Autoconf 2.57,
13162   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13163
13164 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
13165 Free Software Foundation, Inc.
13166 This config.status script is free software; the Free Software Foundation
13167 gives unlimited permission to copy, distribute and modify it."
13168 srcdir=$srcdir
13169 INSTALL="$INSTALL"
13170 _ACEOF
13171
13172 cat >>$CONFIG_STATUS <<\_ACEOF
13173 # If no file are specified by the user, then we need to provide default
13174 # value.  By we need to know if files were specified by the user.
13175 ac_need_defaults=:
13176 while test $# != 0
13177 do
13178   case $1 in
13179   --*=*)
13180     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13181     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13182     ac_shift=:
13183     ;;
13184   -*)
13185     ac_option=$1
13186     ac_optarg=$2
13187     ac_shift=shift
13188     ;;
13189   *) # This is not an option, so the user has probably given explicit
13190      # arguments.
13191      ac_option=$1
13192      ac_need_defaults=false;;
13193   esac
13194
13195   case $ac_option in
13196   # Handling of the options.
13197 _ACEOF
13198 cat >>$CONFIG_STATUS <<\_ACEOF
13199   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13200     ac_cs_recheck=: ;;
13201   --version | --vers* | -V )
13202     echo "$ac_cs_version"; exit 0 ;;
13203   --he | --h)
13204     # Conflict between --help and --header
13205     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13206 Try \`$0 --help' for more information." >&5
13207 echo "$as_me: error: ambiguous option: $1
13208 Try \`$0 --help' for more information." >&2;}
13209    { (exit 1); exit 1; }; };;
13210   --help | --hel | -h )
13211     echo "$ac_cs_usage"; exit 0 ;;
13212   --debug | --d* | -d )
13213     debug=: ;;
13214   --file | --fil | --fi | --f )
13215     $ac_shift
13216     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13217     ac_need_defaults=false;;
13218   --header | --heade | --head | --hea )
13219     $ac_shift
13220     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13221     ac_need_defaults=false;;
13222   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13223   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13224     ac_cs_silent=: ;;
13225
13226   # This is an error.
13227   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13228 Try \`$0 --help' for more information." >&5
13229 echo "$as_me: error: unrecognized option: $1
13230 Try \`$0 --help' for more information." >&2;}
13231    { (exit 1); exit 1; }; } ;;
13232
13233   *) ac_config_targets="$ac_config_targets $1" ;;
13234
13235   esac
13236   shift
13237 done
13238
13239 ac_configure_extra_args=
13240
13241 if $ac_cs_silent; then
13242   exec 6>/dev/null
13243   ac_configure_extra_args="$ac_configure_extra_args --silent"
13244 fi
13245
13246 _ACEOF
13247 cat >>$CONFIG_STATUS <<_ACEOF
13248 if \$ac_cs_recheck; then
13249   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13250   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13251 fi
13252
13253 _ACEOF
13254
13255
13256
13257
13258
13259 cat >>$CONFIG_STATUS <<\_ACEOF
13260 for ac_config_target in $ac_config_targets
13261 do
13262   case "$ac_config_target" in
13263   # Handling of arguments.
13264   "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
13265   "packages.mk" ) CONFIG_FILES="$CONFIG_FILES packages.mk:packages_in.mk" ;;
13266   "sim.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES sim.src/Makefile" ;;
13267   "cmd.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd.src/Makefile" ;;
13268   "s51.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES s51.src/Makefile" ;;
13269   "avr.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES avr.src/Makefile" ;;
13270   "z80.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES z80.src/Makefile" ;;
13271   "hc08.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES hc08.src/Makefile" ;;
13272   "xa.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES xa.src/Makefile" ;;
13273   "gui.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui.src/Makefile" ;;
13274   "gui.src/serio.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui.src/serio.src/Makefile" ;;
13275   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13276   "ddconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ddconfig.h:ddconfig_in.h" ;;
13277   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13278 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13279    { (exit 1); exit 1; }; };;
13280   esac
13281 done
13282
13283 # If the user did not use the arguments to specify the items to instantiate,
13284 # then the envvar interface is used.  Set only those that are not.
13285 # We use the long form for the default assignment because of an extremely
13286 # bizarre bug on SunOS 4.1.3.
13287 if $ac_need_defaults; then
13288   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13289   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13290 fi
13291
13292 # Have a temporary directory for convenience.  Make it in the build tree
13293 # simply because there is no reason to put it here, and in addition,
13294 # creating and moving files from /tmp can sometimes cause problems.
13295 # Create a temporary directory, and hook for its removal unless debugging.
13296 $debug ||
13297 {
13298   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13299   trap '{ (exit 1); exit 1; }' 1 2 13 15
13300 }
13301
13302 # Create a (secure) tmp directory for tmp files.
13303
13304 {
13305   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13306   test -n "$tmp" && test -d "$tmp"
13307 }  ||
13308 {
13309   tmp=./confstat$$-$RANDOM
13310   (umask 077 && mkdir $tmp)
13311 } ||
13312 {
13313    echo "$me: cannot create a temporary directory in ." >&2
13314    { (exit 1); exit 1; }
13315 }
13316
13317 _ACEOF
13318
13319 cat >>$CONFIG_STATUS <<_ACEOF
13320
13321 #
13322 # CONFIG_FILES section.
13323 #
13324
13325 # No need to generate the scripts if there are no CONFIG_FILES.
13326 # This happens for instance when ./config.status config.h
13327 if test -n "\$CONFIG_FILES"; then
13328   # Protect against being on the right side of a sed subst in config.status.
13329   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13330    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13331 s,@SHELL@,$SHELL,;t t
13332 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13333 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13334 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13335 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13336 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13337 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13338 s,@exec_prefix@,$exec_prefix,;t t
13339 s,@prefix@,$prefix,;t t
13340 s,@program_transform_name@,$program_transform_name,;t t
13341 s,@bindir@,$bindir,;t t
13342 s,@sbindir@,$sbindir,;t t
13343 s,@libexecdir@,$libexecdir,;t t
13344 s,@datadir@,$datadir,;t t
13345 s,@sysconfdir@,$sysconfdir,;t t
13346 s,@sharedstatedir@,$sharedstatedir,;t t
13347 s,@localstatedir@,$localstatedir,;t t
13348 s,@libdir@,$libdir,;t t
13349 s,@includedir@,$includedir,;t t
13350 s,@oldincludedir@,$oldincludedir,;t t
13351 s,@infodir@,$infodir,;t t
13352 s,@mandir@,$mandir,;t t
13353 s,@build_alias@,$build_alias,;t t
13354 s,@host_alias@,$host_alias,;t t
13355 s,@target_alias@,$target_alias,;t t
13356 s,@DEFS@,$DEFS,;t t
13357 s,@ECHO_C@,$ECHO_C,;t t
13358 s,@ECHO_N@,$ECHO_N,;t t
13359 s,@ECHO_T@,$ECHO_T,;t t
13360 s,@LIBS@,$LIBS,;t t
13361 s,@AWK@,$AWK,;t t
13362 s,@VERSION@,$VERSION,;t t
13363 s,@VERSIONHI@,$VERSIONHI,;t t
13364 s,@VERSIONLO@,$VERSIONLO,;t t
13365 s,@VERSIONP@,$VERSIONP,;t t
13366 s,@enable_ucsim@,$enable_ucsim,;t t
13367 s,@enable_dlso@,$enable_dlso,;t t
13368 s,@enable_51@,$enable_51,;t t
13369 s,@enable_avr@,$enable_avr,;t t
13370 s,@enable_z80@,$enable_z80,;t t
13371 s,@enable_hc08@,$enable_hc08,;t t
13372 s,@enable_xa@,$enable_xa,;t t
13373 s,@enable_serio@,$enable_serio,;t t
13374 s,@CXX@,$CXX,;t t
13375 s,@CXXFLAGS@,$CXXFLAGS,;t t
13376 s,@LDFLAGS@,$LDFLAGS,;t t
13377 s,@CPPFLAGS@,$CPPFLAGS,;t t
13378 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13379 s,@EXEEXT@,$EXEEXT,;t t
13380 s,@OBJEXT@,$OBJEXT,;t t
13381 s,@CXXCPP@,$CXXCPP,;t t
13382 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13383 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13384 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13385 s,@RANLIB@,$RANLIB,;t t
13386 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13387 s,@STRIP@,$STRIP,;t t
13388 s,@build@,$build,;t t
13389 s,@build_cpu@,$build_cpu,;t t
13390 s,@build_vendor@,$build_vendor,;t t
13391 s,@build_os@,$build_os,;t t
13392 s,@host@,$host,;t t
13393 s,@host_cpu@,$host_cpu,;t t
13394 s,@host_vendor@,$host_vendor,;t t
13395 s,@host_os@,$host_os,;t t
13396 s,@CC@,$CC,;t t
13397 s,@CFLAGS@,$CFLAGS,;t t
13398 s,@ac_ct_CC@,$ac_ct_CC,;t t
13399 s,@LN_S@,$LN_S,;t t
13400 s,@ECHO@,$ECHO,;t t
13401 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13402 s,@CPP@,$CPP,;t t
13403 s,@EGREP@,$EGREP,;t t
13404 s,@LIBTOOL@,$LIBTOOL,;t t
13405 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
13406 s,@dl_ok@,$dl_ok,;t t
13407 s,@DL@,$DL,;t t
13408 s,@panel_ok@,$panel_ok,;t t
13409 s,@curses_ok@,$curses_ok,;t t
13410 s,@CURSES_LIBS@,$CURSES_LIBS,;t t
13411 s,@M_OR_MM@,$M_OR_MM,;t t
13412 s,@SHAREDLIB@,$SHAREDLIB,;t t
13413 s,@PICOPT@,$PICOPT,;t t
13414 s,@dlso_ok@,$dlso_ok,;t t
13415 s,@docdir@,$docdir,;t t
13416 s,@LIBOBJS@,$LIBOBJS,;t t
13417 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13418 CEOF
13419
13420 _ACEOF
13421
13422   cat >>$CONFIG_STATUS <<\_ACEOF
13423   # Split the substitutions into bite-sized pieces for seds with
13424   # small command number limits, like on Digital OSF/1 and HP-UX.
13425   ac_max_sed_lines=48
13426   ac_sed_frag=1 # Number of current file.
13427   ac_beg=1 # First line for current file.
13428   ac_end=$ac_max_sed_lines # Line after last line for current file.
13429   ac_more_lines=:
13430   ac_sed_cmds=
13431   while $ac_more_lines; do
13432     if test $ac_beg -gt 1; then
13433       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13434     else
13435       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13436     fi
13437     if test ! -s $tmp/subs.frag; then
13438       ac_more_lines=false
13439     else
13440       # The purpose of the label and of the branching condition is to
13441       # speed up the sed processing (if there are no `@' at all, there
13442       # is no need to browse any of the substitutions).
13443       # These are the two extra sed commands mentioned above.
13444       (echo ':t
13445   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13446       if test -z "$ac_sed_cmds"; then
13447         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13448       else
13449         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13450       fi
13451       ac_sed_frag=`expr $ac_sed_frag + 1`
13452       ac_beg=$ac_end
13453       ac_end=`expr $ac_end + $ac_max_sed_lines`
13454     fi
13455   done
13456   if test -z "$ac_sed_cmds"; then
13457     ac_sed_cmds=cat
13458   fi
13459 fi # test -n "$CONFIG_FILES"
13460
13461 _ACEOF
13462 cat >>$CONFIG_STATUS <<\_ACEOF
13463 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13464   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13465   case $ac_file in
13466   - | *:- | *:-:* ) # input from stdin
13467         cat >$tmp/stdin
13468         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13469         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13470   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13471         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13472   * )   ac_file_in=$ac_file.in ;;
13473   esac
13474
13475   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13476   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13477 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13478          X"$ac_file" : 'X\(//\)[^/]' \| \
13479          X"$ac_file" : 'X\(//\)$' \| \
13480          X"$ac_file" : 'X\(/\)' \| \
13481          .     : '\(.\)' 2>/dev/null ||
13482 echo X"$ac_file" |
13483     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13484           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13485           /^X\(\/\/\)$/{ s//\1/; q; }
13486           /^X\(\/\).*/{ s//\1/; q; }
13487           s/.*/./; q'`
13488   { if $as_mkdir_p; then
13489     mkdir -p "$ac_dir"
13490   else
13491     as_dir="$ac_dir"
13492     as_dirs=
13493     while test ! -d "$as_dir"; do
13494       as_dirs="$as_dir $as_dirs"
13495       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13496 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13497          X"$as_dir" : 'X\(//\)[^/]' \| \
13498          X"$as_dir" : 'X\(//\)$' \| \
13499          X"$as_dir" : 'X\(/\)' \| \
13500          .     : '\(.\)' 2>/dev/null ||
13501 echo X"$as_dir" |
13502     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13503           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13504           /^X\(\/\/\)$/{ s//\1/; q; }
13505           /^X\(\/\).*/{ s//\1/; q; }
13506           s/.*/./; q'`
13507     done
13508     test ! -n "$as_dirs" || mkdir $as_dirs
13509   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13510 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13511    { (exit 1); exit 1; }; }; }
13512
13513   ac_builddir=.
13514
13515 if test "$ac_dir" != .; then
13516   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13517   # A "../" for each directory in $ac_dir_suffix.
13518   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13519 else
13520   ac_dir_suffix= ac_top_builddir=
13521 fi
13522
13523 case $srcdir in
13524   .)  # No --srcdir option.  We are building in place.
13525     ac_srcdir=.
13526     if test -z "$ac_top_builddir"; then
13527        ac_top_srcdir=.
13528     else
13529        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13530     fi ;;
13531   [\\/]* | ?:[\\/]* )  # Absolute path.
13532     ac_srcdir=$srcdir$ac_dir_suffix;
13533     ac_top_srcdir=$srcdir ;;
13534   *) # Relative path.
13535     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13536     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13537 esac
13538 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13539 # absolute.
13540 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13541 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13542 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13543 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13544
13545
13546   case $INSTALL in
13547   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13548   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13549   esac
13550
13551   if test x"$ac_file" != x-; then
13552     { echo "$as_me:$LINENO: creating $ac_file" >&5
13553 echo "$as_me: creating $ac_file" >&6;}
13554     rm -f "$ac_file"
13555   fi
13556   # Let's still pretend it is `configure' which instantiates (i.e., don't
13557   # use $as_me), people would be surprised to read:
13558   #    /* config.h.  Generated by config.status.  */
13559   if test x"$ac_file" = x-; then
13560     configure_input=
13561   else
13562     configure_input="$ac_file.  "
13563   fi
13564   configure_input=$configure_input"Generated from `echo $ac_file_in |
13565                                      sed 's,.*/,,'` by configure."
13566
13567   # First look for the input files in the build tree, otherwise in the
13568   # src tree.
13569   ac_file_inputs=`IFS=:
13570     for f in $ac_file_in; do
13571       case $f in
13572       -) echo $tmp/stdin ;;
13573       [\\/$]*)
13574          # Absolute (can't be DOS-style, as IFS=:)
13575          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13576 echo "$as_me: error: cannot find input file: $f" >&2;}
13577    { (exit 1); exit 1; }; }
13578          echo $f;;
13579       *) # Relative
13580          if test -f "$f"; then
13581            # Build tree
13582            echo $f
13583          elif test -f "$srcdir/$f"; then
13584            # Source tree
13585            echo $srcdir/$f
13586          else
13587            # /dev/null tree
13588            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13589 echo "$as_me: error: cannot find input file: $f" >&2;}
13590    { (exit 1); exit 1; }; }
13591          fi;;
13592       esac
13593     done` || { (exit 1); exit 1; }
13594 _ACEOF
13595 cat >>$CONFIG_STATUS <<_ACEOF
13596   sed "$ac_vpsub
13597 $extrasub
13598 _ACEOF
13599 cat >>$CONFIG_STATUS <<\_ACEOF
13600 :t
13601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13602 s,@configure_input@,$configure_input,;t t
13603 s,@srcdir@,$ac_srcdir,;t t
13604 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13605 s,@top_srcdir@,$ac_top_srcdir,;t t
13606 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13607 s,@builddir@,$ac_builddir,;t t
13608 s,@abs_builddir@,$ac_abs_builddir,;t t
13609 s,@top_builddir@,$ac_top_builddir,;t t
13610 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13611 s,@INSTALL@,$ac_INSTALL,;t t
13612 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13613   rm -f $tmp/stdin
13614   if test x"$ac_file" != x-; then
13615     mv $tmp/out $ac_file
13616   else
13617     cat $tmp/out
13618     rm -f $tmp/out
13619   fi
13620
13621 done
13622 _ACEOF
13623 cat >>$CONFIG_STATUS <<\_ACEOF
13624
13625 #
13626 # CONFIG_HEADER section.
13627 #
13628
13629 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13630 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13631 #
13632 # ac_d sets the value in "#define NAME VALUE" lines.
13633 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
13634 ac_dB='[        ].*$,\1#\2'
13635 ac_dC=' '
13636 ac_dD=',;t'
13637 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13638 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13639 ac_uB='$,\1#\2define\3'
13640 ac_uC=' '
13641 ac_uD=',;t'
13642
13643 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13644   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13645   case $ac_file in
13646   - | *:- | *:-:* ) # input from stdin
13647         cat >$tmp/stdin
13648         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13649         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13650   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13651         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13652   * )   ac_file_in=$ac_file.in ;;
13653   esac
13654
13655   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13656 echo "$as_me: creating $ac_file" >&6;}
13657
13658   # First look for the input files in the build tree, otherwise in the
13659   # src tree.
13660   ac_file_inputs=`IFS=:
13661     for f in $ac_file_in; do
13662       case $f in
13663       -) echo $tmp/stdin ;;
13664       [\\/$]*)
13665          # Absolute (can't be DOS-style, as IFS=:)
13666          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13667 echo "$as_me: error: cannot find input file: $f" >&2;}
13668    { (exit 1); exit 1; }; }
13669          echo $f;;
13670       *) # Relative
13671          if test -f "$f"; then
13672            # Build tree
13673            echo $f
13674          elif test -f "$srcdir/$f"; then
13675            # Source tree
13676            echo $srcdir/$f
13677          else
13678            # /dev/null tree
13679            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13680 echo "$as_me: error: cannot find input file: $f" >&2;}
13681    { (exit 1); exit 1; }; }
13682          fi;;
13683       esac
13684     done` || { (exit 1); exit 1; }
13685   # Remove the trailing spaces.
13686   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
13687
13688 _ACEOF
13689
13690 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13691 # `conftest.undefs', that substitutes the proper values into
13692 # config.h.in to produce config.h.  The first handles `#define'
13693 # templates, and the second `#undef' templates.
13694 # And first: Protect against being on the right side of a sed subst in
13695 # config.status.  Protect against being in an unquoted here document
13696 # in config.status.
13697 rm -f conftest.defines conftest.undefs
13698 # Using a here document instead of a string reduces the quoting nightmare.
13699 # Putting comments in sed scripts is not portable.
13700 #
13701 # `end' is used to avoid that the second main sed command (meant for
13702 # 0-ary CPP macros) applies to n-ary macro definitions.
13703 # See the Autoconf documentation for `clear'.
13704 cat >confdef2sed.sed <<\_ACEOF
13705 s/[\\&,]/\\&/g
13706 s,[\\$`],\\&,g
13707 t clear
13708 : clear
13709 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13710 t end
13711 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13712 : end
13713 _ACEOF
13714 # If some macros were called several times there might be several times
13715 # the same #defines, which is useless.  Nevertheless, we may not want to
13716 # sort them, since we want the *last* AC-DEFINE to be honored.
13717 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13718 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13719 rm -f confdef2sed.sed
13720
13721 # This sed command replaces #undef with comments.  This is necessary, for
13722 # example, in the case of _POSIX_SOURCE, which is predefined and required
13723 # on some systems where configure will not decide to define it.
13724 cat >>conftest.undefs <<\_ACEOF
13725 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13726 _ACEOF
13727
13728 # Break up conftest.defines because some shells have a limit on the size
13729 # of here documents, and old seds have small limits too (100 cmds).
13730 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13731 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13732 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13733 echo '  :' >>$CONFIG_STATUS
13734 rm -f conftest.tail
13735 while grep . conftest.defines >/dev/null
13736 do
13737   # Write a limited-size here document to $tmp/defines.sed.
13738   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13739   # Speed up: don't consider the non `#define' lines.
13740   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
13741   # Work around the forget-to-reset-the-flag bug.
13742   echo 't clr' >>$CONFIG_STATUS
13743   echo ': clr' >>$CONFIG_STATUS
13744   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13745   echo 'CEOF
13746   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13747   rm -f $tmp/in
13748   mv $tmp/out $tmp/in
13749 ' >>$CONFIG_STATUS
13750   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13751   rm -f conftest.defines
13752   mv conftest.tail conftest.defines
13753 done
13754 rm -f conftest.defines
13755 echo '  fi # grep' >>$CONFIG_STATUS
13756 echo >>$CONFIG_STATUS
13757
13758 # Break up conftest.undefs because some shells have a limit on the size
13759 # of here documents, and old seds have small limits too (100 cmds).
13760 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13761 rm -f conftest.tail
13762 while grep . conftest.undefs >/dev/null
13763 do
13764   # Write a limited-size here document to $tmp/undefs.sed.
13765   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13766   # Speed up: don't consider the non `#undef'
13767   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13768   # Work around the forget-to-reset-the-flag bug.
13769   echo 't clr' >>$CONFIG_STATUS
13770   echo ': clr' >>$CONFIG_STATUS
13771   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13772   echo 'CEOF
13773   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13774   rm -f $tmp/in
13775   mv $tmp/out $tmp/in
13776 ' >>$CONFIG_STATUS
13777   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13778   rm -f conftest.undefs
13779   mv conftest.tail conftest.undefs
13780 done
13781 rm -f conftest.undefs
13782
13783 cat >>$CONFIG_STATUS <<\_ACEOF
13784   # Let's still pretend it is `configure' which instantiates (i.e., don't
13785   # use $as_me), people would be surprised to read:
13786   #    /* config.h.  Generated by config.status.  */
13787   if test x"$ac_file" = x-; then
13788     echo "/* Generated by configure.  */" >$tmp/config.h
13789   else
13790     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13791   fi
13792   cat $tmp/in >>$tmp/config.h
13793   rm -f $tmp/in
13794   if test x"$ac_file" != x-; then
13795     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13796       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13797 echo "$as_me: $ac_file is unchanged" >&6;}
13798     else
13799       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13800 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13801          X"$ac_file" : 'X\(//\)[^/]' \| \
13802          X"$ac_file" : 'X\(//\)$' \| \
13803          X"$ac_file" : 'X\(/\)' \| \
13804          .     : '\(.\)' 2>/dev/null ||
13805 echo X"$ac_file" |
13806     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13807           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13808           /^X\(\/\/\)$/{ s//\1/; q; }
13809           /^X\(\/\).*/{ s//\1/; q; }
13810           s/.*/./; q'`
13811       { if $as_mkdir_p; then
13812     mkdir -p "$ac_dir"
13813   else
13814     as_dir="$ac_dir"
13815     as_dirs=
13816     while test ! -d "$as_dir"; do
13817       as_dirs="$as_dir $as_dirs"
13818       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13819 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13820          X"$as_dir" : 'X\(//\)[^/]' \| \
13821          X"$as_dir" : 'X\(//\)$' \| \
13822          X"$as_dir" : 'X\(/\)' \| \
13823          .     : '\(.\)' 2>/dev/null ||
13824 echo X"$as_dir" |
13825     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13826           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13827           /^X\(\/\/\)$/{ s//\1/; q; }
13828           /^X\(\/\).*/{ s//\1/; q; }
13829           s/.*/./; q'`
13830     done
13831     test ! -n "$as_dirs" || mkdir $as_dirs
13832   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13833 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13834    { (exit 1); exit 1; }; }; }
13835
13836       rm -f $ac_file
13837       mv $tmp/config.h $ac_file
13838     fi
13839   else
13840     cat $tmp/config.h
13841     rm -f $tmp/config.h
13842   fi
13843 done
13844 _ACEOF
13845
13846 cat >>$CONFIG_STATUS <<\_ACEOF
13847
13848 { (exit 0); exit 0; }
13849 _ACEOF
13850 chmod +x $CONFIG_STATUS
13851 ac_clean_files=$ac_clean_files_save
13852
13853
13854 # configure is writing to config.log, and then calls config.status.
13855 # config.status does its own redirection, appending to config.log.
13856 # Unfortunately, on DOS this fails, as config.log is still kept open
13857 # by configure, so config.status won't be able to write to it; its
13858 # output is simply discarded.  So we exec the FD to /dev/null,
13859 # effectively closing config.log, so it can be properly (re)opened and
13860 # appended to by config.status.  When coming back to configure, we
13861 # need to make the FD available again.
13862 if test "$no_create" != yes; then
13863   ac_cs_success=:
13864   ac_config_status_args=
13865   test "$silent" = yes &&
13866     ac_config_status_args="$ac_config_status_args --quiet"
13867   exec 5>/dev/null
13868   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13869   exec 5>>config.log
13870   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13871   # would make configure fail if this is the last instruction.
13872   $ac_cs_success || { (exit 1); exit 1; }
13873 fi
13874
13875
13876 #gui.src/portmon.src/Makefile
13877
13878
13879 # End of configure/configure.in