Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.ac Revision: 312 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for Device::SerialPort 1.04.
5 #
6 # Report bugs to <[email protected]>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
52 fi
53 rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" "" $as_nl"
72
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85 ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
110 do
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\/\)$/{
144 s//\1/
145 q
146 }
147 /^X\/\(\/\).*/{
148 s//\1/
149 q
150 }
151 s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
162 fi
163
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
167 }
168 as_func_success () {
169 as_func_return 0
170 }
171 as_func_failure () {
172 as_func_return 1
173 }
174 as_func_ret_success () {
175 return 0
176 }
177 as_func_ret_failure () {
178 return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183 :
184 else
185 exitcode=1
186 echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195 :
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 :
208 else
209 exitcode=1
210 echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221 :
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
230 /*)
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
237
238
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281 (exit $1)
282 }
283 as_func_success () {
284 as_func_return 0
285 }
286 as_func_failure () {
287 as_func_return 1
288 }
289 as_func_ret_success () {
290 return 0
291 }
292 as_func_ret_failure () {
293 return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298 :
299 else
300 exitcode=1
301 echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310 :
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 :
323 else
324 exitcode=1
325 echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338 break
339 fi
340
341 fi
342
343 done
344
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370 (exit \$1)
371 }
372 as_func_success () {
373 as_func_return 0
374 }
375 as_func_failure () {
376 as_func_return 1
377 }
378 as_func_ret_success () {
379 return 0
380 }
381 as_func_ret_failure () {
382 return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387 :
388 else
389 exitcode=1
390 echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399 :
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 :
412 else
413 exitcode=1
414 echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell [email protected] about your system,
420 echo including any error possibly output before this
421 echo message
422 }
423
424
425
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
442 p
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
448 b
449 :lineno
450 N
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
482 *)
483 ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
531 fi
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
543 '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555 exec 7<&0 </dev/null 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
574
575 # Identity of this package.
576 PACKAGE_NAME='Device::SerialPort'
577 PACKAGE_TARNAME='device--serialport'
578 PACKAGE_VERSION='1.04'
579 PACKAGE_STRING='Device::SerialPort 1.04'
580 PACKAGE_BUGREPORT='[email protected]'
581
582 ac_unique_file="SerialPort.xs"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 CC
657 CFLAGS
658 LDFLAGS
659 CPPFLAGS
660 ac_ct_CC
661 EXEEXT
662 OBJEXT
663 CPP
664 GREP
665 EGREP
666 LIBOBJS
667 LTLIBOBJS'
668 ac_subst_files=''
669 ac_precious_vars='build_alias
670 host_alias
671 target_alias
672 CC
673 CFLAGS
674 LDFLAGS
675 LIBS
676 CPPFLAGS
677 CPP'
678
679
680 # Initialize some variables set by options.
681 ac_init_help=
682 ac_init_version=false
683 # The variables have the same names as the options, with
684 # dashes changed to underlines.
685 cache_file=/dev/null
686 exec_prefix=NONE
687 no_create=
688 no_recursion=
689 prefix=NONE
690 program_prefix=NONE
691 program_suffix=NONE
692 program_transform_name=s,x,x,
693 silent=
694 site=
695 srcdir=
696 verbose=
697 x_includes=NONE
698 x_libraries=NONE
699
700 # Installation directory options.
701 # These are left unexpanded so users can "make install exec_prefix=/foo"
702 # and all the variables that are supposed to be based on exec_prefix
703 # by default will actually change.
704 # Use braces instead of parens because sh, perl, etc. also accept them.
705 # (The list follows the same order as the GNU Coding Standards.)
706 bindir='${exec_prefix}/bin'
707 sbindir='${exec_prefix}/sbin'
708 libexecdir='${exec_prefix}/libexec'
709 datarootdir='${prefix}/share'
710 datadir='${datarootdir}'
711 sysconfdir='${prefix}/etc'
712 sharedstatedir='${prefix}/com'
713 localstatedir='${prefix}/var'
714 includedir='${prefix}/include'
715 oldincludedir='/usr/include'
716 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
717 infodir='${datarootdir}/info'
718 htmldir='${docdir}'
719 dvidir='${docdir}'
720 pdfdir='${docdir}'
721 psdir='${docdir}'
722 libdir='${exec_prefix}/lib'
723 localedir='${datarootdir}/locale'
724 mandir='${datarootdir}/man'
725
726 ac_prev=
727 ac_dashdash=
728 for ac_option
729 do
730 # If the previous option needs an argument, assign it.
731 if test -n "$ac_prev"; then
732 eval $ac_prev=\$ac_option
733 ac_prev=
734 continue
735 fi
736
737 case $ac_option in
738 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
739 *) ac_optarg=yes ;;
740 esac
741
742 # Accept the important Cygnus configure options, so we can diagnose typos.
743
744 case $ac_dashdash$ac_option in
745 --)
746 ac_dashdash=yes ;;
747
748 -bindir | --bindir | --bindi | --bind | --bin | --bi)
749 ac_prev=bindir ;;
750 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
751 bindir=$ac_optarg ;;
752
753 -build | --build | --buil | --bui | --bu)
754 ac_prev=build_alias ;;
755 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
756 build_alias=$ac_optarg ;;
757
758 -cache-file | --cache-file | --cache-fil | --cache-fi \
759 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
760 ac_prev=cache_file ;;
761 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
762 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
763 cache_file=$ac_optarg ;;
764
765 --config-cache | -C)
766 cache_file=config.cache ;;
767
768 -datadir | --datadir | --datadi | --datad)
769 ac_prev=datadir ;;
770 -datadir=* | --datadir=* | --datadi=* | --datad=*)
771 datadir=$ac_optarg ;;
772
773 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
774 | --dataroo | --dataro | --datar)
775 ac_prev=datarootdir ;;
776 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
777 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
778 datarootdir=$ac_optarg ;;
779
780 -disable-* | --disable-*)
781 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
785 { (exit 1); exit 1; }; }
786 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
787 eval enable_$ac_feature=no ;;
788
789 -docdir | --docdir | --docdi | --doc | --do)
790 ac_prev=docdir ;;
791 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
792 docdir=$ac_optarg ;;
793
794 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
795 ac_prev=dvidir ;;
796 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
797 dvidir=$ac_optarg ;;
798
799 -enable-* | --enable-*)
800 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
804 { (exit 1); exit 1; }; }
805 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
806 eval enable_$ac_feature=\$ac_optarg ;;
807
808 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
809 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
810 | --exec | --exe | --ex)
811 ac_prev=exec_prefix ;;
812 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
813 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
814 | --exec=* | --exe=* | --ex=*)
815 exec_prefix=$ac_optarg ;;
816
817 -gas | --gas | --ga | --g)
818 # Obsolete; use --with-gas.
819 with_gas=yes ;;
820
821 -help | --help | --hel | --he | -h)
822 ac_init_help=long ;;
823 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
824 ac_init_help=recursive ;;
825 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
826 ac_init_help=short ;;
827
828 -host | --host | --hos | --ho)
829 ac_prev=host_alias ;;
830 -host=* | --host=* | --hos=* | --ho=*)
831 host_alias=$ac_optarg ;;
832
833 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
834 ac_prev=htmldir ;;
835 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
836 | --ht=*)
837 htmldir=$ac_optarg ;;
838
839 -includedir | --includedir | --includedi | --included | --include \
840 | --includ | --inclu | --incl | --inc)
841 ac_prev=includedir ;;
842 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
843 | --includ=* | --inclu=* | --incl=* | --inc=*)
844 includedir=$ac_optarg ;;
845
846 -infodir | --infodir | --infodi | --infod | --info | --inf)
847 ac_prev=infodir ;;
848 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
849 infodir=$ac_optarg ;;
850
851 -libdir | --libdir | --libdi | --libd)
852 ac_prev=libdir ;;
853 -libdir=* | --libdir=* | --libdi=* | --libd=*)
854 libdir=$ac_optarg ;;
855
856 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
857 | --libexe | --libex | --libe)
858 ac_prev=libexecdir ;;
859 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
860 | --libexe=* | --libex=* | --libe=*)
861 libexecdir=$ac_optarg ;;
862
863 -localedir | --localedir | --localedi | --localed | --locale)
864 ac_prev=localedir ;;
865 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
866 localedir=$ac_optarg ;;
867
868 -localstatedir | --localstatedir | --localstatedi | --localstated \
869 | --localstate | --localstat | --localsta | --localst | --locals)
870 ac_prev=localstatedir ;;
871 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
872 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
873 localstatedir=$ac_optarg ;;
874
875 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
876 ac_prev=mandir ;;
877 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
878 mandir=$ac_optarg ;;
879
880 -nfp | --nfp | --nf)
881 # Obsolete; use --without-fp.
882 with_fp=no ;;
883
884 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
885 | --no-cr | --no-c | -n)
886 no_create=yes ;;
887
888 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
889 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
890 no_recursion=yes ;;
891
892 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
893 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
894 | --oldin | --oldi | --old | --ol | --o)
895 ac_prev=oldincludedir ;;
896 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
897 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
898 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
899 oldincludedir=$ac_optarg ;;
900
901 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
902 ac_prev=prefix ;;
903 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
904 prefix=$ac_optarg ;;
905
906 -program-prefix | --program-prefix | --program-prefi | --program-pref \
907 | --program-pre | --program-pr | --program-p)
908 ac_prev=program_prefix ;;
909 -program-prefix=* | --program-prefix=* | --program-prefi=* \
910 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
911 program_prefix=$ac_optarg ;;
912
913 -program-suffix | --program-suffix | --program-suffi | --program-suff \
914 | --program-suf | --program-su | --program-s)
915 ac_prev=program_suffix ;;
916 -program-suffix=* | --program-suffix=* | --program-suffi=* \
917 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
918 program_suffix=$ac_optarg ;;
919
920 -program-transform-name | --program-transform-name \
921 | --program-transform-nam | --program-transform-na \
922 | --program-transform-n | --program-transform- \
923 | --program-transform | --program-transfor \
924 | --program-transfo | --program-transf \
925 | --program-trans | --program-tran \
926 | --progr-tra | --program-tr | --program-t)
927 ac_prev=program_transform_name ;;
928 -program-transform-name=* | --program-transform-name=* \
929 | --program-transform-nam=* | --program-transform-na=* \
930 | --program-transform-n=* | --program-transform-=* \
931 | --program-transform=* | --program-transfor=* \
932 | --program-transfo=* | --program-transf=* \
933 | --program-trans=* | --program-tran=* \
934 | --progr-tra=* | --program-tr=* | --program-t=*)
935 program_transform_name=$ac_optarg ;;
936
937 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
938 ac_prev=pdfdir ;;
939 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
940 pdfdir=$ac_optarg ;;
941
942 -psdir | --psdir | --psdi | --psd | --ps)
943 ac_prev=psdir ;;
944 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
945 psdir=$ac_optarg ;;
946
947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
948 | -silent | --silent | --silen | --sile | --sil)
949 silent=yes ;;
950
951 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
952 ac_prev=sbindir ;;
953 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
954 | --sbi=* | --sb=*)
955 sbindir=$ac_optarg ;;
956
957 -sharedstatedir | --sharedstatedir | --sharedstatedi \
958 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
959 | --sharedst | --shareds | --shared | --share | --shar \
960 | --sha | --sh)
961 ac_prev=sharedstatedir ;;
962 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
963 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
964 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
965 | --sha=* | --sh=*)
966 sharedstatedir=$ac_optarg ;;
967
968 -site | --site | --sit)
969 ac_prev=site ;;
970 -site=* | --site=* | --sit=*)
971 site=$ac_optarg ;;
972
973 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
974 ac_prev=srcdir ;;
975 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
976 srcdir=$ac_optarg ;;
977
978 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
979 | --syscon | --sysco | --sysc | --sys | --sy)
980 ac_prev=sysconfdir ;;
981 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
982 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
983 sysconfdir=$ac_optarg ;;
984
985 -target | --target | --targe | --targ | --tar | --ta | --t)
986 ac_prev=target_alias ;;
987 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
988 target_alias=$ac_optarg ;;
989
990 -v | -verbose | --verbose | --verbos | --verbo | --verb)
991 verbose=yes ;;
992
993 -version | --version | --versio | --versi | --vers | -V)
994 ac_init_version=: ;;
995
996 -with-* | --with-*)
997 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1000 { echo "$as_me: error: invalid package name: $ac_package" >&2
1001 { (exit 1); exit 1; }; }
1002 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1003 eval with_$ac_package=\$ac_optarg ;;
1004
1005 -without-* | --without-*)
1006 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009 { echo "$as_me: error: invalid package name: $ac_package" >&2
1010 { (exit 1); exit 1; }; }
1011 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1012 eval with_$ac_package=no ;;
1013
1014 --x)
1015 # Obsolete; use --with-x.
1016 with_x=yes ;;
1017
1018 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1019 | --x-incl | --x-inc | --x-in | --x-i)
1020 ac_prev=x_includes ;;
1021 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1022 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1023 x_includes=$ac_optarg ;;
1024
1025 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1026 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1027 ac_prev=x_libraries ;;
1028 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1029 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1030 x_libraries=$ac_optarg ;;
1031
1032 -*) { echo "$as_me: error: unrecognized option: $ac_option
1033 Try \`$0 --help' for more information." >&2
1034 { (exit 1); exit 1; }; }
1035 ;;
1036
1037 *=*)
1038 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1042 { (exit 1); exit 1; }; }
1043 eval $ac_envvar=\$ac_optarg
1044 export $ac_envvar ;;
1045
1046 *)
1047 # FIXME: should be removed in autoconf 3.0.
1048 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1049 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1050 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1051 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1052 ;;
1053
1054 esac
1055 done
1056
1057 if test -n "$ac_prev"; then
1058 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1059 { echo "$as_me: error: missing argument to $ac_option" >&2
1060 { (exit 1); exit 1; }; }
1061 fi
1062
1063 # Be sure to have absolute directory names.
1064 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1065 datadir sysconfdir sharedstatedir localstatedir includedir \
1066 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1067 libdir localedir mandir
1068 do
1069 eval ac_val=\$$ac_var
1070 case $ac_val in
1071 [\\/$]* | ?:[\\/]* ) continue;;
1072 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1073 esac
1074 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1075 { (exit 1); exit 1; }; }
1076 done
1077
1078 # There might be people who depend on the old broken behavior: `$host'
1079 # used to hold the argument of --host etc.
1080 # FIXME: To remove some day.
1081 build=$build_alias
1082 host=$host_alias
1083 target=$target_alias
1084
1085 # FIXME: To remove some day.
1086 if test "x$host_alias" != x; then
1087 if test "x$build_alias" = x; then
1088 cross_compiling=maybe
1089 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1090 If a cross compiler is detected then cross compile mode will be used." >&2
1091 elif test "x$build_alias" != "x$host_alias"; then
1092 cross_compiling=yes
1093 fi
1094 fi
1095
1096 ac_tool_prefix=
1097 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1098
1099 test "$silent" = yes && exec 6>/dev/null
1100
1101
1102 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1103 ac_ls_di=`ls -di .` &&
1104 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1105 { echo "$as_me: error: Working directory cannot be determined" >&2
1106 { (exit 1); exit 1; }; }
1107 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1108 { echo "$as_me: error: pwd does not report name of working directory" >&2
1109 { (exit 1); exit 1; }; }
1110
1111
1112 # Find the source files, if location was not specified.
1113 if test -z "$srcdir"; then
1114 ac_srcdir_defaulted=yes
1115 # Try the directory containing this script, then the parent directory.
1116 ac_confdir=`$as_dirname -- "$0" ||
1117 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1118 X"$0" : 'X\(//\)[^/]' \| \
1119 X"$0" : 'X\(//\)$' \| \
1120 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1121 echo X"$0" |
1122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1123 s//\1/
1124 q
1125 }
1126 /^X\(\/\/\)[^/].*/{
1127 s//\1/
1128 q
1129 }
1130 /^X\(\/\/\)$/{
1131 s//\1/
1132 q
1133 }
1134 /^X\(\/\).*/{
1135 s//\1/
1136 q
1137 }
1138 s/.*/./; q'`
1139 srcdir=$ac_confdir
1140 if test ! -r "$srcdir/$ac_unique_file"; then
1141 srcdir=..
1142 fi
1143 else
1144 ac_srcdir_defaulted=no
1145 fi
1146 if test ! -r "$srcdir/$ac_unique_file"; then
1147 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1148 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1149 { (exit 1); exit 1; }; }
1150 fi
1151 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1152 ac_abs_confdir=`(
1153 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1154 { (exit 1); exit 1; }; }
1155 pwd)`
1156 # When building in place, set srcdir=.
1157 if test "$ac_abs_confdir" = "$ac_pwd"; then
1158 srcdir=.
1159 fi
1160 # Remove unnecessary trailing slashes from srcdir.
1161 # Double slashes in file names in object file debugging info
1162 # mess up M-x gdb in Emacs.
1163 case $srcdir in
1164 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1165 esac
1166 for ac_var in $ac_precious_vars; do
1167 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1168 eval ac_env_${ac_var}_value=\$${ac_var}
1169 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1170 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1171 done
1172
1173 #
1174 # Report the --help message.
1175 #
1176 if test "$ac_init_help" = "long"; then
1177 # Omit some internal or obsolete options to make the list less imposing.
1178 # This message is too long to be a string in the A/UX 3.1 sh.
1179 cat <<_ACEOF
1180 \`configure' configures Device::SerialPort 1.04 to adapt to many kinds of systems.
1181
1182 Usage: $0 [OPTION]... [VAR=VALUE]...
1183
1184 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1185 VAR=VALUE. See below for descriptions of some of the useful variables.
1186
1187 Defaults for the options are specified in brackets.
1188
1189 Configuration:
1190 -h, --help display this help and exit
1191 --help=short display options specific to this package
1192 --help=recursive display the short help of all the included packages
1193 -V, --version display version information and exit
1194 -q, --quiet, --silent do not print \`checking...' messages
1195 --cache-file=FILE cache test results in FILE [disabled]
1196 -C, --config-cache alias for \`--cache-file=config.cache'
1197 -n, --no-create do not create output files
1198 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1199
1200 Installation directories:
1201 --prefix=PREFIX install architecture-independent files in PREFIX
1202 [$ac_default_prefix]
1203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1204 [PREFIX]
1205
1206 By default, \`make install' will install all the files in
1207 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1208 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1209 for instance \`--prefix=\$HOME'.
1210
1211 For better control, use the options below.
1212
1213 Fine tuning of the installation directories:
1214 --bindir=DIR user executables [EPREFIX/bin]
1215 --sbindir=DIR system admin executables [EPREFIX/sbin]
1216 --libexecdir=DIR program executables [EPREFIX/libexec]
1217 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1218 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1219 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1220 --libdir=DIR object code libraries [EPREFIX/lib]
1221 --includedir=DIR C header files [PREFIX/include]
1222 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1223 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1224 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1225 --infodir=DIR info documentation [DATAROOTDIR/info]
1226 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1227 --mandir=DIR man documentation [DATAROOTDIR/man]
1228 --docdir=DIR documentation root [DATAROOTDIR/doc/device--serialport]
1229 --htmldir=DIR html documentation [DOCDIR]
1230 --dvidir=DIR dvi documentation [DOCDIR]
1231 --pdfdir=DIR pdf documentation [DOCDIR]
1232 --psdir=DIR ps documentation [DOCDIR]
1233 _ACEOF
1234
1235 cat <<\_ACEOF
1236 _ACEOF
1237 fi
1238
1239 if test -n "$ac_init_help"; then
1240 case $ac_init_help in
1241 short | recursive ) echo "Configuration of Device::SerialPort 1.04:";;
1242 esac
1243 cat <<\_ACEOF
1244
1245 Some influential environment variables:
1246 CC C compiler command
1247 CFLAGS C compiler flags
1248 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1249 nonstandard directory <lib dir>
1250 LIBS libraries to pass to the linker, e.g. -l<library>
1251 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1252 you have headers in a nonstandard directory <include dir>
1253 CPP C preprocessor
1254
1255 Use these variables to override the choices made by `configure' or to help
1256 it to find libraries and programs with nonstandard names/locations.
1257
1258 Report bugs to <[email protected]>.
1259 _ACEOF
1260 ac_status=$?
1261 fi
1262
1263 if test "$ac_init_help" = "recursive"; then
1264 # If there are subdirs, report their specific --help.
1265 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1266 test -d "$ac_dir" || continue
1267 ac_builddir=.
1268
1269 case "$ac_dir" in
1270 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1271 *)
1272 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1273 # A ".." for each directory in $ac_dir_suffix.
1274 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1275 case $ac_top_builddir_sub in
1276 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1277 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1278 esac ;;
1279 esac
1280 ac_abs_top_builddir=$ac_pwd
1281 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1282 # for backward compatibility:
1283 ac_top_builddir=$ac_top_build_prefix
1284
1285 case $srcdir in
1286 .) # We are building in place.
1287 ac_srcdir=.
1288 ac_top_srcdir=$ac_top_builddir_sub
1289 ac_abs_top_srcdir=$ac_pwd ;;
1290 [\\/]* | ?:[\\/]* ) # Absolute name.
1291 ac_srcdir=$srcdir$ac_dir_suffix;
1292 ac_top_srcdir=$srcdir
1293 ac_abs_top_srcdir=$srcdir ;;
1294 *) # Relative name.
1295 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1296 ac_top_srcdir=$ac_top_build_prefix$srcdir
1297 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1298 esac
1299 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1300
1301 cd "$ac_dir" || { ac_status=$?; continue; }
1302 # Check for guested configure.
1303 if test -f "$ac_srcdir/configure.gnu"; then
1304 echo &&
1305 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1306 elif test -f "$ac_srcdir/configure"; then
1307 echo &&
1308 $SHELL "$ac_srcdir/configure" --help=recursive
1309 else
1310 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1311 fi || ac_status=$?
1312 cd "$ac_pwd" || { ac_status=$?; break; }
1313 done
1314 fi
1315
1316 test -n "$ac_init_help" && exit $ac_status
1317 if $ac_init_version; then
1318 cat <<\_ACEOF
1319 Device::SerialPort configure 1.04
1320 generated by GNU Autoconf 2.61
1321
1322 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1323 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1324 This configure script is free software; the Free Software Foundation
1325 gives unlimited permission to copy, distribute and modify it.
1326 _ACEOF
1327 exit
1328 fi
1329 cat >config.log <<_ACEOF
1330 This file contains any messages produced by compilers while
1331 running configure, to aid debugging if configure makes a mistake.
1332
1333 It was created by Device::SerialPort $as_me 1.04, which was
1334 generated by GNU Autoconf 2.61. Invocation command line was
1335
1336 $ $0 $@
1337
1338 _ACEOF
1339 exec 5>>config.log
1340 {
1341 cat <<_ASUNAME
1342 ## --------- ##
1343 ## Platform. ##
1344 ## --------- ##
1345
1346 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1347 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1348 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1349 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1350 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1351
1352 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1353 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1354
1355 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1356 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1357 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1358 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1359 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1360 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1361 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1362
1363 _ASUNAME
1364
1365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1366 for as_dir in $PATH
1367 do
1368 IFS=$as_save_IFS
1369 test -z "$as_dir" && as_dir=.
1370 echo "PATH: $as_dir"
1371 done
1372 IFS=$as_save_IFS
1373
1374 } >&5
1375
1376 cat >&5 <<_ACEOF
1377
1378
1379 ## ----------- ##
1380 ## Core tests. ##
1381 ## ----------- ##
1382
1383 _ACEOF
1384
1385
1386 # Keep a trace of the command line.
1387 # Strip out --no-create and --no-recursion so they do not pile up.
1388 # Strip out --silent because we don't want to record it for future runs.
1389 # Also quote any args containing shell meta-characters.
1390 # Make two passes to allow for proper duplicate-argument suppression.
1391 ac_configure_args=
1392 ac_configure_args0=
1393 ac_configure_args1=
1394 ac_must_keep_next=false
1395 for ac_pass in 1 2
1396 do
1397 for ac_arg
1398 do
1399 case $ac_arg in
1400 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1401 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1402 | -silent | --silent | --silen | --sile | --sil)
1403 continue ;;
1404 *\'*)
1405 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1406 esac
1407 case $ac_pass in
1408 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1409 2)
1410 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1411 if test $ac_must_keep_next = true; then
1412 ac_must_keep_next=false # Got value, back to normal.
1413 else
1414 case $ac_arg in
1415 *=* | --config-cache | -C | -disable-* | --disable-* \
1416 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1417 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1418 | -with-* | --with-* | -without-* | --without-* | --x)
1419 case "$ac_configure_args0 " in
1420 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1421 esac
1422 ;;
1423 -* ) ac_must_keep_next=true ;;
1424 esac
1425 fi
1426 ac_configure_args="$ac_configure_args '$ac_arg'"
1427 ;;
1428 esac
1429 done
1430 done
1431 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1432 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1433
1434 # When interrupted or exit'd, cleanup temporary files, and complete
1435 # config.log. We remove comments because anyway the quotes in there
1436 # would cause problems or look ugly.
1437 # WARNING: Use '\'' to represent an apostrophe within the trap.
1438 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1439 trap 'exit_status=$?
1440 # Save into config.log some information that might help in debugging.
1441 {
1442 echo
1443
1444 cat <<\_ASBOX
1445 ## ---------------- ##
1446 ## Cache variables. ##
1447 ## ---------------- ##
1448 _ASBOX
1449 echo
1450 # The following way of writing the cache mishandles newlines in values,
1451 (
1452 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1453 eval ac_val=\$$ac_var
1454 case $ac_val in #(
1455 *${as_nl}*)
1456 case $ac_var in #(
1457 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1458 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1459 esac
1460 case $ac_var in #(
1461 _ | IFS | as_nl) ;; #(
1462 *) $as_unset $ac_var ;;
1463 esac ;;
1464 esac
1465 done
1466 (set) 2>&1 |
1467 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1468 *${as_nl}ac_space=\ *)
1469 sed -n \
1470 "s/'\''/'\''\\\\'\'''\''/g;
1471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1472 ;; #(
1473 *)
1474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1475 ;;
1476 esac |
1477 sort
1478 )
1479 echo
1480
1481 cat <<\_ASBOX
1482 ## ----------------- ##
1483 ## Output variables. ##
1484 ## ----------------- ##
1485 _ASBOX
1486 echo
1487 for ac_var in $ac_subst_vars
1488 do
1489 eval ac_val=\$$ac_var
1490 case $ac_val in
1491 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1492 esac
1493 echo "$ac_var='\''$ac_val'\''"
1494 done | sort
1495 echo
1496
1497 if test -n "$ac_subst_files"; then
1498 cat <<\_ASBOX
1499 ## ------------------- ##
1500 ## File substitutions. ##
1501 ## ------------------- ##
1502 _ASBOX
1503 echo
1504 for ac_var in $ac_subst_files
1505 do
1506 eval ac_val=\$$ac_var
1507 case $ac_val in
1508 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1509 esac
1510 echo "$ac_var='\''$ac_val'\''"
1511 done | sort
1512 echo
1513 fi
1514
1515 if test -s confdefs.h; then
1516 cat <<\_ASBOX
1517 ## ----------- ##
1518 ## confdefs.h. ##
1519 ## ----------- ##
1520 _ASBOX
1521 echo
1522 cat confdefs.h
1523 echo
1524 fi
1525 test "$ac_signal" != 0 &&
1526 echo "$as_me: caught signal $ac_signal"
1527 echo "$as_me: exit $exit_status"
1528 } >&5
1529 rm -f core *.core core.conftest.* &&
1530 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1531 exit $exit_status
1532 ' 0
1533 for ac_signal in 1 2 13 15; do
1534 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1535 done
1536 ac_signal=0
1537
1538 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1539 rm -f -r conftest* confdefs.h
1540
1541 # Predefined preprocessor variables.
1542
1543 cat >>confdefs.h <<_ACEOF
1544 #define PACKAGE_NAME "$PACKAGE_NAME"
1545 _ACEOF
1546
1547
1548 cat >>confdefs.h <<_ACEOF
1549 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1550 _ACEOF
1551
1552
1553 cat >>confdefs.h <<_ACEOF
1554 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1555 _ACEOF
1556
1557
1558 cat >>confdefs.h <<_ACEOF
1559 #define PACKAGE_STRING "$PACKAGE_STRING"
1560 _ACEOF
1561
1562
1563 cat >>confdefs.h <<_ACEOF
1564 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1565 _ACEOF
1566
1567
1568 # Let the site file select an alternate cache file if it wants to.
1569 # Prefer explicitly selected file to automatically selected ones.
1570 if test -n "$CONFIG_SITE"; then
1571 set x "$CONFIG_SITE"
1572 elif test "x$prefix" != xNONE; then
1573 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1574 else
1575 set x "$ac_default_prefix/share/config.site" \
1576 "$ac_default_prefix/etc/config.site"
1577 fi
1578 shift
1579 for ac_site_file
1580 do
1581 if test -r "$ac_site_file"; then
1582 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1583 echo "$as_me: loading site script $ac_site_file" >&6;}
1584 sed 's/^/| /' "$ac_site_file" >&5
1585 . "$ac_site_file"
1586 fi
1587 done
1588
1589 if test -r "$cache_file"; then
1590 # Some versions of bash will fail to source /dev/null (special
1591 # files actually), so we avoid doing that.
1592 if test -f "$cache_file"; then
1593 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1594 echo "$as_me: loading cache $cache_file" >&6;}
1595 case $cache_file in
1596 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1597 *) . "./$cache_file";;
1598 esac
1599 fi
1600 else
1601 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1602 echo "$as_me: creating cache $cache_file" >&6;}
1603 >$cache_file
1604 fi
1605
1606 # Check that the precious variables saved in the cache have kept the same
1607 # value.
1608 ac_cache_corrupted=false
1609 for ac_var in $ac_precious_vars; do
1610 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1611 eval ac_new_set=\$ac_env_${ac_var}_set
1612 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1613 eval ac_new_val=\$ac_env_${ac_var}_value
1614 case $ac_old_set,$ac_new_set in
1615 set,)
1616 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1617 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1618 ac_cache_corrupted=: ;;
1619 ,set)
1620 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1621 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1622 ac_cache_corrupted=: ;;
1623 ,);;
1624 *)
1625 if test "x$ac_old_val" != "x$ac_new_val"; then
1626 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1627 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1628 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1629 echo "$as_me: former value: $ac_old_val" >&2;}
1630 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1631 echo "$as_me: current value: $ac_new_val" >&2;}
1632 ac_cache_corrupted=:
1633 fi;;
1634 esac
1635 # Pass precious variables to config.status.
1636 if test "$ac_new_set" = set; then
1637 case $ac_new_val in
1638 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1639 *) ac_arg=$ac_var=$ac_new_val ;;
1640 esac
1641 case " $ac_configure_args " in
1642 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1643 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1644 esac
1645 fi
1646 done
1647 if $ac_cache_corrupted; then
1648 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1649 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1650 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1651 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1652 { (exit 1); exit 1; }; }
1653 fi
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679 ac_ext=c
1680 ac_cpp='$CPP $CPPFLAGS'
1681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1684
1685
1686
1687
1688 ac_config_headers="$ac_config_headers config.h"
1689
1690
1691 ac_ext=c
1692 ac_cpp='$CPP $CPPFLAGS'
1693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1696 if test -n "$ac_tool_prefix"; then
1697 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1698 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1701 if test "${ac_cv_prog_CC+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704 if test -n "$CC"; then
1705 ac_cv_prog_CC="$CC" # Let the user override the test.
1706 else
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 for as_dir in $PATH
1709 do
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1714 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 break 2
1717 fi
1718 done
1719 done
1720 IFS=$as_save_IFS
1721
1722 fi
1723 fi
1724 CC=$ac_cv_prog_CC
1725 if test -n "$CC"; then
1726 { echo "$as_me:$LINENO: result: $CC" >&5
1727 echo "${ECHO_T}$CC" >&6; }
1728 else
1729 { echo "$as_me:$LINENO: result: no" >&5
1730 echo "${ECHO_T}no" >&6; }
1731 fi
1732
1733
1734 fi
1735 if test -z "$ac_cv_prog_CC"; then
1736 ac_ct_CC=$CC
1737 # Extract the first word of "gcc", so it can be a program name with args.
1738 set dummy gcc; ac_word=$2
1739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1743 else
1744 if test -n "$ac_ct_CC"; then
1745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1746 else
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 for as_dir in $PATH
1749 do
1750 IFS=$as_save_IFS
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1754 ac_cv_prog_ac_ct_CC="gcc"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 break 2
1757 fi
1758 done
1759 done
1760 IFS=$as_save_IFS
1761
1762 fi
1763 fi
1764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1765 if test -n "$ac_ct_CC"; then
1766 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1767 echo "${ECHO_T}$ac_ct_CC" >&6; }
1768 else
1769 { echo "$as_me:$LINENO: result: no" >&5
1770 echo "${ECHO_T}no" >&6; }
1771 fi
1772
1773 if test "x$ac_ct_CC" = x; then
1774 CC=""
1775 else
1776 case $cross_compiling:$ac_tool_warned in
1777 yes:)
1778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1779 whose name does not start with the host triplet. If you think this
1780 configuration is useful to you, please write to [email protected]." >&5
1781 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1782 whose name does not start with the host triplet. If you think this
1783 configuration is useful to you, please write to [email protected]." >&2;}
1784 ac_tool_warned=yes ;;
1785 esac
1786 CC=$ac_ct_CC
1787 fi
1788 else
1789 CC="$ac_cv_prog_CC"
1790 fi
1791
1792 if test -z "$CC"; then
1793 if test -n "$ac_tool_prefix"; then
1794 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1795 set dummy ${ac_tool_prefix}cc; ac_word=$2
1796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1798 if test "${ac_cv_prog_CC+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 else
1801 if test -n "$CC"; then
1802 ac_cv_prog_CC="$CC" # Let the user override the test.
1803 else
1804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805 for as_dir in $PATH
1806 do
1807 IFS=$as_save_IFS
1808 test -z "$as_dir" && as_dir=.
1809 for ac_exec_ext in '' $ac_executable_extensions; do
1810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1811 ac_cv_prog_CC="${ac_tool_prefix}cc"
1812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813 break 2
1814 fi
1815 done
1816 done
1817 IFS=$as_save_IFS
1818
1819 fi
1820 fi
1821 CC=$ac_cv_prog_CC
1822 if test -n "$CC"; then
1823 { echo "$as_me:$LINENO: result: $CC" >&5
1824 echo "${ECHO_T}$CC" >&6; }
1825 else
1826 { echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6; }
1828 fi
1829
1830
1831 fi
1832 fi
1833 if test -z "$CC"; then
1834 # Extract the first word of "cc", so it can be a program name with args.
1835 set dummy cc; ac_word=$2
1836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1838 if test "${ac_cv_prog_CC+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 else
1841 if test -n "$CC"; then
1842 ac_cv_prog_CC="$CC" # Let the user override the test.
1843 else
1844 ac_prog_rejected=no
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 for as_dir in $PATH
1847 do
1848 IFS=$as_save_IFS
1849 test -z "$as_dir" && as_dir=.
1850 for ac_exec_ext in '' $ac_executable_extensions; do
1851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1852 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1853 ac_prog_rejected=yes
1854 continue
1855 fi
1856 ac_cv_prog_CC="cc"
1857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858 break 2
1859 fi
1860 done
1861 done
1862 IFS=$as_save_IFS
1863
1864 if test $ac_prog_rejected = yes; then
1865 # We found a bogon in the path, so make sure we never use it.
1866 set dummy $ac_cv_prog_CC
1867 shift
1868 if test $# != 0; then
1869 # We chose a different compiler from the bogus one.
1870 # However, it has the same basename, so the bogon will be chosen
1871 # first if we set CC to just the basename; use the full file name.
1872 shift
1873 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1874 fi
1875 fi
1876 fi
1877 fi
1878 CC=$ac_cv_prog_CC
1879 if test -n "$CC"; then
1880 { echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6; }
1882 else
1883 { echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6; }
1885 fi
1886
1887
1888 fi
1889 if test -z "$CC"; then
1890 if test -n "$ac_tool_prefix"; then
1891 for ac_prog in cl.exe
1892 do
1893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1897 if test "${ac_cv_prog_CC+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 else
1900 if test -n "$CC"; then
1901 ac_cv_prog_CC="$CC" # Let the user override the test.
1902 else
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1905 do
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
1908 for ac_exec_ext in '' $ac_executable_extensions; do
1909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1910 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 break 2
1913 fi
1914 done
1915 done
1916 IFS=$as_save_IFS
1917
1918 fi
1919 fi
1920 CC=$ac_cv_prog_CC
1921 if test -n "$CC"; then
1922 { echo "$as_me:$LINENO: result: $CC" >&5
1923 echo "${ECHO_T}$CC" >&6; }
1924 else
1925 { echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6; }
1927 fi
1928
1929
1930 test -n "$CC" && break
1931 done
1932 fi
1933 if test -z "$CC"; then
1934 ac_ct_CC=$CC
1935 for ac_prog in cl.exe
1936 do
1937 # Extract the first word of "$ac_prog", so it can be a program name with args.
1938 set dummy $ac_prog; ac_word=$2
1939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1941 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 else
1944 if test -n "$ac_ct_CC"; then
1945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1946 else
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 for as_dir in $PATH
1949 do
1950 IFS=$as_save_IFS
1951 test -z "$as_dir" && as_dir=.
1952 for ac_exec_ext in '' $ac_executable_extensions; do
1953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1954 ac_cv_prog_ac_ct_CC="$ac_prog"
1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 break 2
1957 fi
1958 done
1959 done
1960 IFS=$as_save_IFS
1961
1962 fi
1963 fi
1964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1965 if test -n "$ac_ct_CC"; then
1966 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1967 echo "${ECHO_T}$ac_ct_CC" >&6; }
1968 else
1969 { echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6; }
1971 fi
1972
1973
1974 test -n "$ac_ct_CC" && break
1975 done
1976
1977 if test "x$ac_ct_CC" = x; then
1978 CC=""
1979 else
1980 case $cross_compiling:$ac_tool_warned in
1981 yes:)
1982 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1983 whose name does not start with the host triplet. If you think this
1984 configuration is useful to you, please write to [email protected]." >&5
1985 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1986 whose name does not start with the host triplet. If you think this
1987 configuration is useful to you, please write to [email protected]." >&2;}
1988 ac_tool_warned=yes ;;
1989 esac
1990 CC=$ac_ct_CC
1991 fi
1992 fi
1993
1994 fi
1995
1996
1997 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1998 See \`config.log' for more details." >&5
1999 echo "$as_me: error: no acceptable C compiler found in \$PATH
2000 See \`config.log' for more details." >&2;}
2001 { (exit 1); exit 1; }; }
2002
2003 # Provide some information about the compiler.
2004 echo "$as_me:$LINENO: checking for C compiler version" >&5
2005 ac_compiler=`set X $ac_compile; echo $2`
2006 { (ac_try="$ac_compiler --version >&5"
2007 case "(($ac_try" in
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2010 esac
2011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2012 (eval "$ac_compiler --version >&5") 2>&5
2013 ac_status=$?
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }
2016 { (ac_try="$ac_compiler -v >&5"
2017 case "(($ac_try" in
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2020 esac
2021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2022 (eval "$ac_compiler -v >&5") 2>&5
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }
2026 { (ac_try="$ac_compiler -V >&5"
2027 case "(($ac_try" in
2028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2029 *) ac_try_echo=$ac_try;;
2030 esac
2031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2032 (eval "$ac_compiler -V >&5") 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }
2036
2037 cat >conftest.$ac_ext <<_ACEOF
2038 /* confdefs.h. */
2039 _ACEOF
2040 cat confdefs.h >>conftest.$ac_ext
2041 cat >>conftest.$ac_ext <<_ACEOF
2042 /* end confdefs.h. */
2043
2044 int
2045 main ()
2046 {
2047
2048 ;
2049 return 0;
2050 }
2051 _ACEOF
2052 ac_clean_files_save=$ac_clean_files
2053 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2054 # Try to create an executable without -o first, disregard a.out.
2055 # It will help us diagnose broken compilers, and finding out an intuition
2056 # of exeext.
2057 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2058 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2059 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2060 #
2061 # List of possible output files, starting from the most likely.
2062 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2063 # only as a last resort. b.out is created by i960 compilers.
2064 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2065 #
2066 # The IRIX 6 linker writes into existing files which may not be
2067 # executable, retaining their permissions. Remove them first so a
2068 # subsequent execution test works.
2069 ac_rmfiles=
2070 for ac_file in $ac_files
2071 do
2072 case $ac_file in
2073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2074 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2075 esac
2076 done
2077 rm -f $ac_rmfiles
2078
2079 if { (ac_try="$ac_link_default"
2080 case "(($ac_try" in
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2083 esac
2084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2085 (eval "$ac_link_default") 2>&5
2086 ac_status=$?
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; then
2089 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2090 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2091 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2092 # so that the user can short-circuit this test for compilers unknown to
2093 # Autoconf.
2094 for ac_file in $ac_files ''
2095 do
2096 test -f "$ac_file" || continue
2097 case $ac_file in
2098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2099 ;;
2100 [ab].out )
2101 # We found the default executable, but exeext='' is most
2102 # certainly right.
2103 break;;
2104 *.* )
2105 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2106 then :; else
2107 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2108 fi
2109 # We set ac_cv_exeext here because the later test for it is not
2110 # safe: cross compilers may not add the suffix if given an `-o'
2111 # argument, so we may need to know it at that point already.
2112 # Even if this section looks crufty: it has the advantage of
2113 # actually working.
2114 break;;
2115 * )
2116 break;;
2117 esac
2118 done
2119 test "$ac_cv_exeext" = no && ac_cv_exeext=
2120
2121 else
2122 ac_file=''
2123 fi
2124
2125 { echo "$as_me:$LINENO: result: $ac_file" >&5
2126 echo "${ECHO_T}$ac_file" >&6; }
2127 if test -z "$ac_file"; then
2128 echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.$ac_ext >&5
2130
2131 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: C compiler cannot create executables
2134 See \`config.log' for more details." >&2;}
2135 { (exit 77); exit 77; }; }
2136 fi
2137
2138 ac_exeext=$ac_cv_exeext
2139
2140 # Check that the compiler produces executables we can run. If not, either
2141 # the compiler is broken, or we cross compile.
2142 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2143 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2144 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2145 # If not cross compiling, check that we can run a simple program.
2146 if test "$cross_compiling" != yes; then
2147 if { ac_try='./$ac_file'
2148 { (case "(($ac_try" in
2149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2150 *) ac_try_echo=$ac_try;;
2151 esac
2152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2153 (eval "$ac_try") 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; }; then
2157 cross_compiling=no
2158 else
2159 if test "$cross_compiling" = maybe; then
2160 cross_compiling=yes
2161 else
2162 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2163 If you meant to cross compile, use \`--host'.
2164 See \`config.log' for more details." >&5
2165 echo "$as_me: error: cannot run C compiled programs.
2166 If you meant to cross compile, use \`--host'.
2167 See \`config.log' for more details." >&2;}
2168 { (exit 1); exit 1; }; }
2169 fi
2170 fi
2171 fi
2172 { echo "$as_me:$LINENO: result: yes" >&5
2173 echo "${ECHO_T}yes" >&6; }
2174
2175 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2176 ac_clean_files=$ac_clean_files_save
2177 # Check that the compiler produces executables we can run. If not, either
2178 # the compiler is broken, or we cross compile.
2179 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2180 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2181 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2182 echo "${ECHO_T}$cross_compiling" >&6; }
2183
2184 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2185 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2186 if { (ac_try="$ac_link"
2187 case "(($ac_try" in
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2190 esac
2191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2192 (eval "$ac_link") 2>&5
2193 ac_status=$?
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; then
2196 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2197 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2198 # work properly (i.e., refer to `conftest.exe'), while it won't with
2199 # `rm'.
2200 for ac_file in conftest.exe conftest conftest.*; do
2201 test -f "$ac_file" || continue
2202 case $ac_file in
2203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2204 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2205 break;;
2206 * ) break;;
2207 esac
2208 done
2209 else
2210 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2211 See \`config.log' for more details." >&5
2212 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2213 See \`config.log' for more details." >&2;}
2214 { (exit 1); exit 1; }; }
2215 fi
2216
2217 rm -f conftest$ac_cv_exeext
2218 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2219 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2220
2221 rm -f conftest.$ac_ext
2222 EXEEXT=$ac_cv_exeext
2223 ac_exeext=$EXEEXT
2224 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2225 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2226 if test "${ac_cv_objext+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
2229 cat >conftest.$ac_ext <<_ACEOF
2230 /* confdefs.h. */
2231 _ACEOF
2232 cat confdefs.h >>conftest.$ac_ext
2233 cat >>conftest.$ac_ext <<_ACEOF
2234 /* end confdefs.h. */
2235
2236 int
2237 main ()
2238 {
2239
2240 ;
2241 return 0;
2242 }
2243 _ACEOF
2244 rm -f conftest.o conftest.obj
2245 if { (ac_try="$ac_compile"
2246 case "(($ac_try" in
2247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248 *) ac_try_echo=$ac_try;;
2249 esac
2250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2251 (eval "$ac_compile") 2>&5
2252 ac_status=$?
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; then
2255 for ac_file in conftest.o conftest.obj conftest.*; do
2256 test -f "$ac_file" || continue;
2257 case $ac_file in
2258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2259 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2260 break;;
2261 esac
2262 done
2263 else
2264 echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2266
2267 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2270 See \`config.log' for more details." >&2;}
2271 { (exit 1); exit 1; }; }
2272 fi
2273
2274 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2275 fi
2276 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2277 echo "${ECHO_T}$ac_cv_objext" >&6; }
2278 OBJEXT=$ac_cv_objext
2279 ac_objext=$OBJEXT
2280 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2281 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2282 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285 cat >conftest.$ac_ext <<_ACEOF
2286 /* confdefs.h. */
2287 _ACEOF
2288 cat confdefs.h >>conftest.$ac_ext
2289 cat >>conftest.$ac_ext <<_ACEOF
2290 /* end confdefs.h. */
2291
2292 int
2293 main ()
2294 {
2295 #ifndef __GNUC__
2296 choke me
2297 #endif
2298
2299 ;
2300 return 0;
2301 }
2302 _ACEOF
2303 rm -f conftest.$ac_objext
2304 if { (ac_try="$ac_compile"
2305 case "(($ac_try" in
2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307 *) ac_try_echo=$ac_try;;
2308 esac
2309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2310 (eval "$ac_compile") 2>conftest.er1
2311 ac_status=$?
2312 grep -v '^ *+' conftest.er1 >conftest.err
2313 rm -f conftest.er1
2314 cat conftest.err >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); } && {
2317 test -z "$ac_c_werror_flag" ||
2318 test ! -s conftest.err
2319 } && test -s conftest.$ac_objext; then
2320 ac_compiler_gnu=yes
2321 else
2322 echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2324
2325 ac_compiler_gnu=no
2326 fi
2327
2328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2330
2331 fi
2332 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2333 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2334 GCC=`test $ac_compiler_gnu = yes && echo yes`
2335 ac_test_CFLAGS=${CFLAGS+set}
2336 ac_save_CFLAGS=$CFLAGS
2337 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2338 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_cc_g+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342 ac_save_c_werror_flag=$ac_c_werror_flag
2343 ac_c_werror_flag=yes
2344 ac_cv_prog_cc_g=no
2345 CFLAGS="-g"
2346 cat >conftest.$ac_ext <<_ACEOF
2347 /* confdefs.h. */
2348 _ACEOF
2349 cat confdefs.h >>conftest.$ac_ext
2350 cat >>conftest.$ac_ext <<_ACEOF
2351 /* end confdefs.h. */
2352
2353 int
2354 main ()
2355 {
2356
2357 ;
2358 return 0;
2359 }
2360 _ACEOF
2361 rm -f conftest.$ac_objext
2362 if { (ac_try="$ac_compile"
2363 case "(($ac_try" in
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2366 esac
2367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2368 (eval "$ac_compile") 2>conftest.er1
2369 ac_status=$?
2370 grep -v '^ *+' conftest.er1 >conftest.err
2371 rm -f conftest.er1
2372 cat conftest.err >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); } && {
2375 test -z "$ac_c_werror_flag" ||
2376 test ! -s conftest.err
2377 } && test -s conftest.$ac_objext; then
2378 ac_cv_prog_cc_g=yes
2379 else
2380 echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2382
2383 CFLAGS=""
2384 cat >conftest.$ac_ext <<_ACEOF
2385 /* confdefs.h. */
2386 _ACEOF
2387 cat confdefs.h >>conftest.$ac_ext
2388 cat >>conftest.$ac_ext <<_ACEOF
2389 /* end confdefs.h. */
2390
2391 int
2392 main ()
2393 {
2394
2395 ;
2396 return 0;
2397 }
2398 _ACEOF
2399 rm -f conftest.$ac_objext
2400 if { (ac_try="$ac_compile"
2401 case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404 esac
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_compile") 2>conftest.er1
2407 ac_status=$?
2408 grep -v '^ *+' conftest.er1 >conftest.err
2409 rm -f conftest.er1
2410 cat conftest.err >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } && {
2413 test -z "$ac_c_werror_flag" ||
2414 test ! -s conftest.err
2415 } && test -s conftest.$ac_objext; then
2416 :
2417 else
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2420
2421 ac_c_werror_flag=$ac_save_c_werror_flag
2422 CFLAGS="-g"
2423 cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h. */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2429
2430 int
2431 main ()
2432 {
2433
2434 ;
2435 return 0;
2436 }
2437 _ACEOF
2438 rm -f conftest.$ac_objext
2439 if { (ac_try="$ac_compile"
2440 case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2443 esac
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_compile") 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } && {
2452 test -z "$ac_c_werror_flag" ||
2453 test ! -s conftest.err
2454 } && test -s conftest.$ac_objext; then
2455 ac_cv_prog_cc_g=yes
2456 else
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2459
2460
2461 fi
2462
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464 fi
2465
2466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467 fi
2468
2469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 ac_c_werror_flag=$ac_save_c_werror_flag
2471 fi
2472 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2473 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2474 if test "$ac_test_CFLAGS" = set; then
2475 CFLAGS=$ac_save_CFLAGS
2476 elif test $ac_cv_prog_cc_g = yes; then
2477 if test "$GCC" = yes; then
2478 CFLAGS="-g -O2"
2479 else
2480 CFLAGS="-g"
2481 fi
2482 else
2483 if test "$GCC" = yes; then
2484 CFLAGS="-O2"
2485 else
2486 CFLAGS=
2487 fi
2488 fi
2489 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2490 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2491 if test "${ac_cv_prog_cc_c89+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 else
2494 ac_cv_prog_cc_c89=no
2495 ac_save_CC=$CC
2496 cat >conftest.$ac_ext <<_ACEOF
2497 /* confdefs.h. */
2498 _ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h. */
2502 #include <stdarg.h>
2503 #include <stdio.h>
2504 #include <sys/types.h>
2505 #include <sys/stat.h>
2506 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2507 struct buf { int x; };
2508 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2509 static char *e (p, i)
2510 char **p;
2511 int i;
2512 {
2513 return p[i];
2514 }
2515 static char *f (char * (*g) (char **, int), char **p, ...)
2516 {
2517 char *s;
2518 va_list v;
2519 va_start (v,p);
2520 s = g (p, va_arg (v,int));
2521 va_end (v);
2522 return s;
2523 }
2524
2525 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2526 function prototypes and stuff, but not '\xHH' hex character constants.
2527 These don't provoke an error unfortunately, instead are silently treated
2528 as 'x'. The following induces an error, until -std is added to get
2529 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2530 array size at least. It's necessary to write '\x00'==0 to get something
2531 that's true only with -std. */
2532 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2533
2534 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2535 inside strings and character constants. */
2536 #define FOO(x) 'x'
2537 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2538
2539 int test (int i, double x);
2540 struct s1 {int (*f) (int a);};
2541 struct s2 {int (*f) (double a);};
2542 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2543 int argc;
2544 char **argv;
2545 int
2546 main ()
2547 {
2548 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2549 ;
2550 return 0;
2551 }
2552 _ACEOF
2553 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2554 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2555 do
2556 CC="$ac_save_CC $ac_arg"
2557 rm -f conftest.$ac_objext
2558 if { (ac_try="$ac_compile"
2559 case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2562 esac
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_compile") 2>conftest.er1
2565 ac_status=$?
2566 grep -v '^ *+' conftest.er1 >conftest.err
2567 rm -f conftest.er1
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } && {
2571 test -z "$ac_c_werror_flag" ||
2572 test ! -s conftest.err
2573 } && test -s conftest.$ac_objext; then
2574 ac_cv_prog_cc_c89=$ac_arg
2575 else
2576 echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2578
2579
2580 fi
2581
2582 rm -f core conftest.err conftest.$ac_objext
2583 test "x$ac_cv_prog_cc_c89" != "xno" && break
2584 done
2585 rm -f conftest.$ac_ext
2586 CC=$ac_save_CC
2587
2588 fi
2589 # AC_CACHE_VAL
2590 case "x$ac_cv_prog_cc_c89" in
2591 x)
2592 { echo "$as_me:$LINENO: result: none needed" >&5
2593 echo "${ECHO_T}none needed" >&6; } ;;
2594 xno)
2595 { echo "$as_me:$LINENO: result: unsupported" >&5
2596 echo "${ECHO_T}unsupported" >&6; } ;;
2597 *)
2598 CC="$CC $ac_cv_prog_cc_c89"
2599 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2600 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2601 esac
2602
2603
2604 ac_ext=c
2605 ac_cpp='$CPP $CPPFLAGS'
2606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609
2610 case $ac_cv_prog_cc_stdc in
2611 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2612 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2613 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_cc_c99+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617 ac_cv_prog_cc_c99=no
2618 ac_save_CC=$CC
2619 cat >conftest.$ac_ext <<_ACEOF
2620 /* confdefs.h. */
2621 _ACEOF
2622 cat confdefs.h >>conftest.$ac_ext
2623 cat >>conftest.$ac_ext <<_ACEOF
2624 /* end confdefs.h. */
2625 #include <stdarg.h>
2626 #include <stdbool.h>
2627 #include <stdlib.h>
2628 #include <wchar.h>
2629 #include <stdio.h>
2630
2631 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2632 #define debug(...) fprintf (stderr, __VA_ARGS__)
2633 #define showlist(...) puts (#__VA_ARGS__)
2634 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2635 static void
2636 test_varargs_macros (void)
2637 {
2638 int x = 1234;
2639 int y = 5678;
2640 debug ("Flag");
2641 debug ("X = %d\n", x);
2642 showlist (The first, second, and third items.);
2643 report (x>y, "x is %d but y is %d", x, y);
2644 }
2645
2646 // Check long long types.
2647 #define BIG64 18446744073709551615ull
2648 #define BIG32 4294967295ul
2649 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2650 #if !BIG_OK
2651 your preprocessor is broken;
2652 #endif
2653 #if BIG_OK
2654 #else
2655 your preprocessor is broken;
2656 #endif
2657 static long long int bignum = -9223372036854775807LL;
2658 static unsigned long long int ubignum = BIG64;
2659
2660 struct incomplete_array
2661 {
2662 int datasize;
2663 double data[];
2664 };
2665
2666 struct named_init {
2667 int number;
2668 const wchar_t *name;
2669 double average;
2670 };
2671
2672 typedef const char *ccp;
2673
2674 static inline int
2675 test_restrict (ccp restrict text)
2676 {
2677 // See if C++-style comments work.
2678 // Iterate through items via the restricted pointer.
2679 // Also check for declarations in for loops.
2680 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
2681 continue;
2682 return 0;
2683 }
2684
2685 // Check varargs and va_copy.
2686 static void
2687 test_varargs (const char *format, ...)
2688 {
2689 va_list args;
2690 va_start (args, format);
2691 va_list args_copy;
2692 va_copy (args_copy, args);
2693
2694 const char *str;
2695 int number;
2696 float fnumber;
2697
2698 while (*format)
2699 {
2700 switch (*format++)
2701 {
2702 case 's': // string
2703 str = va_arg (args_copy, const char *);
2704 break;
2705 case 'd': // int
2706 number = va_arg (args_copy, int);
2707 break;
2708 case 'f': // float
2709 fnumber = va_arg (args_copy, double);
2710 break;
2711 default:
2712 break;
2713 }
2714 }
2715 va_end (args_copy);
2716 va_end (args);
2717 }
2718
2719 int
2720 main ()
2721 {
2722
2723 // Check bool.
2724 _Bool success = false;
2725
2726 // Check restrict.
2727 if (test_restrict ("String literal") == 0)
2728 success = true;
2729 char *restrict newvar = "Another string";
2730
2731 // Check varargs.
2732 test_varargs ("s, d' f .", "string", 65, 34.234);
2733 test_varargs_macros ();
2734
2735 // Check flexible array members.
2736 struct incomplete_array *ia =
2737 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2738 ia->datasize = 10;
2739 for (int i = 0; i < ia->datasize; ++i)
2740 ia->data[i] = i * 1.234;
2741
2742 // Check named initializers.
2743 struct named_init ni = {
2744 .number = 34,
2745 .name = L"Test wide string",
2746 .average = 543.34343,
2747 };
2748
2749 ni.number = 58;
2750
2751 int dynamic_array[ni.number];
2752 dynamic_array[ni.number - 1] = 543;
2753
2754 // work around unused variable warnings
2755 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
2756 || dynamic_array[ni.number - 1] != 543);
2757
2758 ;
2759 return 0;
2760 }
2761 _ACEOF
2762 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
2763 do
2764 CC="$ac_save_CC $ac_arg"
2765 rm -f conftest.$ac_objext
2766 if { (ac_try="$ac_compile"
2767 case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2770 esac
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772 (eval "$ac_compile") 2>conftest.er1
2773 ac_status=$?
2774 grep -v '^ *+' conftest.er1 >conftest.err
2775 rm -f conftest.er1
2776 cat conftest.err >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } && {
2779 test -z "$ac_c_werror_flag" ||
2780 test ! -s conftest.err
2781 } && test -s conftest.$ac_objext; then
2782 ac_cv_prog_cc_c99=$ac_arg
2783 else
2784 echo "$as_me: failed program was:" >&5
2785 sed 's/^/| /' conftest.$ac_ext >&5
2786
2787
2788 fi
2789
2790 rm -f core conftest.err conftest.$ac_objext
2791 test "x$ac_cv_prog_cc_c99" != "xno" && break
2792 done
2793 rm -f conftest.$ac_ext
2794 CC=$ac_save_CC
2795
2796 fi
2797 # AC_CACHE_VAL
2798 case "x$ac_cv_prog_cc_c99" in
2799 x)
2800 { echo "$as_me:$LINENO: result: none needed" >&5
2801 echo "${ECHO_T}none needed" >&6; } ;;
2802 xno)
2803 { echo "$as_me:$LINENO: result: unsupported" >&5
2804 echo "${ECHO_T}unsupported" >&6; } ;;
2805 *)
2806 CC="$CC $ac_cv_prog_cc_c99"
2807 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
2808 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
2809 esac
2810 if test "x$ac_cv_prog_cc_c99" != xno; then
2811 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
2812 else
2813 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2814 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_cc_c89+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818 ac_cv_prog_cc_c89=no
2819 ac_save_CC=$CC
2820 cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h. */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2826 #include <stdarg.h>
2827 #include <stdio.h>
2828 #include <sys/types.h>
2829 #include <sys/stat.h>
2830 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2831 struct buf { int x; };
2832 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2833 static char *e (p, i)
2834 char **p;
2835 int i;
2836 {
2837 return p[i];
2838 }
2839 static char *f (char * (*g) (char **, int), char **p, ...)
2840 {
2841 char *s;
2842 va_list v;
2843 va_start (v,p);
2844 s = g (p, va_arg (v,int));
2845 va_end (v);
2846 return s;
2847 }
2848
2849 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2850 function prototypes and stuff, but not '\xHH' hex character constants.
2851 These don't provoke an error unfortunately, instead are silently treated
2852 as 'x'. The following induces an error, until -std is added to get
2853 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2854 array size at least. It's necessary to write '\x00'==0 to get something
2855 that's true only with -std. */
2856 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2857
2858 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2859 inside strings and character constants. */
2860 #define FOO(x) 'x'
2861 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2862
2863 int test (int i, double x);
2864 struct s1 {int (*f) (int a);};
2865 struct s2 {int (*f) (double a);};
2866 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2867 int argc;
2868 char **argv;
2869 int
2870 main ()
2871 {
2872 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2873 ;
2874 return 0;
2875 }
2876 _ACEOF
2877 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2878 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2879 do
2880 CC="$ac_save_CC $ac_arg"
2881 rm -f conftest.$ac_objext
2882 if { (ac_try="$ac_compile"
2883 case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compile") 2>conftest.er1
2889 ac_status=$?
2890 grep -v '^ *+' conftest.er1 >conftest.err
2891 rm -f conftest.er1
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } && {
2895 test -z "$ac_c_werror_flag" ||
2896 test ! -s conftest.err
2897 } && test -s conftest.$ac_objext; then
2898 ac_cv_prog_cc_c89=$ac_arg
2899 else
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903
2904 fi
2905
2906 rm -f core conftest.err conftest.$ac_objext
2907 test "x$ac_cv_prog_cc_c89" != "xno" && break
2908 done
2909 rm -f conftest.$ac_ext
2910 CC=$ac_save_CC
2911
2912 fi
2913 # AC_CACHE_VAL
2914 case "x$ac_cv_prog_cc_c89" in
2915 x)
2916 { echo "$as_me:$LINENO: result: none needed" >&5
2917 echo "${ECHO_T}none needed" >&6; } ;;
2918 xno)
2919 { echo "$as_me:$LINENO: result: unsupported" >&5
2920 echo "${ECHO_T}unsupported" >&6; } ;;
2921 *)
2922 CC="$CC $ac_cv_prog_cc_c89"
2923 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2924 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2925 esac
2926 if test "x$ac_cv_prog_cc_c89" != xno; then
2927 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
2928 else
2929 ac_cv_prog_cc_stdc=no
2930 fi
2931
2932
2933 fi
2934
2935 ;;
2936 esac
2937 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
2938 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
2939 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 fi
2942
2943 case $ac_cv_prog_cc_stdc in
2944 no) { echo "$as_me:$LINENO: result: unsupported" >&5
2945 echo "${ECHO_T}unsupported" >&6; } ;;
2946 '') { echo "$as_me:$LINENO: result: none needed" >&5
2947 echo "${ECHO_T}none needed" >&6; } ;;
2948 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2949 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
2950 esac
2951
2952
2953
2954 ac_ext=c
2955 ac_cpp='$CPP $CPPFLAGS'
2956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2959 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2960 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2961 # On Suns, sometimes $CPP names a directory.
2962 if test -n "$CPP" && test -d "$CPP"; then
2963 CPP=
2964 fi
2965 if test -z "$CPP"; then
2966 if test "${ac_cv_prog_CPP+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969 # Double quotes because CPP needs to be expanded
2970 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2971 do
2972 ac_preproc_ok=false
2973 for ac_c_preproc_warn_flag in '' yes
2974 do
2975 # Use a header file that comes with gcc, so configuring glibc
2976 # with a fresh cross-compiler works.
2977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2978 # <limits.h> exists even on freestanding compilers.
2979 # On the NeXT, cc -E runs the code through the compiler's parser,
2980 # not just through cpp. "Syntax error" is here to catch this case.
2981 cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h. */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2987 #ifdef __STDC__
2988 # include <limits.h>
2989 #else
2990 # include <assert.h>
2991 #endif
2992 Syntax error
2993 _ACEOF
2994 if { (ac_try="$ac_cpp conftest.$ac_ext"
2995 case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998 esac
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3001 ac_status=$?
3002 grep -v '^ *+' conftest.er1 >conftest.err
3003 rm -f conftest.er1
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } >/dev/null && {
3007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3008 test ! -s conftest.err
3009 }; then
3010 :
3011 else
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3014
3015 # Broken: fails on valid input.
3016 continue
3017 fi
3018
3019 rm -f conftest.err conftest.$ac_ext
3020
3021 # OK, works on sane cases. Now check whether nonexistent headers
3022 # can be detected and how.
3023 cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h. */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3029 #include <ac_nonexistent.h>
3030 _ACEOF
3031 if { (ac_try="$ac_cpp conftest.$ac_ext"
3032 case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035 esac
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } >/dev/null && {
3044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3045 test ! -s conftest.err
3046 }; then
3047 # Broken: success on invalid input.
3048 continue
3049 else
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 # Passes both tests.
3054 ac_preproc_ok=:
3055 break
3056 fi
3057
3058 rm -f conftest.err conftest.$ac_ext
3059
3060 done
3061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3062 rm -f conftest.err conftest.$ac_ext
3063 if $ac_preproc_ok; then
3064 break
3065 fi
3066
3067 done
3068 ac_cv_prog_CPP=$CPP
3069
3070 fi
3071 CPP=$ac_cv_prog_CPP
3072 else
3073 ac_cv_prog_CPP=$CPP
3074 fi
3075 { echo "$as_me:$LINENO: result: $CPP" >&5
3076 echo "${ECHO_T}$CPP" >&6; }
3077 ac_preproc_ok=false
3078 for ac_c_preproc_warn_flag in '' yes
3079 do
3080 # Use a header file that comes with gcc, so configuring glibc
3081 # with a fresh cross-compiler works.
3082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3083 # <limits.h> exists even on freestanding compilers.
3084 # On the NeXT, cc -E runs the code through the compiler's parser,
3085 # not just through cpp. "Syntax error" is here to catch this case.
3086 cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h. */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3092 #ifdef __STDC__
3093 # include <limits.h>
3094 #else
3095 # include <assert.h>
3096 #endif
3097 Syntax error
3098 _ACEOF
3099 if { (ac_try="$ac_cpp conftest.$ac_ext"
3100 case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3106 ac_status=$?
3107 grep -v '^ *+' conftest.er1 >conftest.err
3108 rm -f conftest.er1
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } >/dev/null && {
3112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3113 test ! -s conftest.err
3114 }; then
3115 :
3116 else
3117 echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120 # Broken: fails on valid input.
3121 continue
3122 fi
3123
3124 rm -f conftest.err conftest.$ac_ext
3125
3126 # OK, works on sane cases. Now check whether nonexistent headers
3127 # can be detected and how.
3128 cat >conftest.$ac_ext <<_ACEOF
3129 /* confdefs.h. */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3134 #include <ac_nonexistent.h>
3135 _ACEOF
3136 if { (ac_try="$ac_cpp conftest.$ac_ext"
3137 case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } >/dev/null && {
3149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3150 test ! -s conftest.err
3151 }; then
3152 # Broken: success on invalid input.
3153 continue
3154 else
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 # Passes both tests.
3159 ac_preproc_ok=:
3160 break
3161 fi
3162
3163 rm -f conftest.err conftest.$ac_ext
3164
3165 done
3166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3167 rm -f conftest.err conftest.$ac_ext
3168 if $ac_preproc_ok; then
3169 :
3170 else
3171 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3172 See \`config.log' for more details." >&5
3173 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3174 See \`config.log' for more details." >&2;}
3175 { (exit 1); exit 1; }; }
3176 fi
3177
3178 ac_ext=c
3179 ac_cpp='$CPP $CPPFLAGS'
3180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3183
3184
3185 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3186 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3187 if test "${ac_cv_path_GREP+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190 # Extract the first word of "grep ggrep" to use in msg output
3191 if test -z "$GREP"; then
3192 set dummy grep ggrep; ac_prog_name=$2
3193 if test "${ac_cv_path_GREP+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196 ac_path_GREP_found=false
3197 # Loop through the user's path and test for each of PROGNAME-LIST
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3200 do
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_prog in grep ggrep; do
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3206 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3207 # Check for GNU ac_path_GREP and select it if it is found.
3208 # Check for GNU $ac_path_GREP
3209 case `"$ac_path_GREP" --version 2>&1` in
3210 *GNU*)
3211 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3212 *)
3213 ac_count=0
3214 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3215 while :
3216 do
3217 cat "conftest.in" "conftest.in" >"conftest.tmp"
3218 mv "conftest.tmp" "conftest.in"
3219 cp "conftest.in" "conftest.nl"
3220 echo 'GREP' >> "conftest.nl"
3221 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3222 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3223 ac_count=`expr $ac_count + 1`
3224 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3225 # Best one so far, save it but keep looking for a better one
3226 ac_cv_path_GREP="$ac_path_GREP"
3227 ac_path_GREP_max=$ac_count
3228 fi
3229 # 10*(2^10) chars as input seems more than enough
3230 test $ac_count -gt 10 && break
3231 done
3232 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3233 esac
3234
3235
3236 $ac_path_GREP_found && break 3
3237 done
3238 done
3239
3240 done
3241 IFS=$as_save_IFS
3242
3243
3244 fi
3245
3246 GREP="$ac_cv_path_GREP"
3247 if test -z "$GREP"; then
3248 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3249 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3250 { (exit 1); exit 1; }; }
3251 fi
3252
3253 else
3254 ac_cv_path_GREP=$GREP
3255 fi
3256
3257
3258 fi
3259 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3260 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3261 GREP="$ac_cv_path_GREP"
3262
3263
3264 { echo "$as_me:$LINENO: checking for egrep" >&5
3265 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3266 if test "${ac_cv_path_EGREP+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3270 then ac_cv_path_EGREP="$GREP -E"
3271 else
3272 # Extract the first word of "egrep" to use in msg output
3273 if test -z "$EGREP"; then
3274 set dummy egrep; ac_prog_name=$2
3275 if test "${ac_cv_path_EGREP+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 ac_path_EGREP_found=false
3279 # Loop through the user's path and test for each of PROGNAME-LIST
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3282 do
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 for ac_prog in egrep; do
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3288 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3289 # Check for GNU ac_path_EGREP and select it if it is found.
3290 # Check for GNU $ac_path_EGREP
3291 case `"$ac_path_EGREP" --version 2>&1` in
3292 *GNU*)
3293 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3294 *)
3295 ac_count=0
3296 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3297 while :
3298 do
3299 cat "conftest.in" "conftest.in" >"conftest.tmp"
3300 mv "conftest.tmp" "conftest.in"
3301 cp "conftest.in" "conftest.nl"
3302 echo 'EGREP' >> "conftest.nl"
3303 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3305 ac_count=`expr $ac_count + 1`
3306 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3307 # Best one so far, save it but keep looking for a better one
3308 ac_cv_path_EGREP="$ac_path_EGREP"
3309 ac_path_EGREP_max=$ac_count
3310 fi
3311 # 10*(2^10) chars as input seems more than enough
3312 test $ac_count -gt 10 && break
3313 done
3314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3315 esac
3316
3317
3318 $ac_path_EGREP_found && break 3
3319 done
3320 done
3321
3322 done
3323 IFS=$as_save_IFS
3324
3325
3326 fi
3327
3328 EGREP="$ac_cv_path_EGREP"
3329 if test -z "$EGREP"; then
3330 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3331 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3332 { (exit 1); exit 1; }; }
3333 fi
3334
3335 else
3336 ac_cv_path_EGREP=$EGREP
3337 fi
3338
3339
3340 fi
3341 fi
3342 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3343 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3344 EGREP="$ac_cv_path_EGREP"
3345
3346
3347 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3348 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3349 if test "${ac_cv_header_stdc+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352 cat >conftest.$ac_ext <<_ACEOF
3353 /* confdefs.h. */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3358 #include <stdlib.h>
3359 #include <stdarg.h>
3360 #include <string.h>
3361 #include <float.h>
3362
3363 int
3364 main ()
3365 {
3366
3367 ;
3368 return 0;
3369 }
3370 _ACEOF
3371 rm -f conftest.$ac_objext
3372 if { (ac_try="$ac_compile"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378 (eval "$ac_compile") 2>conftest.er1
3379 ac_status=$?
3380 grep -v '^ *+' conftest.er1 >conftest.err
3381 rm -f conftest.er1
3382 cat conftest.err >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } && {
3385 test -z "$ac_c_werror_flag" ||
3386 test ! -s conftest.err
3387 } && test -s conftest.$ac_objext; then
3388 ac_cv_header_stdc=yes
3389 else
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3392
3393 ac_cv_header_stdc=no
3394 fi
3395
3396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397
3398 if test $ac_cv_header_stdc = yes; then
3399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3400 cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h. */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 #include <string.h>
3407
3408 _ACEOF
3409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3410 $EGREP "memchr" >/dev/null 2>&1; then
3411 :
3412 else
3413 ac_cv_header_stdc=no
3414 fi
3415 rm -f conftest*
3416
3417 fi
3418
3419 if test $ac_cv_header_stdc = yes; then
3420 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3421 cat >conftest.$ac_ext <<_ACEOF
3422 /* confdefs.h. */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3427 #include <stdlib.h>
3428
3429 _ACEOF
3430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3431 $EGREP "free" >/dev/null 2>&1; then
3432 :
3433 else
3434 ac_cv_header_stdc=no
3435 fi
3436 rm -f conftest*
3437
3438 fi
3439
3440 if test $ac_cv_header_stdc = yes; then
3441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3442 if test "$cross_compiling" = yes; then
3443 :
3444 else
3445 cat >conftest.$ac_ext <<_ACEOF
3446 /* confdefs.h. */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3451 #include <ctype.h>
3452 #include <stdlib.h>
3453 #if ((' ' & 0x0FF) == 0x020)
3454 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3455 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3456 #else
3457 # define ISLOWER(c) \
3458 (('a' <= (c) && (c) <= 'i') \
3459 || ('j' <= (c) && (c) <= 'r') \
3460 || ('s' <= (c) && (c) <= 'z'))
3461 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3462 #endif
3463
3464 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3465 int
3466 main ()
3467 {
3468 int i;
3469 for (i = 0; i < 256; i++)
3470 if (XOR (islower (i), ISLOWER (i))
3471 || toupper (i) != TOUPPER (i))
3472 return 2;
3473 return 0;
3474 }
3475 _ACEOF
3476 rm -f conftest$ac_exeext
3477 if { (ac_try="$ac_link"
3478 case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481 esac
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_link") 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3487 { (case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490 esac
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492 (eval "$ac_try") 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3496 :
3497 else
3498 echo "$as_me: program exited with status $ac_status" >&5
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502 ( exit $ac_status )
3503 ac_cv_header_stdc=no
3504 fi
3505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3506 fi
3507
3508
3509 fi
3510 fi
3511 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3512 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3513 if test $ac_cv_header_stdc = yes; then
3514
3515 cat >>confdefs.h <<\_ACEOF
3516 #define STDC_HEADERS 1
3517 _ACEOF
3518
3519 fi
3520
3521 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3522 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3523 if test "${ac_cv_search_strerror+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 else
3526 ac_func_search_save_LIBS=$LIBS
3527 cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h. */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3533
3534 /* Override any GCC internal prototype to avoid an error.
3535 Use char because int might match the return type of a GCC
3536 builtin and then its argument prototype would still apply. */
3537 #ifdef __cplusplus
3538 extern "C"
3539 #endif
3540 char strerror ();
3541 int
3542 main ()
3543 {
3544 return strerror ();
3545 ;
3546 return 0;
3547 }
3548 _ACEOF
3549 for ac_lib in '' cposix; do
3550 if test -z "$ac_lib"; then
3551 ac_res="none required"
3552 else
3553 ac_res=-l$ac_lib
3554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3555 fi
3556 rm -f conftest.$ac_objext conftest$ac_exeext
3557 if { (ac_try="$ac_link"
3558 case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561 esac
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563 (eval "$ac_link") 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } && {
3570 test -z "$ac_c_werror_flag" ||
3571 test ! -s conftest.err
3572 } && test -s conftest$ac_exeext &&
3573 $as_test_x conftest$ac_exeext; then
3574 ac_cv_search_strerror=$ac_res
3575 else
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579
3580 fi
3581
3582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3583 conftest$ac_exeext
3584 if test "${ac_cv_search_strerror+set}" = set; then
3585 break
3586 fi
3587 done
3588 if test "${ac_cv_search_strerror+set}" = set; then
3589 :
3590 else
3591 ac_cv_search_strerror=no
3592 fi
3593 rm conftest.$ac_ext
3594 LIBS=$ac_func_search_save_LIBS
3595 fi
3596 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3597 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3598 ac_res=$ac_cv_search_strerror
3599 if test "$ac_res" != no; then
3600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3601
3602 fi
3603
3604
3605 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3616 inttypes.h stdint.h unistd.h
3617 do
3618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624 cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h. */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3630 $ac_includes_default
3631
3632 #include <$ac_header>
3633 _ACEOF
3634 rm -f conftest.$ac_objext
3635 if { (ac_try="$ac_compile"
3636 case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639 esac
3640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3641 (eval "$ac_compile") 2>conftest.er1
3642 ac_status=$?
3643 grep -v '^ *+' conftest.er1 >conftest.err
3644 rm -f conftest.er1
3645 cat conftest.err >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } && {
3648 test -z "$ac_c_werror_flag" ||
3649 test ! -s conftest.err
3650 } && test -s conftest.$ac_objext; then
3651 eval "$as_ac_Header=yes"
3652 else
3653 echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3655
3656 eval "$as_ac_Header=no"
3657 fi
3658
3659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660 fi
3661 ac_res=`eval echo '${'$as_ac_Header'}'`
3662 { echo "$as_me:$LINENO: result: $ac_res" >&5
3663 echo "${ECHO_T}$ac_res" >&6; }
3664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3665 cat >>confdefs.h <<_ACEOF
3666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3667 _ACEOF
3668
3669 fi
3670
3671 done
3672
3673
3674
3675 for ac_header in sys/ioctl.h
3676 do
3677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 fi
3684 ac_res=`eval echo '${'$as_ac_Header'}'`
3685 { echo "$as_me:$LINENO: result: $ac_res" >&5
3686 echo "${ECHO_T}$ac_res" >&6; }
3687 else
3688 # Is the header compilable?
3689 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3691 cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h. */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3697 $ac_includes_default
3698 #include <$ac_header>
3699 _ACEOF
3700 rm -f conftest.$ac_objext
3701 if { (ac_try="$ac_compile"
3702 case "(($ac_try" in
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3705 esac
3706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707 (eval "$ac_compile") 2>conftest.er1
3708 ac_status=$?
3709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } && {
3714 test -z "$ac_c_werror_flag" ||
3715 test ! -s conftest.err
3716 } && test -s conftest.$ac_objext; then
3717 ac_header_compiler=yes
3718 else
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3721
3722 ac_header_compiler=no
3723 fi
3724
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3727 echo "${ECHO_T}$ac_header_compiler" >&6; }
3728
3729 # Is the header present?
3730 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3732 cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h. */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3738 #include <$ac_header>
3739 _ACEOF
3740 if { (ac_try="$ac_cpp conftest.$ac_ext"
3741 case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3744 esac
3745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3747 ac_status=$?
3748 grep -v '^ *+' conftest.er1 >conftest.err
3749 rm -f conftest.er1
3750 cat conftest.err >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } >/dev/null && {
3753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3754 test ! -s conftest.err
3755 }; then
3756 ac_header_preproc=yes
3757 else
3758 echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3760
3761 ac_header_preproc=no
3762 fi
3763
3764 rm -f conftest.err conftest.$ac_ext
3765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3766 echo "${ECHO_T}$ac_header_preproc" >&6; }
3767
3768 # So? What about this header?
3769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3770 yes:no: )
3771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3775 ac_header_preproc=yes
3776 ;;
3777 no:yes:* )
3778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3785 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3790 ( cat <<\_ASBOX
3791 ## -------------------------------------- ##
3792 ## Report this to [email protected] ##
3793 ## -------------------------------------- ##
3794 _ASBOX
3795 ) | sed "s/^/$as_me: WARNING: /" >&2
3796 ;;
3797 esac
3798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803 eval "$as_ac_Header=\$ac_header_preproc"
3804 fi
3805 ac_res=`eval echo '${'$as_ac_Header'}'`
3806 { echo "$as_me:$LINENO: result: $ac_res" >&5
3807 echo "${ECHO_T}$ac_res" >&6; }
3808
3809 fi
3810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3811 cat >>confdefs.h <<_ACEOF
3812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3813 _ACEOF
3814
3815 fi
3816
3817 done
3818
3819 for ac_header in termios.h
3820 do
3821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 fi
3828 ac_res=`eval echo '${'$as_ac_Header'}'`
3829 { echo "$as_me:$LINENO: result: $ac_res" >&5
3830 echo "${ECHO_T}$ac_res" >&6; }
3831 else
3832 # Is the header compilable?
3833 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3835 cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h. */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3841 $ac_includes_default
3842 #include <$ac_header>
3843 _ACEOF
3844 rm -f conftest.$ac_objext
3845 if { (ac_try="$ac_compile"
3846 case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849 esac
3850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_compile") 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } && {
3858 test -z "$ac_c_werror_flag" ||
3859 test ! -s conftest.err
3860 } && test -s conftest.$ac_objext; then
3861 ac_header_compiler=yes
3862 else
3863 echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3865
3866 ac_header_compiler=no
3867 fi
3868
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3871 echo "${ECHO_T}$ac_header_compiler" >&6; }
3872
3873 # Is the header present?
3874 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3876 cat >conftest.$ac_ext <<_ACEOF
3877 /* confdefs.h. */
3878 _ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3882 #include <$ac_header>
3883 _ACEOF
3884 if { (ac_try="$ac_cpp conftest.$ac_ext"
3885 case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3891 ac_status=$?
3892 grep -v '^ *+' conftest.er1 >conftest.err
3893 rm -f conftest.er1
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } >/dev/null && {
3897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3898 test ! -s conftest.err
3899 }; then
3900 ac_header_preproc=yes
3901 else
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3904
3905 ac_header_preproc=no
3906 fi
3907
3908 rm -f conftest.err conftest.$ac_ext
3909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3910 echo "${ECHO_T}$ac_header_preproc" >&6; }
3911
3912 # So? What about this header?
3913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3914 yes:no: )
3915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3919 ac_header_preproc=yes
3920 ;;
3921 no:yes:* )
3922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3929 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3934 ( cat <<\_ASBOX
3935 ## -------------------------------------- ##
3936 ## Report this to [email protected] ##
3937 ## -------------------------------------- ##
3938 _ASBOX
3939 ) | sed "s/^/$as_me: WARNING: /" >&2
3940 ;;
3941 esac
3942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947 eval "$as_ac_Header=\$ac_header_preproc"
3948 fi
3949 ac_res=`eval echo '${'$as_ac_Header'}'`
3950 { echo "$as_me:$LINENO: result: $ac_res" >&5
3951 echo "${ECHO_T}$ac_res" >&6; }
3952
3953 fi
3954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3955 cat >>confdefs.h <<_ACEOF
3956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3957 _ACEOF
3958
3959 fi
3960
3961 done
3962
3963 for ac_header in sys/termiox.h
3964 do
3965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 fi
3972 ac_res=`eval echo '${'$as_ac_Header'}'`
3973 { echo "$as_me:$LINENO: result: $ac_res" >&5
3974 echo "${ECHO_T}$ac_res" >&6; }
3975 else
3976 # Is the header compilable?
3977 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3979 cat >conftest.$ac_ext <<_ACEOF
3980 /* confdefs.h. */
3981 _ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3985 $ac_includes_default
3986 #include <$ac_header>
3987 _ACEOF
3988 rm -f conftest.$ac_objext
3989 if { (ac_try="$ac_compile"
3990 case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3993 esac
3994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995 (eval "$ac_compile") 2>conftest.er1
3996 ac_status=$?
3997 grep -v '^ *+' conftest.er1 >conftest.err
3998 rm -f conftest.er1
3999 cat conftest.err >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } && {
4002 test -z "$ac_c_werror_flag" ||
4003 test ! -s conftest.err
4004 } && test -s conftest.$ac_objext; then
4005 ac_header_compiler=yes
4006 else
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4009
4010 ac_header_compiler=no
4011 fi
4012
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4015 echo "${ECHO_T}$ac_header_compiler" >&6; }
4016
4017 # Is the header present?
4018 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4020 cat >conftest.$ac_ext <<_ACEOF
4021 /* confdefs.h. */
4022 _ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4026 #include <$ac_header>
4027 _ACEOF
4028 if { (ac_try="$ac_cpp conftest.$ac_ext"
4029 case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032 esac
4033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4035 ac_status=$?
4036 grep -v '^ *+' conftest.er1 >conftest.err
4037 rm -f conftest.er1
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } >/dev/null && {
4041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4042 test ! -s conftest.err
4043 }; then
4044 ac_header_preproc=yes
4045 else
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 ac_header_preproc=no
4050 fi
4051
4052 rm -f conftest.err conftest.$ac_ext
4053 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4054 echo "${ECHO_T}$ac_header_preproc" >&6; }
4055
4056 # So? What about this header?
4057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4058 yes:no: )
4059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4063 ac_header_preproc=yes
4064 ;;
4065 no:yes:* )
4066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4073 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4078 ( cat <<\_ASBOX
4079 ## -------------------------------------- ##
4080 ## Report this to [email protected] ##
4081 ## -------------------------------------- ##
4082 _ASBOX
4083 ) | sed "s/^/$as_me: WARNING: /" >&2
4084 ;;
4085 esac
4086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091 eval "$as_ac_Header=\$ac_header_preproc"
4092 fi
4093 ac_res=`eval echo '${'$as_ac_Header'}'`
4094 { echo "$as_me:$LINENO: result: $ac_res" >&5
4095 echo "${ECHO_T}$ac_res" >&6; }
4096
4097 fi
4098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4099 cat >>confdefs.h <<_ACEOF
4100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4101 _ACEOF
4102
4103 fi
4104
4105 done
4106
4107 for ac_header in sys/termios.h
4108 do
4109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 fi
4116 ac_res=`eval echo '${'$as_ac_Header'}'`
4117 { echo "$as_me:$LINENO: result: $ac_res" >&5
4118 echo "${ECHO_T}$ac_res" >&6; }
4119 else
4120 # Is the header compilable?
4121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4123 cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h. */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 $ac_includes_default
4130 #include <$ac_header>
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } && {
4146 test -z "$ac_c_werror_flag" ||
4147 test ! -s conftest.err
4148 } && test -s conftest.$ac_objext; then
4149 ac_header_compiler=yes
4150 else
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154 ac_header_compiler=no
4155 fi
4156
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4159 echo "${ECHO_T}$ac_header_compiler" >&6; }
4160
4161 # Is the header present?
4162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4164 cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h. */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4170 #include <$ac_header>
4171 _ACEOF
4172 if { (ac_try="$ac_cpp conftest.$ac_ext"
4173 case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176 esac
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } >/dev/null && {
4185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4186 test ! -s conftest.err
4187 }; then
4188 ac_header_preproc=yes
4189 else
4190 echo "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.$ac_ext >&5
4192
4193 ac_header_preproc=no
4194 fi
4195
4196 rm -f conftest.err conftest.$ac_ext
4197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4198 echo "${ECHO_T}$ac_header_preproc" >&6; }
4199
4200 # So? What about this header?
4201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4202 yes:no: )
4203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4207 ac_header_preproc=yes
4208 ;;
4209 no:yes:* )
4210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4222 ( cat <<\_ASBOX
4223 ## -------------------------------------- ##
4224 ## Report this to [email protected] ##
4225 ## -------------------------------------- ##
4226 _ASBOX
4227 ) | sed "s/^/$as_me: WARNING: /" >&2
4228 ;;
4229 esac
4230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235 eval "$as_ac_Header=\$ac_header_preproc"
4236 fi
4237 ac_res=`eval echo '${'$as_ac_Header'}'`
4238 { echo "$as_me:$LINENO: result: $ac_res" >&5
4239 echo "${ECHO_T}$ac_res" >&6; }
4240
4241 fi
4242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4243 cat >>confdefs.h <<_ACEOF
4244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4245 _ACEOF
4246
4247 fi
4248
4249 done
4250
4251 for ac_header in sys/ttycom.h
4252 do
4253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 fi
4260 ac_res=`eval echo '${'$as_ac_Header'}'`
4261 { echo "$as_me:$LINENO: result: $ac_res" >&5
4262 echo "${ECHO_T}$ac_res" >&6; }
4263 else
4264 # Is the header compilable?
4265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4267 cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h. */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 $ac_includes_default
4274 #include <$ac_header>
4275 _ACEOF
4276 rm -f conftest.$ac_objext
4277 if { (ac_try="$ac_compile"
4278 case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281 esac
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_compile") 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } && {
4290 test -z "$ac_c_werror_flag" ||
4291 test ! -s conftest.err
4292 } && test -s conftest.$ac_objext; then
4293 ac_header_compiler=yes
4294 else
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298 ac_header_compiler=no
4299 fi
4300
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4303 echo "${ECHO_T}$ac_header_compiler" >&6; }
4304
4305 # Is the header present?
4306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4308 cat >conftest.$ac_ext <<_ACEOF
4309 /* confdefs.h. */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4314 #include <$ac_header>
4315 _ACEOF
4316 if { (ac_try="$ac_cpp conftest.$ac_ext"
4317 case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320 esac
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4323 ac_status=$?
4324 grep -v '^ *+' conftest.er1 >conftest.err
4325 rm -f conftest.er1
4326 cat conftest.err >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } >/dev/null && {
4329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4330 test ! -s conftest.err
4331 }; then
4332 ac_header_preproc=yes
4333 else
4334 echo "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4336
4337 ac_header_preproc=no
4338 fi
4339
4340 rm -f conftest.err conftest.$ac_ext
4341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4342 echo "${ECHO_T}$ac_header_preproc" >&6; }
4343
4344 # So? What about this header?
4345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4346 yes:no: )
4347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4351 ac_header_preproc=yes
4352 ;;
4353 no:yes:* )
4354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4366 ( cat <<\_ASBOX
4367 ## -------------------------------------- ##
4368 ## Report this to [email protected] ##
4369 ## -------------------------------------- ##
4370 _ASBOX
4371 ) | sed "s/^/$as_me: WARNING: /" >&2
4372 ;;
4373 esac
4374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379 eval "$as_ac_Header=\$ac_header_preproc"
4380 fi
4381 ac_res=`eval echo '${'$as_ac_Header'}'`
4382 { echo "$as_me:$LINENO: result: $ac_res" >&5
4383 echo "${ECHO_T}$ac_res" >&6; }
4384
4385 fi
4386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4387 cat >>confdefs.h <<_ACEOF
4388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4389 _ACEOF
4390
4391 fi
4392
4393 done
4394
4395 for ac_header in sys/modem.h
4396 do
4397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 fi
4404 ac_res=`eval echo '${'$as_ac_Header'}'`
4405 { echo "$as_me:$LINENO: result: $ac_res" >&5
4406 echo "${ECHO_T}$ac_res" >&6; }
4407 else
4408 # Is the header compilable?
4409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4411 cat >conftest.$ac_ext <<_ACEOF
4412 /* confdefs.h. */
4413 _ACEOF
4414 cat confdefs.h >>conftest.$ac_ext
4415 cat >>conftest.$ac_ext <<_ACEOF
4416 /* end confdefs.h. */
4417 $ac_includes_default
4418 #include <$ac_header>
4419 _ACEOF
4420 rm -f conftest.$ac_objext
4421 if { (ac_try="$ac_compile"
4422 case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4425 esac
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427 (eval "$ac_compile") 2>conftest.er1
4428 ac_status=$?
4429 grep -v '^ *+' conftest.er1 >conftest.err
4430 rm -f conftest.er1
4431 cat conftest.err >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } && {
4434 test -z "$ac_c_werror_flag" ||
4435 test ! -s conftest.err
4436 } && test -s conftest.$ac_objext; then
4437 ac_header_compiler=yes
4438 else
4439 echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4441
4442 ac_header_compiler=no
4443 fi
4444
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4447 echo "${ECHO_T}$ac_header_compiler" >&6; }
4448
4449 # Is the header present?
4450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4452 cat >conftest.$ac_ext <<_ACEOF
4453 /* confdefs.h. */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 #include <$ac_header>
4459 _ACEOF
4460 if { (ac_try="$ac_cpp conftest.$ac_ext"
4461 case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4464 esac
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4467 ac_status=$?
4468 grep -v '^ *+' conftest.er1 >conftest.err
4469 rm -f conftest.er1
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } >/dev/null && {
4473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4474 test ! -s conftest.err
4475 }; then
4476 ac_header_preproc=yes
4477 else
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4480
4481 ac_header_preproc=no
4482 fi
4483
4484 rm -f conftest.err conftest.$ac_ext
4485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4486 echo "${ECHO_T}$ac_header_preproc" >&6; }
4487
4488 # So? What about this header?
4489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4490 yes:no: )
4491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4495 ac_header_preproc=yes
4496 ;;
4497 no:yes:* )
4498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4510 ( cat <<\_ASBOX
4511 ## -------------------------------------- ##
4512 ## Report this to [email protected] ##
4513 ## -------------------------------------- ##
4514 _ASBOX
4515 ) | sed "s/^/$as_me: WARNING: /" >&2
4516 ;;
4517 esac
4518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523 eval "$as_ac_Header=\$ac_header_preproc"
4524 fi
4525 ac_res=`eval echo '${'$as_ac_Header'}'`
4526 { echo "$as_me:$LINENO: result: $ac_res" >&5
4527 echo "${ECHO_T}$ac_res" >&6; }
4528
4529 fi
4530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4531 cat >>confdefs.h <<_ACEOF
4532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4533 _ACEOF
4534
4535 fi
4536
4537 done
4538
4539 for ac_header in IOKit/serial/ioss.h
4540 do
4541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 fi
4548 ac_res=`eval echo '${'$as_ac_Header'}'`
4549 { echo "$as_me:$LINENO: result: $ac_res" >&5
4550 echo "${ECHO_T}$ac_res" >&6; }
4551 else
4552 # Is the header compilable?
4553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4555 cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h. */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 $ac_includes_default
4562 #include <$ac_header>
4563 _ACEOF
4564 rm -f conftest.$ac_objext
4565 if { (ac_try="$ac_compile"
4566 case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569 esac
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_compile") 2>conftest.er1
4572 ac_status=$?
4573 grep -v '^ *+' conftest.er1 >conftest.err
4574 rm -f conftest.er1
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } && {
4578 test -z "$ac_c_werror_flag" ||
4579 test ! -s conftest.err
4580 } && test -s conftest.$ac_objext; then
4581 ac_header_compiler=yes
4582 else
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4585
4586 ac_header_compiler=no
4587 fi
4588
4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4591 echo "${ECHO_T}$ac_header_compiler" >&6; }
4592
4593 # Is the header present?
4594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4596 cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h. */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 #include <$ac_header>
4603 _ACEOF
4604 if { (ac_try="$ac_cpp conftest.$ac_ext"
4605 case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4608 esac
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4611 ac_status=$?
4612 grep -v '^ *+' conftest.er1 >conftest.err
4613 rm -f conftest.er1
4614 cat conftest.err >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } >/dev/null && {
4617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4618 test ! -s conftest.err
4619 }; then
4620 ac_header_preproc=yes
4621 else
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625 ac_header_preproc=no
4626 fi
4627
4628 rm -f conftest.err conftest.$ac_ext
4629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4630 echo "${ECHO_T}$ac_header_preproc" >&6; }
4631
4632 # So? What about this header?
4633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4634 yes:no: )
4635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4639 ac_header_preproc=yes
4640 ;;
4641 no:yes:* )
4642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4654 ( cat <<\_ASBOX
4655 ## -------------------------------------- ##
4656 ## Report this to [email protected] ##
4657 ## -------------------------------------- ##
4658 _ASBOX
4659 ) | sed "s/^/$as_me: WARNING: /" >&2
4660 ;;
4661 esac
4662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667 eval "$as_ac_Header=\$ac_header_preproc"
4668 fi
4669 ac_res=`eval echo '${'$as_ac_Header'}'`
4670 { echo "$as_me:$LINENO: result: $ac_res" >&5
4671 echo "${ECHO_T}$ac_res" >&6; }
4672
4673 fi
4674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4675 cat >>confdefs.h <<_ACEOF
4676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4677 _ACEOF
4678
4679 fi
4680
4681 done
4682
4683 ac_ext=c
4684 ac_cpp='$CPP $CPPFLAGS'
4685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688
4689 for check_define in \
4690 _SC_CLK_TCK \
4691 TIOCMBIS TIOCMBIC TIOCMGET \
4692 CRTSCTS OCRNL ONLCR ECHOKE ECHOCTL \
4693 TIOCM_CAR TIOCM_CD TIOCM_RNG TIOCM_RI TIOCM_CTS TIOCM_DSR \
4694 TIOCMIWAIT TIOCGICOUNT \
4695 TIOCINQ FIONREAD \
4696 TIOCOUTQ \
4697 TIOCSER_TEMT TIOCM_LE \
4698 TIOCSERGETLSR \
4699 TIOCSDTR TIOCCDTR \
4700 TIOCM_RTS TIOCM_DTR \
4701 CTSXON RTSXOFF TCGETX TCSETX \
4702 IOSSIOSPEED \
4703 B0 B50 B75 B110 B134 B150 B200 B300 B600 \
4704 B1200 B1800 B2400 B4800 B9600 B19200 B38400 B57600 \
4705 B115200 B230400 B460800 B500000 B576000 B921600 B1000000 \
4706 B1152000 B1500000 B2000000 B2500000 B3000000 B3500000 B4000000 \
4707 ; do
4708 { echo "$as_me:$LINENO: checking definition of $check_define" >&5
4709 echo $ECHO_N "checking definition of $check_define... $ECHO_C" >&6; }
4710 cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h. */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4716
4717 #ifdef HAVE_UNISTD_H
4718 # include <unistd.h>
4719 #endif
4720 #ifdef HAVE_SYS_IOCTL_H
4721 # include <sys/ioctl.h>
4722 #endif
4723 #ifdef HAVE_TERMIOS_H
4724 # include <termios.h>
4725 #endif
4726 #ifdef HAVE_SYS_TERMIOX_H
4727 # include <sys/termiox.h>
4728 #endif
4729 #ifdef HAVE_SYS_TERMIOS_H
4730 # include <sys/termios.h>
4731 #endif
4732 #ifdef HAVE_SYS_TTYCOM_H
4733 # include <sys/ttycom.h>
4734 #endif
4735 #ifdef HAVE_SYS_MODEM_H
4736 # include <sys/modem.h>
4737 #endif
4738 #ifdef HAVE_IOKIT_SERIAL_IOSS_H
4739 # include <IOKit/serial/ioss.h>
4740 #endif
4741
4742
4743 int
4744 main ()
4745 {
4746 int a=$check_define
4747 ;
4748 return 0;
4749 }
4750
4751 _ACEOF
4752 rm -f conftest.$ac_objext conftest$ac_exeext
4753 if { (ac_try="$ac_link"
4754 case "(($ac_try" in
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4757 esac
4758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759 (eval "$ac_link") 2>conftest.er1
4760 ac_status=$?
4761 grep -v '^ *+' conftest.er1 >conftest.err
4762 rm -f conftest.er1
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } && {
4766 test -z "$ac_c_werror_flag" ||
4767 test ! -s conftest.err
4768 } && test -s conftest$ac_exeext &&
4769 $as_test_x conftest$ac_exeext; then
4770
4771 eval "check_got_$check_define=yes"
4772 { echo "$as_me:$LINENO: result: found" >&5
4773 echo "${ECHO_T}found" >&6; }
4774
4775 else
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4778
4779
4780 eval "check_got_$check_define=no"
4781 { echo "$as_me:$LINENO: result: missing" >&5
4782 echo "${ECHO_T}missing" >&6; }
4783
4784
4785 fi
4786
4787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4788 conftest$ac_exeext conftest.$ac_ext
4789 done
4790
4791
4792 { echo "$as_me:$LINENO: checking serial control via ioctl" >&5
4793 echo $ECHO_N "checking serial control via ioctl... $ECHO_C" >&6; }
4794 if test "$check_got_TIOCMBIS" = "yes" &&
4795 test "$check_got_TIOCMBIC" = "yes"; then
4796 { echo "$as_me:$LINENO: result: yes" >&5
4797 echo "${ECHO_T}yes" >&6; }
4798 else
4799 { echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6; }
4801 { echo "$as_me:$LINENO: WARNING: Without ioctl support, most serial control functions are missing" >&5
4802 echo "$as_me: WARNING: Without ioctl support, most serial control functions are missing" >&2;}
4803 fi
4804
4805 { echo "$as_me:$LINENO: checking read/write of RTS signal" >&5
4806 echo $ECHO_N "checking read/write of RTS signal... $ECHO_C" >&6; }
4807 if test "$check_got_TIOCMBIS" = "yes" &&
4808 test "$check_got_TIOCMBIC" = "yes" &&
4809 test "$check_got_TIOCM_RTS" = "yes"; then
4810 { echo "$as_me:$LINENO: result: yes" >&5
4811 echo "${ECHO_T}yes" >&6; }
4812 else
4813 { echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6; }
4815 { echo "$as_me:$LINENO: WARNING: You will not be able to check or change the RTS line (direct flow control)" >&5
4816 echo "$as_me: WARNING: You will not be able to check or change the RTS line (direct flow control)" >&2;}
4817 fi
4818
4819 { echo "$as_me:$LINENO: checking read/write of DTR signal" >&5
4820 echo $ECHO_N "checking read/write of DTR signal... $ECHO_C" >&6; }
4821 if test "$check_got_TIOCMBIS" = "yes" &&
4822 test "$check_got_TIOCMBIC" = "yes" &&
4823 test "$check_got_TIOCM_DTR" = "yes"; then
4824 { echo "$as_me:$LINENO: result: yes" >&5
4825 echo "${ECHO_T}yes" >&6; }
4826 else
4827 { echo "$as_me:$LINENO: result: no" >&5
4828 echo "${ECHO_T}no" >&6; }
4829 { echo "$as_me:$LINENO: WARNING: You will not be able to check or change the DTR line (modem hang up)" >&5
4830 echo "$as_me: WARNING: You will not be able to check or change the DTR line (modem hang up)" >&2;}
4831 fi
4832
4833 { echo "$as_me:$LINENO: checking read access to modem lines" >&5
4834 echo $ECHO_N "checking read access to modem lines... $ECHO_C" >&6; }
4835 if test "$check_got_TIOCMGET" = "yes"; then
4836 { echo "$as_me:$LINENO: result: yes" >&5
4837 echo "${ECHO_T}yes" >&6; }
4838 else
4839 { echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6; }
4841 { echo "$as_me:$LINENO: WARNING: You will not be able to check modem status lines (carrier, ring, etc)" >&5
4842 echo "$as_me: WARNING: You will not be able to check modem status lines (carrier, ring, etc)" >&2;}
4843 fi
4844
4845 { echo "$as_me:$LINENO: checking read access to buffer status" >&5
4846 echo $ECHO_N "checking read access to buffer status... $ECHO_C" >&6; }
4847 if test "$check_got_TIOCINQ" = "yes" &&
4848 test "$check_got_TIOCOUTQ" = "yes"; then
4849 { echo "$as_me:$LINENO: result: yes" >&5
4850 echo "${ECHO_T}yes" >&6; }
4851 else
4852 { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4854 { echo "$as_me:$LINENO: WARNING: You will not be able to check the serial buffer state (to test for flushes)" >&5
4855 echo "$as_me: WARNING: You will not be able to check the serial buffer state (to test for flushes)" >&2;}
4856 fi
4857
4858 { echo "$as_me:$LINENO: checking read access to serial line status" >&5
4859 echo $ECHO_N "checking read access to serial line status... $ECHO_C" >&6; }
4860 if test "$check_got_TIOCSERGETLSR" = "yes"; then
4861 { echo "$as_me:$LINENO: result: yes" >&5
4862 echo "${ECHO_T}yes" >&6; }
4863 else
4864 { echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6; }
4866 { echo "$as_me:$LINENO: WARNING: You will not be able to check serial line status (to do full write flush)" >&5
4867 echo "$as_me: WARNING: You will not be able to check serial line status (to do full write flush)" >&2;}
4868 fi
4869
4870 { echo "$as_me:$LINENO: checking normal CTS/RTS flow control" >&5
4871 echo $ECHO_N "checking normal CTS/RTS flow control... $ECHO_C" >&6; }
4872 if test "$check_got_CTSXON" = "yes" &&
4873 test "$check_got_RTSXOFF" = "yes" &&
4874 test "$check_got_TCGETX" = "yes" &&
4875 test "$check_got_TCSETX" = "yes"; then
4876 { echo "$as_me:$LINENO: result: no" >&5
4877 echo "${ECHO_T}no" >&6; }
4878 { echo "$as_me:$LINENO: WARNING: Your system does CTS/RTS flow control strangely. Hopefully, we can work around it" >&5
4879 echo "$as_me: WARNING: Your system does CTS/RTS flow control strangely. Hopefully, we can work around it" >&2;}
4880 else
4881 { echo "$as_me:$LINENO: result: yes" >&5
4882 echo "${ECHO_T}yes" >&6; }
4883 fi
4884
4885 cat >confcache <<\_ACEOF
4886 # This file is a shell script that caches the results of configure
4887 # tests run on this system so they can be shared between configure
4888 # scripts and configure runs, see configure's option --config-cache.
4889 # It is not useful on other systems. If it contains results you don't
4890 # want to keep, you may remove or edit it.
4891 #
4892 # config.status only pays attention to the cache file if you give it
4893 # the --recheck option to rerun configure.
4894 #
4895 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4896 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4897 # following values.
4898
4899 _ACEOF
4900
4901 # The following way of writing the cache mishandles newlines in values,
4902 # but we know of no workaround that is simple, portable, and efficient.
4903 # So, we kill variables containing newlines.
4904 # Ultrix sh set writes to stderr and can't be redirected directly,
4905 # and sets the high bit in the cache file unless we assign to the vars.
4906 (
4907 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4908 eval ac_val=\$$ac_var
4909 case $ac_val in #(
4910 *${as_nl}*)
4911 case $ac_var in #(
4912 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4913 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4914 esac
4915 case $ac_var in #(
4916 _ | IFS | as_nl) ;; #(
4917 *) $as_unset $ac_var ;;
4918 esac ;;
4919 esac
4920 done
4921
4922 (set) 2>&1 |
4923 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4924 *${as_nl}ac_space=\ *)
4925 # `set' does not quote correctly, so add quotes (double-quote
4926 # substitution turns \\\\ into \\, and sed turns \\ into \).
4927 sed -n \
4928 "s/'/'\\\\''/g;
4929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4930 ;; #(
4931 *)
4932 # `set' quotes correctly as required by POSIX, so do not add quotes.
4933 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4934 ;;
4935 esac |
4936 sort
4937 ) |
4938 sed '
4939 /^ac_cv_env_/b end
4940 t clear
4941 :clear
4942 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4943 t end
4944 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4945 :end' >>confcache
4946 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4947 if test -w "$cache_file"; then
4948 test "x$cache_file" != "x/dev/null" &&
4949 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4950 echo "$as_me: updating cache $cache_file" >&6;}
4951 cat confcache >$cache_file
4952 else
4953 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4954 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4955 fi
4956 fi
4957 rm -f confcache
4958
4959 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4960 # Let make expand exec_prefix.
4961 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4962
4963 DEFS=-DHAVE_CONFIG_H
4964
4965 ac_libobjs=
4966 ac_ltlibobjs=
4967 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4968 # 1. Remove the extension, and $U if already installed.
4969 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4970 ac_i=`echo "$ac_i" | sed "$ac_script"`
4971 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4972 # will be set to the directory where LIBOBJS objects are built.
4973 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4974 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4975 done
4976 LIBOBJS=$ac_libobjs
4977
4978 LTLIBOBJS=$ac_ltlibobjs
4979
4980
4981
4982 : ${CONFIG_STATUS=./config.status}
4983 ac_clean_files_save=$ac_clean_files
4984 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4985 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4986 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4987 cat >$CONFIG_STATUS <<_ACEOF
4988 #! $SHELL
4989 # Generated by $as_me.
4990 # Run this file to recreate the current configuration.
4991 # Compiler output produced by configure, useful for debugging
4992 # configure, is in config.log if it exists.
4993
4994 debug=false
4995 ac_cs_recheck=false
4996 ac_cs_silent=false
4997 SHELL=\${CONFIG_SHELL-$SHELL}
4998 _ACEOF
4999
5000 cat >>$CONFIG_STATUS <<\_ACEOF
5001 ## --------------------- ##
5002 ## M4sh Initialization. ##
5003 ## --------------------- ##
5004
5005 # Be more Bourne compatible
5006 DUALCASE=1; export DUALCASE # for MKS sh
5007 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5008 emulate sh
5009 NULLCMD=:
5010 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5011 # is contrary to our usage. Disable this feature.
5012 alias -g '${1+"$@"}'='"$@"'
5013 setopt NO_GLOB_SUBST
5014 else
5015 case `(set -o) 2>/dev/null` in
5016 *posix*) set -o posix ;;
5017 esac
5018
5019 fi
5020
5021
5022
5023
5024 # PATH needs CR
5025 # Avoid depending upon Character Ranges.
5026 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5027 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5028 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5029 as_cr_digits='0123456789'
5030 as_cr_alnum=$as_cr_Letters$as_cr_digits
5031
5032 # The user is always right.
5033 if test "${PATH_SEPARATOR+set}" != set; then
5034 echo "#! /bin/sh" >conf$$.sh
5035 echo "exit 0" >>conf$$.sh
5036 chmod +x conf$$.sh
5037 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5038 PATH_SEPARATOR=';'
5039 else
5040 PATH_SEPARATOR=:
5041 fi
5042 rm -f conf$$.sh
5043 fi
5044
5045 # Support unset when possible.
5046 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5047 as_unset=unset
5048 else
5049 as_unset=false
5050 fi
5051
5052
5053 # IFS
5054 # We need space, tab and new line, in precisely that order. Quoting is
5055 # there to prevent editors from complaining about space-tab.
5056 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5057 # splitting by setting IFS to empty value.)
5058 as_nl='
5059 '
5060 IFS=" "" $as_nl"
5061
5062 # Find who we are. Look in the path if we contain no directory separator.
5063 case $0 in
5064 *[\\/]* ) as_myself=$0 ;;
5065 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5067 do
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5071 done
5072 IFS=$as_save_IFS
5073
5074 ;;
5075 esac
5076 # We did not find ourselves, most probably we were run as `sh COMMAND'
5077 # in which case we are not to be found in the path.
5078 if test "x$as_myself" = x; then
5079 as_myself=$0
5080 fi
5081 if test ! -f "$as_myself"; then
5082 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5083 { (exit 1); exit 1; }
5084 fi
5085
5086 # Work around bugs in pre-3.0 UWIN ksh.
5087 for as_var in ENV MAIL MAILPATH
5088 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5089 done
5090 PS1='$ '
5091 PS2='> '
5092 PS4='+ '
5093
5094 # NLS nuisances.
5095 for as_var in \
5096 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5097 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5098 LC_TELEPHONE LC_TIME
5099 do
5100 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5101 eval $as_var=C; export $as_var
5102 else
5103 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5104 fi
5105 done
5106
5107 # Required to use basename.
5108 if expr a : '\(a\)' >/dev/null 2>&1 &&
5109 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5110 as_expr=expr
5111 else
5112 as_expr=false
5113 fi
5114
5115 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5116 as_basename=basename
5117 else
5118 as_basename=false
5119 fi
5120
5121
5122 # Name of the executable.
5123 as_me=`$as_basename -- "$0" ||
5124 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5125 X"$0" : 'X\(//\)$' \| \
5126 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5127 echo X/"$0" |
5128 sed '/^.*\/\([^/][^/]*\)\/*$/{
5129 s//\1/
5130 q
5131 }
5132 /^X\/\(\/\/\)$/{
5133 s//\1/
5134 q
5135 }
5136 /^X\/\(\/\).*/{
5137 s//\1/
5138 q
5139 }
5140 s/.*/./; q'`
5141
5142 # CDPATH.
5143 $as_unset CDPATH
5144
5145
5146
5147 as_lineno_1=$LINENO
5148 as_lineno_2=$LINENO
5149 test "x$as_lineno_1" != "x$as_lineno_2" &&
5150 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5151
5152 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5153 # uniformly replaced by the line number. The first 'sed' inserts a
5154 # line-number line after each line using $LINENO; the second 'sed'
5155 # does the real work. The second script uses 'N' to pair each
5156 # line-number line with the line containing $LINENO, and appends
5157 # trailing '-' during substitution so that $LINENO is not a special
5158 # case at line end.
5159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5160 # scripts with optimization help from Paolo Bonzini. Blame Lee
5161 # E. McMahon (1931-1989) for sed's syntax. :-)
5162 sed -n '
5163 p
5164 /[$]LINENO/=
5165 ' <$as_myself |
5166 sed '
5167 s/[$]LINENO.*/&-/
5168 t lineno
5169 b
5170 :lineno
5171 N
5172 :loop
5173 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5174 t loop
5175 s/-\n.*//
5176 ' >$as_me.lineno &&
5177 chmod +x "$as_me.lineno" ||
5178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5179 { (exit 1); exit 1; }; }
5180
5181 # Don't try to exec as it changes $[0], causing all sort of problems
5182 # (the dirname of $[0] is not the place where we might find the
5183 # original and so on. Autoconf is especially sensitive to this).
5184 . "./$as_me.lineno"
5185 # Exit status is that of the last command.
5186 exit
5187 }
5188
5189
5190 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5191 as_dirname=dirname
5192 else
5193 as_dirname=false
5194 fi
5195
5196 ECHO_C= ECHO_N= ECHO_T=
5197 case `echo -n x` in
5198 -n*)
5199 case `echo 'x\c'` in
5200 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5201 *) ECHO_C='\c';;
5202 esac;;
5203 *)
5204 ECHO_N='-n';;
5205 esac
5206
5207 if expr a : '\(a\)' >/dev/null 2>&1 &&
5208 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5209 as_expr=expr
5210 else
5211 as_expr=false
5212 fi
5213
5214 rm -f conf$$ conf$$.exe conf$$.file
5215 if test -d conf$$.dir; then
5216 rm -f conf$$.dir/conf$$.file
5217 else
5218 rm -f conf$$.dir
5219 mkdir conf$$.dir
5220 fi
5221 echo >conf$$.file
5222 if ln -s conf$$.file conf$$ 2>/dev/null; then
5223 as_ln_s='ln -s'
5224 # ... but there are two gotchas:
5225 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5226 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5227 # In both cases, we have to default to `cp -p'.
5228 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5229 as_ln_s='cp -p'
5230 elif ln conf$$.file conf$$ 2>/dev/null; then
5231 as_ln_s=ln
5232 else
5233 as_ln_s='cp -p'
5234 fi
5235 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5236 rmdir conf$$.dir 2>/dev/null
5237
5238 if mkdir -p . 2>/dev/null; then
5239 as_mkdir_p=:
5240 else
5241 test -d ./-p && rmdir ./-p
5242 as_mkdir_p=false
5243 fi
5244
5245 if test -x / >/dev/null 2>&1; then
5246 as_test_x='test -x'
5247 else
5248 if ls -dL / >/dev/null 2>&1; then
5249 as_ls_L_option=L
5250 else
5251 as_ls_L_option=
5252 fi
5253 as_test_x='
5254 eval sh -c '\''
5255 if test -d "$1"; then
5256 test -d "$1/.";
5257 else
5258 case $1 in
5259 -*)set "./$1";;
5260 esac;
5261 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5262 ???[sx]*):;;*)false;;esac;fi
5263 '\'' sh
5264 '
5265 fi
5266 as_executable_p=$as_test_x
5267
5268 # Sed expression to map a string onto a valid CPP name.
5269 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5270
5271 # Sed expression to map a string onto a valid variable name.
5272 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5273
5274
5275 exec 6>&1
5276
5277 # Save the log message, to keep $[0] and so on meaningful, and to
5278 # report actual input values of CONFIG_FILES etc. instead of their
5279 # values after options handling.
5280 ac_log="
5281 This file was extended by Device::SerialPort $as_me 1.04, which was
5282 generated by GNU Autoconf 2.61. Invocation command line was
5283
5284 CONFIG_FILES = $CONFIG_FILES
5285 CONFIG_HEADERS = $CONFIG_HEADERS
5286 CONFIG_LINKS = $CONFIG_LINKS
5287 CONFIG_COMMANDS = $CONFIG_COMMANDS
5288 $ $0 $@
5289
5290 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5291 "
5292
5293 _ACEOF
5294
5295 cat >>$CONFIG_STATUS <<_ACEOF
5296 # Files that config.status was made for.
5297 config_headers="$ac_config_headers"
5298
5299 _ACEOF
5300
5301 cat >>$CONFIG_STATUS <<\_ACEOF
5302 ac_cs_usage="\
5303 \`$as_me' instantiates files from templates according to the
5304 current configuration.
5305
5306 Usage: $0 [OPTIONS] [FILE]...
5307
5308 -h, --help print this help, then exit
5309 -V, --version print version number and configuration settings, then exit
5310 -q, --quiet do not print progress messages
5311 -d, --debug don't remove temporary files
5312 --recheck update $as_me by reconfiguring in the same conditions
5313 --header=FILE[:TEMPLATE]
5314 instantiate the configuration header FILE
5315
5316 Configuration headers:
5317 $config_headers
5318
5319 Report bugs to <[email protected]>."
5320
5321 _ACEOF
5322 cat >>$CONFIG_STATUS <<_ACEOF
5323 ac_cs_version="\\
5324 Device::SerialPort config.status 1.04
5325 configured by $0, generated by GNU Autoconf 2.61,
5326 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5327
5328 Copyright (C) 2006 Free Software Foundation, Inc.
5329 This config.status script is free software; the Free Software Foundation
5330 gives unlimited permission to copy, distribute and modify it."
5331
5332 ac_pwd='$ac_pwd'
5333 srcdir='$srcdir'
5334 _ACEOF
5335
5336 cat >>$CONFIG_STATUS <<\_ACEOF
5337 # If no file are specified by the user, then we need to provide default
5338 # value. By we need to know if files were specified by the user.
5339 ac_need_defaults=:
5340 while test $# != 0
5341 do
5342 case $1 in
5343 --*=*)
5344 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5345 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5346 ac_shift=:
5347 ;;
5348 *)
5349 ac_option=$1
5350 ac_optarg=$2
5351 ac_shift=shift
5352 ;;
5353 esac
5354
5355 case $ac_option in
5356 # Handling of the options.
5357 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5358 ac_cs_recheck=: ;;
5359 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5360 echo "$ac_cs_version"; exit ;;
5361 --debug | --debu | --deb | --de | --d | -d )
5362 debug=: ;;
5363 --header | --heade | --head | --hea )
5364 $ac_shift
5365 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5366 ac_need_defaults=false;;
5367 --he | --h)
5368 # Conflict between --help and --header
5369 { echo "$as_me: error: ambiguous option: $1
5370 Try \`$0 --help' for more information." >&2
5371 { (exit 1); exit 1; }; };;
5372 --help | --hel | -h )
5373 echo "$ac_cs_usage"; exit ;;
5374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5375 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5376 ac_cs_silent=: ;;
5377
5378 # This is an error.
5379 -*) { echo "$as_me: error: unrecognized option: $1
5380 Try \`$0 --help' for more information." >&2
5381 { (exit 1); exit 1; }; } ;;
5382
5383 *) ac_config_targets="$ac_config_targets $1"
5384 ac_need_defaults=false ;;
5385
5386 esac
5387 shift
5388 done
5389
5390 ac_configure_extra_args=
5391
5392 if $ac_cs_silent; then
5393 exec 6>/dev/null
5394 ac_configure_extra_args="$ac_configure_extra_args --silent"
5395 fi
5396
5397 _ACEOF
5398 cat >>$CONFIG_STATUS <<_ACEOF
5399 if \$ac_cs_recheck; then
5400 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5401 CONFIG_SHELL=$SHELL
5402 export CONFIG_SHELL
5403 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5404 fi
5405
5406 _ACEOF
5407 cat >>$CONFIG_STATUS <<\_ACEOF
5408 exec 5>>config.log
5409 {
5410 echo
5411 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5412 ## Running $as_me. ##
5413 _ASBOX
5414 echo "$ac_log"
5415 } >&5
5416
5417 _ACEOF
5418 cat >>$CONFIG_STATUS <<_ACEOF
5419 _ACEOF
5420
5421 cat >>$CONFIG_STATUS <<\_ACEOF
5422
5423 # Handling of arguments.
5424 for ac_config_target in $ac_config_targets
5425 do
5426 case $ac_config_target in
5427 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5428
5429 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5430 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5431 { (exit 1); exit 1; }; };;
5432 esac
5433 done
5434
5435
5436 # If the user did not use the arguments to specify the items to instantiate,
5437 # then the envvar interface is used. Set only those that are not.
5438 # We use the long form for the default assignment because of an extremely
5439 # bizarre bug on SunOS 4.1.3.
5440 if $ac_need_defaults; then
5441 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5442 fi
5443
5444 # Have a temporary directory for convenience. Make it in the build tree
5445 # simply because there is no reason against having it here, and in addition,
5446 # creating and moving files from /tmp can sometimes cause problems.
5447 # Hook for its removal unless debugging.
5448 # Note that there is a small window in which the directory will not be cleaned:
5449 # after its creation but before its name has been assigned to `$tmp'.
5450 $debug ||
5451 {
5452 tmp=
5453 trap 'exit_status=$?
5454 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5455 ' 0
5456 trap '{ (exit 1); exit 1; }' 1 2 13 15
5457 }
5458 # Create a (secure) tmp directory for tmp files.
5459
5460 {
5461 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5462 test -n "$tmp" && test -d "$tmp"
5463 } ||
5464 {
5465 tmp=./conf$$-$RANDOM
5466 (umask 077 && mkdir "$tmp")
5467 } ||
5468 {
5469 echo "$me: cannot create a temporary directory in ." >&2
5470 { (exit 1); exit 1; }
5471 }
5472
5473
5474 for ac_tag in :H $CONFIG_HEADERS
5475 do
5476 case $ac_tag in
5477 :[FHLC]) ac_mode=$ac_tag; continue;;
5478 esac
5479 case $ac_mode$ac_tag in
5480 :[FHL]*:*);;
5481 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5482 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5483 { (exit 1); exit 1; }; };;
5484 :[FH]-) ac_tag=-:-;;
5485 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5486 esac
5487 ac_save_IFS=$IFS
5488 IFS=:
5489 set x $ac_tag
5490 IFS=$ac_save_IFS
5491 shift
5492 ac_file=$1
5493 shift
5494
5495 case $ac_mode in
5496 :L) ac_source=$1;;
5497 :[FH])
5498 ac_file_inputs=
5499 for ac_f
5500 do
5501 case $ac_f in
5502 -) ac_f="$tmp/stdin";;
5503 *) # Look for the file first in the build tree, then in the source tree
5504 # (if the path is not absolute). The absolute path cannot be DOS-style,
5505 # because $ac_f cannot contain `:'.
5506 test -f "$ac_f" ||
5507 case $ac_f in
5508 [\\/$]*) false;;
5509 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5510 esac ||
5511 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5512 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5513 { (exit 1); exit 1; }; };;
5514 esac
5515 ac_file_inputs="$ac_file_inputs $ac_f"
5516 done
5517
5518 # Let's still pretend it is `configure' which instantiates (i.e., don't
5519 # use $as_me), people would be surprised to read:
5520 # /* config.h. Generated by config.status. */
5521 configure_input="Generated from "`IFS=:
5522 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5523 if test x"$ac_file" != x-; then
5524 configure_input="$ac_file. $configure_input"
5525 { echo "$as_me:$LINENO: creating $ac_file" >&5
5526 echo "$as_me: creating $ac_file" >&6;}
5527 fi
5528
5529 case $ac_tag in
5530 *:-:* | *:-) cat >"$tmp/stdin";;
5531 esac
5532 ;;
5533 esac
5534
5535 ac_dir=`$as_dirname -- "$ac_file" ||
5536 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5537 X"$ac_file" : 'X\(//\)[^/]' \| \
5538 X"$ac_file" : 'X\(//\)$' \| \
5539 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5540 echo X"$ac_file" |
5541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5542 s//\1/
5543 q
5544 }
5545 /^X\(\/\/\)[^/].*/{
5546 s//\1/
5547 q
5548 }
5549 /^X\(\/\/\)$/{
5550 s//\1/
5551 q
5552 }
5553 /^X\(\/\).*/{
5554 s//\1/
5555 q
5556 }
5557 s/.*/./; q'`
5558 { as_dir="$ac_dir"
5559 case $as_dir in #(
5560 -*) as_dir=./$as_dir;;
5561 esac
5562 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5563 as_dirs=
5564 while :; do
5565 case $as_dir in #(
5566 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5567 *) as_qdir=$as_dir;;
5568 esac
5569 as_dirs="'$as_qdir' $as_dirs"
5570 as_dir=`$as_dirname -- "$as_dir" ||
5571 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5572 X"$as_dir" : 'X\(//\)[^/]' \| \
5573 X"$as_dir" : 'X\(//\)$' \| \
5574 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5575 echo X"$as_dir" |
5576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5577 s//\1/
5578 q
5579 }
5580 /^X\(\/\/\)[^/].*/{
5581 s//\1/
5582 q
5583 }
5584 /^X\(\/\/\)$/{
5585 s//\1/
5586 q
5587 }
5588 /^X\(\/\).*/{
5589 s//\1/
5590 q
5591 }
5592 s/.*/./; q'`
5593 test -d "$as_dir" && break
5594 done
5595 test -z "$as_dirs" || eval "mkdir $as_dirs"
5596 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5597 echo "$as_me: error: cannot create directory $as_dir" >&2;}
5598 { (exit 1); exit 1; }; }; }
5599 ac_builddir=.
5600
5601 case "$ac_dir" in
5602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5603 *)
5604 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5605 # A ".." for each directory in $ac_dir_suffix.
5606 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5607 case $ac_top_builddir_sub in
5608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5610 esac ;;
5611 esac
5612 ac_abs_top_builddir=$ac_pwd
5613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5614 # for backward compatibility:
5615 ac_top_builddir=$ac_top_build_prefix
5616
5617 case $srcdir in
5618 .) # We are building in place.
5619 ac_srcdir=.
5620 ac_top_srcdir=$ac_top_builddir_sub
5621 ac_abs_top_srcdir=$ac_pwd ;;
5622 [\\/]* | ?:[\\/]* ) # Absolute name.
5623 ac_srcdir=$srcdir$ac_dir_suffix;
5624 ac_top_srcdir=$srcdir
5625 ac_abs_top_srcdir=$srcdir ;;
5626 *) # Relative name.
5627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5628 ac_top_srcdir=$ac_top_build_prefix$srcdir
5629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5630 esac
5631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5632
5633
5634 case $ac_mode in
5635
5636 :H)
5637 #
5638 # CONFIG_HEADER
5639 #
5640 _ACEOF
5641
5642 # Transform confdefs.h into a sed script `conftest.defines', that
5643 # substitutes the proper values into config.h.in to produce config.h.
5644 rm -f conftest.defines conftest.tail
5645 # First, append a space to every undef/define line, to ease matching.
5646 echo 's/$/ /' >conftest.defines
5647 # Then, protect against being on the right side of a sed subst, or in
5648 # an unquoted here document, in config.status. If some macros were
5649 # called several times there might be several #defines for the same
5650 # symbol, which is useless. But do not sort them, since the last
5651 # AC_DEFINE must be honored.
5652 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5653 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
5654 # NAME is the cpp macro being defined, VALUE is the value it is being given.
5655 # PARAMS is the parameter list in the macro definition--in most cases, it's
5656 # just an empty string.
5657 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
5658 ac_dB='\\)[ (].*,\\1define\\2'
5659 ac_dC=' '
5660 ac_dD=' ,'
5661
5662 uniq confdefs.h |
5663 sed -n '
5664 t rset
5665 :rset
5666 s/^[ ]*#[ ]*define[ ][ ]*//
5667 t ok
5668 d
5669 :ok
5670 s/[\\&,]/\\&/g
5671 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
5672 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
5673 ' >>conftest.defines
5674
5675 # Remove the space that was appended to ease matching.
5676 # Then replace #undef with comments. This is necessary, for
5677 # example, in the case of _POSIX_SOURCE, which is predefined and required
5678 # on some systems where configure will not decide to define it.
5679 # (The regexp can be short, since the line contains either #define or #undef.)
5680 echo 's/ $//
5681 s,^[ #]*u.*,/* & */,' >>conftest.defines
5682
5683 # Break up conftest.defines:
5684 ac_max_sed_lines=50
5685
5686 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
5687 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
5688 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
5689 # et cetera.
5690 ac_in='$ac_file_inputs'
5691 ac_out='"$tmp/out1"'
5692 ac_nxt='"$tmp/out2"'
5693
5694 while :
5695 do
5696 # Write a here document:
5697 cat >>$CONFIG_STATUS <<_ACEOF
5698 # First, check the format of the line:
5699 cat >"\$tmp/defines.sed" <<\\CEOF
5700 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
5701 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
5702 b
5703 :def
5704 _ACEOF
5705 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
5706 echo 'CEOF
5707 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
5708 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
5709 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
5710 grep . conftest.tail >/dev/null || break
5711 rm -f conftest.defines
5712 mv conftest.tail conftest.defines
5713 done
5714 rm -f conftest.defines conftest.tail
5715
5716 echo "ac_result=$ac_in" >>$CONFIG_STATUS
5717 cat >>$CONFIG_STATUS <<\_ACEOF
5718 if test x"$ac_file" != x-; then
5719 echo "/* $configure_input */" >"$tmp/config.h"
5720 cat "$ac_result" >>"$tmp/config.h"
5721 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
5722 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5723 echo "$as_me: $ac_file is unchanged" >&6;}
5724 else
5725 rm -f $ac_file
5726 mv "$tmp/config.h" $ac_file
5727 fi
5728 else
5729 echo "/* $configure_input */"
5730 cat "$ac_result"
5731 fi
5732 rm -f "$tmp/out12"
5733 ;;
5734
5735
5736 esac
5737
5738 done # for ac_tag
5739
5740
5741 { (exit 0); exit 0; }
5742 _ACEOF
5743 chmod +x $CONFIG_STATUS
5744 ac_clean_files=$ac_clean_files_save
5745
5746
5747 # configure is writing to config.log, and then calls config.status.
5748 # config.status does its own redirection, appending to config.log.
5749 # Unfortunately, on DOS this fails, as config.log is still kept open
5750 # by configure, so config.status won't be able to write to it; its
5751 # output is simply discarded. So we exec the FD to /dev/null,
5752 # effectively closing config.log, so it can be properly (re)opened and
5753 # appended to by config.status. When coming back to configure, we
5754 # need to make the FD available again.
5755 if test "$no_create" != yes; then
5756 ac_cs_success=:
5757 ac_config_status_args=
5758 test "$silent" = yes &&
5759 ac_config_status_args="$ac_config_status_args --quiet"
5760 exec 5>/dev/null
5761 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5762 exec 5>>config.log
5763 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5764 # would make configure fail if this is the last instruction.
5765 $ac_cs_success || { (exit 1); exit 1; }
5766 fi
5767