* configure.in: added missing mcs51 in status output
[fw/sdcc] / sim / ucsim / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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   setopt NO_GLOB_SUBST
21 else
22   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38   echo "#! /bin/sh" >conf$$.sh
39   echo  "exit 0"   >>conf$$.sh
40   chmod +x conf$$.sh
41   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42     PATH_SEPARATOR=';'
43   else
44     PATH_SEPARATOR=:
45   fi
46   rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51   as_unset=unset
52 else
53   as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order.  Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" ""        $as_nl"
65
66 # Find who we are.  Look in the path if we contain no directory separator.
67 case $0 in
68   *[\\/]* ) as_myself=$0 ;;
69   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72   IFS=$as_save_IFS
73   test -z "$as_dir" && as_dir=.
74   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78      ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83   as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87   { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102   LC_TELEPHONE LC_TIME
103 do
104   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105     eval $as_var=C; export $as_var
106   else
107     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108   fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113    test "X`expr 00001 : '.*\(...\)'`" = X001; then
114   as_expr=expr
115 else
116   as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120   as_basename=basename
121 else
122   as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129          X"$0" : 'X\(//\)$' \| \
130          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132     sed '/^.*\/\([^/][^/]*\)\/*$/{
133             s//\1/
134             q
135           }
136           /^X\/\(\/\/\)$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\).*/{
141             s//\1/
142             q
143           }
144           s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151   if (eval ":") 2>/dev/null; then
152   as_have_required=yes
153 else
154   as_have_required=no
155 fi
156
157   if test $as_have_required = yes &&     (eval ":
158 (as_func_return () {
159   (exit \$1)
160 }
161 as_func_success () {
162   as_func_return 0
163 }
164 as_func_failure () {
165   as_func_return 1
166 }
167 as_func_ret_success () {
168   return 0
169 }
170 as_func_ret_failure () {
171   return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176   :
177 else
178   exitcode=1
179   echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183   exitcode=1
184   echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188   :
189 else
190   exitcode=1
191   echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195   exitcode=1
196   echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200   :
201 else
202   exitcode=1
203   echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209   as_lineno_1=\$LINENO
210   as_lineno_2=\$LINENO
211   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214   :
215 else
216   as_candidate_shells=
217     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   case $as_dir in
223          /*)
224            for as_base in sh bash ksh sh5; do
225              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226            done;;
227        esac
228 done
229 IFS=$as_save_IFS
230
231
232       for as_shell in $as_candidate_shells $SHELL; do
233          # Try only shells that exist, to save several forks.
234          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235                 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238   emulate sh
239   NULLCMD=:
240   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241   # is contrary to our usage.  Disable this feature.
242   alias -g '${1+"$@"}'='"$@"'
243   setopt NO_GLOB_SUBST
244 else
245   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253   CONFIG_SHELL=$as_shell
254                as_have_required=yes
255                if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258   emulate sh
259   NULLCMD=:
260   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261   # is contrary to our usage.  Disable this feature.
262   alias -g '${1+"$@"}'='"$@"'
263   setopt NO_GLOB_SUBST
264 else
265   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272   (exit $1)
273 }
274 as_func_success () {
275   as_func_return 0
276 }
277 as_func_failure () {
278   as_func_return 1
279 }
280 as_func_ret_success () {
281   return 0
282 }
283 as_func_ret_failure () {
284   return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289   :
290 else
291   exitcode=1
292   echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296   exitcode=1
297   echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301   :
302 else
303   exitcode=1
304   echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308   exitcode=1
309   echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313   :
314 else
315   exitcode=1
316   echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322   as_lineno_1=$LINENO
323   as_lineno_2=$LINENO
324   test "x$as_lineno_1" != "x$as_lineno_2" &&
325   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329   break
330 fi
331
332 fi
333
334       done
335
336       if test "x$CONFIG_SHELL" != x; then
337   for as_var in BASH_ENV ENV
338         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339         done
340         export CONFIG_SHELL
341         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345     if test $as_have_required = no; then
346   echo This script requires a shell more modern than all the
347       echo shells that I found on your system.  Please install a
348       echo modern shell, or manually run the script under such a
349       echo shell if you do have one.
350       { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361   (exit \$1)
362 }
363 as_func_success () {
364   as_func_return 0
365 }
366 as_func_failure () {
367   as_func_return 1
368 }
369 as_func_ret_success () {
370   return 0
371 }
372 as_func_ret_failure () {
373   return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378   :
379 else
380   exitcode=1
381   echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385   exitcode=1
386   echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390   :
391 else
392   exitcode=1
393   echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397   exitcode=1
398   echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402   :
403 else
404   exitcode=1
405   echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409   echo No shell found that supports shell functions.
410   echo Please tell autoconf@gnu.org about your system,
411   echo including any error possibly output before this
412   echo message
413 }
414
415
416
417   as_lineno_1=$LINENO
418   as_lineno_2=$LINENO
419   test "x$as_lineno_1" != "x$as_lineno_2" &&
420   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423   # uniformly replaced by the line number.  The first 'sed' inserts a
424   # line-number line after each line using $LINENO; the second 'sed'
425   # does the real work.  The second script uses 'N' to pair each
426   # line-number line with the line containing $LINENO, and appends
427   # trailing '-' during substitution so that $LINENO is not a special
428   # case at line end.
429   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430   # scripts with optimization help from Paolo Bonzini.  Blame Lee
431   # E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449    { (exit 1); exit 1; }; }
450
451   # Don't try to exec as it changes $[0], causing all sort of problems
452   # (the dirname of $[0] is not the place where we might find the
453   # original and so on.  Autoconf is especially sensitive to this).
454   . "./$as_me.lineno"
455   # Exit status is that of the last command.
456   exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461   as_dirname=dirname
462 else
463   as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469   case `echo 'x\c'` in
470   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
471   *)   ECHO_C='\c';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478    test "X`expr 00001 : '.*\(...\)'`" = X001; then
479   as_expr=expr
480 else
481   as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493   as_ln_s='ln -s'
494   # ... but there are two gotchas:
495   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497   # In both cases, we have to default to `cp -p'.
498   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499     as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s=ln
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p=:
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523   as_executable_p="test -x"
524 else
525   as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537 # Find the correct PATH separator.  Usually this is `:', but
538 # DJGPP uses `;' like DOS.
539 if test "X${PATH_SEPARATOR+set}" != Xset; then
540   UNAME=${UNAME-`uname 2>/dev/null`}
541   case X$UNAME in
542     *-DOS) lt_cv_sys_path_separator=';' ;;
543     *)     lt_cv_sys_path_separator=':' ;;
544   esac
545   PATH_SEPARATOR=$lt_cv_sys_path_separator
546 fi
547
548
549 # Check that we are running under the correct shell.
550 SHELL=${CONFIG_SHELL-/bin/sh}
551
552 case X$ECHO in
553 X*--fallback-echo)
554   # Remove one level of quotation (which was required for Make).
555   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
556   ;;
557 esac
558
559 echo=${ECHO-echo}
560 if test "X$1" = X--no-reexec; then
561   # Discard the --no-reexec flag, and continue.
562   shift
563 elif test "X$1" = X--fallback-echo; then
564   # Avoid inline document here, it may be left over
565   :
566 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
567   # Yippee, $echo works!
568   :
569 else
570   # Restart under the correct shell.
571   exec $SHELL "$0" --no-reexec ${1+"$@"}
572 fi
573
574 if test "X$1" = X--fallback-echo; then
575   # used as fallback echo
576   shift
577   cat <<EOF
578
579 EOF
580   exit 0
581 fi
582
583 # The HP-UX ksh and POSIX shell print the target directory to stdout
584 # if CDPATH is set.
585 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
586
587 if test -z "$ECHO"; then
588 if test "X${echo_test_string+set}" != Xset; then
589 # find a string as large as possible, as long as the shell can cope with it
590   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
591     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
592     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
593        echo_test_string="`eval $cmd`" &&
594        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
595     then
596       break
597     fi
598   done
599 fi
600
601 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
602    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
603    test "X$echo_testing_string" = "X$echo_test_string"; then
604   :
605 else
606   # The Solaris, AIX, and Digital Unix default echo programs unquote
607   # backslashes.  This makes it impossible to quote backslashes using
608   #   echo "$something" | sed 's/\\/\\\\/g'
609   #
610   # So, first we look for a working echo in the user's PATH.
611
612   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
613   for dir in $PATH /usr/ucb; do
614     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
615        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
616        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
617        test "X$echo_testing_string" = "X$echo_test_string"; then
618       echo="$dir/echo"
619       break
620     fi
621   done
622   IFS="$save_ifs"
623
624   if test "X$echo" = Xecho; then
625     # We didn't find a better echo, so look for alternatives.
626     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
627        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
628        test "X$echo_testing_string" = "X$echo_test_string"; then
629       # This shell has a builtin print -r that does the trick.
630       echo='print -r'
631     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
632          test "X$CONFIG_SHELL" != X/bin/ksh; then
633       # If we have ksh, try running configure again with it.
634       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
635       export ORIGINAL_CONFIG_SHELL
636       CONFIG_SHELL=/bin/ksh
637       export CONFIG_SHELL
638       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
639     else
640       # Try using printf.
641       echo='printf %s\n'
642       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
643          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
644          test "X$echo_testing_string" = "X$echo_test_string"; then
645         # Cool, printf works
646         :
647       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
648            test "X$echo_testing_string" = 'X\t' &&
649            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
650            test "X$echo_testing_string" = "X$echo_test_string"; then
651         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
652         export CONFIG_SHELL
653         SHELL="$CONFIG_SHELL"
654         export SHELL
655         echo="$CONFIG_SHELL $0 --fallback-echo"
656       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657            test "X$echo_testing_string" = 'X\t' &&
658            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659            test "X$echo_testing_string" = "X$echo_test_string"; then
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       else
662         # maybe with a smaller string...
663         prev=:
664
665         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
666           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
667           then
668             break
669           fi
670           prev="$cmd"
671         done
672
673         if test "$prev" != 'sed 50q "$0"'; then
674           echo_test_string=`eval $prev`
675           export echo_test_string
676           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
677         else
678           # Oops.  We lost completely, so just stick with echo.
679           echo=echo
680         fi
681       fi
682     fi
683   fi
684 fi
685 fi
686
687 # Copy echo and quote the copy suitably for passing to libtool from
688 # the Makefile, instead of quoting the original, which is used later.
689 ECHO=$echo
690 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
691    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
692 fi
693
694
695
696 exec 7<&0 </dev/null 6>&1
697
698 # Name of the host.
699 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
700 # so uname gets run too.
701 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
702
703 #
704 # Initializations.
705 #
706 ac_default_prefix=/usr/local
707 ac_clean_files=
708 ac_config_libobj_dir=.
709 LIBOBJS=
710 cross_compiling=no
711 subdirs=
712 MFLAGS=
713 MAKEFLAGS=
714 SHELL=${CONFIG_SHELL-/bin/sh}
715
716 # Identity of this package.
717 PACKAGE_NAME=
718 PACKAGE_TARNAME=
719 PACKAGE_VERSION=
720 PACKAGE_STRING=
721 PACKAGE_BUGREPORT=
722
723 ac_unique_file=".version"
724 # Factoring default headers for most tests.
725 ac_includes_default="\
726 #include <stdio.h>
727 #if HAVE_SYS_TYPES_H
728 # include <sys/types.h>
729 #endif
730 #if HAVE_SYS_STAT_H
731 # include <sys/stat.h>
732 #endif
733 #if STDC_HEADERS
734 # include <stdlib.h>
735 # include <stddef.h>
736 #else
737 # if HAVE_STDLIB_H
738 #  include <stdlib.h>
739 # endif
740 #endif
741 #if HAVE_STRING_H
742 # if !STDC_HEADERS && HAVE_MEMORY_H
743 #  include <memory.h>
744 # endif
745 # include <string.h>
746 #endif
747 #if HAVE_STRINGS_H
748 # include <strings.h>
749 #endif
750 #if HAVE_INTTYPES_H
751 # include <inttypes.h>
752 #endif
753 #if HAVE_STDINT_H
754 # include <stdint.h>
755 #endif
756 #if HAVE_UNISTD_H
757 # include <unistd.h>
758 #endif"
759
760 ac_subst_vars='SHELL
761 PATH_SEPARATOR
762 PACKAGE_NAME
763 PACKAGE_TARNAME
764 PACKAGE_VERSION
765 PACKAGE_STRING
766 PACKAGE_BUGREPORT
767 exec_prefix
768 prefix
769 program_transform_name
770 bindir
771 sbindir
772 libexecdir
773 datarootdir
774 datadir
775 sysconfdir
776 sharedstatedir
777 localstatedir
778 includedir
779 oldincludedir
780 docdir
781 infodir
782 htmldir
783 dvidir
784 pdfdir
785 psdir
786 libdir
787 localedir
788 mandir
789 DEFS
790 ECHO_C
791 ECHO_N
792 ECHO_T
793 LIBS
794 build_alias
795 host_alias
796 target_alias
797 AWK
798 VERSION
799 VERSIONHI
800 VERSIONLO
801 VERSIONP
802 enable_ucsim
803 enable_dlso
804 enable_51
805 enable_avr
806 enable_z80
807 enable_hc08
808 enable_xa
809 enable_serio
810 CXX
811 CXXFLAGS
812 LDFLAGS
813 CPPFLAGS
814 ac_ct_CXX
815 EXEEXT
816 OBJEXT
817 CXXCPP
818 INSTALL_PROGRAM
819 INSTALL_SCRIPT
820 INSTALL_DATA
821 RANLIB
822 STRIP
823 build
824 build_cpu
825 build_vendor
826 build_os
827 host
828 host_cpu
829 host_vendor
830 host_os
831 CC
832 CFLAGS
833 ac_ct_CC
834 LN_S
835 ECHO
836 CPP
837 GREP
838 EGREP
839 LIBTOOL
840 LIBTOOL_DEPS
841 LEX
842 LEXLIB
843 LEX_OUTPUT_ROOT
844 YACC
845 YFLAGS
846 BISON_PLUS_PLUS
847 WINSOCK_AVAIL
848 dl_ok
849 DL
850 panel_ok
851 curses_ok
852 CURSES_LIBS
853 M_OR_MM
854 SHAREDLIB
855 PICOPT
856 dlso_ok
857 LIBOBJS
858 LTLIBOBJS'
859 ac_subst_files=''
860       ac_precious_vars='build_alias
861 host_alias
862 target_alias
863 docdir
864 CXX
865 CXXFLAGS
866 LDFLAGS
867 CPPFLAGS
868 CCC
869 CXXCPP
870 CC
871 CFLAGS
872 CPP
873 YACC
874 YFLAGS'
875
876
877 # Initialize some variables set by options.
878 ac_init_help=
879 ac_init_version=false
880 # The variables have the same names as the options, with
881 # dashes changed to underlines.
882 cache_file=/dev/null
883 exec_prefix=NONE
884 no_create=
885 no_recursion=
886 prefix=NONE
887 program_prefix=NONE
888 program_suffix=NONE
889 program_transform_name=s,x,x,
890 silent=
891 site=
892 srcdir=
893 verbose=
894 x_includes=NONE
895 x_libraries=NONE
896
897 # Installation directory options.
898 # These are left unexpanded so users can "make install exec_prefix=/foo"
899 # and all the variables that are supposed to be based on exec_prefix
900 # by default will actually change.
901 # Use braces instead of parens because sh, perl, etc. also accept them.
902 # (The list follows the same order as the GNU Coding Standards.)
903 bindir='${exec_prefix}/bin'
904 sbindir='${exec_prefix}/sbin'
905 libexecdir='${exec_prefix}/libexec'
906 datarootdir='${prefix}/share'
907 datadir='${datarootdir}'
908 sysconfdir='${prefix}/etc'
909 sharedstatedir='${prefix}/com'
910 localstatedir='${prefix}/var'
911 includedir='${prefix}/include'
912 oldincludedir='/usr/include'
913 docdir='${datarootdir}/doc/${PACKAGE}'
914 infodir='${datarootdir}/info'
915 htmldir='${docdir}'
916 dvidir='${docdir}'
917 pdfdir='${docdir}'
918 psdir='${docdir}'
919 libdir='${exec_prefix}/lib'
920 localedir='${datarootdir}/locale'
921 mandir='${datarootdir}/man'
922
923 ac_prev=
924 ac_dashdash=
925 for ac_option
926 do
927   # If the previous option needs an argument, assign it.
928   if test -n "$ac_prev"; then
929     eval $ac_prev=\$ac_option
930     ac_prev=
931     continue
932   fi
933
934   case $ac_option in
935   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
936   *)    ac_optarg=yes ;;
937   esac
938
939   # Accept the important Cygnus configure options, so we can diagnose typos.
940
941   case $ac_dashdash$ac_option in
942   --)
943     ac_dashdash=yes ;;
944
945   -bindir | --bindir | --bindi | --bind | --bin | --bi)
946     ac_prev=bindir ;;
947   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
948     bindir=$ac_optarg ;;
949
950   -build | --build | --buil | --bui | --bu)
951     ac_prev=build_alias ;;
952   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953     build_alias=$ac_optarg ;;
954
955   -cache-file | --cache-file | --cache-fil | --cache-fi \
956   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957     ac_prev=cache_file ;;
958   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960     cache_file=$ac_optarg ;;
961
962   --config-cache | -C)
963     cache_file=config.cache ;;
964
965   -datadir | --datadir | --datadi | --datad)
966     ac_prev=datadir ;;
967   -datadir=* | --datadir=* | --datadi=* | --datad=*)
968     datadir=$ac_optarg ;;
969
970   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971   | --dataroo | --dataro | --datar)
972     ac_prev=datarootdir ;;
973   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975     datarootdir=$ac_optarg ;;
976
977   -disable-* | --disable-*)
978     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979     # Reject names that are not valid shell variable names.
980     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
981       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
982    { (exit 1); exit 1; }; }
983     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
984     eval enable_$ac_feature=no ;;
985
986   -docdir | --docdir | --docdi | --doc | --do)
987     ac_prev=docdir ;;
988   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989     docdir=$ac_optarg ;;
990
991   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992     ac_prev=dvidir ;;
993   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994     dvidir=$ac_optarg ;;
995
996   -enable-* | --enable-*)
997     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998     # Reject names that are not valid shell variable names.
999     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1000       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001    { (exit 1); exit 1; }; }
1002     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1003     eval enable_$ac_feature=\$ac_optarg ;;
1004
1005   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007   | --exec | --exe | --ex)
1008     ac_prev=exec_prefix ;;
1009   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011   | --exec=* | --exe=* | --ex=*)
1012     exec_prefix=$ac_optarg ;;
1013
1014   -gas | --gas | --ga | --g)
1015     # Obsolete; use --with-gas.
1016     with_gas=yes ;;
1017
1018   -help | --help | --hel | --he | -h)
1019     ac_init_help=long ;;
1020   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021     ac_init_help=recursive ;;
1022   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023     ac_init_help=short ;;
1024
1025   -host | --host | --hos | --ho)
1026     ac_prev=host_alias ;;
1027   -host=* | --host=* | --hos=* | --ho=*)
1028     host_alias=$ac_optarg ;;
1029
1030   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031     ac_prev=htmldir ;;
1032   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033   | --ht=*)
1034     htmldir=$ac_optarg ;;
1035
1036   -includedir | --includedir | --includedi | --included | --include \
1037   | --includ | --inclu | --incl | --inc)
1038     ac_prev=includedir ;;
1039   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040   | --includ=* | --inclu=* | --incl=* | --inc=*)
1041     includedir=$ac_optarg ;;
1042
1043   -infodir | --infodir | --infodi | --infod | --info | --inf)
1044     ac_prev=infodir ;;
1045   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046     infodir=$ac_optarg ;;
1047
1048   -libdir | --libdir | --libdi | --libd)
1049     ac_prev=libdir ;;
1050   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051     libdir=$ac_optarg ;;
1052
1053   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054   | --libexe | --libex | --libe)
1055     ac_prev=libexecdir ;;
1056   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057   | --libexe=* | --libex=* | --libe=*)
1058     libexecdir=$ac_optarg ;;
1059
1060   -localedir | --localedir | --localedi | --localed | --locale)
1061     ac_prev=localedir ;;
1062   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063     localedir=$ac_optarg ;;
1064
1065   -localstatedir | --localstatedir | --localstatedi | --localstated \
1066   | --localstate | --localstat | --localsta | --localst | --locals)
1067     ac_prev=localstatedir ;;
1068   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070     localstatedir=$ac_optarg ;;
1071
1072   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073     ac_prev=mandir ;;
1074   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075     mandir=$ac_optarg ;;
1076
1077   -nfp | --nfp | --nf)
1078     # Obsolete; use --without-fp.
1079     with_fp=no ;;
1080
1081   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082   | --no-cr | --no-c | -n)
1083     no_create=yes ;;
1084
1085   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087     no_recursion=yes ;;
1088
1089   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091   | --oldin | --oldi | --old | --ol | --o)
1092     ac_prev=oldincludedir ;;
1093   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096     oldincludedir=$ac_optarg ;;
1097
1098   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099     ac_prev=prefix ;;
1100   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101     prefix=$ac_optarg ;;
1102
1103   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104   | --program-pre | --program-pr | --program-p)
1105     ac_prev=program_prefix ;;
1106   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108     program_prefix=$ac_optarg ;;
1109
1110   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111   | --program-suf | --program-su | --program-s)
1112     ac_prev=program_suffix ;;
1113   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115     program_suffix=$ac_optarg ;;
1116
1117   -program-transform-name | --program-transform-name \
1118   | --program-transform-nam | --program-transform-na \
1119   | --program-transform-n | --program-transform- \
1120   | --program-transform | --program-transfor \
1121   | --program-transfo | --program-transf \
1122   | --program-trans | --program-tran \
1123   | --progr-tra | --program-tr | --program-t)
1124     ac_prev=program_transform_name ;;
1125   -program-transform-name=* | --program-transform-name=* \
1126   | --program-transform-nam=* | --program-transform-na=* \
1127   | --program-transform-n=* | --program-transform-=* \
1128   | --program-transform=* | --program-transfor=* \
1129   | --program-transfo=* | --program-transf=* \
1130   | --program-trans=* | --program-tran=* \
1131   | --progr-tra=* | --program-tr=* | --program-t=*)
1132     program_transform_name=$ac_optarg ;;
1133
1134   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135     ac_prev=pdfdir ;;
1136   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137     pdfdir=$ac_optarg ;;
1138
1139   -psdir | --psdir | --psdi | --psd | --ps)
1140     ac_prev=psdir ;;
1141   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142     psdir=$ac_optarg ;;
1143
1144   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145   | -silent | --silent | --silen | --sile | --sil)
1146     silent=yes ;;
1147
1148   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149     ac_prev=sbindir ;;
1150   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151   | --sbi=* | --sb=*)
1152     sbindir=$ac_optarg ;;
1153
1154   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156   | --sharedst | --shareds | --shared | --share | --shar \
1157   | --sha | --sh)
1158     ac_prev=sharedstatedir ;;
1159   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162   | --sha=* | --sh=*)
1163     sharedstatedir=$ac_optarg ;;
1164
1165   -site | --site | --sit)
1166     ac_prev=site ;;
1167   -site=* | --site=* | --sit=*)
1168     site=$ac_optarg ;;
1169
1170   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171     ac_prev=srcdir ;;
1172   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173     srcdir=$ac_optarg ;;
1174
1175   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176   | --syscon | --sysco | --sysc | --sys | --sy)
1177     ac_prev=sysconfdir ;;
1178   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180     sysconfdir=$ac_optarg ;;
1181
1182   -target | --target | --targe | --targ | --tar | --ta | --t)
1183     ac_prev=target_alias ;;
1184   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185     target_alias=$ac_optarg ;;
1186
1187   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188     verbose=yes ;;
1189
1190   -version | --version | --versio | --versi | --vers | -V)
1191     ac_init_version=: ;;
1192
1193   -with-* | --with-*)
1194     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195     # Reject names that are not valid shell variable names.
1196     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1197       { echo "$as_me: error: invalid package name: $ac_package" >&2
1198    { (exit 1); exit 1; }; }
1199     ac_package=`echo $ac_package| sed 's/-/_/g'`
1200     eval with_$ac_package=\$ac_optarg ;;
1201
1202   -without-* | --without-*)
1203     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204     # Reject names that are not valid shell variable names.
1205     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1206       { echo "$as_me: error: invalid package name: $ac_package" >&2
1207    { (exit 1); exit 1; }; }
1208     ac_package=`echo $ac_package | sed 's/-/_/g'`
1209     eval with_$ac_package=no ;;
1210
1211   --x)
1212     # Obsolete; use --with-x.
1213     with_x=yes ;;
1214
1215   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216   | --x-incl | --x-inc | --x-in | --x-i)
1217     ac_prev=x_includes ;;
1218   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220     x_includes=$ac_optarg ;;
1221
1222   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224     ac_prev=x_libraries ;;
1225   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227     x_libraries=$ac_optarg ;;
1228
1229   -*) { echo "$as_me: error: unrecognized option: $ac_option
1230 Try \`$0 --help' for more information." >&2
1231    { (exit 1); exit 1; }; }
1232     ;;
1233
1234   *=*)
1235     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236     # Reject names that are not valid shell variable names.
1237     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1238       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1239    { (exit 1); exit 1; }; }
1240     eval $ac_envvar=\$ac_optarg
1241     export $ac_envvar ;;
1242
1243   *)
1244     # FIXME: should be removed in autoconf 3.0.
1245     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249     ;;
1250
1251   esac
1252 done
1253
1254 if test -n "$ac_prev"; then
1255   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256   { echo "$as_me: error: missing argument to $ac_option" >&2
1257    { (exit 1); exit 1; }; }
1258 fi
1259
1260 # Be sure to have absolute directory names.
1261 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262                 datadir sysconfdir sharedstatedir localstatedir includedir \
1263                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264                 libdir localedir mandir
1265 do
1266   eval ac_val=\$$ac_var
1267   case $ac_val in
1268     [\\/$]* | ?:[\\/]* )  continue;;
1269     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270   esac
1271   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1272    { (exit 1); exit 1; }; }
1273 done
1274
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284   if test "x$build_alias" = x; then
1285     cross_compiling=maybe
1286     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1287     If a cross compiler is detected then cross compile mode will be used." >&2
1288   elif test "x$build_alias" != "x$host_alias"; then
1289     cross_compiling=yes
1290   fi
1291 fi
1292
1293 ac_tool_prefix=
1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296 test "$silent" = yes && exec 6>/dev/null
1297
1298
1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di=`ls -di .` &&
1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302   { echo "$as_me: error: Working directory cannot be determined" >&2
1303    { (exit 1); exit 1; }; }
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305   { echo "$as_me: error: pwd does not report name of working directory" >&2
1306    { (exit 1); exit 1; }; }
1307
1308
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311   ac_srcdir_defaulted=yes
1312   # Try the directory containing this script, then the parent directory.
1313   ac_confdir=`$as_dirname -- "$0" ||
1314 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315          X"$0" : 'X\(//\)[^/]' \| \
1316          X"$0" : 'X\(//\)$' \| \
1317          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1318 echo X"$0" |
1319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320             s//\1/
1321             q
1322           }
1323           /^X\(\/\/\)[^/].*/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\/\)$/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\).*/{
1332             s//\1/
1333             q
1334           }
1335           s/.*/./; q'`
1336   srcdir=$ac_confdir
1337   if test ! -r "$srcdir/$ac_unique_file"; then
1338     srcdir=..
1339   fi
1340 else
1341   ac_srcdir_defaulted=no
1342 fi
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1346    { (exit 1); exit 1; }; }
1347 fi
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1351    { (exit 1); exit 1; }; }
1352         pwd)`
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355   srcdir=.
1356 fi
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1360 case $srcdir in
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 esac
1363 for ac_var in $ac_precious_vars; do
1364   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365   eval ac_env_${ac_var}_value=\$${ac_var}
1366   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 done
1369
1370 #
1371 # Report the --help message.
1372 #
1373 if test "$ac_init_help" = "long"; then
1374   # Omit some internal or obsolete options to make the list less imposing.
1375   # This message is too long to be a string in the A/UX 3.1 sh.
1376   cat <<_ACEOF
1377 \`configure' configures this package to adapt to many kinds of systems.
1378
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE.  See below for descriptions of some of the useful variables.
1383
1384 Defaults for the options are specified in brackets.
1385
1386 Configuration:
1387   -h, --help              display this help and exit
1388       --help=short        display options specific to this package
1389       --help=recursive    display the short help of all the included packages
1390   -V, --version           display version information and exit
1391   -q, --quiet, --silent   do not print \`checking...' messages
1392       --cache-file=FILE   cache test results in FILE [disabled]
1393   -C, --config-cache      alias for \`--cache-file=config.cache'
1394   -n, --no-create         do not create output files
1395       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1396
1397 Installation directories:
1398   --prefix=PREFIX         install architecture-independent files in PREFIX
1399                           [$ac_default_prefix]
1400   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1401                           [PREFIX]
1402
1403 By default, \`make install' will install all the files in
1404 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1405 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406 for instance \`--prefix=\$HOME'.
1407
1408 For better control, use the options below.
1409
1410 Fine tuning of the installation directories:
1411   --bindir=DIR           user executables [EPREFIX/bin]
1412   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1413   --libexecdir=DIR       program executables [EPREFIX/libexec]
1414   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1415   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1416   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1417   --libdir=DIR           object code libraries [EPREFIX/lib]
1418   --includedir=DIR       C header files [PREFIX/include]
1419   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1420   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1421   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1422   --infodir=DIR          info documentation [DATAROOTDIR/info]
1423   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1424   --mandir=DIR           man documentation [DATAROOTDIR/man]
1425   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1426   --htmldir=DIR          html documentation [DOCDIR]
1427   --dvidir=DIR           dvi documentation [DOCDIR]
1428   --pdfdir=DIR           pdf documentation [DOCDIR]
1429   --psdir=DIR            ps documentation [DOCDIR]
1430 _ACEOF
1431
1432   cat <<\_ACEOF
1433
1434 System types:
1435   --build=BUILD     configure for building on BUILD [guessed]
1436   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441
1442   cat <<\_ACEOF
1443
1444 Optional Features:
1445   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1446   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1447   --enable-ucsim          compile ucsim frontend
1448   --enable-dlso           compile dynamically loadable shared libraries
1449   --disable-51            do not compile simulator for MCS51
1450   --disable-avr           do not compile simulator for AVR
1451   --disable-z80           do not compile simulator for Z80
1452   --disable-hc08          do not compile simulator for hc08
1453   --enable-xa             compile simulator for XA
1454   --enable-serio          compile serio GUI tool (needs curses)
1455   --enable-statistic      compile statistical features (slower simulation)
1456   --enable-shared=PKGS  build shared libraries default=yes
1457   --enable-static=PKGS  build static libraries default=yes
1458   --enable-fast-install=PKGS  optimize for fast installation default=yes
1459   --disable-libtool-lock  avoid locking (might break parallel builds)
1460
1461 Optional Packages:
1462   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1463   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1464   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1465   --with-pic              try to use only PIC/non-PIC objects default=use both
1466
1467 Some influential environment variables:
1468   docdir      documentation installation directory
1469   CXX         C++ compiler command
1470   CXXFLAGS    C++ compiler flags
1471   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1472               nonstandard directory <lib dir>
1473   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1474               you have headers in a nonstandard directory <include dir>
1475   CXXCPP      C++ preprocessor
1476   CC          C compiler command
1477   CFLAGS      C compiler flags
1478   CPP         C preprocessor
1479   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1480               the first program found out of: `bison -y', `byacc', `yacc'.
1481   YFLAGS      The list of arguments that will be passed by default to $YACC.
1482               This script will default YFLAGS to the empty string to avoid a
1483               default value of `-d' given by some make applications.
1484
1485 Use these variables to override the choices made by `configure' or to help
1486 it to find libraries and programs with nonstandard names/locations.
1487
1488 _ACEOF
1489 ac_status=$?
1490 fi
1491
1492 if test "$ac_init_help" = "recursive"; then
1493   # If there are subdirs, report their specific --help.
1494   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495     test -d "$ac_dir" || continue
1496     ac_builddir=.
1497
1498 case "$ac_dir" in
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *)
1501   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1502   # A ".." for each directory in $ac_dir_suffix.
1503   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1504   case $ac_top_builddir_sub in
1505   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507   esac ;;
1508 esac
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1513
1514 case $srcdir in
1515   .)  # We are building in place.
1516     ac_srcdir=.
1517     ac_top_srcdir=$ac_top_builddir_sub
1518     ac_abs_top_srcdir=$ac_pwd ;;
1519   [\\/]* | ?:[\\/]* )  # Absolute name.
1520     ac_srcdir=$srcdir$ac_dir_suffix;
1521     ac_top_srcdir=$srcdir
1522     ac_abs_top_srcdir=$srcdir ;;
1523   *) # Relative name.
1524     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525     ac_top_srcdir=$ac_top_build_prefix$srcdir
1526     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527 esac
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529
1530     cd "$ac_dir" || { ac_status=$?; continue; }
1531     # Check for guested configure.
1532     if test -f "$ac_srcdir/configure.gnu"; then
1533       echo &&
1534       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535     elif test -f "$ac_srcdir/configure"; then
1536       echo &&
1537       $SHELL "$ac_srcdir/configure" --help=recursive
1538     else
1539       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540     fi || ac_status=$?
1541     cd "$ac_pwd" || { ac_status=$?; break; }
1542   done
1543 fi
1544
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1547   cat <<\_ACEOF
1548 configure
1549 generated by GNU Autoconf 2.60
1550
1551 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1552 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1555 _ACEOF
1556   exit
1557 fi
1558 cat >config.log <<_ACEOF
1559 This file contains any messages produced by compilers while
1560 running configure, to aid debugging if configure makes a mistake.
1561
1562 It was created by $as_me, which was
1563 generated by GNU Autoconf 2.60.  Invocation command line was
1564
1565   $ $0 $@
1566
1567 _ACEOF
1568 exec 5>>config.log
1569 {
1570 cat <<_ASUNAME
1571 ## --------- ##
1572 ## Platform. ##
1573 ## --------- ##
1574
1575 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1576 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1577 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1578 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1579 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1580
1581 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1582 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1583
1584 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1585 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1586 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1587 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1588 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1589 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1590 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1591
1592 _ASUNAME
1593
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 for as_dir in $PATH
1596 do
1597   IFS=$as_save_IFS
1598   test -z "$as_dir" && as_dir=.
1599   echo "PATH: $as_dir"
1600 done
1601 IFS=$as_save_IFS
1602
1603 } >&5
1604
1605 cat >&5 <<_ACEOF
1606
1607
1608 ## ----------- ##
1609 ## Core tests. ##
1610 ## ----------- ##
1611
1612 _ACEOF
1613
1614
1615 # Keep a trace of the command line.
1616 # Strip out --no-create and --no-recursion so they do not pile up.
1617 # Strip out --silent because we don't want to record it for future runs.
1618 # Also quote any args containing shell meta-characters.
1619 # Make two passes to allow for proper duplicate-argument suppression.
1620 ac_configure_args=
1621 ac_configure_args0=
1622 ac_configure_args1=
1623 ac_must_keep_next=false
1624 for ac_pass in 1 2
1625 do
1626   for ac_arg
1627   do
1628     case $ac_arg in
1629     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1630     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1631     | -silent | --silent | --silen | --sile | --sil)
1632       continue ;;
1633     *\'*)
1634       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1635     esac
1636     case $ac_pass in
1637     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1638     2)
1639       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1640       if test $ac_must_keep_next = true; then
1641         ac_must_keep_next=false # Got value, back to normal.
1642       else
1643         case $ac_arg in
1644           *=* | --config-cache | -C | -disable-* | --disable-* \
1645           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1646           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1647           | -with-* | --with-* | -without-* | --without-* | --x)
1648             case "$ac_configure_args0 " in
1649               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1650             esac
1651             ;;
1652           -* ) ac_must_keep_next=true ;;
1653         esac
1654       fi
1655       ac_configure_args="$ac_configure_args '$ac_arg'"
1656       ;;
1657     esac
1658   done
1659 done
1660 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1661 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1662
1663 # When interrupted or exit'd, cleanup temporary files, and complete
1664 # config.log.  We remove comments because anyway the quotes in there
1665 # would cause problems or look ugly.
1666 # WARNING: Use '\'' to represent an apostrophe within the trap.
1667 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1668 trap 'exit_status=$?
1669   # Save into config.log some information that might help in debugging.
1670   {
1671     echo
1672
1673     cat <<\_ASBOX
1674 ## ---------------- ##
1675 ## Cache variables. ##
1676 ## ---------------- ##
1677 _ASBOX
1678     echo
1679     # The following way of writing the cache mishandles newlines in values,
1680 (
1681   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1682     eval ac_val=\$$ac_var
1683     case $ac_val in #(
1684     *${as_nl}*)
1685       case $ac_var in #(
1686       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1687 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1688       esac
1689       case $ac_var in #(
1690       _ | IFS | as_nl) ;; #(
1691       *) $as_unset $ac_var ;;
1692       esac ;;
1693     esac
1694   done
1695   (set) 2>&1 |
1696     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1697     *${as_nl}ac_space=\ *)
1698       sed -n \
1699         "s/'\''/'\''\\\\'\'''\''/g;
1700           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1701       ;; #(
1702     *)
1703       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1704       ;;
1705     esac |
1706     sort
1707 )
1708     echo
1709
1710     cat <<\_ASBOX
1711 ## ----------------- ##
1712 ## Output variables. ##
1713 ## ----------------- ##
1714 _ASBOX
1715     echo
1716     for ac_var in $ac_subst_vars
1717     do
1718       eval ac_val=\$$ac_var
1719       case $ac_val in
1720       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1721       esac
1722       echo "$ac_var='\''$ac_val'\''"
1723     done | sort
1724     echo
1725
1726     if test -n "$ac_subst_files"; then
1727       cat <<\_ASBOX
1728 ## ------------------- ##
1729 ## File substitutions. ##
1730 ## ------------------- ##
1731 _ASBOX
1732       echo
1733       for ac_var in $ac_subst_files
1734       do
1735         eval ac_val=\$$ac_var
1736         case $ac_val in
1737         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738         esac
1739         echo "$ac_var='\''$ac_val'\''"
1740       done | sort
1741       echo
1742     fi
1743
1744     if test -s confdefs.h; then
1745       cat <<\_ASBOX
1746 ## ----------- ##
1747 ## confdefs.h. ##
1748 ## ----------- ##
1749 _ASBOX
1750       echo
1751       cat confdefs.h
1752       echo
1753     fi
1754     test "$ac_signal" != 0 &&
1755       echo "$as_me: caught signal $ac_signal"
1756     echo "$as_me: exit $exit_status"
1757   } >&5
1758   rm -f core *.core core.conftest.* &&
1759     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1760     exit $exit_status
1761 ' 0
1762 for ac_signal in 1 2 13 15; do
1763   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1764 done
1765 ac_signal=0
1766
1767 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1768 rm -f -r conftest* confdefs.h
1769
1770 # Predefined preprocessor variables.
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_NAME "$PACKAGE_NAME"
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1784 _ACEOF
1785
1786
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_STRING "$PACKAGE_STRING"
1789 _ACEOF
1790
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1794 _ACEOF
1795
1796
1797 # Let the site file select an alternate cache file if it wants to.
1798 # Prefer explicitly selected file to automatically selected ones.
1799 if test -n "$CONFIG_SITE"; then
1800   set x "$CONFIG_SITE"
1801 elif test "x$prefix" != xNONE; then
1802   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1803 else
1804   set x "$ac_default_prefix/share/config.site" \
1805         "$ac_default_prefix/etc/config.site"
1806 fi
1807 shift
1808 for ac_site_file
1809 do
1810   if test -r "$ac_site_file"; then
1811     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1812 echo "$as_me: loading site script $ac_site_file" >&6;}
1813     sed 's/^/| /' "$ac_site_file" >&5
1814     . "$ac_site_file"
1815   fi
1816 done
1817
1818 if test -r "$cache_file"; then
1819   # Some versions of bash will fail to source /dev/null (special
1820   # files actually), so we avoid doing that.
1821   if test -f "$cache_file"; then
1822     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1823 echo "$as_me: loading cache $cache_file" >&6;}
1824     case $cache_file in
1825       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1826       *)                      . "./$cache_file";;
1827     esac
1828   fi
1829 else
1830   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1831 echo "$as_me: creating cache $cache_file" >&6;}
1832   >$cache_file
1833 fi
1834
1835 # Check that the precious variables saved in the cache have kept the same
1836 # value.
1837 ac_cache_corrupted=false
1838 for ac_var in $ac_precious_vars; do
1839   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1840   eval ac_new_set=\$ac_env_${ac_var}_set
1841   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1842   eval ac_new_val=\$ac_env_${ac_var}_value
1843   case $ac_old_set,$ac_new_set in
1844     set,)
1845       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1846 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1847       ac_cache_corrupted=: ;;
1848     ,set)
1849       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1850 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1851       ac_cache_corrupted=: ;;
1852     ,);;
1853     *)
1854       if test "x$ac_old_val" != "x$ac_new_val"; then
1855         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1856 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1857         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1858 echo "$as_me:   former value:  $ac_old_val" >&2;}
1859         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1860 echo "$as_me:   current value: $ac_new_val" >&2;}
1861         ac_cache_corrupted=:
1862       fi;;
1863   esac
1864   # Pass precious variables to config.status.
1865   if test "$ac_new_set" = set; then
1866     case $ac_new_val in
1867     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1868     *) ac_arg=$ac_var=$ac_new_val ;;
1869     esac
1870     case " $ac_configure_args " in
1871       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1872       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1873     esac
1874   fi
1875 done
1876 if $ac_cache_corrupted; then
1877   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1878 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1879   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1880 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1881    { (exit 1); exit 1; }; }
1882 fi
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900 ac_ext=c
1901 ac_cpp='$CPP $CPPFLAGS'
1902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1905
1906
1907 ac_config_headers="$ac_config_headers ddconfig.h:ddconfig_in.h"
1908
1909
1910 for ac_prog in gawk mawk nawk awk
1911 do
1912   # Extract the first word of "$ac_prog", so it can be a program name with args.
1913 set dummy $ac_prog; ac_word=$2
1914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1916 if test "${ac_cv_prog_AWK+set}" = set; then
1917   echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919   if test -n "$AWK"; then
1920   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1921 else
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925   IFS=$as_save_IFS
1926   test -z "$as_dir" && as_dir=.
1927   for ac_exec_ext in '' $ac_executable_extensions; do
1928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1929     ac_cv_prog_AWK="$ac_prog"
1930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931     break 2
1932   fi
1933 done
1934 done
1935 IFS=$as_save_IFS
1936
1937 fi
1938 fi
1939 AWK=$ac_cv_prog_AWK
1940 if test -n "$AWK"; then
1941   { echo "$as_me:$LINENO: result: $AWK" >&5
1942 echo "${ECHO_T}$AWK" >&6; }
1943 else
1944   { echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6; }
1946 fi
1947
1948
1949   test -n "$AWK" && break
1950 done
1951
1952
1953 { echo "$as_me:$LINENO: checking version of the package" >&5
1954 echo $ECHO_N "checking version of the package... $ECHO_C" >&6; }
1955 if test -f ${srcdir}/.version; then
1956   VERSION=`cat ${srcdir}/.version`
1957   { echo "$as_me:$LINENO: result: $VERSION" >&5
1958 echo "${ECHO_T}$VERSION" >&6; }
1959 else
1960   VERSION="0.0.0"
1961   { echo "$as_me:$LINENO: result: unknown using 0.0.0" >&5
1962 echo "${ECHO_T}unknown using 0.0.0" >&6; }
1963 fi
1964 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1965 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1966 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1967
1968
1969
1970
1971 cat >>confdefs.h <<_ACEOF
1972 #define VERSIONSTR "${VERSION}"
1973 _ACEOF
1974
1975 cat >>confdefs.h <<_ACEOF
1976 #define VERSIONHI $VERSIONHI
1977 _ACEOF
1978
1979 cat >>confdefs.h <<_ACEOF
1980 #define VERSIONLO $VERSIONLO
1981 _ACEOF
1982
1983 cat >>confdefs.h <<_ACEOF
1984 #define VERSIONP $VERSIONP
1985 _ACEOF
1986
1987
1988 # Some options
1989 #==============
1990 # *nix default: "${datadir}/sdcc/doc"
1991
1992 if test "${docdir}" = ""; then
1993     docdir="\${datadir}"/sdcc/doc
1994 fi
1995
1996
1997 # Check whether --enable-ucsim was given.
1998 if test "${enable_ucsim+set}" = set; then
1999   enableval=$enable_ucsim; if test $enable_ucsim != "no"; then
2000     enable_ucsim="yes"
2001 fi
2002 else
2003   #default
2004 enable_ucsim="no"
2005 fi
2006
2007 # Check whether --enable-dlso was given.
2008 if test "${enable_dlso+set}" = set; then
2009   enableval=$enable_dlso; if test $enable_dlso != "no"; then
2010     enable_dlso="yes"
2011 fi
2012 else
2013   enable_dlso="no"
2014 fi
2015
2016 # Check whether --enable-51 was given.
2017 if test "${enable_51+set}" = set; then
2018   enableval=$enable_51; if test $enable_51 != "no"; then
2019     enable_51="yes"
2020 fi
2021 else
2022   enable_51="yes"
2023 fi
2024
2025 # Check whether --enable-avr was given.
2026 if test "${enable_avr+set}" = set; then
2027   enableval=$enable_avr; if test $enable_avr != "no"; then
2028     enable_avr="yes"
2029 fi
2030 else
2031   enable_avr="yes"
2032 fi
2033
2034 # Check whether --enable-z80 was given.
2035 if test "${enable_z80+set}" = set; then
2036   enableval=$enable_z80; if test $enable_z80 != "no"; then
2037     enable_z80="yes"
2038 fi
2039 else
2040   enable_z80="yes"
2041 fi
2042
2043 # Check whether --enable-hc08 was given.
2044 if test "${enable_hc08+set}" = set; then
2045   enableval=$enable_hc08; if test $enable_hc08 != "no"; then
2046     enable_hc08="yes"
2047 fi
2048 else
2049   enable_hc08="yes"
2050 fi
2051
2052 # Check whether --enable-xa was given.
2053 if test "${enable_xa+set}" = set; then
2054   enableval=$enable_xa; if test $enable_xa != "no"; then
2055     enable_xa="yes"
2056 fi
2057 else
2058   enable_xa="no"
2059 fi
2060
2061 # Check whether --enable-portmon was given.
2062 if test "${enable_portmon+set}" = set; then
2063   enableval=$enable_portmon; if test $enable_serio != "no"; then
2064     enable_serio="yes"
2065 fi
2066 else
2067   enable_serio="no"
2068 fi
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079 # Check whether --enable-statistic was given.
2080 if test "${enable_statistic+set}" = set; then
2081   enableval=$enable_statistic; if test $enable_statistic != "no"; then
2082    enable_statistic="yes"
2083 fi
2084 else
2085   enable_statistic="no"
2086 fi
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define STATISTIC $enable_statistic
2090 _ACEOF
2091
2092
2093
2094 # Required programs
2095 #-------------------
2096 ac_ext=cpp
2097 ac_cpp='$CXXCPP $CPPFLAGS'
2098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2101 if test -z "$CXX"; then
2102   if test -n "$CCC"; then
2103     CXX=$CCC
2104   else
2105     if test -n "$ac_tool_prefix"; then
2106   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2107   do
2108     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112 if test "${ac_cv_prog_CXX+set}" = set; then
2113   echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115   if test -n "$CXX"; then
2116   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2117 else
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2120 do
2121   IFS=$as_save_IFS
2122   test -z "$as_dir" && as_dir=.
2123   for ac_exec_ext in '' $ac_executable_extensions; do
2124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2125     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127     break 2
2128   fi
2129 done
2130 done
2131 IFS=$as_save_IFS
2132
2133 fi
2134 fi
2135 CXX=$ac_cv_prog_CXX
2136 if test -n "$CXX"; then
2137   { echo "$as_me:$LINENO: result: $CXX" >&5
2138 echo "${ECHO_T}$CXX" >&6; }
2139 else
2140   { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2142 fi
2143
2144
2145     test -n "$CXX" && break
2146   done
2147 fi
2148 if test -z "$CXX"; then
2149   ac_ct_CXX=$CXX
2150   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2151 do
2152   # Extract the first word of "$ac_prog", so it can be a program name with args.
2153 set dummy $ac_prog; ac_word=$2
2154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2156 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2157   echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159   if test -n "$ac_ct_CXX"; then
2160   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2161 else
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH
2164 do
2165   IFS=$as_save_IFS
2166   test -z "$as_dir" && as_dir=.
2167   for ac_exec_ext in '' $ac_executable_extensions; do
2168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2169     ac_cv_prog_ac_ct_CXX="$ac_prog"
2170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171     break 2
2172   fi
2173 done
2174 done
2175 IFS=$as_save_IFS
2176
2177 fi
2178 fi
2179 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2180 if test -n "$ac_ct_CXX"; then
2181   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2182 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2183 else
2184   { echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6; }
2186 fi
2187
2188
2189   test -n "$ac_ct_CXX" && break
2190 done
2191
2192   if test "x$ac_ct_CXX" = x; then
2193     CXX="g++"
2194   else
2195     case $cross_compiling:$ac_tool_warned in
2196 yes:)
2197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2198 whose name does not start with the host triplet.  If you think this
2199 configuration is useful to you, please write to autoconf@gnu.org." >&5
2200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2201 whose name does not start with the host triplet.  If you think this
2202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2203 ac_tool_warned=yes ;;
2204 esac
2205     CXX=$ac_ct_CXX
2206   fi
2207 fi
2208
2209   fi
2210 fi
2211 # Provide some information about the compiler.
2212 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2213 ac_compiler=`set X $ac_compile; echo $2`
2214 { (ac_try="$ac_compiler --version >&5"
2215 case "(($ac_try" in
2216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217   *) ac_try_echo=$ac_try;;
2218 esac
2219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2220   (eval "$ac_compiler --version >&5") 2>&5
2221   ac_status=$?
2222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223   (exit $ac_status); }
2224 { (ac_try="$ac_compiler -v >&5"
2225 case "(($ac_try" in
2226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227   *) ac_try_echo=$ac_try;;
2228 esac
2229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2230   (eval "$ac_compiler -v >&5") 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }
2234 { (ac_try="$ac_compiler -V >&5"
2235 case "(($ac_try" in
2236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237   *) ac_try_echo=$ac_try;;
2238 esac
2239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2240   (eval "$ac_compiler -V >&5") 2>&5
2241   ac_status=$?
2242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243   (exit $ac_status); }
2244
2245 cat >conftest.$ac_ext <<_ACEOF
2246 /* confdefs.h.  */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h.  */
2251
2252 int
2253 main ()
2254 {
2255
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 ac_clean_files_save=$ac_clean_files
2261 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2262 # Try to create an executable without -o first, disregard a.out.
2263 # It will help us diagnose broken compilers, and finding out an intuition
2264 # of exeext.
2265 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2266 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2267 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2268 #
2269 # List of possible output files, starting from the most likely.
2270 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2271 # only as a last resort.  b.out is created by i960 compilers.
2272 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2273 #
2274 # The IRIX 6 linker writes into existing files which may not be
2275 # executable, retaining their permissions.  Remove them first so a
2276 # subsequent execution test works.
2277 ac_rmfiles=
2278 for ac_file in $ac_files
2279 do
2280   case $ac_file in
2281     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2282     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2283   esac
2284 done
2285 rm -f $ac_rmfiles
2286
2287 if { (ac_try="$ac_link_default"
2288 case "(($ac_try" in
2289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2290   *) ac_try_echo=$ac_try;;
2291 esac
2292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2293   (eval "$ac_link_default") 2>&5
2294   ac_status=$?
2295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296   (exit $ac_status); }; then
2297   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2298 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2299 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2300 # so that the user can short-circuit this test for compilers unknown to
2301 # Autoconf.
2302 for ac_file in $ac_files
2303 do
2304   test -f "$ac_file" || continue
2305   case $ac_file in
2306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2307         ;;
2308     [ab].out )
2309         # We found the default executable, but exeext='' is most
2310         # certainly right.
2311         break;;
2312     *.* )
2313         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2314         then :; else
2315            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2316         fi
2317         # We set ac_cv_exeext here because the later test for it is not
2318         # safe: cross compilers may not add the suffix if given an `-o'
2319         # argument, so we may need to know it at that point already.
2320         # Even if this section looks crufty: it has the advantage of
2321         # actually working.
2322         break;;
2323     * )
2324         break;;
2325   esac
2326 done
2327 test "$ac_cv_exeext" = no && ac_cv_exeext=
2328
2329 else
2330   echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2332
2333 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: C++ compiler cannot create executables
2336 See \`config.log' for more details." >&2;}
2337    { (exit 77); exit 77; }; }
2338 fi
2339
2340 ac_exeext=$ac_cv_exeext
2341 { echo "$as_me:$LINENO: result: $ac_file" >&5
2342 echo "${ECHO_T}$ac_file" >&6; }
2343
2344 # Check that the compiler produces executables we can run.  If not, either
2345 # the compiler is broken, or we cross compile.
2346 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2347 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2348 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2349 # If not cross compiling, check that we can run a simple program.
2350 if test "$cross_compiling" != yes; then
2351   if { ac_try='./$ac_file'
2352   { (case "(($ac_try" in
2353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354   *) ac_try_echo=$ac_try;;
2355 esac
2356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2357   (eval "$ac_try") 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); }; }; then
2361     cross_compiling=no
2362   else
2363     if test "$cross_compiling" = maybe; then
2364         cross_compiling=yes
2365     else
2366         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2367 If you meant to cross compile, use \`--host'.
2368 See \`config.log' for more details." >&5
2369 echo "$as_me: error: cannot run C++ compiled programs.
2370 If you meant to cross compile, use \`--host'.
2371 See \`config.log' for more details." >&2;}
2372    { (exit 1); exit 1; }; }
2373     fi
2374   fi
2375 fi
2376 { echo "$as_me:$LINENO: result: yes" >&5
2377 echo "${ECHO_T}yes" >&6; }
2378
2379 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2380 ac_clean_files=$ac_clean_files_save
2381 # Check that the compiler produces executables we can run.  If not, either
2382 # the compiler is broken, or we cross compile.
2383 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2384 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2385 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2386 echo "${ECHO_T}$cross_compiling" >&6; }
2387
2388 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2389 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2390 if { (ac_try="$ac_link"
2391 case "(($ac_try" in
2392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393   *) ac_try_echo=$ac_try;;
2394 esac
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396   (eval "$ac_link") 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); }; then
2400   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2401 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2402 # work properly (i.e., refer to `conftest.exe'), while it won't with
2403 # `rm'.
2404 for ac_file in conftest.exe conftest conftest.*; do
2405   test -f "$ac_file" || continue
2406   case $ac_file in
2407     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2408     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2409           break;;
2410     * ) break;;
2411   esac
2412 done
2413 else
2414   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2415 See \`config.log' for more details." >&5
2416 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2417 See \`config.log' for more details." >&2;}
2418    { (exit 1); exit 1; }; }
2419 fi
2420
2421 rm -f conftest$ac_cv_exeext
2422 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2423 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2424
2425 rm -f conftest.$ac_ext
2426 EXEEXT=$ac_cv_exeext
2427 ac_exeext=$EXEEXT
2428 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2429 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2430 if test "${ac_cv_objext+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h.  */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h.  */
2439
2440 int
2441 main ()
2442 {
2443
2444   ;
2445   return 0;
2446 }
2447 _ACEOF
2448 rm -f conftest.o conftest.obj
2449 if { (ac_try="$ac_compile"
2450 case "(($ac_try" in
2451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452   *) ac_try_echo=$ac_try;;
2453 esac
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455   (eval "$ac_compile") 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }; then
2459   for ac_file in conftest.o conftest.obj conftest.*; do
2460   test -f "$ac_file" || continue;
2461   case $ac_file in
2462     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2463     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2464        break;;
2465   esac
2466 done
2467 else
2468   echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2470
2471 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2472 See \`config.log' for more details." >&5
2473 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2474 See \`config.log' for more details." >&2;}
2475    { (exit 1); exit 1; }; }
2476 fi
2477
2478 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2479 fi
2480 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2481 echo "${ECHO_T}$ac_cv_objext" >&6; }
2482 OBJEXT=$ac_cv_objext
2483 ac_objext=$OBJEXT
2484 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2485 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2486 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2487   echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489   cat >conftest.$ac_ext <<_ACEOF
2490 /* confdefs.h.  */
2491 _ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h.  */
2495
2496 int
2497 main ()
2498 {
2499 #ifndef __GNUC__
2500        choke me
2501 #endif
2502
2503   ;
2504   return 0;
2505 }
2506 _ACEOF
2507 rm -f conftest.$ac_objext
2508 if { (ac_try="$ac_compile"
2509 case "(($ac_try" in
2510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511   *) ac_try_echo=$ac_try;;
2512 esac
2513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514   (eval "$ac_compile") 2>conftest.er1
2515   ac_status=$?
2516   grep -v '^ *+' conftest.er1 >conftest.err
2517   rm -f conftest.er1
2518   cat conftest.err >&5
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); } &&
2521          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2522   { (case "(($ac_try" in
2523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524   *) ac_try_echo=$ac_try;;
2525 esac
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527   (eval "$ac_try") 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); }; } &&
2531          { ac_try='test -s conftest.$ac_objext'
2532   { (case "(($ac_try" in
2533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534   *) ac_try_echo=$ac_try;;
2535 esac
2536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2537   (eval "$ac_try") 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }; }; then
2541   ac_compiler_gnu=yes
2542 else
2543   echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2545
2546         ac_compiler_gnu=no
2547 fi
2548
2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2551
2552 fi
2553 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2554 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2555 GXX=`test $ac_compiler_gnu = yes && echo yes`
2556 ac_test_CXXFLAGS=${CXXFLAGS+set}
2557 ac_save_CXXFLAGS=$CXXFLAGS
2558 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2559 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2560 if test "${ac_cv_prog_cxx_g+set}" = set; then
2561   echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2564    ac_cxx_werror_flag=yes
2565    ac_cv_prog_cxx_g=no
2566    CXXFLAGS="-g"
2567    cat >conftest.$ac_ext <<_ACEOF
2568 /* confdefs.h.  */
2569 _ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h.  */
2573
2574 int
2575 main ()
2576 {
2577
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 rm -f conftest.$ac_objext
2583 if { (ac_try="$ac_compile"
2584 case "(($ac_try" in
2585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586   *) ac_try_echo=$ac_try;;
2587 esac
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589   (eval "$ac_compile") 2>conftest.er1
2590   ac_status=$?
2591   grep -v '^ *+' conftest.er1 >conftest.err
2592   rm -f conftest.er1
2593   cat conftest.err >&5
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); } &&
2596          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2597   { (case "(($ac_try" in
2598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599   *) ac_try_echo=$ac_try;;
2600 esac
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602   (eval "$ac_try") 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }; } &&
2606          { ac_try='test -s conftest.$ac_objext'
2607   { (case "(($ac_try" in
2608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609   *) ac_try_echo=$ac_try;;
2610 esac
2611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2612   (eval "$ac_try") 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; }; then
2616   ac_cv_prog_cxx_g=yes
2617 else
2618   echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621         CXXFLAGS=""
2622       cat >conftest.$ac_ext <<_ACEOF
2623 /* confdefs.h.  */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h.  */
2628
2629 int
2630 main ()
2631 {
2632
2633   ;
2634   return 0;
2635 }
2636 _ACEOF
2637 rm -f conftest.$ac_objext
2638 if { (ac_try="$ac_compile"
2639 case "(($ac_try" in
2640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641   *) ac_try_echo=$ac_try;;
2642 esac
2643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2644   (eval "$ac_compile") 2>conftest.er1
2645   ac_status=$?
2646   grep -v '^ *+' conftest.er1 >conftest.err
2647   rm -f conftest.er1
2648   cat conftest.err >&5
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); } &&
2651          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2652   { (case "(($ac_try" in
2653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654   *) ac_try_echo=$ac_try;;
2655 esac
2656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657   (eval "$ac_try") 2>&5
2658   ac_status=$?
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); }; } &&
2661          { ac_try='test -s conftest.$ac_objext'
2662   { (case "(($ac_try" in
2663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664   *) ac_try_echo=$ac_try;;
2665 esac
2666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667   (eval "$ac_try") 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }; }; then
2671   :
2672 else
2673   echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2675
2676         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2677          CXXFLAGS="-g"
2678          cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h.  */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h.  */
2684
2685 int
2686 main ()
2687 {
2688
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 rm -f conftest.$ac_objext
2694 if { (ac_try="$ac_compile"
2695 case "(($ac_try" in
2696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697   *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700   (eval "$ac_compile") 2>conftest.er1
2701   ac_status=$?
2702   grep -v '^ *+' conftest.er1 >conftest.err
2703   rm -f conftest.er1
2704   cat conftest.err >&5
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); } &&
2707          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2708   { (case "(($ac_try" in
2709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710   *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713   (eval "$ac_try") 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; } &&
2717          { ac_try='test -s conftest.$ac_objext'
2718   { (case "(($ac_try" in
2719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720   *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723   (eval "$ac_try") 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; }; then
2727   ac_cv_prog_cxx_g=yes
2728 else
2729   echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731
2732
2733 fi
2734
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736 fi
2737
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 fi
2740
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2743 fi
2744 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2745 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2746 if test "$ac_test_CXXFLAGS" = set; then
2747   CXXFLAGS=$ac_save_CXXFLAGS
2748 elif test $ac_cv_prog_cxx_g = yes; then
2749   if test "$GXX" = yes; then
2750     CXXFLAGS="-g -O2"
2751   else
2752     CXXFLAGS="-g"
2753   fi
2754 else
2755   if test "$GXX" = yes; then
2756     CXXFLAGS="-O2"
2757   else
2758     CXXFLAGS=
2759   fi
2760 fi
2761 ac_ext=c
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766
2767 ac_ext=cpp
2768 ac_cpp='$CXXCPP $CPPFLAGS'
2769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2772 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2773 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
2774 if test -z "$CXXCPP"; then
2775   if test "${ac_cv_prog_CXXCPP+set}" = set; then
2776   echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778       # Double quotes because CXXCPP needs to be expanded
2779     for CXXCPP in "$CXX -E" "/lib/cpp"
2780     do
2781       ac_preproc_ok=false
2782 for ac_cxx_preproc_warn_flag in '' yes
2783 do
2784   # Use a header file that comes with gcc, so configuring glibc
2785   # with a fresh cross-compiler works.
2786   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2787   # <limits.h> exists even on freestanding compilers.
2788   # On the NeXT, cc -E runs the code through the compiler's parser,
2789   # not just through cpp. "Syntax error" is here to catch this case.
2790   cat >conftest.$ac_ext <<_ACEOF
2791 /* confdefs.h.  */
2792 _ACEOF
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h.  */
2796 #ifdef __STDC__
2797 # include <limits.h>
2798 #else
2799 # include <assert.h>
2800 #endif
2801                      Syntax error
2802 _ACEOF
2803 if { (ac_try="$ac_cpp conftest.$ac_ext"
2804 case "(($ac_try" in
2805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806   *) ac_try_echo=$ac_try;;
2807 esac
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2810   ac_status=$?
2811   grep -v '^ *+' conftest.er1 >conftest.err
2812   rm -f conftest.er1
2813   cat conftest.err >&5
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); } >/dev/null; then
2816   if test -s conftest.err; then
2817     ac_cpp_err=$ac_cxx_preproc_warn_flag
2818     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2819   else
2820     ac_cpp_err=
2821   fi
2822 else
2823   ac_cpp_err=yes
2824 fi
2825 if test -z "$ac_cpp_err"; then
2826   :
2827 else
2828   echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2830
2831   # Broken: fails on valid input.
2832 continue
2833 fi
2834
2835 rm -f conftest.err conftest.$ac_ext
2836
2837   # OK, works on sane cases.  Now check whether nonexistent headers
2838   # can be detected and how.
2839   cat >conftest.$ac_ext <<_ACEOF
2840 /* confdefs.h.  */
2841 _ACEOF
2842 cat confdefs.h >>conftest.$ac_ext
2843 cat >>conftest.$ac_ext <<_ACEOF
2844 /* end confdefs.h.  */
2845 #include <ac_nonexistent.h>
2846 _ACEOF
2847 if { (ac_try="$ac_cpp conftest.$ac_ext"
2848 case "(($ac_try" in
2849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850   *) ac_try_echo=$ac_try;;
2851 esac
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2854   ac_status=$?
2855   grep -v '^ *+' conftest.er1 >conftest.err
2856   rm -f conftest.er1
2857   cat conftest.err >&5
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); } >/dev/null; then
2860   if test -s conftest.err; then
2861     ac_cpp_err=$ac_cxx_preproc_warn_flag
2862     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2863   else
2864     ac_cpp_err=
2865   fi
2866 else
2867   ac_cpp_err=yes
2868 fi
2869 if test -z "$ac_cpp_err"; then
2870   # Broken: success on invalid input.
2871 continue
2872 else
2873   echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2875
2876   # Passes both tests.
2877 ac_preproc_ok=:
2878 break
2879 fi
2880
2881 rm -f conftest.err conftest.$ac_ext
2882
2883 done
2884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2885 rm -f conftest.err conftest.$ac_ext
2886 if $ac_preproc_ok; then
2887   break
2888 fi
2889
2890     done
2891     ac_cv_prog_CXXCPP=$CXXCPP
2892
2893 fi
2894   CXXCPP=$ac_cv_prog_CXXCPP
2895 else
2896   ac_cv_prog_CXXCPP=$CXXCPP
2897 fi
2898 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
2899 echo "${ECHO_T}$CXXCPP" >&6; }
2900 ac_preproc_ok=false
2901 for ac_cxx_preproc_warn_flag in '' yes
2902 do
2903   # Use a header file that comes with gcc, so configuring glibc
2904   # with a fresh cross-compiler works.
2905   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2906   # <limits.h> exists even on freestanding compilers.
2907   # On the NeXT, cc -E runs the code through the compiler's parser,
2908   # not just through cpp. "Syntax error" is here to catch this case.
2909   cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h.  */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h.  */
2915 #ifdef __STDC__
2916 # include <limits.h>
2917 #else
2918 # include <assert.h>
2919 #endif
2920                      Syntax error
2921 _ACEOF
2922 if { (ac_try="$ac_cpp conftest.$ac_ext"
2923 case "(($ac_try" in
2924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925   *) ac_try_echo=$ac_try;;
2926 esac
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2929   ac_status=$?
2930   grep -v '^ *+' conftest.er1 >conftest.err
2931   rm -f conftest.er1
2932   cat conftest.err >&5
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); } >/dev/null; then
2935   if test -s conftest.err; then
2936     ac_cpp_err=$ac_cxx_preproc_warn_flag
2937     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2938   else
2939     ac_cpp_err=
2940   fi
2941 else
2942   ac_cpp_err=yes
2943 fi
2944 if test -z "$ac_cpp_err"; then
2945   :
2946 else
2947   echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2949
2950   # Broken: fails on valid input.
2951 continue
2952 fi
2953
2954 rm -f conftest.err conftest.$ac_ext
2955
2956   # OK, works on sane cases.  Now check whether nonexistent headers
2957   # can be detected and how.
2958   cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h.  */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h.  */
2964 #include <ac_nonexistent.h>
2965 _ACEOF
2966 if { (ac_try="$ac_cpp conftest.$ac_ext"
2967 case "(($ac_try" in
2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969   *) ac_try_echo=$ac_try;;
2970 esac
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2973   ac_status=$?
2974   grep -v '^ *+' conftest.er1 >conftest.err
2975   rm -f conftest.er1
2976   cat conftest.err >&5
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); } >/dev/null; then
2979   if test -s conftest.err; then
2980     ac_cpp_err=$ac_cxx_preproc_warn_flag
2981     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2982   else
2983     ac_cpp_err=
2984   fi
2985 else
2986   ac_cpp_err=yes
2987 fi
2988 if test -z "$ac_cpp_err"; then
2989   # Broken: success on invalid input.
2990 continue
2991 else
2992   echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995   # Passes both tests.
2996 ac_preproc_ok=:
2997 break
2998 fi
2999
3000 rm -f conftest.err conftest.$ac_ext
3001
3002 done
3003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3004 rm -f conftest.err conftest.$ac_ext
3005 if $ac_preproc_ok; then
3006   :
3007 else
3008   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3009 See \`config.log' for more details." >&5
3010 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3011 See \`config.log' for more details." >&2;}
3012    { (exit 1); exit 1; }; }
3013 fi
3014
3015 ac_ext=c
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020
3021 ac_aux_dir=
3022 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3023   if test -f "$ac_dir/install-sh"; then
3024     ac_aux_dir=$ac_dir
3025     ac_install_sh="$ac_aux_dir/install-sh -c"
3026     break
3027   elif test -f "$ac_dir/install.sh"; then
3028     ac_aux_dir=$ac_dir
3029     ac_install_sh="$ac_aux_dir/install.sh -c"
3030     break
3031   elif test -f "$ac_dir/shtool"; then
3032     ac_aux_dir=$ac_dir
3033     ac_install_sh="$ac_aux_dir/shtool install -c"
3034     break
3035   fi
3036 done
3037 if test -z "$ac_aux_dir"; then
3038   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3039 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3040    { (exit 1); exit 1; }; }
3041 fi
3042
3043 # These three variables are undocumented and unsupported,
3044 # and are intended to be withdrawn in a future Autoconf release.
3045 # They can cause serious problems if a builder's source tree is in a directory
3046 # whose full name contains unusual characters.
3047 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3048 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3049 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3050
3051
3052 # Find a good install program.  We prefer a C program (faster),
3053 # so one script is as good as another.  But avoid the broken or
3054 # incompatible versions:
3055 # SysV /etc/install, /usr/sbin/install
3056 # SunOS /usr/etc/install
3057 # IRIX /sbin/install
3058 # AIX /bin/install
3059 # AmigaOS /C/install, which installs bootblocks on floppy discs
3060 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3061 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3062 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3063 # OS/2's system install, which has a completely different semantic
3064 # ./install, which can be erroneously created by make from ./install.sh.
3065 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3066 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3067 if test -z "$INSTALL"; then
3068 if test "${ac_cv_path_install+set}" = set; then
3069   echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074   IFS=$as_save_IFS
3075   test -z "$as_dir" && as_dir=.
3076   # Account for people who put trailing slashes in PATH elements.
3077 case $as_dir/ in
3078   ./ | .// | /cC/* | \
3079   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3080   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3081   /usr/ucb/* ) ;;
3082   *)
3083     # OSF1 and SCO ODT 3.0 have their own names for install.
3084     # Don't use installbsd from OSF since it installs stuff as root
3085     # by default.
3086     for ac_prog in ginstall scoinst install; do
3087       for ac_exec_ext in '' $ac_executable_extensions; do
3088         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
3089           if test $ac_prog = install &&
3090             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3091             # AIX install.  It has an incompatible calling convention.
3092             :
3093           elif test $ac_prog = install &&
3094             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3095             # program-specific install script used by HP pwplus--don't use.
3096             :
3097           else
3098             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3099             break 3
3100           fi
3101         fi
3102       done
3103     done
3104     ;;
3105 esac
3106 done
3107 IFS=$as_save_IFS
3108
3109
3110 fi
3111   if test "${ac_cv_path_install+set}" = set; then
3112     INSTALL=$ac_cv_path_install
3113   else
3114     # As a last resort, use the slow shell script.  Don't cache a
3115     # value for INSTALL within a source directory, because that will
3116     # break other packages using the cache if that directory is
3117     # removed, or if the value is a relative name.
3118     INSTALL=$ac_install_sh
3119   fi
3120 fi
3121 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3122 echo "${ECHO_T}$INSTALL" >&6; }
3123
3124 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3125 # It thinks the first close brace ends the variable substitution.
3126 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3127
3128 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3129
3130 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3131
3132 if test -n "$ac_tool_prefix"; then
3133   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3134 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3137 if test "${ac_cv_prog_RANLIB+set}" = set; then
3138   echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140   if test -n "$RANLIB"; then
3141   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146   IFS=$as_save_IFS
3147   test -z "$as_dir" && as_dir=.
3148   for ac_exec_ext in '' $ac_executable_extensions; do
3149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3150     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152     break 2
3153   fi
3154 done
3155 done
3156 IFS=$as_save_IFS
3157
3158 fi
3159 fi
3160 RANLIB=$ac_cv_prog_RANLIB
3161 if test -n "$RANLIB"; then
3162   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3163 echo "${ECHO_T}$RANLIB" >&6; }
3164 else
3165   { echo "$as_me:$LINENO: result: no" >&5
3166 echo "${ECHO_T}no" >&6; }
3167 fi
3168
3169
3170 fi
3171 if test -z "$ac_cv_prog_RANLIB"; then
3172   ac_ct_RANLIB=$RANLIB
3173   # Extract the first word of "ranlib", so it can be a program name with args.
3174 set dummy ranlib; ac_word=$2
3175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3178   echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180   if test -n "$ac_ct_RANLIB"; then
3181   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188   for ac_exec_ext in '' $ac_executable_extensions; do
3189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3190     ac_cv_prog_ac_ct_RANLIB="ranlib"
3191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195 done
3196 IFS=$as_save_IFS
3197
3198 fi
3199 fi
3200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3201 if test -n "$ac_ct_RANLIB"; then
3202   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3203 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3204 else
3205   { echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6; }
3207 fi
3208
3209   if test "x$ac_ct_RANLIB" = x; then
3210     RANLIB=":"
3211   else
3212     case $cross_compiling:$ac_tool_warned in
3213 yes:)
3214 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3215 whose name does not start with the host triplet.  If you think this
3216 configuration is useful to you, please write to autoconf@gnu.org." >&5
3217 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3218 whose name does not start with the host triplet.  If you think this
3219 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3220 ac_tool_warned=yes ;;
3221 esac
3222     RANLIB=$ac_ct_RANLIB
3223   fi
3224 else
3225   RANLIB="$ac_cv_prog_RANLIB"
3226 fi
3227
3228
3229 # Extract the first word of "strip", so it can be a program name with args.
3230 set dummy strip; ac_word=$2
3231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3233 if test "${ac_cv_prog_STRIP+set}" = set; then
3234   echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236   if test -n "$STRIP"; then
3237   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3238 else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH
3241 do
3242   IFS=$as_save_IFS
3243   test -z "$as_dir" && as_dir=.
3244   for ac_exec_ext in '' $ac_executable_extensions; do
3245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3246     ac_cv_prog_STRIP="strip"
3247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248     break 2
3249   fi
3250 done
3251 done
3252 IFS=$as_save_IFS
3253
3254   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3255 fi
3256 fi
3257 STRIP=$ac_cv_prog_STRIP
3258 if test -n "$STRIP"; then
3259   { echo "$as_me:$LINENO: result: $STRIP" >&5
3260 echo "${ECHO_T}$STRIP" >&6; }
3261 else
3262   { echo "$as_me:$LINENO: result: no" >&5
3263 echo "${ECHO_T}no" >&6; }
3264 fi
3265
3266
3267
3268
3269 # Check whether --enable-shared was given.
3270 if test "${enable_shared+set}" = set; then
3271   enableval=$enable_shared; p=${PACKAGE-default}
3272 case $enableval in
3273 yes) enable_shared=yes ;;
3274 no) enable_shared=no ;;
3275 *)
3276   enable_shared=no
3277   # Look at the argument we got.  We use all the common list separators.
3278   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3279   for pkg in $enableval; do
3280     if test "X$pkg" = "X$p"; then
3281       enable_shared=yes
3282     fi
3283   done
3284   IFS="$ac_save_ifs"
3285   ;;
3286 esac
3287 else
3288   enable_shared=yes
3289 fi
3290
3291 # Check whether --enable-static was given.
3292 if test "${enable_static+set}" = set; then
3293   enableval=$enable_static; p=${PACKAGE-default}
3294 case $enableval in
3295 yes) enable_static=yes ;;
3296 no) enable_static=no ;;
3297 *)
3298   enable_static=no
3299   # Look at the argument we got.  We use all the common list separators.
3300   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3301   for pkg in $enableval; do
3302     if test "X$pkg" = "X$p"; then
3303       enable_static=yes
3304     fi
3305   done
3306   IFS="$ac_save_ifs"
3307   ;;
3308 esac
3309 else
3310   enable_static=yes
3311 fi
3312
3313 # Check whether --enable-fast-install was given.
3314 if test "${enable_fast_install+set}" = set; then
3315   enableval=$enable_fast_install; p=${PACKAGE-default}
3316 case $enableval in
3317 yes) enable_fast_install=yes ;;
3318 no) enable_fast_install=no ;;
3319 *)
3320   enable_fast_install=no
3321   # Look at the argument we got.  We use all the common list separators.
3322   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3323   for pkg in $enableval; do
3324     if test "X$pkg" = "X$p"; then
3325       enable_fast_install=yes
3326     fi
3327   done
3328   IFS="$ac_save_ifs"
3329   ;;
3330 esac
3331 else
3332   enable_fast_install=yes
3333 fi
3334
3335 # Make sure we can run config.sub.
3336 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3337   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3338 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3339    { (exit 1); exit 1; }; }
3340
3341 { echo "$as_me:$LINENO: checking build system type" >&5
3342 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3343 if test "${ac_cv_build+set}" = set; then
3344   echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346   ac_build_alias=$build_alias
3347 test "x$ac_build_alias" = x &&
3348   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3349 test "x$ac_build_alias" = x &&
3350   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3351 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3352    { (exit 1); exit 1; }; }
3353 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3354   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3355 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3356    { (exit 1); exit 1; }; }
3357
3358 fi
3359 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3360 echo "${ECHO_T}$ac_cv_build" >&6; }
3361 case $ac_cv_build in
3362 *-*-*) ;;
3363 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3364 echo "$as_me: error: invalid value of canonical build" >&2;}
3365    { (exit 1); exit 1; }; };;
3366 esac
3367 build=$ac_cv_build
3368 ac_save_IFS=$IFS; IFS='-'
3369 set x $ac_cv_build
3370 shift
3371 build_cpu=$1
3372 build_vendor=$2
3373 shift; shift
3374 # Remember, the first character of IFS is used to create $*,
3375 # except with old shells:
3376 build_os=$*
3377 IFS=$ac_save_IFS
3378 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3379
3380
3381 { echo "$as_me:$LINENO: checking host system type" >&5
3382 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3383 if test "${ac_cv_host+set}" = set; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386   if test "x$host_alias" = x; then
3387   ac_cv_host=$ac_cv_build
3388 else
3389   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3390     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3391 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3392    { (exit 1); exit 1; }; }
3393 fi
3394
3395 fi
3396 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3397 echo "${ECHO_T}$ac_cv_host" >&6; }
3398 case $ac_cv_host in
3399 *-*-*) ;;
3400 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3401 echo "$as_me: error: invalid value of canonical host" >&2;}
3402    { (exit 1); exit 1; }; };;
3403 esac
3404 host=$ac_cv_host
3405 ac_save_IFS=$IFS; IFS='-'
3406 set x $ac_cv_host
3407 shift
3408 host_cpu=$1
3409 host_vendor=$2
3410 shift; shift
3411 # Remember, the first character of IFS is used to create $*,
3412 # except with old shells:
3413 host_os=$*
3414 IFS=$ac_save_IFS
3415 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3416
3417
3418 ac_ext=c
3419 ac_cpp='$CPP $CPPFLAGS'
3420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423 if test -n "$ac_tool_prefix"; then
3424   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3425 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3428 if test "${ac_cv_prog_CC+set}" = set; then
3429   echo $ECHO_N "(cached) $ECHO_C" >&6
3430 else
3431   if test -n "$CC"; then
3432   ac_cv_prog_CC="$CC" # Let the user override the test.
3433 else
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH
3436 do
3437   IFS=$as_save_IFS
3438   test -z "$as_dir" && as_dir=.
3439   for ac_exec_ext in '' $ac_executable_extensions; do
3440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3441     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3443     break 2
3444   fi
3445 done
3446 done
3447 IFS=$as_save_IFS
3448
3449 fi
3450 fi
3451 CC=$ac_cv_prog_CC
3452 if test -n "$CC"; then
3453   { echo "$as_me:$LINENO: result: $CC" >&5
3454 echo "${ECHO_T}$CC" >&6; }
3455 else
3456   { echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6; }
3458 fi
3459
3460
3461 fi
3462 if test -z "$ac_cv_prog_CC"; then
3463   ac_ct_CC=$CC
3464   # Extract the first word of "gcc", so it can be a program name with args.
3465 set dummy gcc; ac_word=$2
3466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3468 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   if test -n "$ac_ct_CC"; then
3472   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3473 else
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 for as_dir in $PATH
3476 do
3477   IFS=$as_save_IFS
3478   test -z "$as_dir" && as_dir=.
3479   for ac_exec_ext in '' $ac_executable_extensions; do
3480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3481     ac_cv_prog_ac_ct_CC="gcc"
3482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3483     break 2
3484   fi
3485 done
3486 done
3487 IFS=$as_save_IFS
3488
3489 fi
3490 fi
3491 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3492 if test -n "$ac_ct_CC"; then
3493   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3494 echo "${ECHO_T}$ac_ct_CC" >&6; }
3495 else
3496   { echo "$as_me:$LINENO: result: no" >&5
3497 echo "${ECHO_T}no" >&6; }
3498 fi
3499
3500   if test "x$ac_ct_CC" = x; then
3501     CC=""
3502   else
3503     case $cross_compiling:$ac_tool_warned in
3504 yes:)
3505 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3506 whose name does not start with the host triplet.  If you think this
3507 configuration is useful to you, please write to autoconf@gnu.org." >&5
3508 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3509 whose name does not start with the host triplet.  If you think this
3510 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3511 ac_tool_warned=yes ;;
3512 esac
3513     CC=$ac_ct_CC
3514   fi
3515 else
3516   CC="$ac_cv_prog_CC"
3517 fi
3518
3519 if test -z "$CC"; then
3520           if test -n "$ac_tool_prefix"; then
3521     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3522 set dummy ${ac_tool_prefix}cc; ac_word=$2
3523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3525 if test "${ac_cv_prog_CC+set}" = set; then
3526   echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528   if test -n "$CC"; then
3529   ac_cv_prog_CC="$CC" # Let the user override the test.
3530 else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3533 do
3534   IFS=$as_save_IFS
3535   test -z "$as_dir" && as_dir=.
3536   for ac_exec_ext in '' $ac_executable_extensions; do
3537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3538     ac_cv_prog_CC="${ac_tool_prefix}cc"
3539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3540     break 2
3541   fi
3542 done
3543 done
3544 IFS=$as_save_IFS
3545
3546 fi
3547 fi
3548 CC=$ac_cv_prog_CC
3549 if test -n "$CC"; then
3550   { echo "$as_me:$LINENO: result: $CC" >&5
3551 echo "${ECHO_T}$CC" >&6; }
3552 else
3553   { echo "$as_me:$LINENO: result: no" >&5
3554 echo "${ECHO_T}no" >&6; }
3555 fi
3556
3557
3558   fi
3559 fi
3560 if test -z "$CC"; then
3561   # Extract the first word of "cc", so it can be a program name with args.
3562 set dummy cc; ac_word=$2
3563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3565 if test "${ac_cv_prog_CC+set}" = set; then
3566   echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568   if test -n "$CC"; then
3569   ac_cv_prog_CC="$CC" # Let the user override the test.
3570 else
3571   ac_prog_rejected=no
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3574 do
3575   IFS=$as_save_IFS
3576   test -z "$as_dir" && as_dir=.
3577   for ac_exec_ext in '' $ac_executable_extensions; do
3578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3579     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3580        ac_prog_rejected=yes
3581        continue
3582      fi
3583     ac_cv_prog_CC="cc"
3584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585     break 2
3586   fi
3587 done
3588 done
3589 IFS=$as_save_IFS
3590
3591 if test $ac_prog_rejected = yes; then
3592   # We found a bogon in the path, so make sure we never use it.
3593   set dummy $ac_cv_prog_CC
3594   shift
3595   if test $# != 0; then
3596     # We chose a different compiler from the bogus one.
3597     # However, it has the same basename, so the bogon will be chosen
3598     # first if we set CC to just the basename; use the full file name.
3599     shift
3600     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3601   fi
3602 fi
3603 fi
3604 fi
3605 CC=$ac_cv_prog_CC
3606 if test -n "$CC"; then
3607   { echo "$as_me:$LINENO: result: $CC" >&5
3608 echo "${ECHO_T}$CC" >&6; }
3609 else
3610   { echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6; }
3612 fi
3613
3614
3615 fi
3616 if test -z "$CC"; then
3617   if test -n "$ac_tool_prefix"; then
3618   for ac_prog in cl.exe
3619   do
3620     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3624 if test "${ac_cv_prog_CC+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   if test -n "$CC"; then
3628   ac_cv_prog_CC="$CC" # Let the user override the test.
3629 else
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3637     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642 done
3643 IFS=$as_save_IFS
3644
3645 fi
3646 fi
3647 CC=$ac_cv_prog_CC
3648 if test -n "$CC"; then
3649   { echo "$as_me:$LINENO: result: $CC" >&5
3650 echo "${ECHO_T}$CC" >&6; }
3651 else
3652   { echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6; }
3654 fi
3655
3656
3657     test -n "$CC" && break
3658   done
3659 fi
3660 if test -z "$CC"; then
3661   ac_ct_CC=$CC
3662   for ac_prog in cl.exe
3663 do
3664   # Extract the first word of "$ac_prog", so it can be a program name with args.
3665 set dummy $ac_prog; ac_word=$2
3666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   if test -n "$ac_ct_CC"; then
3672   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3673 else
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3676 do
3677   IFS=$as_save_IFS
3678   test -z "$as_dir" && as_dir=.
3679   for ac_exec_ext in '' $ac_executable_extensions; do
3680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3681     ac_cv_prog_ac_ct_CC="$ac_prog"
3682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3683     break 2
3684   fi
3685 done
3686 done
3687 IFS=$as_save_IFS
3688
3689 fi
3690 fi
3691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3692 if test -n "$ac_ct_CC"; then
3693   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3694 echo "${ECHO_T}$ac_ct_CC" >&6; }
3695 else
3696   { echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6; }
3698 fi
3699
3700
3701   test -n "$ac_ct_CC" && break
3702 done
3703
3704   if test "x$ac_ct_CC" = x; then
3705     CC=""
3706   else
3707     case $cross_compiling:$ac_tool_warned in
3708 yes:)
3709 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3710 whose name does not start with the host triplet.  If you think this
3711 configuration is useful to you, please write to autoconf@gnu.org." >&5
3712 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3713 whose name does not start with the host triplet.  If you think this
3714 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3715 ac_tool_warned=yes ;;
3716 esac
3717     CC=$ac_ct_CC
3718   fi
3719 fi
3720
3721 fi
3722
3723
3724 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3725 See \`config.log' for more details." >&5
3726 echo "$as_me: error: no acceptable C compiler found in \$PATH
3727 See \`config.log' for more details." >&2;}
3728    { (exit 1); exit 1; }; }
3729
3730 # Provide some information about the compiler.
3731 echo "$as_me:$LINENO: checking for C compiler version" >&5
3732 ac_compiler=`set X $ac_compile; echo $2`
3733 { (ac_try="$ac_compiler --version >&5"
3734 case "(($ac_try" in
3735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736   *) ac_try_echo=$ac_try;;
3737 esac
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739   (eval "$ac_compiler --version >&5") 2>&5
3740   ac_status=$?
3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); }
3743 { (ac_try="$ac_compiler -v >&5"
3744 case "(($ac_try" in
3745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746   *) ac_try_echo=$ac_try;;
3747 esac
3748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3749   (eval "$ac_compiler -v >&5") 2>&5
3750   ac_status=$?
3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752   (exit $ac_status); }
3753 { (ac_try="$ac_compiler -V >&5"
3754 case "(($ac_try" in
3755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756   *) ac_try_echo=$ac_try;;
3757 esac
3758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759   (eval "$ac_compiler -V >&5") 2>&5
3760   ac_status=$?
3761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762   (exit $ac_status); }
3763
3764 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3765 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3766 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   cat >conftest.$ac_ext <<_ACEOF
3770 /* confdefs.h.  */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h.  */
3775
3776 int
3777 main ()
3778 {
3779 #ifndef __GNUC__
3780        choke me
3781 #endif
3782
3783   ;
3784   return 0;
3785 }
3786 _ACEOF
3787 rm -f conftest.$ac_objext
3788 if { (ac_try="$ac_compile"
3789 case "(($ac_try" in
3790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791   *) ac_try_echo=$ac_try;;
3792 esac
3793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794   (eval "$ac_compile") 2>conftest.er1
3795   ac_status=$?
3796   grep -v '^ *+' conftest.er1 >conftest.err
3797   rm -f conftest.er1
3798   cat conftest.err >&5
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); } &&
3801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3802   { (case "(($ac_try" in
3803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804   *) ac_try_echo=$ac_try;;
3805 esac
3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807   (eval "$ac_try") 2>&5
3808   ac_status=$?
3809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810   (exit $ac_status); }; } &&
3811          { ac_try='test -s conftest.$ac_objext'
3812   { (case "(($ac_try" in
3813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814   *) ac_try_echo=$ac_try;;
3815 esac
3816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3817   (eval "$ac_try") 2>&5
3818   ac_status=$?
3819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820   (exit $ac_status); }; }; then
3821   ac_compiler_gnu=yes
3822 else
3823   echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826         ac_compiler_gnu=no
3827 fi
3828
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3831
3832 fi
3833 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3834 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3835 GCC=`test $ac_compiler_gnu = yes && echo yes`
3836 ac_test_CFLAGS=${CFLAGS+set}
3837 ac_save_CFLAGS=$CFLAGS
3838 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3839 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3840 if test "${ac_cv_prog_cc_g+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   ac_save_c_werror_flag=$ac_c_werror_flag
3844    ac_c_werror_flag=yes
3845    ac_cv_prog_cc_g=no
3846    CFLAGS="-g"
3847    cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h.  */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h.  */
3853
3854 int
3855 main ()
3856 {
3857
3858   ;
3859   return 0;
3860 }
3861 _ACEOF
3862 rm -f conftest.$ac_objext
3863 if { (ac_try="$ac_compile"
3864 case "(($ac_try" in
3865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866   *) ac_try_echo=$ac_try;;
3867 esac
3868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869   (eval "$ac_compile") 2>conftest.er1
3870   ac_status=$?
3871   grep -v '^ *+' conftest.er1 >conftest.err
3872   rm -f conftest.er1
3873   cat conftest.err >&5
3874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875   (exit $ac_status); } &&
3876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3877   { (case "(($ac_try" in
3878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879   *) ac_try_echo=$ac_try;;
3880 esac
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882   (eval "$ac_try") 2>&5
3883   ac_status=$?
3884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885   (exit $ac_status); }; } &&
3886          { ac_try='test -s conftest.$ac_objext'
3887   { (case "(($ac_try" in
3888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889   *) ac_try_echo=$ac_try;;
3890 esac
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892   (eval "$ac_try") 2>&5
3893   ac_status=$?
3894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895   (exit $ac_status); }; }; then
3896   ac_cv_prog_cc_g=yes
3897 else
3898   echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3900
3901         CFLAGS=""
3902       cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h.  */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h.  */
3908
3909 int
3910 main ()
3911 {
3912
3913   ;
3914   return 0;
3915 }
3916 _ACEOF
3917 rm -f conftest.$ac_objext
3918 if { (ac_try="$ac_compile"
3919 case "(($ac_try" in
3920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921   *) ac_try_echo=$ac_try;;
3922 esac
3923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3924   (eval "$ac_compile") 2>conftest.er1
3925   ac_status=$?
3926   grep -v '^ *+' conftest.er1 >conftest.err
3927   rm -f conftest.er1
3928   cat conftest.err >&5
3929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930   (exit $ac_status); } &&
3931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3932   { (case "(($ac_try" in
3933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934   *) ac_try_echo=$ac_try;;
3935 esac
3936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3937   (eval "$ac_try") 2>&5
3938   ac_status=$?
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); }; } &&
3941          { ac_try='test -s conftest.$ac_objext'
3942   { (case "(($ac_try" in
3943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944   *) ac_try_echo=$ac_try;;
3945 esac
3946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947   (eval "$ac_try") 2>&5
3948   ac_status=$?
3949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950   (exit $ac_status); }; }; then
3951   :
3952 else
3953   echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3955
3956         ac_c_werror_flag=$ac_save_c_werror_flag
3957          CFLAGS="-g"
3958          cat >conftest.$ac_ext <<_ACEOF
3959 /* confdefs.h.  */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h.  */
3964
3965 int
3966 main ()
3967 {
3968
3969   ;
3970   return 0;
3971 }
3972 _ACEOF
3973 rm -f conftest.$ac_objext
3974 if { (ac_try="$ac_compile"
3975 case "(($ac_try" in
3976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977   *) ac_try_echo=$ac_try;;
3978 esac
3979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980   (eval "$ac_compile") 2>conftest.er1
3981   ac_status=$?
3982   grep -v '^ *+' conftest.er1 >conftest.err
3983   rm -f conftest.er1
3984   cat conftest.err >&5
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); } &&
3987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3988   { (case "(($ac_try" in
3989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990   *) ac_try_echo=$ac_try;;
3991 esac
3992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3993   (eval "$ac_try") 2>&5
3994   ac_status=$?
3995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996   (exit $ac_status); }; } &&
3997          { ac_try='test -s conftest.$ac_objext'
3998   { (case "(($ac_try" in
3999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000   *) ac_try_echo=$ac_try;;
4001 esac
4002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003   (eval "$ac_try") 2>&5
4004   ac_status=$?
4005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006   (exit $ac_status); }; }; then
4007   ac_cv_prog_cc_g=yes
4008 else
4009   echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4011
4012
4013 fi
4014
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 fi
4017
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019 fi
4020
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022    ac_c_werror_flag=$ac_save_c_werror_flag
4023 fi
4024 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4025 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4026 if test "$ac_test_CFLAGS" = set; then
4027   CFLAGS=$ac_save_CFLAGS
4028 elif test $ac_cv_prog_cc_g = yes; then
4029   if test "$GCC" = yes; then
4030     CFLAGS="-g -O2"
4031   else
4032     CFLAGS="-g"
4033   fi
4034 else
4035   if test "$GCC" = yes; then
4036     CFLAGS="-O2"
4037   else
4038     CFLAGS=
4039   fi
4040 fi
4041 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4042 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4043 if test "${ac_cv_prog_cc_c89+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   ac_cv_prog_cc_c89=no
4047 ac_save_CC=$CC
4048 cat >conftest.$ac_ext <<_ACEOF
4049 /* confdefs.h.  */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h.  */
4054 #include <stdarg.h>
4055 #include <stdio.h>
4056 #include <sys/types.h>
4057 #include <sys/stat.h>
4058 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4059 struct buf { int x; };
4060 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4061 static char *e (p, i)
4062      char **p;
4063      int i;
4064 {
4065   return p[i];
4066 }
4067 static char *f (char * (*g) (char **, int), char **p, ...)
4068 {
4069   char *s;
4070   va_list v;
4071   va_start (v,p);
4072   s = g (p, va_arg (v,int));
4073   va_end (v);
4074   return s;
4075 }
4076
4077 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4078    function prototypes and stuff, but not '\xHH' hex character constants.
4079    These don't provoke an error unfortunately, instead are silently treated
4080    as 'x'.  The following induces an error, until -std is added to get
4081    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4082    array size at least.  It's necessary to write '\x00'==0 to get something
4083    that's true only with -std.  */
4084 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4085
4086 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4087    inside strings and character constants.  */
4088 #define FOO(x) 'x'
4089 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4090
4091 int test (int i, double x);
4092 struct s1 {int (*f) (int a);};
4093 struct s2 {int (*f) (double a);};
4094 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4095 int argc;
4096 char **argv;
4097 int
4098 main ()
4099 {
4100 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4101   ;
4102   return 0;
4103 }
4104 _ACEOF
4105 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4106         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4107 do
4108   CC="$ac_save_CC $ac_arg"
4109   rm -f conftest.$ac_objext
4110 if { (ac_try="$ac_compile"
4111 case "(($ac_try" in
4112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113   *) ac_try_echo=$ac_try;;
4114 esac
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116   (eval "$ac_compile") 2>conftest.er1
4117   ac_status=$?
4118   grep -v '^ *+' conftest.er1 >conftest.err
4119   rm -f conftest.er1
4120   cat conftest.err >&5
4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); } &&
4123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4124   { (case "(($ac_try" in
4125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126   *) ac_try_echo=$ac_try;;
4127 esac
4128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129   (eval "$ac_try") 2>&5
4130   ac_status=$?
4131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132   (exit $ac_status); }; } &&
4133          { ac_try='test -s conftest.$ac_objext'
4134   { (case "(($ac_try" in
4135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136   *) ac_try_echo=$ac_try;;
4137 esac
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139   (eval "$ac_try") 2>&5
4140   ac_status=$?
4141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142   (exit $ac_status); }; }; then
4143   ac_cv_prog_cc_c89=$ac_arg
4144 else
4145   echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4147
4148
4149 fi
4150
4151 rm -f core conftest.err conftest.$ac_objext
4152   test "x$ac_cv_prog_cc_c89" != "xno" && break
4153 done
4154 rm -f conftest.$ac_ext
4155 CC=$ac_save_CC
4156
4157 fi
4158 # AC_CACHE_VAL
4159 case "x$ac_cv_prog_cc_c89" in
4160   x)
4161     { echo "$as_me:$LINENO: result: none needed" >&5
4162 echo "${ECHO_T}none needed" >&6; } ;;
4163   xno)
4164     { echo "$as_me:$LINENO: result: unsupported" >&5
4165 echo "${ECHO_T}unsupported" >&6; } ;;
4166   *)
4167     CC="$CC $ac_cv_prog_cc_c89"
4168     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4169 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4170 esac
4171
4172
4173 ac_ext=c
4174 ac_cpp='$CPP $CPPFLAGS'
4175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178
4179 # Find the correct PATH separator.  Usually this is `:', but
4180 # DJGPP uses `;' like DOS.
4181 if test "X${PATH_SEPARATOR+set}" != Xset; then
4182   UNAME=${UNAME-`uname 2>/dev/null`}
4183   case X$UNAME in
4184     *-DOS) lt_cv_sys_path_separator=';' ;;
4185     *)     lt_cv_sys_path_separator=':' ;;
4186   esac
4187   PATH_SEPARATOR=$lt_cv_sys_path_separator
4188 fi
4189
4190
4191 # Check whether --with-gnu-ld was given.
4192 if test "${with_gnu_ld+set}" = set; then
4193   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4194 else
4195   with_gnu_ld=no
4196 fi
4197
4198 ac_prog=ld
4199 if test "$GCC" = yes; then
4200   # Check if gcc -print-prog-name=ld gives a path.
4201   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4202 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
4203   case $host in
4204   *-*-mingw*)
4205     # gcc leaves a trailing carriage return which upsets mingw
4206     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4207   *)
4208     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4209   esac
4210   case $ac_prog in
4211     # Accept absolute paths.
4212     [\\/]* | [A-Za-z]:[\\/]*)
4213       re_direlt='/[^/][^/]*/\.\./'
4214       # Canonicalize the path of ld
4215       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4216       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4217         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4218       done
4219       test -z "$LD" && LD="$ac_prog"
4220       ;;
4221   "")
4222     # If it fails, then pretend we aren't using GCC.
4223     ac_prog=ld
4224     ;;
4225   *)
4226     # If it is relative, then search for the first ld in PATH.
4227     with_gnu_ld=unknown
4228     ;;
4229   esac
4230 elif test "$with_gnu_ld" = yes; then
4231   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4232 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4233 else
4234   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4235 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4236 fi
4237 if test "${lt_cv_path_LD+set}" = set; then
4238   echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240   if test -z "$LD"; then
4241   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4242   for ac_dir in $PATH; do
4243     test -z "$ac_dir" && ac_dir=.
4244     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4245       lt_cv_path_LD="$ac_dir/$ac_prog"
4246       # Check to see if the program is GNU ld.  I'd rather use --version,
4247       # but apparently some GNU ld's only accept -v.
4248       # Break only if it was the GNU/non-GNU ld that we prefer.
4249       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4250         test "$with_gnu_ld" != no && break
4251       else
4252         test "$with_gnu_ld" != yes && break
4253       fi
4254     fi
4255   done
4256   IFS="$ac_save_ifs"
4257 else
4258   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4259 fi
4260 fi
4261
4262 LD="$lt_cv_path_LD"
4263 if test -n "$LD"; then
4264   { echo "$as_me:$LINENO: result: $LD" >&5
4265 echo "${ECHO_T}$LD" >&6; }
4266 else
4267   { echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6; }
4269 fi
4270 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4271 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4272    { (exit 1); exit 1; }; }
4273 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4274 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4275 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4276   echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4279 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4280   lt_cv_prog_gnu_ld=yes
4281 else
4282   lt_cv_prog_gnu_ld=no
4283 fi
4284 fi
4285 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4286 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4287 with_gnu_ld=$lt_cv_prog_gnu_ld
4288
4289
4290 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4291 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4292 if test "${lt_cv_ld_reload_flag+set}" = set; then
4293   echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295   lt_cv_ld_reload_flag='-r'
4296 fi
4297 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4298 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4299 reload_flag=$lt_cv_ld_reload_flag
4300 test -n "$reload_flag" && reload_flag=" $reload_flag"
4301
4302 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4303 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4304 if test "${lt_cv_path_NM+set}" = set; then
4305   echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307   if test -n "$NM"; then
4308   # Let the user override the test.
4309   lt_cv_path_NM="$NM"
4310 else
4311   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4312   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4313     test -z "$ac_dir" && ac_dir=.
4314     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4315     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4316       # Check to see if the nm accepts a BSD-compat flag.
4317       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4318       #   nm: unknown option "B" ignored
4319       # Tru64's nm complains that /dev/null is an invalid object file
4320       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4321         lt_cv_path_NM="$tmp_nm -B"
4322         break
4323       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4324         lt_cv_path_NM="$tmp_nm -p"
4325         break
4326       else
4327         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4328         continue # so that we can try to find one that supports BSD flags
4329       fi
4330     fi
4331   done
4332   IFS="$ac_save_ifs"
4333   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4334 fi
4335 fi
4336
4337 NM="$lt_cv_path_NM"
4338 { echo "$as_me:$LINENO: result: $NM" >&5
4339 echo "${ECHO_T}$NM" >&6; }
4340
4341 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4342 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4343 LN_S=$as_ln_s
4344 if test "$LN_S" = "ln -s"; then
4345   { echo "$as_me:$LINENO: result: yes" >&5
4346 echo "${ECHO_T}yes" >&6; }
4347 else
4348   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4349 echo "${ECHO_T}no, using $LN_S" >&6; }
4350 fi
4351
4352 { echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4353 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6; }
4354 if test "${lt_cv_deplibs_check_method+set}" = set; then
4355   echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357   lt_cv_file_magic_cmd='$MAGIC_CMD'
4358 lt_cv_file_magic_test_file=
4359 lt_cv_deplibs_check_method='unknown'
4360 # Need to set the preceding variable on all platforms that support
4361 # interlibrary dependencies.
4362 # 'none' -- dependencies not supported.
4363 # `unknown' -- same as none, but documents that we really don't know.
4364 # 'pass_all' -- all dependencies passed with no checks.
4365 # 'test_compile' -- check by making test program.
4366 # 'file_magic [[regex]]' -- check by looking for files in library path
4367 # which responds to the $file_magic_cmd with a given egrep regex.
4368 # If you have `file' or equivalent on your system and you're not sure
4369 # whether `pass_all' will *always* work, you probably want this one.
4370
4371 case $host_os in
4372 aix4* | aix5*)
4373   lt_cv_deplibs_check_method=pass_all
4374   ;;
4375
4376 beos*)
4377   lt_cv_deplibs_check_method=pass_all
4378   ;;
4379
4380 bsdi4*)
4381   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4382   lt_cv_file_magic_cmd='/usr/bin/file -L'
4383   lt_cv_file_magic_test_file=/shlib/libc.so
4384   ;;
4385
4386 cygwin* | mingw* | pw32*)
4387   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4388   lt_cv_file_magic_cmd='$OBJDUMP -f'
4389   ;;
4390
4391 darwin* | rhapsody*)
4392   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4393   lt_cv_file_magic_cmd='/usr/bin/file -L'
4394   case "$host_os" in
4395   rhapsody* | darwin1.[012])
4396     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4397     ;;
4398   *) # Darwin 1.3 on
4399     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4400     ;;
4401   esac
4402   ;;
4403
4404 freebsd*)
4405   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4406     case $host_cpu in
4407     i*86 )
4408       # Not sure whether the presence of OpenBSD here was a mistake.
4409       # Let's accept both of them until this is cleared up.
4410       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4411       lt_cv_file_magic_cmd=/usr/bin/file
4412       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4413       ;;
4414     esac
4415   else
4416     lt_cv_deplibs_check_method=pass_all
4417   fi
4418   ;;
4419
4420 gnu*)
4421   lt_cv_deplibs_check_method=pass_all
4422   ;;
4423
4424 hpux10.20*|hpux11*)
4425   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4426   lt_cv_file_magic_cmd=/usr/bin/file
4427   lt_cv_file_magic_test_file=/usr/lib/libc.sl
4428   ;;
4429
4430 irix5* | irix6* | nonstopux*)
4431   case $host_os in
4432   irix5* | nonstopux*)
4433     # this will be overridden with pass_all, but let us keep it just in case
4434     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4435     ;;
4436   *)
4437     case $LD in
4438     *-32|*"-32 ") libmagic=32-bit;;
4439     *-n32|*"-n32 ") libmagic=N32;;
4440     *-64|*"-64 ") libmagic=64-bit;;
4441     *) libmagic=never-match;;
4442     esac
4443     # this will be overridden with pass_all, but let us keep it just in case
4444     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4445     ;;
4446   esac
4447   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4448   lt_cv_deplibs_check_method=pass_all
4449   ;;
4450
4451 # This must be Linux ELF.
4452 linux-gnu*)
4453   case $host_cpu in
4454   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
4455     lt_cv_deplibs_check_method=pass_all ;;
4456   *)
4457     # glibc up to 2.1.1 does not perform some relocations on ARM
4458     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4459   esac
4460   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4461   ;;
4462
4463 netbsd*)
4464   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4465     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4466   else
4467     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4468   fi
4469   ;;
4470
4471 newos6*)
4472   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4473   lt_cv_file_magic_cmd=/usr/bin/file
4474   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4475   ;;
4476
4477 openbsd*)
4478   lt_cv_file_magic_cmd=/usr/bin/file
4479   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4480   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4481     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4482   else
4483     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4484   fi
4485   ;;
4486
4487 osf3* | osf4* | osf5*)
4488   # this will be overridden with pass_all, but let us keep it just in case
4489   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4490   lt_cv_file_magic_test_file=/shlib/libc.so
4491   lt_cv_deplibs_check_method=pass_all
4492   ;;
4493
4494 sco3.2v5*)
4495   lt_cv_deplibs_check_method=pass_all
4496   ;;
4497
4498 solaris*)
4499   lt_cv_deplibs_check_method=pass_all
4500   lt_cv_file_magic_test_file=/lib/libc.so
4501   ;;
4502
4503 sysv5uw[78]* | sysv4*uw2*)
4504   lt_cv_deplibs_check_method=pass_all
4505   ;;
4506
4507 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4508   case $host_vendor in
4509   motorola)
4510     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]'
4511     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4512     ;;
4513   ncr)
4514     lt_cv_deplibs_check_method=pass_all
4515     ;;
4516   sequent)
4517     lt_cv_file_magic_cmd='/bin/file'
4518     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4519     ;;
4520   sni)
4521     lt_cv_file_magic_cmd='/bin/file'
4522     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4523     lt_cv_file_magic_test_file=/lib/libc.so
4524     ;;
4525   esac
4526   ;;
4527 esac
4528
4529 fi
4530 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4531 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4532 file_magic_cmd=$lt_cv_file_magic_cmd
4533 deplibs_check_method=$lt_cv_deplibs_check_method
4534
4535
4536
4537
4538
4539
4540
4541
4542 # Check for command to grab the raw symbol name followed by C symbol from nm.
4543 { echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4544 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6; }
4545 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4546   echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548
4549 # These are sane defaults that work on at least a few old systems.
4550 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4551
4552 # Character class describing NM global symbol codes.
4553 symcode='[BCDEGRST]'
4554
4555 # Regexp to match symbols that can be accessed directly from C.
4556 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4557
4558 # Transform the above into a raw symbol and a C symbol.
4559 symxfrm='\1 \2\3 \3'
4560
4561 # Transform an extracted symbol line into a proper C declaration
4562 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4563
4564 # Transform an extracted symbol line into symbol name and symbol address
4565 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'"
4566
4567 # Define system-specific variables.
4568 case $host_os in
4569 aix*)
4570   symcode='[BCDT]'
4571   ;;
4572 cygwin* | mingw* | pw32*)
4573   symcode='[ABCDGISTW]'
4574   ;;
4575 hpux*) # Its linker distinguishes data from code symbols
4576   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4577   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'"
4578   ;;
4579 irix* | nonstopux*)
4580   symcode='[BCDEGRST]'
4581   ;;
4582 solaris* | sysv5*)
4583   symcode='[BDT]'
4584   ;;
4585 sysv4)
4586   symcode='[DFNSTU]'
4587   ;;
4588 esac
4589
4590 # Handle CRLF in mingw tool chain
4591 opt_cr=
4592 case $host_os in
4593 mingw*)
4594   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4595   ;;
4596 esac
4597
4598 # If we're using GNU nm, then use its standard symbol codes.
4599 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4600   symcode='[ABCDGISTW]'
4601 fi
4602
4603 # Try without a prefix undercore, then with it.
4604 for ac_symprfx in "" "_"; do
4605
4606   # Write the raw and C identifiers.
4607 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4608
4609   # Check to see that the pipe works correctly.
4610   pipe_works=no
4611   rm -f conftest*
4612   cat > conftest.$ac_ext <<EOF
4613 #ifdef __cplusplus
4614 extern "C" {
4615 #endif
4616 char nm_test_var;
4617 void nm_test_func(){}
4618 #ifdef __cplusplus
4619 }
4620 #endif
4621 int main(){nm_test_var='a';nm_test_func();return(0);}
4622 EOF
4623
4624   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4625   (eval $ac_compile) 2>&5
4626   ac_status=$?
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); }; then
4629     # Now try to grab the symbols.
4630     nlist=conftest.nm
4631     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4632   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4633   ac_status=$?
4634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635   (exit $ac_status); } && test -s "$nlist"; then
4636       # Try sorting and uniquifying the output.
4637       if sort "$nlist" | uniq > "$nlist"T; then
4638         mv -f "$nlist"T "$nlist"
4639       else
4640         rm -f "$nlist"T
4641       fi
4642
4643       # Make sure that we snagged all the symbols we need.
4644       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4645         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4646           cat <<EOF > conftest.$ac_ext
4647 #ifdef __cplusplus
4648 extern "C" {
4649 #endif
4650
4651 EOF
4652           # Now generate the symbol file.
4653           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4654
4655           cat <<EOF >> conftest.$ac_ext
4656 #if defined (__STDC__) && __STDC__
4657 # define lt_ptr void *
4658 #else
4659 # define lt_ptr char *
4660 # define const
4661 #endif
4662
4663 /* The mapping between symbol names and symbols. */
4664 const struct {
4665   const char *name;
4666   lt_ptr address;
4667 }
4668 lt_preloaded_symbols[] =
4669 {
4670 EOF
4671           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4672           cat <<\EOF >> conftest.$ac_ext
4673   {0, (lt_ptr) 0}
4674 };
4675
4676 #ifdef __cplusplus
4677 }
4678 #endif
4679 EOF
4680           # Now try linking the two files.
4681           mv conftest.$ac_objext conftstm.$ac_objext
4682           save_LIBS="$LIBS"
4683           save_CFLAGS="$CFLAGS"
4684           LIBS="conftstm.$ac_objext"
4685           CFLAGS="$CFLAGS$no_builtin_flag"
4686           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4687   (eval $ac_link) 2>&5
4688   ac_status=$?
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); } && test -s conftest; then
4691             pipe_works=yes
4692           fi
4693           LIBS="$save_LIBS"
4694           CFLAGS="$save_CFLAGS"
4695         else
4696           echo "cannot find nm_test_func in $nlist" >&5
4697         fi
4698       else
4699         echo "cannot find nm_test_var in $nlist" >&5
4700       fi
4701     else
4702       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4703     fi
4704   else
4705     echo "$progname: failed program was:" >&5
4706     cat conftest.$ac_ext >&5
4707   fi
4708   rm -f conftest* conftst*
4709
4710   # Do not use the global_symbol_pipe unless it works.
4711   if test "$pipe_works" = yes; then
4712     break
4713   else
4714     lt_cv_sys_global_symbol_pipe=
4715   fi
4716 done
4717
4718 fi
4719
4720 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4721 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4722   global_symbol_to_cdecl=
4723   global_symbol_to_c_name_address=
4724 else
4725   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4726   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4727 fi
4728 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4729 then
4730   { echo "$as_me:$LINENO: result: failed" >&5
4731 echo "${ECHO_T}failed" >&6; }
4732 else
4733   { echo "$as_me:$LINENO: result: ok" >&5
4734 echo "${ECHO_T}ok" >&6; }
4735 fi
4736
4737 ac_ext=c
4738 ac_cpp='$CPP $CPPFLAGS'
4739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4742 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4743 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4744 # On Suns, sometimes $CPP names a directory.
4745 if test -n "$CPP" && test -d "$CPP"; then
4746   CPP=
4747 fi
4748 if test -z "$CPP"; then
4749   if test "${ac_cv_prog_CPP+set}" = set; then
4750   echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752       # Double quotes because CPP needs to be expanded
4753     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4754     do
4755       ac_preproc_ok=false
4756 for ac_c_preproc_warn_flag in '' yes
4757 do
4758   # Use a header file that comes with gcc, so configuring glibc
4759   # with a fresh cross-compiler works.
4760   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4761   # <limits.h> exists even on freestanding compilers.
4762   # On the NeXT, cc -E runs the code through the compiler's parser,
4763   # not just through cpp. "Syntax error" is here to catch this case.
4764   cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h.  */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h.  */
4770 #ifdef __STDC__
4771 # include <limits.h>
4772 #else
4773 # include <assert.h>
4774 #endif
4775                      Syntax error
4776 _ACEOF
4777 if { (ac_try="$ac_cpp conftest.$ac_ext"
4778 case "(($ac_try" in
4779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780   *) ac_try_echo=$ac_try;;
4781 esac
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4784   ac_status=$?
4785   grep -v '^ *+' conftest.er1 >conftest.err
4786   rm -f conftest.er1
4787   cat conftest.err >&5
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); } >/dev/null; then
4790   if test -s conftest.err; then
4791     ac_cpp_err=$ac_c_preproc_warn_flag
4792     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4793   else
4794     ac_cpp_err=
4795   fi
4796 else
4797   ac_cpp_err=yes
4798 fi
4799 if test -z "$ac_cpp_err"; then
4800   :
4801 else
4802   echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4804
4805   # Broken: fails on valid input.
4806 continue
4807 fi
4808
4809 rm -f conftest.err conftest.$ac_ext
4810
4811   # OK, works on sane cases.  Now check whether nonexistent headers
4812   # can be detected and how.
4813   cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h.  */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h.  */
4819 #include <ac_nonexistent.h>
4820 _ACEOF
4821 if { (ac_try="$ac_cpp conftest.$ac_ext"
4822 case "(($ac_try" in
4823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824   *) ac_try_echo=$ac_try;;
4825 esac
4826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4828   ac_status=$?
4829   grep -v '^ *+' conftest.er1 >conftest.err
4830   rm -f conftest.er1
4831   cat conftest.err >&5
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); } >/dev/null; then
4834   if test -s conftest.err; then
4835     ac_cpp_err=$ac_c_preproc_warn_flag
4836     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4837   else
4838     ac_cpp_err=
4839   fi
4840 else
4841   ac_cpp_err=yes
4842 fi
4843 if test -z "$ac_cpp_err"; then
4844   # Broken: success on invalid input.
4845 continue
4846 else
4847   echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4849
4850   # Passes both tests.
4851 ac_preproc_ok=:
4852 break
4853 fi
4854
4855 rm -f conftest.err conftest.$ac_ext
4856
4857 done
4858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4859 rm -f conftest.err conftest.$ac_ext
4860 if $ac_preproc_ok; then
4861   break
4862 fi
4863
4864     done
4865     ac_cv_prog_CPP=$CPP
4866
4867 fi
4868   CPP=$ac_cv_prog_CPP
4869 else
4870   ac_cv_prog_CPP=$CPP
4871 fi
4872 { echo "$as_me:$LINENO: result: $CPP" >&5
4873 echo "${ECHO_T}$CPP" >&6; }
4874 ac_preproc_ok=false
4875 for ac_c_preproc_warn_flag in '' yes
4876 do
4877   # Use a header file that comes with gcc, so configuring glibc
4878   # with a fresh cross-compiler works.
4879   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4880   # <limits.h> exists even on freestanding compilers.
4881   # On the NeXT, cc -E runs the code through the compiler's parser,
4882   # not just through cpp. "Syntax error" is here to catch this case.
4883   cat >conftest.$ac_ext <<_ACEOF
4884 /* confdefs.h.  */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h.  */
4889 #ifdef __STDC__
4890 # include <limits.h>
4891 #else
4892 # include <assert.h>
4893 #endif
4894                      Syntax error
4895 _ACEOF
4896 if { (ac_try="$ac_cpp conftest.$ac_ext"
4897 case "(($ac_try" in
4898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899   *) ac_try_echo=$ac_try;;
4900 esac
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4903   ac_status=$?
4904   grep -v '^ *+' conftest.er1 >conftest.err
4905   rm -f conftest.er1
4906   cat conftest.err >&5
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); } >/dev/null; then
4909   if test -s conftest.err; then
4910     ac_cpp_err=$ac_c_preproc_warn_flag
4911     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4912   else
4913     ac_cpp_err=
4914   fi
4915 else
4916   ac_cpp_err=yes
4917 fi
4918 if test -z "$ac_cpp_err"; then
4919   :
4920 else
4921   echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4923
4924   # Broken: fails on valid input.
4925 continue
4926 fi
4927
4928 rm -f conftest.err conftest.$ac_ext
4929
4930   # OK, works on sane cases.  Now check whether nonexistent headers
4931   # can be detected and how.
4932   cat >conftest.$ac_ext <<_ACEOF
4933 /* confdefs.h.  */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h.  */
4938 #include <ac_nonexistent.h>
4939 _ACEOF
4940 if { (ac_try="$ac_cpp conftest.$ac_ext"
4941 case "(($ac_try" in
4942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943   *) ac_try_echo=$ac_try;;
4944 esac
4945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4947   ac_status=$?
4948   grep -v '^ *+' conftest.er1 >conftest.err
4949   rm -f conftest.er1
4950   cat conftest.err >&5
4951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952   (exit $ac_status); } >/dev/null; then
4953   if test -s conftest.err; then
4954     ac_cpp_err=$ac_c_preproc_warn_flag
4955     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4956   else
4957     ac_cpp_err=
4958   fi
4959 else
4960   ac_cpp_err=yes
4961 fi
4962 if test -z "$ac_cpp_err"; then
4963   # Broken: success on invalid input.
4964 continue
4965 else
4966   echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4968
4969   # Passes both tests.
4970 ac_preproc_ok=:
4971 break
4972 fi
4973
4974 rm -f conftest.err conftest.$ac_ext
4975
4976 done
4977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4978 rm -f conftest.err conftest.$ac_ext
4979 if $ac_preproc_ok; then
4980   :
4981 else
4982   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4983 See \`config.log' for more details." >&5
4984 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4985 See \`config.log' for more details." >&2;}
4986    { (exit 1); exit 1; }; }
4987 fi
4988
4989 ac_ext=c
4990 ac_cpp='$CPP $CPPFLAGS'
4991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4994
4995
4996 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4997 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4998 if test "${ac_cv_path_GREP+set}" = set; then
4999   echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001   # Extract the first word of "grep ggrep" to use in msg output
5002 if test -z "$GREP"; then
5003 set dummy grep ggrep; ac_prog_name=$2
5004 if test "${ac_cv_path_GREP+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   ac_path_GREP_found=false
5008 # Loop through the user's path and test for each of PROGNAME-LIST
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5011 do
5012   IFS=$as_save_IFS
5013   test -z "$as_dir" && as_dir=.
5014   for ac_prog in grep ggrep; do
5015   for ac_exec_ext in '' $ac_executable_extensions; do
5016     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5017     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5018     # Check for GNU ac_path_GREP and select it if it is found.
5019   # Check for GNU $ac_path_GREP
5020 case `"$ac_path_GREP" --version 2>&1` in
5021 *GNU*)
5022   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5023 *)
5024   ac_count=0
5025   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5026   while :
5027   do
5028     cat "conftest.in" "conftest.in" >"conftest.tmp"
5029     mv "conftest.tmp" "conftest.in"
5030     cp "conftest.in" "conftest.nl"
5031     echo 'GREP' >> "conftest.nl"
5032     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5033     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5034     ac_count=`expr $ac_count + 1`
5035     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5036       # Best one so far, save it but keep looking for a better one
5037       ac_cv_path_GREP="$ac_path_GREP"
5038       ac_path_GREP_max=$ac_count
5039     fi
5040     # 10*(2^10) chars as input seems more than enough
5041     test $ac_count -gt 10 && break
5042   done
5043   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5044 esac
5045
5046
5047     $ac_path_GREP_found && break 3
5048   done
5049 done
5050
5051 done
5052 IFS=$as_save_IFS
5053
5054
5055 fi
5056
5057 GREP="$ac_cv_path_GREP"
5058 if test -z "$GREP"; then
5059   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5060 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5061    { (exit 1); exit 1; }; }
5062 fi
5063
5064 else
5065   ac_cv_path_GREP=$GREP
5066 fi
5067
5068
5069 fi
5070 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5071 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5072  GREP="$ac_cv_path_GREP"
5073
5074
5075 { echo "$as_me:$LINENO: checking for egrep" >&5
5076 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5077 if test "${ac_cv_path_EGREP+set}" = set; then
5078   echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5081    then ac_cv_path_EGREP="$GREP -E"
5082    else
5083      # Extract the first word of "egrep" to use in msg output
5084 if test -z "$EGREP"; then
5085 set dummy egrep; ac_prog_name=$2
5086 if test "${ac_cv_path_EGREP+set}" = set; then
5087   echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089   ac_path_EGREP_found=false
5090 # Loop through the user's path and test for each of PROGNAME-LIST
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5093 do
5094   IFS=$as_save_IFS
5095   test -z "$as_dir" && as_dir=.
5096   for ac_prog in egrep; do
5097   for ac_exec_ext in '' $ac_executable_extensions; do
5098     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5099     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
5100     # Check for GNU ac_path_EGREP and select it if it is found.
5101   # Check for GNU $ac_path_EGREP
5102 case `"$ac_path_EGREP" --version 2>&1` in
5103 *GNU*)
5104   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5105 *)
5106   ac_count=0
5107   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5108   while :
5109   do
5110     cat "conftest.in" "conftest.in" >"conftest.tmp"
5111     mv "conftest.tmp" "conftest.in"
5112     cp "conftest.in" "conftest.nl"
5113     echo 'EGREP' >> "conftest.nl"
5114     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5115     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5116     ac_count=`expr $ac_count + 1`
5117     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5118       # Best one so far, save it but keep looking for a better one
5119       ac_cv_path_EGREP="$ac_path_EGREP"
5120       ac_path_EGREP_max=$ac_count
5121     fi
5122     # 10*(2^10) chars as input seems more than enough
5123     test $ac_count -gt 10 && break
5124   done
5125   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5126 esac
5127
5128
5129     $ac_path_EGREP_found && break 3
5130   done
5131 done
5132
5133 done
5134 IFS=$as_save_IFS
5135
5136
5137 fi
5138
5139 EGREP="$ac_cv_path_EGREP"
5140 if test -z "$EGREP"; then
5141   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5142 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5143    { (exit 1); exit 1; }; }
5144 fi
5145
5146 else
5147   ac_cv_path_EGREP=$EGREP
5148 fi
5149
5150
5151    fi
5152 fi
5153 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5154 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5155  EGREP="$ac_cv_path_EGREP"
5156
5157
5158 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5159 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5160 if test "${ac_cv_header_stdc+set}" = set; then
5161   echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163   cat >conftest.$ac_ext <<_ACEOF
5164 /* confdefs.h.  */
5165 _ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h.  */
5169 #include <stdlib.h>
5170 #include <stdarg.h>
5171 #include <string.h>
5172 #include <float.h>
5173
5174 int
5175 main ()
5176 {
5177
5178   ;
5179   return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest.$ac_objext
5183 if { (ac_try="$ac_compile"
5184 case "(($ac_try" in
5185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186   *) ac_try_echo=$ac_try;;
5187 esac
5188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5189   (eval "$ac_compile") 2>conftest.er1
5190   ac_status=$?
5191   grep -v '^ *+' conftest.er1 >conftest.err
5192   rm -f conftest.er1
5193   cat conftest.err >&5
5194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); } &&
5196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5197   { (case "(($ac_try" in
5198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5199   *) ac_try_echo=$ac_try;;
5200 esac
5201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5202   (eval "$ac_try") 2>&5
5203   ac_status=$?
5204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205   (exit $ac_status); }; } &&
5206          { ac_try='test -s conftest.$ac_objext'
5207   { (case "(($ac_try" in
5208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209   *) ac_try_echo=$ac_try;;
5210 esac
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212   (eval "$ac_try") 2>&5
5213   ac_status=$?
5214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215   (exit $ac_status); }; }; then
5216   ac_cv_header_stdc=yes
5217 else
5218   echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5220
5221         ac_cv_header_stdc=no
5222 fi
5223
5224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225
5226 if test $ac_cv_header_stdc = yes; then
5227   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5228   cat >conftest.$ac_ext <<_ACEOF
5229 /* confdefs.h.  */
5230 _ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h.  */
5234 #include <string.h>
5235
5236 _ACEOF
5237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5238   $EGREP "memchr" >/dev/null 2>&1; then
5239   :
5240 else
5241   ac_cv_header_stdc=no
5242 fi
5243 rm -f conftest*
5244
5245 fi
5246
5247 if test $ac_cv_header_stdc = yes; then
5248   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5249   cat >conftest.$ac_ext <<_ACEOF
5250 /* confdefs.h.  */
5251 _ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h.  */
5255 #include <stdlib.h>
5256
5257 _ACEOF
5258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5259   $EGREP "free" >/dev/null 2>&1; then
5260   :
5261 else
5262   ac_cv_header_stdc=no
5263 fi
5264 rm -f conftest*
5265
5266 fi
5267
5268 if test $ac_cv_header_stdc = yes; then
5269   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5270   if test "$cross_compiling" = yes; then
5271   :
5272 else
5273   cat >conftest.$ac_ext <<_ACEOF
5274 /* confdefs.h.  */
5275 _ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h.  */
5279 #include <ctype.h>
5280 #include <stdlib.h>
5281 #if ((' ' & 0x0FF) == 0x020)
5282 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5283 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5284 #else
5285 # define ISLOWER(c) \
5286                    (('a' <= (c) && (c) <= 'i') \
5287                      || ('j' <= (c) && (c) <= 'r') \
5288                      || ('s' <= (c) && (c) <= 'z'))
5289 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5290 #endif
5291
5292 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5293 int
5294 main ()
5295 {
5296   int i;
5297   for (i = 0; i < 256; i++)
5298     if (XOR (islower (i), ISLOWER (i))
5299         || toupper (i) != TOUPPER (i))
5300       return 2;
5301   return 0;
5302 }
5303 _ACEOF
5304 rm -f conftest$ac_exeext
5305 if { (ac_try="$ac_link"
5306 case "(($ac_try" in
5307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308   *) ac_try_echo=$ac_try;;
5309 esac
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311   (eval "$ac_link") 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5315   { (case "(($ac_try" in
5316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317   *) ac_try_echo=$ac_try;;
5318 esac
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320   (eval "$ac_try") 2>&5
5321   ac_status=$?
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); }; }; then
5324   :
5325 else
5326   echo "$as_me: program exited with status $ac_status" >&5
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330 ( exit $ac_status )
5331 ac_cv_header_stdc=no
5332 fi
5333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5334 fi
5335
5336
5337 fi
5338 fi
5339 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5340 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5341 if test $ac_cv_header_stdc = yes; then
5342
5343 cat >>confdefs.h <<\_ACEOF
5344 #define STDC_HEADERS 1
5345 _ACEOF
5346
5347 fi
5348
5349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5360                   inttypes.h stdint.h unistd.h
5361 do
5362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5366   echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368   cat >conftest.$ac_ext <<_ACEOF
5369 /* confdefs.h.  */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h.  */
5374 $ac_includes_default
5375
5376 #include <$ac_header>
5377 _ACEOF
5378 rm -f conftest.$ac_objext
5379 if { (ac_try="$ac_compile"
5380 case "(($ac_try" in
5381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382   *) ac_try_echo=$ac_try;;
5383 esac
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385   (eval "$ac_compile") 2>conftest.er1
5386   ac_status=$?
5387   grep -v '^ *+' conftest.er1 >conftest.err
5388   rm -f conftest.er1
5389   cat conftest.err >&5
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); } &&
5392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5393   { (case "(($ac_try" in
5394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395   *) ac_try_echo=$ac_try;;
5396 esac
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398   (eval "$ac_try") 2>&5
5399   ac_status=$?
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); }; } &&
5402          { ac_try='test -s conftest.$ac_objext'
5403   { (case "(($ac_try" in
5404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405   *) ac_try_echo=$ac_try;;
5406 esac
5407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408   (eval "$ac_try") 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); }; }; then
5412   eval "$as_ac_Header=yes"
5413 else
5414   echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5416
5417         eval "$as_ac_Header=no"
5418 fi
5419
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 fi
5422 ac_res=`eval echo '${'$as_ac_Header'}'`
5423                { echo "$as_me:$LINENO: result: $ac_res" >&5
5424 echo "${ECHO_T}$ac_res" >&6; }
5425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5426   cat >>confdefs.h <<_ACEOF
5427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5428 _ACEOF
5429
5430 fi
5431
5432 done
5433
5434
5435
5436 for ac_header in dlfcn.h
5437 do
5438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5440   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5443   echo $ECHO_N "(cached) $ECHO_C" >&6
5444 fi
5445 ac_res=`eval echo '${'$as_ac_Header'}'`
5446                { echo "$as_me:$LINENO: result: $ac_res" >&5
5447 echo "${ECHO_T}$ac_res" >&6; }
5448 else
5449   # Is the header compilable?
5450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h.  */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h.  */
5458 $ac_includes_default
5459 #include <$ac_header>
5460 _ACEOF
5461 rm -f conftest.$ac_objext
5462 if { (ac_try="$ac_compile"
5463 case "(($ac_try" in
5464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465   *) ac_try_echo=$ac_try;;
5466 esac
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468   (eval "$ac_compile") 2>conftest.er1
5469   ac_status=$?
5470   grep -v '^ *+' conftest.er1 >conftest.err
5471   rm -f conftest.er1
5472   cat conftest.err >&5
5473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474   (exit $ac_status); } &&
5475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5476   { (case "(($ac_try" in
5477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5478   *) ac_try_echo=$ac_try;;
5479 esac
5480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481   (eval "$ac_try") 2>&5
5482   ac_status=$?
5483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); }; } &&
5485          { ac_try='test -s conftest.$ac_objext'
5486   { (case "(($ac_try" in
5487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488   *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491   (eval "$ac_try") 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); }; }; then
5495   ac_header_compiler=yes
5496 else
5497   echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500         ac_header_compiler=no
5501 fi
5502
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5505 echo "${ECHO_T}$ac_header_compiler" >&6; }
5506
5507 # Is the header present?
5508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5510 cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h.  */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h.  */
5516 #include <$ac_header>
5517 _ACEOF
5518 if { (ac_try="$ac_cpp conftest.$ac_ext"
5519 case "(($ac_try" in
5520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521   *) ac_try_echo=$ac_try;;
5522 esac
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5525   ac_status=$?
5526   grep -v '^ *+' conftest.er1 >conftest.err
5527   rm -f conftest.er1
5528   cat conftest.err >&5
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); } >/dev/null; then
5531   if test -s conftest.err; then
5532     ac_cpp_err=$ac_c_preproc_warn_flag
5533     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5534   else
5535     ac_cpp_err=
5536   fi
5537 else
5538   ac_cpp_err=yes
5539 fi
5540 if test -z "$ac_cpp_err"; then
5541   ac_header_preproc=yes
5542 else
5543   echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.$ac_ext >&5
5545
5546   ac_header_preproc=no
5547 fi
5548
5549 rm -f conftest.err conftest.$ac_ext
5550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5551 echo "${ECHO_T}$ac_header_preproc" >&6; }
5552
5553 # So?  What about this header?
5554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5555   yes:no: )
5556     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5560     ac_header_preproc=yes
5561     ;;
5562   no:yes:* )
5563     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5565     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5566 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5567     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5569     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5570 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5573     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5575
5576     ;;
5577 esac
5578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5581   echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583   eval "$as_ac_Header=\$ac_header_preproc"
5584 fi
5585 ac_res=`eval echo '${'$as_ac_Header'}'`
5586                { echo "$as_me:$LINENO: result: $ac_res" >&5
5587 echo "${ECHO_T}$ac_res" >&6; }
5588
5589 fi
5590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5591   cat >>confdefs.h <<_ACEOF
5592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5593 _ACEOF
5594
5595 fi
5596
5597 done
5598
5599
5600
5601
5602
5603 # Only perform the check for file, if the check method requires it
5604 case $deplibs_check_method in
5605 file_magic*)
5606   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5607     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5608 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
5609 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5610   echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612   case $MAGIC_CMD in
5613   /*)
5614   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5615   ;;
5616   ?:/*)
5617   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5618   ;;
5619   *)
5620   ac_save_MAGIC_CMD="$MAGIC_CMD"
5621   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5622   ac_dummy="/usr/bin:$PATH"
5623   for ac_dir in $ac_dummy; do
5624     test -z "$ac_dir" && ac_dir=.
5625     if test -f $ac_dir/${ac_tool_prefix}file; then
5626       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5627       if test -n "$file_magic_test_file"; then
5628         case $deplibs_check_method in
5629         "file_magic "*)
5630           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5631           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5632           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5633             egrep "$file_magic_regex" > /dev/null; then
5634             :
5635           else
5636             cat <<EOF 1>&2
5637
5638 *** Warning: the command libtool uses to detect shared libraries,
5639 *** $file_magic_cmd, produces output that libtool cannot recognize.
5640 *** The result is that libtool may fail to recognize shared libraries
5641 *** as such.  This will affect the creation of libtool libraries that
5642 *** depend on shared libraries, but programs linked with such libtool
5643 *** libraries will work regardless of this problem.  Nevertheless, you
5644 *** may want to report the problem to your system manager and/or to
5645 *** bug-libtool@gnu.org
5646
5647 EOF
5648           fi ;;
5649         esac
5650       fi
5651       break
5652     fi
5653   done
5654   IFS="$ac_save_ifs"
5655   MAGIC_CMD="$ac_save_MAGIC_CMD"
5656   ;;
5657 esac
5658 fi
5659
5660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5661 if test -n "$MAGIC_CMD"; then
5662   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5663 echo "${ECHO_T}$MAGIC_CMD" >&6; }
5664 else
5665   { echo "$as_me:$LINENO: result: no" >&5
5666 echo "${ECHO_T}no" >&6; }
5667 fi
5668
5669 if test -z "$lt_cv_path_MAGIC_CMD"; then
5670   if test -n "$ac_tool_prefix"; then
5671     { echo "$as_me:$LINENO: checking for file" >&5
5672 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
5673 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5674   echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676   case $MAGIC_CMD in
5677   /*)
5678   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5679   ;;
5680   ?:/*)
5681   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5682   ;;
5683   *)
5684   ac_save_MAGIC_CMD="$MAGIC_CMD"
5685   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5686   ac_dummy="/usr/bin:$PATH"
5687   for ac_dir in $ac_dummy; do
5688     test -z "$ac_dir" && ac_dir=.
5689     if test -f $ac_dir/file; then
5690       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5691       if test -n "$file_magic_test_file"; then
5692         case $deplibs_check_method in
5693         "file_magic "*)
5694           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5695           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5696           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5697             egrep "$file_magic_regex" > /dev/null; then
5698             :
5699           else
5700             cat <<EOF 1>&2
5701
5702 *** Warning: the command libtool uses to detect shared libraries,
5703 *** $file_magic_cmd, produces output that libtool cannot recognize.
5704 *** The result is that libtool may fail to recognize shared libraries
5705 *** as such.  This will affect the creation of libtool libraries that
5706 *** depend on shared libraries, but programs linked with such libtool
5707 *** libraries will work regardless of this problem.  Nevertheless, you
5708 *** may want to report the problem to your system manager and/or to
5709 *** bug-libtool@gnu.org
5710
5711 EOF
5712           fi ;;
5713         esac
5714       fi
5715       break
5716     fi
5717   done
5718   IFS="$ac_save_ifs"
5719   MAGIC_CMD="$ac_save_MAGIC_CMD"
5720   ;;
5721 esac
5722 fi
5723
5724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5725 if test -n "$MAGIC_CMD"; then
5726   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5727 echo "${ECHO_T}$MAGIC_CMD" >&6; }
5728 else
5729   { echo "$as_me:$LINENO: result: no" >&5
5730 echo "${ECHO_T}no" >&6; }
5731 fi
5732
5733   else
5734     MAGIC_CMD=:
5735   fi
5736 fi
5737
5738   fi
5739   ;;
5740 esac
5741
5742 if test -n "$ac_tool_prefix"; then
5743   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5744 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5747 if test "${ac_cv_prog_RANLIB+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750   if test -n "$RANLIB"; then
5751   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5752 else
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756   IFS=$as_save_IFS
5757   test -z "$as_dir" && as_dir=.
5758   for ac_exec_ext in '' $ac_executable_extensions; do
5759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5760     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762     break 2
5763   fi
5764 done
5765 done
5766 IFS=$as_save_IFS
5767
5768 fi
5769 fi
5770 RANLIB=$ac_cv_prog_RANLIB
5771 if test -n "$RANLIB"; then
5772   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5773 echo "${ECHO_T}$RANLIB" >&6; }
5774 else
5775   { echo "$as_me:$LINENO: result: no" >&5
5776 echo "${ECHO_T}no" >&6; }
5777 fi
5778
5779
5780 fi
5781 if test -z "$ac_cv_prog_RANLIB"; then
5782   ac_ct_RANLIB=$RANLIB
5783   # Extract the first word of "ranlib", so it can be a program name with args.
5784 set dummy ranlib; ac_word=$2
5785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5787 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5788   echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790   if test -n "$ac_ct_RANLIB"; then
5791   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5792 else
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5795 do
5796   IFS=$as_save_IFS
5797   test -z "$as_dir" && as_dir=.
5798   for ac_exec_ext in '' $ac_executable_extensions; do
5799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5800     ac_cv_prog_ac_ct_RANLIB="ranlib"
5801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5802     break 2
5803   fi
5804 done
5805 done
5806 IFS=$as_save_IFS
5807
5808 fi
5809 fi
5810 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5811 if test -n "$ac_ct_RANLIB"; then
5812   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5813 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5814 else
5815   { echo "$as_me:$LINENO: result: no" >&5
5816 echo "${ECHO_T}no" >&6; }
5817 fi
5818
5819   if test "x$ac_ct_RANLIB" = x; then
5820     RANLIB=":"
5821   else
5822     case $cross_compiling:$ac_tool_warned in
5823 yes:)
5824 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5825 whose name does not start with the host triplet.  If you think this
5826 configuration is useful to you, please write to autoconf@gnu.org." >&5
5827 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5828 whose name does not start with the host triplet.  If you think this
5829 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5830 ac_tool_warned=yes ;;
5831 esac
5832     RANLIB=$ac_ct_RANLIB
5833   fi
5834 else
5835   RANLIB="$ac_cv_prog_RANLIB"
5836 fi
5837
5838 if test -n "$ac_tool_prefix"; then
5839   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5840 set dummy ${ac_tool_prefix}strip; ac_word=$2
5841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5843 if test "${ac_cv_prog_STRIP+set}" = set; then
5844   echo $ECHO_N "(cached) $ECHO_C" >&6
5845 else
5846   if test -n "$STRIP"; then
5847   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5848 else
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5851 do
5852   IFS=$as_save_IFS
5853   test -z "$as_dir" && as_dir=.
5854   for ac_exec_ext in '' $ac_executable_extensions; do
5855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5856     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5858     break 2
5859   fi
5860 done
5861 done
5862 IFS=$as_save_IFS
5863
5864 fi
5865 fi
5866 STRIP=$ac_cv_prog_STRIP
5867 if test -n "$STRIP"; then
5868   { echo "$as_me:$LINENO: result: $STRIP" >&5
5869 echo "${ECHO_T}$STRIP" >&6; }
5870 else
5871   { echo "$as_me:$LINENO: result: no" >&5
5872 echo "${ECHO_T}no" >&6; }
5873 fi
5874
5875
5876 fi
5877 if test -z "$ac_cv_prog_STRIP"; then
5878   ac_ct_STRIP=$STRIP
5879   # Extract the first word of "strip", so it can be a program name with args.
5880 set dummy strip; ac_word=$2
5881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5883 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5884   echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886   if test -n "$ac_ct_STRIP"; then
5887   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5891 do
5892   IFS=$as_save_IFS
5893   test -z "$as_dir" && as_dir=.
5894   for ac_exec_ext in '' $ac_executable_extensions; do
5895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5896     ac_cv_prog_ac_ct_STRIP="strip"
5897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5898     break 2
5899   fi
5900 done
5901 done
5902 IFS=$as_save_IFS
5903
5904 fi
5905 fi
5906 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5907 if test -n "$ac_ct_STRIP"; then
5908   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5909 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5910 else
5911   { echo "$as_me:$LINENO: result: no" >&5
5912 echo "${ECHO_T}no" >&6; }
5913 fi
5914
5915   if test "x$ac_ct_STRIP" = x; then
5916     STRIP=":"
5917   else
5918     case $cross_compiling:$ac_tool_warned in
5919 yes:)
5920 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5921 whose name does not start with the host triplet.  If you think this
5922 configuration is useful to you, please write to autoconf@gnu.org." >&5
5923 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5924 whose name does not start with the host triplet.  If you think this
5925 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5926 ac_tool_warned=yes ;;
5927 esac
5928     STRIP=$ac_ct_STRIP
5929   fi
5930 else
5931   STRIP="$ac_cv_prog_STRIP"
5932 fi
5933
5934
5935 enable_dlopen=no
5936 enable_win32_dll=no
5937
5938 # Check whether --enable-libtool-lock was given.
5939 if test "${enable_libtool_lock+set}" = set; then
5940   enableval=$enable_libtool_lock;
5941 fi
5942
5943 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5944
5945 # Some flags need to be propagated to the compiler or linker for good
5946 # libtool support.
5947 case $host in
5948 *-*-irix6*)
5949   # Find out which ABI we are using.
5950   echo '#line 5950 "configure"' > conftest.$ac_ext
5951   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5952   (eval $ac_compile) 2>&5
5953   ac_status=$?
5954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955   (exit $ac_status); }; then
5956     case `/usr/bin/file conftest.$ac_objext` in
5957     *32-bit*)
5958       LD="${LD-ld} -32"
5959       ;;
5960     *N32*)
5961       LD="${LD-ld} -n32"
5962       ;;
5963     *64-bit*)
5964       LD="${LD-ld} -64"
5965       ;;
5966     esac
5967   fi
5968   rm -rf conftest*
5969   ;;
5970
5971 *-*-sco3.2v5*)
5972   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5973   SAVE_CFLAGS="$CFLAGS"
5974   CFLAGS="$CFLAGS -belf"
5975   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5976 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5977 if test "${lt_cv_cc_needs_belf+set}" = set; then
5978   echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980
5981      ac_ext=c
5982 ac_cpp='$CPP $CPPFLAGS'
5983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5986
5987      cat >conftest.$ac_ext <<_ACEOF
5988 /* confdefs.h.  */
5989 _ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h.  */
5993
5994 int
5995 main ()
5996 {
5997
5998   ;
5999   return 0;
6000 }
6001 _ACEOF
6002 rm -f conftest.$ac_objext conftest$ac_exeext
6003 if { (ac_try="$ac_link"
6004 case "(($ac_try" in
6005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006   *) ac_try_echo=$ac_try;;
6007 esac
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009   (eval "$ac_link") 2>conftest.er1
6010   ac_status=$?
6011   grep -v '^ *+' conftest.er1 >conftest.err
6012   rm -f conftest.er1
6013   cat conftest.err >&5
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); } &&
6016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6017   { (case "(($ac_try" in
6018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019   *) ac_try_echo=$ac_try;;
6020 esac
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022   (eval "$ac_try") 2>&5
6023   ac_status=$?
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); }; } &&
6026          { ac_try='test -s conftest$ac_exeext'
6027   { (case "(($ac_try" in
6028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029   *) ac_try_echo=$ac_try;;
6030 esac
6031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032   (eval "$ac_try") 2>&5
6033   ac_status=$?
6034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035   (exit $ac_status); }; }; then
6036   lt_cv_cc_needs_belf=yes
6037 else
6038   echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6040
6041         lt_cv_cc_needs_belf=no
6042 fi
6043
6044 rm -f core conftest.err conftest.$ac_objext \
6045       conftest$ac_exeext conftest.$ac_ext
6046      ac_ext=c
6047 ac_cpp='$CPP $CPPFLAGS'
6048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6051
6052 fi
6053 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6054 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6055   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6056     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6057     CFLAGS="$SAVE_CFLAGS"
6058   fi
6059   ;;
6060
6061
6062 esac
6063
6064 # Sed substitution that helps us do robust quoting.  It backslashifies
6065 # metacharacters that are still active within double-quoted strings.
6066 Xsed='sed -e s/^X//'
6067 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6068
6069 # Same as above, but do not quote variable references.
6070 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6071
6072 # Sed substitution to delay expansion of an escaped shell variable in a
6073 # double_quote_subst'ed string.
6074 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6075
6076 # Constants:
6077 rm="rm -f"
6078
6079 # Global variables:
6080 default_ofile=libtool
6081 can_build_shared=yes
6082
6083 # All known linkers require a `.a' archive for static linking (except M$VC,
6084 # which needs '.lib').
6085 libext=a
6086 ltmain="$ac_aux_dir/ltmain.sh"
6087 ofile="$default_ofile"
6088 with_gnu_ld="$lt_cv_prog_gnu_ld"
6089 need_locks="$enable_libtool_lock"
6090
6091 old_CC="$CC"
6092 old_CFLAGS="$CFLAGS"
6093
6094 # Set sane defaults for various variables
6095 test -z "$AR" && AR=ar
6096 test -z "$AR_FLAGS" && AR_FLAGS=cru
6097 test -z "$AS" && AS=as
6098 test -z "$CC" && CC=cc
6099 test -z "$DLLTOOL" && DLLTOOL=dlltool
6100 test -z "$LD" && LD=ld
6101 test -z "$LN_S" && LN_S="ln -s"
6102 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6103 test -z "$NM" && NM=nm
6104 test -z "$OBJDUMP" && OBJDUMP=objdump
6105 test -z "$RANLIB" && RANLIB=:
6106 test -z "$STRIP" && STRIP=:
6107 test -z "$ac_objext" && ac_objext=o
6108
6109 if test x"$host" != x"$build"; then
6110   ac_tool_prefix=${host_alias}-
6111 else
6112   ac_tool_prefix=
6113 fi
6114
6115 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
6116 case $host_os in
6117 linux-gnu*) ;;
6118 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
6119 esac
6120
6121 case $host_os in
6122 aix3*)
6123   # AIX sometimes has problems with the GCC collect2 program.  For some
6124   # reason, if we set the COLLECT_NAMES environment variable, the problems
6125   # vanish in a puff of smoke.
6126   if test "X${COLLECT_NAMES+set}" != Xset; then
6127     COLLECT_NAMES=
6128     export COLLECT_NAMES
6129   fi
6130   ;;
6131 esac
6132
6133 # Determine commands to create old-style static archives.
6134 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6135 old_postinstall_cmds='chmod 644 $oldlib'
6136 old_postuninstall_cmds=
6137
6138 if test -n "$RANLIB"; then
6139   case $host_os in
6140   openbsd*)
6141     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6142     ;;
6143   *)
6144     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6145     ;;
6146   esac
6147   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6148 fi
6149
6150 # Allow CC to be a program name with arguments.
6151 set dummy $CC
6152 compiler="$2"
6153
6154 ## FIXME: this should be a separate macro
6155 ##
6156 { echo "$as_me:$LINENO: checking for objdir" >&5
6157 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6158 rm -f .libs 2>/dev/null
6159 mkdir .libs 2>/dev/null
6160 if test -d .libs; then
6161   objdir=.libs
6162 else
6163   # MS-DOS does not allow filenames that begin with a dot.
6164   objdir=_libs
6165 fi
6166 rmdir .libs 2>/dev/null
6167 { echo "$as_me:$LINENO: result: $objdir" >&5
6168 echo "${ECHO_T}$objdir" >&6; }
6169 ##
6170 ## END FIXME
6171
6172
6173 ## FIXME: this should be a separate macro
6174 ##
6175
6176 # Check whether --with-pic was given.
6177 if test "${with_pic+set}" = set; then
6178   withval=$with_pic; pic_mode="$withval"
6179 else
6180   pic_mode=default
6181 fi
6182
6183 test -z "$pic_mode" && pic_mode=default
6184
6185 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
6186 # in isolation, and that seeing it set (from the cache) indicates that
6187 # the associated values are set (in the cache) correctly too.
6188 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6189 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6190 if test "${lt_cv_prog_cc_pic+set}" = set; then
6191   echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193    lt_cv_prog_cc_pic=
6194   lt_cv_prog_cc_shlib=
6195   lt_cv_prog_cc_wl=
6196   lt_cv_prog_cc_static=
6197   lt_cv_prog_cc_no_builtin=
6198   lt_cv_prog_cc_can_build_shared=$can_build_shared
6199
6200   if test "$GCC" = yes; then
6201     lt_cv_prog_cc_wl='-Wl,'
6202     lt_cv_prog_cc_static='-static'
6203
6204     case $host_os in
6205     aix*)
6206       # Below there is a dirty hack to force normal static linking with -ldl
6207       # The problem is because libdl dynamically linked with both libc and
6208       # libC (AIX C++ library), which obviously doesn't included in libraries
6209       # list by gcc. This cause undefined symbols with -static flags.
6210       # This hack allows C programs to be linked with "-static -ldl", but
6211       # not sure about C++ programs.
6212       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
6213       ;;
6214     amigaos*)
6215       # FIXME: we need at least 68020 code to build shared libraries, but
6216       # adding the `-m68020' flag to GCC prevents building anything better,
6217       # like `-m68040'.
6218       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
6219       ;;
6220     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6221       # PIC is the default for these OSes.
6222       ;;
6223     darwin* | rhapsody*)
6224       # PIC is the default on this platform
6225       # Common symbols not allowed in MH_DYLIB files
6226       lt_cv_prog_cc_pic='-fno-common'
6227       ;;
6228     cygwin* | mingw* | pw32* | os2*)
6229       # This hack is so that the source file can tell whether it is being
6230       # built for inclusion in a dll (and should export symbols for example).
6231       lt_cv_prog_cc_pic='-DDLL_EXPORT'
6232       ;;
6233     sysv4*MP*)
6234       if test -d /usr/nec; then
6235          lt_cv_prog_cc_pic=-Kconform_pic
6236       fi
6237       ;;
6238     *)
6239       lt_cv_prog_cc_pic='-fPIC'
6240       ;;
6241     esac
6242   else
6243     # PORTME Check for PIC flags for the system compiler.
6244     case $host_os in
6245     aix3* | aix4* | aix5*)
6246       lt_cv_prog_cc_wl='-Wl,'
6247       # All AIX code is PIC.
6248       if test "$host_cpu" = ia64; then
6249         # AIX 5 now supports IA64 processor
6250         lt_cv_prog_cc_static='-Bstatic'
6251       else
6252         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
6253       fi
6254       ;;
6255
6256     hpux9* | hpux10* | hpux11*)
6257       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
6258       lt_cv_prog_cc_wl='-Wl,'
6259       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
6260       lt_cv_prog_cc_pic='+Z'
6261       ;;
6262
6263     irix5* | irix6* | nonstopux*)
6264       lt_cv_prog_cc_wl='-Wl,'
6265       lt_cv_prog_cc_static='-non_shared'
6266       # PIC (with -KPIC) is the default.
6267       ;;
6268
6269     cygwin* | mingw* | pw32* | os2*)
6270       # This hack is so that the source file can tell whether it is being
6271       # built for inclusion in a dll (and should export symbols for example).
6272       lt_cv_prog_cc_pic='-DDLL_EXPORT'
6273       ;;
6274
6275     newsos6)
6276       lt_cv_prog_cc_pic='-KPIC'
6277       lt_cv_prog_cc_static='-Bstatic'
6278       ;;
6279
6280     osf3* | osf4* | osf5*)
6281       # All OSF/1 code is PIC.
6282       lt_cv_prog_cc_wl='-Wl,'
6283       lt_cv_prog_cc_static='-non_shared'
6284       ;;
6285
6286     sco3.2v5*)
6287       lt_cv_prog_cc_pic='-Kpic'
6288       lt_cv_prog_cc_static='-dn'
6289       lt_cv_prog_cc_shlib='-belf'
6290       ;;
6291
6292     solaris*)
6293       lt_cv_prog_cc_pic='-KPIC'
6294       lt_cv_prog_cc_static='-Bstatic'
6295       lt_cv_prog_cc_wl='-Wl,'
6296       ;;
6297
6298     sunos4*)
6299       lt_cv_prog_cc_pic='-PIC'
6300       lt_cv_prog_cc_static='-Bstatic'
6301       lt_cv_prog_cc_wl='-Qoption ld '
6302       ;;
6303
6304     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6305       lt_cv_prog_cc_pic='-KPIC'
6306       lt_cv_prog_cc_static='-Bstatic'
6307       if test "x$host_vendor" = xsni; then
6308         lt_cv_prog_cc_wl='-LD'
6309       else
6310         lt_cv_prog_cc_wl='-Wl,'
6311       fi
6312       ;;
6313
6314     uts4*)
6315       lt_cv_prog_cc_pic='-pic'
6316       lt_cv_prog_cc_static='-Bstatic'
6317       ;;
6318
6319     sysv4*MP*)
6320       if test -d /usr/nec ;then
6321         lt_cv_prog_cc_pic='-Kconform_pic'
6322         lt_cv_prog_cc_static='-Bstatic'
6323       fi
6324       ;;
6325
6326     *)
6327       lt_cv_prog_cc_can_build_shared=no
6328       ;;
6329     esac
6330   fi
6331
6332 fi
6333
6334 if test -z "$lt_cv_prog_cc_pic"; then
6335   { echo "$as_me:$LINENO: result: none" >&5
6336 echo "${ECHO_T}none" >&6; }
6337 else
6338   { echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
6339 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6; }
6340
6341   # Check to make sure the pic_flag actually works.
6342   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
6343 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6; }
6344   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347       save_CFLAGS="$CFLAGS"
6348     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
6349     cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h.  */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h.  */
6355
6356 int
6357 main ()
6358 {
6359
6360   ;
6361   return 0;
6362 }
6363 _ACEOF
6364 rm -f conftest.$ac_objext
6365 if { (ac_try="$ac_compile"
6366 case "(($ac_try" in
6367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368   *) ac_try_echo=$ac_try;;
6369 esac
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371   (eval "$ac_compile") 2>conftest.er1
6372   ac_status=$?
6373   grep -v '^ *+' conftest.er1 >conftest.err
6374   rm -f conftest.er1
6375   cat conftest.err >&5
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); } &&
6378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6379   { (case "(($ac_try" in
6380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381   *) ac_try_echo=$ac_try;;
6382 esac
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384   (eval "$ac_try") 2>&5
6385   ac_status=$?
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); }; } &&
6388          { ac_try='test -s conftest.$ac_objext'
6389   { (case "(($ac_try" in
6390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391   *) ac_try_echo=$ac_try;;
6392 esac
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394   (eval "$ac_try") 2>&5
6395   ac_status=$?
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); }; }; then
6398         case $host_os in
6399       hpux9* | hpux10* | hpux11*)
6400         # On HP-UX, both CC and GCC only warn that PIC is supported... then
6401         # they create non-PIC objects.  So, if there were any warnings, we
6402         # assume that PIC is not supported.
6403         if test -s conftest.err; then
6404           lt_cv_prog_cc_pic_works=no
6405         else
6406           lt_cv_prog_cc_pic_works=yes
6407         fi
6408         ;;
6409       *)
6410         lt_cv_prog_cc_pic_works=yes
6411         ;;
6412       esac
6413
6414 else
6415   echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6417
6418               lt_cv_prog_cc_pic_works=no
6419
6420 fi
6421
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423     CFLAGS="$save_CFLAGS"
6424
6425 fi
6426
6427
6428   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
6429     lt_cv_prog_cc_pic=
6430     lt_cv_prog_cc_can_build_shared=no
6431   else
6432     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
6433   fi
6434
6435   { echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
6436 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6; }
6437 fi
6438 ##
6439 ## END FIXME
6440
6441 # Check for any special shared library compilation flags.
6442 if test -n "$lt_cv_prog_cc_shlib"; then
6443   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
6444 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
6445   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
6446   else
6447    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6448 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6449     lt_cv_prog_cc_can_build_shared=no
6450   fi
6451 fi
6452
6453 ## FIXME: this should be a separate macro
6454 ##
6455 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
6456 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6; }
6457 if test "${lt_cv_prog_cc_static_works+set}" = set; then
6458   echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460     lt_cv_prog_cc_static_works=no
6461   save_LDFLAGS="$LDFLAGS"
6462   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
6463   cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h.  */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h.  */
6469
6470 int
6471 main ()
6472 {
6473
6474   ;
6475   return 0;
6476 }
6477 _ACEOF
6478 rm -f conftest.$ac_objext conftest$ac_exeext
6479 if { (ac_try="$ac_link"
6480 case "(($ac_try" in
6481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482   *) ac_try_echo=$ac_try;;
6483 esac
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485   (eval "$ac_link") 2>conftest.er1
6486   ac_status=$?
6487   grep -v '^ *+' conftest.er1 >conftest.err
6488   rm -f conftest.er1
6489   cat conftest.err >&5
6490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); } &&
6492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6493   { (case "(($ac_try" in
6494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495   *) ac_try_echo=$ac_try;;
6496 esac
6497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498   (eval "$ac_try") 2>&5
6499   ac_status=$?
6500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501   (exit $ac_status); }; } &&
6502          { ac_try='test -s conftest$ac_exeext'
6503   { (case "(($ac_try" in
6504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505   *) ac_try_echo=$ac_try;;
6506 esac
6507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508   (eval "$ac_try") 2>&5
6509   ac_status=$?
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); }; }; then
6512   lt_cv_prog_cc_static_works=yes
6513 else
6514   echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6516
6517
6518 fi
6519
6520 rm -f core conftest.err conftest.$ac_objext \
6521       conftest$ac_exeext conftest.$ac_ext
6522   LDFLAGS="$save_LDFLAGS"
6523
6524 fi
6525
6526
6527 # Belt *and* braces to stop my trousers falling down:
6528 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
6529 { echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
6530 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6; }
6531
6532 pic_flag="$lt_cv_prog_cc_pic"
6533 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
6534 wl="$lt_cv_prog_cc_wl"
6535 link_static_flag="$lt_cv_prog_cc_static"
6536 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
6537 can_build_shared="$lt_cv_prog_cc_can_build_shared"
6538 ##
6539 ## END FIXME
6540
6541
6542 ## FIXME: this should be a separate macro
6543 ##
6544 # Check to see if options -o and -c are simultaneously supported by compiler
6545 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6546 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6547 if test "${lt_cv_compiler_c_o+set}" = set; then
6548   echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550
6551 $rm -r conftest 2>/dev/null
6552 mkdir conftest
6553 cd conftest
6554 echo "int some_variable = 0;" > conftest.$ac_ext
6555 mkdir out
6556 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6557 # that will create temporary files in the current directory regardless of
6558 # the output directory.  Thus, making CWD read-only will cause this test
6559 # to fail, enabling locking or at least warning the user not to do parallel
6560 # builds.
6561 chmod -w .
6562 save_CFLAGS="$CFLAGS"
6563 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6564 compiler_c_o=no
6565 if { (eval echo configure:6565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
6566   # The compiler can only warn and ignore the option if not recognized
6567   # So say no if there are warnings
6568   if test -s out/conftest.err; then
6569     lt_cv_compiler_c_o=no
6570   else
6571     lt_cv_compiler_c_o=yes
6572   fi
6573 else
6574   # Append any errors to the config.log.
6575   cat out/conftest.err 1>&5
6576   lt_cv_compiler_c_o=no
6577 fi
6578 CFLAGS="$save_CFLAGS"
6579 chmod u+w .
6580 $rm conftest* out/*
6581 rmdir out
6582 cd ..
6583 rmdir conftest
6584 $rm -r conftest 2>/dev/null
6585
6586 fi
6587
6588 compiler_c_o=$lt_cv_compiler_c_o
6589 { echo "$as_me:$LINENO: result: $compiler_c_o" >&5
6590 echo "${ECHO_T}$compiler_c_o" >&6; }
6591
6592 if test x"$compiler_c_o" = x"yes"; then
6593   # Check to see if we can write to a .lo
6594   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
6595 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6; }
6596   if test "${lt_cv_compiler_o_lo+set}" = set; then
6597   echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599
6600   lt_cv_compiler_o_lo=no
6601   save_CFLAGS="$CFLAGS"
6602   CFLAGS="$CFLAGS -c -o conftest.lo"
6603   save_objext="$ac_objext"
6604   ac_objext=lo
6605   cat >conftest.$ac_ext <<_ACEOF
6606 /* confdefs.h.  */
6607 _ACEOF
6608 cat confdefs.h >>conftest.$ac_ext
6609 cat >>conftest.$ac_ext <<_ACEOF
6610 /* end confdefs.h.  */
6611
6612 int
6613 main ()
6614 {
6615 int some_variable = 0;
6616   ;
6617   return 0;
6618 }
6619 _ACEOF
6620 rm -f conftest.$ac_objext
6621 if { (ac_try="$ac_compile"
6622 case "(($ac_try" in
6623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624   *) ac_try_echo=$ac_try;;
6625 esac
6626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6627   (eval "$ac_compile") 2>conftest.er1
6628   ac_status=$?
6629   grep -v '^ *+' conftest.er1 >conftest.err
6630   rm -f conftest.er1
6631   cat conftest.err >&5
6632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633   (exit $ac_status); } &&
6634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6635   { (case "(($ac_try" in
6636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6637   *) ac_try_echo=$ac_try;;
6638 esac
6639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6640   (eval "$ac_try") 2>&5
6641   ac_status=$?
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); }; } &&
6644          { ac_try='test -s conftest.$ac_objext'
6645   { (case "(($ac_try" in
6646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647   *) ac_try_echo=$ac_try;;
6648 esac
6649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6650   (eval "$ac_try") 2>&5
6651   ac_status=$?
6652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653   (exit $ac_status); }; }; then
6654       # The compiler can only warn and ignore the option if not recognized
6655     # So say no if there are warnings
6656     if test -s conftest.err; then
6657       lt_cv_compiler_o_lo=no
6658     else
6659       lt_cv_compiler_o_lo=yes
6660     fi
6661
6662 else
6663   echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6665
6666
6667 fi
6668
6669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670   ac_objext="$save_objext"
6671   CFLAGS="$save_CFLAGS"
6672
6673 fi
6674
6675   compiler_o_lo=$lt_cv_compiler_o_lo
6676   { echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6677 echo "${ECHO_T}$compiler_o_lo" >&6; }
6678 else
6679   compiler_o_lo=no
6680 fi
6681 ##
6682 ## END FIXME
6683
6684 ## FIXME: this should be a separate macro
6685 ##
6686 # Check to see if we can do hard links to lock some files if needed
6687 hard_links="nottested"
6688 if test "$compiler_c_o" = no && test "$need_locks" != no; then
6689   # do not overwrite the value of need_locks provided by the user
6690   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6691 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6692   hard_links=yes
6693   $rm conftest*
6694   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6695   touch conftest.a
6696   ln conftest.a conftest.b 2>&5 || hard_links=no
6697   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6698   { echo "$as_me:$LINENO: result: $hard_links" >&5
6699 echo "${ECHO_T}$hard_links" >&6; }
6700   if test "$hard_links" = no; then
6701     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6702 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6703     need_locks=warn
6704   fi
6705 else
6706   need_locks=no
6707 fi
6708 ##
6709 ## END FIXME
6710
6711 ## FIXME: this should be a separate macro
6712 ##
6713 if test "$GCC" = yes; then
6714   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6715   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6716 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6717   echo "int some_variable = 0;" > conftest.$ac_ext
6718   save_CFLAGS="$CFLAGS"
6719   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6720   compiler_rtti_exceptions=no
6721   cat >conftest.$ac_ext <<_ACEOF
6722 /* confdefs.h.  */
6723 _ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h.  */
6727
6728 int
6729 main ()
6730 {
6731 int some_variable = 0;
6732   ;
6733   return 0;
6734 }
6735 _ACEOF
6736 rm -f conftest.$ac_objext
6737 if { (ac_try="$ac_compile"
6738 case "(($ac_try" in
6739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740   *) ac_try_echo=$ac_try;;
6741 esac
6742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743   (eval "$ac_compile") 2>conftest.er1
6744   ac_status=$?
6745   grep -v '^ *+' conftest.er1 >conftest.err
6746   rm -f conftest.er1
6747   cat conftest.err >&5
6748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749   (exit $ac_status); } &&
6750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6751   { (case "(($ac_try" in
6752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6753   *) ac_try_echo=$ac_try;;
6754 esac
6755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6756   (eval "$ac_try") 2>&5
6757   ac_status=$?
6758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759   (exit $ac_status); }; } &&
6760          { ac_try='test -s conftest.$ac_objext'
6761   { (case "(($ac_try" in
6762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6763   *) ac_try_echo=$ac_try;;
6764 esac
6765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6766   (eval "$ac_try") 2>&5
6767   ac_status=$?
6768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); }; }; then
6770       # The compiler can only warn and ignore the option if not recognized
6771     # So say no if there are warnings
6772     if test -s conftest.err; then
6773       compiler_rtti_exceptions=no
6774     else
6775       compiler_rtti_exceptions=yes
6776     fi
6777
6778 else
6779   echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6781
6782
6783 fi
6784
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786   CFLAGS="$save_CFLAGS"
6787   { echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6788 echo "${ECHO_T}$compiler_rtti_exceptions" >&6; }
6789
6790   if test "$compiler_rtti_exceptions" = "yes"; then
6791     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6792   else
6793     no_builtin_flag=' -fno-builtin'
6794   fi
6795 fi
6796 ##
6797 ## END FIXME
6798
6799 ## FIXME: this should be a separate macro
6800 ##
6801 # See if the linker supports building shared libraries.
6802 { echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6803 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6804
6805 allow_undefined_flag=
6806 no_undefined_flag=
6807 need_lib_prefix=unknown
6808 need_version=unknown
6809 # when you set need_version to no, make sure it does not cause -set_version
6810 # flags to be left without arguments
6811 archive_cmds=
6812 archive_expsym_cmds=
6813 old_archive_from_new_cmds=
6814 old_archive_from_expsyms_cmds=
6815 export_dynamic_flag_spec=
6816 whole_archive_flag_spec=
6817 thread_safe_flag_spec=
6818 hardcode_into_libs=no
6819 hardcode_libdir_flag_spec=
6820 hardcode_libdir_separator=
6821 hardcode_direct=no
6822 hardcode_minus_L=no
6823 hardcode_shlibpath_var=unsupported
6824 runpath_var=
6825 link_all_deplibs=unknown
6826 always_export_symbols=no
6827 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6828 # include_expsyms should be a list of space-separated symbols to be *always*
6829 # included in the symbol list
6830 include_expsyms=
6831 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6832 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6833 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6834 # as well as any symbol that contains `d'.
6835 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6836 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6837 # platforms (ab)use it in PIC code, but their linkers get confused if
6838 # the symbol is explicitly referenced.  Since portable code cannot
6839 # rely on this symbol name, it's probably fine to never include it in
6840 # preloaded symbol tables.
6841 extract_expsyms_cmds=
6842
6843 case $host_os in
6844 cygwin* | mingw* | pw32*)
6845   # FIXME: the MSVC++ port hasn't been tested in a loooong time
6846   # When not using gcc, we currently assume that we are using
6847   # Microsoft Visual C++.
6848   if test "$GCC" != yes; then
6849     with_gnu_ld=no
6850   fi
6851   ;;
6852 openbsd*)
6853   with_gnu_ld=no
6854   ;;
6855 esac
6856
6857 ld_shlibs=yes
6858 if test "$with_gnu_ld" = yes; then
6859   # If archive_cmds runs LD, not CC, wlarc should be empty
6860   wlarc='${wl}'
6861
6862   # See if GNU ld supports shared libraries.
6863   case $host_os in
6864   aix3* | aix4* | aix5*)
6865     # On AIX, the GNU linker is very broken
6866     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6867     ld_shlibs=no
6868     cat <<EOF 1>&2
6869
6870 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6871 *** to be unable to reliably create shared libraries on AIX.
6872 *** Therefore, libtool is disabling shared libraries support.  If you
6873 *** really care for shared libraries, you may want to modify your PATH
6874 *** so that a non-GNU linker is found, and then restart.
6875
6876 EOF
6877     ;;
6878
6879   amigaos*)
6880     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)'
6881     hardcode_libdir_flag_spec='-L$libdir'
6882     hardcode_minus_L=yes
6883
6884     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6885     # that the semantics of dynamic libraries on AmigaOS, at least up
6886     # to version 4, is to share data among multiple programs linked
6887     # with the same dynamic library.  Since this doesn't match the
6888     # behavior of shared libraries on other platforms, we can use
6889     # them.
6890     ld_shlibs=no
6891     ;;
6892
6893   beos*)
6894     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6895       allow_undefined_flag=unsupported
6896       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6897       # support --undefined.  This deserves some investigation.  FIXME
6898       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6899     else
6900       ld_shlibs=no
6901     fi
6902     ;;
6903
6904   cygwin* | mingw* | pw32*)
6905     # hardcode_libdir_flag_spec is actually meaningless, as there is
6906     # no search path for DLLs.
6907     hardcode_libdir_flag_spec='-L$libdir'
6908     allow_undefined_flag=unsupported
6909     always_export_symbols=yes
6910
6911     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6912       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6913       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6914       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6915       else $CC -o impgen impgen.c ; fi)~
6916       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6917
6918     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6919
6920     # cygwin and mingw dlls have different entry points and sets of symbols
6921     # to exclude.
6922     # FIXME: what about values for MSVC?
6923     dll_entry=__cygwin_dll_entry@12
6924     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6925     case $host_os in
6926     mingw*)
6927       # mingw values
6928       dll_entry=_DllMainCRTStartup@12
6929       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6930       ;;
6931     esac
6932
6933     # mingw and cygwin differ, and it's simplest to just exclude the union
6934     # of the two symbol sets.
6935     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6936
6937     # recent cygwin and mingw systems supply a stub DllMain which the user
6938     # can override, but on older systems we have to supply one (in ltdll.c)
6939     if test "x$lt_cv_need_dllmain" = "xyes"; then
6940       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6941       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~
6942         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6943     else
6944       ltdll_obj=
6945       ltdll_cmds=
6946     fi
6947
6948     # Extract the symbol export list from an `--export-all' def file,
6949     # then regenerate the def file from the symbol export list, so that
6950     # the compiled dll only exports the symbol export list.
6951     # Be careful not to strip the DATA tag left be newer dlltools.
6952     export_symbols_cmds="$ltdll_cmds"'
6953       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6954       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6955
6956     # If the export-symbols file already is a .def file (1st line
6957     # is EXPORTS), use it as is.
6958     # If DATA tags from a recent dlltool are present, honour them!
6959     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6960         cp $export_symbols $output_objdir/$soname-def;
6961       else
6962         echo EXPORTS > $output_objdir/$soname-def;
6963         _lt_hint=1;
6964         cat $export_symbols | while read symbol; do
6965          set dummy \$symbol;
6966          case \$# in
6967            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6968            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6969          esac;
6970          _lt_hint=`expr 1 + \$_lt_hint`;
6971         done;
6972       fi~
6973       '"$ltdll_cmds"'
6974       $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~
6975       $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~
6976       $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~
6977       $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~
6978       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6979     ;;
6980
6981   netbsd*)
6982     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6983       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6984       wlarc=
6985     else
6986       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6987       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6988     fi
6989     ;;
6990
6991   solaris* | sysv5*)
6992     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6993       ld_shlibs=no
6994       cat <<EOF 1>&2
6995
6996 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6997 *** create shared libraries on Solaris systems.  Therefore, libtool
6998 *** is disabling shared libraries support.  We urge you to upgrade GNU
6999 *** binutils to release 2.9.1 or newer.  Another option is to modify
7000 *** your PATH or compiler configuration so that the native linker is
7001 *** used, and then restart.
7002
7003 EOF
7004     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7005       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7006       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7007     else
7008       ld_shlibs=no
7009     fi
7010     ;;
7011
7012   sunos4*)
7013     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7014     wlarc=
7015     hardcode_direct=yes
7016     hardcode_shlibpath_var=no
7017     ;;
7018
7019   *)
7020     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7021       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7022       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7023     else
7024       ld_shlibs=no
7025     fi
7026     ;;
7027   esac
7028
7029   if test "$ld_shlibs" = yes; then
7030     runpath_var=LD_RUN_PATH
7031     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7032     export_dynamic_flag_spec='${wl}--export-dynamic'
7033     case $host_os in
7034     cygwin* | mingw* | pw32*)
7035       # dlltool doesn't understand --whole-archive et. al.
7036       whole_archive_flag_spec=
7037       ;;
7038     *)
7039       # ancient GNU ld didn't support --whole-archive et. al.
7040       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
7041         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7042       else
7043         whole_archive_flag_spec=
7044       fi
7045       ;;
7046     esac
7047   fi
7048 else
7049   # PORTME fill in a description of your system's linker (not GNU ld)
7050   case $host_os in
7051   aix3*)
7052     allow_undefined_flag=unsupported
7053     always_export_symbols=yes
7054     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'
7055     # Note: this linker hardcodes the directories in LIBPATH if there
7056     # are no directories specified by -L.
7057     hardcode_minus_L=yes
7058     if test "$GCC" = yes && test -z "$link_static_flag"; then
7059       # Neither direct hardcoding nor static linking is supported with a
7060       # broken collect2.
7061       hardcode_direct=unsupported
7062     fi
7063     ;;
7064
7065   aix4* | aix5*)
7066     if test "$host_cpu" = ia64; then
7067       # On IA64, the linker does run time linking by default, so we don't
7068       # have to do anything special.
7069       aix_use_runtimelinking=no
7070       exp_sym_flag='-Bexport'
7071       no_entry_flag=""
7072     else
7073       aix_use_runtimelinking=no
7074
7075       # Test if we are trying to use run time linking or normal
7076       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7077       # need to do runtime linking.
7078       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7079         for ld_flag in $LDFLAGS; do
7080           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7081             aix_use_runtimelinking=yes
7082             break
7083           fi
7084         done
7085       esac
7086
7087       exp_sym_flag='-bexport'
7088       no_entry_flag='-bnoentry'
7089     fi
7090
7091     # When large executables or shared objects are built, AIX ld can
7092     # have problems creating the table of contents.  If linking a library
7093     # or program results in "error TOC overflow" add -mminimal-toc to
7094     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7095     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7096
7097     hardcode_direct=yes
7098     archive_cmds=''
7099     hardcode_libdir_separator=':'
7100     if test "$GCC" = yes; then
7101       case $host_os in aix4.[012]|aix4.[012].*)
7102         collect2name=`${CC} -print-prog-name=collect2`
7103         if test -f "$collect2name" && \
7104           strings "$collect2name" | grep resolve_lib_name >/dev/null
7105         then
7106           # We have reworked collect2
7107           hardcode_direct=yes
7108         else
7109           # We have old collect2
7110           hardcode_direct=unsupported
7111           # It fails to find uninstalled libraries when the uninstalled
7112           # path is not listed in the libpath.  Setting hardcode_minus_L
7113           # to unsupported forces relinking
7114           hardcode_minus_L=yes
7115           hardcode_libdir_flag_spec='-L$libdir'
7116           hardcode_libdir_separator=
7117         fi
7118       esac
7119
7120       shared_flag='-shared'
7121     else
7122       # not using gcc
7123       if test "$host_cpu" = ia64; then
7124         shared_flag='${wl}-G'
7125       else
7126         if test "$aix_use_runtimelinking" = yes; then
7127           shared_flag='${wl}-G'
7128         else
7129           shared_flag='${wl}-bM:SRE'
7130         fi
7131       fi
7132     fi
7133
7134     # It seems that -bexpall can do strange things, so it is better to
7135     # generate a list of symbols to export.
7136     always_export_symbols=yes
7137     if test "$aix_use_runtimelinking" = yes; then
7138       # Warning - without using the other runtime loading flags (-brtl),
7139       # -berok will link without error, but may produce a broken library.
7140       allow_undefined_flag='-berok'
7141       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
7142       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"
7143     else
7144       if test "$host_cpu" = ia64; then
7145         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7146         allow_undefined_flag="-z nodefs"
7147         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"
7148       else
7149         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
7150         # Warning - without using the other run time loading flags,
7151         # -berok will link without error, but may produce a broken library.
7152         allow_undefined_flag='${wl}-berok'
7153         # This is a bit strange, but is similar to how AIX traditionally builds
7154         # it's shared libraries.
7155         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'
7156       fi
7157     fi
7158     ;;
7159
7160   amigaos*)
7161     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)'
7162     hardcode_libdir_flag_spec='-L$libdir'
7163     hardcode_minus_L=yes
7164     # see comment about different semantics on the GNU ld section
7165     ld_shlibs=no
7166     ;;
7167
7168   cygwin* | mingw* | pw32*)
7169     # When not using gcc, we currently assume that we are using
7170     # Microsoft Visual C++.
7171     # hardcode_libdir_flag_spec is actually meaningless, as there is
7172     # no search path for DLLs.
7173     hardcode_libdir_flag_spec=' '
7174     allow_undefined_flag=unsupported
7175     # Tell ltmain to make .lib files, not .a files.
7176     libext=lib
7177     # FIXME: Setting linknames here is a bad hack.
7178     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7179     # The linker will automatically build a .lib file if we build a DLL.
7180     old_archive_from_new_cmds='true'
7181     # FIXME: Should let the user specify the lib program.
7182     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7183     fix_srcfile_path='`cygpath -w "$srcfile"`'
7184     ;;
7185
7186   darwin* | rhapsody*)
7187     case "$host_os" in
7188     rhapsody* | darwin1.[012])
7189       allow_undefined_flag='-undefined suppress'
7190       ;;
7191     *) # Darwin 1.3 on
7192       allow_undefined_flag='-flat_namespace -undefined suppress'
7193       ;;
7194     esac
7195     # FIXME: Relying on posixy $() will cause problems for
7196     #        cross-compilation, but unfortunately the echo tests do not
7197     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7198     #        `"' quotes if we put them in here... so don't!
7199     archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
7200     # We need to add '_' to the symbols in $export_symbols first
7201     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
7202     hardcode_direct=yes
7203     hardcode_shlibpath_var=no
7204     whole_archive_flag_spec='-all_load $convenience'
7205     ;;
7206
7207   freebsd1*)
7208     ld_shlibs=no
7209     ;;
7210
7211   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7212   # support.  Future versions do this automatically, but an explicit c++rt0.o
7213   # does not break anything, and helps significantly (at the cost of a little
7214   # extra space).
7215   freebsd2.2*)
7216     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7217     hardcode_libdir_flag_spec='-R$libdir'
7218     hardcode_direct=yes
7219     hardcode_shlibpath_var=no
7220     ;;
7221
7222   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7223   freebsd2*)
7224     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7225     hardcode_direct=yes
7226     hardcode_minus_L=yes
7227     hardcode_shlibpath_var=no
7228     ;;
7229
7230   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7231   freebsd*)
7232     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7233     hardcode_libdir_flag_spec='-R$libdir'
7234     hardcode_direct=yes
7235     hardcode_shlibpath_var=no
7236     ;;
7237
7238   hpux9* | hpux10* | hpux11*)
7239     case $host_os in
7240     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' ;;
7241     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
7242     esac
7243     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7244     hardcode_libdir_separator=:
7245     hardcode_direct=yes
7246     hardcode_minus_L=yes # Not in the search PATH, but as the default
7247                          # location of the library.
7248     export_dynamic_flag_spec='${wl}-E'
7249     ;;
7250
7251   irix5* | irix6* | nonstopux*)
7252     if test "$GCC" = yes; then
7253       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'
7254     else
7255       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'
7256     fi
7257     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7258     hardcode_libdir_separator=:
7259     link_all_deplibs=yes
7260     ;;
7261
7262   netbsd*)
7263     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7264       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7265     else
7266       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7267     fi
7268     hardcode_libdir_flag_spec='-R$libdir'
7269     hardcode_direct=yes
7270     hardcode_shlibpath_var=no
7271     ;;
7272
7273   newsos6)
7274     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7275     hardcode_direct=yes
7276     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7277     hardcode_libdir_separator=:
7278     hardcode_shlibpath_var=no
7279     ;;
7280
7281   openbsd*)
7282     hardcode_direct=yes
7283     hardcode_shlibpath_var=no
7284     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7285       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
7286       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7287       export_dynamic_flag_spec='${wl}-E'
7288     else
7289       case "$host_os" in
7290       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7291         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7292         hardcode_libdir_flag_spec='-R$libdir'
7293         ;;
7294       *)
7295         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
7296         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7297         ;;
7298       esac
7299     fi
7300     ;;
7301
7302   os2*)
7303     hardcode_libdir_flag_spec='-L$libdir'
7304     hardcode_minus_L=yes
7305     allow_undefined_flag=unsupported
7306     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'
7307     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7308     ;;
7309
7310   osf3*)
7311     if test "$GCC" = yes; then
7312       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7313       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'
7314     else
7315       allow_undefined_flag=' -expect_unresolved \*'
7316       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'
7317     fi
7318     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7319     hardcode_libdir_separator=:
7320     ;;
7321
7322   osf4* | osf5*)        # as osf3* with the addition of -msym flag
7323     if test "$GCC" = yes; then
7324       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7325       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'
7326       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7327     else
7328       allow_undefined_flag=' -expect_unresolved \*'
7329       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'
7330       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7331       $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'
7332
7333       #Both c and cxx compiler support -rpath directly
7334       hardcode_libdir_flag_spec='-rpath $libdir'
7335     fi
7336     hardcode_libdir_separator=:
7337     ;;
7338
7339   sco3.2v5*)
7340     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7341     hardcode_shlibpath_var=no
7342     runpath_var=LD_RUN_PATH
7343     hardcode_runpath_var=yes
7344     export_dynamic_flag_spec='${wl}-Bexport'
7345     ;;
7346
7347   solaris*)
7348     # gcc --version < 3.0 without binutils cannot create self contained
7349     # shared libraries reliably, requiring libgcc.a to resolve some of
7350     # the object symbols generated in some cases.  Libraries that use
7351     # assert need libgcc.a to resolve __eprintf, for example.  Linking
7352     # a copy of libgcc.a into every shared library to guarantee resolving
7353     # such symbols causes other problems:  According to Tim Van Holder
7354     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
7355     # (to the application) exception stack for one thing.
7356     no_undefined_flag=' -z defs'
7357     if test "$GCC" = yes; then
7358       case `$CC --version 2>/dev/null` in
7359       [12].*)
7360         cat <<EOF 1>&2
7361
7362 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
7363 *** create self contained shared libraries on Solaris systems, without
7364 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
7365 *** -no-undefined support, which will at least allow you to build shared
7366 *** libraries.  However, you may find that when you link such libraries
7367 *** into an application without using GCC, you have to manually add
7368 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
7369 *** upgrade to a newer version of GCC.  Another option is to rebuild your
7370 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
7371
7372 EOF
7373         no_undefined_flag=
7374         ;;
7375       esac
7376     fi
7377     # $CC -shared without GNU ld will not create a library from C++
7378     # object files and a static libstdc++, better avoid it by now
7379     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7380     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7381                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7382     hardcode_libdir_flag_spec='-R$libdir'
7383     hardcode_shlibpath_var=no
7384     case $host_os in
7385     solaris2.[0-5] | solaris2.[0-5].*) ;;
7386     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7387       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7388     esac
7389     link_all_deplibs=yes
7390     ;;
7391
7392   sunos4*)
7393     if test "x$host_vendor" = xsequent; then
7394       # Use $CC to link under sequent, because it throws in some extra .o
7395       # files that make .init and .fini sections work.
7396       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7397     else
7398       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7399     fi
7400     hardcode_libdir_flag_spec='-L$libdir'
7401     hardcode_direct=yes
7402     hardcode_minus_L=yes
7403     hardcode_shlibpath_var=no
7404     ;;
7405
7406   sysv4)
7407     if test "x$host_vendor" = xsno; then
7408       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
7409       hardcode_direct=yes # is this really true???
7410     else
7411       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7412       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7413     fi
7414     runpath_var='LD_RUN_PATH'
7415     hardcode_shlibpath_var=no
7416     ;;
7417
7418   sysv4.3*)
7419     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7420     hardcode_shlibpath_var=no
7421     export_dynamic_flag_spec='-Bexport'
7422     ;;
7423
7424   sysv5*)
7425     no_undefined_flag=' -z text'
7426     # $CC -shared without GNU ld will not create a library from C++
7427     # object files and a static libstdc++, better avoid it by now
7428     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7429     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7430                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7431     hardcode_libdir_flag_spec=
7432     hardcode_shlibpath_var=no
7433     runpath_var='LD_RUN_PATH'
7434     ;;
7435
7436   uts4*)
7437     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7438     hardcode_libdir_flag_spec='-L$libdir'
7439     hardcode_shlibpath_var=no
7440     ;;
7441
7442   dgux*)
7443     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7444     hardcode_libdir_flag_spec='-L$libdir'
7445     hardcode_shlibpath_var=no
7446     ;;
7447
7448   sysv4*MP*)
7449     if test -d /usr/nec; then
7450       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7451       hardcode_shlibpath_var=no
7452       runpath_var=LD_RUN_PATH
7453       hardcode_runpath_var=yes
7454       ld_shlibs=yes
7455     fi
7456     ;;
7457
7458   sysv4.2uw2*)
7459     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7460     hardcode_direct=yes
7461     hardcode_minus_L=no
7462     hardcode_shlibpath_var=no
7463     hardcode_runpath_var=yes
7464     runpath_var=LD_RUN_PATH
7465     ;;
7466
7467   sysv5uw7* | unixware7*)
7468     no_undefined_flag='${wl}-z ${wl}text'
7469     if test "$GCC" = yes; then
7470       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7471     else
7472       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7473     fi
7474     runpath_var='LD_RUN_PATH'
7475     hardcode_shlibpath_var=no
7476     ;;
7477
7478   *)
7479     ld_shlibs=no
7480     ;;
7481   esac
7482 fi
7483 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7484 echo "${ECHO_T}$ld_shlibs" >&6; }
7485 test "$ld_shlibs" = no && can_build_shared=no
7486 ##
7487 ## END FIXME
7488
7489 ## FIXME: this should be a separate macro
7490 ##
7491 # Check hardcoding attributes.
7492 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7493 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
7494 hardcode_action=
7495 if test -n "$hardcode_libdir_flag_spec" || \
7496    test -n "$runpath_var"; then
7497
7498   # We can hardcode non-existant directories.
7499   if test "$hardcode_direct" != no &&
7500      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7501      # have to relink, otherwise we might link with an installed library
7502      # when we should be linking with a yet-to-be-installed one
7503      ## test "$hardcode_shlibpath_var" != no &&
7504      test "$hardcode_minus_L" != no; then
7505     # Linking always hardcodes the temporary library directory.
7506     hardcode_action=relink
7507   else
7508     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7509     hardcode_action=immediate
7510   fi
7511 else
7512   # We cannot hardcode anything, or else we can only hardcode existing
7513   # directories.
7514   hardcode_action=unsupported
7515 fi
7516 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
7517 echo "${ECHO_T}$hardcode_action" >&6; }
7518 ##
7519 ## END FIXME
7520
7521 ## FIXME: this should be a separate macro
7522 ##
7523 striplib=
7524 old_striplib=
7525 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7526 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
7527 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7528   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7529   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7530   { echo "$as_me:$LINENO: result: yes" >&5
7531 echo "${ECHO_T}yes" >&6; }
7532 else
7533   { echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6; }
7535 fi
7536 ##
7537 ## END FIXME
7538
7539 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7540 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7541
7542 ## FIXME: this should be a separate macro
7543 ##
7544 # PORTME Fill in your ld.so characteristics
7545 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7546 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7547 library_names_spec=
7548 libname_spec='lib$name'
7549 soname_spec=
7550 postinstall_cmds=
7551 postuninstall_cmds=
7552 finish_cmds=
7553 finish_eval=
7554 shlibpath_var=
7555 shlibpath_overrides_runpath=unknown
7556 version_type=none
7557 dynamic_linker="$host_os ld.so"
7558 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7559 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7560
7561 case $host_os in
7562 aix3*)
7563   version_type=linux
7564   library_names_spec='${libname}${release}.so$versuffix $libname.a'
7565   shlibpath_var=LIBPATH
7566
7567   # AIX has no versioning support, so we append a major version to the name.
7568   soname_spec='${libname}${release}.so$major'
7569   ;;
7570
7571 aix4* | aix5*)
7572   version_type=linux
7573   if test "$host_cpu" = ia64; then
7574     # AIX 5 supports IA64
7575     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7576     shlibpath_var=LD_LIBRARY_PATH
7577   else
7578     # With GCC up to 2.95.x, collect2 would create an import file
7579     # for dependence libraries.  The import file would start with
7580     # the line `#! .'.  This would cause the generated library to
7581     # depend on `.', always an invalid library.  This was fixed in
7582     # development snapshots of GCC prior to 3.0.
7583     case $host_os in
7584       aix4 | aix4.[01] | aix4.[01].*)
7585         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7586              echo ' yes '
7587              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7588           :
7589         else
7590           can_build_shared=no
7591         fi
7592         ;;
7593     esac
7594     # AIX (on Power*) has no versioning support, so currently we can
7595     # not hardcode correct soname into executable. Probably we can
7596     # add versioning support to collect2, so additional links can
7597     # be useful in future.
7598     if test "$aix_use_runtimelinking" = yes; then
7599       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7600       # instead of lib<name>.a to let people know that these are not
7601       # typical AIX shared libraries.
7602       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7603     else
7604       # We preserve .a as extension for shared libraries through AIX4.2
7605       # and later when we are not doing run time linking.
7606       library_names_spec='${libname}${release}.a $libname.a'
7607       soname_spec='${libname}${release}.so$major'
7608     fi
7609     shlibpath_var=LIBPATH
7610   fi
7611   ;;
7612
7613 amigaos*)
7614   library_names_spec='$libname.ixlibrary $libname.a'
7615   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7616   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'
7617   ;;
7618
7619 beos*)
7620   library_names_spec='${libname}.so'
7621   dynamic_linker="$host_os ld.so"
7622   shlibpath_var=LIBRARY_PATH
7623   ;;
7624
7625 bsdi4*)
7626   version_type=linux
7627   need_version=no
7628   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7629   soname_spec='${libname}${release}.so$major'
7630   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7631   shlibpath_var=LD_LIBRARY_PATH
7632   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7633   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7634   export_dynamic_flag_spec=-rdynamic
7635   # the default ld.so.conf also contains /usr/contrib/lib and
7636   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7637   # libtool to hard-code these into programs
7638   ;;
7639
7640 cygwin* | mingw* | pw32*)
7641   version_type=windows
7642   need_version=no
7643   need_lib_prefix=no
7644   case $GCC,$host_os in
7645   yes,cygwin*)
7646     library_names_spec='$libname.dll.a'
7647     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7648     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7649       dldir=$destdir/`dirname \$dlpath`~
7650       test -d \$dldir || mkdir -p \$dldir~
7651       $install_prog .libs/$dlname \$dldir/$dlname'
7652     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7653       dlpath=$dir/\$dldll~
7654        $rm \$dlpath'
7655     ;;
7656   yes,mingw*)
7657     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7658     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
7659     ;;
7660   yes,pw32*)
7661     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7662     ;;
7663   *)
7664     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7665     ;;
7666   esac
7667   dynamic_linker='Win32 ld.exe'
7668   # FIXME: first we should search . and the directory the executable is in
7669   shlibpath_var=PATH
7670   ;;
7671
7672 darwin* | rhapsody*)
7673   dynamic_linker="$host_os dyld"
7674   version_type=darwin
7675   need_lib_prefix=no
7676   need_version=no
7677   # FIXME: Relying on posixy $() will cause problems for
7678   #        cross-compilation, but unfortunately the echo tests do not
7679   #        yet detect zsh echo's removal of \ escapes.
7680   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)'
7681   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7682   shlibpath_overrides_runpath=yes
7683   shlibpath_var=DYLD_LIBRARY_PATH
7684   ;;
7685
7686 freebsd1*)
7687   dynamic_linker=no
7688   ;;
7689
7690 freebsd*)
7691   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7692   version_type=freebsd-$objformat
7693   case $version_type in
7694     freebsd-elf*)
7695       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7696       need_version=no
7697       need_lib_prefix=no
7698       ;;
7699     freebsd-*)
7700       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7701       need_version=yes
7702       ;;
7703   esac
7704   shlibpath_var=LD_LIBRARY_PATH
7705   case $host_os in
7706   freebsd2*)
7707     shlibpath_overrides_runpath=yes
7708     ;;
7709   *)
7710     shlibpath_overrides_runpath=no
7711     hardcode_into_libs=yes
7712     ;;
7713   esac
7714   ;;
7715
7716 gnu*)
7717   version_type=linux
7718   need_lib_prefix=no
7719   need_version=no
7720   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7721   soname_spec='${libname}${release}.so$major'
7722   shlibpath_var=LD_LIBRARY_PATH
7723   hardcode_into_libs=yes
7724   ;;
7725
7726 hpux9* | hpux10* | hpux11*)
7727   # Give a soname corresponding to the major version so that dld.sl refuses to
7728   # link against other versions.
7729   dynamic_linker="$host_os dld.sl"
7730   version_type=sunos
7731   need_lib_prefix=no
7732   need_version=no
7733   shlibpath_var=SHLIB_PATH
7734   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7735   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7736   soname_spec='${libname}${release}.sl$major'
7737   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7738   postinstall_cmds='chmod 555 $lib'
7739   ;;
7740
7741 irix5* | irix6* | nonstopux*)
7742   case $host_os in
7743     nonstopux*) version_type=nonstopux ;;
7744     *)          version_type=irix ;;
7745   esac
7746   need_lib_prefix=no
7747   need_version=no
7748   soname_spec='${libname}${release}.so$major'
7749   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7750   case $host_os in
7751   irix5* | nonstopux*)
7752     libsuff= shlibsuff=
7753     ;;
7754   *)
7755     case $LD in # libtool.m4 will add one of these switches to LD
7756     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7757     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7758     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7759     *) libsuff= shlibsuff= libmagic=never-match;;
7760     esac
7761     ;;
7762   esac
7763   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7764   shlibpath_overrides_runpath=no
7765   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7766   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7767   ;;
7768
7769 # No shared lib support for Linux oldld, aout, or coff.
7770 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7771   dynamic_linker=no
7772   ;;
7773
7774 # This must be Linux ELF.
7775 linux-gnu*)
7776   version_type=linux
7777   need_lib_prefix=no
7778   need_version=no
7779   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7780   soname_spec='${libname}${release}.so$major'
7781   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7782   shlibpath_var=LD_LIBRARY_PATH
7783   shlibpath_overrides_runpath=no
7784   # This implies no fast_install, which is unacceptable.
7785   # Some rework will be needed to allow for fast_install
7786   # before this can be enabled.
7787   hardcode_into_libs=yes
7788
7789   # We used to test for /lib/ld.so.1 and disable shared libraries on
7790   # powerpc, because MkLinux only supported shared libraries with the
7791   # GNU dynamic linker.  Since this was broken with cross compilers,
7792   # most powerpc-linux boxes support dynamic linking these days and
7793   # people can always --disable-shared, the test was removed, and we
7794   # assume the GNU/Linux dynamic linker is in use.
7795   dynamic_linker='GNU/Linux ld.so'
7796   ;;
7797
7798 netbsd*)
7799   version_type=sunos
7800   need_lib_prefix=no
7801   need_version=no
7802   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7803     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7804     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7805     dynamic_linker='NetBSD (a.out) ld.so'
7806   else
7807     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7808     soname_spec='${libname}${release}.so$major'
7809     dynamic_linker='NetBSD ld.elf_so'
7810   fi
7811   shlibpath_var=LD_LIBRARY_PATH
7812   shlibpath_overrides_runpath=yes
7813   hardcode_into_libs=yes
7814   ;;
7815
7816 newsos6)
7817   version_type=linux
7818   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7819   shlibpath_var=LD_LIBRARY_PATH
7820   shlibpath_overrides_runpath=yes
7821   ;;
7822
7823 openbsd*)
7824   version_type=sunos
7825   need_lib_prefix=no
7826   need_version=no
7827   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7828     case "$host_os" in
7829     openbsd2.[89] | openbsd2.[89].*)
7830       shlibpath_overrides_runpath=no
7831       ;;
7832     *)
7833       shlibpath_overrides_runpath=yes
7834       ;;
7835     esac
7836   else
7837     shlibpath_overrides_runpath=yes
7838   fi
7839   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7840   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7841   shlibpath_var=LD_LIBRARY_PATH
7842   ;;
7843
7844 os2*)
7845   libname_spec='$name'
7846   need_lib_prefix=no
7847   library_names_spec='$libname.dll $libname.a'
7848   dynamic_linker='OS/2 ld.exe'
7849   shlibpath_var=LIBPATH
7850   ;;
7851
7852 osf3* | osf4* | osf5*)
7853   version_type=osf
7854   need_version=no
7855   soname_spec='${libname}${release}.so'
7856   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7857   shlibpath_var=LD_LIBRARY_PATH
7858   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7859   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7860   ;;
7861
7862 sco3.2v5*)
7863   version_type=osf
7864   soname_spec='${libname}${release}.so$major'
7865   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7866   shlibpath_var=LD_LIBRARY_PATH
7867   ;;
7868
7869 solaris*)
7870   version_type=linux
7871   need_lib_prefix=no
7872   need_version=no
7873   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7874   soname_spec='${libname}${release}.so$major'
7875   shlibpath_var=LD_LIBRARY_PATH
7876   shlibpath_overrides_runpath=yes
7877   hardcode_into_libs=yes
7878   # ldd complains unless libraries are executable
7879   postinstall_cmds='chmod +x $lib'
7880   ;;
7881
7882 sunos4*)
7883   version_type=sunos
7884   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7885   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7886   shlibpath_var=LD_LIBRARY_PATH
7887   shlibpath_overrides_runpath=yes
7888   if test "$with_gnu_ld" = yes; then
7889     need_lib_prefix=no
7890   fi
7891   need_version=yes
7892   ;;
7893
7894 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7895   version_type=linux
7896   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7897   soname_spec='${libname}${release}.so$major'
7898   shlibpath_var=LD_LIBRARY_PATH
7899   case $host_vendor in
7900     sni)
7901       shlibpath_overrides_runpath=no
7902       ;;
7903     motorola)
7904       need_lib_prefix=no
7905       need_version=no
7906       shlibpath_overrides_runpath=no
7907       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7908       ;;
7909   esac
7910   ;;
7911
7912 uts4*)
7913   version_type=linux
7914   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7915   soname_spec='${libname}${release}.so$major'
7916   shlibpath_var=LD_LIBRARY_PATH
7917   ;;
7918
7919 dgux*)
7920   version_type=linux
7921   need_lib_prefix=no
7922   need_version=no
7923   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7924   soname_spec='${libname}${release}.so$major'
7925   shlibpath_var=LD_LIBRARY_PATH
7926   ;;
7927
7928 sysv4*MP*)
7929   if test -d /usr/nec ;then
7930     version_type=linux
7931     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7932     soname_spec='$libname.so.$major'
7933     shlibpath_var=LD_LIBRARY_PATH
7934   fi
7935   ;;
7936
7937 *)
7938   dynamic_linker=no
7939   ;;
7940 esac
7941 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7942 echo "${ECHO_T}$dynamic_linker" >&6; }
7943 test "$dynamic_linker" = no && can_build_shared=no
7944 ##
7945 ## END FIXME
7946
7947 ## FIXME: this should be a separate macro
7948 ##
7949 # Report the final consequences.
7950 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7951 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
7952 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
7953 echo "${ECHO_T}$can_build_shared" >&6; }
7954 ##
7955 ## END FIXME
7956
7957 ## FIXME: this should be a separate macro
7958 ##
7959 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7960 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
7961 test "$can_build_shared" = "no" && enable_shared=no
7962
7963 # On AIX, shared libraries and static libraries use the same namespace, and
7964 # are all built from PIC.
7965 case "$host_os" in
7966 aix3*)
7967   test "$enable_shared" = yes && enable_static=no
7968   if test -n "$RANLIB"; then
7969     archive_cmds="$archive_cmds~\$RANLIB \$lib"
7970     postinstall_cmds='$RANLIB $lib'
7971   fi
7972   ;;
7973
7974 aix4*)
7975   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7976     test "$enable_shared" = yes && enable_static=no
7977   fi
7978   ;;
7979 esac
7980 { echo "$as_me:$LINENO: result: $enable_shared" >&5
7981 echo "${ECHO_T}$enable_shared" >&6; }
7982 ##
7983 ## END FIXME
7984
7985 ## FIXME: this should be a separate macro
7986 ##
7987 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7988 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
7989 # Make sure either enable_shared or enable_static is yes.
7990 test "$enable_shared" = yes || enable_static=yes
7991 { echo "$as_me:$LINENO: result: $enable_static" >&5
7992 echo "${ECHO_T}$enable_static" >&6; }
7993 ##
7994 ## END FIXME
7995
7996 if test "$hardcode_action" = relink; then
7997   # Fast installation is not supported
7998   enable_fast_install=no
7999 elif test "$shlibpath_overrides_runpath" = yes ||
8000      test "$enable_shared" = no; then
8001   # Fast installation is not necessary
8002   enable_fast_install=needless
8003 fi
8004
8005 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8006 if test "$GCC" = yes; then
8007   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8008 fi
8009
8010 if test "x$enable_dlopen" != xyes; then
8011   enable_dlopen=unknown
8012   enable_dlopen_self=unknown
8013   enable_dlopen_self_static=unknown
8014 else
8015   lt_cv_dlopen=no
8016   lt_cv_dlopen_libs=
8017
8018   case $host_os in
8019   beos*)
8020     lt_cv_dlopen="load_add_on"
8021     lt_cv_dlopen_libs=
8022     lt_cv_dlopen_self=yes
8023     ;;
8024
8025   cygwin* | mingw* | pw32*)
8026     lt_cv_dlopen="LoadLibrary"
8027     lt_cv_dlopen_libs=
8028    ;;
8029
8030   *)
8031     { echo "$as_me:$LINENO: checking for shl_load" >&5
8032 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8033 if test "${ac_cv_func_shl_load+set}" = set; then
8034   echo $ECHO_N "(cached) $ECHO_C" >&6
8035 else
8036   cat >conftest.$ac_ext <<_ACEOF
8037 /* confdefs.h.  */
8038 _ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h.  */
8042 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8044 #define shl_load innocuous_shl_load
8045
8046 /* System header to define __stub macros and hopefully few prototypes,
8047     which can conflict with char shl_load (); below.
8048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8049     <limits.h> exists even on freestanding compilers.  */
8050
8051 #ifdef __STDC__
8052 # include <limits.h>
8053 #else
8054 # include <assert.h>
8055 #endif
8056
8057 #undef shl_load
8058
8059 /* Override any GCC internal prototype to avoid an error.
8060    Use char because int might match the return type of a GCC
8061    builtin and then its argument prototype would still apply.  */
8062 #ifdef __cplusplus
8063 extern "C"
8064 #endif
8065 char shl_load ();
8066 /* The GNU C library defines this for functions which it implements
8067     to always fail with ENOSYS.  Some functions are actually named
8068     something starting with __ and the normal name is an alias.  */
8069 #if defined __stub_shl_load || defined __stub___shl_load
8070 choke me
8071 #endif
8072
8073 int
8074 main ()
8075 {
8076 return shl_load ();
8077   ;
8078   return 0;
8079 }
8080 _ACEOF
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (ac_try="$ac_link"
8083 case "(($ac_try" in
8084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085   *) ac_try_echo=$ac_try;;
8086 esac
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088   (eval "$ac_link") 2>conftest.er1
8089   ac_status=$?
8090   grep -v '^ *+' conftest.er1 >conftest.err
8091   rm -f conftest.er1
8092   cat conftest.err >&5
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); } &&
8095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8096   { (case "(($ac_try" in
8097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098   *) ac_try_echo=$ac_try;;
8099 esac
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101   (eval "$ac_try") 2>&5
8102   ac_status=$?
8103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104   (exit $ac_status); }; } &&
8105          { ac_try='test -s conftest$ac_exeext'
8106   { (case "(($ac_try" in
8107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108   *) ac_try_echo=$ac_try;;
8109 esac
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111   (eval "$ac_try") 2>&5
8112   ac_status=$?
8113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114   (exit $ac_status); }; }; then
8115   ac_cv_func_shl_load=yes
8116 else
8117   echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.$ac_ext >&5
8119
8120         ac_cv_func_shl_load=no
8121 fi
8122
8123 rm -f core conftest.err conftest.$ac_objext \
8124       conftest$ac_exeext conftest.$ac_ext
8125 fi
8126 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8127 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8128 if test $ac_cv_func_shl_load = yes; then
8129   lt_cv_dlopen="shl_load"
8130 else
8131   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8132 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8133 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8134   echo $ECHO_N "(cached) $ECHO_C" >&6
8135 else
8136   ac_check_lib_save_LIBS=$LIBS
8137 LIBS="-ldld  $LIBS"
8138 cat >conftest.$ac_ext <<_ACEOF
8139 /* confdefs.h.  */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h.  */
8144
8145 /* Override any GCC internal prototype to avoid an error.
8146    Use char because int might match the return type of a GCC
8147    builtin and then its argument prototype would still apply.  */
8148 #ifdef __cplusplus
8149 extern "C"
8150 #endif
8151 char shl_load ();
8152 int
8153 main ()
8154 {
8155 return shl_load ();
8156   ;
8157   return 0;
8158 }
8159 _ACEOF
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (ac_try="$ac_link"
8162 case "(($ac_try" in
8163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164   *) ac_try_echo=$ac_try;;
8165 esac
8166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167   (eval "$ac_link") 2>conftest.er1
8168   ac_status=$?
8169   grep -v '^ *+' conftest.er1 >conftest.err
8170   rm -f conftest.er1
8171   cat conftest.err >&5
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); } &&
8174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8175   { (case "(($ac_try" in
8176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177   *) ac_try_echo=$ac_try;;
8178 esac
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180   (eval "$ac_try") 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); }; } &&
8184          { ac_try='test -s conftest$ac_exeext'
8185   { (case "(($ac_try" in
8186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187   *) ac_try_echo=$ac_try;;
8188 esac
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190   (eval "$ac_try") 2>&5
8191   ac_status=$?
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); }; }; then
8194   ac_cv_lib_dld_shl_load=yes
8195 else
8196   echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8198
8199         ac_cv_lib_dld_shl_load=no
8200 fi
8201
8202 rm -f core conftest.err conftest.$ac_objext \
8203       conftest$ac_exeext conftest.$ac_ext
8204 LIBS=$ac_check_lib_save_LIBS
8205 fi
8206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8207 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8208 if test $ac_cv_lib_dld_shl_load = yes; then
8209   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8210 else
8211   { echo "$as_me:$LINENO: checking for dlopen" >&5
8212 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8213 if test "${ac_cv_func_dlopen+set}" = set; then
8214   echo $ECHO_N "(cached) $ECHO_C" >&6
8215 else
8216   cat >conftest.$ac_ext <<_ACEOF
8217 /* confdefs.h.  */
8218 _ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h.  */
8222 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8223    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8224 #define dlopen innocuous_dlopen
8225
8226 /* System header to define __stub macros and hopefully few prototypes,
8227     which can conflict with char dlopen (); below.
8228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8229     <limits.h> exists even on freestanding compilers.  */
8230
8231 #ifdef __STDC__
8232 # include <limits.h>
8233 #else
8234 # include <assert.h>
8235 #endif
8236
8237 #undef dlopen
8238
8239 /* Override any GCC internal prototype to avoid an error.
8240    Use char because int might match the return type of a GCC
8241    builtin and then its argument prototype would still apply.  */
8242 #ifdef __cplusplus
8243 extern "C"
8244 #endif
8245 char dlopen ();
8246 /* The GNU C library defines this for functions which it implements
8247     to always fail with ENOSYS.  Some functions are actually named
8248     something starting with __ and the normal name is an alias.  */
8249 #if defined __stub_dlopen || defined __stub___dlopen
8250 choke me
8251 #endif
8252
8253 int
8254 main ()
8255 {
8256 return dlopen ();
8257   ;
8258   return 0;
8259 }
8260 _ACEOF
8261 rm -f conftest.$ac_objext conftest$ac_exeext
8262 if { (ac_try="$ac_link"
8263 case "(($ac_try" in
8264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265   *) ac_try_echo=$ac_try;;
8266 esac
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268   (eval "$ac_link") 2>conftest.er1
8269   ac_status=$?
8270   grep -v '^ *+' conftest.er1 >conftest.err
8271   rm -f conftest.er1
8272   cat conftest.err >&5
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); } &&
8275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8276   { (case "(($ac_try" in
8277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278   *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281   (eval "$ac_try") 2>&5
8282   ac_status=$?
8283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284   (exit $ac_status); }; } &&
8285          { ac_try='test -s conftest$ac_exeext'
8286   { (case "(($ac_try" in
8287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288   *) ac_try_echo=$ac_try;;
8289 esac
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291   (eval "$ac_try") 2>&5
8292   ac_status=$?
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); }; }; then
8295   ac_cv_func_dlopen=yes
8296 else
8297   echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8299
8300         ac_cv_func_dlopen=no
8301 fi
8302
8303 rm -f core conftest.err conftest.$ac_objext \
8304       conftest$ac_exeext conftest.$ac_ext
8305 fi
8306 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8307 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8308 if test $ac_cv_func_dlopen = yes; then
8309   lt_cv_dlopen="dlopen"
8310 else
8311   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8312 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8313 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8314   echo $ECHO_N "(cached) $ECHO_C" >&6
8315 else
8316   ac_check_lib_save_LIBS=$LIBS
8317 LIBS="-ldl  $LIBS"
8318 cat >conftest.$ac_ext <<_ACEOF
8319 /* confdefs.h.  */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h.  */
8324
8325 /* Override any GCC internal prototype to avoid an error.
8326    Use char because int might match the return type of a GCC
8327    builtin and then its argument prototype would still apply.  */
8328 #ifdef __cplusplus
8329 extern "C"
8330 #endif
8331 char dlopen ();
8332 int
8333 main ()
8334 {
8335 return dlopen ();
8336   ;
8337   return 0;
8338 }
8339 _ACEOF
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (ac_try="$ac_link"
8342 case "(($ac_try" in
8343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344   *) ac_try_echo=$ac_try;;
8345 esac
8346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8347   (eval "$ac_link") 2>conftest.er1
8348   ac_status=$?
8349   grep -v '^ *+' conftest.er1 >conftest.err
8350   rm -f conftest.er1
8351   cat conftest.err >&5
8352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353   (exit $ac_status); } &&
8354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8355   { (case "(($ac_try" in
8356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357   *) ac_try_echo=$ac_try;;
8358 esac
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360   (eval "$ac_try") 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); }; } &&
8364          { ac_try='test -s conftest$ac_exeext'
8365   { (case "(($ac_try" in
8366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367   *) ac_try_echo=$ac_try;;
8368 esac
8369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370   (eval "$ac_try") 2>&5
8371   ac_status=$?
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); }; }; then
8374   ac_cv_lib_dl_dlopen=yes
8375 else
8376   echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8378
8379         ac_cv_lib_dl_dlopen=no
8380 fi
8381
8382 rm -f core conftest.err conftest.$ac_objext \
8383       conftest$ac_exeext conftest.$ac_ext
8384 LIBS=$ac_check_lib_save_LIBS
8385 fi
8386 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8387 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8388 if test $ac_cv_lib_dl_dlopen = yes; then
8389   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8390 else
8391   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8392 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8393 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8394   echo $ECHO_N "(cached) $ECHO_C" >&6
8395 else
8396   ac_check_lib_save_LIBS=$LIBS
8397 LIBS="-lsvld  $LIBS"
8398 cat >conftest.$ac_ext <<_ACEOF
8399 /* confdefs.h.  */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h.  */
8404
8405 /* Override any GCC internal prototype to avoid an error.
8406    Use char because int might match the return type of a GCC
8407    builtin and then its argument prototype would still apply.  */
8408 #ifdef __cplusplus
8409 extern "C"
8410 #endif
8411 char dlopen ();
8412 int
8413 main ()
8414 {
8415 return dlopen ();
8416   ;
8417   return 0;
8418 }
8419 _ACEOF
8420 rm -f conftest.$ac_objext conftest$ac_exeext
8421 if { (ac_try="$ac_link"
8422 case "(($ac_try" in
8423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424   *) ac_try_echo=$ac_try;;
8425 esac
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427   (eval "$ac_link") 2>conftest.er1
8428   ac_status=$?
8429   grep -v '^ *+' conftest.er1 >conftest.err
8430   rm -f conftest.er1
8431   cat conftest.err >&5
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); } &&
8434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8435   { (case "(($ac_try" in
8436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437   *) ac_try_echo=$ac_try;;
8438 esac
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440   (eval "$ac_try") 2>&5
8441   ac_status=$?
8442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443   (exit $ac_status); }; } &&
8444          { ac_try='test -s conftest$ac_exeext'
8445   { (case "(($ac_try" in
8446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447   *) ac_try_echo=$ac_try;;
8448 esac
8449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450   (eval "$ac_try") 2>&5
8451   ac_status=$?
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); }; }; then
8454   ac_cv_lib_svld_dlopen=yes
8455 else
8456   echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8458
8459         ac_cv_lib_svld_dlopen=no
8460 fi
8461
8462 rm -f core conftest.err conftest.$ac_objext \
8463       conftest$ac_exeext conftest.$ac_ext
8464 LIBS=$ac_check_lib_save_LIBS
8465 fi
8466 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8467 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8468 if test $ac_cv_lib_svld_dlopen = yes; then
8469   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8470 else
8471   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8472 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8473 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8474   echo $ECHO_N "(cached) $ECHO_C" >&6
8475 else
8476   ac_check_lib_save_LIBS=$LIBS
8477 LIBS="-ldld  $LIBS"
8478 cat >conftest.$ac_ext <<_ACEOF
8479 /* confdefs.h.  */
8480 _ACEOF
8481 cat confdefs.h >>conftest.$ac_ext
8482 cat >>conftest.$ac_ext <<_ACEOF
8483 /* end confdefs.h.  */
8484
8485 /* Override any GCC internal prototype to avoid an error.
8486    Use char because int might match the return type of a GCC
8487    builtin and then its argument prototype would still apply.  */
8488 #ifdef __cplusplus
8489 extern "C"
8490 #endif
8491 char dld_link ();
8492 int
8493 main ()
8494 {
8495 return dld_link ();
8496   ;
8497   return 0;
8498 }
8499 _ACEOF
8500 rm -f conftest.$ac_objext conftest$ac_exeext
8501 if { (ac_try="$ac_link"
8502 case "(($ac_try" in
8503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504   *) ac_try_echo=$ac_try;;
8505 esac
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507   (eval "$ac_link") 2>conftest.er1
8508   ac_status=$?
8509   grep -v '^ *+' conftest.er1 >conftest.err
8510   rm -f conftest.er1
8511   cat conftest.err >&5
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); } &&
8514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8515   { (case "(($ac_try" in
8516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517   *) ac_try_echo=$ac_try;;
8518 esac
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520   (eval "$ac_try") 2>&5
8521   ac_status=$?
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); }; } &&
8524          { ac_try='test -s conftest$ac_exeext'
8525   { (case "(($ac_try" in
8526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527   *) ac_try_echo=$ac_try;;
8528 esac
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530   (eval "$ac_try") 2>&5
8531   ac_status=$?
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); }; }; then
8534   ac_cv_lib_dld_dld_link=yes
8535 else
8536   echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8538
8539         ac_cv_lib_dld_dld_link=no
8540 fi
8541
8542 rm -f core conftest.err conftest.$ac_objext \
8543       conftest$ac_exeext conftest.$ac_ext
8544 LIBS=$ac_check_lib_save_LIBS
8545 fi
8546 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8547 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8548 if test $ac_cv_lib_dld_dld_link = yes; then
8549   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8550 fi
8551
8552
8553 fi
8554
8555
8556 fi
8557
8558
8559 fi
8560
8561
8562 fi
8563
8564
8565 fi
8566
8567     ;;
8568   esac
8569
8570   if test "x$lt_cv_dlopen" != xno; then
8571     enable_dlopen=yes
8572   else
8573     enable_dlopen=no
8574   fi
8575
8576   case $lt_cv_dlopen in
8577   dlopen)
8578     save_CPPFLAGS="$CPPFLAGS"
8579         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8580
8581     save_LDFLAGS="$LDFLAGS"
8582     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8583
8584     save_LIBS="$LIBS"
8585     LIBS="$lt_cv_dlopen_libs $LIBS"
8586
8587     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8588 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8589 if test "${lt_cv_dlopen_self+set}" = set; then
8590   echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592           if test "$cross_compiling" = yes; then :
8593   lt_cv_dlopen_self=cross
8594 else
8595     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8596   lt_status=$lt_dlunknown
8597   cat > conftest.$ac_ext <<EOF
8598 #line 8598 "configure"
8599 #include "confdefs.h"
8600
8601 #if HAVE_DLFCN_H
8602 #include <dlfcn.h>
8603 #endif
8604
8605 #include <stdio.h>
8606
8607 #ifdef RTLD_GLOBAL
8608 #  define LT_DLGLOBAL           RTLD_GLOBAL
8609 #else
8610 #  ifdef DL_GLOBAL
8611 #    define LT_DLGLOBAL         DL_GLOBAL
8612 #  else
8613 #    define LT_DLGLOBAL         0
8614 #  endif
8615 #endif
8616
8617 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8618    find out it does not work in some platform. */
8619 #ifndef LT_DLLAZY_OR_NOW
8620 #  ifdef RTLD_LAZY
8621 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8622 #  else
8623 #    ifdef DL_LAZY
8624 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8625 #    else
8626 #      ifdef RTLD_NOW
8627 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8628 #      else
8629 #        ifdef DL_NOW
8630 #          define LT_DLLAZY_OR_NOW      DL_NOW
8631 #        else
8632 #          define LT_DLLAZY_OR_NOW      0
8633 #        endif
8634 #      endif
8635 #    endif
8636 #  endif
8637 #endif
8638
8639 #ifdef __cplusplus
8640 extern "C" void exit (int);
8641 #endif
8642
8643 void fnord() { int i=42;}
8644 int main ()
8645 {
8646   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8647   int status = $lt_dlunknown;
8648
8649   if (self)
8650     {
8651       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8652       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8653       /* dlclose (self); */
8654     }
8655
8656     exit (status);
8657 }
8658 EOF
8659   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8660   (eval $ac_link) 2>&5
8661   ac_status=$?
8662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8664     (./conftest; exit; ) 2>/dev/null
8665     lt_status=$?
8666     case x$lt_status in
8667       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8668       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8669       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8670     esac
8671   else :
8672     # compilation failed
8673     lt_cv_dlopen_self=no
8674   fi
8675 fi
8676 rm -fr conftest*
8677
8678
8679 fi
8680 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8681 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
8682
8683     if test "x$lt_cv_dlopen_self" = xyes; then
8684       LDFLAGS="$LDFLAGS $link_static_flag"
8685       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8686 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
8687 if test "${lt_cv_dlopen_self_static+set}" = set; then
8688   echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690           if test "$cross_compiling" = yes; then :
8691   lt_cv_dlopen_self_static=cross
8692 else
8693     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8694   lt_status=$lt_dlunknown
8695   cat > conftest.$ac_ext <<EOF
8696 #line 8696 "configure"
8697 #include "confdefs.h"
8698
8699 #if HAVE_DLFCN_H
8700 #include <dlfcn.h>
8701 #endif
8702
8703 #include <stdio.h>
8704
8705 #ifdef RTLD_GLOBAL
8706 #  define LT_DLGLOBAL           RTLD_GLOBAL
8707 #else
8708 #  ifdef DL_GLOBAL
8709 #    define LT_DLGLOBAL         DL_GLOBAL
8710 #  else
8711 #    define LT_DLGLOBAL         0
8712 #  endif
8713 #endif
8714
8715 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8716    find out it does not work in some platform. */
8717 #ifndef LT_DLLAZY_OR_NOW
8718 #  ifdef RTLD_LAZY
8719 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8720 #  else
8721 #    ifdef DL_LAZY
8722 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8723 #    else
8724 #      ifdef RTLD_NOW
8725 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8726 #      else
8727 #        ifdef DL_NOW
8728 #          define LT_DLLAZY_OR_NOW      DL_NOW
8729 #        else
8730 #          define LT_DLLAZY_OR_NOW      0
8731 #        endif
8732 #      endif
8733 #    endif
8734 #  endif
8735 #endif
8736
8737 #ifdef __cplusplus
8738 extern "C" void exit (int);
8739 #endif
8740
8741 void fnord() { int i=42;}
8742 int main ()
8743 {
8744   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8745   int status = $lt_dlunknown;
8746
8747   if (self)
8748     {
8749       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8750       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8751       /* dlclose (self); */
8752     }
8753
8754     exit (status);
8755 }
8756 EOF
8757   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8758   (eval $ac_link) 2>&5
8759   ac_status=$?
8760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8762     (./conftest; exit; ) 2>/dev/null
8763     lt_status=$?
8764     case x$lt_status in
8765       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8766       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8767       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8768     esac
8769   else :
8770     # compilation failed
8771     lt_cv_dlopen_self_static=no
8772   fi
8773 fi
8774 rm -fr conftest*
8775
8776
8777 fi
8778 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8779 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
8780     fi
8781
8782     CPPFLAGS="$save_CPPFLAGS"
8783     LDFLAGS="$save_LDFLAGS"
8784     LIBS="$save_LIBS"
8785     ;;
8786   esac
8787
8788   case $lt_cv_dlopen_self in
8789   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8790   *) enable_dlopen_self=unknown ;;
8791   esac
8792
8793   case $lt_cv_dlopen_self_static in
8794   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8795   *) enable_dlopen_self_static=unknown ;;
8796   esac
8797 fi
8798
8799
8800 ## FIXME: this should be a separate macro
8801 ##
8802 if test "$enable_shared" = yes && test "$GCC" = yes; then
8803   case $archive_cmds in
8804   *'~'*)
8805     # FIXME: we may have to deal with multi-command sequences.
8806     ;;
8807   '$CC '*)
8808     # Test whether the compiler implicitly links with -lc since on some
8809     # systems, -lgcc has to come before -lc. If gcc already passes -lc
8810     # to ld, don't add -lc before -lgcc.
8811     { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8812 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8813     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8814   echo $ECHO_N "(cached) $ECHO_C" >&6
8815 else
8816   $rm conftest*
8817     echo 'static int dummy;' > conftest.$ac_ext
8818
8819     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8820   (eval $ac_compile) 2>&5
8821   ac_status=$?
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); }; then
8824       soname=conftest
8825       lib=conftest
8826       libobjs=conftest.$ac_objext
8827       deplibs=
8828       wl=$lt_cv_prog_cc_wl
8829       compiler_flags=-v
8830       linker_flags=-v
8831       verstring=
8832       output_objdir=.
8833       libname=conftest
8834       save_allow_undefined_flag=$allow_undefined_flag
8835       allow_undefined_flag=
8836       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8837   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8838   ac_status=$?
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); }
8841       then
8842         lt_cv_archive_cmds_need_lc=no
8843       else
8844         lt_cv_archive_cmds_need_lc=yes
8845       fi
8846       allow_undefined_flag=$save_allow_undefined_flag
8847     else
8848       cat conftest.err 1>&5
8849     fi
8850 fi
8851
8852     { echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8853 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6; }
8854     ;;
8855   esac
8856 fi
8857 need_lc=${lt_cv_archive_cmds_need_lc-yes}
8858 ##
8859 ## END FIXME
8860
8861 ## FIXME: this should be a separate macro
8862 ##
8863 # The second clause should only fire when bootstrapping the
8864 # libtool distribution, otherwise you forgot to ship ltmain.sh
8865 # with your package, and you will get complaints that there are
8866 # no rules to generate ltmain.sh.
8867 if test -f "$ltmain"; then
8868   :
8869 else
8870   # If there is no Makefile yet, we rely on a make rule to execute
8871   # `config.status --recheck' to rerun these tests and create the
8872   # libtool script then.
8873   test -f Makefile && make "$ltmain"
8874 fi
8875
8876 if test -f "$ltmain"; then
8877   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8878   $rm -f "${ofile}T"
8879
8880   echo creating $ofile
8881
8882   # Now quote all the things that may contain metacharacters while being
8883   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8884   # variables and quote the copies for generation of the libtool script.
8885   for var in echo old_CC old_CFLAGS \
8886     AR AR_FLAGS CC LD LN_S NM SHELL \
8887     reload_flag reload_cmds wl \
8888     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8889     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8890     library_names_spec soname_spec \
8891     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8892     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8893     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8894     old_striplib striplib file_magic_cmd export_symbols_cmds \
8895     deplibs_check_method allow_undefined_flag no_undefined_flag \
8896     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8897     global_symbol_to_c_name_address \
8898     hardcode_libdir_flag_spec hardcode_libdir_separator  \
8899     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8900     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8901
8902     case $var in
8903     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8904     old_postinstall_cmds | old_postuninstall_cmds | \
8905     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8906     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8907     postinstall_cmds | postuninstall_cmds | \
8908     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8909       # Double-quote double-evaled strings.
8910       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8911       ;;
8912     *)
8913       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8914       ;;
8915     esac
8916   done
8917
8918   cat <<__EOF__ > "${ofile}T"
8919 #! $SHELL
8920
8921 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8922 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8923 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8924 #
8925 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8926 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8927 #
8928 # This program is free software; you can redistribute it and/or modify
8929 # it under the terms of the GNU General Public License as published by
8930 # the Free Software Foundation; either version 2 of the License, or
8931 # (at your option) any later version.
8932 #
8933 # This program is distributed in the hope that it will be useful, but
8934 # WITHOUT ANY WARRANTY; without even the implied warranty of
8935 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8936 # General Public License for more details.
8937 #
8938 # You should have received a copy of the GNU General Public License
8939 # along with this program; if not, write to the Free Software
8940 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8941 #
8942 # As a special exception to the GNU General Public License, if you
8943 # distribute this file as part of a program that contains a
8944 # configuration script generated by Autoconf, you may include it under
8945 # the same distribution terms that you use for the rest of that program.
8946
8947 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8948 Xsed="sed -e s/^X//"
8949
8950 # The HP-UX ksh and POSIX shell print the target directory to stdout
8951 # if CDPATH is set.
8952 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8953
8954 # ### BEGIN LIBTOOL CONFIG
8955
8956 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8957
8958 # Shell to use when invoking shell scripts.
8959 SHELL=$lt_SHELL
8960
8961 # Whether or not to build shared libraries.
8962 build_libtool_libs=$enable_shared
8963
8964 # Whether or not to build static libraries.
8965 build_old_libs=$enable_static
8966
8967 # Whether or not to add -lc for building shared libraries.
8968 build_libtool_need_lc=$need_lc
8969
8970 # Whether or not to optimize for fast installation.
8971 fast_install=$enable_fast_install
8972
8973 # The host system.
8974 host_alias=$host_alias
8975 host=$host
8976
8977 # An echo program that does not interpret backslashes.
8978 echo=$lt_echo
8979
8980 # The archiver.
8981 AR=$lt_AR
8982 AR_FLAGS=$lt_AR_FLAGS
8983
8984 # The default C compiler.
8985 CC=$lt_CC
8986
8987 # Is the compiler the GNU C compiler?
8988 with_gcc=$GCC
8989
8990 # The linker used to build libraries.
8991 LD=$lt_LD
8992
8993 # Whether we need hard or soft links.
8994 LN_S=$lt_LN_S
8995
8996 # A BSD-compatible nm program.
8997 NM=$lt_NM
8998
8999 # A symbol stripping program
9000 STRIP=$STRIP
9001
9002 # Used to examine libraries when file_magic_cmd begins "file"
9003 MAGIC_CMD=$MAGIC_CMD
9004
9005 # Used on cygwin: DLL creation program.
9006 DLLTOOL="$DLLTOOL"
9007
9008 # Used on cygwin: object dumper.
9009 OBJDUMP="$OBJDUMP"
9010
9011 # Used on cygwin: assembler.
9012 AS="$AS"
9013
9014 # The name of the directory that contains temporary libtool files.
9015 objdir=$objdir
9016
9017 # How to create reloadable object files.
9018 reload_flag=$lt_reload_flag
9019 reload_cmds=$lt_reload_cmds
9020
9021 # How to pass a linker flag through the compiler.
9022 wl=$lt_wl
9023
9024 # Object file suffix (normally "o").
9025 objext="$ac_objext"
9026
9027 # Old archive suffix (normally "a").
9028 libext="$libext"
9029
9030 # Executable file suffix (normally "").
9031 exeext="$exeext"
9032
9033 # Additional compiler flags for building library objects.
9034 pic_flag=$lt_pic_flag
9035 pic_mode=$pic_mode
9036
9037 # Does compiler simultaneously support -c and -o options?
9038 compiler_c_o=$lt_compiler_c_o
9039
9040 # Can we write directly to a .lo ?
9041 compiler_o_lo=$lt_compiler_o_lo
9042
9043 # Must we lock files when doing compilation ?
9044 need_locks=$lt_need_locks
9045
9046 # Do we need the lib prefix for modules?
9047 need_lib_prefix=$need_lib_prefix
9048
9049 # Do we need a version for libraries?
9050 need_version=$need_version
9051
9052 # Whether dlopen is supported.
9053 dlopen_support=$enable_dlopen
9054
9055 # Whether dlopen of programs is supported.
9056 dlopen_self=$enable_dlopen_self
9057
9058 # Whether dlopen of statically linked programs is supported.
9059 dlopen_self_static=$enable_dlopen_self_static
9060
9061 # Compiler flag to prevent dynamic linking.
9062 link_static_flag=$lt_link_static_flag
9063
9064 # Compiler flag to turn off builtin functions.
9065 no_builtin_flag=$lt_no_builtin_flag
9066
9067 # Compiler flag to allow reflexive dlopens.
9068 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9069
9070 # Compiler flag to generate shared objects directly from archives.
9071 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9072
9073 # Compiler flag to generate thread-safe objects.
9074 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9075
9076 # Library versioning type.
9077 version_type=$version_type
9078
9079 # Format of library name prefix.
9080 libname_spec=$lt_libname_spec
9081
9082 # List of archive names.  First name is the real one, the rest are links.
9083 # The last name is the one that the linker finds with -lNAME.
9084 library_names_spec=$lt_library_names_spec
9085
9086 # The coded name of the library, if different from the real name.
9087 soname_spec=$lt_soname_spec
9088
9089 # Commands used to build and install an old-style archive.
9090 RANLIB=$lt_RANLIB
9091 old_archive_cmds=$lt_old_archive_cmds
9092 old_postinstall_cmds=$lt_old_postinstall_cmds
9093 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9094
9095 # Create an old-style archive from a shared archive.
9096 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9097
9098 # Create a temporary old-style archive to link instead of a shared archive.
9099 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9100
9101 # Commands used to build and install a shared archive.
9102 archive_cmds=$lt_archive_cmds
9103 archive_expsym_cmds=$lt_archive_expsym_cmds
9104 postinstall_cmds=$lt_postinstall_cmds
9105 postuninstall_cmds=$lt_postuninstall_cmds
9106
9107 # Commands to strip libraries.
9108 old_striplib=$lt_old_striplib
9109 striplib=$lt_striplib
9110
9111 # Method to check whether dependent libraries are shared objects.
9112 deplibs_check_method=$lt_deplibs_check_method
9113
9114 # Command to use when deplibs_check_method == file_magic.
9115 file_magic_cmd=$lt_file_magic_cmd
9116
9117 # Flag that allows shared libraries with undefined symbols to be built.
9118 allow_undefined_flag=$lt_allow_undefined_flag
9119
9120 # Flag that forces no undefined symbols.
9121 no_undefined_flag=$lt_no_undefined_flag
9122
9123 # Commands used to finish a libtool library installation in a directory.
9124 finish_cmds=$lt_finish_cmds
9125
9126 # Same as above, but a single script fragment to be evaled but not shown.
9127 finish_eval=$lt_finish_eval
9128
9129 # Take the output of nm and produce a listing of raw symbols and C names.
9130 global_symbol_pipe=$lt_global_symbol_pipe
9131
9132 # Transform the output of nm in a proper C declaration
9133 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
9134
9135 # Transform the output of nm in a C name address pair
9136 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
9137
9138 # This is the shared library runtime path variable.
9139 runpath_var=$runpath_var
9140
9141 # This is the shared library path variable.
9142 shlibpath_var=$shlibpath_var
9143
9144 # Is shlibpath searched before the hard-coded library search path?
9145 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9146
9147 # How to hardcode a shared library path into an executable.
9148 hardcode_action=$hardcode_action
9149
9150 # Whether we should hardcode library paths into libraries.
9151 hardcode_into_libs=$hardcode_into_libs
9152
9153 # Flag to hardcode \$libdir into a binary during linking.
9154 # This must work even if \$libdir does not exist.
9155 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9156
9157 # Whether we need a single -rpath flag with a separated argument.
9158 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9159
9160 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
9161 # resulting binary.
9162 hardcode_direct=$hardcode_direct
9163
9164 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9165 # resulting binary.
9166 hardcode_minus_L=$hardcode_minus_L
9167
9168 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9169 # the resulting binary.
9170 hardcode_shlibpath_var=$hardcode_shlibpath_var
9171
9172 # Variables whose values should be saved in libtool wrapper scripts and
9173 # restored at relink time.
9174 variables_saved_for_relink="$variables_saved_for_relink"
9175
9176 # Whether libtool must link a program against all its dependency libraries.
9177 link_all_deplibs=$link_all_deplibs
9178
9179 # Compile-time system search path for libraries
9180 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9181
9182 # Run-time system search path for libraries
9183 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9184
9185 # Fix the shell variable \$srcfile for the compiler.
9186 fix_srcfile_path="$fix_srcfile_path"
9187
9188 # Set to yes if exported symbols are required.
9189 always_export_symbols=$always_export_symbols
9190
9191 # The commands to list exported symbols.
9192 export_symbols_cmds=$lt_export_symbols_cmds
9193
9194 # The commands to extract the exported symbol list from a shared archive.
9195 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9196
9197 # Symbols that should not be listed in the preloaded symbols.
9198 exclude_expsyms=$lt_exclude_expsyms
9199
9200 # Symbols that must always be exported.
9201 include_expsyms=$lt_include_expsyms
9202
9203 # ### END LIBTOOL CONFIG
9204
9205 __EOF__
9206
9207   case $host_os in
9208   aix3*)
9209     cat <<\EOF >> "${ofile}T"
9210
9211 # AIX sometimes has problems with the GCC collect2 program.  For some
9212 # reason, if we set the COLLECT_NAMES environment variable, the problems
9213 # vanish in a puff of smoke.
9214 if test "X${COLLECT_NAMES+set}" != Xset; then
9215   COLLECT_NAMES=
9216   export COLLECT_NAMES
9217 fi
9218 EOF
9219     ;;
9220   esac
9221
9222   case $host_os in
9223   cygwin* | mingw* | pw32* | os2*)
9224     cat <<'EOF' >> "${ofile}T"
9225       # This is a source program that is used to create dlls on Windows
9226       # Don't remove nor modify the starting and closing comments
9227 # /* ltdll.c starts here */
9228 # #define WIN32_LEAN_AND_MEAN
9229 # #include <windows.h>
9230 # #undef WIN32_LEAN_AND_MEAN
9231 # #include <stdio.h>
9232 #
9233 # #ifndef __CYGWIN__
9234 # #  ifdef __CYGWIN32__
9235 # #    define __CYGWIN__ __CYGWIN32__
9236 # #  endif
9237 # #endif
9238 #
9239 # #ifdef __cplusplus
9240 # extern "C" {
9241 # #endif
9242 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
9243 # #ifdef __cplusplus
9244 # }
9245 # #endif
9246 #
9247 # #ifdef __CYGWIN__
9248 # #include <cygwin/cygwin_dll.h>
9249 # DECLARE_CYGWIN_DLL( DllMain );
9250 # #endif
9251 # HINSTANCE __hDllInstance_base;
9252 #
9253 # BOOL APIENTRY
9254 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
9255 # {
9256 #   __hDllInstance_base = hInst;
9257 #   return TRUE;
9258 # }
9259 # /* ltdll.c ends here */
9260         # This is a source program that is used to create import libraries
9261         # on Windows for dlls which lack them. Don't remove nor modify the
9262         # starting and closing comments
9263 # /* impgen.c starts here */
9264 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
9265 #
9266 #  This file is part of GNU libtool.
9267 #
9268 #  This program is free software; you can redistribute it and/or modify
9269 #  it under the terms of the GNU General Public License as published by
9270 #  the Free Software Foundation; either version 2 of the License, or
9271 #  (at your option) any later version.
9272 #
9273 #  This program is distributed in the hope that it will be useful,
9274 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
9275 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9276 #  GNU General Public License for more details.
9277 #
9278 #  You should have received a copy of the GNU General Public License
9279 #  along with this program; if not, write to the Free Software
9280 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9281 #  */
9282 #
9283 # #include <stdio.h>            /* for printf() */
9284 # #include <unistd.h>           /* for open(), lseek(), read() */
9285 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
9286 # #include <string.h>           /* for strdup() */
9287 #
9288 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
9289 # #ifndef O_BINARY
9290 # #define O_BINARY 0
9291 # #endif
9292 #
9293 # static unsigned int
9294 # pe_get16 (fd, offset)
9295 #      int fd;
9296 #      int offset;
9297 # {
9298 #   unsigned char b[2];
9299 #   lseek (fd, offset, SEEK_SET);
9300 #   read (fd, b, 2);
9301 #   return b[0] + (b[1]<<8);
9302 # }
9303 #
9304 # static unsigned int
9305 # pe_get32 (fd, offset)
9306 #     int fd;
9307 #     int offset;
9308 # {
9309 #   unsigned char b[4];
9310 #   lseek (fd, offset, SEEK_SET);
9311 #   read (fd, b, 4);
9312 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
9313 # }
9314 #
9315 # static unsigned int
9316 # pe_as32 (ptr)
9317 #      void *ptr;
9318 # {
9319 #   unsigned char *b = ptr;
9320 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
9321 # }
9322 #
9323 # int
9324 # main (argc, argv)
9325 #     int argc;
9326 #     char *argv[];
9327 # {
9328 #     int dll;
9329 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
9330 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
9331 #     unsigned long name_rvas, nexp;
9332 #     unsigned char *expdata, *erva;
9333 #     char *filename, *dll_name;
9334 #
9335 #     filename = argv[1];
9336 #
9337 #     dll = open(filename, O_RDONLY|O_BINARY);
9338 #     if (dll < 1)
9339 #       return 1;
9340 #
9341 #     dll_name = filename;
9342 #
9343 #     for (i=0; filename[i]; i++)
9344 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
9345 #           dll_name = filename + i +1;
9346 #
9347 #     pe_header_offset = pe_get32 (dll, 0x3c);
9348 #     opthdr_ofs = pe_header_offset + 4 + 20;
9349 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
9350 #
9351 #     if (num_entries < 1) /* no exports */
9352 #       return 1;
9353 #
9354 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
9355 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
9356 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
9357 #     secptr = (pe_header_offset + 4 + 20 +
9358 #             pe_get16 (dll, pe_header_offset + 4 + 16));
9359 #
9360 #     expptr = 0;
9361 #     for (i = 0; i < nsections; i++)
9362 #     {
9363 #       char sname[8];
9364 #       unsigned long secptr1 = secptr + 40 * i;
9365 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
9366 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
9367 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
9368 #       lseek(dll, secptr1, SEEK_SET);
9369 #       read(dll, sname, 8);
9370 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
9371 #       {
9372 #           expptr = fptr + (export_rva - vaddr);
9373 #           if (export_rva + export_size > vaddr + vsize)
9374 #               export_size = vsize - (export_rva - vaddr);
9375 #           break;
9376 #       }
9377 #     }
9378 #
9379 #     expdata = (unsigned char*)malloc(export_size);
9380 #     lseek (dll, expptr, SEEK_SET);
9381 #     read (dll, expdata, export_size);
9382 #     erva = expdata - export_rva;
9383 #
9384 #     nexp = pe_as32 (expdata+24);
9385 #     name_rvas = pe_as32 (expdata+32);
9386 #
9387 #     printf ("EXPORTS\n");
9388 #     for (i = 0; i<nexp; i++)
9389 #     {
9390 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
9391 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
9392 #     }
9393 #
9394 #     return 0;
9395 # }
9396 # /* impgen.c ends here */
9397
9398 EOF
9399     ;;
9400   esac
9401
9402   # We use sed instead of cat because bash on DJGPP gets confused if
9403   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9404   # text mode, it properly converts lines to CR/LF.  This bash problem
9405   # is reportedly fixed, but why not run on old versions too?
9406   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
9407
9408   mv -f "${ofile}T" "$ofile" || \
9409     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
9410   chmod +x "$ofile"
9411 fi
9412 ##
9413 ## END FIXME
9414
9415
9416
9417
9418
9419 # This can be used to rebuild libtool when needed
9420 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
9421
9422 # Always use our own libtool.
9423 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9424
9425 # Prevent multiple expansion
9426
9427
9428
9429
9430 for ac_prog in flex lex
9431 do
9432   # Extract the first word of "$ac_prog", so it can be a program name with args.
9433 set dummy $ac_prog; ac_word=$2
9434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9436 if test "${ac_cv_prog_LEX+set}" = set; then
9437   echo $ECHO_N "(cached) $ECHO_C" >&6
9438 else
9439   if test -n "$LEX"; then
9440   ac_cv_prog_LEX="$LEX" # Let the user override the test.
9441 else
9442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9443 for as_dir in $PATH
9444 do
9445   IFS=$as_save_IFS
9446   test -z "$as_dir" && as_dir=.
9447   for ac_exec_ext in '' $ac_executable_extensions; do
9448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9449     ac_cv_prog_LEX="$ac_prog"
9450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9451     break 2
9452   fi
9453 done
9454 done
9455 IFS=$as_save_IFS
9456
9457 fi
9458 fi
9459 LEX=$ac_cv_prog_LEX
9460 if test -n "$LEX"; then
9461   { echo "$as_me:$LINENO: result: $LEX" >&5
9462 echo "${ECHO_T}$LEX" >&6; }
9463 else
9464   { echo "$as_me:$LINENO: result: no" >&5
9465 echo "${ECHO_T}no" >&6; }
9466 fi
9467
9468
9469   test -n "$LEX" && break
9470 done
9471 test -n "$LEX" || LEX=":"
9472
9473 if test -z "$LEXLIB"
9474 then
9475   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
9476 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
9477 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
9478   echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480   ac_check_lib_save_LIBS=$LIBS
9481 LIBS="-lfl  $LIBS"
9482 cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h.  */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h.  */
9488
9489 /* Override any GCC internal prototype to avoid an error.
9490    Use char because int might match the return type of a GCC
9491    builtin and then its argument prototype would still apply.  */
9492 #ifdef __cplusplus
9493 extern "C"
9494 #endif
9495 char yywrap ();
9496 int
9497 main ()
9498 {
9499 return yywrap ();
9500   ;
9501   return 0;
9502 }
9503 _ACEOF
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (ac_try="$ac_link"
9506 case "(($ac_try" in
9507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508   *) ac_try_echo=$ac_try;;
9509 esac
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511   (eval "$ac_link") 2>conftest.er1
9512   ac_status=$?
9513   grep -v '^ *+' conftest.er1 >conftest.err
9514   rm -f conftest.er1
9515   cat conftest.err >&5
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); } &&
9518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9519   { (case "(($ac_try" in
9520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521   *) ac_try_echo=$ac_try;;
9522 esac
9523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524   (eval "$ac_try") 2>&5
9525   ac_status=$?
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); }; } &&
9528          { ac_try='test -s conftest$ac_exeext'
9529   { (case "(($ac_try" in
9530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531   *) ac_try_echo=$ac_try;;
9532 esac
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534   (eval "$ac_try") 2>&5
9535   ac_status=$?
9536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537   (exit $ac_status); }; }; then
9538   ac_cv_lib_fl_yywrap=yes
9539 else
9540   echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9542
9543         ac_cv_lib_fl_yywrap=no
9544 fi
9545
9546 rm -f core conftest.err conftest.$ac_objext \
9547       conftest$ac_exeext conftest.$ac_ext
9548 LIBS=$ac_check_lib_save_LIBS
9549 fi
9550 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9551 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
9552 if test $ac_cv_lib_fl_yywrap = yes; then
9553   LEXLIB="-lfl"
9554 else
9555   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
9556 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
9557 if test "${ac_cv_lib_l_yywrap+set}" = set; then
9558   echo $ECHO_N "(cached) $ECHO_C" >&6
9559 else
9560   ac_check_lib_save_LIBS=$LIBS
9561 LIBS="-ll  $LIBS"
9562 cat >conftest.$ac_ext <<_ACEOF
9563 /* confdefs.h.  */
9564 _ACEOF
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h.  */
9568
9569 /* Override any GCC internal prototype to avoid an error.
9570    Use char because int might match the return type of a GCC
9571    builtin and then its argument prototype would still apply.  */
9572 #ifdef __cplusplus
9573 extern "C"
9574 #endif
9575 char yywrap ();
9576 int
9577 main ()
9578 {
9579 return yywrap ();
9580   ;
9581   return 0;
9582 }
9583 _ACEOF
9584 rm -f conftest.$ac_objext conftest$ac_exeext
9585 if { (ac_try="$ac_link"
9586 case "(($ac_try" in
9587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588   *) ac_try_echo=$ac_try;;
9589 esac
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591   (eval "$ac_link") 2>conftest.er1
9592   ac_status=$?
9593   grep -v '^ *+' conftest.er1 >conftest.err
9594   rm -f conftest.er1
9595   cat conftest.err >&5
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); } &&
9598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9599   { (case "(($ac_try" in
9600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601   *) ac_try_echo=$ac_try;;
9602 esac
9603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604   (eval "$ac_try") 2>&5
9605   ac_status=$?
9606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607   (exit $ac_status); }; } &&
9608          { ac_try='test -s conftest$ac_exeext'
9609   { (case "(($ac_try" in
9610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9611   *) ac_try_echo=$ac_try;;
9612 esac
9613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9614   (eval "$ac_try") 2>&5
9615   ac_status=$?
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); }; }; then
9618   ac_cv_lib_l_yywrap=yes
9619 else
9620   echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9622
9623         ac_cv_lib_l_yywrap=no
9624 fi
9625
9626 rm -f core conftest.err conftest.$ac_objext \
9627       conftest$ac_exeext conftest.$ac_ext
9628 LIBS=$ac_check_lib_save_LIBS
9629 fi
9630 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9631 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
9632 if test $ac_cv_lib_l_yywrap = yes; then
9633   LEXLIB="-ll"
9634 fi
9635
9636 fi
9637
9638 fi
9639
9640 if test "x$LEX" != "x:"; then
9641   { echo "$as_me:$LINENO: checking lex output file root" >&5
9642 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
9643 if test "${ac_cv_prog_lex_root+set}" = set; then
9644   echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646   # The minimal lex program is just a single line: %%.  But some broken lexes
9647 # (Solaris, I think it was) want two %% lines, so accommodate them.
9648 cat >conftest.l <<_ACEOF
9649 %%
9650 %%
9651 _ACEOF
9652 { (ac_try="$LEX conftest.l"
9653 case "(($ac_try" in
9654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655   *) ac_try_echo=$ac_try;;
9656 esac
9657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658   (eval "$LEX conftest.l") 2>&5
9659   ac_status=$?
9660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661   (exit $ac_status); }
9662 if test -f lex.yy.c; then
9663   ac_cv_prog_lex_root=lex.yy
9664 elif test -f lexyy.c; then
9665   ac_cv_prog_lex_root=lexyy
9666 else
9667   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9668 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9669    { (exit 1); exit 1; }; }
9670 fi
9671 fi
9672 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9673 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
9674 rm -f conftest.l
9675 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9676
9677 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9678 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
9679 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9680   echo $ECHO_N "(cached) $ECHO_C" >&6
9681 else
9682   # POSIX says lex can declare yytext either as a pointer or an array; the
9683 # default is implementation-dependent. Figure out which it is, since
9684 # not all implementations provide the %pointer and %array declarations.
9685 ac_cv_prog_lex_yytext_pointer=no
9686 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9687 ac_save_LIBS=$LIBS
9688 LIBS="$LIBS $LEXLIB"
9689 cat >conftest.$ac_ext <<_ACEOF
9690 `cat $LEX_OUTPUT_ROOT.c`
9691 _ACEOF
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (ac_try="$ac_link"
9694 case "(($ac_try" in
9695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696   *) ac_try_echo=$ac_try;;
9697 esac
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699   (eval "$ac_link") 2>conftest.er1
9700   ac_status=$?
9701   grep -v '^ *+' conftest.er1 >conftest.err
9702   rm -f conftest.er1
9703   cat conftest.err >&5
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); } &&
9706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9707   { (case "(($ac_try" in
9708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709   *) ac_try_echo=$ac_try;;
9710 esac
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712   (eval "$ac_try") 2>&5
9713   ac_status=$?
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); }; } &&
9716          { ac_try='test -s conftest$ac_exeext'
9717   { (case "(($ac_try" in
9718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719   *) ac_try_echo=$ac_try;;
9720 esac
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722   (eval "$ac_try") 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; }; then
9726   ac_cv_prog_lex_yytext_pointer=yes
9727 else
9728   echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9730
9731
9732 fi
9733
9734 rm -f core conftest.err conftest.$ac_objext \
9735       conftest$ac_exeext conftest.$ac_ext
9736 LIBS=$ac_save_LIBS
9737 rm -f "${LEX_OUTPUT_ROOT}.c"
9738
9739 fi
9740 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9741 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
9742 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9743
9744 cat >>confdefs.h <<\_ACEOF
9745 #define YYTEXT_POINTER 1
9746 _ACEOF
9747
9748 fi
9749
9750 fi
9751 if test ${LEX} = "flex"; then
9752         cat >>confdefs.h <<\_ACEOF
9753 #define HAVE_FLEX 1
9754 _ACEOF
9755
9756 fi
9757 for ac_prog in 'bison -y' byacc
9758 do
9759   # Extract the first word of "$ac_prog", so it can be a program name with args.
9760 set dummy $ac_prog; ac_word=$2
9761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9763 if test "${ac_cv_prog_YACC+set}" = set; then
9764   echo $ECHO_N "(cached) $ECHO_C" >&6
9765 else
9766   if test -n "$YACC"; then
9767   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9768 else
9769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770 for as_dir in $PATH
9771 do
9772   IFS=$as_save_IFS
9773   test -z "$as_dir" && as_dir=.
9774   for ac_exec_ext in '' $ac_executable_extensions; do
9775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9776     ac_cv_prog_YACC="$ac_prog"
9777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9778     break 2
9779   fi
9780 done
9781 done
9782 IFS=$as_save_IFS
9783
9784 fi
9785 fi
9786 YACC=$ac_cv_prog_YACC
9787 if test -n "$YACC"; then
9788   { echo "$as_me:$LINENO: result: $YACC" >&5
9789 echo "${ECHO_T}$YACC" >&6; }
9790 else
9791   { echo "$as_me:$LINENO: result: no" >&5
9792 echo "${ECHO_T}no" >&6; }
9793 fi
9794
9795
9796   test -n "$YACC" && break
9797 done
9798 test -n "$YACC" || YACC="yacc"
9799
9800 # Extract the first word of "bison++", so it can be a program name with args.
9801 set dummy bison++; ac_word=$2
9802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9804 if test "${ac_cv_prog_BISON_PLUS_PLUS+set}" = set; then
9805   echo $ECHO_N "(cached) $ECHO_C" >&6
9806 else
9807   if test -n "$BISON_PLUS_PLUS"; then
9808   ac_cv_prog_BISON_PLUS_PLUS="$BISON_PLUS_PLUS" # Let the user override the test.
9809 else
9810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9811 for as_dir in $PATH
9812 do
9813   IFS=$as_save_IFS
9814   test -z "$as_dir" && as_dir=.
9815   for ac_exec_ext in '' $ac_executable_extensions; do
9816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9817     ac_cv_prog_BISON_PLUS_PLUS="bison++"
9818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9819     break 2
9820   fi
9821 done
9822 done
9823 IFS=$as_save_IFS
9824
9825   test -z "$ac_cv_prog_BISON_PLUS_PLUS" && ac_cv_prog_BISON_PLUS_PLUS=":"
9826 fi
9827 fi
9828 BISON_PLUS_PLUS=$ac_cv_prog_BISON_PLUS_PLUS
9829 if test -n "$BISON_PLUS_PLUS"; then
9830   { echo "$as_me:$LINENO: result: $BISON_PLUS_PLUS" >&5
9831 echo "${ECHO_T}$BISON_PLUS_PLUS" >&6; }
9832 else
9833   { echo "$as_me:$LINENO: result: no" >&5
9834 echo "${ECHO_T}no" >&6; }
9835 fi
9836
9837
9838
9839
9840 ac_ext=cpp
9841 ac_cpp='$CXXCPP $CPPFLAGS'
9842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9845
9846
9847 # Checking for header files.
9848 # ===========================================================================
9849
9850 if test -d /stuff/include; then
9851   CPPFLAGS="$CPPFLAGS -I/stuff/include"
9852 fi
9853
9854
9855
9856 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9857 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9858 if test "${ac_cv_header_stdc+set}" = set; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861   cat >conftest.$ac_ext <<_ACEOF
9862 /* confdefs.h.  */
9863 _ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h.  */
9867 #include <stdlib.h>
9868 #include <stdarg.h>
9869 #include <string.h>
9870 #include <float.h>
9871
9872 int
9873 main ()
9874 {
9875
9876   ;
9877   return 0;
9878 }
9879 _ACEOF
9880 rm -f conftest.$ac_objext
9881 if { (ac_try="$ac_compile"
9882 case "(($ac_try" in
9883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884   *) ac_try_echo=$ac_try;;
9885 esac
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887   (eval "$ac_compile") 2>conftest.er1
9888   ac_status=$?
9889   grep -v '^ *+' conftest.er1 >conftest.err
9890   rm -f conftest.er1
9891   cat conftest.err >&5
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); } &&
9894          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9895   { (case "(($ac_try" in
9896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897   *) ac_try_echo=$ac_try;;
9898 esac
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900   (eval "$ac_try") 2>&5
9901   ac_status=$?
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); }; } &&
9904          { ac_try='test -s conftest.$ac_objext'
9905   { (case "(($ac_try" in
9906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907   *) ac_try_echo=$ac_try;;
9908 esac
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910   (eval "$ac_try") 2>&5
9911   ac_status=$?
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); }; }; then
9914   ac_cv_header_stdc=yes
9915 else
9916   echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9918
9919         ac_cv_header_stdc=no
9920 fi
9921
9922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9923
9924 if test $ac_cv_header_stdc = yes; then
9925   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9926   cat >conftest.$ac_ext <<_ACEOF
9927 /* confdefs.h.  */
9928 _ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h.  */
9932 #include <string.h>
9933
9934 _ACEOF
9935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9936   $EGREP "memchr" >/dev/null 2>&1; then
9937   :
9938 else
9939   ac_cv_header_stdc=no
9940 fi
9941 rm -f conftest*
9942
9943 fi
9944
9945 if test $ac_cv_header_stdc = yes; then
9946   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9947   cat >conftest.$ac_ext <<_ACEOF
9948 /* confdefs.h.  */
9949 _ACEOF
9950 cat confdefs.h >>conftest.$ac_ext
9951 cat >>conftest.$ac_ext <<_ACEOF
9952 /* end confdefs.h.  */
9953 #include <stdlib.h>
9954
9955 _ACEOF
9956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9957   $EGREP "free" >/dev/null 2>&1; then
9958   :
9959 else
9960   ac_cv_header_stdc=no
9961 fi
9962 rm -f conftest*
9963
9964 fi
9965
9966 if test $ac_cv_header_stdc = yes; then
9967   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9968   if test "$cross_compiling" = yes; then
9969   :
9970 else
9971   cat >conftest.$ac_ext <<_ACEOF
9972 /* confdefs.h.  */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h.  */
9977 #include <ctype.h>
9978 #include <stdlib.h>
9979 #if ((' ' & 0x0FF) == 0x020)
9980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9982 #else
9983 # define ISLOWER(c) \
9984                    (('a' <= (c) && (c) <= 'i') \
9985                      || ('j' <= (c) && (c) <= 'r') \
9986                      || ('s' <= (c) && (c) <= 'z'))
9987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9988 #endif
9989
9990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9991 int
9992 main ()
9993 {
9994   int i;
9995   for (i = 0; i < 256; i++)
9996     if (XOR (islower (i), ISLOWER (i))
9997         || toupper (i) != TOUPPER (i))
9998       return 2;
9999   return 0;
10000 }
10001 _ACEOF
10002 rm -f conftest$ac_exeext
10003 if { (ac_try="$ac_link"
10004 case "(($ac_try" in
10005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006   *) ac_try_echo=$ac_try;;
10007 esac
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009   (eval "$ac_link") 2>&5
10010   ac_status=$?
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10013   { (case "(($ac_try" in
10014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015   *) ac_try_echo=$ac_try;;
10016 esac
10017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018   (eval "$ac_try") 2>&5
10019   ac_status=$?
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); }; }; then
10022   :
10023 else
10024   echo "$as_me: program exited with status $ac_status" >&5
10025 echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10027
10028 ( exit $ac_status )
10029 ac_cv_header_stdc=no
10030 fi
10031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10032 fi
10033
10034
10035 fi
10036 fi
10037 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10038 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
10039 if test $ac_cv_header_stdc = yes; then
10040
10041 cat >>confdefs.h <<\_ACEOF
10042 #define STDC_HEADERS 1
10043 _ACEOF
10044
10045 fi
10046
10047
10048
10049
10050 for ac_header in getopt.h unistd.h termios.h
10051 do
10052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10054   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10057   echo $ECHO_N "(cached) $ECHO_C" >&6
10058 fi
10059 ac_res=`eval echo '${'$as_ac_Header'}'`
10060                { echo "$as_me:$LINENO: result: $ac_res" >&5
10061 echo "${ECHO_T}$ac_res" >&6; }
10062 else
10063   # Is the header compilable?
10064 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10066 cat >conftest.$ac_ext <<_ACEOF
10067 /* confdefs.h.  */
10068 _ACEOF
10069 cat confdefs.h >>conftest.$ac_ext
10070 cat >>conftest.$ac_ext <<_ACEOF
10071 /* end confdefs.h.  */
10072 $ac_includes_default
10073 #include <$ac_header>
10074 _ACEOF
10075 rm -f conftest.$ac_objext
10076 if { (ac_try="$ac_compile"
10077 case "(($ac_try" in
10078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079   *) ac_try_echo=$ac_try;;
10080 esac
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082   (eval "$ac_compile") 2>conftest.er1
10083   ac_status=$?
10084   grep -v '^ *+' conftest.er1 >conftest.err
10085   rm -f conftest.er1
10086   cat conftest.err >&5
10087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088   (exit $ac_status); } &&
10089          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10090   { (case "(($ac_try" in
10091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092   *) ac_try_echo=$ac_try;;
10093 esac
10094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095   (eval "$ac_try") 2>&5
10096   ac_status=$?
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); }; } &&
10099          { ac_try='test -s conftest.$ac_objext'
10100   { (case "(($ac_try" in
10101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102   *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105   (eval "$ac_try") 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; }; then
10109   ac_header_compiler=yes
10110 else
10111   echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10113
10114         ac_header_compiler=no
10115 fi
10116
10117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10119 echo "${ECHO_T}$ac_header_compiler" >&6; }
10120
10121 # Is the header present?
10122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10124 cat >conftest.$ac_ext <<_ACEOF
10125 /* confdefs.h.  */
10126 _ACEOF
10127 cat confdefs.h >>conftest.$ac_ext
10128 cat >>conftest.$ac_ext <<_ACEOF
10129 /* end confdefs.h.  */
10130 #include <$ac_header>
10131 _ACEOF
10132 if { (ac_try="$ac_cpp conftest.$ac_ext"
10133 case "(($ac_try" in
10134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135   *) ac_try_echo=$ac_try;;
10136 esac
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10139   ac_status=$?
10140   grep -v '^ *+' conftest.er1 >conftest.err
10141   rm -f conftest.er1
10142   cat conftest.err >&5
10143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144   (exit $ac_status); } >/dev/null; then
10145   if test -s conftest.err; then
10146     ac_cpp_err=$ac_cxx_preproc_warn_flag
10147     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10148   else
10149     ac_cpp_err=
10150   fi
10151 else
10152   ac_cpp_err=yes
10153 fi
10154 if test -z "$ac_cpp_err"; then
10155   ac_header_preproc=yes
10156 else
10157   echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10159
10160   ac_header_preproc=no
10161 fi
10162
10163 rm -f conftest.err conftest.$ac_ext
10164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10165 echo "${ECHO_T}$ac_header_preproc" >&6; }
10166
10167 # So?  What about this header?
10168 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10169   yes:no: )
10170     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10174     ac_header_preproc=yes
10175     ;;
10176   no:yes:* )
10177     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10179     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10180 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10181     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10183     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10184 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10187     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10189
10190     ;;
10191 esac
10192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10195   echo $ECHO_N "(cached) $ECHO_C" >&6
10196 else
10197   eval "$as_ac_Header=\$ac_header_preproc"
10198 fi
10199 ac_res=`eval echo '${'$as_ac_Header'}'`
10200                { echo "$as_me:$LINENO: result: $ac_res" >&5
10201 echo "${ECHO_T}$ac_res" >&6; }
10202
10203 fi
10204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10205   cat >>confdefs.h <<_ACEOF
10206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10207 _ACEOF
10208
10209 fi
10210
10211 done
10212
10213
10214 if test "${ac_cv_header_curses_h+set}" = set; then
10215   { echo "$as_me:$LINENO: checking for curses.h" >&5
10216 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
10217 if test "${ac_cv_header_curses_h+set}" = set; then
10218   echo $ECHO_N "(cached) $ECHO_C" >&6
10219 fi
10220 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
10221 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
10222 else
10223   # Is the header compilable?
10224 { echo "$as_me:$LINENO: checking curses.h usability" >&5
10225 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
10226 cat >conftest.$ac_ext <<_ACEOF
10227 /* confdefs.h.  */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h.  */
10232 $ac_includes_default
10233 #include <curses.h>
10234 _ACEOF
10235 rm -f conftest.$ac_objext
10236 if { (ac_try="$ac_compile"
10237 case "(($ac_try" in
10238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239   *) ac_try_echo=$ac_try;;
10240 esac
10241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10242   (eval "$ac_compile") 2>conftest.er1
10243   ac_status=$?
10244   grep -v '^ *+' conftest.er1 >conftest.err
10245   rm -f conftest.er1
10246   cat conftest.err >&5
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); } &&
10249          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10250   { (case "(($ac_try" in
10251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252   *) ac_try_echo=$ac_try;;
10253 esac
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255   (eval "$ac_try") 2>&5
10256   ac_status=$?
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); }; } &&
10259          { ac_try='test -s conftest.$ac_objext'
10260   { (case "(($ac_try" in
10261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262   *) ac_try_echo=$ac_try;;
10263 esac
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265   (eval "$ac_try") 2>&5
10266   ac_status=$?
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); }; }; then
10269   ac_header_compiler=yes
10270 else
10271   echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10273
10274         ac_header_compiler=no
10275 fi
10276
10277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10279 echo "${ECHO_T}$ac_header_compiler" >&6; }
10280
10281 # Is the header present?
10282 { echo "$as_me:$LINENO: checking curses.h presence" >&5
10283 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
10284 cat >conftest.$ac_ext <<_ACEOF
10285 /* confdefs.h.  */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h.  */
10290 #include <curses.h>
10291 _ACEOF
10292 if { (ac_try="$ac_cpp conftest.$ac_ext"
10293 case "(($ac_try" in
10294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295   *) ac_try_echo=$ac_try;;
10296 esac
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10299   ac_status=$?
10300   grep -v '^ *+' conftest.er1 >conftest.err
10301   rm -f conftest.er1
10302   cat conftest.err >&5
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); } >/dev/null; then
10305   if test -s conftest.err; then
10306     ac_cpp_err=$ac_cxx_preproc_warn_flag
10307     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10308   else
10309     ac_cpp_err=
10310   fi
10311 else
10312   ac_cpp_err=yes
10313 fi
10314 if test -z "$ac_cpp_err"; then
10315   ac_header_preproc=yes
10316 else
10317   echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10319
10320   ac_header_preproc=no
10321 fi
10322
10323 rm -f conftest.err conftest.$ac_ext
10324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10325 echo "${ECHO_T}$ac_header_preproc" >&6; }
10326
10327 # So?  What about this header?
10328 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10329   yes:no: )
10330     { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
10331 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10332     { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
10333 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
10334     ac_header_preproc=yes
10335     ;;
10336   no:yes:* )
10337     { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
10338 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
10339     { echo "$as_me:$LINENO: WARNING: curses.h:     check for missing prerequisite headers?" >&5
10340 echo "$as_me: WARNING: curses.h:     check for missing prerequisite headers?" >&2;}
10341     { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
10342 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
10343     { echo "$as_me:$LINENO: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&5
10344 echo "$as_me: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10345     { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
10346 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
10347     { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
10348 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
10349
10350     ;;
10351 esac
10352 { echo "$as_me:$LINENO: checking for curses.h" >&5
10353 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
10354 if test "${ac_cv_header_curses_h+set}" = set; then
10355   echo $ECHO_N "(cached) $ECHO_C" >&6
10356 else
10357   ac_cv_header_curses_h=$ac_header_preproc
10358 fi
10359 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
10360 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
10361
10362 fi
10363 if test $ac_cv_header_curses_h = yes; then
10364   cat >>confdefs.h <<\_ACEOF
10365 #define HAVE_CURSES_H 1
10366 _ACEOF
10367
10368   curses_h_ok=yes
10369 else
10370   curses_h_ok=no
10371
10372 fi
10373
10374
10375
10376 ucsim_cv_socket="unknown"
10377 if test "${ac_cv_header_sys_socket_h+set}" = set; then
10378   { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
10379 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
10380 if test "${ac_cv_header_sys_socket_h+set}" = set; then
10381   echo $ECHO_N "(cached) $ECHO_C" >&6
10382 fi
10383 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
10384 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
10385 else
10386   # Is the header compilable?
10387 { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
10388 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
10389 cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h.  */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h.  */
10395 $ac_includes_default
10396 #include <sys/socket.h>
10397 _ACEOF
10398 rm -f conftest.$ac_objext
10399 if { (ac_try="$ac_compile"
10400 case "(($ac_try" in
10401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402   *) ac_try_echo=$ac_try;;
10403 esac
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405   (eval "$ac_compile") 2>conftest.er1
10406   ac_status=$?
10407   grep -v '^ *+' conftest.er1 >conftest.err
10408   rm -f conftest.er1
10409   cat conftest.err >&5
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); } &&
10412          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10413   { (case "(($ac_try" in
10414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415   *) ac_try_echo=$ac_try;;
10416 esac
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418   (eval "$ac_try") 2>&5
10419   ac_status=$?
10420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421   (exit $ac_status); }; } &&
10422          { ac_try='test -s conftest.$ac_objext'
10423   { (case "(($ac_try" in
10424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425   *) ac_try_echo=$ac_try;;
10426 esac
10427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428   (eval "$ac_try") 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); }; }; then
10432   ac_header_compiler=yes
10433 else
10434   echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10436
10437         ac_header_compiler=no
10438 fi
10439
10440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10442 echo "${ECHO_T}$ac_header_compiler" >&6; }
10443
10444 # Is the header present?
10445 { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
10446 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
10447 cat >conftest.$ac_ext <<_ACEOF
10448 /* confdefs.h.  */
10449 _ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h.  */
10453 #include <sys/socket.h>
10454 _ACEOF
10455 if { (ac_try="$ac_cpp conftest.$ac_ext"
10456 case "(($ac_try" in
10457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458   *) ac_try_echo=$ac_try;;
10459 esac
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10462   ac_status=$?
10463   grep -v '^ *+' conftest.er1 >conftest.err
10464   rm -f conftest.er1
10465   cat conftest.err >&5
10466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467   (exit $ac_status); } >/dev/null; then
10468   if test -s conftest.err; then
10469     ac_cpp_err=$ac_cxx_preproc_warn_flag
10470     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10471   else
10472     ac_cpp_err=
10473   fi
10474 else
10475   ac_cpp_err=yes
10476 fi
10477 if test -z "$ac_cpp_err"; then
10478   ac_header_preproc=yes
10479 else
10480   echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483   ac_header_preproc=no
10484 fi
10485
10486 rm -f conftest.err conftest.$ac_ext
10487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10488 echo "${ECHO_T}$ac_header_preproc" >&6; }
10489
10490 # So?  What about this header?
10491 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10492   yes:no: )
10493     { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
10494 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10495     { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
10496 echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
10497     ac_header_preproc=yes
10498     ;;
10499   no:yes:* )
10500     { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
10501 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
10502     { echo "$as_me:$LINENO: WARNING: sys/socket.h:     check for missing prerequisite headers?" >&5
10503 echo "$as_me: WARNING: sys/socket.h:     check for missing prerequisite headers?" >&2;}
10504     { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
10505 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
10506     { echo "$as_me:$LINENO: WARNING: sys/socket.h:     section \"Present But Cannot Be Compiled\"" >&5
10507 echo "$as_me: WARNING: sys/socket.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10508     { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
10509 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
10510     { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
10511 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
10512
10513     ;;
10514 esac
10515 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
10516 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
10517 if test "${ac_cv_header_sys_socket_h+set}" = set; then
10518   echo $ECHO_N "(cached) $ECHO_C" >&6
10519 else
10520   ac_cv_header_sys_socket_h=$ac_header_preproc
10521 fi
10522 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
10523 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
10524
10525 fi
10526 if test $ac_cv_header_sys_socket_h = yes; then
10527   cat >>confdefs.h <<\_ACEOF
10528 #define HAVE_SYS_SOCKET_H 1
10529 _ACEOF
10530
10531   cat >>confdefs.h <<\_ACEOF
10532 #define SOCKET_AVAIL 1
10533 _ACEOF
10534
10535   cat >>confdefs.h <<_ACEOF
10536 #define UCSOCKET_T int
10537 _ACEOF
10538
10539   ucsim_cv_socket="<sys/socket.h>"
10540
10541 fi
10542
10543
10544
10545 WINSOCK_AVAIL=0
10546 if test $ucsim_cv_socket = unknown; then
10547   if test "${ac_cv_header_winsock2_h+set}" = set; then
10548   { echo "$as_me:$LINENO: checking for winsock2.h" >&5
10549 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
10550 if test "${ac_cv_header_winsock2_h+set}" = set; then
10551   echo $ECHO_N "(cached) $ECHO_C" >&6
10552 fi
10553 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
10554 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
10555 else
10556   # Is the header compilable?
10557 { echo "$as_me:$LINENO: checking winsock2.h usability" >&5
10558 echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
10559 cat >conftest.$ac_ext <<_ACEOF
10560 /* confdefs.h.  */
10561 _ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h.  */
10565 $ac_includes_default
10566 #include <winsock2.h>
10567 _ACEOF
10568 rm -f conftest.$ac_objext
10569 if { (ac_try="$ac_compile"
10570 case "(($ac_try" in
10571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572   *) ac_try_echo=$ac_try;;
10573 esac
10574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575   (eval "$ac_compile") 2>conftest.er1
10576   ac_status=$?
10577   grep -v '^ *+' conftest.er1 >conftest.err
10578   rm -f conftest.er1
10579   cat conftest.err >&5
10580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581   (exit $ac_status); } &&
10582          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10583   { (case "(($ac_try" in
10584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585   *) ac_try_echo=$ac_try;;
10586 esac
10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588   (eval "$ac_try") 2>&5
10589   ac_status=$?
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); }; } &&
10592          { ac_try='test -s conftest.$ac_objext'
10593   { (case "(($ac_try" in
10594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595   *) ac_try_echo=$ac_try;;
10596 esac
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598   (eval "$ac_try") 2>&5
10599   ac_status=$?
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); }; }; then
10602   ac_header_compiler=yes
10603 else
10604   echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10606
10607         ac_header_compiler=no
10608 fi
10609
10610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10612 echo "${ECHO_T}$ac_header_compiler" >&6; }
10613
10614 # Is the header present?
10615 { echo "$as_me:$LINENO: checking winsock2.h presence" >&5
10616 echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
10617 cat >conftest.$ac_ext <<_ACEOF
10618 /* confdefs.h.  */
10619 _ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h.  */
10623 #include <winsock2.h>
10624 _ACEOF
10625 if { (ac_try="$ac_cpp conftest.$ac_ext"
10626 case "(($ac_try" in
10627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628   *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10632   ac_status=$?
10633   grep -v '^ *+' conftest.er1 >conftest.err
10634   rm -f conftest.er1
10635   cat conftest.err >&5
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); } >/dev/null; then
10638   if test -s conftest.err; then
10639     ac_cpp_err=$ac_cxx_preproc_warn_flag
10640     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10641   else
10642     ac_cpp_err=
10643   fi
10644 else
10645   ac_cpp_err=yes
10646 fi
10647 if test -z "$ac_cpp_err"; then
10648   ac_header_preproc=yes
10649 else
10650   echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10652
10653   ac_header_preproc=no
10654 fi
10655
10656 rm -f conftest.err conftest.$ac_ext
10657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10658 echo "${ECHO_T}$ac_header_preproc" >&6; }
10659
10660 # So?  What about this header?
10661 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10662   yes:no: )
10663     { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
10664 echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10665     { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
10666 echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
10667     ac_header_preproc=yes
10668     ;;
10669   no:yes:* )
10670     { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
10671 echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
10672     { echo "$as_me:$LINENO: WARNING: winsock2.h:     check for missing prerequisite headers?" >&5
10673 echo "$as_me: WARNING: winsock2.h:     check for missing prerequisite headers?" >&2;}
10674     { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
10675 echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
10676     { echo "$as_me:$LINENO: WARNING: winsock2.h:     section \"Present But Cannot Be Compiled\"" >&5
10677 echo "$as_me: WARNING: winsock2.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10678     { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
10679 echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
10680     { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
10681 echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
10682
10683     ;;
10684 esac
10685 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
10686 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
10687 if test "${ac_cv_header_winsock2_h+set}" = set; then
10688   echo $ECHO_N "(cached) $ECHO_C" >&6
10689 else
10690   ac_cv_header_winsock2_h=$ac_header_preproc
10691 fi
10692 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
10693 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
10694
10695 fi
10696 if test $ac_cv_header_winsock2_h = yes; then
10697   cat >>confdefs.h <<\_ACEOF
10698 #define HAVE_WINSOCK2_H 1
10699 _ACEOF
10700
10701     cat >>confdefs.h <<\_ACEOF
10702 #define SOCKET_AVAIL 1
10703 _ACEOF
10704
10705     cat >>confdefs.h <<_ACEOF
10706 #define UCSOCKET_T SOCKET
10707 _ACEOF
10708
10709     ucsim_cv_socket="<winsock2.h>"
10710     WINSOCK_AVAIL=1
10711
10712 fi
10713
10714
10715 fi
10716
10717
10718 if test $ucsim_cv_socket != unknown; then
10719   cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h.  */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h.  */
10725 #include <$ucsim_cv_socket>
10726
10727 _ACEOF
10728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10729   $EGREP "socklen_t" >/dev/null 2>&1; then
10730   cat >>confdefs.h <<_ACEOF
10731 #define SOCKLEN_T socklen_t
10732 _ACEOF
10733
10734 else
10735   cat >>confdefs.h <<_ACEOF
10736 #define SOCKLEN_T uint
10737 _ACEOF
10738
10739 fi
10740 rm -f conftest*
10741
10742 fi
10743 cat >>confdefs.h <<_ACEOF
10744 #define HEADER_SOCKET ${ucsim_cv_socket}
10745 _ACEOF
10746
10747
10748 if test "${ac_cv_header_dlfcn_h+set}" = set; then
10749   { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
10750 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
10751 if test "${ac_cv_header_dlfcn_h+set}" = set; then
10752   echo $ECHO_N "(cached) $ECHO_C" >&6
10753 fi
10754 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
10755 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
10756 else
10757   # Is the header compilable?
10758 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
10759 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
10760 cat >conftest.$ac_ext <<_ACEOF
10761 /* confdefs.h.  */
10762 _ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h.  */
10766 $ac_includes_default
10767 #include <dlfcn.h>
10768 _ACEOF
10769 rm -f conftest.$ac_objext
10770 if { (ac_try="$ac_compile"
10771 case "(($ac_try" in
10772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773   *) ac_try_echo=$ac_try;;
10774 esac
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776   (eval "$ac_compile") 2>conftest.er1
10777   ac_status=$?
10778   grep -v '^ *+' conftest.er1 >conftest.err
10779   rm -f conftest.er1
10780   cat conftest.err >&5
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); } &&
10783          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10784   { (case "(($ac_try" in
10785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786   *) ac_try_echo=$ac_try;;
10787 esac
10788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789   (eval "$ac_try") 2>&5
10790   ac_status=$?
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); }; } &&
10793          { ac_try='test -s conftest.$ac_objext'
10794   { (case "(($ac_try" in
10795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796   *) ac_try_echo=$ac_try;;
10797 esac
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799   (eval "$ac_try") 2>&5
10800   ac_status=$?
10801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802   (exit $ac_status); }; }; then
10803   ac_header_compiler=yes
10804 else
10805   echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10807
10808         ac_header_compiler=no
10809 fi
10810
10811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10813 echo "${ECHO_T}$ac_header_compiler" >&6; }
10814
10815 # Is the header present?
10816 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
10817 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
10818 cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h.  */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h.  */
10824 #include <dlfcn.h>
10825 _ACEOF
10826 if { (ac_try="$ac_cpp conftest.$ac_ext"
10827 case "(($ac_try" in
10828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829   *) ac_try_echo=$ac_try;;
10830 esac
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10833   ac_status=$?
10834   grep -v '^ *+' conftest.er1 >conftest.err
10835   rm -f conftest.er1
10836   cat conftest.err >&5
10837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838   (exit $ac_status); } >/dev/null; then
10839   if test -s conftest.err; then
10840     ac_cpp_err=$ac_cxx_preproc_warn_flag
10841     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10842   else
10843     ac_cpp_err=
10844   fi
10845 else
10846   ac_cpp_err=yes
10847 fi
10848 if test -z "$ac_cpp_err"; then
10849   ac_header_preproc=yes
10850 else
10851   echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10853
10854   ac_header_preproc=no
10855 fi
10856
10857 rm -f conftest.err conftest.$ac_ext
10858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10859 echo "${ECHO_T}$ac_header_preproc" >&6; }
10860
10861 # So?  What about this header?
10862 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10863   yes:no: )
10864     { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
10865 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10866     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
10867 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
10868     ac_header_preproc=yes
10869     ;;
10870   no:yes:* )
10871     { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
10872 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
10873     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
10874 echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
10875     { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
10876 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
10877     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
10878 echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10879     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
10880 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
10881     { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
10882 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
10883
10884     ;;
10885 esac
10886 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
10887 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
10888 if test "${ac_cv_header_dlfcn_h+set}" = set; then
10889   echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891   ac_cv_header_dlfcn_h=$ac_header_preproc
10892 fi
10893 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
10894 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
10895
10896 fi
10897
10898
10899
10900
10901
10902
10903
10904 ac_header_dirent=no
10905 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10906   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10907 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10908 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10910   echo $ECHO_N "(cached) $ECHO_C" >&6
10911 else
10912   cat >conftest.$ac_ext <<_ACEOF
10913 /* confdefs.h.  */
10914 _ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h.  */
10918 #include <sys/types.h>
10919 #include <$ac_hdr>
10920
10921 int
10922 main ()
10923 {
10924 if ((DIR *) 0)
10925 return 0;
10926   ;
10927   return 0;
10928 }
10929 _ACEOF
10930 rm -f conftest.$ac_objext
10931 if { (ac_try="$ac_compile"
10932 case "(($ac_try" in
10933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934   *) ac_try_echo=$ac_try;;
10935 esac
10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937   (eval "$ac_compile") 2>conftest.er1
10938   ac_status=$?
10939   grep -v '^ *+' conftest.er1 >conftest.err
10940   rm -f conftest.er1
10941   cat conftest.err >&5
10942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943   (exit $ac_status); } &&
10944          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10945   { (case "(($ac_try" in
10946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947   *) ac_try_echo=$ac_try;;
10948 esac
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950   (eval "$ac_try") 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); }; } &&
10954          { ac_try='test -s conftest.$ac_objext'
10955   { (case "(($ac_try" in
10956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957   *) ac_try_echo=$ac_try;;
10958 esac
10959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960   (eval "$ac_try") 2>&5
10961   ac_status=$?
10962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963   (exit $ac_status); }; }; then
10964   eval "$as_ac_Header=yes"
10965 else
10966   echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10968
10969         eval "$as_ac_Header=no"
10970 fi
10971
10972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10973 fi
10974 ac_res=`eval echo '${'$as_ac_Header'}'`
10975                { echo "$as_me:$LINENO: result: $ac_res" >&5
10976 echo "${ECHO_T}$ac_res" >&6; }
10977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10978   cat >>confdefs.h <<_ACEOF
10979 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10980 _ACEOF
10981
10982 ac_header_dirent=$ac_hdr; break
10983 fi
10984
10985 done
10986 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10987 if test $ac_header_dirent = dirent.h; then
10988   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10989 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10990 if test "${ac_cv_search_opendir+set}" = set; then
10991   echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993   ac_func_search_save_LIBS=$LIBS
10994 cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h.  */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h.  */
11000
11001 /* Override any GCC internal prototype to avoid an error.
11002    Use char because int might match the return type of a GCC
11003    builtin and then its argument prototype would still apply.  */
11004 #ifdef __cplusplus
11005 extern "C"
11006 #endif
11007 char opendir ();
11008 int
11009 main ()
11010 {
11011 return opendir ();
11012   ;
11013   return 0;
11014 }
11015 _ACEOF
11016 for ac_lib in '' dir; do
11017   if test -z "$ac_lib"; then
11018     ac_res="none required"
11019   else
11020     ac_res=-l$ac_lib
11021     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11022   fi
11023   rm -f conftest.$ac_objext conftest$ac_exeext
11024 if { (ac_try="$ac_link"
11025 case "(($ac_try" in
11026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027   *) ac_try_echo=$ac_try;;
11028 esac
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030   (eval "$ac_link") 2>conftest.er1
11031   ac_status=$?
11032   grep -v '^ *+' conftest.er1 >conftest.err
11033   rm -f conftest.er1
11034   cat conftest.err >&5
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); } &&
11037          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11038   { (case "(($ac_try" in
11039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040   *) ac_try_echo=$ac_try;;
11041 esac
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043   (eval "$ac_try") 2>&5
11044   ac_status=$?
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); }; } &&
11047          { ac_try='test -s conftest$ac_exeext'
11048   { (case "(($ac_try" in
11049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050   *) ac_try_echo=$ac_try;;
11051 esac
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053   (eval "$ac_try") 2>&5
11054   ac_status=$?
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); }; }; then
11057   ac_cv_search_opendir=$ac_res
11058 else
11059   echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11061
11062
11063 fi
11064
11065 rm -f core conftest.err conftest.$ac_objext \
11066       conftest$ac_exeext
11067   if test "${ac_cv_search_opendir+set}" = set; then
11068   break
11069 fi
11070 done
11071 if test "${ac_cv_search_opendir+set}" = set; then
11072   :
11073 else
11074   ac_cv_search_opendir=no
11075 fi
11076 rm conftest.$ac_ext
11077 LIBS=$ac_func_search_save_LIBS
11078 fi
11079 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11080 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11081 ac_res=$ac_cv_search_opendir
11082 if test "$ac_res" != no; then
11083   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11084
11085 fi
11086
11087 else
11088   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11089 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11090 if test "${ac_cv_search_opendir+set}" = set; then
11091   echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093   ac_func_search_save_LIBS=$LIBS
11094 cat >conftest.$ac_ext <<_ACEOF
11095 /* confdefs.h.  */
11096 _ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h.  */
11100
11101 /* Override any GCC internal prototype to avoid an error.
11102    Use char because int might match the return type of a GCC
11103    builtin and then its argument prototype would still apply.  */
11104 #ifdef __cplusplus
11105 extern "C"
11106 #endif
11107 char opendir ();
11108 int
11109 main ()
11110 {
11111 return opendir ();
11112   ;
11113   return 0;
11114 }
11115 _ACEOF
11116 for ac_lib in '' x; do
11117   if test -z "$ac_lib"; then
11118     ac_res="none required"
11119   else
11120     ac_res=-l$ac_lib
11121     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11122   fi
11123   rm -f conftest.$ac_objext conftest$ac_exeext
11124 if { (ac_try="$ac_link"
11125 case "(($ac_try" in
11126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127   *) ac_try_echo=$ac_try;;
11128 esac
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130   (eval "$ac_link") 2>conftest.er1
11131   ac_status=$?
11132   grep -v '^ *+' conftest.er1 >conftest.err
11133   rm -f conftest.er1
11134   cat conftest.err >&5
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); } &&
11137          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11138   { (case "(($ac_try" in
11139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140   *) ac_try_echo=$ac_try;;
11141 esac
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143   (eval "$ac_try") 2>&5
11144   ac_status=$?
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); }; } &&
11147          { ac_try='test -s conftest$ac_exeext'
11148   { (case "(($ac_try" in
11149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150   *) ac_try_echo=$ac_try;;
11151 esac
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153   (eval "$ac_try") 2>&5
11154   ac_status=$?
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); }; }; then
11157   ac_cv_search_opendir=$ac_res
11158 else
11159   echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11161
11162
11163 fi
11164
11165 rm -f core conftest.err conftest.$ac_objext \
11166       conftest$ac_exeext
11167   if test "${ac_cv_search_opendir+set}" = set; then
11168   break
11169 fi
11170 done
11171 if test "${ac_cv_search_opendir+set}" = set; then
11172   :
11173 else
11174   ac_cv_search_opendir=no
11175 fi
11176 rm conftest.$ac_ext
11177 LIBS=$ac_func_search_save_LIBS
11178 fi
11179 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11180 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11181 ac_res=$ac_cv_search_opendir
11182 if test "$ac_res" != no; then
11183   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11184
11185 fi
11186
11187 fi
11188
11189
11190 # This must be after CXXCPP
11191
11192 { echo "$as_me:$LINENO: checking which header file defines FD_ macros" >&5
11193 echo $ECHO_N "checking which header file defines FD_ macros... $ECHO_C" >&6; }
11194 if test "${ucsim_cv_fd+set}" = set; then
11195   echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197   ucsim_cv_fd="unknown"
11198 cat >conftest.$ac_ext <<_ACEOF
11199 /* confdefs.h.  */
11200 _ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h.  */
11204
11205 #include <winsock2.h>
11206 #ifdef FD_ZERO
11207 yes
11208 #endif
11209 _ACEOF
11210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11211   $EGREP "yes" >/dev/null 2>&1; then
11212   ucsim_cv_fd="<winsock2.h>"
11213 fi
11214 rm -f conftest*
11215
11216 cat >conftest.$ac_ext <<_ACEOF
11217 /* confdefs.h.  */
11218 _ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h.  */
11222
11223 #include <sys/time.h>
11224 #ifdef FD_ZERO
11225 yes
11226 #endif
11227 _ACEOF
11228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11229   $EGREP "yes" >/dev/null 2>&1; then
11230   ucsim_cv_fd="<sys/time.h>"
11231 fi
11232 rm -f conftest*
11233
11234 cat >conftest.$ac_ext <<_ACEOF
11235 /* confdefs.h.  */
11236 _ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h.  */
11240
11241 #include <sys/types.h>
11242 #ifdef FD_ZERO
11243 yes
11244 #endif
11245 _ACEOF
11246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11247   $EGREP "yes" >/dev/null 2>&1; then
11248   ucsim_cv_fd="<sys/types.h>"
11249 fi
11250 rm -f conftest*
11251
11252 cat >conftest.$ac_ext <<_ACEOF
11253 /* confdefs.h.  */
11254 _ACEOF
11255 cat confdefs.h >>conftest.$ac_ext
11256 cat >>conftest.$ac_ext <<_ACEOF
11257 /* end confdefs.h.  */
11258
11259 #include <sys/select.h>
11260 #ifdef FD_ZERO
11261 yes
11262 #endif
11263 _ACEOF
11264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11265   $EGREP "yes" >/dev/null 2>&1; then
11266   ucsim_cv_fd="<sys/select.h>"
11267 fi
11268 rm -f conftest*
11269
11270 fi
11271 { echo "$as_me:$LINENO: result: $ucsim_cv_fd" >&5
11272 echo "${ECHO_T}$ucsim_cv_fd" >&6; }
11273
11274 ucsim_cv_header_ok=0
11275 if echo $ucsim_cv_fd|grep time >/dev/null 2>&1; then
11276 cat >>confdefs.h <<\_ACEOF
11277 #define FD_NEED_TIME_H 1
11278 _ACEOF
11279
11280 ucsim_cv_header_ok=1
11281 else
11282 cat >>confdefs.h <<\_ACEOF
11283 #define FD_NEED_TIME_H 0
11284 _ACEOF
11285
11286 fi
11287 if echo $ucsim_cv_fd|grep types >/dev/null 2>&1; then
11288 cat >>confdefs.h <<\_ACEOF
11289 #define FD_NEED_TYPES_H 1
11290 _ACEOF
11291
11292 ucsim_cv_header_ok=1
11293 else
11294 cat >>confdefs.h <<\_ACEOF
11295 #define FD_NEED_TYPES_H 0
11296 _ACEOF
11297
11298 fi
11299 if echo $ucsim_cv_fd|grep select >/dev/null 2>&1; then
11300 cat >>confdefs.h <<\_ACEOF
11301 #define FD_NEED_SELECT_H 1
11302 _ACEOF
11303
11304 ucsim_cv_header_ok=1
11305 else
11306 cat >>confdefs.h <<\_ACEOF
11307 #define FD_NEED_SELECT_H 0
11308 _ACEOF
11309
11310 fi
11311 if echo $ucsim_cv_fd|grep winsock2 >/dev/null 2>&1; then
11312 cat >>confdefs.h <<\_ACEOF
11313 #define FD_NEED_WINSOCK2_H 1
11314 _ACEOF
11315
11316 ucsim_cv_header_ok=1
11317 else
11318 cat >>confdefs.h <<\_ACEOF
11319 #define FD_NEED_WINSOCK2_H 0
11320 _ACEOF
11321
11322 fi
11323
11324 cat >>confdefs.h <<_ACEOF
11325 #define FD_HEADER_OK ${ucsim_cv_header_ok}
11326 _ACEOF
11327
11328 cat >>confdefs.h <<_ACEOF
11329 #define HEADER_FD ${ucsim_cv_fd}
11330 _ACEOF
11331
11332
11333
11334 # Checking for functions/libs
11335 # ===========================================================================
11336 if echo $ucsim_cv_socket|grep winsock2 >/dev/null 2>&1; then
11337   LIBS="-lws2_32 $LIBS"
11338 else
11339
11340 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11341 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
11342 if test "${ac_cv_lib_socket_socket+set}" = set; then
11343   echo $ECHO_N "(cached) $ECHO_C" >&6
11344 else
11345   ac_check_lib_save_LIBS=$LIBS
11346 LIBS="-lsocket  $LIBS"
11347 cat >conftest.$ac_ext <<_ACEOF
11348 /* confdefs.h.  */
11349 _ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h.  */
11353
11354 /* Override any GCC internal prototype to avoid an error.
11355    Use char because int might match the return type of a GCC
11356    builtin and then its argument prototype would still apply.  */
11357 #ifdef __cplusplus
11358 extern "C"
11359 #endif
11360 char socket ();
11361 int
11362 main ()
11363 {
11364 return socket ();
11365   ;
11366   return 0;
11367 }
11368 _ACEOF
11369 rm -f conftest.$ac_objext conftest$ac_exeext
11370 if { (ac_try="$ac_link"
11371 case "(($ac_try" in
11372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373   *) ac_try_echo=$ac_try;;
11374 esac
11375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376   (eval "$ac_link") 2>conftest.er1
11377   ac_status=$?
11378   grep -v '^ *+' conftest.er1 >conftest.err
11379   rm -f conftest.er1
11380   cat conftest.err >&5
11381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382   (exit $ac_status); } &&
11383          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11384   { (case "(($ac_try" in
11385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386   *) ac_try_echo=$ac_try;;
11387 esac
11388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389   (eval "$ac_try") 2>&5
11390   ac_status=$?
11391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392   (exit $ac_status); }; } &&
11393          { ac_try='test -s conftest$ac_exeext'
11394   { (case "(($ac_try" in
11395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396   *) ac_try_echo=$ac_try;;
11397 esac
11398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399   (eval "$ac_try") 2>&5
11400   ac_status=$?
11401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402   (exit $ac_status); }; }; then
11403   ac_cv_lib_socket_socket=yes
11404 else
11405   echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11407
11408         ac_cv_lib_socket_socket=no
11409 fi
11410
11411 rm -f core conftest.err conftest.$ac_objext \
11412       conftest$ac_exeext conftest.$ac_ext
11413 LIBS=$ac_check_lib_save_LIBS
11414 fi
11415 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11416 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
11417 if test $ac_cv_lib_socket_socket = yes; then
11418   cat >>confdefs.h <<_ACEOF
11419 #define HAVE_LIBSOCKET 1
11420 _ACEOF
11421
11422   LIBS="-lsocket $LIBS"
11423
11424 fi
11425
11426
11427 { echo "$as_me:$LINENO: checking for xdr_short in -lnsl" >&5
11428 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6; }
11429 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
11430   echo $ECHO_N "(cached) $ECHO_C" >&6
11431 else
11432   ac_check_lib_save_LIBS=$LIBS
11433 LIBS="-lnsl  $LIBS"
11434 cat >conftest.$ac_ext <<_ACEOF
11435 /* confdefs.h.  */
11436 _ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h.  */
11440
11441 /* Override any GCC internal prototype to avoid an error.
11442    Use char because int might match the return type of a GCC
11443    builtin and then its argument prototype would still apply.  */
11444 #ifdef __cplusplus
11445 extern "C"
11446 #endif
11447 char xdr_short ();
11448 int
11449 main ()
11450 {
11451 return xdr_short ();
11452   ;
11453   return 0;
11454 }
11455 _ACEOF
11456 rm -f conftest.$ac_objext conftest$ac_exeext
11457 if { (ac_try="$ac_link"
11458 case "(($ac_try" in
11459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460   *) ac_try_echo=$ac_try;;
11461 esac
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463   (eval "$ac_link") 2>conftest.er1
11464   ac_status=$?
11465   grep -v '^ *+' conftest.er1 >conftest.err
11466   rm -f conftest.er1
11467   cat conftest.err >&5
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); } &&
11470          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11471   { (case "(($ac_try" in
11472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473   *) ac_try_echo=$ac_try;;
11474 esac
11475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476   (eval "$ac_try") 2>&5
11477   ac_status=$?
11478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479   (exit $ac_status); }; } &&
11480          { ac_try='test -s conftest$ac_exeext'
11481   { (case "(($ac_try" in
11482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483   *) ac_try_echo=$ac_try;;
11484 esac
11485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11486   (eval "$ac_try") 2>&5
11487   ac_status=$?
11488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489   (exit $ac_status); }; }; then
11490   ac_cv_lib_nsl_xdr_short=yes
11491 else
11492   echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11494
11495         ac_cv_lib_nsl_xdr_short=no
11496 fi
11497
11498 rm -f core conftest.err conftest.$ac_objext \
11499       conftest$ac_exeext conftest.$ac_ext
11500 LIBS=$ac_check_lib_save_LIBS
11501 fi
11502 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_xdr_short" >&5
11503 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6; }
11504 if test $ac_cv_lib_nsl_xdr_short = yes; then
11505   cat >>confdefs.h <<_ACEOF
11506 #define HAVE_LIBNSL 1
11507 _ACEOF
11508
11509   LIBS="-lnsl $LIBS"
11510
11511 fi
11512
11513 fi
11514
11515 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11516 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11517 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11518   echo $ECHO_N "(cached) $ECHO_C" >&6
11519 else
11520   ac_check_lib_save_LIBS=$LIBS
11521 LIBS="-ldl  $LIBS"
11522 cat >conftest.$ac_ext <<_ACEOF
11523 /* confdefs.h.  */
11524 _ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h.  */
11528
11529 /* Override any GCC internal prototype to avoid an error.
11530    Use char because int might match the return type of a GCC
11531    builtin and then its argument prototype would still apply.  */
11532 #ifdef __cplusplus
11533 extern "C"
11534 #endif
11535 char dlopen ();
11536 int
11537 main ()
11538 {
11539 return dlopen ();
11540   ;
11541   return 0;
11542 }
11543 _ACEOF
11544 rm -f conftest.$ac_objext conftest$ac_exeext
11545 if { (ac_try="$ac_link"
11546 case "(($ac_try" in
11547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548   *) ac_try_echo=$ac_try;;
11549 esac
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551   (eval "$ac_link") 2>conftest.er1
11552   ac_status=$?
11553   grep -v '^ *+' conftest.er1 >conftest.err
11554   rm -f conftest.er1
11555   cat conftest.err >&5
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); } &&
11558          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11559   { (case "(($ac_try" in
11560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561   *) ac_try_echo=$ac_try;;
11562 esac
11563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564   (eval "$ac_try") 2>&5
11565   ac_status=$?
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); }; } &&
11568          { ac_try='test -s conftest$ac_exeext'
11569   { (case "(($ac_try" in
11570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571   *) ac_try_echo=$ac_try;;
11572 esac
11573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11574   (eval "$ac_try") 2>&5
11575   ac_status=$?
11576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); }; }; then
11578   ac_cv_lib_dl_dlopen=yes
11579 else
11580   echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11582
11583         ac_cv_lib_dl_dlopen=no
11584 fi
11585
11586 rm -f core conftest.err conftest.$ac_objext \
11587       conftest$ac_exeext conftest.$ac_ext
11588 LIBS=$ac_check_lib_save_LIBS
11589 fi
11590 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11591 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11592 if test $ac_cv_lib_dl_dlopen = yes; then
11593   dl_ok="yes"
11594 DL="-ldl"
11595 else
11596   dl_ok="no"
11597 DL=""
11598 fi
11599
11600
11601
11602
11603 #AC_CHECK_LIB(panel,panel_above,
11604 #panel_ok="yes"
11605 #curses_ok="yes"
11606 #CURSES_LIBS="-lpanel -lcurses"
11607 #,
11608 #panel_ok="no"
11609 #AC_CHECK_LIB(curses,nl,
11610 #curses_ok="yes"
11611 #CURSES_LIBS="-lcurses"
11612 #,
11613 #curses_ok="no")
11614 #,
11615 #-lcurses)
11616
11617 if test $curses_h_ok != yes; then
11618   panel_ok="no"
11619   curses_ok="no"
11620 else
11621   { echo "$as_me:$LINENO: checking for panel_above in -lpanel" >&5
11622 echo $ECHO_N "checking for panel_above in -lpanel... $ECHO_C" >&6; }
11623 if test "${ac_cv_lib_panel_panel_above+set}" = set; then
11624   echo $ECHO_N "(cached) $ECHO_C" >&6
11625 else
11626   ac_check_lib_save_LIBS=$LIBS
11627 LIBS="-lpanel  $LIBS"
11628 cat >conftest.$ac_ext <<_ACEOF
11629 /* confdefs.h.  */
11630 _ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h.  */
11634
11635 /* Override any GCC internal prototype to avoid an error.
11636    Use char because int might match the return type of a GCC
11637    builtin and then its argument prototype would still apply.  */
11638 #ifdef __cplusplus
11639 extern "C"
11640 #endif
11641 char panel_above ();
11642 int
11643 main ()
11644 {
11645 return panel_above ();
11646   ;
11647   return 0;
11648 }
11649 _ACEOF
11650 rm -f conftest.$ac_objext conftest$ac_exeext
11651 if { (ac_try="$ac_link"
11652 case "(($ac_try" in
11653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654   *) ac_try_echo=$ac_try;;
11655 esac
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657   (eval "$ac_link") 2>conftest.er1
11658   ac_status=$?
11659   grep -v '^ *+' conftest.er1 >conftest.err
11660   rm -f conftest.er1
11661   cat conftest.err >&5
11662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663   (exit $ac_status); } &&
11664          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11665   { (case "(($ac_try" in
11666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667   *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670   (eval "$ac_try") 2>&5
11671   ac_status=$?
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); }; } &&
11674          { ac_try='test -s conftest$ac_exeext'
11675   { (case "(($ac_try" in
11676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677   *) ac_try_echo=$ac_try;;
11678 esac
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680   (eval "$ac_try") 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; }; then
11684   ac_cv_lib_panel_panel_above=yes
11685 else
11686   echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11688
11689         ac_cv_lib_panel_panel_above=no
11690 fi
11691
11692 rm -f core conftest.err conftest.$ac_objext \
11693       conftest$ac_exeext conftest.$ac_ext
11694 LIBS=$ac_check_lib_save_LIBS
11695 fi
11696 { echo "$as_me:$LINENO: result: $ac_cv_lib_panel_panel_above" >&5
11697 echo "${ECHO_T}$ac_cv_lib_panel_panel_above" >&6; }
11698 if test $ac_cv_lib_panel_panel_above = yes; then
11699   panel_ok="yes"
11700     curses_ok="yes"
11701     CURSES_LIBS="-lpanel"
11702 else
11703   panel_ok="no"
11704     curses_ok="no"
11705
11706 fi
11707
11708
11709   if test $curses_ok != yes; then
11710     { echo "$as_me:$LINENO: checking for nl in -lcurses" >&5
11711 echo $ECHO_N "checking for nl in -lcurses... $ECHO_C" >&6; }
11712 if test "${ac_cv_lib_curses_nl+set}" = set; then
11713   echo $ECHO_N "(cached) $ECHO_C" >&6
11714 else
11715   ac_check_lib_save_LIBS=$LIBS
11716 LIBS="-lcurses  $LIBS"
11717 cat >conftest.$ac_ext <<_ACEOF
11718 /* confdefs.h.  */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h.  */
11723
11724 /* Override any GCC internal prototype to avoid an error.
11725    Use char because int might match the return type of a GCC
11726    builtin and then its argument prototype would still apply.  */
11727 #ifdef __cplusplus
11728 extern "C"
11729 #endif
11730 char nl ();
11731 int
11732 main ()
11733 {
11734 return nl ();
11735   ;
11736   return 0;
11737 }
11738 _ACEOF
11739 rm -f conftest.$ac_objext conftest$ac_exeext
11740 if { (ac_try="$ac_link"
11741 case "(($ac_try" in
11742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743   *) ac_try_echo=$ac_try;;
11744 esac
11745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746   (eval "$ac_link") 2>conftest.er1
11747   ac_status=$?
11748   grep -v '^ *+' conftest.er1 >conftest.err
11749   rm -f conftest.er1
11750   cat conftest.err >&5
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); } &&
11753          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11754   { (case "(($ac_try" in
11755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756   *) ac_try_echo=$ac_try;;
11757 esac
11758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759   (eval "$ac_try") 2>&5
11760   ac_status=$?
11761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762   (exit $ac_status); }; } &&
11763          { ac_try='test -s conftest$ac_exeext'
11764   { (case "(($ac_try" in
11765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766   *) ac_try_echo=$ac_try;;
11767 esac
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769   (eval "$ac_try") 2>&5
11770   ac_status=$?
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); }; }; then
11773   ac_cv_lib_curses_nl=yes
11774 else
11775   echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11777
11778         ac_cv_lib_curses_nl=no
11779 fi
11780
11781 rm -f core conftest.err conftest.$ac_objext \
11782       conftest$ac_exeext conftest.$ac_ext
11783 LIBS=$ac_check_lib_save_LIBS
11784 fi
11785 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_nl" >&5
11786 echo "${ECHO_T}$ac_cv_lib_curses_nl" >&6; }
11787 if test $ac_cv_lib_curses_nl = yes; then
11788   curses_ok="yes"
11789       CURSES_LIBS="-lcurses"
11790 else
11791   curses_ok="no"
11792 fi
11793
11794   fi
11795
11796   if test $curses_ok != yes; then
11797     { echo "$as_me:$LINENO: checking for nl in -lncurses" >&5
11798 echo $ECHO_N "checking for nl in -lncurses... $ECHO_C" >&6; }
11799 if test "${ac_cv_lib_ncurses_nl+set}" = set; then
11800   echo $ECHO_N "(cached) $ECHO_C" >&6
11801 else
11802   ac_check_lib_save_LIBS=$LIBS
11803 LIBS="-lncurses  $LIBS"
11804 cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810
11811 /* Override any GCC internal prototype to avoid an error.
11812    Use char because int might match the return type of a GCC
11813    builtin and then its argument prototype would still apply.  */
11814 #ifdef __cplusplus
11815 extern "C"
11816 #endif
11817 char nl ();
11818 int
11819 main ()
11820 {
11821 return nl ();
11822   ;
11823   return 0;
11824 }
11825 _ACEOF
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (ac_try="$ac_link"
11828 case "(($ac_try" in
11829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830   *) ac_try_echo=$ac_try;;
11831 esac
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833   (eval "$ac_link") 2>conftest.er1
11834   ac_status=$?
11835   grep -v '^ *+' conftest.er1 >conftest.err
11836   rm -f conftest.er1
11837   cat conftest.err >&5
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); } &&
11840          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11841   { (case "(($ac_try" in
11842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843   *) ac_try_echo=$ac_try;;
11844 esac
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846   (eval "$ac_try") 2>&5
11847   ac_status=$?
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); }; } &&
11850          { ac_try='test -s conftest$ac_exeext'
11851   { (case "(($ac_try" in
11852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853   *) ac_try_echo=$ac_try;;
11854 esac
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856   (eval "$ac_try") 2>&5
11857   ac_status=$?
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); }; }; then
11860   ac_cv_lib_ncurses_nl=yes
11861 else
11862   echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11864
11865         ac_cv_lib_ncurses_nl=no
11866 fi
11867
11868 rm -f core conftest.err conftest.$ac_objext \
11869       conftest$ac_exeext conftest.$ac_ext
11870 LIBS=$ac_check_lib_save_LIBS
11871 fi
11872 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_nl" >&5
11873 echo "${ECHO_T}$ac_cv_lib_ncurses_nl" >&6; }
11874 if test $ac_cv_lib_ncurses_nl = yes; then
11875   curses_ok="yes"
11876       CURSES_LIBS="-lncurses"
11877 else
11878   curses_ok="no"
11879 fi
11880
11881   fi
11882 fi
11883
11884
11885
11886
11887
11888
11889 for ac_func in vprintf
11890 do
11891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11895   echo $ECHO_N "(cached) $ECHO_C" >&6
11896 else
11897   cat >conftest.$ac_ext <<_ACEOF
11898 /* confdefs.h.  */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h.  */
11903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11905 #define $ac_func innocuous_$ac_func
11906
11907 /* System header to define __stub macros and hopefully few prototypes,
11908     which can conflict with char $ac_func (); below.
11909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11910     <limits.h> exists even on freestanding compilers.  */
11911
11912 #ifdef __STDC__
11913 # include <limits.h>
11914 #else
11915 # include <assert.h>
11916 #endif
11917
11918 #undef $ac_func
11919
11920 /* Override any GCC internal prototype to avoid an error.
11921    Use char because int might match the return type of a GCC
11922    builtin and then its argument prototype would still apply.  */
11923 #ifdef __cplusplus
11924 extern "C"
11925 #endif
11926 char $ac_func ();
11927 /* The GNU C library defines this for functions which it implements
11928     to always fail with ENOSYS.  Some functions are actually named
11929     something starting with __ and the normal name is an alias.  */
11930 #if defined __stub_$ac_func || defined __stub___$ac_func
11931 choke me
11932 #endif
11933
11934 int
11935 main ()
11936 {
11937 return $ac_func ();
11938   ;
11939   return 0;
11940 }
11941 _ACEOF
11942 rm -f conftest.$ac_objext conftest$ac_exeext
11943 if { (ac_try="$ac_link"
11944 case "(($ac_try" in
11945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946   *) ac_try_echo=$ac_try;;
11947 esac
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949   (eval "$ac_link") 2>conftest.er1
11950   ac_status=$?
11951   grep -v '^ *+' conftest.er1 >conftest.err
11952   rm -f conftest.er1
11953   cat conftest.err >&5
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); } &&
11956          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11957   { (case "(($ac_try" in
11958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959   *) ac_try_echo=$ac_try;;
11960 esac
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962   (eval "$ac_try") 2>&5
11963   ac_status=$?
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); }; } &&
11966          { ac_try='test -s conftest$ac_exeext'
11967   { (case "(($ac_try" in
11968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969   *) ac_try_echo=$ac_try;;
11970 esac
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972   (eval "$ac_try") 2>&5
11973   ac_status=$?
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); }; }; then
11976   eval "$as_ac_var=yes"
11977 else
11978   echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11980
11981         eval "$as_ac_var=no"
11982 fi
11983
11984 rm -f core conftest.err conftest.$ac_objext \
11985       conftest$ac_exeext conftest.$ac_ext
11986 fi
11987 ac_res=`eval echo '${'$as_ac_var'}'`
11988                { echo "$as_me:$LINENO: result: $ac_res" >&5
11989 echo "${ECHO_T}$ac_res" >&6; }
11990 if test `eval echo '${'$as_ac_var'}'` = yes; then
11991   cat >>confdefs.h <<_ACEOF
11992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11993 _ACEOF
11994
11995 { echo "$as_me:$LINENO: checking for _doprnt" >&5
11996 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
11997 if test "${ac_cv_func__doprnt+set}" = set; then
11998   echo $ECHO_N "(cached) $ECHO_C" >&6
11999 else
12000   cat >conftest.$ac_ext <<_ACEOF
12001 /* confdefs.h.  */
12002 _ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h.  */
12006 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12008 #define _doprnt innocuous__doprnt
12009
12010 /* System header to define __stub macros and hopefully few prototypes,
12011     which can conflict with char _doprnt (); below.
12012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12013     <limits.h> exists even on freestanding compilers.  */
12014
12015 #ifdef __STDC__
12016 # include <limits.h>
12017 #else
12018 # include <assert.h>
12019 #endif
12020
12021 #undef _doprnt
12022
12023 /* Override any GCC internal prototype to avoid an error.
12024    Use char because int might match the return type of a GCC
12025    builtin and then its argument prototype would still apply.  */
12026 #ifdef __cplusplus
12027 extern "C"
12028 #endif
12029 char _doprnt ();
12030 /* The GNU C library defines this for functions which it implements
12031     to always fail with ENOSYS.  Some functions are actually named
12032     something starting with __ and the normal name is an alias.  */
12033 #if defined __stub__doprnt || defined __stub____doprnt
12034 choke me
12035 #endif
12036
12037 int
12038 main ()
12039 {
12040 return _doprnt ();
12041   ;
12042   return 0;
12043 }
12044 _ACEOF
12045 rm -f conftest.$ac_objext conftest$ac_exeext
12046 if { (ac_try="$ac_link"
12047 case "(($ac_try" in
12048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049   *) ac_try_echo=$ac_try;;
12050 esac
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052   (eval "$ac_link") 2>conftest.er1
12053   ac_status=$?
12054   grep -v '^ *+' conftest.er1 >conftest.err
12055   rm -f conftest.er1
12056   cat conftest.err >&5
12057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058   (exit $ac_status); } &&
12059          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12060   { (case "(($ac_try" in
12061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12062   *) ac_try_echo=$ac_try;;
12063 esac
12064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12065   (eval "$ac_try") 2>&5
12066   ac_status=$?
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); }; } &&
12069          { ac_try='test -s conftest$ac_exeext'
12070   { (case "(($ac_try" in
12071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072   *) ac_try_echo=$ac_try;;
12073 esac
12074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075   (eval "$ac_try") 2>&5
12076   ac_status=$?
12077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078   (exit $ac_status); }; }; then
12079   ac_cv_func__doprnt=yes
12080 else
12081   echo "$as_me: failed program was:" >&5
12082 sed 's/^/| /' conftest.$ac_ext >&5
12083
12084         ac_cv_func__doprnt=no
12085 fi
12086
12087 rm -f core conftest.err conftest.$ac_objext \
12088       conftest$ac_exeext conftest.$ac_ext
12089 fi
12090 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12091 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12092 if test $ac_cv_func__doprnt = yes; then
12093
12094 cat >>confdefs.h <<\_ACEOF
12095 #define HAVE_DOPRNT 1
12096 _ACEOF
12097
12098 fi
12099
12100 fi
12101 done
12102
12103
12104
12105 for ac_func in vsnprintf
12106 do
12107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12111   echo $ECHO_N "(cached) $ECHO_C" >&6
12112 else
12113   cat >conftest.$ac_ext <<_ACEOF
12114 /* confdefs.h.  */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h.  */
12119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12121 #define $ac_func innocuous_$ac_func
12122
12123 /* System header to define __stub macros and hopefully few prototypes,
12124     which can conflict with char $ac_func (); below.
12125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12126     <limits.h> exists even on freestanding compilers.  */
12127
12128 #ifdef __STDC__
12129 # include <limits.h>
12130 #else
12131 # include <assert.h>
12132 #endif
12133
12134 #undef $ac_func
12135
12136 /* Override any GCC internal prototype to avoid an error.
12137    Use char because int might match the return type of a GCC
12138    builtin and then its argument prototype would still apply.  */
12139 #ifdef __cplusplus
12140 extern "C"
12141 #endif
12142 char $ac_func ();
12143 /* The GNU C library defines this for functions which it implements
12144     to always fail with ENOSYS.  Some functions are actually named
12145     something starting with __ and the normal name is an alias.  */
12146 #if defined __stub_$ac_func || defined __stub___$ac_func
12147 choke me
12148 #endif
12149
12150 int
12151 main ()
12152 {
12153 return $ac_func ();
12154   ;
12155   return 0;
12156 }
12157 _ACEOF
12158 rm -f conftest.$ac_objext conftest$ac_exeext
12159 if { (ac_try="$ac_link"
12160 case "(($ac_try" in
12161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162   *) ac_try_echo=$ac_try;;
12163 esac
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165   (eval "$ac_link") 2>conftest.er1
12166   ac_status=$?
12167   grep -v '^ *+' conftest.er1 >conftest.err
12168   rm -f conftest.er1
12169   cat conftest.err >&5
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); } &&
12172          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12173   { (case "(($ac_try" in
12174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175   *) ac_try_echo=$ac_try;;
12176 esac
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178   (eval "$ac_try") 2>&5
12179   ac_status=$?
12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); }; } &&
12182          { ac_try='test -s conftest$ac_exeext'
12183   { (case "(($ac_try" in
12184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185   *) ac_try_echo=$ac_try;;
12186 esac
12187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188   (eval "$ac_try") 2>&5
12189   ac_status=$?
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); }; }; then
12192   eval "$as_ac_var=yes"
12193 else
12194   echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12196
12197         eval "$as_ac_var=no"
12198 fi
12199
12200 rm -f core conftest.err conftest.$ac_objext \
12201       conftest$ac_exeext conftest.$ac_ext
12202 fi
12203 ac_res=`eval echo '${'$as_ac_var'}'`
12204                { echo "$as_me:$LINENO: result: $ac_res" >&5
12205 echo "${ECHO_T}$ac_res" >&6; }
12206 if test `eval echo '${'$as_ac_var'}'` = yes; then
12207   cat >>confdefs.h <<_ACEOF
12208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12209 _ACEOF
12210
12211 fi
12212 done
12213
12214
12215 for ac_func in _vsnprintf
12216 do
12217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12221   echo $ECHO_N "(cached) $ECHO_C" >&6
12222 else
12223   cat >conftest.$ac_ext <<_ACEOF
12224 /* confdefs.h.  */
12225 _ACEOF
12226 cat confdefs.h >>conftest.$ac_ext
12227 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h.  */
12229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12231 #define $ac_func innocuous_$ac_func
12232
12233 /* System header to define __stub macros and hopefully few prototypes,
12234     which can conflict with char $ac_func (); below.
12235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12236     <limits.h> exists even on freestanding compilers.  */
12237
12238 #ifdef __STDC__
12239 # include <limits.h>
12240 #else
12241 # include <assert.h>
12242 #endif
12243
12244 #undef $ac_func
12245
12246 /* Override any GCC internal prototype to avoid an error.
12247    Use char because int might match the return type of a GCC
12248    builtin and then its argument prototype would still apply.  */
12249 #ifdef __cplusplus
12250 extern "C"
12251 #endif
12252 char $ac_func ();
12253 /* The GNU C library defines this for functions which it implements
12254     to always fail with ENOSYS.  Some functions are actually named
12255     something starting with __ and the normal name is an alias.  */
12256 #if defined __stub_$ac_func || defined __stub___$ac_func
12257 choke me
12258 #endif
12259
12260 int
12261 main ()
12262 {
12263 return $ac_func ();
12264   ;
12265   return 0;
12266 }
12267 _ACEOF
12268 rm -f conftest.$ac_objext conftest$ac_exeext
12269 if { (ac_try="$ac_link"
12270 case "(($ac_try" in
12271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272   *) ac_try_echo=$ac_try;;
12273 esac
12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275   (eval "$ac_link") 2>conftest.er1
12276   ac_status=$?
12277   grep -v '^ *+' conftest.er1 >conftest.err
12278   rm -f conftest.er1
12279   cat conftest.err >&5
12280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281   (exit $ac_status); } &&
12282          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12283   { (case "(($ac_try" in
12284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285   *) ac_try_echo=$ac_try;;
12286 esac
12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288   (eval "$ac_try") 2>&5
12289   ac_status=$?
12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291   (exit $ac_status); }; } &&
12292          { ac_try='test -s conftest$ac_exeext'
12293   { (case "(($ac_try" in
12294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295   *) ac_try_echo=$ac_try;;
12296 esac
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298   (eval "$ac_try") 2>&5
12299   ac_status=$?
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); }; }; then
12302   eval "$as_ac_var=yes"
12303 else
12304   echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12306
12307         eval "$as_ac_var=no"
12308 fi
12309
12310 rm -f core conftest.err conftest.$ac_objext \
12311       conftest$ac_exeext conftest.$ac_ext
12312 fi
12313 ac_res=`eval echo '${'$as_ac_var'}'`
12314                { echo "$as_me:$LINENO: result: $ac_res" >&5
12315 echo "${ECHO_T}$ac_res" >&6; }
12316 if test `eval echo '${'$as_ac_var'}'` = yes; then
12317   cat >>confdefs.h <<_ACEOF
12318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12319 _ACEOF
12320
12321 fi
12322 done
12323
12324
12325 for ac_func in vasprintf
12326 do
12327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12331   echo $ECHO_N "(cached) $ECHO_C" >&6
12332 else
12333   cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h.  */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h.  */
12339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12341 #define $ac_func innocuous_$ac_func
12342
12343 /* System header to define __stub macros and hopefully few prototypes,
12344     which can conflict with char $ac_func (); below.
12345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12346     <limits.h> exists even on freestanding compilers.  */
12347
12348 #ifdef __STDC__
12349 # include <limits.h>
12350 #else
12351 # include <assert.h>
12352 #endif
12353
12354 #undef $ac_func
12355
12356 /* Override any GCC internal prototype to avoid an error.
12357    Use char because int might match the return type of a GCC
12358    builtin and then its argument prototype would still apply.  */
12359 #ifdef __cplusplus
12360 extern "C"
12361 #endif
12362 char $ac_func ();
12363 /* The GNU C library defines this for functions which it implements
12364     to always fail with ENOSYS.  Some functions are actually named
12365     something starting with __ and the normal name is an alias.  */
12366 #if defined __stub_$ac_func || defined __stub___$ac_func
12367 choke me
12368 #endif
12369
12370 int
12371 main ()
12372 {
12373 return $ac_func ();
12374   ;
12375   return 0;
12376 }
12377 _ACEOF
12378 rm -f conftest.$ac_objext conftest$ac_exeext
12379 if { (ac_try="$ac_link"
12380 case "(($ac_try" in
12381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382   *) ac_try_echo=$ac_try;;
12383 esac
12384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385   (eval "$ac_link") 2>conftest.er1
12386   ac_status=$?
12387   grep -v '^ *+' conftest.er1 >conftest.err
12388   rm -f conftest.er1
12389   cat conftest.err >&5
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); } &&
12392          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12393   { (case "(($ac_try" in
12394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395   *) ac_try_echo=$ac_try;;
12396 esac
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398   (eval "$ac_try") 2>&5
12399   ac_status=$?
12400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401   (exit $ac_status); }; } &&
12402          { ac_try='test -s conftest$ac_exeext'
12403   { (case "(($ac_try" in
12404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405   *) ac_try_echo=$ac_try;;
12406 esac
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408   (eval "$ac_try") 2>&5
12409   ac_status=$?
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); }; }; then
12412   eval "$as_ac_var=yes"
12413 else
12414   echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12416
12417         eval "$as_ac_var=no"
12418 fi
12419
12420 rm -f core conftest.err conftest.$ac_objext \
12421       conftest$ac_exeext conftest.$ac_ext
12422 fi
12423 ac_res=`eval echo '${'$as_ac_var'}'`
12424                { echo "$as_me:$LINENO: result: $ac_res" >&5
12425 echo "${ECHO_T}$ac_res" >&6; }
12426 if test `eval echo '${'$as_ac_var'}'` = yes; then
12427   cat >>confdefs.h <<_ACEOF
12428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12429 _ACEOF
12430
12431 fi
12432 done
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442 for ac_func in strlen strcpy strcat strstr strcmp strerror strtok strdup
12443 do
12444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12448   echo $ECHO_N "(cached) $ECHO_C" >&6
12449 else
12450   cat >conftest.$ac_ext <<_ACEOF
12451 /* confdefs.h.  */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h.  */
12456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12458 #define $ac_func innocuous_$ac_func
12459
12460 /* System header to define __stub macros and hopefully few prototypes,
12461     which can conflict with char $ac_func (); below.
12462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12463     <limits.h> exists even on freestanding compilers.  */
12464
12465 #ifdef __STDC__
12466 # include <limits.h>
12467 #else
12468 # include <assert.h>
12469 #endif
12470
12471 #undef $ac_func
12472
12473 /* Override any GCC internal prototype to avoid an error.
12474    Use char because int might match the return type of a GCC
12475    builtin and then its argument prototype would still apply.  */
12476 #ifdef __cplusplus
12477 extern "C"
12478 #endif
12479 char $ac_func ();
12480 /* The GNU C library defines this for functions which it implements
12481     to always fail with ENOSYS.  Some functions are actually named
12482     something starting with __ and the normal name is an alias.  */
12483 #if defined __stub_$ac_func || defined __stub___$ac_func
12484 choke me
12485 #endif
12486
12487 int
12488 main ()
12489 {
12490 return $ac_func ();
12491   ;
12492   return 0;
12493 }
12494 _ACEOF
12495 rm -f conftest.$ac_objext conftest$ac_exeext
12496 if { (ac_try="$ac_link"
12497 case "(($ac_try" in
12498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12499   *) ac_try_echo=$ac_try;;
12500 esac
12501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12502   (eval "$ac_link") 2>conftest.er1
12503   ac_status=$?
12504   grep -v '^ *+' conftest.er1 >conftest.err
12505   rm -f conftest.er1
12506   cat conftest.err >&5
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); } &&
12509          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12510   { (case "(($ac_try" in
12511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512   *) ac_try_echo=$ac_try;;
12513 esac
12514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515   (eval "$ac_try") 2>&5
12516   ac_status=$?
12517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518   (exit $ac_status); }; } &&
12519          { ac_try='test -s conftest$ac_exeext'
12520   { (case "(($ac_try" in
12521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12522   *) ac_try_echo=$ac_try;;
12523 esac
12524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12525   (eval "$ac_try") 2>&5
12526   ac_status=$?
12527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); }; }; then
12529   eval "$as_ac_var=yes"
12530 else
12531   echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12533
12534         eval "$as_ac_var=no"
12535 fi
12536
12537 rm -f core conftest.err conftest.$ac_objext \
12538       conftest$ac_exeext conftest.$ac_ext
12539 fi
12540 ac_res=`eval echo '${'$as_ac_var'}'`
12541                { echo "$as_me:$LINENO: result: $ac_res" >&5
12542 echo "${ECHO_T}$ac_res" >&6; }
12543 if test `eval echo '${'$as_ac_var'}'` = yes; then
12544   cat >>confdefs.h <<_ACEOF
12545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12546 _ACEOF
12547
12548 fi
12549 done
12550
12551
12552
12553 for ac_func in strchr memcpy
12554 do
12555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12559   echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561   cat >conftest.$ac_ext <<_ACEOF
12562 /* confdefs.h.  */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h.  */
12567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12569 #define $ac_func innocuous_$ac_func
12570
12571 /* System header to define __stub macros and hopefully few prototypes,
12572     which can conflict with char $ac_func (); below.
12573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12574     <limits.h> exists even on freestanding compilers.  */
12575
12576 #ifdef __STDC__
12577 # include <limits.h>
12578 #else
12579 # include <assert.h>
12580 #endif
12581
12582 #undef $ac_func
12583
12584 /* Override any GCC internal prototype to avoid an error.
12585    Use char because int might match the return type of a GCC
12586    builtin and then its argument prototype would still apply.  */
12587 #ifdef __cplusplus
12588 extern "C"
12589 #endif
12590 char $ac_func ();
12591 /* The GNU C library defines this for functions which it implements
12592     to always fail with ENOSYS.  Some functions are actually named
12593     something starting with __ and the normal name is an alias.  */
12594 #if defined __stub_$ac_func || defined __stub___$ac_func
12595 choke me
12596 #endif
12597
12598 int
12599 main ()
12600 {
12601 return $ac_func ();
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (ac_try="$ac_link"
12608 case "(($ac_try" in
12609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610   *) ac_try_echo=$ac_try;;
12611 esac
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613   (eval "$ac_link") 2>conftest.er1
12614   ac_status=$?
12615   grep -v '^ *+' conftest.er1 >conftest.err
12616   rm -f conftest.er1
12617   cat conftest.err >&5
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); } &&
12620          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12621   { (case "(($ac_try" in
12622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623   *) ac_try_echo=$ac_try;;
12624 esac
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626   (eval "$ac_try") 2>&5
12627   ac_status=$?
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); }; } &&
12630          { ac_try='test -s conftest$ac_exeext'
12631   { (case "(($ac_try" in
12632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633   *) ac_try_echo=$ac_try;;
12634 esac
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636   (eval "$ac_try") 2>&5
12637   ac_status=$?
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); }; }; then
12640   eval "$as_ac_var=yes"
12641 else
12642   echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12644
12645         eval "$as_ac_var=no"
12646 fi
12647
12648 rm -f core conftest.err conftest.$ac_objext \
12649       conftest$ac_exeext conftest.$ac_ext
12650 fi
12651 ac_res=`eval echo '${'$as_ac_var'}'`
12652                { echo "$as_me:$LINENO: result: $ac_res" >&5
12653 echo "${ECHO_T}$ac_res" >&6; }
12654 if test `eval echo '${'$as_ac_var'}'` = yes; then
12655   cat >>confdefs.h <<_ACEOF
12656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12657 _ACEOF
12658
12659 fi
12660 done
12661
12662
12663 for ac_func in fgets
12664 do
12665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12669   echo $ECHO_N "(cached) $ECHO_C" >&6
12670 else
12671   cat >conftest.$ac_ext <<_ACEOF
12672 /* confdefs.h.  */
12673 _ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h.  */
12677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12679 #define $ac_func innocuous_$ac_func
12680
12681 /* System header to define __stub macros and hopefully few prototypes,
12682     which can conflict with char $ac_func (); below.
12683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12684     <limits.h> exists even on freestanding compilers.  */
12685
12686 #ifdef __STDC__
12687 # include <limits.h>
12688 #else
12689 # include <assert.h>
12690 #endif
12691
12692 #undef $ac_func
12693
12694 /* Override any GCC internal prototype to avoid an error.
12695    Use char because int might match the return type of a GCC
12696    builtin and then its argument prototype would still apply.  */
12697 #ifdef __cplusplus
12698 extern "C"
12699 #endif
12700 char $ac_func ();
12701 /* The GNU C library defines this for functions which it implements
12702     to always fail with ENOSYS.  Some functions are actually named
12703     something starting with __ and the normal name is an alias.  */
12704 #if defined __stub_$ac_func || defined __stub___$ac_func
12705 choke me
12706 #endif
12707
12708 int
12709 main ()
12710 {
12711 return $ac_func ();
12712   ;
12713   return 0;
12714 }
12715 _ACEOF
12716 rm -f conftest.$ac_objext conftest$ac_exeext
12717 if { (ac_try="$ac_link"
12718 case "(($ac_try" in
12719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720   *) ac_try_echo=$ac_try;;
12721 esac
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723   (eval "$ac_link") 2>conftest.er1
12724   ac_status=$?
12725   grep -v '^ *+' conftest.er1 >conftest.err
12726   rm -f conftest.er1
12727   cat conftest.err >&5
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); } &&
12730          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12731   { (case "(($ac_try" in
12732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733   *) ac_try_echo=$ac_try;;
12734 esac
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736   (eval "$ac_try") 2>&5
12737   ac_status=$?
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); }; } &&
12740          { ac_try='test -s conftest$ac_exeext'
12741   { (case "(($ac_try" in
12742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743   *) ac_try_echo=$ac_try;;
12744 esac
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746   (eval "$ac_try") 2>&5
12747   ac_status=$?
12748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); }; }; then
12750   eval "$as_ac_var=yes"
12751 else
12752   echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12754
12755         eval "$as_ac_var=no"
12756 fi
12757
12758 rm -f core conftest.err conftest.$ac_objext \
12759       conftest$ac_exeext conftest.$ac_ext
12760 fi
12761 ac_res=`eval echo '${'$as_ac_var'}'`
12762                { echo "$as_me:$LINENO: result: $ac_res" >&5
12763 echo "${ECHO_T}$ac_res" >&6; }
12764 if test `eval echo '${'$as_ac_var'}'` = yes; then
12765   cat >>confdefs.h <<_ACEOF
12766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12767 _ACEOF
12768
12769 fi
12770 done
12771
12772
12773 for ac_func in yylex
12774 do
12775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12776 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12779   echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781   cat >conftest.$ac_ext <<_ACEOF
12782 /* confdefs.h.  */
12783 _ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h.  */
12787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12789 #define $ac_func innocuous_$ac_func
12790
12791 /* System header to define __stub macros and hopefully few prototypes,
12792     which can conflict with char $ac_func (); below.
12793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12794     <limits.h> exists even on freestanding compilers.  */
12795
12796 #ifdef __STDC__
12797 # include <limits.h>
12798 #else
12799 # include <assert.h>
12800 #endif
12801
12802 #undef $ac_func
12803
12804 /* Override any GCC internal prototype to avoid an error.
12805    Use char because int might match the return type of a GCC
12806    builtin and then its argument prototype would still apply.  */
12807 #ifdef __cplusplus
12808 extern "C"
12809 #endif
12810 char $ac_func ();
12811 /* The GNU C library defines this for functions which it implements
12812     to always fail with ENOSYS.  Some functions are actually named
12813     something starting with __ and the normal name is an alias.  */
12814 #if defined __stub_$ac_func || defined __stub___$ac_func
12815 choke me
12816 #endif
12817
12818 int
12819 main ()
12820 {
12821 return $ac_func ();
12822   ;
12823   return 0;
12824 }
12825 _ACEOF
12826 rm -f conftest.$ac_objext conftest$ac_exeext
12827 if { (ac_try="$ac_link"
12828 case "(($ac_try" in
12829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830   *) ac_try_echo=$ac_try;;
12831 esac
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833   (eval "$ac_link") 2>conftest.er1
12834   ac_status=$?
12835   grep -v '^ *+' conftest.er1 >conftest.err
12836   rm -f conftest.er1
12837   cat conftest.err >&5
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); } &&
12840          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12841   { (case "(($ac_try" in
12842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843   *) ac_try_echo=$ac_try;;
12844 esac
12845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12846   (eval "$ac_try") 2>&5
12847   ac_status=$?
12848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849   (exit $ac_status); }; } &&
12850          { ac_try='test -s conftest$ac_exeext'
12851   { (case "(($ac_try" in
12852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853   *) ac_try_echo=$ac_try;;
12854 esac
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856   (eval "$ac_try") 2>&5
12857   ac_status=$?
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); }; }; then
12860   eval "$as_ac_var=yes"
12861 else
12862   echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12864
12865         eval "$as_ac_var=no"
12866 fi
12867
12868 rm -f core conftest.err conftest.$ac_objext \
12869       conftest$ac_exeext conftest.$ac_ext
12870 fi
12871 ac_res=`eval echo '${'$as_ac_var'}'`
12872                { echo "$as_me:$LINENO: result: $ac_res" >&5
12873 echo "${ECHO_T}$ac_res" >&6; }
12874 if test `eval echo '${'$as_ac_var'}'` = yes; then
12875   cat >>confdefs.h <<_ACEOF
12876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12877 _ACEOF
12878
12879 fi
12880 done
12881
12882
12883 { echo "$as_me:$LINENO: checking whether scanf knows %a" >&5
12884 echo $ECHO_N "checking whether scanf knows %a... $ECHO_C" >&6; }
12885 if test "${ucsim_cv_scanf_a+set}" = set; then
12886   echo $ECHO_N "(cached) $ECHO_C" >&6
12887 else
12888   echo "a b" >conftest.data
12889 if test "$cross_compiling" = yes; then
12890   ucsim_cv_scanf_a="unknown"
12891 else
12892   cat >conftest.$ac_ext <<_ACEOF
12893 /* confdefs.h.  */
12894 _ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h.  */
12898
12899 #include <stdio.h>
12900 void main(void)
12901 {
12902   FILE *f;
12903   char *a;
12904   int  i;
12905   if ((f= fopen("conftest.data", "r")) == NULL)
12906     exit(1);
12907   i= fscanf(f, " %a[a-z] ", &a);
12908   fclose(f);
12909   if (i == 0)
12910     exit(2);
12911   if (i == 1)
12912     exit(0);
12913   exit(3);
12914 }
12915 _ACEOF
12916 rm -f conftest$ac_exeext
12917 if { (ac_try="$ac_link"
12918 case "(($ac_try" in
12919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920   *) ac_try_echo=$ac_try;;
12921 esac
12922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12923   (eval "$ac_link") 2>&5
12924   ac_status=$?
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12927   { (case "(($ac_try" in
12928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929   *) ac_try_echo=$ac_try;;
12930 esac
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932   (eval "$ac_try") 2>&5
12933   ac_status=$?
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); }; }; then
12936   ucsim_cv_scanf_a="yes"
12937 else
12938   echo "$as_me: program exited with status $ac_status" >&5
12939 echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12941
12942 ( exit $ac_status )
12943 ucsim_cv_scanf_a="no"
12944 fi
12945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12946 fi
12947
12948
12949
12950 fi
12951 { echo "$as_me:$LINENO: result: $ucsim_cv_scanf_a" >&5
12952 echo "${ECHO_T}$ucsim_cv_scanf_a" >&6; }
12953 if test "$ucsim_cv_scanf_a" = "yes"; then
12954   cat >>confdefs.h <<\_ACEOF
12955 #define SCANF_A 1
12956 _ACEOF
12957
12958 fi
12959
12960 { echo "$as_me:$LINENO: checking whether getcwd is GNUish" >&5
12961 echo $ECHO_N "checking whether getcwd is GNUish... $ECHO_C" >&6; }
12962 if test "${ucsim_cv_getcwd+set}" = set; then
12963   echo $ECHO_N "(cached) $ECHO_C" >&6
12964 else
12965   if test "$cross_compiling" = yes; then
12966   ucsim_cv_getcwd="unknown"
12967 else
12968   cat >conftest.$ac_ext <<_ACEOF
12969 /* confdefs.h.  */
12970 _ACEOF
12971 cat confdefs.h >>conftest.$ac_ext
12972 cat >>conftest.$ac_ext <<_ACEOF
12973 /* end confdefs.h.  */
12974
12975 #include <unistd.h>
12976 void main(void)
12977 {
12978   if ((getcwd(NULL, 0)) == NULL)
12979     exit(1);
12980   exit(0);
12981 }
12982 _ACEOF
12983 rm -f conftest$ac_exeext
12984 if { (ac_try="$ac_link"
12985 case "(($ac_try" in
12986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987   *) ac_try_echo=$ac_try;;
12988 esac
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990   (eval "$ac_link") 2>&5
12991   ac_status=$?
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12994   { (case "(($ac_try" in
12995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996   *) ac_try_echo=$ac_try;;
12997 esac
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999   (eval "$ac_try") 2>&5
13000   ac_status=$?
13001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002   (exit $ac_status); }; }; then
13003   ucsim_cv_getcwd="yes"
13004 else
13005   echo "$as_me: program exited with status $ac_status" >&5
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13008
13009 ( exit $ac_status )
13010 ucsim_cv_getcwd="no"
13011 fi
13012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13013 fi
13014
13015
13016
13017 fi
13018 { echo "$as_me:$LINENO: result: $ucsim_cv_getcwd" >&5
13019 echo "${ECHO_T}$ucsim_cv_getcwd" >&6; }
13020 if test "$ucsim_cv_getcwd" = "yes"; then
13021   cat >>confdefs.h <<\_ACEOF
13022 #define GNU_GETCWD 1
13023 _ACEOF
13024
13025 fi
13026
13027
13028 #'
13029
13030 { echo "$as_me:$LINENO: checking for type of length pointer parameter of accept" >&5
13031 echo $ECHO_N "checking for type of length pointer parameter of accept... $ECHO_C" >&6; }
13032 if test "${ucsim_cv_accept_length_type+set}" = set; then
13033   echo $ECHO_N "(cached) $ECHO_C" >&6
13034 else
13035   ac_save_CPPFLAGS="$CPPFLAGS"
13036     ucsim_cv_accept_length_type=no
13037     for ac_val in int size_t socklen_t; do
13038       CPPFLAGS="$ac_save_CPPFLAGS -DACCEPT_SOCKLEN_T=$ac_val"
13039       cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h.  */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h.  */
13045 #include <sys/types.h>
13046 #include ${ucsim_cv_socket}
13047 int
13048 main ()
13049 {
13050 struct sockaddr a; $ac_val len; accept (0, &a, &len);
13051   ;
13052   return 0;
13053 }
13054 _ACEOF
13055 rm -f conftest.$ac_objext
13056 if { (ac_try="$ac_compile"
13057 case "(($ac_try" in
13058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059   *) ac_try_echo=$ac_try;;
13060 esac
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062   (eval "$ac_compile") 2>conftest.er1
13063   ac_status=$?
13064   grep -v '^ *+' conftest.er1 >conftest.err
13065   rm -f conftest.er1
13066   cat conftest.err >&5
13067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068   (exit $ac_status); } &&
13069          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13070   { (case "(($ac_try" in
13071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072   *) ac_try_echo=$ac_try;;
13073 esac
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075   (eval "$ac_try") 2>&5
13076   ac_status=$?
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); }; } &&
13079          { ac_try='test -s conftest.$ac_objext'
13080   { (case "(($ac_try" in
13081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082   *) ac_try_echo=$ac_try;;
13083 esac
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085   (eval "$ac_try") 2>&5
13086   ac_status=$?
13087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088   (exit $ac_status); }; }; then
13089   ucsim_cv_accept_length_type=$ac_val; break
13090 else
13091   echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13093
13094
13095 fi
13096
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098     done
13099     CPPFLAGS="$ac_save_CPPFLAGS"
13100 fi
13101 { echo "$as_me:$LINENO: result: $ucsim_cv_accept_length_type" >&5
13102 echo "${ECHO_T}$ucsim_cv_accept_length_type" >&6; }
13103   if test "$ucsim_cv_accept_length_type" != no; then
13104
13105 cat >>confdefs.h <<_ACEOF
13106 #define ACCEPT_SOCKLEN_T $ucsim_cv_accept_length_type
13107 _ACEOF
13108
13109   fi
13110
13111
13112
13113 # Macro definitions
13114 ###################
13115
13116 # DD_COPT macro checks if the compiler specified as the 1st parameter
13117 # supports option specified as the 2nd parameter
13118 # For example: DD_COPT(CXX, fPIC)
13119
13120
13121
13122
13123 # Checking characteristics of compilers and other programs
13124 # --------------------------------------------------------
13125
13126 # Cross compiling overrides
13127 # FIXME
13128 if test "$CC" = "i586-mingw32msvc-gcc"; then
13129   ac_cv_c_bigendian=no
13130   ac_cv_sizeof_char=1
13131   ac_cv_sizeof_short=2
13132   ac_cv_sizeof_int=4
13133   ac_cv_sizeof_long=4
13134   ac_cv_sizeof_long_long=4
13135 fi
13136
13137 if test "$cross_compiling" = "no"
13138 then
13139     { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13140 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13141 if test "${ac_cv_c_bigendian+set}" = set; then
13142   echo $ECHO_N "(cached) $ECHO_C" >&6
13143 else
13144   # See if sys/param.h defines the BYTE_ORDER macro.
13145 cat >conftest.$ac_ext <<_ACEOF
13146 /* confdefs.h.  */
13147 _ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h.  */
13151 #include <sys/types.h>
13152 #include <sys/param.h>
13153
13154 int
13155 main ()
13156 {
13157 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13158  bogus endian macros
13159 #endif
13160
13161   ;
13162   return 0;
13163 }
13164 _ACEOF
13165 rm -f conftest.$ac_objext
13166 if { (ac_try="$ac_compile"
13167 case "(($ac_try" in
13168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169   *) ac_try_echo=$ac_try;;
13170 esac
13171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172   (eval "$ac_compile") 2>conftest.er1
13173   ac_status=$?
13174   grep -v '^ *+' conftest.er1 >conftest.err
13175   rm -f conftest.er1
13176   cat conftest.err >&5
13177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178   (exit $ac_status); } &&
13179          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13180   { (case "(($ac_try" in
13181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182   *) ac_try_echo=$ac_try;;
13183 esac
13184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185   (eval "$ac_try") 2>&5
13186   ac_status=$?
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); }; } &&
13189          { ac_try='test -s conftest.$ac_objext'
13190   { (case "(($ac_try" in
13191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192   *) ac_try_echo=$ac_try;;
13193 esac
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195   (eval "$ac_try") 2>&5
13196   ac_status=$?
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); }; }; then
13199   # It does; now see whether it defined to BIG_ENDIAN or not.
13200 cat >conftest.$ac_ext <<_ACEOF
13201 /* confdefs.h.  */
13202 _ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h.  */
13206 #include <sys/types.h>
13207 #include <sys/param.h>
13208
13209 int
13210 main ()
13211 {
13212 #if BYTE_ORDER != BIG_ENDIAN
13213  not big endian
13214 #endif
13215
13216   ;
13217   return 0;
13218 }
13219 _ACEOF
13220 rm -f conftest.$ac_objext
13221 if { (ac_try="$ac_compile"
13222 case "(($ac_try" in
13223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224   *) ac_try_echo=$ac_try;;
13225 esac
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227   (eval "$ac_compile") 2>conftest.er1
13228   ac_status=$?
13229   grep -v '^ *+' conftest.er1 >conftest.err
13230   rm -f conftest.er1
13231   cat conftest.err >&5
13232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); } &&
13234          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13235   { (case "(($ac_try" in
13236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237   *) ac_try_echo=$ac_try;;
13238 esac
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240   (eval "$ac_try") 2>&5
13241   ac_status=$?
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); }; } &&
13244          { ac_try='test -s conftest.$ac_objext'
13245   { (case "(($ac_try" in
13246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247   *) ac_try_echo=$ac_try;;
13248 esac
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250   (eval "$ac_try") 2>&5
13251   ac_status=$?
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); }; }; then
13254   ac_cv_c_bigendian=yes
13255 else
13256   echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13258
13259         ac_cv_c_bigendian=no
13260 fi
13261
13262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13263 else
13264   echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13266
13267         # It does not; compile a test program.
13268 if test "$cross_compiling" = yes; then
13269   # try to guess the endianness by grepping values into an object file
13270   ac_cv_c_bigendian=unknown
13271   cat >conftest.$ac_ext <<_ACEOF
13272 /* confdefs.h.  */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h.  */
13277 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13278 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13279 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13280 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13281 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13282 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13283 int
13284 main ()
13285 {
13286  _ascii (); _ebcdic ();
13287   ;
13288   return 0;
13289 }
13290 _ACEOF
13291 rm -f conftest.$ac_objext
13292 if { (ac_try="$ac_compile"
13293 case "(($ac_try" in
13294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295   *) ac_try_echo=$ac_try;;
13296 esac
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298   (eval "$ac_compile") 2>conftest.er1
13299   ac_status=$?
13300   grep -v '^ *+' conftest.er1 >conftest.err
13301   rm -f conftest.er1
13302   cat conftest.err >&5
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); } &&
13305          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13306   { (case "(($ac_try" in
13307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308   *) ac_try_echo=$ac_try;;
13309 esac
13310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311   (eval "$ac_try") 2>&5
13312   ac_status=$?
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); }; } &&
13315          { ac_try='test -s conftest.$ac_objext'
13316   { (case "(($ac_try" in
13317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318   *) ac_try_echo=$ac_try;;
13319 esac
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321   (eval "$ac_try") 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }; }; then
13325   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13326   ac_cv_c_bigendian=yes
13327 fi
13328 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13329   if test "$ac_cv_c_bigendian" = unknown; then
13330     ac_cv_c_bigendian=no
13331   else
13332     # finding both strings is unlikely to happen, but who knows?
13333     ac_cv_c_bigendian=unknown
13334   fi
13335 fi
13336 else
13337   echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13339
13340
13341 fi
13342
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13344 else
13345   cat >conftest.$ac_ext <<_ACEOF
13346 /* confdefs.h.  */
13347 _ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h.  */
13351 $ac_includes_default
13352 int
13353 main ()
13354 {
13355
13356   /* Are we little or big endian?  From Harbison&Steele.  */
13357   union
13358   {
13359     long int l;
13360     char c[sizeof (long int)];
13361   } u;
13362   u.l = 1;
13363   return u.c[sizeof (long int) - 1] == 1;
13364
13365   ;
13366   return 0;
13367 }
13368 _ACEOF
13369 rm -f conftest$ac_exeext
13370 if { (ac_try="$ac_link"
13371 case "(($ac_try" in
13372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373   *) ac_try_echo=$ac_try;;
13374 esac
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376   (eval "$ac_link") 2>&5
13377   ac_status=$?
13378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13380   { (case "(($ac_try" in
13381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382   *) ac_try_echo=$ac_try;;
13383 esac
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385   (eval "$ac_try") 2>&5
13386   ac_status=$?
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); }; }; then
13389   ac_cv_c_bigendian=no
13390 else
13391   echo "$as_me: program exited with status $ac_status" >&5
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13394
13395 ( exit $ac_status )
13396 ac_cv_c_bigendian=yes
13397 fi
13398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13399 fi
13400
13401
13402 fi
13403
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405 fi
13406 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13407 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13408 case $ac_cv_c_bigendian in
13409   yes)
13410
13411 cat >>confdefs.h <<\_ACEOF
13412 #define WORDS_BIGENDIAN 1
13413 _ACEOF
13414  ;;
13415   no)
13416      ;;
13417   *)
13418     { { echo "$as_me:$LINENO: error: unknown endianness
13419 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13420 echo "$as_me: error: unknown endianness
13421 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13422    { (exit 1); exit 1; }; } ;;
13423 esac
13424
13425 else
13426 #echo "CROSS ENDIAN"
13427     if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
13428         ac_cv_c_bigendian=no
13429     else
13430         : # FIXME
13431     fi
13432 #echo "CROSS ENDIAN DONE"
13433 fi
13434
13435 { echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
13436 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6; }
13437 if test "${ucsim_cv_MM+set}" = set; then
13438   echo $ECHO_N "(cached) $ECHO_C" >&6
13439 else
13440   echo "#include <stdio.h>" >_test_.c
13441 echo "" >>_test_.c
13442 $CXXCPP -v -MM _test_.c 1>&5 2>&5
13443 if test "$?" = "0"; then
13444   ucsim_cv_MM="-MM"
13445 else
13446   ucsim_cv_MM="-M"
13447 fi
13448 rm -f _test_.*
13449 fi
13450 { echo "$as_me:$LINENO: result: $ucsim_cv_MM" >&5
13451 echo "${ECHO_T}$ucsim_cv_MM" >&6; }
13452 M_OR_MM=$ucsim_cv_MM
13453
13454
13455 # This is the first time when CFLAGS are set/modified!!
13456
13457
13458 { echo "$as_me:$LINENO: checking whether $CXX accepts -ggdb" >&5
13459 echo $ECHO_N "checking whether $CXX accepts -ggdb... $ECHO_C" >&6; }
13460 if test "${ucsim_cv_CXXggdb+set}" = set; then
13461   echo $ECHO_N "(cached) $ECHO_C" >&6
13462 else
13463   cat >_test_.c <<EOF
13464 #include <stdio.h>
13465 int main(void) {return(0);}
13466 EOF
13467 $CXX -v -ggdb -c _test_.c 1>&5 2>&5
13468 if test "$?" = "0"; then
13469   ucsim_cv_CXXggdb="yes"
13470 else
13471   ucsim_cv_CXXggdb="no"
13472 fi
13473 rm -f _test_.* a.out
13474 fi
13475 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXggdb" >&5
13476 echo "${ECHO_T}$ucsim_cv_CXXggdb" >&6; }
13477
13478
13479 { echo "$as_me:$LINENO: checking whether $CXX accepts -gstabs" >&5
13480 echo $ECHO_N "checking whether $CXX accepts -gstabs... $ECHO_C" >&6; }
13481 if test "${ucsim_cv_CXXgstabs+set}" = set; then
13482   echo $ECHO_N "(cached) $ECHO_C" >&6
13483 else
13484   cat >_test_.c <<EOF
13485 #include <stdio.h>
13486 int main(void) {return(0);}
13487 EOF
13488 $CXX -v -gstabs -c _test_.c 1>&5 2>&5
13489 if test "$?" = "0"; then
13490   ucsim_cv_CXXgstabs="yes"
13491 else
13492   ucsim_cv_CXXgstabs="no"
13493 fi
13494 rm -f _test_.* a.out
13495 fi
13496 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXgstabs" >&5
13497 echo "${ECHO_T}$ucsim_cv_CXXgstabs" >&6; }
13498
13499 if test "$ucsim_cv_CXXgstabs" = "yes"; then
13500    gopt="-gstabs+ -g3"
13501 elif test "$ucsim_cv_CXXggdb" = "yes"; then
13502      gopt="-ggdb -g3"
13503 else
13504      gopt="-g"
13505 fi
13506 if test "$CXXFLAGS"x = x ;then
13507         CXXFLAGS="$gopt"
13508 else
13509         CXXFLAGS="$CXXFLAGS $gopt"
13510 fi
13511
13512
13513 { echo "$as_me:$LINENO: checking whether $CXX accepts -pipe" >&5
13514 echo $ECHO_N "checking whether $CXX accepts -pipe... $ECHO_C" >&6; }
13515 if test "${ucsim_cv_CXXpipe+set}" = set; then
13516   echo $ECHO_N "(cached) $ECHO_C" >&6
13517 else
13518   cat >_test_.c <<EOF
13519 #include <stdio.h>
13520 int main(void) {return(0);}
13521 EOF
13522 $CXX -v -pipe -c _test_.c 1>&5 2>&5
13523 if test "$?" = "0"; then
13524   ucsim_cv_CXXpipe="yes"
13525 else
13526   ucsim_cv_CXXpipe="no"
13527 fi
13528 rm -f _test_.* a.out
13529 fi
13530 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXpipe" >&5
13531 echo "${ECHO_T}$ucsim_cv_CXXpipe" >&6; }
13532
13533 if test "$ucsim_cv_CXXpipe" = "yes"; then
13534   CXXFLAGS="$CXXFLAGS -pipe"
13535 fi
13536
13537 PICOPT=""
13538 SHAREDLIB="no"
13539
13540 { echo "$as_me:$LINENO: checking whether $CXX accepts -fPIC" >&5
13541 echo $ECHO_N "checking whether $CXX accepts -fPIC... $ECHO_C" >&6; }
13542 if test "${ucsim_cv_CXXfPIC+set}" = set; then
13543   echo $ECHO_N "(cached) $ECHO_C" >&6
13544 else
13545   cat >_test_.c <<EOF
13546 #include <stdio.h>
13547 int main(void) {return(0);}
13548 EOF
13549 $CXX -v -fPIC -c _test_.c 1>&5 2>&5
13550 if test "$?" = "0"; then
13551   ucsim_cv_CXXfPIC="yes"
13552 else
13553   ucsim_cv_CXXfPIC="no"
13554 fi
13555 rm -f _test_.* a.out
13556 fi
13557 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXfPIC" >&5
13558 echo "${ECHO_T}$ucsim_cv_CXXfPIC" >&6; }
13559
13560 if test "$ucsim_cv_CXXfPIC" = "yes"; then
13561     PICOPT="-fPIC"
13562 else
13563
13564 { echo "$as_me:$LINENO: checking whether $CXX accepts -fpic" >&5
13565 echo $ECHO_N "checking whether $CXX accepts -fpic... $ECHO_C" >&6; }
13566 if test "${ucsim_cv_CXXfpic+set}" = set; then
13567   echo $ECHO_N "(cached) $ECHO_C" >&6
13568 else
13569   cat >_test_.c <<EOF
13570 #include <stdio.h>
13571 int main(void) {return(0);}
13572 EOF
13573 $CXX -v -fpic -c _test_.c 1>&5 2>&5
13574 if test "$?" = "0"; then
13575   ucsim_cv_CXXfpic="yes"
13576 else
13577   ucsim_cv_CXXfpic="no"
13578 fi
13579 rm -f _test_.* a.out
13580 fi
13581 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXfpic" >&5
13582 echo "${ECHO_T}$ucsim_cv_CXXfpic" >&6; }
13583
13584     if test "$ucsim_cv_CXXfpic" = "yes"; then
13585         PICOPT="-fpic"
13586     fi
13587 fi
13588 if test "$PICOPT"x != "x"; then
13589     SHAREDLIB="yes"
13590 fi
13591 # If this is Cygwin neither use Position Independant Code
13592 # nor build .so
13593 # Quick + dirty by Bernhard
13594 # FIXME
13595 if $CXX --version 2>&1 | grep -i cygming 1>&5 2>&5 || $CXX --version 2>&1 | grep -i cygwin 1>&5 2>&5; then
13596     PICOPT=""
13597     SHAREDLIB="no"
13598 fi
13599
13600
13601
13602 dlso_ok="no"
13603 if test $SHAREDLIB = "yes" -a $dl_ok = "yes" -a $enable_dlso = "yes"; then
13604     dlso_ok="yes"
13605 fi
13606
13607
13608 # Checks for typedefs, structures, and compiler characteristics.
13609 # ===========================================================================
13610
13611 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13612 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13613 if test "${ac_cv_type_signal+set}" = set; then
13614   echo $ECHO_N "(cached) $ECHO_C" >&6
13615 else
13616   cat >conftest.$ac_ext <<_ACEOF
13617 /* confdefs.h.  */
13618 _ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h.  */
13622 #include <sys/types.h>
13623 #include <signal.h>
13624
13625 int
13626 main ()
13627 {
13628 return *(signal (0, 0)) (0) == 1;
13629   ;
13630   return 0;
13631 }
13632 _ACEOF
13633 rm -f conftest.$ac_objext
13634 if { (ac_try="$ac_compile"
13635 case "(($ac_try" in
13636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637   *) ac_try_echo=$ac_try;;
13638 esac
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640   (eval "$ac_compile") 2>conftest.er1
13641   ac_status=$?
13642   grep -v '^ *+' conftest.er1 >conftest.err
13643   rm -f conftest.er1
13644   cat conftest.err >&5
13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); } &&
13647          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13648   { (case "(($ac_try" in
13649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650   *) ac_try_echo=$ac_try;;
13651 esac
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653   (eval "$ac_try") 2>&5
13654   ac_status=$?
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); }; } &&
13657          { ac_try='test -s conftest.$ac_objext'
13658   { (case "(($ac_try" in
13659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660   *) ac_try_echo=$ac_try;;
13661 esac
13662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13663   (eval "$ac_try") 2>&5
13664   ac_status=$?
13665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666   (exit $ac_status); }; }; then
13667   ac_cv_type_signal=int
13668 else
13669   echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13671
13672         ac_cv_type_signal=void
13673 fi
13674
13675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13676 fi
13677 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13678 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13679
13680 cat >>confdefs.h <<_ACEOF
13681 #define RETSIGTYPE $ac_cv_type_signal
13682 _ACEOF
13683
13684
13685 if test "$cross_compiling" = "no"; then
13686 { echo "$as_me:$LINENO: checking for char" >&5
13687 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
13688 if test "${ac_cv_type_char+set}" = set; then
13689   echo $ECHO_N "(cached) $ECHO_C" >&6
13690 else
13691   cat >conftest.$ac_ext <<_ACEOF
13692 /* confdefs.h.  */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h.  */
13697 $ac_includes_default
13698 typedef char ac__type_new_;
13699 int
13700 main ()
13701 {
13702 if ((ac__type_new_ *) 0)
13703   return 0;
13704 if (sizeof (ac__type_new_))
13705   return 0;
13706   ;
13707   return 0;
13708 }
13709 _ACEOF
13710 rm -f conftest.$ac_objext
13711 if { (ac_try="$ac_compile"
13712 case "(($ac_try" in
13713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714   *) ac_try_echo=$ac_try;;
13715 esac
13716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717   (eval "$ac_compile") 2>conftest.er1
13718   ac_status=$?
13719   grep -v '^ *+' conftest.er1 >conftest.err
13720   rm -f conftest.er1
13721   cat conftest.err >&5
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); } &&
13724          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13725   { (case "(($ac_try" in
13726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727   *) ac_try_echo=$ac_try;;
13728 esac
13729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730   (eval "$ac_try") 2>&5
13731   ac_status=$?
13732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733   (exit $ac_status); }; } &&
13734          { ac_try='test -s conftest.$ac_objext'
13735   { (case "(($ac_try" in
13736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737   *) ac_try_echo=$ac_try;;
13738 esac
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740   (eval "$ac_try") 2>&5
13741   ac_status=$?
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); }; }; then
13744   ac_cv_type_char=yes
13745 else
13746   echo "$as_me: failed program was:" >&5
13747 sed 's/^/| /' conftest.$ac_ext >&5
13748
13749         ac_cv_type_char=no
13750 fi
13751
13752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13753 fi
13754 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13755 echo "${ECHO_T}$ac_cv_type_char" >&6; }
13756
13757 { echo "$as_me:$LINENO: checking size of char" >&5
13758 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
13759 if test "${ac_cv_sizeof_char+set}" = set; then
13760   echo $ECHO_N "(cached) $ECHO_C" >&6
13761 else
13762   if test "$ac_cv_type_char" = yes; then
13763   # The cast to long int works around a bug in the HP C Compiler
13764   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13765   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13766   # This bug is HP SR number 8606223364.
13767   if test "$cross_compiling" = yes; then
13768   # Depending upon the size, compute the lo and hi bounds.
13769 cat >conftest.$ac_ext <<_ACEOF
13770 /* confdefs.h.  */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h.  */
13775 $ac_includes_default
13776                    typedef char ac__type_sizeof_;
13777 int
13778 main ()
13779 {
13780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13781 test_array [0] = 0
13782
13783   ;
13784   return 0;
13785 }
13786 _ACEOF
13787 rm -f conftest.$ac_objext
13788 if { (ac_try="$ac_compile"
13789 case "(($ac_try" in
13790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791   *) ac_try_echo=$ac_try;;
13792 esac
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794   (eval "$ac_compile") 2>conftest.er1
13795   ac_status=$?
13796   grep -v '^ *+' conftest.er1 >conftest.err
13797   rm -f conftest.er1
13798   cat conftest.err >&5
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); } &&
13801          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13802   { (case "(($ac_try" in
13803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804   *) ac_try_echo=$ac_try;;
13805 esac
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807   (eval "$ac_try") 2>&5
13808   ac_status=$?
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); }; } &&
13811          { ac_try='test -s conftest.$ac_objext'
13812   { (case "(($ac_try" in
13813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814   *) ac_try_echo=$ac_try;;
13815 esac
13816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817   (eval "$ac_try") 2>&5
13818   ac_status=$?
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); }; }; then
13821   ac_lo=0 ac_mid=0
13822   while :; do
13823     cat >conftest.$ac_ext <<_ACEOF
13824 /* confdefs.h.  */
13825 _ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h.  */
13829 $ac_includes_default
13830                    typedef char ac__type_sizeof_;
13831 int
13832 main ()
13833 {
13834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13835 test_array [0] = 0
13836
13837   ;
13838   return 0;
13839 }
13840 _ACEOF
13841 rm -f conftest.$ac_objext
13842 if { (ac_try="$ac_compile"
13843 case "(($ac_try" in
13844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845   *) ac_try_echo=$ac_try;;
13846 esac
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848   (eval "$ac_compile") 2>conftest.er1
13849   ac_status=$?
13850   grep -v '^ *+' conftest.er1 >conftest.err
13851   rm -f conftest.er1
13852   cat conftest.err >&5
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); } &&
13855          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13856   { (case "(($ac_try" in
13857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858   *) ac_try_echo=$ac_try;;
13859 esac
13860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861   (eval "$ac_try") 2>&5
13862   ac_status=$?
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); }; } &&
13865          { ac_try='test -s conftest.$ac_objext'
13866   { (case "(($ac_try" in
13867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868   *) ac_try_echo=$ac_try;;
13869 esac
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871   (eval "$ac_try") 2>&5
13872   ac_status=$?
13873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); }; }; then
13875   ac_hi=$ac_mid; break
13876 else
13877   echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13879
13880         ac_lo=`expr $ac_mid + 1`
13881                         if test $ac_lo -le $ac_mid; then
13882                           ac_lo= ac_hi=
13883                           break
13884                         fi
13885                         ac_mid=`expr 2 '*' $ac_mid + 1`
13886 fi
13887
13888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889   done
13890 else
13891   echo "$as_me: failed program was:" >&5
13892 sed 's/^/| /' conftest.$ac_ext >&5
13893
13894         cat >conftest.$ac_ext <<_ACEOF
13895 /* confdefs.h.  */
13896 _ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h.  */
13900 $ac_includes_default
13901                    typedef char ac__type_sizeof_;
13902 int
13903 main ()
13904 {
13905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13906 test_array [0] = 0
13907
13908   ;
13909   return 0;
13910 }
13911 _ACEOF
13912 rm -f conftest.$ac_objext
13913 if { (ac_try="$ac_compile"
13914 case "(($ac_try" in
13915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13916   *) ac_try_echo=$ac_try;;
13917 esac
13918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13919   (eval "$ac_compile") 2>conftest.er1
13920   ac_status=$?
13921   grep -v '^ *+' conftest.er1 >conftest.err
13922   rm -f conftest.er1
13923   cat conftest.err >&5
13924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925   (exit $ac_status); } &&
13926          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13927   { (case "(($ac_try" in
13928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13929   *) ac_try_echo=$ac_try;;
13930 esac
13931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13932   (eval "$ac_try") 2>&5
13933   ac_status=$?
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); }; } &&
13936          { ac_try='test -s conftest.$ac_objext'
13937   { (case "(($ac_try" in
13938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939   *) ac_try_echo=$ac_try;;
13940 esac
13941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942   (eval "$ac_try") 2>&5
13943   ac_status=$?
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); }; }; then
13946   ac_hi=-1 ac_mid=-1
13947   while :; do
13948     cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h.  */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h.  */
13954 $ac_includes_default
13955                    typedef char ac__type_sizeof_;
13956 int
13957 main ()
13958 {
13959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13960 test_array [0] = 0
13961
13962   ;
13963   return 0;
13964 }
13965 _ACEOF
13966 rm -f conftest.$ac_objext
13967 if { (ac_try="$ac_compile"
13968 case "(($ac_try" in
13969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970   *) ac_try_echo=$ac_try;;
13971 esac
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973   (eval "$ac_compile") 2>conftest.er1
13974   ac_status=$?
13975   grep -v '^ *+' conftest.er1 >conftest.err
13976   rm -f conftest.er1
13977   cat conftest.err >&5
13978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979   (exit $ac_status); } &&
13980          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13981   { (case "(($ac_try" in
13982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983   *) ac_try_echo=$ac_try;;
13984 esac
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986   (eval "$ac_try") 2>&5
13987   ac_status=$?
13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); }; } &&
13990          { ac_try='test -s conftest.$ac_objext'
13991   { (case "(($ac_try" in
13992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993   *) ac_try_echo=$ac_try;;
13994 esac
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996   (eval "$ac_try") 2>&5
13997   ac_status=$?
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); }; }; then
14000   ac_lo=$ac_mid; break
14001 else
14002   echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14004
14005         ac_hi=`expr '(' $ac_mid ')' - 1`
14006                         if test $ac_mid -le $ac_hi; then
14007                           ac_lo= ac_hi=
14008                           break
14009                         fi
14010                         ac_mid=`expr 2 '*' $ac_mid`
14011 fi
14012
14013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14014   done
14015 else
14016   echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14018
14019         ac_lo= ac_hi=
14020 fi
14021
14022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14023 fi
14024
14025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026 # Binary search between lo and hi bounds.
14027 while test "x$ac_lo" != "x$ac_hi"; do
14028   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14029   cat >conftest.$ac_ext <<_ACEOF
14030 /* confdefs.h.  */
14031 _ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h.  */
14035 $ac_includes_default
14036                    typedef char ac__type_sizeof_;
14037 int
14038 main ()
14039 {
14040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14041 test_array [0] = 0
14042
14043   ;
14044   return 0;
14045 }
14046 _ACEOF
14047 rm -f conftest.$ac_objext
14048 if { (ac_try="$ac_compile"
14049 case "(($ac_try" in
14050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051   *) ac_try_echo=$ac_try;;
14052 esac
14053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054   (eval "$ac_compile") 2>conftest.er1
14055   ac_status=$?
14056   grep -v '^ *+' conftest.er1 >conftest.err
14057   rm -f conftest.er1
14058   cat conftest.err >&5
14059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060   (exit $ac_status); } &&
14061          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14062   { (case "(($ac_try" in
14063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064   *) ac_try_echo=$ac_try;;
14065 esac
14066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14067   (eval "$ac_try") 2>&5
14068   ac_status=$?
14069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070   (exit $ac_status); }; } &&
14071          { ac_try='test -s conftest.$ac_objext'
14072   { (case "(($ac_try" in
14073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14074   *) ac_try_echo=$ac_try;;
14075 esac
14076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14077   (eval "$ac_try") 2>&5
14078   ac_status=$?
14079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   (exit $ac_status); }; }; then
14081   ac_hi=$ac_mid
14082 else
14083   echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14085
14086         ac_lo=`expr '(' $ac_mid ')' + 1`
14087 fi
14088
14089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14090 done
14091 case $ac_lo in
14092 ?*) ac_cv_sizeof_char=$ac_lo;;
14093 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
14094 See \`config.log' for more details." >&5
14095 echo "$as_me: error: cannot compute sizeof (char)
14096 See \`config.log' for more details." >&2;}
14097    { (exit 77); exit 77; }; } ;;
14098 esac
14099 else
14100   cat >conftest.$ac_ext <<_ACEOF
14101 /* confdefs.h.  */
14102 _ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h.  */
14106 $ac_includes_default
14107                    typedef char ac__type_sizeof_;
14108 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14109 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14110 #include <stdio.h>
14111 #include <stdlib.h>
14112 int
14113 main ()
14114 {
14115
14116   FILE *f = fopen ("conftest.val", "w");
14117   if (! f)
14118     return 1;
14119   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14120     {
14121       long int i = longval ();
14122       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14123         return 1;
14124       fprintf (f, "%ld\n", i);
14125     }
14126   else
14127     {
14128       unsigned long int i = ulongval ();
14129       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14130         return 1;
14131       fprintf (f, "%lu\n", i);
14132     }
14133   return ferror (f) || fclose (f) != 0;
14134
14135   ;
14136   return 0;
14137 }
14138 _ACEOF
14139 rm -f conftest$ac_exeext
14140 if { (ac_try="$ac_link"
14141 case "(($ac_try" in
14142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14143   *) ac_try_echo=$ac_try;;
14144 esac
14145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14146   (eval "$ac_link") 2>&5
14147   ac_status=$?
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14150   { (case "(($ac_try" in
14151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152   *) ac_try_echo=$ac_try;;
14153 esac
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155   (eval "$ac_try") 2>&5
14156   ac_status=$?
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); }; }; then
14159   ac_cv_sizeof_char=`cat conftest.val`
14160 else
14161   echo "$as_me: program exited with status $ac_status" >&5
14162 echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.$ac_ext >&5
14164
14165 ( exit $ac_status )
14166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
14167 See \`config.log' for more details." >&5
14168 echo "$as_me: error: cannot compute sizeof (char)
14169 See \`config.log' for more details." >&2;}
14170    { (exit 77); exit 77; }; }
14171 fi
14172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14173 fi
14174 rm -f conftest.val
14175 else
14176   ac_cv_sizeof_char=0
14177 fi
14178 fi
14179 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14180 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
14181 cat >>confdefs.h <<_ACEOF
14182 #define SIZEOF_CHAR $ac_cv_sizeof_char
14183 _ACEOF
14184
14185
14186 { echo "$as_me:$LINENO: checking for short" >&5
14187 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
14188 if test "${ac_cv_type_short+set}" = set; then
14189   echo $ECHO_N "(cached) $ECHO_C" >&6
14190 else
14191   cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h.  */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h.  */
14197 $ac_includes_default
14198 typedef short ac__type_new_;
14199 int
14200 main ()
14201 {
14202 if ((ac__type_new_ *) 0)
14203   return 0;
14204 if (sizeof (ac__type_new_))
14205   return 0;
14206   ;
14207   return 0;
14208 }
14209 _ACEOF
14210 rm -f conftest.$ac_objext
14211 if { (ac_try="$ac_compile"
14212 case "(($ac_try" in
14213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214   *) ac_try_echo=$ac_try;;
14215 esac
14216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217   (eval "$ac_compile") 2>conftest.er1
14218   ac_status=$?
14219   grep -v '^ *+' conftest.er1 >conftest.err
14220   rm -f conftest.er1
14221   cat conftest.err >&5
14222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223   (exit $ac_status); } &&
14224          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14225   { (case "(($ac_try" in
14226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227   *) ac_try_echo=$ac_try;;
14228 esac
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230   (eval "$ac_try") 2>&5
14231   ac_status=$?
14232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233   (exit $ac_status); }; } &&
14234          { ac_try='test -s conftest.$ac_objext'
14235   { (case "(($ac_try" in
14236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237   *) ac_try_echo=$ac_try;;
14238 esac
14239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240   (eval "$ac_try") 2>&5
14241   ac_status=$?
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); }; }; then
14244   ac_cv_type_short=yes
14245 else
14246   echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14248
14249         ac_cv_type_short=no
14250 fi
14251
14252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14253 fi
14254 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14255 echo "${ECHO_T}$ac_cv_type_short" >&6; }
14256
14257 { echo "$as_me:$LINENO: checking size of short" >&5
14258 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
14259 if test "${ac_cv_sizeof_short+set}" = set; then
14260   echo $ECHO_N "(cached) $ECHO_C" >&6
14261 else
14262   if test "$ac_cv_type_short" = yes; then
14263   # The cast to long int works around a bug in the HP C Compiler
14264   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14265   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14266   # This bug is HP SR number 8606223364.
14267   if test "$cross_compiling" = yes; then
14268   # Depending upon the size, compute the lo and hi bounds.
14269 cat >conftest.$ac_ext <<_ACEOF
14270 /* confdefs.h.  */
14271 _ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h.  */
14275 $ac_includes_default
14276                    typedef short ac__type_sizeof_;
14277 int
14278 main ()
14279 {
14280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14281 test_array [0] = 0
14282
14283   ;
14284   return 0;
14285 }
14286 _ACEOF
14287 rm -f conftest.$ac_objext
14288 if { (ac_try="$ac_compile"
14289 case "(($ac_try" in
14290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291   *) ac_try_echo=$ac_try;;
14292 esac
14293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294   (eval "$ac_compile") 2>conftest.er1
14295   ac_status=$?
14296   grep -v '^ *+' conftest.er1 >conftest.err
14297   rm -f conftest.er1
14298   cat conftest.err >&5
14299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300   (exit $ac_status); } &&
14301          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14302   { (case "(($ac_try" in
14303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304   *) ac_try_echo=$ac_try;;
14305 esac
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307   (eval "$ac_try") 2>&5
14308   ac_status=$?
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); }; } &&
14311          { ac_try='test -s conftest.$ac_objext'
14312   { (case "(($ac_try" in
14313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14314   *) ac_try_echo=$ac_try;;
14315 esac
14316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14317   (eval "$ac_try") 2>&5
14318   ac_status=$?
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); }; }; then
14321   ac_lo=0 ac_mid=0
14322   while :; do
14323     cat >conftest.$ac_ext <<_ACEOF
14324 /* confdefs.h.  */
14325 _ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h.  */
14329 $ac_includes_default
14330                    typedef short ac__type_sizeof_;
14331 int
14332 main ()
14333 {
14334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14335 test_array [0] = 0
14336
14337   ;
14338   return 0;
14339 }
14340 _ACEOF
14341 rm -f conftest.$ac_objext
14342 if { (ac_try="$ac_compile"
14343 case "(($ac_try" in
14344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345   *) ac_try_echo=$ac_try;;
14346 esac
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348   (eval "$ac_compile") 2>conftest.er1
14349   ac_status=$?
14350   grep -v '^ *+' conftest.er1 >conftest.err
14351   rm -f conftest.er1
14352   cat conftest.err >&5
14353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354   (exit $ac_status); } &&
14355          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14356   { (case "(($ac_try" in
14357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14358   *) ac_try_echo=$ac_try;;
14359 esac
14360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14361   (eval "$ac_try") 2>&5
14362   ac_status=$?
14363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364   (exit $ac_status); }; } &&
14365          { ac_try='test -s conftest.$ac_objext'
14366   { (case "(($ac_try" in
14367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368   *) ac_try_echo=$ac_try;;
14369 esac
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371   (eval "$ac_try") 2>&5
14372   ac_status=$?
14373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); }; }; then
14375   ac_hi=$ac_mid; break
14376 else
14377   echo "$as_me: failed program was:" >&5
14378 sed 's/^/| /' conftest.$ac_ext >&5
14379
14380         ac_lo=`expr $ac_mid + 1`
14381                         if test $ac_lo -le $ac_mid; then
14382                           ac_lo= ac_hi=
14383                           break
14384                         fi
14385                         ac_mid=`expr 2 '*' $ac_mid + 1`
14386 fi
14387
14388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14389   done
14390 else
14391   echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394         cat >conftest.$ac_ext <<_ACEOF
14395 /* confdefs.h.  */
14396 _ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h.  */
14400 $ac_includes_default
14401                    typedef short ac__type_sizeof_;
14402 int
14403 main ()
14404 {
14405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14406 test_array [0] = 0
14407
14408   ;
14409   return 0;
14410 }
14411 _ACEOF
14412 rm -f conftest.$ac_objext
14413 if { (ac_try="$ac_compile"
14414 case "(($ac_try" in
14415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416   *) ac_try_echo=$ac_try;;
14417 esac
14418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419   (eval "$ac_compile") 2>conftest.er1
14420   ac_status=$?
14421   grep -v '^ *+' conftest.er1 >conftest.err
14422   rm -f conftest.er1
14423   cat conftest.err >&5
14424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   (exit $ac_status); } &&
14426          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14427   { (case "(($ac_try" in
14428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429   *) ac_try_echo=$ac_try;;
14430 esac
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432   (eval "$ac_try") 2>&5
14433   ac_status=$?
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); }; } &&
14436          { ac_try='test -s conftest.$ac_objext'
14437   { (case "(($ac_try" in
14438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439   *) ac_try_echo=$ac_try;;
14440 esac
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442   (eval "$ac_try") 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); }; }; then
14446   ac_hi=-1 ac_mid=-1
14447   while :; do
14448     cat >conftest.$ac_ext <<_ACEOF
14449 /* confdefs.h.  */
14450 _ACEOF
14451 cat confdefs.h >>conftest.$ac_ext
14452 cat >>conftest.$ac_ext <<_ACEOF
14453 /* end confdefs.h.  */
14454 $ac_includes_default
14455                    typedef short ac__type_sizeof_;
14456 int
14457 main ()
14458 {
14459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14460 test_array [0] = 0
14461
14462   ;
14463   return 0;
14464 }
14465 _ACEOF
14466 rm -f conftest.$ac_objext
14467 if { (ac_try="$ac_compile"
14468 case "(($ac_try" in
14469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470   *) ac_try_echo=$ac_try;;
14471 esac
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473   (eval "$ac_compile") 2>conftest.er1
14474   ac_status=$?
14475   grep -v '^ *+' conftest.er1 >conftest.err
14476   rm -f conftest.er1
14477   cat conftest.err >&5
14478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479   (exit $ac_status); } &&
14480          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14481   { (case "(($ac_try" in
14482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483   *) ac_try_echo=$ac_try;;
14484 esac
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486   (eval "$ac_try") 2>&5
14487   ac_status=$?
14488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489   (exit $ac_status); }; } &&
14490          { ac_try='test -s conftest.$ac_objext'
14491   { (case "(($ac_try" in
14492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493   *) ac_try_echo=$ac_try;;
14494 esac
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496   (eval "$ac_try") 2>&5
14497   ac_status=$?
14498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499   (exit $ac_status); }; }; then
14500   ac_lo=$ac_mid; break
14501 else
14502   echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14504
14505         ac_hi=`expr '(' $ac_mid ')' - 1`
14506                         if test $ac_mid -le $ac_hi; then
14507                           ac_lo= ac_hi=
14508                           break
14509                         fi
14510                         ac_mid=`expr 2 '*' $ac_mid`
14511 fi
14512
14513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514   done
14515 else
14516   echo "$as_me: failed program was:" >&5
14517 sed 's/^/| /' conftest.$ac_ext >&5
14518
14519         ac_lo= ac_hi=
14520 fi
14521
14522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14523 fi
14524
14525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14526 # Binary search between lo and hi bounds.
14527 while test "x$ac_lo" != "x$ac_hi"; do
14528   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14529   cat >conftest.$ac_ext <<_ACEOF
14530 /* confdefs.h.  */
14531 _ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h.  */
14535 $ac_includes_default
14536                    typedef short ac__type_sizeof_;
14537 int
14538 main ()
14539 {
14540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14541 test_array [0] = 0
14542
14543   ;
14544   return 0;
14545 }
14546 _ACEOF
14547 rm -f conftest.$ac_objext
14548 if { (ac_try="$ac_compile"
14549 case "(($ac_try" in
14550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551   *) ac_try_echo=$ac_try;;
14552 esac
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554   (eval "$ac_compile") 2>conftest.er1
14555   ac_status=$?
14556   grep -v '^ *+' conftest.er1 >conftest.err
14557   rm -f conftest.er1
14558   cat conftest.err >&5
14559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560   (exit $ac_status); } &&
14561          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14562   { (case "(($ac_try" in
14563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14564   *) ac_try_echo=$ac_try;;
14565 esac
14566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14567   (eval "$ac_try") 2>&5
14568   ac_status=$?
14569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570   (exit $ac_status); }; } &&
14571          { ac_try='test -s conftest.$ac_objext'
14572   { (case "(($ac_try" in
14573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574   *) ac_try_echo=$ac_try;;
14575 esac
14576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14577   (eval "$ac_try") 2>&5
14578   ac_status=$?
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); }; }; then
14581   ac_hi=$ac_mid
14582 else
14583   echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14585
14586         ac_lo=`expr '(' $ac_mid ')' + 1`
14587 fi
14588
14589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14590 done
14591 case $ac_lo in
14592 ?*) ac_cv_sizeof_short=$ac_lo;;
14593 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
14594 See \`config.log' for more details." >&5
14595 echo "$as_me: error: cannot compute sizeof (short)
14596 See \`config.log' for more details." >&2;}
14597    { (exit 77); exit 77; }; } ;;
14598 esac
14599 else
14600   cat >conftest.$ac_ext <<_ACEOF
14601 /* confdefs.h.  */
14602 _ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h.  */
14606 $ac_includes_default
14607                    typedef short ac__type_sizeof_;
14608 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14609 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14610 #include <stdio.h>
14611 #include <stdlib.h>
14612 int
14613 main ()
14614 {
14615
14616   FILE *f = fopen ("conftest.val", "w");
14617   if (! f)
14618     return 1;
14619   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14620     {
14621       long int i = longval ();
14622       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14623         return 1;
14624       fprintf (f, "%ld\n", i);
14625     }
14626   else
14627     {
14628       unsigned long int i = ulongval ();
14629       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14630         return 1;
14631       fprintf (f, "%lu\n", i);
14632     }
14633   return ferror (f) || fclose (f) != 0;
14634
14635   ;
14636   return 0;
14637 }
14638 _ACEOF
14639 rm -f conftest$ac_exeext
14640 if { (ac_try="$ac_link"
14641 case "(($ac_try" in
14642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643   *) ac_try_echo=$ac_try;;
14644 esac
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646   (eval "$ac_link") 2>&5
14647   ac_status=$?
14648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14650   { (case "(($ac_try" in
14651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652   *) ac_try_echo=$ac_try;;
14653 esac
14654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14655   (eval "$ac_try") 2>&5
14656   ac_status=$?
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); }; }; then
14659   ac_cv_sizeof_short=`cat conftest.val`
14660 else
14661   echo "$as_me: program exited with status $ac_status" >&5
14662 echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14664
14665 ( exit $ac_status )
14666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
14667 See \`config.log' for more details." >&5
14668 echo "$as_me: error: cannot compute sizeof (short)
14669 See \`config.log' for more details." >&2;}
14670    { (exit 77); exit 77; }; }
14671 fi
14672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14673 fi
14674 rm -f conftest.val
14675 else
14676   ac_cv_sizeof_short=0
14677 fi
14678 fi
14679 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14680 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
14681 cat >>confdefs.h <<_ACEOF
14682 #define SIZEOF_SHORT $ac_cv_sizeof_short
14683 _ACEOF
14684
14685
14686 { echo "$as_me:$LINENO: checking for int" >&5
14687 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
14688 if test "${ac_cv_type_int+set}" = set; then
14689   echo $ECHO_N "(cached) $ECHO_C" >&6
14690 else
14691   cat >conftest.$ac_ext <<_ACEOF
14692 /* confdefs.h.  */
14693 _ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h.  */
14697 $ac_includes_default
14698 typedef int ac__type_new_;
14699 int
14700 main ()
14701 {
14702 if ((ac__type_new_ *) 0)
14703   return 0;
14704 if (sizeof (ac__type_new_))
14705   return 0;
14706   ;
14707   return 0;
14708 }
14709 _ACEOF
14710 rm -f conftest.$ac_objext
14711 if { (ac_try="$ac_compile"
14712 case "(($ac_try" in
14713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714   *) ac_try_echo=$ac_try;;
14715 esac
14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717   (eval "$ac_compile") 2>conftest.er1
14718   ac_status=$?
14719   grep -v '^ *+' conftest.er1 >conftest.err
14720   rm -f conftest.er1
14721   cat conftest.err >&5
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   (exit $ac_status); } &&
14724          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14725   { (case "(($ac_try" in
14726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727   *) ac_try_echo=$ac_try;;
14728 esac
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730   (eval "$ac_try") 2>&5
14731   ac_status=$?
14732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733   (exit $ac_status); }; } &&
14734          { ac_try='test -s conftest.$ac_objext'
14735   { (case "(($ac_try" in
14736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737   *) ac_try_echo=$ac_try;;
14738 esac
14739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740   (eval "$ac_try") 2>&5
14741   ac_status=$?
14742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743   (exit $ac_status); }; }; then
14744   ac_cv_type_int=yes
14745 else
14746   echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.$ac_ext >&5
14748
14749         ac_cv_type_int=no
14750 fi
14751
14752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14753 fi
14754 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14755 echo "${ECHO_T}$ac_cv_type_int" >&6; }
14756
14757 { echo "$as_me:$LINENO: checking size of int" >&5
14758 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14759 if test "${ac_cv_sizeof_int+set}" = set; then
14760   echo $ECHO_N "(cached) $ECHO_C" >&6
14761 else
14762   if test "$ac_cv_type_int" = yes; then
14763   # The cast to long int works around a bug in the HP C Compiler
14764   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14765   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14766   # This bug is HP SR number 8606223364.
14767   if test "$cross_compiling" = yes; then
14768   # Depending upon the size, compute the lo and hi bounds.
14769 cat >conftest.$ac_ext <<_ACEOF
14770 /* confdefs.h.  */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h.  */
14775 $ac_includes_default
14776                    typedef int ac__type_sizeof_;
14777 int
14778 main ()
14779 {
14780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14781 test_array [0] = 0
14782
14783   ;
14784   return 0;
14785 }
14786 _ACEOF
14787 rm -f conftest.$ac_objext
14788 if { (ac_try="$ac_compile"
14789 case "(($ac_try" in
14790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791   *) ac_try_echo=$ac_try;;
14792 esac
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794   (eval "$ac_compile") 2>conftest.er1
14795   ac_status=$?
14796   grep -v '^ *+' conftest.er1 >conftest.err
14797   rm -f conftest.er1
14798   cat conftest.err >&5
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); } &&
14801          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14802   { (case "(($ac_try" in
14803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804   *) ac_try_echo=$ac_try;;
14805 esac
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807   (eval "$ac_try") 2>&5
14808   ac_status=$?
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); }; } &&
14811          { ac_try='test -s conftest.$ac_objext'
14812   { (case "(($ac_try" in
14813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814   *) ac_try_echo=$ac_try;;
14815 esac
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817   (eval "$ac_try") 2>&5
14818   ac_status=$?
14819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820   (exit $ac_status); }; }; then
14821   ac_lo=0 ac_mid=0
14822   while :; do
14823     cat >conftest.$ac_ext <<_ACEOF
14824 /* confdefs.h.  */
14825 _ACEOF
14826 cat confdefs.h >>conftest.$ac_ext
14827 cat >>conftest.$ac_ext <<_ACEOF
14828 /* end confdefs.h.  */
14829 $ac_includes_default
14830                    typedef int ac__type_sizeof_;
14831 int
14832 main ()
14833 {
14834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14835 test_array [0] = 0
14836
14837   ;
14838   return 0;
14839 }
14840 _ACEOF
14841 rm -f conftest.$ac_objext
14842 if { (ac_try="$ac_compile"
14843 case "(($ac_try" in
14844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845   *) ac_try_echo=$ac_try;;
14846 esac
14847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848   (eval "$ac_compile") 2>conftest.er1
14849   ac_status=$?
14850   grep -v '^ *+' conftest.er1 >conftest.err
14851   rm -f conftest.er1
14852   cat conftest.err >&5
14853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854   (exit $ac_status); } &&
14855          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14856   { (case "(($ac_try" in
14857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858   *) ac_try_echo=$ac_try;;
14859 esac
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861   (eval "$ac_try") 2>&5
14862   ac_status=$?
14863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864   (exit $ac_status); }; } &&
14865          { ac_try='test -s conftest.$ac_objext'
14866   { (case "(($ac_try" in
14867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868   *) ac_try_echo=$ac_try;;
14869 esac
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871   (eval "$ac_try") 2>&5
14872   ac_status=$?
14873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874   (exit $ac_status); }; }; then
14875   ac_hi=$ac_mid; break
14876 else
14877   echo "$as_me: failed program was:" >&5
14878 sed 's/^/| /' conftest.$ac_ext >&5
14879
14880         ac_lo=`expr $ac_mid + 1`
14881                         if test $ac_lo -le $ac_mid; then
14882                           ac_lo= ac_hi=
14883                           break
14884                         fi
14885                         ac_mid=`expr 2 '*' $ac_mid + 1`
14886 fi
14887
14888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14889   done
14890 else
14891   echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14893
14894         cat >conftest.$ac_ext <<_ACEOF
14895 /* confdefs.h.  */
14896 _ACEOF
14897 cat confdefs.h >>conftest.$ac_ext
14898 cat >>conftest.$ac_ext <<_ACEOF
14899 /* end confdefs.h.  */
14900 $ac_includes_default
14901                    typedef int ac__type_sizeof_;
14902 int
14903 main ()
14904 {
14905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14906 test_array [0] = 0
14907
14908   ;
14909   return 0;
14910 }
14911 _ACEOF
14912 rm -f conftest.$ac_objext
14913 if { (ac_try="$ac_compile"
14914 case "(($ac_try" in
14915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916   *) ac_try_echo=$ac_try;;
14917 esac
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919   (eval "$ac_compile") 2>conftest.er1
14920   ac_status=$?
14921   grep -v '^ *+' conftest.er1 >conftest.err
14922   rm -f conftest.er1
14923   cat conftest.err >&5
14924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925   (exit $ac_status); } &&
14926          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14927   { (case "(($ac_try" in
14928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14929   *) ac_try_echo=$ac_try;;
14930 esac
14931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14932   (eval "$ac_try") 2>&5
14933   ac_status=$?
14934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935   (exit $ac_status); }; } &&
14936          { ac_try='test -s conftest.$ac_objext'
14937   { (case "(($ac_try" in
14938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14939   *) ac_try_echo=$ac_try;;
14940 esac
14941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14942   (eval "$ac_try") 2>&5
14943   ac_status=$?
14944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945   (exit $ac_status); }; }; then
14946   ac_hi=-1 ac_mid=-1
14947   while :; do
14948     cat >conftest.$ac_ext <<_ACEOF
14949 /* confdefs.h.  */
14950 _ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h.  */
14954 $ac_includes_default
14955                    typedef int ac__type_sizeof_;
14956 int
14957 main ()
14958 {
14959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14960 test_array [0] = 0
14961
14962   ;
14963   return 0;
14964 }
14965 _ACEOF
14966 rm -f conftest.$ac_objext
14967 if { (ac_try="$ac_compile"
14968 case "(($ac_try" in
14969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970   *) ac_try_echo=$ac_try;;
14971 esac
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973   (eval "$ac_compile") 2>conftest.er1
14974   ac_status=$?
14975   grep -v '^ *+' conftest.er1 >conftest.err
14976   rm -f conftest.er1
14977   cat conftest.err >&5
14978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979   (exit $ac_status); } &&
14980          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14981   { (case "(($ac_try" in
14982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983   *) ac_try_echo=$ac_try;;
14984 esac
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986   (eval "$ac_try") 2>&5
14987   ac_status=$?
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); }; } &&
14990          { ac_try='test -s conftest.$ac_objext'
14991   { (case "(($ac_try" in
14992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993   *) ac_try_echo=$ac_try;;
14994 esac
14995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996   (eval "$ac_try") 2>&5
14997   ac_status=$?
14998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); }; }; then
15000   ac_lo=$ac_mid; break
15001 else
15002   echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15004
15005         ac_hi=`expr '(' $ac_mid ')' - 1`
15006                         if test $ac_mid -le $ac_hi; then
15007                           ac_lo= ac_hi=
15008                           break
15009                         fi
15010                         ac_mid=`expr 2 '*' $ac_mid`
15011 fi
15012
15013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15014   done
15015 else
15016   echo "$as_me: failed program was:" >&5
15017 sed 's/^/| /' conftest.$ac_ext >&5
15018
15019         ac_lo= ac_hi=
15020 fi
15021
15022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15023 fi
15024
15025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15026 # Binary search between lo and hi bounds.
15027 while test "x$ac_lo" != "x$ac_hi"; do
15028   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15029   cat >conftest.$ac_ext <<_ACEOF
15030 /* confdefs.h.  */
15031 _ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h.  */
15035 $ac_includes_default
15036                    typedef int ac__type_sizeof_;
15037 int
15038 main ()
15039 {
15040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15041 test_array [0] = 0
15042
15043   ;
15044   return 0;
15045 }
15046 _ACEOF
15047 rm -f conftest.$ac_objext
15048 if { (ac_try="$ac_compile"
15049 case "(($ac_try" in
15050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051   *) ac_try_echo=$ac_try;;
15052 esac
15053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054   (eval "$ac_compile") 2>conftest.er1
15055   ac_status=$?
15056   grep -v '^ *+' conftest.er1 >conftest.err
15057   rm -f conftest.er1
15058   cat conftest.err >&5
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); } &&
15061          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15062   { (case "(($ac_try" in
15063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064   *) ac_try_echo=$ac_try;;
15065 esac
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067   (eval "$ac_try") 2>&5
15068   ac_status=$?
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); }; } &&
15071          { ac_try='test -s conftest.$ac_objext'
15072   { (case "(($ac_try" in
15073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074   *) ac_try_echo=$ac_try;;
15075 esac
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077   (eval "$ac_try") 2>&5
15078   ac_status=$?
15079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); }; }; then
15081   ac_hi=$ac_mid
15082 else
15083   echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15085
15086         ac_lo=`expr '(' $ac_mid ')' + 1`
15087 fi
15088
15089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15090 done
15091 case $ac_lo in
15092 ?*) ac_cv_sizeof_int=$ac_lo;;
15093 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15094 See \`config.log' for more details." >&5
15095 echo "$as_me: error: cannot compute sizeof (int)
15096 See \`config.log' for more details." >&2;}
15097    { (exit 77); exit 77; }; } ;;
15098 esac
15099 else
15100   cat >conftest.$ac_ext <<_ACEOF
15101 /* confdefs.h.  */
15102 _ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h.  */
15106 $ac_includes_default
15107                    typedef int ac__type_sizeof_;
15108 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15109 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15110 #include <stdio.h>
15111 #include <stdlib.h>
15112 int
15113 main ()
15114 {
15115
15116   FILE *f = fopen ("conftest.val", "w");
15117   if (! f)
15118     return 1;
15119   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15120     {
15121       long int i = longval ();
15122       if (i != ((long int) (sizeof (ac__type_sizeof_))))
15123         return 1;
15124       fprintf (f, "%ld\n", i);
15125     }
15126   else
15127     {
15128       unsigned long int i = ulongval ();
15129       if (i != ((long int) (sizeof (ac__type_sizeof_))))
15130         return 1;
15131       fprintf (f, "%lu\n", i);
15132     }
15133   return ferror (f) || fclose (f) != 0;
15134
15135   ;
15136   return 0;
15137 }
15138 _ACEOF
15139 rm -f conftest$ac_exeext
15140 if { (ac_try="$ac_link"
15141 case "(($ac_try" in
15142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143   *) ac_try_echo=$ac_try;;
15144 esac
15145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146   (eval "$ac_link") 2>&5
15147   ac_status=$?
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15150   { (case "(($ac_try" in
15151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15152   *) ac_try_echo=$ac_try;;
15153 esac
15154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15155   (eval "$ac_try") 2>&5
15156   ac_status=$?
15157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158   (exit $ac_status); }; }; then
15159   ac_cv_sizeof_int=`cat conftest.val`
15160 else
15161   echo "$as_me: program exited with status $ac_status" >&5
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15164
15165 ( exit $ac_status )
15166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15167 See \`config.log' for more details." >&5
15168 echo "$as_me: error: cannot compute sizeof (int)
15169 See \`config.log' for more details." >&2;}
15170    { (exit 77); exit 77; }; }
15171 fi
15172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15173 fi
15174 rm -f conftest.val
15175 else
15176   ac_cv_sizeof_int=0
15177 fi
15178 fi
15179 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15180 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15181 cat >>confdefs.h <<_ACEOF
15182 #define SIZEOF_INT $ac_cv_sizeof_int
15183 _ACEOF
15184
15185
15186 { echo "$as_me:$LINENO: checking for long" >&5
15187 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
15188 if test "${ac_cv_type_long+set}" = set; then
15189   echo $ECHO_N "(cached) $ECHO_C" >&6
15190 else
15191   cat >conftest.$ac_ext <<_ACEOF
15192 /* confdefs.h.  */
15193 _ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h.  */
15197 $ac_includes_default
15198 typedef long ac__type_new_;
15199 int
15200 main ()
15201 {
15202 if ((ac__type_new_ *) 0)
15203   return 0;
15204 if (sizeof (ac__type_new_))
15205   return 0;
15206   ;
15207   return 0;
15208 }
15209 _ACEOF
15210 rm -f conftest.$ac_objext
15211 if { (ac_try="$ac_compile"
15212 case "(($ac_try" in
15213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214   *) ac_try_echo=$ac_try;;
15215 esac
15216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15217   (eval "$ac_compile") 2>conftest.er1
15218   ac_status=$?
15219   grep -v '^ *+' conftest.er1 >conftest.err
15220   rm -f conftest.er1
15221   cat conftest.err >&5
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); } &&
15224          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15225   { (case "(($ac_try" in
15226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227   *) ac_try_echo=$ac_try;;
15228 esac
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230   (eval "$ac_try") 2>&5
15231   ac_status=$?
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); }; } &&
15234          { ac_try='test -s conftest.$ac_objext'
15235   { (case "(($ac_try" in
15236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237   *) ac_try_echo=$ac_try;;
15238 esac
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240   (eval "$ac_try") 2>&5
15241   ac_status=$?
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); }; }; then
15244   ac_cv_type_long=yes
15245 else
15246   echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15248
15249         ac_cv_type_long=no
15250 fi
15251
15252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15253 fi
15254 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15255 echo "${ECHO_T}$ac_cv_type_long" >&6; }
15256
15257 { echo "$as_me:$LINENO: checking size of long" >&5
15258 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
15259 if test "${ac_cv_sizeof_long+set}" = set; then
15260   echo $ECHO_N "(cached) $ECHO_C" >&6
15261 else
15262   if test "$ac_cv_type_long" = yes; then
15263   # The cast to long int works around a bug in the HP C Compiler
15264   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15265   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15266   # This bug is HP SR number 8606223364.
15267   if test "$cross_compiling" = yes; then
15268   # Depending upon the size, compute the lo and hi bounds.
15269 cat >conftest.$ac_ext <<_ACEOF
15270 /* confdefs.h.  */
15271 _ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h.  */
15275 $ac_includes_default
15276                    typedef long ac__type_sizeof_;
15277 int
15278 main ()
15279 {
15280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15281 test_array [0] = 0
15282
15283   ;
15284   return 0;
15285 }
15286 _ACEOF
15287 rm -f conftest.$ac_objext
15288 if { (ac_try="$ac_compile"
15289 case "(($ac_try" in
15290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291   *) ac_try_echo=$ac_try;;
15292 esac
15293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294   (eval "$ac_compile") 2>conftest.er1
15295   ac_status=$?
15296   grep -v '^ *+' conftest.er1 >conftest.err
15297   rm -f conftest.er1
15298   cat conftest.err >&5
15299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300   (exit $ac_status); } &&
15301          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15302   { (case "(($ac_try" in
15303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304   *) ac_try_echo=$ac_try;;
15305 esac
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307   (eval "$ac_try") 2>&5
15308   ac_status=$?
15309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); }; } &&
15311          { ac_try='test -s conftest.$ac_objext'
15312   { (case "(($ac_try" in
15313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314   *) ac_try_echo=$ac_try;;
15315 esac
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317   (eval "$ac_try") 2>&5
15318   ac_status=$?
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); }; }; then
15321   ac_lo=0 ac_mid=0
15322   while :; do
15323     cat >conftest.$ac_ext <<_ACEOF
15324 /* confdefs.h.  */
15325 _ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h.  */
15329 $ac_includes_default
15330                    typedef long ac__type_sizeof_;
15331 int
15332 main ()
15333 {
15334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15335 test_array [0] = 0
15336
15337   ;
15338   return 0;
15339 }
15340 _ACEOF
15341 rm -f conftest.$ac_objext
15342 if { (ac_try="$ac_compile"
15343 case "(($ac_try" in
15344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345   *) ac_try_echo=$ac_try;;
15346 esac
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348   (eval "$ac_compile") 2>conftest.er1
15349   ac_status=$?
15350   grep -v '^ *+' conftest.er1 >conftest.err
15351   rm -f conftest.er1
15352   cat conftest.err >&5
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); } &&
15355          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15356   { (case "(($ac_try" in
15357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358   *) ac_try_echo=$ac_try;;
15359 esac
15360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15361   (eval "$ac_try") 2>&5
15362   ac_status=$?
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); }; } &&
15365          { ac_try='test -s conftest.$ac_objext'
15366   { (case "(($ac_try" in
15367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368   *) ac_try_echo=$ac_try;;
15369 esac
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371   (eval "$ac_try") 2>&5
15372   ac_status=$?
15373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); }; }; then
15375   ac_hi=$ac_mid; break
15376 else
15377   echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15379
15380         ac_lo=`expr $ac_mid + 1`
15381                         if test $ac_lo -le $ac_mid; then
15382                           ac_lo= ac_hi=
15383                           break
15384                         fi
15385                         ac_mid=`expr 2 '*' $ac_mid + 1`
15386 fi
15387
15388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15389   done
15390 else
15391   echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15393
15394         cat >conftest.$ac_ext <<_ACEOF
15395 /* confdefs.h.  */
15396 _ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h.  */
15400 $ac_includes_default
15401                    typedef long ac__type_sizeof_;
15402 int
15403 main ()
15404 {
15405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15406 test_array [0] = 0
15407
15408   ;
15409   return 0;
15410 }
15411 _ACEOF
15412 rm -f conftest.$ac_objext
15413 if { (ac_try="$ac_compile"
15414 case "(($ac_try" in
15415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416   *) ac_try_echo=$ac_try;;
15417 esac
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419   (eval "$ac_compile") 2>conftest.er1
15420   ac_status=$?
15421   grep -v '^ *+' conftest.er1 >conftest.err
15422   rm -f conftest.er1
15423   cat conftest.err >&5
15424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425   (exit $ac_status); } &&
15426          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15427   { (case "(($ac_try" in
15428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429   *) ac_try_echo=$ac_try;;
15430 esac
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432   (eval "$ac_try") 2>&5
15433   ac_status=$?
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); }; } &&
15436          { ac_try='test -s conftest.$ac_objext'
15437   { (case "(($ac_try" in
15438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15439   *) ac_try_echo=$ac_try;;
15440 esac
15441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15442   (eval "$ac_try") 2>&5
15443   ac_status=$?
15444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445   (exit $ac_status); }; }; then
15446   ac_hi=-1 ac_mid=-1
15447   while :; do
15448     cat >conftest.$ac_ext <<_ACEOF
15449 /* confdefs.h.  */
15450 _ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h.  */
15454 $ac_includes_default
15455                    typedef long ac__type_sizeof_;
15456 int
15457 main ()
15458 {
15459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15460 test_array [0] = 0
15461
15462   ;
15463   return 0;
15464 }
15465 _ACEOF
15466 rm -f conftest.$ac_objext
15467 if { (ac_try="$ac_compile"
15468 case "(($ac_try" in
15469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470   *) ac_try_echo=$ac_try;;
15471 esac
15472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473   (eval "$ac_compile") 2>conftest.er1
15474   ac_status=$?
15475   grep -v '^ *+' conftest.er1 >conftest.err
15476   rm -f conftest.er1
15477   cat conftest.err >&5
15478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479   (exit $ac_status); } &&
15480          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15481   { (case "(($ac_try" in
15482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483   *) ac_try_echo=$ac_try;;
15484 esac
15485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486   (eval "$ac_try") 2>&5
15487   ac_status=$?
15488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489   (exit $ac_status); }; } &&
15490          { ac_try='test -s conftest.$ac_objext'
15491   { (case "(($ac_try" in
15492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493   *) ac_try_echo=$ac_try;;
15494 esac
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496   (eval "$ac_try") 2>&5
15497   ac_status=$?
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); }; }; then
15500   ac_lo=$ac_mid; break
15501 else
15502   echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15504
15505         ac_hi=`expr '(' $ac_mid ')' - 1`
15506                         if test $ac_mid -le $ac_hi; then
15507                           ac_lo= ac_hi=
15508                           break
15509                         fi
15510                         ac_mid=`expr 2 '*' $ac_mid`
15511 fi
15512
15513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15514   done
15515 else
15516   echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15518
15519         ac_lo= ac_hi=
15520 fi
15521
15522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15523 fi
15524
15525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15526 # Binary search between lo and hi bounds.
15527 while test "x$ac_lo" != "x$ac_hi"; do
15528   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15529   cat >conftest.$ac_ext <<_ACEOF
15530 /* confdefs.h.  */
15531 _ACEOF
15532 cat confdefs.h >>conftest.$ac_ext
15533 cat >>conftest.$ac_ext <<_ACEOF
15534 /* end confdefs.h.  */
15535 $ac_includes_default
15536                    typedef long ac__type_sizeof_;
15537 int
15538 main ()
15539 {
15540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15541 test_array [0] = 0
15542
15543   ;
15544   return 0;
15545 }
15546 _ACEOF
15547 rm -f conftest.$ac_objext
15548 if { (ac_try="$ac_compile"
15549 case "(($ac_try" in
15550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551   *) ac_try_echo=$ac_try;;
15552 esac
15553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554   (eval "$ac_compile") 2>conftest.er1
15555   ac_status=$?
15556   grep -v '^ *+' conftest.er1 >conftest.err
15557   rm -f conftest.er1
15558   cat conftest.err >&5
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); } &&
15561          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15562   { (case "(($ac_try" in
15563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564   *) ac_try_echo=$ac_try;;
15565 esac
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567   (eval "$ac_try") 2>&5
15568   ac_status=$?
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); }; } &&
15571          { ac_try='test -s conftest.$ac_objext'
15572   { (case "(($ac_try" in
15573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574   *) ac_try_echo=$ac_try;;
15575 esac
15576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577   (eval "$ac_try") 2>&5
15578   ac_status=$?
15579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580   (exit $ac_status); }; }; then
15581   ac_hi=$ac_mid
15582 else
15583   echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15585
15586         ac_lo=`expr '(' $ac_mid ')' + 1`
15587 fi
15588
15589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15590 done
15591 case $ac_lo in
15592 ?*) ac_cv_sizeof_long=$ac_lo;;
15593 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
15594 See \`config.log' for more details." >&5
15595 echo "$as_me: error: cannot compute sizeof (long)
15596 See \`config.log' for more details." >&2;}
15597    { (exit 77); exit 77; }; } ;;
15598 esac
15599 else
15600   cat >conftest.$ac_ext <<_ACEOF
15601 /* confdefs.h.  */
15602 _ACEOF
15603 cat confdefs.h >>conftest.$ac_ext
15604 cat >>conftest.$ac_ext <<_ACEOF
15605 /* end confdefs.h.  */
15606 $ac_includes_default
15607                    typedef long ac__type_sizeof_;
15608 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15609 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15610 #include <stdio.h>
15611 #include <stdlib.h>
15612 int
15613 main ()
15614 {
15615
15616   FILE *f = fopen ("conftest.val", "w");
15617   if (! f)
15618     return 1;
15619   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15620     {
15621       long int i = longval ();
15622       if (i != ((long int) (sizeof (ac__type_sizeof_))))
15623         return 1;
15624       fprintf (f, "%ld\n", i);
15625     }
15626   else
15627     {
15628       unsigned long int i = ulongval ();
15629       if (i != ((long int) (sizeof (ac__type_sizeof_))))
15630         return 1;
15631       fprintf (f, "%lu\n", i);
15632     }
15633   return ferror (f) || fclose (f) != 0;
15634
15635   ;
15636   return 0;
15637 }
15638 _ACEOF
15639 rm -f conftest$ac_exeext
15640 if { (ac_try="$ac_link"
15641 case "(($ac_try" in
15642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643   *) ac_try_echo=$ac_try;;
15644 esac
15645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646   (eval "$ac_link") 2>&5
15647   ac_status=$?
15648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15650   { (case "(($ac_try" in
15651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652   *) ac_try_echo=$ac_try;;
15653 esac
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655   (eval "$ac_try") 2>&5
15656   ac_status=$?
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); }; }; then
15659   ac_cv_sizeof_long=`cat conftest.val`
15660 else
15661   echo "$as_me: program exited with status $ac_status" >&5
15662 echo "$as_me: failed program was:" >&5
15663 sed 's/^/| /' conftest.$ac_ext >&5
15664
15665 ( exit $ac_status )
15666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
15667 See \`config.log' for more details." >&5
15668 echo "$as_me: error: cannot compute sizeof (long)
15669 See \`config.log' for more details." >&2;}
15670    { (exit 77); exit 77; }; }
15671 fi
15672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15673 fi
15674 rm -f conftest.val
15675 else
15676   ac_cv_sizeof_long=0
15677 fi
15678 fi
15679 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15680 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
15681 cat >>confdefs.h <<_ACEOF
15682 #define SIZEOF_LONG $ac_cv_sizeof_long
15683 _ACEOF
15684
15685
15686 { echo "$as_me:$LINENO: checking for long long" >&5
15687 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
15688 if test "${ac_cv_type_long_long+set}" = set; then
15689   echo $ECHO_N "(cached) $ECHO_C" >&6
15690 else
15691   cat >conftest.$ac_ext <<_ACEOF
15692 /* confdefs.h.  */
15693 _ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h.  */
15697 $ac_includes_default
15698 typedef long long ac__type_new_;
15699 int
15700 main ()
15701 {
15702 if ((ac__type_new_ *) 0)
15703   return 0;
15704 if (sizeof (ac__type_new_))
15705   return 0;
15706   ;
15707   return 0;
15708 }
15709 _ACEOF
15710 rm -f conftest.$ac_objext
15711 if { (ac_try="$ac_compile"
15712 case "(($ac_try" in
15713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15714   *) ac_try_echo=$ac_try;;
15715 esac
15716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15717   (eval "$ac_compile") 2>conftest.er1
15718   ac_status=$?
15719   grep -v '^ *+' conftest.er1 >conftest.err
15720   rm -f conftest.er1
15721   cat conftest.err >&5
15722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723   (exit $ac_status); } &&
15724          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15725   { (case "(($ac_try" in
15726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727   *) ac_try_echo=$ac_try;;
15728 esac
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730   (eval "$ac_try") 2>&5
15731   ac_status=$?
15732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733   (exit $ac_status); }; } &&
15734          { ac_try='test -s conftest.$ac_objext'
15735   { (case "(($ac_try" in
15736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737   *) ac_try_echo=$ac_try;;
15738 esac
15739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740   (eval "$ac_try") 2>&5
15741   ac_status=$?
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); }; }; then
15744   ac_cv_type_long_long=yes
15745 else
15746   echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15748
15749         ac_cv_type_long_long=no
15750 fi
15751
15752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15753 fi
15754 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15755 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
15756
15757 { echo "$as_me:$LINENO: checking size of long long" >&5
15758 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
15759 if test "${ac_cv_sizeof_long_long+set}" = set; then
15760   echo $ECHO_N "(cached) $ECHO_C" >&6
15761 else
15762   if test "$ac_cv_type_long_long" = yes; then
15763   # The cast to long int works around a bug in the HP C Compiler
15764   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15765   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15766   # This bug is HP SR number 8606223364.
15767   if test "$cross_compiling" = yes; then
15768   # Depending upon the size, compute the lo and hi bounds.
15769 cat >conftest.$ac_ext <<_ACEOF
15770 /* confdefs.h.  */
15771 _ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h.  */
15775 $ac_includes_default
15776                    typedef long long ac__type_sizeof_;
15777 int
15778 main ()
15779 {
15780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15781 test_array [0] = 0
15782
15783   ;
15784   return 0;
15785 }
15786 _ACEOF
15787 rm -f conftest.$ac_objext
15788 if { (ac_try="$ac_compile"
15789 case "(($ac_try" in
15790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791   *) ac_try_echo=$ac_try;;
15792 esac
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794   (eval "$ac_compile") 2>conftest.er1
15795   ac_status=$?
15796   grep -v '^ *+' conftest.er1 >conftest.err
15797   rm -f conftest.er1
15798   cat conftest.err >&5
15799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); } &&
15801          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15802   { (case "(($ac_try" in
15803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804   *) ac_try_echo=$ac_try;;
15805 esac
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807   (eval "$ac_try") 2>&5
15808   ac_status=$?
15809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810   (exit $ac_status); }; } &&
15811          { ac_try='test -s conftest.$ac_objext'
15812   { (case "(($ac_try" in
15813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814   *) ac_try_echo=$ac_try;;
15815 esac
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817   (eval "$ac_try") 2>&5
15818   ac_status=$?
15819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820   (exit $ac_status); }; }; then
15821   ac_lo=0 ac_mid=0
15822   while :; do
15823     cat >conftest.$ac_ext <<_ACEOF
15824 /* confdefs.h.  */
15825 _ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h.  */
15829 $ac_includes_default
15830                    typedef long long ac__type_sizeof_;
15831 int
15832 main ()
15833 {
15834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15835 test_array [0] = 0
15836
15837   ;
15838   return 0;
15839 }
15840 _ACEOF
15841 rm -f conftest.$ac_objext
15842 if { (ac_try="$ac_compile"
15843 case "(($ac_try" in
15844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845   *) ac_try_echo=$ac_try;;
15846 esac
15847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848   (eval "$ac_compile") 2>conftest.er1
15849   ac_status=$?
15850   grep -v '^ *+' conftest.er1 >conftest.err
15851   rm -f conftest.er1
15852   cat conftest.err >&5
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); } &&
15855          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15856   { (case "(($ac_try" in
15857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858   *) ac_try_echo=$ac_try;;
15859 esac
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861   (eval "$ac_try") 2>&5
15862   ac_status=$?
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); }; } &&
15865          { ac_try='test -s conftest.$ac_objext'
15866   { (case "(($ac_try" in
15867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868   *) ac_try_echo=$ac_try;;
15869 esac
15870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871   (eval "$ac_try") 2>&5
15872   ac_status=$?
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); }; }; then
15875   ac_hi=$ac_mid; break
15876 else
15877   echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15879
15880         ac_lo=`expr $ac_mid + 1`
15881                         if test $ac_lo -le $ac_mid; then
15882                           ac_lo= ac_hi=
15883                           break
15884                         fi
15885                         ac_mid=`expr 2 '*' $ac_mid + 1`
15886 fi
15887
15888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15889   done
15890 else
15891   echo "$as_me: failed program was:" >&5
15892 sed 's/^/| /' conftest.$ac_ext >&5
15893
15894         cat >conftest.$ac_ext <<_ACEOF
15895 /* confdefs.h.  */
15896 _ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h.  */
15900 $ac_includes_default
15901                    typedef long long ac__type_sizeof_;
15902 int
15903 main ()
15904 {
15905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15906 test_array [0] = 0
15907
15908   ;
15909   return 0;
15910 }
15911 _ACEOF
15912 rm -f conftest.$ac_objext
15913 if { (ac_try="$ac_compile"
15914 case "(($ac_try" in
15915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916   *) ac_try_echo=$ac_try;;
15917 esac
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919   (eval "$ac_compile") 2>conftest.er1
15920   ac_status=$?
15921   grep -v '^ *+' conftest.er1 >conftest.err
15922   rm -f conftest.er1
15923   cat conftest.err >&5
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); } &&
15926          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15927   { (case "(($ac_try" in
15928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15929   *) ac_try_echo=$ac_try;;
15930 esac
15931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15932   (eval "$ac_try") 2>&5
15933   ac_status=$?
15934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935   (exit $ac_status); }; } &&
15936          { ac_try='test -s conftest.$ac_objext'
15937   { (case "(($ac_try" in
15938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939   *) ac_try_echo=$ac_try;;
15940 esac
15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942   (eval "$ac_try") 2>&5
15943   ac_status=$?
15944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945   (exit $ac_status); }; }; then
15946   ac_hi=-1 ac_mid=-1
15947   while :; do
15948     cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h.  */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h.  */
15954 $ac_includes_default
15955                    typedef long long ac__type_sizeof_;
15956 int
15957 main ()
15958 {
15959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15960 test_array [0] = 0
15961
15962   ;
15963   return 0;
15964 }
15965 _ACEOF
15966 rm -f conftest.$ac_objext
15967 if { (ac_try="$ac_compile"
15968 case "(($ac_try" in
15969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15970   *) ac_try_echo=$ac_try;;
15971 esac
15972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15973   (eval "$ac_compile") 2>conftest.er1
15974   ac_status=$?
15975   grep -v '^ *+' conftest.er1 >conftest.err
15976   rm -f conftest.er1
15977   cat conftest.err >&5
15978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979   (exit $ac_status); } &&
15980          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15981   { (case "(($ac_try" in
15982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983   *) ac_try_echo=$ac_try;;
15984 esac
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986   (eval "$ac_try") 2>&5
15987   ac_status=$?
15988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989   (exit $ac_status); }; } &&
15990          { ac_try='test -s conftest.$ac_objext'
15991   { (case "(($ac_try" in
15992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993   *) ac_try_echo=$ac_try;;
15994 esac
15995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996   (eval "$ac_try") 2>&5
15997   ac_status=$?
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); }; }; then
16000   ac_lo=$ac_mid; break
16001 else
16002   echo "$as_me: failed program was:" >&5
16003 sed 's/^/| /' conftest.$ac_ext >&5
16004
16005         ac_hi=`expr '(' $ac_mid ')' - 1`
16006                         if test $ac_mid -le $ac_hi; then
16007                           ac_lo= ac_hi=
16008                           break
16009                         fi
16010                         ac_mid=`expr 2 '*' $ac_mid`
16011 fi
16012
16013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16014   done
16015 else
16016   echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16018
16019         ac_lo= ac_hi=
16020 fi
16021
16022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16023 fi
16024
16025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16026 # Binary search between lo and hi bounds.
16027 while test "x$ac_lo" != "x$ac_hi"; do
16028   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16029   cat >conftest.$ac_ext <<_ACEOF
16030 /* confdefs.h.  */
16031 _ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h.  */
16035 $ac_includes_default
16036                    typedef long long ac__type_sizeof_;
16037 int
16038 main ()
16039 {
16040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16041 test_array [0] = 0
16042
16043   ;
16044   return 0;
16045 }
16046 _ACEOF
16047 rm -f conftest.$ac_objext
16048 if { (ac_try="$ac_compile"
16049 case "(($ac_try" in
16050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051   *) ac_try_echo=$ac_try;;
16052 esac
16053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054   (eval "$ac_compile") 2>conftest.er1
16055   ac_status=$?
16056   grep -v '^ *+' conftest.er1 >conftest.err
16057   rm -f conftest.er1
16058   cat conftest.err >&5
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); } &&
16061          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16062   { (case "(($ac_try" in
16063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064   *) ac_try_echo=$ac_try;;
16065 esac
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067   (eval "$ac_try") 2>&5
16068   ac_status=$?
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); }; } &&
16071          { ac_try='test -s conftest.$ac_objext'
16072   { (case "(($ac_try" in
16073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074   *) ac_try_echo=$ac_try;;
16075 esac
16076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077   (eval "$ac_try") 2>&5
16078   ac_status=$?
16079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); }; }; then
16081   ac_hi=$ac_mid
16082 else
16083   echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16085
16086         ac_lo=`expr '(' $ac_mid ')' + 1`
16087 fi
16088
16089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16090 done
16091 case $ac_lo in
16092 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16093 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
16094 See \`config.log' for more details." >&5
16095 echo "$as_me: error: cannot compute sizeof (long long)
16096 See \`config.log' for more details." >&2;}
16097    { (exit 77); exit 77; }; } ;;
16098 esac
16099 else
16100   cat >conftest.$ac_ext <<_ACEOF
16101 /* confdefs.h.  */
16102 _ACEOF
16103 cat confdefs.h >>conftest.$ac_ext
16104 cat >>conftest.$ac_ext <<_ACEOF
16105 /* end confdefs.h.  */
16106 $ac_includes_default
16107                    typedef long long ac__type_sizeof_;
16108 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16109 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16110 #include <stdio.h>
16111 #include <stdlib.h>
16112 int
16113 main ()
16114 {
16115
16116   FILE *f = fopen ("conftest.val", "w");
16117   if (! f)
16118     return 1;
16119   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16120     {
16121       long int i = longval ();
16122       if (i != ((long int) (sizeof (ac__type_sizeof_))))
16123         return 1;
16124       fprintf (f, "%ld\n", i);
16125     }
16126   else
16127     {
16128       unsigned long int i = ulongval ();
16129       if (i != ((long int) (sizeof (ac__type_sizeof_))))
16130         return 1;
16131       fprintf (f, "%lu\n", i);
16132     }
16133   return ferror (f) || fclose (f) != 0;
16134
16135   ;
16136   return 0;
16137 }
16138 _ACEOF
16139 rm -f conftest$ac_exeext
16140 if { (ac_try="$ac_link"
16141 case "(($ac_try" in
16142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16143   *) ac_try_echo=$ac_try;;
16144 esac
16145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16146   (eval "$ac_link") 2>&5
16147   ac_status=$?
16148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16150   { (case "(($ac_try" in
16151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152   *) ac_try_echo=$ac_try;;
16153 esac
16154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16155   (eval "$ac_try") 2>&5
16156   ac_status=$?
16157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158   (exit $ac_status); }; }; then
16159   ac_cv_sizeof_long_long=`cat conftest.val`
16160 else
16161   echo "$as_me: program exited with status $ac_status" >&5
16162 echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16164
16165 ( exit $ac_status )
16166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
16167 See \`config.log' for more details." >&5
16168 echo "$as_me: error: cannot compute sizeof (long long)
16169 See \`config.log' for more details." >&2;}
16170    { (exit 77); exit 77; }; }
16171 fi
16172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16173 fi
16174 rm -f conftest.val
16175 else
16176   ac_cv_sizeof_long_long=0
16177 fi
16178 fi
16179 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16180 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
16181 cat >>confdefs.h <<_ACEOF
16182 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16183 _ACEOF
16184
16185
16186 else
16187     if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
16188         ac_cv_sizeof_char=1
16189         ac_cv_sizeof_short=2
16190         ac_cv_sizeof_int=4
16191         ac_cv_sizeof_long=4
16192         ac_cv_sizeof_long_long=4
16193     else
16194         : # FIXME
16195     fi
16196 #echo
16197 fi
16198
16199 type_name()
16200 {
16201     if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
16202         echo "char"
16203         exit
16204     fi
16205     if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
16206         echo "short"
16207         exit
16208     fi
16209     if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
16210         echo "int"
16211         exit
16212     fi
16213     if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
16214         echo "long"
16215         exit
16216     fi
16217     if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
16218         echo "long long"
16219         exit
16220     fi
16221     echo "long long"
16222 }
16223
16224 { echo "$as_me:$LINENO: checking type name for byte" >&5
16225 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6; }
16226 TYPE_BYTE=`type_name 1`
16227 { echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
16228 echo "${ECHO_T}$TYPE_BYTE" >&6; }
16229 { echo "$as_me:$LINENO: checking type name for word" >&5
16230 echo $ECHO_N "checking type name for word... $ECHO_C" >&6; }
16231 TYPE_WORD=`type_name 2`
16232 { echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
16233 echo "${ECHO_T}$TYPE_WORD" >&6; }
16234 { echo "$as_me:$LINENO: checking type name for dword" >&5
16235 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6; }
16236 TYPE_DWORD=`type_name 4`
16237 { echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
16238 echo "${ECHO_T}$TYPE_DWORD" >&6; }
16239 cat >>confdefs.h <<_ACEOF
16240 #define TYPE_BYTE $TYPE_BYTE
16241 _ACEOF
16242
16243 cat >>confdefs.h <<_ACEOF
16244 #define TYPE_WORD $TYPE_WORD
16245 _ACEOF
16246
16247 cat >>confdefs.h <<_ACEOF
16248 #define TYPE_DWORD $TYPE_DWORD
16249 _ACEOF
16250
16251
16252 if echo $TYPE_DWORD|grep short >/dev/null; then
16253     A="h"
16254 elif echo $TYPE_DWORD|grep long >/dev/null; then
16255     A="l"
16256 else
16257     A=""
16258 fi
16259
16260 if echo $TYPE_WORD|grep short >/dev/null; then M="h"
16261 elif echo $TYPE_WORD|grep long >/dev/null; then M="l"
16262 else M=""
16263 fi
16264
16265 cat >>confdefs.h <<_ACEOF
16266 #define _A_ "${A}"
16267 _ACEOF
16268
16269 cat >>confdefs.h <<_ACEOF
16270 #define _M_ "${M}"
16271 _ACEOF
16272
16273
16274 # Generating output files
16275 # ===========================================================================
16276
16277 ac_config_files="$ac_config_files Makefile 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"
16278
16279 cat >confcache <<\_ACEOF
16280 # This file is a shell script that caches the results of configure
16281 # tests run on this system so they can be shared between configure
16282 # scripts and configure runs, see configure's option --config-cache.
16283 # It is not useful on other systems.  If it contains results you don't
16284 # want to keep, you may remove or edit it.
16285 #
16286 # config.status only pays attention to the cache file if you give it
16287 # the --recheck option to rerun configure.
16288 #
16289 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16290 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16291 # following values.
16292
16293 _ACEOF
16294
16295 # The following way of writing the cache mishandles newlines in values,
16296 # but we know of no workaround that is simple, portable, and efficient.
16297 # So, we kill variables containing newlines.
16298 # Ultrix sh set writes to stderr and can't be redirected directly,
16299 # and sets the high bit in the cache file unless we assign to the vars.
16300 (
16301   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16302     eval ac_val=\$$ac_var
16303     case $ac_val in #(
16304     *${as_nl}*)
16305       case $ac_var in #(
16306       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16307 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16308       esac
16309       case $ac_var in #(
16310       _ | IFS | as_nl) ;; #(
16311       *) $as_unset $ac_var ;;
16312       esac ;;
16313     esac
16314   done
16315
16316   (set) 2>&1 |
16317     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16318     *${as_nl}ac_space=\ *)
16319       # `set' does not quote correctly, so add quotes (double-quote
16320       # substitution turns \\\\ into \\, and sed turns \\ into \).
16321       sed -n \
16322         "s/'/'\\\\''/g;
16323           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16324       ;; #(
16325     *)
16326       # `set' quotes correctly as required by POSIX, so do not add quotes.
16327       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16328       ;;
16329     esac |
16330     sort
16331 ) |
16332   sed '
16333      /^ac_cv_env_/b end
16334      t clear
16335      :clear
16336      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16337      t end
16338      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16339      :end' >>confcache
16340 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16341   if test -w "$cache_file"; then
16342     test "x$cache_file" != "x/dev/null" &&
16343       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16344 echo "$as_me: updating cache $cache_file" >&6;}
16345     cat confcache >$cache_file
16346   else
16347     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16348 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16349   fi
16350 fi
16351 rm -f confcache
16352
16353 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16354 # Let make expand exec_prefix.
16355 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16356
16357 DEFS=-DHAVE_CONFIG_H
16358
16359 ac_libobjs=
16360 ac_ltlibobjs=
16361 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16362   # 1. Remove the extension, and $U if already installed.
16363   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16364   ac_i=`echo "$ac_i" | sed "$ac_script"`
16365   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16366   #    will be set to the directory where LIBOBJS objects are built.
16367   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16368   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16369 done
16370 LIBOBJS=$ac_libobjs
16371
16372 LTLIBOBJS=$ac_ltlibobjs
16373
16374
16375
16376 : ${CONFIG_STATUS=./config.status}
16377 ac_clean_files_save=$ac_clean_files
16378 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16379 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16380 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16381 cat >$CONFIG_STATUS <<_ACEOF
16382 #! $SHELL
16383 # Generated by $as_me.
16384 # Run this file to recreate the current configuration.
16385 # Compiler output produced by configure, useful for debugging
16386 # configure, is in config.log if it exists.
16387
16388 debug=false
16389 ac_cs_recheck=false
16390 ac_cs_silent=false
16391 SHELL=\${CONFIG_SHELL-$SHELL}
16392 _ACEOF
16393
16394 cat >>$CONFIG_STATUS <<\_ACEOF
16395 ## --------------------- ##
16396 ## M4sh Initialization.  ##
16397 ## --------------------- ##
16398
16399 # Be Bourne compatible
16400 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16401   emulate sh
16402   NULLCMD=:
16403   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16404   # is contrary to our usage.  Disable this feature.
16405   alias -g '${1+"$@"}'='"$@"'
16406   setopt NO_GLOB_SUBST
16407 else
16408   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
16409 fi
16410 BIN_SH=xpg4; export BIN_SH # for Tru64
16411 DUALCASE=1; export DUALCASE # for MKS sh
16412
16413
16414 # PATH needs CR
16415 # Avoid depending upon Character Ranges.
16416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16419 as_cr_digits='0123456789'
16420 as_cr_alnum=$as_cr_Letters$as_cr_digits
16421
16422 # The user is always right.
16423 if test "${PATH_SEPARATOR+set}" != set; then
16424   echo "#! /bin/sh" >conf$$.sh
16425   echo  "exit 0"   >>conf$$.sh
16426   chmod +x conf$$.sh
16427   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16428     PATH_SEPARATOR=';'
16429   else
16430     PATH_SEPARATOR=:
16431   fi
16432   rm -f conf$$.sh
16433 fi
16434
16435 # Support unset when possible.
16436 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16437   as_unset=unset
16438 else
16439   as_unset=false
16440 fi
16441
16442
16443 # IFS
16444 # We need space, tab and new line, in precisely that order.  Quoting is
16445 # there to prevent editors from complaining about space-tab.
16446 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16447 # splitting by setting IFS to empty value.)
16448 as_nl='
16449 '
16450 IFS=" ""        $as_nl"
16451
16452 # Find who we are.  Look in the path if we contain no directory separator.
16453 case $0 in
16454   *[\\/]* ) as_myself=$0 ;;
16455   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16456 for as_dir in $PATH
16457 do
16458   IFS=$as_save_IFS
16459   test -z "$as_dir" && as_dir=.
16460   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16461 done
16462 IFS=$as_save_IFS
16463
16464      ;;
16465 esac
16466 # We did not find ourselves, most probably we were run as `sh COMMAND'
16467 # in which case we are not to be found in the path.
16468 if test "x$as_myself" = x; then
16469   as_myself=$0
16470 fi
16471 if test ! -f "$as_myself"; then
16472   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16473   { (exit 1); exit 1; }
16474 fi
16475
16476 # Work around bugs in pre-3.0 UWIN ksh.
16477 for as_var in ENV MAIL MAILPATH
16478 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16479 done
16480 PS1='$ '
16481 PS2='> '
16482 PS4='+ '
16483
16484 # NLS nuisances.
16485 for as_var in \
16486   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16487   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16488   LC_TELEPHONE LC_TIME
16489 do
16490   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16491     eval $as_var=C; export $as_var
16492   else
16493     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16494   fi
16495 done
16496
16497 # Required to use basename.
16498 if expr a : '\(a\)' >/dev/null 2>&1 &&
16499    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16500   as_expr=expr
16501 else
16502   as_expr=false
16503 fi
16504
16505 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16506   as_basename=basename
16507 else
16508   as_basename=false
16509 fi
16510
16511
16512 # Name of the executable.
16513 as_me=`$as_basename -- "$0" ||
16514 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16515          X"$0" : 'X\(//\)$' \| \
16516          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16517 echo X/"$0" |
16518     sed '/^.*\/\([^/][^/]*\)\/*$/{
16519             s//\1/
16520             q
16521           }
16522           /^X\/\(\/\/\)$/{
16523             s//\1/
16524             q
16525           }
16526           /^X\/\(\/\).*/{
16527             s//\1/
16528             q
16529           }
16530           s/.*/./; q'`
16531
16532 # CDPATH.
16533 $as_unset CDPATH
16534
16535
16536
16537   as_lineno_1=$LINENO
16538   as_lineno_2=$LINENO
16539   test "x$as_lineno_1" != "x$as_lineno_2" &&
16540   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16541
16542   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16543   # uniformly replaced by the line number.  The first 'sed' inserts a
16544   # line-number line after each line using $LINENO; the second 'sed'
16545   # does the real work.  The second script uses 'N' to pair each
16546   # line-number line with the line containing $LINENO, and appends
16547   # trailing '-' during substitution so that $LINENO is not a special
16548   # case at line end.
16549   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16550   # scripts with optimization help from Paolo Bonzini.  Blame Lee
16551   # E. McMahon (1931-1989) for sed's syntax.  :-)
16552   sed -n '
16553     p
16554     /[$]LINENO/=
16555   ' <$as_myself |
16556     sed '
16557       s/[$]LINENO.*/&-/
16558       t lineno
16559       b
16560       :lineno
16561       N
16562       :loop
16563       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16564       t loop
16565       s/-\n.*//
16566     ' >$as_me.lineno &&
16567   chmod +x "$as_me.lineno" ||
16568     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16569    { (exit 1); exit 1; }; }
16570
16571   # Don't try to exec as it changes $[0], causing all sort of problems
16572   # (the dirname of $[0] is not the place where we might find the
16573   # original and so on.  Autoconf is especially sensitive to this).
16574   . "./$as_me.lineno"
16575   # Exit status is that of the last command.
16576   exit
16577 }
16578
16579
16580 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16581   as_dirname=dirname
16582 else
16583   as_dirname=false
16584 fi
16585
16586 ECHO_C= ECHO_N= ECHO_T=
16587 case `echo -n x` in
16588 -n*)
16589   case `echo 'x\c'` in
16590   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16591   *)   ECHO_C='\c';;
16592   esac;;
16593 *)
16594   ECHO_N='-n';;
16595 esac
16596
16597 if expr a : '\(a\)' >/dev/null 2>&1 &&
16598    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16599   as_expr=expr
16600 else
16601   as_expr=false
16602 fi
16603
16604 rm -f conf$$ conf$$.exe conf$$.file
16605 if test -d conf$$.dir; then
16606   rm -f conf$$.dir/conf$$.file
16607 else
16608   rm -f conf$$.dir
16609   mkdir conf$$.dir
16610 fi
16611 echo >conf$$.file
16612 if ln -s conf$$.file conf$$ 2>/dev/null; then
16613   as_ln_s='ln -s'
16614   # ... but there are two gotchas:
16615   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16616   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16617   # In both cases, we have to default to `cp -p'.
16618   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16619     as_ln_s='cp -p'
16620 elif ln conf$$.file conf$$ 2>/dev/null; then
16621   as_ln_s=ln
16622 else
16623   as_ln_s='cp -p'
16624 fi
16625 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16626 rmdir conf$$.dir 2>/dev/null
16627
16628 if mkdir -p . 2>/dev/null; then
16629   as_mkdir_p=:
16630 else
16631   test -d ./-p && rmdir ./-p
16632   as_mkdir_p=false
16633 fi
16634
16635 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
16636 # systems may use methods other than mode bits to determine executability.
16637 cat >conf$$.file <<_ASEOF
16638 #! /bin/sh
16639 exit 0
16640 _ASEOF
16641 chmod +x conf$$.file
16642 if test -x conf$$.file >/dev/null 2>&1; then
16643   as_executable_p="test -x"
16644 else
16645   as_executable_p=:
16646 fi
16647 rm -f conf$$.file
16648
16649 # Sed expression to map a string onto a valid CPP name.
16650 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16651
16652 # Sed expression to map a string onto a valid variable name.
16653 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16654
16655
16656 exec 6>&1
16657
16658 # Save the log message, to keep $[0] and so on meaningful, and to
16659 # report actual input values of CONFIG_FILES etc. instead of their
16660 # values after options handling.
16661 ac_log="
16662 This file was extended by $as_me, which was
16663 generated by GNU Autoconf 2.60.  Invocation command line was
16664
16665   CONFIG_FILES    = $CONFIG_FILES
16666   CONFIG_HEADERS  = $CONFIG_HEADERS
16667   CONFIG_LINKS    = $CONFIG_LINKS
16668   CONFIG_COMMANDS = $CONFIG_COMMANDS
16669   $ $0 $@
16670
16671 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16672 "
16673
16674 _ACEOF
16675
16676 cat >>$CONFIG_STATUS <<_ACEOF
16677 # Files that config.status was made for.
16678 config_files="$ac_config_files"
16679 config_headers="$ac_config_headers"
16680
16681 _ACEOF
16682
16683 cat >>$CONFIG_STATUS <<\_ACEOF
16684 ac_cs_usage="\
16685 \`$as_me' instantiates files from templates according to the
16686 current configuration.
16687
16688 Usage: $0 [OPTIONS] [FILE]...
16689
16690   -h, --help       print this help, then exit
16691   -V, --version    print version number, then exit
16692   -q, --quiet      do not print progress messages
16693   -d, --debug      don't remove temporary files
16694       --recheck    update $as_me by reconfiguring in the same conditions
16695   --file=FILE[:TEMPLATE]
16696                    instantiate the configuration file FILE
16697   --header=FILE[:TEMPLATE]
16698                    instantiate the configuration header FILE
16699
16700 Configuration files:
16701 $config_files
16702
16703 Configuration headers:
16704 $config_headers
16705
16706 Report bugs to <bug-autoconf@gnu.org>."
16707
16708 _ACEOF
16709 cat >>$CONFIG_STATUS <<_ACEOF
16710 ac_cs_version="\\
16711 config.status
16712 configured by $0, generated by GNU Autoconf 2.60,
16713   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16714
16715 Copyright (C) 2006 Free Software Foundation, Inc.
16716 This config.status script is free software; the Free Software Foundation
16717 gives unlimited permission to copy, distribute and modify it."
16718
16719 ac_pwd='$ac_pwd'
16720 srcdir='$srcdir'
16721 INSTALL='$INSTALL'
16722 _ACEOF
16723
16724 cat >>$CONFIG_STATUS <<\_ACEOF
16725 # If no file are specified by the user, then we need to provide default
16726 # value.  By we need to know if files were specified by the user.
16727 ac_need_defaults=:
16728 while test $# != 0
16729 do
16730   case $1 in
16731   --*=*)
16732     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16733     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16734     ac_shift=:
16735     ;;
16736   *)
16737     ac_option=$1
16738     ac_optarg=$2
16739     ac_shift=shift
16740     ;;
16741   esac
16742
16743   case $ac_option in
16744   # Handling of the options.
16745   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16746     ac_cs_recheck=: ;;
16747   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16748     echo "$ac_cs_version"; exit ;;
16749   --debug | --debu | --deb | --de | --d | -d )
16750     debug=: ;;
16751   --file | --fil | --fi | --f )
16752     $ac_shift
16753     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16754     ac_need_defaults=false;;
16755   --header | --heade | --head | --hea )
16756     $ac_shift
16757     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16758     ac_need_defaults=false;;
16759   --he | --h)
16760     # Conflict between --help and --header
16761     { echo "$as_me: error: ambiguous option: $1
16762 Try \`$0 --help' for more information." >&2
16763    { (exit 1); exit 1; }; };;
16764   --help | --hel | -h )
16765     echo "$ac_cs_usage"; exit ;;
16766   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16767   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16768     ac_cs_silent=: ;;
16769
16770   # This is an error.
16771   -*) { echo "$as_me: error: unrecognized option: $1
16772 Try \`$0 --help' for more information." >&2
16773    { (exit 1); exit 1; }; } ;;
16774
16775   *) ac_config_targets="$ac_config_targets $1"
16776      ac_need_defaults=false ;;
16777
16778   esac
16779   shift
16780 done
16781
16782 ac_configure_extra_args=
16783
16784 if $ac_cs_silent; then
16785   exec 6>/dev/null
16786   ac_configure_extra_args="$ac_configure_extra_args --silent"
16787 fi
16788
16789 _ACEOF
16790 cat >>$CONFIG_STATUS <<_ACEOF
16791 if \$ac_cs_recheck; then
16792   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16793   CONFIG_SHELL=$SHELL
16794   export CONFIG_SHELL
16795   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16796 fi
16797
16798 _ACEOF
16799 cat >>$CONFIG_STATUS <<\_ACEOF
16800 exec 5>>config.log
16801 {
16802   echo
16803   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16804 ## Running $as_me. ##
16805 _ASBOX
16806   echo "$ac_log"
16807 } >&5
16808
16809 _ACEOF
16810 cat >>$CONFIG_STATUS <<_ACEOF
16811 _ACEOF
16812
16813 cat >>$CONFIG_STATUS <<\_ACEOF
16814
16815 # Handling of arguments.
16816 for ac_config_target in $ac_config_targets
16817 do
16818   case $ac_config_target in
16819     "ddconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ddconfig.h:ddconfig_in.h" ;;
16820     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16821     "main.mk") CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
16822     "packages.mk") CONFIG_FILES="$CONFIG_FILES packages.mk:packages_in.mk" ;;
16823     "sim.src/Makefile") CONFIG_FILES="$CONFIG_FILES sim.src/Makefile" ;;
16824     "cmd.src/Makefile") CONFIG_FILES="$CONFIG_FILES cmd.src/Makefile" ;;
16825     "s51.src/Makefile") CONFIG_FILES="$CONFIG_FILES s51.src/Makefile" ;;
16826     "avr.src/Makefile") CONFIG_FILES="$CONFIG_FILES avr.src/Makefile" ;;
16827     "z80.src/Makefile") CONFIG_FILES="$CONFIG_FILES z80.src/Makefile" ;;
16828     "hc08.src/Makefile") CONFIG_FILES="$CONFIG_FILES hc08.src/Makefile" ;;
16829     "xa.src/Makefile") CONFIG_FILES="$CONFIG_FILES xa.src/Makefile" ;;
16830     "gui.src/Makefile") CONFIG_FILES="$CONFIG_FILES gui.src/Makefile" ;;
16831     "gui.src/serio.src/Makefile") CONFIG_FILES="$CONFIG_FILES gui.src/serio.src/Makefile" ;;
16832     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16833
16834   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16835 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16836    { (exit 1); exit 1; }; };;
16837   esac
16838 done
16839
16840
16841 # If the user did not use the arguments to specify the items to instantiate,
16842 # then the envvar interface is used.  Set only those that are not.
16843 # We use the long form for the default assignment because of an extremely
16844 # bizarre bug on SunOS 4.1.3.
16845 if $ac_need_defaults; then
16846   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16847   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16848 fi
16849
16850 # Have a temporary directory for convenience.  Make it in the build tree
16851 # simply because there is no reason against having it here, and in addition,
16852 # creating and moving files from /tmp can sometimes cause problems.
16853 # Hook for its removal unless debugging.
16854 # Note that there is a small window in which the directory will not be cleaned:
16855 # after its creation but before its name has been assigned to `$tmp'.
16856 $debug ||
16857 {
16858   tmp=
16859   trap 'exit_status=$?
16860   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16861 ' 0
16862   trap '{ (exit 1); exit 1; }' 1 2 13 15
16863 }
16864 # Create a (secure) tmp directory for tmp files.
16865
16866 {
16867   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16868   test -n "$tmp" && test -d "$tmp"
16869 }  ||
16870 {
16871   tmp=./conf$$-$RANDOM
16872   (umask 077 && mkdir "$tmp")
16873 } ||
16874 {
16875    echo "$me: cannot create a temporary directory in ." >&2
16876    { (exit 1); exit 1; }
16877 }
16878
16879 #
16880 # Set up the sed scripts for CONFIG_FILES section.
16881 #
16882
16883 # No need to generate the scripts if there are no CONFIG_FILES.
16884 # This happens for instance when ./config.status config.h
16885 if test -n "$CONFIG_FILES"; then
16886
16887 _ACEOF
16888
16889
16890
16891 ac_delim='%!_!# '
16892 for ac_last_try in false false false false false :; do
16893   cat >conf$$subs.sed <<_ACEOF
16894 SHELL!$SHELL$ac_delim
16895 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16896 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16897 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16898 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16899 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16900 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16901 exec_prefix!$exec_prefix$ac_delim
16902 prefix!$prefix$ac_delim
16903 program_transform_name!$program_transform_name$ac_delim
16904 bindir!$bindir$ac_delim
16905 sbindir!$sbindir$ac_delim
16906 libexecdir!$libexecdir$ac_delim
16907 datarootdir!$datarootdir$ac_delim
16908 datadir!$datadir$ac_delim
16909 sysconfdir!$sysconfdir$ac_delim
16910 sharedstatedir!$sharedstatedir$ac_delim
16911 localstatedir!$localstatedir$ac_delim
16912 includedir!$includedir$ac_delim
16913 oldincludedir!$oldincludedir$ac_delim
16914 docdir!$docdir$ac_delim
16915 infodir!$infodir$ac_delim
16916 htmldir!$htmldir$ac_delim
16917 dvidir!$dvidir$ac_delim
16918 pdfdir!$pdfdir$ac_delim
16919 psdir!$psdir$ac_delim
16920 libdir!$libdir$ac_delim
16921 localedir!$localedir$ac_delim
16922 mandir!$mandir$ac_delim
16923 DEFS!$DEFS$ac_delim
16924 ECHO_C!$ECHO_C$ac_delim
16925 ECHO_N!$ECHO_N$ac_delim
16926 ECHO_T!$ECHO_T$ac_delim
16927 LIBS!$LIBS$ac_delim
16928 build_alias!$build_alias$ac_delim
16929 host_alias!$host_alias$ac_delim
16930 target_alias!$target_alias$ac_delim
16931 AWK!$AWK$ac_delim
16932 VERSION!$VERSION$ac_delim
16933 VERSIONHI!$VERSIONHI$ac_delim
16934 VERSIONLO!$VERSIONLO$ac_delim
16935 VERSIONP!$VERSIONP$ac_delim
16936 enable_ucsim!$enable_ucsim$ac_delim
16937 enable_dlso!$enable_dlso$ac_delim
16938 enable_51!$enable_51$ac_delim
16939 enable_avr!$enable_avr$ac_delim
16940 enable_z80!$enable_z80$ac_delim
16941 enable_hc08!$enable_hc08$ac_delim
16942 enable_xa!$enable_xa$ac_delim
16943 enable_serio!$enable_serio$ac_delim
16944 CXX!$CXX$ac_delim
16945 CXXFLAGS!$CXXFLAGS$ac_delim
16946 LDFLAGS!$LDFLAGS$ac_delim
16947 CPPFLAGS!$CPPFLAGS$ac_delim
16948 ac_ct_CXX!$ac_ct_CXX$ac_delim
16949 EXEEXT!$EXEEXT$ac_delim
16950 OBJEXT!$OBJEXT$ac_delim
16951 CXXCPP!$CXXCPP$ac_delim
16952 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16953 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16954 INSTALL_DATA!$INSTALL_DATA$ac_delim
16955 RANLIB!$RANLIB$ac_delim
16956 STRIP!$STRIP$ac_delim
16957 build!$build$ac_delim
16958 build_cpu!$build_cpu$ac_delim
16959 build_vendor!$build_vendor$ac_delim
16960 build_os!$build_os$ac_delim
16961 host!$host$ac_delim
16962 host_cpu!$host_cpu$ac_delim
16963 host_vendor!$host_vendor$ac_delim
16964 host_os!$host_os$ac_delim
16965 CC!$CC$ac_delim
16966 CFLAGS!$CFLAGS$ac_delim
16967 ac_ct_CC!$ac_ct_CC$ac_delim
16968 LN_S!$LN_S$ac_delim
16969 ECHO!$ECHO$ac_delim
16970 CPP!$CPP$ac_delim
16971 GREP!$GREP$ac_delim
16972 EGREP!$EGREP$ac_delim
16973 LIBTOOL!$LIBTOOL$ac_delim
16974 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
16975 LEX!$LEX$ac_delim
16976 LEXLIB!$LEXLIB$ac_delim
16977 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
16978 YACC!$YACC$ac_delim
16979 YFLAGS!$YFLAGS$ac_delim
16980 BISON_PLUS_PLUS!$BISON_PLUS_PLUS$ac_delim
16981 WINSOCK_AVAIL!$WINSOCK_AVAIL$ac_delim
16982 dl_ok!$dl_ok$ac_delim
16983 DL!$DL$ac_delim
16984 panel_ok!$panel_ok$ac_delim
16985 curses_ok!$curses_ok$ac_delim
16986 CURSES_LIBS!$CURSES_LIBS$ac_delim
16987 M_OR_MM!$M_OR_MM$ac_delim
16988 SHAREDLIB!$SHAREDLIB$ac_delim
16989 PICOPT!$PICOPT$ac_delim
16990 dlso_ok!$dlso_ok$ac_delim
16991 _ACEOF
16992
16993   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16994     break
16995   elif $ac_last_try; then
16996     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16997 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16998    { (exit 1); exit 1; }; }
16999   else
17000     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17001   fi
17002 done
17003
17004 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17005 if test -n "$ac_eof"; then
17006   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17007   ac_eof=`expr $ac_eof + 1`
17008 fi
17009
17010 cat >>$CONFIG_STATUS <<_ACEOF
17011 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17013 _ACEOF
17014 sed '
17015 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17016 s/^/s,@/; s/!/@,|#_!!_#|/
17017 :n
17018 t n
17019 s/'"$ac_delim"'$/,g/; t
17020 s/$/\\/; p
17021 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17022 ' >>$CONFIG_STATUS <conf$$subs.sed
17023 rm -f conf$$subs.sed
17024 cat >>$CONFIG_STATUS <<_ACEOF
17025 CEOF$ac_eof
17026 _ACEOF
17027
17028
17029 ac_delim='%!_!# '
17030 for ac_last_try in false false false false false :; do
17031   cat >conf$$subs.sed <<_ACEOF
17032 LIBOBJS!$LIBOBJS$ac_delim
17033 LTLIBOBJS!$LTLIBOBJS$ac_delim
17034 _ACEOF
17035
17036   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
17037     break
17038   elif $ac_last_try; then
17039     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17040 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17041    { (exit 1); exit 1; }; }
17042   else
17043     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17044   fi
17045 done
17046
17047 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17048 if test -n "$ac_eof"; then
17049   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17050   ac_eof=`expr $ac_eof + 1`
17051 fi
17052
17053 cat >>$CONFIG_STATUS <<_ACEOF
17054 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17056 _ACEOF
17057 sed '
17058 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17059 s/^/s,@/; s/!/@,|#_!!_#|/
17060 :n
17061 t n
17062 s/'"$ac_delim"'$/,g/; t
17063 s/$/\\/; p
17064 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17065 ' >>$CONFIG_STATUS <conf$$subs.sed
17066 rm -f conf$$subs.sed
17067 cat >>$CONFIG_STATUS <<_ACEOF
17068 :end
17069 s/|#_!!_#|//g
17070 CEOF$ac_eof
17071 _ACEOF
17072
17073
17074 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17075 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17076 # trailing colons and then remove the whole line if VPATH becomes empty
17077 # (actually we leave an empty line to preserve line numbers).
17078 if test "x$srcdir" = x.; then
17079   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17080 s/:*\$(srcdir):*/:/
17081 s/:*\${srcdir}:*/:/
17082 s/:*@srcdir@:*/:/
17083 s/^\([^=]*=[     ]*\):*/\1/
17084 s/:*$//
17085 s/^[^=]*=[       ]*$//
17086 }'
17087 fi
17088
17089 cat >>$CONFIG_STATUS <<\_ACEOF
17090 fi # test -n "$CONFIG_FILES"
17091
17092
17093 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
17094 do
17095   case $ac_tag in
17096   :[FHLC]) ac_mode=$ac_tag; continue;;
17097   esac
17098   case $ac_mode$ac_tag in
17099   :[FHL]*:*);;
17100   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17101 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17102    { (exit 1); exit 1; }; };;
17103   :[FH]-) ac_tag=-:-;;
17104   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17105   esac
17106   ac_save_IFS=$IFS
17107   IFS=:
17108   set x $ac_tag
17109   IFS=$ac_save_IFS
17110   shift
17111   ac_file=$1
17112   shift
17113
17114   case $ac_mode in
17115   :L) ac_source=$1;;
17116   :[FH])
17117     ac_file_inputs=
17118     for ac_f
17119     do
17120       case $ac_f in
17121       -) ac_f="$tmp/stdin";;
17122       *) # Look for the file first in the build tree, then in the source tree
17123          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17124          # because $ac_f cannot contain `:'.
17125          test -f "$ac_f" ||
17126            case $ac_f in
17127            [\\/$]*) false;;
17128            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17129            esac ||
17130            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17131 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17132    { (exit 1); exit 1; }; };;
17133       esac
17134       ac_file_inputs="$ac_file_inputs $ac_f"
17135     done
17136
17137     # Let's still pretend it is `configure' which instantiates (i.e., don't
17138     # use $as_me), people would be surprised to read:
17139     #    /* config.h.  Generated by config.status.  */
17140     configure_input="Generated from "`IFS=:
17141           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17142     if test x"$ac_file" != x-; then
17143       configure_input="$ac_file.  $configure_input"
17144       { echo "$as_me:$LINENO: creating $ac_file" >&5
17145 echo "$as_me: creating $ac_file" >&6;}
17146     fi
17147
17148     case $ac_tag in
17149     *:-:* | *:-) cat >"$tmp/stdin";;
17150     esac
17151     ;;
17152   esac
17153
17154   ac_dir=`$as_dirname -- "$ac_file" ||
17155 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17156          X"$ac_file" : 'X\(//\)[^/]' \| \
17157          X"$ac_file" : 'X\(//\)$' \| \
17158          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17159 echo X"$ac_file" |
17160     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17161             s//\1/
17162             q
17163           }
17164           /^X\(\/\/\)[^/].*/{
17165             s//\1/
17166             q
17167           }
17168           /^X\(\/\/\)$/{
17169             s//\1/
17170             q
17171           }
17172           /^X\(\/\).*/{
17173             s//\1/
17174             q
17175           }
17176           s/.*/./; q'`
17177   { as_dir="$ac_dir"
17178   case $as_dir in #(
17179   -*) as_dir=./$as_dir;;
17180   esac
17181   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17182     as_dirs=
17183     while :; do
17184       case $as_dir in #(
17185       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17186       *) as_qdir=$as_dir;;
17187       esac
17188       as_dirs="'$as_qdir' $as_dirs"
17189       as_dir=`$as_dirname -- "$as_dir" ||
17190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17191          X"$as_dir" : 'X\(//\)[^/]' \| \
17192          X"$as_dir" : 'X\(//\)$' \| \
17193          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17194 echo X"$as_dir" |
17195     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17196             s//\1/
17197             q
17198           }
17199           /^X\(\/\/\)[^/].*/{
17200             s//\1/
17201             q
17202           }
17203           /^X\(\/\/\)$/{
17204             s//\1/
17205             q
17206           }
17207           /^X\(\/\).*/{
17208             s//\1/
17209             q
17210           }
17211           s/.*/./; q'`
17212       test -d "$as_dir" && break
17213     done
17214     test -z "$as_dirs" || eval "mkdir $as_dirs"
17215   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17216 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17217    { (exit 1); exit 1; }; }; }
17218   ac_builddir=.
17219
17220 case "$ac_dir" in
17221 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17222 *)
17223   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17224   # A ".." for each directory in $ac_dir_suffix.
17225   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17226   case $ac_top_builddir_sub in
17227   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17228   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17229   esac ;;
17230 esac
17231 ac_abs_top_builddir=$ac_pwd
17232 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17233 # for backward compatibility:
17234 ac_top_builddir=$ac_top_build_prefix
17235
17236 case $srcdir in
17237   .)  # We are building in place.
17238     ac_srcdir=.
17239     ac_top_srcdir=$ac_top_builddir_sub
17240     ac_abs_top_srcdir=$ac_pwd ;;
17241   [\\/]* | ?:[\\/]* )  # Absolute name.
17242     ac_srcdir=$srcdir$ac_dir_suffix;
17243     ac_top_srcdir=$srcdir
17244     ac_abs_top_srcdir=$srcdir ;;
17245   *) # Relative name.
17246     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17247     ac_top_srcdir=$ac_top_build_prefix$srcdir
17248     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17249 esac
17250 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17251
17252
17253   case $ac_mode in
17254   :F)
17255   #
17256   # CONFIG_FILE
17257   #
17258
17259   case $INSTALL in
17260   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17261   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17262   esac
17263 _ACEOF
17264
17265 cat >>$CONFIG_STATUS <<\_ACEOF
17266 # If the template does not know about datarootdir, expand it.
17267 # FIXME: This hack should be removed a few years after 2.60.
17268 ac_datarootdir_hack=; ac_datarootdir_seen=
17269
17270 case `sed -n '/datarootdir/ {
17271   p
17272   q
17273 }
17274 /@datadir@/p
17275 /@docdir@/p
17276 /@infodir@/p
17277 /@localedir@/p
17278 /@mandir@/p
17279 ' $ac_file_inputs` in
17280 *datarootdir*) ac_datarootdir_seen=yes;;
17281 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17282   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17283 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17284 _ACEOF
17285 cat >>$CONFIG_STATUS <<_ACEOF
17286   ac_datarootdir_hack='
17287   s&@datadir@&$datadir&g
17288   s&@docdir@&$docdir&g
17289   s&@infodir@&$infodir&g
17290   s&@localedir@&$localedir&g
17291   s&@mandir@&$mandir&g
17292     s&\\\${datarootdir}&$datarootdir&g' ;;
17293 esac
17294 _ACEOF
17295
17296 # Neutralize VPATH when `$srcdir' = `.'.
17297 # Shell code in configure.ac might set extrasub.
17298 # FIXME: do we really want to maintain this feature?
17299 cat >>$CONFIG_STATUS <<_ACEOF
17300   sed "$ac_vpsub
17301 $extrasub
17302 _ACEOF
17303 cat >>$CONFIG_STATUS <<\_ACEOF
17304 :t
17305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17306 s&@configure_input@&$configure_input&;t t
17307 s&@top_builddir@&$ac_top_builddir_sub&;t t
17308 s&@srcdir@&$ac_srcdir&;t t
17309 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17310 s&@top_srcdir@&$ac_top_srcdir&;t t
17311 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17312 s&@builddir@&$ac_builddir&;t t
17313 s&@abs_builddir@&$ac_abs_builddir&;t t
17314 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17315 s&@INSTALL@&$ac_INSTALL&;t t
17316 $ac_datarootdir_hack
17317 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17318
17319 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17320   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17321   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17322   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17323 which seems to be undefined.  Please make sure it is defined." >&5
17324 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17325 which seems to be undefined.  Please make sure it is defined." >&2;}
17326
17327   rm -f "$tmp/stdin"
17328   case $ac_file in
17329   -) cat "$tmp/out"; rm -f "$tmp/out";;
17330   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17331   esac
17332  ;;
17333   :H)
17334   #
17335   # CONFIG_HEADER
17336   #
17337 _ACEOF
17338
17339 # Transform confdefs.h into a sed script `conftest.defines', that
17340 # substitutes the proper values into config.h.in to produce config.h.
17341 rm -f conftest.defines conftest.tail
17342 # First, append a space to every undef/define line, to ease matching.
17343 echo 's/$/ /' >conftest.defines
17344 # Then, protect against being on the right side of a sed subst, or in
17345 # an unquoted here document, in config.status.  If some macros were
17346 # called several times there might be several #defines for the same
17347 # symbol, which is useless.  But do not sort them, since the last
17348 # AC_DEFINE must be honored.
17349 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17350 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17351 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17352 # PARAMS is the parameter list in the macro definition--in most cases, it's
17353 # just an empty string.
17354 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
17355 ac_dB='\\)[      (].*,\\1define\\2'
17356 ac_dC=' '
17357 ac_dD=' ,'
17358
17359 uniq confdefs.h |
17360   sed -n '
17361         t rset
17362         :rset
17363         s/^[     ]*#[    ]*define[       ][      ]*//
17364         t ok
17365         d
17366         :ok
17367         s/[\\&,]/\\&/g
17368         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17369         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17370   ' >>conftest.defines
17371
17372 # Remove the space that was appended to ease matching.
17373 # Then replace #undef with comments.  This is necessary, for
17374 # example, in the case of _POSIX_SOURCE, which is predefined and required
17375 # on some systems where configure will not decide to define it.
17376 # (The regexp can be short, since the line contains either #define or #undef.)
17377 echo 's/ $//
17378 s,^[     #]*u.*,/* & */,' >>conftest.defines
17379
17380 # Break up conftest.defines:
17381 ac_max_sed_lines=50
17382
17383 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17384 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17385 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17386 # et cetera.
17387 ac_in='$ac_file_inputs'
17388 ac_out='"$tmp/out1"'
17389 ac_nxt='"$tmp/out2"'
17390
17391 while :
17392 do
17393   # Write a here document:
17394     cat >>$CONFIG_STATUS <<_ACEOF
17395     # First, check the format of the line:
17396     cat >"\$tmp/defines.sed" <<\\CEOF
17397 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
17398 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
17399 b
17400 :def
17401 _ACEOF
17402   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17403   echo 'CEOF
17404     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17405   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17406   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17407   grep . conftest.tail >/dev/null || break
17408   rm -f conftest.defines
17409   mv conftest.tail conftest.defines
17410 done
17411 rm -f conftest.defines conftest.tail
17412
17413 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17414 cat >>$CONFIG_STATUS <<\_ACEOF
17415   if test x"$ac_file" != x-; then
17416     echo "/* $configure_input  */" >"$tmp/config.h"
17417     cat "$ac_result" >>"$tmp/config.h"
17418     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17419       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17420 echo "$as_me: $ac_file is unchanged" >&6;}
17421     else
17422       rm -f $ac_file
17423       mv "$tmp/config.h" $ac_file
17424     fi
17425   else
17426     echo "/* $configure_input  */"
17427     cat "$ac_result"
17428   fi
17429   rm -f "$tmp/out12"
17430  ;;
17431
17432
17433   esac
17434
17435 done # for ac_tag
17436
17437
17438 { (exit 0); exit 0; }
17439 _ACEOF
17440 chmod +x $CONFIG_STATUS
17441 ac_clean_files=$ac_clean_files_save
17442
17443
17444 # configure is writing to config.log, and then calls config.status.
17445 # config.status does its own redirection, appending to config.log.
17446 # Unfortunately, on DOS this fails, as config.log is still kept open
17447 # by configure, so config.status won't be able to write to it; its
17448 # output is simply discarded.  So we exec the FD to /dev/null,
17449 # effectively closing config.log, so it can be properly (re)opened and
17450 # appended to by config.status.  When coming back to configure, we
17451 # need to make the FD available again.
17452 if test "$no_create" != yes; then
17453   ac_cs_success=:
17454   ac_config_status_args=
17455   test "$silent" = yes &&
17456     ac_config_status_args="$ac_config_status_args --quiet"
17457   exec 5>/dev/null
17458   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17459   exec 5>>config.log
17460   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17461   # would make configure fail if this is the last instruction.
17462   $ac_cs_success || { (exit 1); exit 1; }
17463 fi
17464
17465
17466 #gui.src/portmon.src/Makefile
17467
17468
17469 # End of configure/configure.in