Added warning option to build flags.
[epichord.git] / configure
bloba700efe6f6711e2f89b970480666ff8a29f83daf
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for epichord 0.0.0.
5 # Report bugs to <unknown@somewhere.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 # Initializations.
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='epichord'
576 PACKAGE_TARNAME='epichord'
577 PACKAGE_VERSION='0.0.0'
578 PACKAGE_STRING='epichord 0.0.0'
579 PACKAGE_BUGREPORT='unknown@somewhere.org'
581 ac_unique_file="src/ui.h"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 INSTALL_PROGRAM
656 INSTALL_SCRIPT
657 INSTALL_DATA
658 CYGPATH_W
659 PACKAGE
660 VERSION
661 ACLOCAL
662 AUTOCONF
663 AUTOMAKE
664 AUTOHEADER
665 MAKEINFO
666 install_sh
667 STRIP
668 INSTALL_STRIP_PROGRAM
669 mkdir_p
671 SET_MAKE
672 am__leading_dot
673 AMTAR
674 am__tar
675 am__untar
677 CXXFLAGS
678 LDFLAGS
679 CPPFLAGS
680 ac_ct_CXX
681 EXEEXT
682 OBJEXT
683 DEPDIR
684 am__include
685 am__quote
686 AMDEP_TRUE
687 AMDEP_FALSE
688 AMDEPBACKSLASH
689 CXXDEPMODE
690 am__fastdepCXX_TRUE
691 am__fastdepCXX_FALSE
693 CFLAGS
694 ac_ct_CC
695 CCDEPMODE
696 am__fastdepCC_TRUE
697 am__fastdepCC_FALSE
699 GREP
700 EGREP
701 fltk2found
702 LIBOBJS
703 LTLIBOBJS'
704 ac_subst_files=''
705 ac_precious_vars='build_alias
706 host_alias
707 target_alias
709 CXXFLAGS
710 LDFLAGS
711 LIBS
712 CPPFLAGS
715 CFLAGS
716 CPP'
719 # Initialize some variables set by options.
720 ac_init_help=
721 ac_init_version=false
722 # The variables have the same names as the options, with
723 # dashes changed to underlines.
724 cache_file=/dev/null
725 exec_prefix=NONE
726 no_create=
727 no_recursion=
728 prefix=NONE
729 program_prefix=NONE
730 program_suffix=NONE
731 program_transform_name=s,x,x,
732 silent=
733 site=
734 srcdir=
735 verbose=
736 x_includes=NONE
737 x_libraries=NONE
739 # Installation directory options.
740 # These are left unexpanded so users can "make install exec_prefix=/foo"
741 # and all the variables that are supposed to be based on exec_prefix
742 # by default will actually change.
743 # Use braces instead of parens because sh, perl, etc. also accept them.
744 # (The list follows the same order as the GNU Coding Standards.)
745 bindir='${exec_prefix}/bin'
746 sbindir='${exec_prefix}/sbin'
747 libexecdir='${exec_prefix}/libexec'
748 datarootdir='${prefix}/share'
749 datadir='${datarootdir}'
750 sysconfdir='${prefix}/etc'
751 sharedstatedir='${prefix}/com'
752 localstatedir='${prefix}/var'
753 includedir='${prefix}/include'
754 oldincludedir='/usr/include'
755 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
756 infodir='${datarootdir}/info'
757 htmldir='${docdir}'
758 dvidir='${docdir}'
759 pdfdir='${docdir}'
760 psdir='${docdir}'
761 libdir='${exec_prefix}/lib'
762 localedir='${datarootdir}/locale'
763 mandir='${datarootdir}/man'
765 ac_prev=
766 ac_dashdash=
767 for ac_option
769 # If the previous option needs an argument, assign it.
770 if test -n "$ac_prev"; then
771 eval $ac_prev=\$ac_option
772 ac_prev=
773 continue
776 case $ac_option in
777 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
778 *) ac_optarg=yes ;;
779 esac
781 # Accept the important Cygnus configure options, so we can diagnose typos.
783 case $ac_dashdash$ac_option in
785 ac_dashdash=yes ;;
787 -bindir | --bindir | --bindi | --bind | --bin | --bi)
788 ac_prev=bindir ;;
789 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
790 bindir=$ac_optarg ;;
792 -build | --build | --buil | --bui | --bu)
793 ac_prev=build_alias ;;
794 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
795 build_alias=$ac_optarg ;;
797 -cache-file | --cache-file | --cache-fil | --cache-fi \
798 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
799 ac_prev=cache_file ;;
800 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
801 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
802 cache_file=$ac_optarg ;;
804 --config-cache | -C)
805 cache_file=config.cache ;;
807 -datadir | --datadir | --datadi | --datad)
808 ac_prev=datadir ;;
809 -datadir=* | --datadir=* | --datadi=* | --datad=*)
810 datadir=$ac_optarg ;;
812 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
813 | --dataroo | --dataro | --datar)
814 ac_prev=datarootdir ;;
815 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
816 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
817 datarootdir=$ac_optarg ;;
819 -disable-* | --disable-*)
820 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824 { (exit 1); exit 1; }; }
825 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
826 eval enable_$ac_feature=no ;;
828 -docdir | --docdir | --docdi | --doc | --do)
829 ac_prev=docdir ;;
830 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
831 docdir=$ac_optarg ;;
833 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
834 ac_prev=dvidir ;;
835 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
836 dvidir=$ac_optarg ;;
838 -enable-* | --enable-*)
839 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_$ac_feature=\$ac_optarg ;;
847 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849 | --exec | --exe | --ex)
850 ac_prev=exec_prefix ;;
851 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853 | --exec=* | --exe=* | --ex=*)
854 exec_prefix=$ac_optarg ;;
856 -gas | --gas | --ga | --g)
857 # Obsolete; use --with-gas.
858 with_gas=yes ;;
860 -help | --help | --hel | --he | -h)
861 ac_init_help=long ;;
862 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863 ac_init_help=recursive ;;
864 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865 ac_init_help=short ;;
867 -host | --host | --hos | --ho)
868 ac_prev=host_alias ;;
869 -host=* | --host=* | --hos=* | --ho=*)
870 host_alias=$ac_optarg ;;
872 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873 ac_prev=htmldir ;;
874 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875 | --ht=*)
876 htmldir=$ac_optarg ;;
878 -includedir | --includedir | --includedi | --included | --include \
879 | --includ | --inclu | --incl | --inc)
880 ac_prev=includedir ;;
881 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882 | --includ=* | --inclu=* | --incl=* | --inc=*)
883 includedir=$ac_optarg ;;
885 -infodir | --infodir | --infodi | --infod | --info | --inf)
886 ac_prev=infodir ;;
887 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888 infodir=$ac_optarg ;;
890 -libdir | --libdir | --libdi | --libd)
891 ac_prev=libdir ;;
892 -libdir=* | --libdir=* | --libdi=* | --libd=*)
893 libdir=$ac_optarg ;;
895 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896 | --libexe | --libex | --libe)
897 ac_prev=libexecdir ;;
898 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899 | --libexe=* | --libex=* | --libe=*)
900 libexecdir=$ac_optarg ;;
902 -localedir | --localedir | --localedi | --localed | --locale)
903 ac_prev=localedir ;;
904 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905 localedir=$ac_optarg ;;
907 -localstatedir | --localstatedir | --localstatedi | --localstated \
908 | --localstate | --localstat | --localsta | --localst | --locals)
909 ac_prev=localstatedir ;;
910 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912 localstatedir=$ac_optarg ;;
914 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915 ac_prev=mandir ;;
916 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917 mandir=$ac_optarg ;;
919 -nfp | --nfp | --nf)
920 # Obsolete; use --without-fp.
921 with_fp=no ;;
923 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924 | --no-cr | --no-c | -n)
925 no_create=yes ;;
927 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
929 no_recursion=yes ;;
931 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933 | --oldin | --oldi | --old | --ol | --o)
934 ac_prev=oldincludedir ;;
935 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938 oldincludedir=$ac_optarg ;;
940 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941 ac_prev=prefix ;;
942 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
943 prefix=$ac_optarg ;;
945 -program-prefix | --program-prefix | --program-prefi | --program-pref \
946 | --program-pre | --program-pr | --program-p)
947 ac_prev=program_prefix ;;
948 -program-prefix=* | --program-prefix=* | --program-prefi=* \
949 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950 program_prefix=$ac_optarg ;;
952 -program-suffix | --program-suffix | --program-suffi | --program-suff \
953 | --program-suf | --program-su | --program-s)
954 ac_prev=program_suffix ;;
955 -program-suffix=* | --program-suffix=* | --program-suffi=* \
956 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957 program_suffix=$ac_optarg ;;
959 -program-transform-name | --program-transform-name \
960 | --program-transform-nam | --program-transform-na \
961 | --program-transform-n | --program-transform- \
962 | --program-transform | --program-transfor \
963 | --program-transfo | --program-transf \
964 | --program-trans | --program-tran \
965 | --progr-tra | --program-tr | --program-t)
966 ac_prev=program_transform_name ;;
967 -program-transform-name=* | --program-transform-name=* \
968 | --program-transform-nam=* | --program-transform-na=* \
969 | --program-transform-n=* | --program-transform-=* \
970 | --program-transform=* | --program-transfor=* \
971 | --program-transfo=* | --program-transf=* \
972 | --program-trans=* | --program-tran=* \
973 | --progr-tra=* | --program-tr=* | --program-t=*)
974 program_transform_name=$ac_optarg ;;
976 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977 ac_prev=pdfdir ;;
978 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
979 pdfdir=$ac_optarg ;;
981 -psdir | --psdir | --psdi | --psd | --ps)
982 ac_prev=psdir ;;
983 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
984 psdir=$ac_optarg ;;
986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987 | -silent | --silent | --silen | --sile | --sil)
988 silent=yes ;;
990 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991 ac_prev=sbindir ;;
992 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993 | --sbi=* | --sb=*)
994 sbindir=$ac_optarg ;;
996 -sharedstatedir | --sharedstatedir | --sharedstatedi \
997 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998 | --sharedst | --shareds | --shared | --share | --shar \
999 | --sha | --sh)
1000 ac_prev=sharedstatedir ;;
1001 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004 | --sha=* | --sh=*)
1005 sharedstatedir=$ac_optarg ;;
1007 -site | --site | --sit)
1008 ac_prev=site ;;
1009 -site=* | --site=* | --sit=*)
1010 site=$ac_optarg ;;
1012 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013 ac_prev=srcdir ;;
1014 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015 srcdir=$ac_optarg ;;
1017 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018 | --syscon | --sysco | --sysc | --sys | --sy)
1019 ac_prev=sysconfdir ;;
1020 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022 sysconfdir=$ac_optarg ;;
1024 -target | --target | --targe | --targ | --tar | --ta | --t)
1025 ac_prev=target_alias ;;
1026 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027 target_alias=$ac_optarg ;;
1029 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1030 verbose=yes ;;
1032 -version | --version | --versio | --versi | --vers | -V)
1033 ac_init_version=: ;;
1035 -with-* | --with-*)
1036 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039 { echo "$as_me: error: invalid package name: $ac_package" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1042 eval with_$ac_package=\$ac_optarg ;;
1044 -without-* | --without-*)
1045 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1048 { echo "$as_me: error: invalid package name: $ac_package" >&2
1049 { (exit 1); exit 1; }; }
1050 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1051 eval with_$ac_package=no ;;
1053 --x)
1054 # Obsolete; use --with-x.
1055 with_x=yes ;;
1057 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1058 | --x-incl | --x-inc | --x-in | --x-i)
1059 ac_prev=x_includes ;;
1060 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1061 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1062 x_includes=$ac_optarg ;;
1064 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1065 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1066 ac_prev=x_libraries ;;
1067 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1068 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1069 x_libraries=$ac_optarg ;;
1071 -*) { echo "$as_me: error: unrecognized option: $ac_option
1072 Try \`$0 --help' for more information." >&2
1073 { (exit 1); exit 1; }; }
1076 *=*)
1077 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1081 { (exit 1); exit 1; }; }
1082 eval $ac_envvar=\$ac_optarg
1083 export $ac_envvar ;;
1086 # FIXME: should be removed in autoconf 3.0.
1087 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1088 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1090 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1093 esac
1094 done
1096 if test -n "$ac_prev"; then
1097 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1098 { echo "$as_me: error: missing argument to $ac_option" >&2
1099 { (exit 1); exit 1; }; }
1102 # Be sure to have absolute directory names.
1103 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1104 datadir sysconfdir sharedstatedir localstatedir includedir \
1105 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1106 libdir localedir mandir
1108 eval ac_val=\$$ac_var
1109 case $ac_val in
1110 [\\/$]* | ?:[\\/]* ) continue;;
1111 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1112 esac
1113 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1114 { (exit 1); exit 1; }; }
1115 done
1117 # There might be people who depend on the old broken behavior: `$host'
1118 # used to hold the argument of --host etc.
1119 # FIXME: To remove some day.
1120 build=$build_alias
1121 host=$host_alias
1122 target=$target_alias
1124 # FIXME: To remove some day.
1125 if test "x$host_alias" != x; then
1126 if test "x$build_alias" = x; then
1127 cross_compiling=maybe
1128 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1129 If a cross compiler is detected then cross compile mode will be used." >&2
1130 elif test "x$build_alias" != "x$host_alias"; then
1131 cross_compiling=yes
1135 ac_tool_prefix=
1136 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1138 test "$silent" = yes && exec 6>/dev/null
1141 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1142 ac_ls_di=`ls -di .` &&
1143 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1144 { echo "$as_me: error: Working directory cannot be determined" >&2
1145 { (exit 1); exit 1; }; }
1146 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1147 { echo "$as_me: error: pwd does not report name of working directory" >&2
1148 { (exit 1); exit 1; }; }
1151 # Find the source files, if location was not specified.
1152 if test -z "$srcdir"; then
1153 ac_srcdir_defaulted=yes
1154 # Try the directory containing this script, then the parent directory.
1155 ac_confdir=`$as_dirname -- "$0" ||
1156 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1157 X"$0" : 'X\(//\)[^/]' \| \
1158 X"$0" : 'X\(//\)$' \| \
1159 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1160 echo X"$0" |
1161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1162 s//\1/
1165 /^X\(\/\/\)[^/].*/{
1166 s//\1/
1169 /^X\(\/\/\)$/{
1170 s//\1/
1173 /^X\(\/\).*/{
1174 s//\1/
1177 s/.*/./; q'`
1178 srcdir=$ac_confdir
1179 if test ! -r "$srcdir/$ac_unique_file"; then
1180 srcdir=..
1182 else
1183 ac_srcdir_defaulted=no
1185 if test ! -r "$srcdir/$ac_unique_file"; then
1186 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1187 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1188 { (exit 1); exit 1; }; }
1190 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1191 ac_abs_confdir=`(
1192 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1193 { (exit 1); exit 1; }; }
1194 pwd)`
1195 # When building in place, set srcdir=.
1196 if test "$ac_abs_confdir" = "$ac_pwd"; then
1197 srcdir=.
1199 # Remove unnecessary trailing slashes from srcdir.
1200 # Double slashes in file names in object file debugging info
1201 # mess up M-x gdb in Emacs.
1202 case $srcdir in
1203 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1204 esac
1205 for ac_var in $ac_precious_vars; do
1206 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1207 eval ac_env_${ac_var}_value=\$${ac_var}
1208 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1209 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1210 done
1213 # Report the --help message.
1215 if test "$ac_init_help" = "long"; then
1216 # Omit some internal or obsolete options to make the list less imposing.
1217 # This message is too long to be a string in the A/UX 3.1 sh.
1218 cat <<_ACEOF
1219 \`configure' configures epichord 0.0.0 to adapt to many kinds of systems.
1221 Usage: $0 [OPTION]... [VAR=VALUE]...
1223 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1224 VAR=VALUE. See below for descriptions of some of the useful variables.
1226 Defaults for the options are specified in brackets.
1228 Configuration:
1229 -h, --help display this help and exit
1230 --help=short display options specific to this package
1231 --help=recursive display the short help of all the included packages
1232 -V, --version display version information and exit
1233 -q, --quiet, --silent do not print \`checking...' messages
1234 --cache-file=FILE cache test results in FILE [disabled]
1235 -C, --config-cache alias for \`--cache-file=config.cache'
1236 -n, --no-create do not create output files
1237 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1239 Installation directories:
1240 --prefix=PREFIX install architecture-independent files in PREFIX
1241 [$ac_default_prefix]
1242 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1243 [PREFIX]
1245 By default, \`make install' will install all the files in
1246 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1247 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1248 for instance \`--prefix=\$HOME'.
1250 For better control, use the options below.
1252 Fine tuning of the installation directories:
1253 --bindir=DIR user executables [EPREFIX/bin]
1254 --sbindir=DIR system admin executables [EPREFIX/sbin]
1255 --libexecdir=DIR program executables [EPREFIX/libexec]
1256 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1257 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1258 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1259 --libdir=DIR object code libraries [EPREFIX/lib]
1260 --includedir=DIR C header files [PREFIX/include]
1261 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1262 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1263 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1264 --infodir=DIR info documentation [DATAROOTDIR/info]
1265 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1266 --mandir=DIR man documentation [DATAROOTDIR/man]
1267 --docdir=DIR documentation root [DATAROOTDIR/doc/epichord]
1268 --htmldir=DIR html documentation [DOCDIR]
1269 --dvidir=DIR dvi documentation [DOCDIR]
1270 --pdfdir=DIR pdf documentation [DOCDIR]
1271 --psdir=DIR ps documentation [DOCDIR]
1272 _ACEOF
1274 cat <<\_ACEOF
1276 Program names:
1277 --program-prefix=PREFIX prepend PREFIX to installed program names
1278 --program-suffix=SUFFIX append SUFFIX to installed program names
1279 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1280 _ACEOF
1283 if test -n "$ac_init_help"; then
1284 case $ac_init_help in
1285 short | recursive ) echo "Configuration of epichord 0.0.0:";;
1286 esac
1287 cat <<\_ACEOF
1289 Optional Features:
1290 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1291 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1292 --disable-dependency-tracking speeds up one-time build
1293 --enable-dependency-tracking do not reject slow dependency extractors
1295 Some influential environment variables:
1296 CXX C++ compiler command
1297 CXXFLAGS C++ compiler flags
1298 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1299 nonstandard directory <lib dir>
1300 LIBS libraries to pass to the linker, e.g. -l<library>
1301 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1302 you have headers in a nonstandard directory <include dir>
1303 CC C compiler command
1304 CFLAGS C compiler flags
1305 CPP C preprocessor
1307 Use these variables to override the choices made by `configure' or to help
1308 it to find libraries and programs with nonstandard names/locations.
1310 Report bugs to <unknown@somewhere.org>.
1311 _ACEOF
1312 ac_status=$?
1315 if test "$ac_init_help" = "recursive"; then
1316 # If there are subdirs, report their specific --help.
1317 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1318 test -d "$ac_dir" || continue
1319 ac_builddir=.
1321 case "$ac_dir" in
1322 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1324 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1325 # A ".." for each directory in $ac_dir_suffix.
1326 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1327 case $ac_top_builddir_sub in
1328 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1329 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1330 esac ;;
1331 esac
1332 ac_abs_top_builddir=$ac_pwd
1333 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1334 # for backward compatibility:
1335 ac_top_builddir=$ac_top_build_prefix
1337 case $srcdir in
1338 .) # We are building in place.
1339 ac_srcdir=.
1340 ac_top_srcdir=$ac_top_builddir_sub
1341 ac_abs_top_srcdir=$ac_pwd ;;
1342 [\\/]* | ?:[\\/]* ) # Absolute name.
1343 ac_srcdir=$srcdir$ac_dir_suffix;
1344 ac_top_srcdir=$srcdir
1345 ac_abs_top_srcdir=$srcdir ;;
1346 *) # Relative name.
1347 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1348 ac_top_srcdir=$ac_top_build_prefix$srcdir
1349 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1350 esac
1351 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1353 cd "$ac_dir" || { ac_status=$?; continue; }
1354 # Check for guested configure.
1355 if test -f "$ac_srcdir/configure.gnu"; then
1356 echo &&
1357 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1358 elif test -f "$ac_srcdir/configure"; then
1359 echo &&
1360 $SHELL "$ac_srcdir/configure" --help=recursive
1361 else
1362 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1363 fi || ac_status=$?
1364 cd "$ac_pwd" || { ac_status=$?; break; }
1365 done
1368 test -n "$ac_init_help" && exit $ac_status
1369 if $ac_init_version; then
1370 cat <<\_ACEOF
1371 epichord configure 0.0.0
1372 generated by GNU Autoconf 2.61
1374 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1375 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1376 This configure script is free software; the Free Software Foundation
1377 gives unlimited permission to copy, distribute and modify it.
1378 _ACEOF
1379 exit
1381 cat >config.log <<_ACEOF
1382 This file contains any messages produced by compilers while
1383 running configure, to aid debugging if configure makes a mistake.
1385 It was created by epichord $as_me 0.0.0, which was
1386 generated by GNU Autoconf 2.61. Invocation command line was
1388 $ $0 $@
1390 _ACEOF
1391 exec 5>>config.log
1393 cat <<_ASUNAME
1394 ## --------- ##
1395 ## Platform. ##
1396 ## --------- ##
1398 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1399 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1400 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1401 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1402 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1404 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1405 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1407 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1408 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1409 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1410 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1411 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1412 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1413 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1415 _ASUNAME
1417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1418 for as_dir in $PATH
1420 IFS=$as_save_IFS
1421 test -z "$as_dir" && as_dir=.
1422 echo "PATH: $as_dir"
1423 done
1424 IFS=$as_save_IFS
1426 } >&5
1428 cat >&5 <<_ACEOF
1431 ## ----------- ##
1432 ## Core tests. ##
1433 ## ----------- ##
1435 _ACEOF
1438 # Keep a trace of the command line.
1439 # Strip out --no-create and --no-recursion so they do not pile up.
1440 # Strip out --silent because we don't want to record it for future runs.
1441 # Also quote any args containing shell meta-characters.
1442 # Make two passes to allow for proper duplicate-argument suppression.
1443 ac_configure_args=
1444 ac_configure_args0=
1445 ac_configure_args1=
1446 ac_must_keep_next=false
1447 for ac_pass in 1 2
1449 for ac_arg
1451 case $ac_arg in
1452 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1453 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1454 | -silent | --silent | --silen | --sile | --sil)
1455 continue ;;
1456 *\'*)
1457 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1458 esac
1459 case $ac_pass in
1460 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1462 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1463 if test $ac_must_keep_next = true; then
1464 ac_must_keep_next=false # Got value, back to normal.
1465 else
1466 case $ac_arg in
1467 *=* | --config-cache | -C | -disable-* | --disable-* \
1468 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1469 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1470 | -with-* | --with-* | -without-* | --without-* | --x)
1471 case "$ac_configure_args0 " in
1472 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1473 esac
1475 -* ) ac_must_keep_next=true ;;
1476 esac
1478 ac_configure_args="$ac_configure_args '$ac_arg'"
1480 esac
1481 done
1482 done
1483 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1484 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1486 # When interrupted or exit'd, cleanup temporary files, and complete
1487 # config.log. We remove comments because anyway the quotes in there
1488 # would cause problems or look ugly.
1489 # WARNING: Use '\'' to represent an apostrophe within the trap.
1490 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1491 trap 'exit_status=$?
1492 # Save into config.log some information that might help in debugging.
1494 echo
1496 cat <<\_ASBOX
1497 ## ---------------- ##
1498 ## Cache variables. ##
1499 ## ---------------- ##
1500 _ASBOX
1501 echo
1502 # The following way of writing the cache mishandles newlines in values,
1504 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1505 eval ac_val=\$$ac_var
1506 case $ac_val in #(
1507 *${as_nl}*)
1508 case $ac_var in #(
1509 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1510 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1511 esac
1512 case $ac_var in #(
1513 _ | IFS | as_nl) ;; #(
1514 *) $as_unset $ac_var ;;
1515 esac ;;
1516 esac
1517 done
1518 (set) 2>&1 |
1519 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1520 *${as_nl}ac_space=\ *)
1521 sed -n \
1522 "s/'\''/'\''\\\\'\'''\''/g;
1523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1524 ;; #(
1526 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1528 esac |
1529 sort
1531 echo
1533 cat <<\_ASBOX
1534 ## ----------------- ##
1535 ## Output variables. ##
1536 ## ----------------- ##
1537 _ASBOX
1538 echo
1539 for ac_var in $ac_subst_vars
1541 eval ac_val=\$$ac_var
1542 case $ac_val in
1543 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1544 esac
1545 echo "$ac_var='\''$ac_val'\''"
1546 done | sort
1547 echo
1549 if test -n "$ac_subst_files"; then
1550 cat <<\_ASBOX
1551 ## ------------------- ##
1552 ## File substitutions. ##
1553 ## ------------------- ##
1554 _ASBOX
1555 echo
1556 for ac_var in $ac_subst_files
1558 eval ac_val=\$$ac_var
1559 case $ac_val in
1560 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1561 esac
1562 echo "$ac_var='\''$ac_val'\''"
1563 done | sort
1564 echo
1567 if test -s confdefs.h; then
1568 cat <<\_ASBOX
1569 ## ----------- ##
1570 ## confdefs.h. ##
1571 ## ----------- ##
1572 _ASBOX
1573 echo
1574 cat confdefs.h
1575 echo
1577 test "$ac_signal" != 0 &&
1578 echo "$as_me: caught signal $ac_signal"
1579 echo "$as_me: exit $exit_status"
1580 } >&5
1581 rm -f core *.core core.conftest.* &&
1582 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1583 exit $exit_status
1585 for ac_signal in 1 2 13 15; do
1586 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1587 done
1588 ac_signal=0
1590 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1591 rm -f -r conftest* confdefs.h
1593 # Predefined preprocessor variables.
1595 cat >>confdefs.h <<_ACEOF
1596 #define PACKAGE_NAME "$PACKAGE_NAME"
1597 _ACEOF
1600 cat >>confdefs.h <<_ACEOF
1601 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1602 _ACEOF
1605 cat >>confdefs.h <<_ACEOF
1606 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1607 _ACEOF
1610 cat >>confdefs.h <<_ACEOF
1611 #define PACKAGE_STRING "$PACKAGE_STRING"
1612 _ACEOF
1615 cat >>confdefs.h <<_ACEOF
1616 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1617 _ACEOF
1620 # Let the site file select an alternate cache file if it wants to.
1621 # Prefer explicitly selected file to automatically selected ones.
1622 if test -n "$CONFIG_SITE"; then
1623 set x "$CONFIG_SITE"
1624 elif test "x$prefix" != xNONE; then
1625 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1626 else
1627 set x "$ac_default_prefix/share/config.site" \
1628 "$ac_default_prefix/etc/config.site"
1630 shift
1631 for ac_site_file
1633 if test -r "$ac_site_file"; then
1634 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1635 echo "$as_me: loading site script $ac_site_file" >&6;}
1636 sed 's/^/| /' "$ac_site_file" >&5
1637 . "$ac_site_file"
1639 done
1641 if test -r "$cache_file"; then
1642 # Some versions of bash will fail to source /dev/null (special
1643 # files actually), so we avoid doing that.
1644 if test -f "$cache_file"; then
1645 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1646 echo "$as_me: loading cache $cache_file" >&6;}
1647 case $cache_file in
1648 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1649 *) . "./$cache_file";;
1650 esac
1652 else
1653 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1654 echo "$as_me: creating cache $cache_file" >&6;}
1655 >$cache_file
1658 # Check that the precious variables saved in the cache have kept the same
1659 # value.
1660 ac_cache_corrupted=false
1661 for ac_var in $ac_precious_vars; do
1662 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1663 eval ac_new_set=\$ac_env_${ac_var}_set
1664 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1665 eval ac_new_val=\$ac_env_${ac_var}_value
1666 case $ac_old_set,$ac_new_set in
1667 set,)
1668 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1669 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1670 ac_cache_corrupted=: ;;
1671 ,set)
1672 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1673 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1674 ac_cache_corrupted=: ;;
1675 ,);;
1677 if test "x$ac_old_val" != "x$ac_new_val"; then
1678 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1679 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1680 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1681 echo "$as_me: former value: $ac_old_val" >&2;}
1682 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1683 echo "$as_me: current value: $ac_new_val" >&2;}
1684 ac_cache_corrupted=:
1685 fi;;
1686 esac
1687 # Pass precious variables to config.status.
1688 if test "$ac_new_set" = set; then
1689 case $ac_new_val in
1690 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1691 *) ac_arg=$ac_var=$ac_new_val ;;
1692 esac
1693 case " $ac_configure_args " in
1694 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1695 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1696 esac
1698 done
1699 if $ac_cache_corrupted; then
1700 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1701 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1702 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1703 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1704 { (exit 1); exit 1; }; }
1731 ac_ext=c
1732 ac_cpp='$CPP $CPPFLAGS'
1733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1738 am__api_version="1.9"
1739 ac_aux_dir=
1740 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1741 if test -f "$ac_dir/install-sh"; then
1742 ac_aux_dir=$ac_dir
1743 ac_install_sh="$ac_aux_dir/install-sh -c"
1744 break
1745 elif test -f "$ac_dir/install.sh"; then
1746 ac_aux_dir=$ac_dir
1747 ac_install_sh="$ac_aux_dir/install.sh -c"
1748 break
1749 elif test -f "$ac_dir/shtool"; then
1750 ac_aux_dir=$ac_dir
1751 ac_install_sh="$ac_aux_dir/shtool install -c"
1752 break
1754 done
1755 if test -z "$ac_aux_dir"; then
1756 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1757 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1758 { (exit 1); exit 1; }; }
1761 # These three variables are undocumented and unsupported,
1762 # and are intended to be withdrawn in a future Autoconf release.
1763 # They can cause serious problems if a builder's source tree is in a directory
1764 # whose full name contains unusual characters.
1765 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1766 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1767 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1770 # Find a good install program. We prefer a C program (faster),
1771 # so one script is as good as another. But avoid the broken or
1772 # incompatible versions:
1773 # SysV /etc/install, /usr/sbin/install
1774 # SunOS /usr/etc/install
1775 # IRIX /sbin/install
1776 # AIX /bin/install
1777 # AmigaOS /C/install, which installs bootblocks on floppy discs
1778 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1779 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1780 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1781 # OS/2's system install, which has a completely different semantic
1782 # ./install, which can be erroneously created by make from ./install.sh.
1783 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1784 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1785 if test -z "$INSTALL"; then
1786 if test "${ac_cv_path_install+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 for as_dir in $PATH
1792 IFS=$as_save_IFS
1793 test -z "$as_dir" && as_dir=.
1794 # Account for people who put trailing slashes in PATH elements.
1795 case $as_dir/ in
1796 ./ | .// | /cC/* | \
1797 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1798 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1799 /usr/ucb/* ) ;;
1801 # OSF1 and SCO ODT 3.0 have their own names for install.
1802 # Don't use installbsd from OSF since it installs stuff as root
1803 # by default.
1804 for ac_prog in ginstall scoinst install; do
1805 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1807 if test $ac_prog = install &&
1808 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1809 # AIX install. It has an incompatible calling convention.
1811 elif test $ac_prog = install &&
1812 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1813 # program-specific install script used by HP pwplus--don't use.
1815 else
1816 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1817 break 3
1820 done
1821 done
1823 esac
1824 done
1825 IFS=$as_save_IFS
1829 if test "${ac_cv_path_install+set}" = set; then
1830 INSTALL=$ac_cv_path_install
1831 else
1832 # As a last resort, use the slow shell script. Don't cache a
1833 # value for INSTALL within a source directory, because that will
1834 # break other packages using the cache if that directory is
1835 # removed, or if the value is a relative name.
1836 INSTALL=$ac_install_sh
1839 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1840 echo "${ECHO_T}$INSTALL" >&6; }
1842 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1843 # It thinks the first close brace ends the variable substitution.
1844 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1846 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1848 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1850 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1851 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1852 # Just in case
1853 sleep 1
1854 echo timestamp > conftest.file
1855 # Do `set' in a subshell so we don't clobber the current shell's
1856 # arguments. Must try -L first in case configure is actually a
1857 # symlink; some systems play weird games with the mod time of symlinks
1858 # (eg FreeBSD returns the mod time of the symlink's containing
1859 # directory).
1860 if (
1861 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1862 if test "$*" = "X"; then
1863 # -L didn't work.
1864 set X `ls -t $srcdir/configure conftest.file`
1866 rm -f conftest.file
1867 if test "$*" != "X $srcdir/configure conftest.file" \
1868 && test "$*" != "X conftest.file $srcdir/configure"; then
1870 # If neither matched, then we have a broken ls. This can happen
1871 # if, for instance, CONFIG_SHELL is bash and it inherits a
1872 # broken ls alias from the environment. This has actually
1873 # happened. Such a system could not be considered "sane".
1874 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1875 alias in your environment" >&5
1876 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1877 alias in your environment" >&2;}
1878 { (exit 1); exit 1; }; }
1881 test "$2" = conftest.file
1883 then
1884 # Ok.
1886 else
1887 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1888 Check your system clock" >&5
1889 echo "$as_me: error: newly created file is older than distributed files!
1890 Check your system clock" >&2;}
1891 { (exit 1); exit 1; }; }
1893 { echo "$as_me:$LINENO: result: yes" >&5
1894 echo "${ECHO_T}yes" >&6; }
1895 test "$program_prefix" != NONE &&
1896 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1897 # Use a double $ so make ignores it.
1898 test "$program_suffix" != NONE &&
1899 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1900 # Double any \ or $. echo might interpret backslashes.
1901 # By default was `s,x,x', remove it if useless.
1902 cat <<\_ACEOF >conftest.sed
1903 s/[\\$]/&&/g;s/;s,x,x,$//
1904 _ACEOF
1905 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1906 rm -f conftest.sed
1908 # expand $ac_aux_dir to an absolute path
1909 am_aux_dir=`cd $ac_aux_dir && pwd`
1911 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1912 # Use eval to expand $SHELL
1913 if eval "$MISSING --run true"; then
1914 am_missing_run="$MISSING --run "
1915 else
1916 am_missing_run=
1917 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1918 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1921 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1922 # We used to keeping the `.' as first argument, in order to
1923 # allow $(mkdir_p) to be used without argument. As in
1924 # $(mkdir_p) $(somedir)
1925 # where $(somedir) is conditionally defined. However this is wrong
1926 # for two reasons:
1927 # 1. if the package is installed by a user who cannot write `.'
1928 # make install will fail,
1929 # 2. the above comment should most certainly read
1930 # $(mkdir_p) $(DESTDIR)$(somedir)
1931 # so it does not work when $(somedir) is undefined and
1932 # $(DESTDIR) is not.
1933 # To support the latter case, we have to write
1934 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1935 # so the `.' trick is pointless.
1936 mkdir_p='mkdir -p --'
1937 else
1938 # On NextStep and OpenStep, the `mkdir' command does not
1939 # recognize any option. It will interpret all options as
1940 # directories to create, and then abort because `.' already
1941 # exists.
1942 for d in ./-p ./--version;
1944 test -d $d && rmdir $d
1945 done
1946 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1947 if test -f "$ac_aux_dir/mkinstalldirs"; then
1948 mkdir_p='$(mkinstalldirs)'
1949 else
1950 mkdir_p='$(install_sh) -d'
1954 for ac_prog in gawk mawk nawk awk
1956 # Extract the first word of "$ac_prog", so it can be a program name with args.
1957 set dummy $ac_prog; ac_word=$2
1958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1960 if test "${ac_cv_prog_AWK+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 else
1963 if test -n "$AWK"; then
1964 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1965 else
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1969 IFS=$as_save_IFS
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
1972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1973 ac_cv_prog_AWK="$ac_prog"
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975 break 2
1977 done
1978 done
1979 IFS=$as_save_IFS
1983 AWK=$ac_cv_prog_AWK
1984 if test -n "$AWK"; then
1985 { echo "$as_me:$LINENO: result: $AWK" >&5
1986 echo "${ECHO_T}$AWK" >&6; }
1987 else
1988 { echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6; }
1993 test -n "$AWK" && break
1994 done
1996 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1997 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1998 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1999 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002 cat >conftest.make <<\_ACEOF
2003 SHELL = /bin/sh
2004 all:
2005 @echo '@@@%%%=$(MAKE)=@@@%%%'
2006 _ACEOF
2007 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2008 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2009 *@@@%%%=?*=@@@%%%*)
2010 eval ac_cv_prog_make_${ac_make}_set=yes;;
2012 eval ac_cv_prog_make_${ac_make}_set=no;;
2013 esac
2014 rm -f conftest.make
2016 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2017 { echo "$as_me:$LINENO: result: yes" >&5
2018 echo "${ECHO_T}yes" >&6; }
2019 SET_MAKE=
2020 else
2021 { echo "$as_me:$LINENO: result: no" >&5
2022 echo "${ECHO_T}no" >&6; }
2023 SET_MAKE="MAKE=${MAKE-make}"
2026 rm -rf .tst 2>/dev/null
2027 mkdir .tst 2>/dev/null
2028 if test -d .tst; then
2029 am__leading_dot=.
2030 else
2031 am__leading_dot=_
2033 rmdir .tst 2>/dev/null
2035 # test to see if srcdir already configured
2036 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2037 test -f $srcdir/config.status; then
2038 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2039 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2040 { (exit 1); exit 1; }; }
2043 # test whether we have cygpath
2044 if test -z "$CYGPATH_W"; then
2045 if (cygpath --version) >/dev/null 2>/dev/null; then
2046 CYGPATH_W='cygpath -w'
2047 else
2048 CYGPATH_W=echo
2053 # Define the identity of the package.
2054 PACKAGE=epichord
2055 VERSION=0.0.0
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE "$PACKAGE"
2060 _ACEOF
2063 cat >>confdefs.h <<_ACEOF
2064 #define VERSION "$VERSION"
2065 _ACEOF
2067 # Some tools Automake needs.
2069 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2072 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2075 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2078 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2081 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2083 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2085 # Installed binaries are usually stripped using `strip' when the user
2086 # run `make install-strip'. However `strip' might not be the right
2087 # tool to use in cross-compilation environments, therefore Automake
2088 # will honor the `STRIP' environment variable to overrule this program.
2089 if test "$cross_compiling" != no; then
2090 if test -n "$ac_tool_prefix"; then
2091 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2092 set dummy ${ac_tool_prefix}strip; ac_word=$2
2093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2095 if test "${ac_cv_prog_STRIP+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098 if test -n "$STRIP"; then
2099 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2100 else
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2104 IFS=$as_save_IFS
2105 test -z "$as_dir" && as_dir=.
2106 for ac_exec_ext in '' $ac_executable_extensions; do
2107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2108 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 break 2
2112 done
2113 done
2114 IFS=$as_save_IFS
2118 STRIP=$ac_cv_prog_STRIP
2119 if test -n "$STRIP"; then
2120 { echo "$as_me:$LINENO: result: $STRIP" >&5
2121 echo "${ECHO_T}$STRIP" >&6; }
2122 else
2123 { echo "$as_me:$LINENO: result: no" >&5
2124 echo "${ECHO_T}no" >&6; }
2129 if test -z "$ac_cv_prog_STRIP"; then
2130 ac_ct_STRIP=$STRIP
2131 # Extract the first word of "strip", so it can be a program name with args.
2132 set dummy strip; ac_word=$2
2133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2135 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138 if test -n "$ac_ct_STRIP"; then
2139 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2148 ac_cv_prog_ac_ct_STRIP="strip"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 break 2
2152 done
2153 done
2154 IFS=$as_save_IFS
2158 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2159 if test -n "$ac_ct_STRIP"; then
2160 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2161 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2162 else
2163 { echo "$as_me:$LINENO: result: no" >&5
2164 echo "${ECHO_T}no" >&6; }
2167 if test "x$ac_ct_STRIP" = x; then
2168 STRIP=":"
2169 else
2170 case $cross_compiling:$ac_tool_warned in
2171 yes:)
2172 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2173 whose name does not start with the host triplet. If you think this
2174 configuration is useful to you, please write to autoconf@gnu.org." >&5
2175 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2176 whose name does not start with the host triplet. If you think this
2177 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2178 ac_tool_warned=yes ;;
2179 esac
2180 STRIP=$ac_ct_STRIP
2182 else
2183 STRIP="$ac_cv_prog_STRIP"
2187 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2189 # We need awk for the "check" target. The system "awk" is bad on
2190 # some platforms.
2191 # Always define AMTAR for backward compatibility.
2193 AMTAR=${AMTAR-"${am_missing_run}tar"}
2195 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2202 ac_config_headers="$ac_config_headers config.h"
2205 # Checks for programs.
2206 ac_ext=cpp
2207 ac_cpp='$CXXCPP $CPPFLAGS'
2208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2211 if test -z "$CXX"; then
2212 if test -n "$CCC"; then
2213 CXX=$CCC
2214 else
2215 if test -n "$ac_tool_prefix"; then
2216 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2222 if test "${ac_cv_prog_CXX+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225 if test -n "$CXX"; then
2226 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2227 else
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2231 IFS=$as_save_IFS
2232 test -z "$as_dir" && as_dir=.
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2235 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237 break 2
2239 done
2240 done
2241 IFS=$as_save_IFS
2245 CXX=$ac_cv_prog_CXX
2246 if test -n "$CXX"; then
2247 { echo "$as_me:$LINENO: result: $CXX" >&5
2248 echo "${ECHO_T}$CXX" >&6; }
2249 else
2250 { echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6; }
2255 test -n "$CXX" && break
2256 done
2258 if test -z "$CXX"; then
2259 ac_ct_CXX=$CXX
2260 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2262 # Extract the first word of "$ac_prog", so it can be a program name with args.
2263 set dummy $ac_prog; ac_word=$2
2264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2266 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269 if test -n "$ac_ct_CXX"; then
2270 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2271 else
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 for as_dir in $PATH
2275 IFS=$as_save_IFS
2276 test -z "$as_dir" && as_dir=.
2277 for ac_exec_ext in '' $ac_executable_extensions; do
2278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2279 ac_cv_prog_ac_ct_CXX="$ac_prog"
2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 break 2
2283 done
2284 done
2285 IFS=$as_save_IFS
2289 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2290 if test -n "$ac_ct_CXX"; then
2291 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2292 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2293 else
2294 { echo "$as_me:$LINENO: result: no" >&5
2295 echo "${ECHO_T}no" >&6; }
2299 test -n "$ac_ct_CXX" && break
2300 done
2302 if test "x$ac_ct_CXX" = x; then
2303 CXX="g++"
2304 else
2305 case $cross_compiling:$ac_tool_warned in
2306 yes:)
2307 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2308 whose name does not start with the host triplet. If you think this
2309 configuration is useful to you, please write to autoconf@gnu.org." >&5
2310 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2311 whose name does not start with the host triplet. If you think this
2312 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2313 ac_tool_warned=yes ;;
2314 esac
2315 CXX=$ac_ct_CXX
2321 # Provide some information about the compiler.
2322 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2323 ac_compiler=`set X $ac_compile; echo $2`
2324 { (ac_try="$ac_compiler --version >&5"
2325 case "(($ac_try" in
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2328 esac
2329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330 (eval "$ac_compiler --version >&5") 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }
2334 { (ac_try="$ac_compiler -v >&5"
2335 case "(($ac_try" in
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2338 esac
2339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2340 (eval "$ac_compiler -v >&5") 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }
2344 { (ac_try="$ac_compiler -V >&5"
2345 case "(($ac_try" in
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2348 esac
2349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2350 (eval "$ac_compiler -V >&5") 2>&5
2351 ac_status=$?
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }
2355 cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h. */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2363 main ()
2367 return 0;
2369 _ACEOF
2370 ac_clean_files_save=$ac_clean_files
2371 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2372 # Try to create an executable without -o first, disregard a.out.
2373 # It will help us diagnose broken compilers, and finding out an intuition
2374 # of exeext.
2375 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2376 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2377 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2379 # List of possible output files, starting from the most likely.
2380 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2381 # only as a last resort. b.out is created by i960 compilers.
2382 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2384 # The IRIX 6 linker writes into existing files which may not be
2385 # executable, retaining their permissions. Remove them first so a
2386 # subsequent execution test works.
2387 ac_rmfiles=
2388 for ac_file in $ac_files
2390 case $ac_file in
2391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2392 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2393 esac
2394 done
2395 rm -f $ac_rmfiles
2397 if { (ac_try="$ac_link_default"
2398 case "(($ac_try" in
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2401 esac
2402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2403 (eval "$ac_link_default") 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; then
2407 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2408 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2409 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2410 # so that the user can short-circuit this test for compilers unknown to
2411 # Autoconf.
2412 for ac_file in $ac_files ''
2414 test -f "$ac_file" || continue
2415 case $ac_file in
2416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2418 [ab].out )
2419 # We found the default executable, but exeext='' is most
2420 # certainly right.
2421 break;;
2422 *.* )
2423 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2424 then :; else
2425 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2427 # We set ac_cv_exeext here because the later test for it is not
2428 # safe: cross compilers may not add the suffix if given an `-o'
2429 # argument, so we may need to know it at that point already.
2430 # Even if this section looks crufty: it has the advantage of
2431 # actually working.
2432 break;;
2434 break;;
2435 esac
2436 done
2437 test "$ac_cv_exeext" = no && ac_cv_exeext=
2439 else
2440 ac_file=''
2443 { echo "$as_me:$LINENO: result: $ac_file" >&5
2444 echo "${ECHO_T}$ac_file" >&6; }
2445 if test -z "$ac_file"; then
2446 echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2449 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2450 See \`config.log' for more details." >&5
2451 echo "$as_me: error: C++ compiler cannot create executables
2452 See \`config.log' for more details." >&2;}
2453 { (exit 77); exit 77; }; }
2456 ac_exeext=$ac_cv_exeext
2458 # Check that the compiler produces executables we can run. If not, either
2459 # the compiler is broken, or we cross compile.
2460 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2461 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2462 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2463 # If not cross compiling, check that we can run a simple program.
2464 if test "$cross_compiling" != yes; then
2465 if { ac_try='./$ac_file'
2466 { (case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469 esac
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_try") 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2475 cross_compiling=no
2476 else
2477 if test "$cross_compiling" = maybe; then
2478 cross_compiling=yes
2479 else
2480 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2481 If you meant to cross compile, use \`--host'.
2482 See \`config.log' for more details." >&5
2483 echo "$as_me: error: cannot run C++ compiled programs.
2484 If you meant to cross compile, use \`--host'.
2485 See \`config.log' for more details." >&2;}
2486 { (exit 1); exit 1; }; }
2490 { echo "$as_me:$LINENO: result: yes" >&5
2491 echo "${ECHO_T}yes" >&6; }
2493 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2494 ac_clean_files=$ac_clean_files_save
2495 # Check that the compiler produces executables we can run. If not, either
2496 # the compiler is broken, or we cross compile.
2497 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2498 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2499 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2500 echo "${ECHO_T}$cross_compiling" >&6; }
2502 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2503 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2504 if { (ac_try="$ac_link"
2505 case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2508 esac
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_link") 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; then
2514 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2515 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2516 # work properly (i.e., refer to `conftest.exe'), while it won't with
2517 # `rm'.
2518 for ac_file in conftest.exe conftest conftest.*; do
2519 test -f "$ac_file" || continue
2520 case $ac_file in
2521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2522 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2523 break;;
2524 * ) break;;
2525 esac
2526 done
2527 else
2528 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2529 See \`config.log' for more details." >&5
2530 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2531 See \`config.log' for more details." >&2;}
2532 { (exit 1); exit 1; }; }
2535 rm -f conftest$ac_cv_exeext
2536 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2537 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2539 rm -f conftest.$ac_ext
2540 EXEEXT=$ac_cv_exeext
2541 ac_exeext=$EXEEXT
2542 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2543 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2544 if test "${ac_cv_objext+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547 cat >conftest.$ac_ext <<_ACEOF
2548 /* confdefs.h. */
2549 _ACEOF
2550 cat confdefs.h >>conftest.$ac_ext
2551 cat >>conftest.$ac_ext <<_ACEOF
2552 /* end confdefs.h. */
2555 main ()
2559 return 0;
2561 _ACEOF
2562 rm -f conftest.o conftest.obj
2563 if { (ac_try="$ac_compile"
2564 case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567 esac
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_compile") 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; then
2573 for ac_file in conftest.o conftest.obj conftest.*; do
2574 test -f "$ac_file" || continue;
2575 case $ac_file in
2576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2577 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2578 break;;
2579 esac
2580 done
2581 else
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2585 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2586 See \`config.log' for more details." >&5
2587 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2588 See \`config.log' for more details." >&2;}
2589 { (exit 1); exit 1; }; }
2592 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2594 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2595 echo "${ECHO_T}$ac_cv_objext" >&6; }
2596 OBJEXT=$ac_cv_objext
2597 ac_objext=$OBJEXT
2598 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2599 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2600 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603 cat >conftest.$ac_ext <<_ACEOF
2604 /* confdefs.h. */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2611 main ()
2613 #ifndef __GNUC__
2614 choke me
2615 #endif
2618 return 0;
2620 _ACEOF
2621 rm -f conftest.$ac_objext
2622 if { (ac_try="$ac_compile"
2623 case "(($ac_try" in
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2626 esac
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628 (eval "$ac_compile") 2>conftest.er1
2629 ac_status=$?
2630 grep -v '^ *+' conftest.er1 >conftest.err
2631 rm -f conftest.er1
2632 cat conftest.err >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } && {
2635 test -z "$ac_cxx_werror_flag" ||
2636 test ! -s conftest.err
2637 } && test -s conftest.$ac_objext; then
2638 ac_compiler_gnu=yes
2639 else
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2643 ac_compiler_gnu=no
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2650 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2651 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2652 GXX=`test $ac_compiler_gnu = yes && echo yes`
2653 ac_test_CXXFLAGS=${CXXFLAGS+set}
2654 ac_save_CXXFLAGS=$CXXFLAGS
2655 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2656 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2657 if test "${ac_cv_prog_cxx_g+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2661 ac_cxx_werror_flag=yes
2662 ac_cv_prog_cxx_g=no
2663 CXXFLAGS="-g"
2664 cat >conftest.$ac_ext <<_ACEOF
2665 /* confdefs.h. */
2666 _ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2672 main ()
2676 return 0;
2678 _ACEOF
2679 rm -f conftest.$ac_objext
2680 if { (ac_try="$ac_compile"
2681 case "(($ac_try" in
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2684 esac
2685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2686 (eval "$ac_compile") 2>conftest.er1
2687 ac_status=$?
2688 grep -v '^ *+' conftest.er1 >conftest.err
2689 rm -f conftest.er1
2690 cat conftest.err >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } && {
2693 test -z "$ac_cxx_werror_flag" ||
2694 test ! -s conftest.err
2695 } && test -s conftest.$ac_objext; then
2696 ac_cv_prog_cxx_g=yes
2697 else
2698 echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2701 CXXFLAGS=""
2702 cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h. */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2710 main ()
2714 return 0;
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (ac_try="$ac_compile"
2719 case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_compile") 2>conftest.er1
2725 ac_status=$?
2726 grep -v '^ *+' conftest.er1 >conftest.err
2727 rm -f conftest.er1
2728 cat conftest.err >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } && {
2731 test -z "$ac_cxx_werror_flag" ||
2732 test ! -s conftest.err
2733 } && test -s conftest.$ac_objext; then
2735 else
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2739 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2740 CXXFLAGS="-g"
2741 cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h. */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2749 main ()
2753 return 0;
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (ac_try="$ac_compile"
2758 case "(($ac_try" in
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2761 esac
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_compile") 2>conftest.er1
2764 ac_status=$?
2765 grep -v '^ *+' conftest.er1 >conftest.err
2766 rm -f conftest.er1
2767 cat conftest.err >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } && {
2770 test -z "$ac_cxx_werror_flag" ||
2771 test ! -s conftest.err
2772 } && test -s conftest.$ac_objext; then
2773 ac_cv_prog_cxx_g=yes
2774 else
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2790 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2791 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2792 if test "$ac_test_CXXFLAGS" = set; then
2793 CXXFLAGS=$ac_save_CXXFLAGS
2794 elif test $ac_cv_prog_cxx_g = yes; then
2795 if test "$GXX" = yes; then
2796 CXXFLAGS="-g -O2"
2797 else
2798 CXXFLAGS="-g"
2800 else
2801 if test "$GXX" = yes; then
2802 CXXFLAGS="-O2"
2803 else
2804 CXXFLAGS=
2807 ac_ext=c
2808 ac_cpp='$CPP $CPPFLAGS'
2809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2812 DEPDIR="${am__leading_dot}deps"
2814 ac_config_commands="$ac_config_commands depfiles"
2817 am_make=${MAKE-make}
2818 cat > confinc << 'END'
2819 am__doit:
2820 @echo done
2821 .PHONY: am__doit
2823 # If we don't find an include directive, just comment out the code.
2824 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2825 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2826 am__include="#"
2827 am__quote=
2828 _am_result=none
2829 # First try GNU make style include.
2830 echo "include confinc" > confmf
2831 # We grep out `Entering directory' and `Leaving directory'
2832 # messages which can occur if `w' ends up in MAKEFLAGS.
2833 # In particular we don't look at `^make:' because GNU make might
2834 # be invoked under some other name (usually "gmake"), in which
2835 # case it prints its new name instead of `make'.
2836 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2837 am__include=include
2838 am__quote=
2839 _am_result=GNU
2841 # Now try BSD make style include.
2842 if test "$am__include" = "#"; then
2843 echo '.include "confinc"' > confmf
2844 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2845 am__include=.include
2846 am__quote="\""
2847 _am_result=BSD
2852 { echo "$as_me:$LINENO: result: $_am_result" >&5
2853 echo "${ECHO_T}$_am_result" >&6; }
2854 rm -f confinc confmf
2856 # Check whether --enable-dependency-tracking was given.
2857 if test "${enable_dependency_tracking+set}" = set; then
2858 enableval=$enable_dependency_tracking;
2861 if test "x$enable_dependency_tracking" != xno; then
2862 am_depcomp="$ac_aux_dir/depcomp"
2863 AMDEPBACKSLASH='\'
2867 if test "x$enable_dependency_tracking" != xno; then
2868 AMDEP_TRUE=
2869 AMDEP_FALSE='#'
2870 else
2871 AMDEP_TRUE='#'
2872 AMDEP_FALSE=
2878 depcc="$CXX" am_compiler_list=
2880 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2881 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2882 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2886 # We make a subdir and do the tests there. Otherwise we can end up
2887 # making bogus files that we don't know about and never remove. For
2888 # instance it was reported that on HP-UX the gcc test will end up
2889 # making a dummy file named `D' -- because `-MD' means `put the output
2890 # in D'.
2891 mkdir conftest.dir
2892 # Copy depcomp to subdir because otherwise we won't find it if we're
2893 # using a relative directory.
2894 cp "$am_depcomp" conftest.dir
2895 cd conftest.dir
2896 # We will build objects and dependencies in a subdirectory because
2897 # it helps to detect inapplicable dependency modes. For instance
2898 # both Tru64's cc and ICC support -MD to output dependencies as a
2899 # side effect of compilation, but ICC will put the dependencies in
2900 # the current directory while Tru64 will put them in the object
2901 # directory.
2902 mkdir sub
2904 am_cv_CXX_dependencies_compiler_type=none
2905 if test "$am_compiler_list" = ""; then
2906 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2908 for depmode in $am_compiler_list; do
2909 # Setup a source with many dependencies, because some compilers
2910 # like to wrap large dependency lists on column 80 (with \), and
2911 # we should not choose a depcomp mode which is confused by this.
2913 # We need to recreate these files for each test, as the compiler may
2914 # overwrite some of them when testing with obscure command lines.
2915 # This happens at least with the AIX C compiler.
2916 : > sub/conftest.c
2917 for i in 1 2 3 4 5 6; do
2918 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2919 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2920 # Solaris 8's {/usr,}/bin/sh.
2921 touch sub/conftst$i.h
2922 done
2923 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2925 case $depmode in
2926 nosideeffect)
2927 # after this tag, mechanisms are not by side-effect, so they'll
2928 # only be used when explicitly requested
2929 if test "x$enable_dependency_tracking" = xyes; then
2930 continue
2931 else
2932 break
2935 none) break ;;
2936 esac
2937 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2938 # mode. It turns out that the SunPro C++ compiler does not properly
2939 # handle `-M -o', and we need to detect this.
2940 if depmode=$depmode \
2941 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2942 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2943 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2944 >/dev/null 2>conftest.err &&
2945 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2946 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2947 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2948 # icc doesn't choke on unknown options, it will just issue warnings
2949 # or remarks (even with -Werror). So we grep stderr for any message
2950 # that says an option was ignored or not supported.
2951 # When given -MP, icc 7.0 and 7.1 complain thusly:
2952 # icc: Command line warning: ignoring option '-M'; no argument required
2953 # The diagnosis changed in icc 8.0:
2954 # icc: Command line remark: option '-MP' not supported
2955 if (grep 'ignoring option' conftest.err ||
2956 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2957 am_cv_CXX_dependencies_compiler_type=$depmode
2958 break
2961 done
2963 cd ..
2964 rm -rf conftest.dir
2965 else
2966 am_cv_CXX_dependencies_compiler_type=none
2970 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2971 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
2972 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2977 test "x$enable_dependency_tracking" != xno \
2978 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2979 am__fastdepCXX_TRUE=
2980 am__fastdepCXX_FALSE='#'
2981 else
2982 am__fastdepCXX_TRUE='#'
2983 am__fastdepCXX_FALSE=
2987 #AC_PROG_CC
2989 # Checks for libraries.
2991 # Checks for header files.
2992 ac_ext=c
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2997 if test -n "$ac_tool_prefix"; then
2998 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2999 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_CC+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 else
3005 if test -n "$CC"; then
3006 ac_cv_prog_CC="$CC" # Let the user override the test.
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3019 done
3020 done
3021 IFS=$as_save_IFS
3025 CC=$ac_cv_prog_CC
3026 if test -n "$CC"; then
3027 { echo "$as_me:$LINENO: result: $CC" >&5
3028 echo "${ECHO_T}$CC" >&6; }
3029 else
3030 { echo "$as_me:$LINENO: result: no" >&5
3031 echo "${ECHO_T}no" >&6; }
3036 if test -z "$ac_cv_prog_CC"; then
3037 ac_ct_CC=$CC
3038 # Extract the first word of "gcc", so it can be a program name with args.
3039 set dummy gcc; ac_word=$2
3040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3043 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 else
3045 if test -n "$ac_ct_CC"; then
3046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3055 ac_cv_prog_ac_ct_CC="gcc"
3056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 break 2
3059 done
3060 done
3061 IFS=$as_save_IFS
3065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3066 if test -n "$ac_ct_CC"; then
3067 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3068 echo "${ECHO_T}$ac_ct_CC" >&6; }
3069 else
3070 { echo "$as_me:$LINENO: result: no" >&5
3071 echo "${ECHO_T}no" >&6; }
3074 if test "x$ac_ct_CC" = x; then
3075 CC=""
3076 else
3077 case $cross_compiling:$ac_tool_warned in
3078 yes:)
3079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3080 whose name does not start with the host triplet. If you think this
3081 configuration is useful to you, please write to autoconf@gnu.org." >&5
3082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3083 whose name does not start with the host triplet. If you think this
3084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3085 ac_tool_warned=yes ;;
3086 esac
3087 CC=$ac_ct_CC
3089 else
3090 CC="$ac_cv_prog_CC"
3093 if test -z "$CC"; then
3094 if test -n "$ac_tool_prefix"; then
3095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3096 set dummy ${ac_tool_prefix}cc; ac_word=$2
3097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3099 if test "${ac_cv_prog_CC+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102 if test -n "$CC"; then
3103 ac_cv_prog_CC="$CC" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112 ac_cv_prog_CC="${ac_tool_prefix}cc"
3113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3116 done
3117 done
3118 IFS=$as_save_IFS
3122 CC=$ac_cv_prog_CC
3123 if test -n "$CC"; then
3124 { echo "$as_me:$LINENO: result: $CC" >&5
3125 echo "${ECHO_T}$CC" >&6; }
3126 else
3127 { echo "$as_me:$LINENO: result: no" >&5
3128 echo "${ECHO_T}no" >&6; }
3134 if test -z "$CC"; then
3135 # Extract the first word of "cc", so it can be a program name with args.
3136 set dummy cc; ac_word=$2
3137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3139 if test "${ac_cv_prog_CC+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142 if test -n "$CC"; then
3143 ac_cv_prog_CC="$CC" # Let the user override the test.
3144 else
3145 ac_prog_rejected=no
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3154 ac_prog_rejected=yes
3155 continue
3157 ac_cv_prog_CC="cc"
3158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3161 done
3162 done
3163 IFS=$as_save_IFS
3165 if test $ac_prog_rejected = yes; then
3166 # We found a bogon in the path, so make sure we never use it.
3167 set dummy $ac_cv_prog_CC
3168 shift
3169 if test $# != 0; then
3170 # We chose a different compiler from the bogus one.
3171 # However, it has the same basename, so the bogon will be chosen
3172 # first if we set CC to just the basename; use the full file name.
3173 shift
3174 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3179 CC=$ac_cv_prog_CC
3180 if test -n "$CC"; then
3181 { echo "$as_me:$LINENO: result: $CC" >&5
3182 echo "${ECHO_T}$CC" >&6; }
3183 else
3184 { echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6; }
3190 if test -z "$CC"; then
3191 if test -n "$ac_tool_prefix"; then
3192 for ac_prog in cl.exe
3194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3198 if test "${ac_cv_prog_CC+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 else
3201 if test -n "$CC"; then
3202 ac_cv_prog_CC="$CC" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3215 done
3216 done
3217 IFS=$as_save_IFS
3221 CC=$ac_cv_prog_CC
3222 if test -n "$CC"; then
3223 { echo "$as_me:$LINENO: result: $CC" >&5
3224 echo "${ECHO_T}$CC" >&6; }
3225 else
3226 { echo "$as_me:$LINENO: result: no" >&5
3227 echo "${ECHO_T}no" >&6; }
3231 test -n "$CC" && break
3232 done
3234 if test -z "$CC"; then
3235 ac_ct_CC=$CC
3236 for ac_prog in cl.exe
3238 # Extract the first word of "$ac_prog", so it can be a program name with args.
3239 set dummy $ac_prog; ac_word=$2
3240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3242 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245 if test -n "$ac_ct_CC"; then
3246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3247 else
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3255 ac_cv_prog_ac_ct_CC="$ac_prog"
3256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 break 2
3259 done
3260 done
3261 IFS=$as_save_IFS
3265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3266 if test -n "$ac_ct_CC"; then
3267 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3268 echo "${ECHO_T}$ac_ct_CC" >&6; }
3269 else
3270 { echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6; }
3275 test -n "$ac_ct_CC" && break
3276 done
3278 if test "x$ac_ct_CC" = x; then
3279 CC=""
3280 else
3281 case $cross_compiling:$ac_tool_warned in
3282 yes:)
3283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3284 whose name does not start with the host triplet. If you think this
3285 configuration is useful to you, please write to autoconf@gnu.org." >&5
3286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3287 whose name does not start with the host triplet. If you think this
3288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3289 ac_tool_warned=yes ;;
3290 esac
3291 CC=$ac_ct_CC
3298 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3299 See \`config.log' for more details." >&5
3300 echo "$as_me: error: no acceptable C compiler found in \$PATH
3301 See \`config.log' for more details." >&2;}
3302 { (exit 1); exit 1; }; }
3304 # Provide some information about the compiler.
3305 echo "$as_me:$LINENO: checking for C compiler version" >&5
3306 ac_compiler=`set X $ac_compile; echo $2`
3307 { (ac_try="$ac_compiler --version >&5"
3308 case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311 esac
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_compiler --version >&5") 2>&5
3314 ac_status=$?
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }
3317 { (ac_try="$ac_compiler -v >&5"
3318 case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_compiler -v >&5") 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }
3327 { (ac_try="$ac_compiler -V >&5"
3328 case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331 esac
3332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333 (eval "$ac_compiler -V >&5") 2>&5
3334 ac_status=$?
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }
3338 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3339 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3340 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 else
3343 cat >conftest.$ac_ext <<_ACEOF
3344 /* confdefs.h. */
3345 _ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3351 main ()
3353 #ifndef __GNUC__
3354 choke me
3355 #endif
3358 return 0;
3360 _ACEOF
3361 rm -f conftest.$ac_objext
3362 if { (ac_try="$ac_compile"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_compile") 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } && {
3375 test -z "$ac_c_werror_flag" ||
3376 test ! -s conftest.err
3377 } && test -s conftest.$ac_objext; then
3378 ac_compiler_gnu=yes
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 ac_compiler_gnu=no
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3390 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3391 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3392 GCC=`test $ac_compiler_gnu = yes && echo yes`
3393 ac_test_CFLAGS=${CFLAGS+set}
3394 ac_save_CFLAGS=$CFLAGS
3395 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3396 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3397 if test "${ac_cv_prog_cc_g+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 ac_save_c_werror_flag=$ac_c_werror_flag
3401 ac_c_werror_flag=yes
3402 ac_cv_prog_cc_g=no
3403 CFLAGS="-g"
3404 cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h. */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3412 main ()
3416 return 0;
3418 _ACEOF
3419 rm -f conftest.$ac_objext
3420 if { (ac_try="$ac_compile"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426 (eval "$ac_compile") 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } && {
3433 test -z "$ac_c_werror_flag" ||
3434 test ! -s conftest.err
3435 } && test -s conftest.$ac_objext; then
3436 ac_cv_prog_cc_g=yes
3437 else
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3441 CFLAGS=""
3442 cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h. */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3450 main ()
3454 return 0;
3456 _ACEOF
3457 rm -f conftest.$ac_objext
3458 if { (ac_try="$ac_compile"
3459 case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462 esac
3463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3464 (eval "$ac_compile") 2>conftest.er1
3465 ac_status=$?
3466 grep -v '^ *+' conftest.er1 >conftest.err
3467 rm -f conftest.er1
3468 cat conftest.err >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } && {
3471 test -z "$ac_c_werror_flag" ||
3472 test ! -s conftest.err
3473 } && test -s conftest.$ac_objext; then
3475 else
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 ac_c_werror_flag=$ac_save_c_werror_flag
3480 CFLAGS="-g"
3481 cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h. */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3489 main ()
3493 return 0;
3495 _ACEOF
3496 rm -f conftest.$ac_objext
3497 if { (ac_try="$ac_compile"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503 (eval "$ac_compile") 2>conftest.er1
3504 ac_status=$?
3505 grep -v '^ *+' conftest.er1 >conftest.err
3506 rm -f conftest.er1
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } && {
3510 test -z "$ac_c_werror_flag" ||
3511 test ! -s conftest.err
3512 } && test -s conftest.$ac_objext; then
3513 ac_cv_prog_cc_g=yes
3514 else
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 ac_c_werror_flag=$ac_save_c_werror_flag
3530 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3531 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3532 if test "$ac_test_CFLAGS" = set; then
3533 CFLAGS=$ac_save_CFLAGS
3534 elif test $ac_cv_prog_cc_g = yes; then
3535 if test "$GCC" = yes; then
3536 CFLAGS="-g -O2"
3537 else
3538 CFLAGS="-g"
3540 else
3541 if test "$GCC" = yes; then
3542 CFLAGS="-O2"
3543 else
3544 CFLAGS=
3547 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3548 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3549 if test "${ac_cv_prog_cc_c89+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552 ac_cv_prog_cc_c89=no
3553 ac_save_CC=$CC
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 #include <stdarg.h>
3561 #include <stdio.h>
3562 #include <sys/types.h>
3563 #include <sys/stat.h>
3564 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3565 struct buf { int x; };
3566 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3567 static char *e (p, i)
3568 char **p;
3569 int i;
3571 return p[i];
3573 static char *f (char * (*g) (char **, int), char **p, ...)
3575 char *s;
3576 va_list v;
3577 va_start (v,p);
3578 s = g (p, va_arg (v,int));
3579 va_end (v);
3580 return s;
3583 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3584 function prototypes and stuff, but not '\xHH' hex character constants.
3585 These don't provoke an error unfortunately, instead are silently treated
3586 as 'x'. The following induces an error, until -std is added to get
3587 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3588 array size at least. It's necessary to write '\x00'==0 to get something
3589 that's true only with -std. */
3590 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3592 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3593 inside strings and character constants. */
3594 #define FOO(x) 'x'
3595 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3597 int test (int i, double x);
3598 struct s1 {int (*f) (int a);};
3599 struct s2 {int (*f) (double a);};
3600 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3601 int argc;
3602 char **argv;
3604 main ()
3606 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3608 return 0;
3610 _ACEOF
3611 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3612 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3614 CC="$ac_save_CC $ac_arg"
3615 rm -f conftest.$ac_objext
3616 if { (ac_try="$ac_compile"
3617 case "(($ac_try" in
3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3620 esac
3621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3622 (eval "$ac_compile") 2>conftest.er1
3623 ac_status=$?
3624 grep -v '^ *+' conftest.er1 >conftest.err
3625 rm -f conftest.er1
3626 cat conftest.err >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && {
3629 test -z "$ac_c_werror_flag" ||
3630 test ! -s conftest.err
3631 } && test -s conftest.$ac_objext; then
3632 ac_cv_prog_cc_c89=$ac_arg
3633 else
3634 echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3640 rm -f core conftest.err conftest.$ac_objext
3641 test "x$ac_cv_prog_cc_c89" != "xno" && break
3642 done
3643 rm -f conftest.$ac_ext
3644 CC=$ac_save_CC
3647 # AC_CACHE_VAL
3648 case "x$ac_cv_prog_cc_c89" in
3650 { echo "$as_me:$LINENO: result: none needed" >&5
3651 echo "${ECHO_T}none needed" >&6; } ;;
3652 xno)
3653 { echo "$as_me:$LINENO: result: unsupported" >&5
3654 echo "${ECHO_T}unsupported" >&6; } ;;
3656 CC="$CC $ac_cv_prog_cc_c89"
3657 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3658 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3659 esac
3662 ac_ext=c
3663 ac_cpp='$CPP $CPPFLAGS'
3664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668 depcc="$CC" am_compiler_list=
3670 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3671 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3672 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3676 # We make a subdir and do the tests there. Otherwise we can end up
3677 # making bogus files that we don't know about and never remove. For
3678 # instance it was reported that on HP-UX the gcc test will end up
3679 # making a dummy file named `D' -- because `-MD' means `put the output
3680 # in D'.
3681 mkdir conftest.dir
3682 # Copy depcomp to subdir because otherwise we won't find it if we're
3683 # using a relative directory.
3684 cp "$am_depcomp" conftest.dir
3685 cd conftest.dir
3686 # We will build objects and dependencies in a subdirectory because
3687 # it helps to detect inapplicable dependency modes. For instance
3688 # both Tru64's cc and ICC support -MD to output dependencies as a
3689 # side effect of compilation, but ICC will put the dependencies in
3690 # the current directory while Tru64 will put them in the object
3691 # directory.
3692 mkdir sub
3694 am_cv_CC_dependencies_compiler_type=none
3695 if test "$am_compiler_list" = ""; then
3696 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3698 for depmode in $am_compiler_list; do
3699 # Setup a source with many dependencies, because some compilers
3700 # like to wrap large dependency lists on column 80 (with \), and
3701 # we should not choose a depcomp mode which is confused by this.
3703 # We need to recreate these files for each test, as the compiler may
3704 # overwrite some of them when testing with obscure command lines.
3705 # This happens at least with the AIX C compiler.
3706 : > sub/conftest.c
3707 for i in 1 2 3 4 5 6; do
3708 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3709 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3710 # Solaris 8's {/usr,}/bin/sh.
3711 touch sub/conftst$i.h
3712 done
3713 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3715 case $depmode in
3716 nosideeffect)
3717 # after this tag, mechanisms are not by side-effect, so they'll
3718 # only be used when explicitly requested
3719 if test "x$enable_dependency_tracking" = xyes; then
3720 continue
3721 else
3722 break
3725 none) break ;;
3726 esac
3727 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3728 # mode. It turns out that the SunPro C++ compiler does not properly
3729 # handle `-M -o', and we need to detect this.
3730 if depmode=$depmode \
3731 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3732 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3733 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3734 >/dev/null 2>conftest.err &&
3735 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3736 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3737 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3738 # icc doesn't choke on unknown options, it will just issue warnings
3739 # or remarks (even with -Werror). So we grep stderr for any message
3740 # that says an option was ignored or not supported.
3741 # When given -MP, icc 7.0 and 7.1 complain thusly:
3742 # icc: Command line warning: ignoring option '-M'; no argument required
3743 # The diagnosis changed in icc 8.0:
3744 # icc: Command line remark: option '-MP' not supported
3745 if (grep 'ignoring option' conftest.err ||
3746 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3747 am_cv_CC_dependencies_compiler_type=$depmode
3748 break
3751 done
3753 cd ..
3754 rm -rf conftest.dir
3755 else
3756 am_cv_CC_dependencies_compiler_type=none
3760 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3761 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3762 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3767 test "x$enable_dependency_tracking" != xno \
3768 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3769 am__fastdepCC_TRUE=
3770 am__fastdepCC_FALSE='#'
3771 else
3772 am__fastdepCC_TRUE='#'
3773 am__fastdepCC_FALSE=
3778 ac_ext=c
3779 ac_cpp='$CPP $CPPFLAGS'
3780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3784 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3785 # On Suns, sometimes $CPP names a directory.
3786 if test -n "$CPP" && test -d "$CPP"; then
3787 CPP=
3789 if test -z "$CPP"; then
3790 if test "${ac_cv_prog_CPP+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793 # Double quotes because CPP needs to be expanded
3794 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3796 ac_preproc_ok=false
3797 for ac_c_preproc_warn_flag in '' yes
3799 # Use a header file that comes with gcc, so configuring glibc
3800 # with a fresh cross-compiler works.
3801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3802 # <limits.h> exists even on freestanding compilers.
3803 # On the NeXT, cc -E runs the code through the compiler's parser,
3804 # not just through cpp. "Syntax error" is here to catch this case.
3805 cat >conftest.$ac_ext <<_ACEOF
3806 /* confdefs.h. */
3807 _ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3811 #ifdef __STDC__
3812 # include <limits.h>
3813 #else
3814 # include <assert.h>
3815 #endif
3816 Syntax error
3817 _ACEOF
3818 if { (ac_try="$ac_cpp conftest.$ac_ext"
3819 case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822 esac
3823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3825 ac_status=$?
3826 grep -v '^ *+' conftest.er1 >conftest.err
3827 rm -f conftest.er1
3828 cat conftest.err >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } >/dev/null && {
3831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3833 }; then
3835 else
3836 echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3839 # Broken: fails on valid input.
3840 continue
3843 rm -f conftest.err conftest.$ac_ext
3845 # OK, works on sane cases. Now check whether nonexistent headers
3846 # can be detected and how.
3847 cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h. */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 #include <ac_nonexistent.h>
3854 _ACEOF
3855 if { (ac_try="$ac_cpp conftest.$ac_ext"
3856 case "(($ac_try" in
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3859 esac
3860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3862 ac_status=$?
3863 grep -v '^ *+' conftest.er1 >conftest.err
3864 rm -f conftest.er1
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } >/dev/null && {
3868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3869 test ! -s conftest.err
3870 }; then
3871 # Broken: success on invalid input.
3872 continue
3873 else
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 # Passes both tests.
3878 ac_preproc_ok=:
3879 break
3882 rm -f conftest.err conftest.$ac_ext
3884 done
3885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3886 rm -f conftest.err conftest.$ac_ext
3887 if $ac_preproc_ok; then
3888 break
3891 done
3892 ac_cv_prog_CPP=$CPP
3895 CPP=$ac_cv_prog_CPP
3896 else
3897 ac_cv_prog_CPP=$CPP
3899 { echo "$as_me:$LINENO: result: $CPP" >&5
3900 echo "${ECHO_T}$CPP" >&6; }
3901 ac_preproc_ok=false
3902 for ac_c_preproc_warn_flag in '' yes
3904 # Use a header file that comes with gcc, so configuring glibc
3905 # with a fresh cross-compiler works.
3906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3907 # <limits.h> exists even on freestanding compilers.
3908 # On the NeXT, cc -E runs the code through the compiler's parser,
3909 # not just through cpp. "Syntax error" is here to catch this case.
3910 cat >conftest.$ac_ext <<_ACEOF
3911 /* confdefs.h. */
3912 _ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3916 #ifdef __STDC__
3917 # include <limits.h>
3918 #else
3919 # include <assert.h>
3920 #endif
3921 Syntax error
3922 _ACEOF
3923 if { (ac_try="$ac_cpp conftest.$ac_ext"
3924 case "(($ac_try" in
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3927 esac
3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3930 ac_status=$?
3931 grep -v '^ *+' conftest.er1 >conftest.err
3932 rm -f conftest.er1
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } >/dev/null && {
3936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3937 test ! -s conftest.err
3938 }; then
3940 else
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3944 # Broken: fails on valid input.
3945 continue
3948 rm -f conftest.err conftest.$ac_ext
3950 # OK, works on sane cases. Now check whether nonexistent headers
3951 # can be detected and how.
3952 cat >conftest.$ac_ext <<_ACEOF
3953 /* confdefs.h. */
3954 _ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3958 #include <ac_nonexistent.h>
3959 _ACEOF
3960 if { (ac_try="$ac_cpp conftest.$ac_ext"
3961 case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964 esac
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3967 ac_status=$?
3968 grep -v '^ *+' conftest.er1 >conftest.err
3969 rm -f conftest.er1
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } >/dev/null && {
3973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3974 test ! -s conftest.err
3975 }; then
3976 # Broken: success on invalid input.
3977 continue
3978 else
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3982 # Passes both tests.
3983 ac_preproc_ok=:
3984 break
3987 rm -f conftest.err conftest.$ac_ext
3989 done
3990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3991 rm -f conftest.err conftest.$ac_ext
3992 if $ac_preproc_ok; then
3994 else
3995 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3996 See \`config.log' for more details." >&5
3997 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3998 See \`config.log' for more details." >&2;}
3999 { (exit 1); exit 1; }; }
4002 ac_ext=c
4003 ac_cpp='$CPP $CPPFLAGS'
4004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4010 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4011 if test "${ac_cv_path_GREP+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014 # Extract the first word of "grep ggrep" to use in msg output
4015 if test -z "$GREP"; then
4016 set dummy grep ggrep; ac_prog_name=$2
4017 if test "${ac_cv_path_GREP+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020 ac_path_GREP_found=false
4021 # Loop through the user's path and test for each of PROGNAME-LIST
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_prog in grep ggrep; do
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4030 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4031 # Check for GNU ac_path_GREP and select it if it is found.
4032 # Check for GNU $ac_path_GREP
4033 case `"$ac_path_GREP" --version 2>&1` in
4034 *GNU*)
4035 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4037 ac_count=0
4038 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4039 while :
4041 cat "conftest.in" "conftest.in" >"conftest.tmp"
4042 mv "conftest.tmp" "conftest.in"
4043 cp "conftest.in" "conftest.nl"
4044 echo 'GREP' >> "conftest.nl"
4045 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047 ac_count=`expr $ac_count + 1`
4048 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4049 # Best one so far, save it but keep looking for a better one
4050 ac_cv_path_GREP="$ac_path_GREP"
4051 ac_path_GREP_max=$ac_count
4053 # 10*(2^10) chars as input seems more than enough
4054 test $ac_count -gt 10 && break
4055 done
4056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4057 esac
4060 $ac_path_GREP_found && break 3
4061 done
4062 done
4064 done
4065 IFS=$as_save_IFS
4070 GREP="$ac_cv_path_GREP"
4071 if test -z "$GREP"; then
4072 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4073 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4074 { (exit 1); exit 1; }; }
4077 else
4078 ac_cv_path_GREP=$GREP
4083 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4084 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4085 GREP="$ac_cv_path_GREP"
4088 { echo "$as_me:$LINENO: checking for egrep" >&5
4089 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4090 if test "${ac_cv_path_EGREP+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4094 then ac_cv_path_EGREP="$GREP -E"
4095 else
4096 # Extract the first word of "egrep" to use in msg output
4097 if test -z "$EGREP"; then
4098 set dummy egrep; ac_prog_name=$2
4099 if test "${ac_cv_path_EGREP+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102 ac_path_EGREP_found=false
4103 # Loop through the user's path and test for each of PROGNAME-LIST
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_prog in egrep; do
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4112 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4113 # Check for GNU ac_path_EGREP and select it if it is found.
4114 # Check for GNU $ac_path_EGREP
4115 case `"$ac_path_EGREP" --version 2>&1` in
4116 *GNU*)
4117 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4119 ac_count=0
4120 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4121 while :
4123 cat "conftest.in" "conftest.in" >"conftest.tmp"
4124 mv "conftest.tmp" "conftest.in"
4125 cp "conftest.in" "conftest.nl"
4126 echo 'EGREP' >> "conftest.nl"
4127 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4129 ac_count=`expr $ac_count + 1`
4130 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4131 # Best one so far, save it but keep looking for a better one
4132 ac_cv_path_EGREP="$ac_path_EGREP"
4133 ac_path_EGREP_max=$ac_count
4135 # 10*(2^10) chars as input seems more than enough
4136 test $ac_count -gt 10 && break
4137 done
4138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4139 esac
4142 $ac_path_EGREP_found && break 3
4143 done
4144 done
4146 done
4147 IFS=$as_save_IFS
4152 EGREP="$ac_cv_path_EGREP"
4153 if test -z "$EGREP"; then
4154 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4155 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4156 { (exit 1); exit 1; }; }
4159 else
4160 ac_cv_path_EGREP=$EGREP
4166 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4167 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4168 EGREP="$ac_cv_path_EGREP"
4171 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4172 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4173 if test "${ac_cv_header_stdc+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176 cat >conftest.$ac_ext <<_ACEOF
4177 /* confdefs.h. */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4182 #include <stdlib.h>
4183 #include <stdarg.h>
4184 #include <string.h>
4185 #include <float.h>
4188 main ()
4192 return 0;
4194 _ACEOF
4195 rm -f conftest.$ac_objext
4196 if { (ac_try="$ac_compile"
4197 case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200 esac
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_compile") 2>conftest.er1
4203 ac_status=$?
4204 grep -v '^ *+' conftest.er1 >conftest.err
4205 rm -f conftest.er1
4206 cat conftest.err >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } && {
4209 test -z "$ac_c_werror_flag" ||
4210 test ! -s conftest.err
4211 } && test -s conftest.$ac_objext; then
4212 ac_cv_header_stdc=yes
4213 else
4214 echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4217 ac_cv_header_stdc=no
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 if test $ac_cv_header_stdc = yes; then
4223 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4224 cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h. */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 #include <string.h>
4232 _ACEOF
4233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4234 $EGREP "memchr" >/dev/null 2>&1; then
4236 else
4237 ac_cv_header_stdc=no
4239 rm -f conftest*
4243 if test $ac_cv_header_stdc = yes; then
4244 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4245 cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h. */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 #include <stdlib.h>
4253 _ACEOF
4254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4255 $EGREP "free" >/dev/null 2>&1; then
4257 else
4258 ac_cv_header_stdc=no
4260 rm -f conftest*
4264 if test $ac_cv_header_stdc = yes; then
4265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4266 if test "$cross_compiling" = yes; then
4268 else
4269 cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h. */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4275 #include <ctype.h>
4276 #include <stdlib.h>
4277 #if ((' ' & 0x0FF) == 0x020)
4278 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4279 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4280 #else
4281 # define ISLOWER(c) \
4282 (('a' <= (c) && (c) <= 'i') \
4283 || ('j' <= (c) && (c) <= 'r') \
4284 || ('s' <= (c) && (c) <= 'z'))
4285 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4286 #endif
4288 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4290 main ()
4292 int i;
4293 for (i = 0; i < 256; i++)
4294 if (XOR (islower (i), ISLOWER (i))
4295 || toupper (i) != TOUPPER (i))
4296 return 2;
4297 return 0;
4299 _ACEOF
4300 rm -f conftest$ac_exeext
4301 if { (ac_try="$ac_link"
4302 case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305 esac
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_link") 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4311 { (case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314 esac
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_try") 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; }; then
4321 else
4322 echo "$as_me: program exited with status $ac_status" >&5
4323 echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4326 ( exit $ac_status )
4327 ac_cv_header_stdc=no
4329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4335 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4336 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4337 if test $ac_cv_header_stdc = yes; then
4339 cat >>confdefs.h <<\_ACEOF
4340 #define STDC_HEADERS 1
4341 _ACEOF
4345 #AC_CHECK_HEADERS([arpa/inet.h stdlib.h string.h unistd.h])
4347 # Checks for typedefs, structures, and compiler characteristics.
4348 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4349 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4350 if test "${ac_cv_c_const+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h. */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4361 main ()
4363 /* FIXME: Include the comments suggested by Paul. */
4364 #ifndef __cplusplus
4365 /* Ultrix mips cc rejects this. */
4366 typedef int charset[2];
4367 const charset cs;
4368 /* SunOS 4.1.1 cc rejects this. */
4369 char const *const *pcpcc;
4370 char **ppc;
4371 /* NEC SVR4.0.2 mips cc rejects this. */
4372 struct point {int x, y;};
4373 static struct point const zero = {0,0};
4374 /* AIX XL C 1.02.0.0 rejects this.
4375 It does not let you subtract one const X* pointer from another in
4376 an arm of an if-expression whose if-part is not a constant
4377 expression */
4378 const char *g = "string";
4379 pcpcc = &g + (g ? g-g : 0);
4380 /* HPUX 7.0 cc rejects these. */
4381 ++pcpcc;
4382 ppc = (char**) pcpcc;
4383 pcpcc = (char const *const *) ppc;
4384 { /* SCO 3.2v4 cc rejects this. */
4385 char *t;
4386 char const *s = 0 ? (char *) 0 : (char const *) 0;
4388 *t++ = 0;
4389 if (s) return 0;
4391 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4392 int x[] = {25, 17};
4393 const int *foo = &x[0];
4394 ++foo;
4396 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4397 typedef const int *iptr;
4398 iptr p = 0;
4399 ++p;
4401 { /* AIX XL C 1.02.0.0 rejects this saying
4402 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4403 struct s { int j; const int *ap[3]; };
4404 struct s *b; b->j = 5;
4406 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4407 const int foo = 10;
4408 if (!foo) return 0;
4410 return !cs[0] && !zero.x;
4411 #endif
4414 return 0;
4416 _ACEOF
4417 rm -f conftest.$ac_objext
4418 if { (ac_try="$ac_compile"
4419 case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422 esac
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_compile") 2>conftest.er1
4425 ac_status=$?
4426 grep -v '^ *+' conftest.er1 >conftest.err
4427 rm -f conftest.er1
4428 cat conftest.err >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } && {
4431 test -z "$ac_c_werror_flag" ||
4432 test ! -s conftest.err
4433 } && test -s conftest.$ac_objext; then
4434 ac_cv_c_const=yes
4435 else
4436 echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4439 ac_cv_c_const=no
4442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4445 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4446 if test $ac_cv_c_const = no; then
4448 cat >>confdefs.h <<\_ACEOF
4449 #define const
4450 _ACEOF
4454 { echo "$as_me:$LINENO: checking for inline" >&5
4455 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4456 if test "${ac_cv_c_inline+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459 ac_cv_c_inline=no
4460 for ac_kw in inline __inline__ __inline; do
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h. */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467 #ifndef __cplusplus
4468 typedef int foo_t;
4469 static $ac_kw foo_t static_foo () {return 0; }
4470 $ac_kw foo_t foo () {return 0; }
4471 #endif
4473 _ACEOF
4474 rm -f conftest.$ac_objext
4475 if { (ac_try="$ac_compile"
4476 case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4479 esac
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_compile") 2>conftest.er1
4482 ac_status=$?
4483 grep -v '^ *+' conftest.er1 >conftest.err
4484 rm -f conftest.er1
4485 cat conftest.err >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } && {
4488 test -z "$ac_c_werror_flag" ||
4489 test ! -s conftest.err
4490 } && test -s conftest.$ac_objext; then
4491 ac_cv_c_inline=$ac_kw
4492 else
4493 echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 test "$ac_cv_c_inline" != no && break
4501 done
4504 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4505 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4508 case $ac_cv_c_inline in
4509 inline | yes) ;;
4511 case $ac_cv_c_inline in
4512 no) ac_val=;;
4513 *) ac_val=$ac_cv_c_inline;;
4514 esac
4515 cat >>confdefs.h <<_ACEOF
4516 #ifndef __cplusplus
4517 #define inline $ac_val
4518 #endif
4519 _ACEOF
4521 esac
4523 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4533 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4534 inttypes.h stdint.h unistd.h
4536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542 cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h. */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4548 $ac_includes_default
4550 #include <$ac_header>
4551 _ACEOF
4552 rm -f conftest.$ac_objext
4553 if { (ac_try="$ac_compile"
4554 case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557 esac
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_compile") 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } && {
4566 test -z "$ac_c_werror_flag" ||
4567 test ! -s conftest.err
4568 } && test -s conftest.$ac_objext; then
4569 eval "$as_ac_Header=yes"
4570 else
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4574 eval "$as_ac_Header=no"
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 ac_res=`eval echo '${'$as_ac_Header'}'`
4580 { echo "$as_me:$LINENO: result: $ac_res" >&5
4581 echo "${ECHO_T}$ac_res" >&6; }
4582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4583 cat >>confdefs.h <<_ACEOF
4584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4585 _ACEOF
4589 done
4592 { echo "$as_me:$LINENO: checking for size_t" >&5
4593 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4594 if test "${ac_cv_type_size_t+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597 cat >conftest.$ac_ext <<_ACEOF
4598 /* confdefs.h. */
4599 _ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h. */
4603 $ac_includes_default
4604 typedef size_t ac__type_new_;
4606 main ()
4608 if ((ac__type_new_ *) 0)
4609 return 0;
4610 if (sizeof (ac__type_new_))
4611 return 0;
4613 return 0;
4615 _ACEOF
4616 rm -f conftest.$ac_objext
4617 if { (ac_try="$ac_compile"
4618 case "(($ac_try" in
4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4621 esac
4622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623 (eval "$ac_compile") 2>conftest.er1
4624 ac_status=$?
4625 grep -v '^ *+' conftest.er1 >conftest.err
4626 rm -f conftest.er1
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } && {
4630 test -z "$ac_c_werror_flag" ||
4631 test ! -s conftest.err
4632 } && test -s conftest.$ac_objext; then
4633 ac_cv_type_size_t=yes
4634 else
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4638 ac_cv_type_size_t=no
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4644 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4645 if test $ac_cv_type_size_t = yes; then
4647 else
4649 cat >>confdefs.h <<_ACEOF
4650 #define size_t unsigned int
4651 _ACEOF
4656 { echo "$as_me:$LINENO: checking for uint16_t" >&5
4657 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
4658 if test "${ac_cv_c_uint16_t+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661 ac_cv_c_uint16_t=no
4662 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
4663 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
4664 cat >conftest.$ac_ext <<_ACEOF
4665 /* confdefs.h. */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4670 $ac_includes_default
4672 main ()
4674 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
4675 test_array [0] = 0
4678 return 0;
4680 _ACEOF
4681 rm -f conftest.$ac_objext
4682 if { (ac_try="$ac_compile"
4683 case "(($ac_try" in
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4686 esac
4687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688 (eval "$ac_compile") 2>conftest.er1
4689 ac_status=$?
4690 grep -v '^ *+' conftest.er1 >conftest.err
4691 rm -f conftest.er1
4692 cat conftest.err >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } && {
4695 test -z "$ac_c_werror_flag" ||
4696 test ! -s conftest.err
4697 } && test -s conftest.$ac_objext; then
4698 case $ac_type in
4699 uint16_t) ac_cv_c_uint16_t=yes ;;
4700 *) ac_cv_c_uint16_t=$ac_type ;;
4701 esac
4703 else
4704 echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 test "$ac_cv_c_uint16_t" != no && break
4712 done
4714 { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
4715 echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
4716 case $ac_cv_c_uint16_t in #(
4717 no|yes) ;; #(
4721 cat >>confdefs.h <<_ACEOF
4722 #define uint16_t $ac_cv_c_uint16_t
4723 _ACEOF
4725 esac
4728 { echo "$as_me:$LINENO: checking for uint32_t" >&5
4729 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
4730 if test "${ac_cv_c_uint32_t+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 else
4733 ac_cv_c_uint32_t=no
4734 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
4735 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
4736 cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h. */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 $ac_includes_default
4744 main ()
4746 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
4747 test_array [0] = 0
4750 return 0;
4752 _ACEOF
4753 rm -f conftest.$ac_objext
4754 if { (ac_try="$ac_compile"
4755 case "(($ac_try" in
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4758 esac
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760 (eval "$ac_compile") 2>conftest.er1
4761 ac_status=$?
4762 grep -v '^ *+' conftest.er1 >conftest.err
4763 rm -f conftest.er1
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } && {
4767 test -z "$ac_c_werror_flag" ||
4768 test ! -s conftest.err
4769 } && test -s conftest.$ac_objext; then
4770 case $ac_type in
4771 uint32_t) ac_cv_c_uint32_t=yes ;;
4772 *) ac_cv_c_uint32_t=$ac_type ;;
4773 esac
4775 else
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 test "$ac_cv_c_uint32_t" != no && break
4784 done
4786 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
4787 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
4788 case $ac_cv_c_uint32_t in #(
4789 no|yes) ;; #(
4792 cat >>confdefs.h <<\_ACEOF
4793 #define _UINT32_T 1
4794 _ACEOF
4797 cat >>confdefs.h <<_ACEOF
4798 #define uint32_t $ac_cv_c_uint32_t
4799 _ACEOF
4801 esac
4804 { echo "$as_me:$LINENO: checking for uint64_t" >&5
4805 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
4806 if test "${ac_cv_c_uint64_t+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809 ac_cv_c_uint64_t=no
4810 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
4811 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h. */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818 $ac_includes_default
4820 main ()
4822 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
4823 test_array [0] = 0
4826 return 0;
4828 _ACEOF
4829 rm -f conftest.$ac_objext
4830 if { (ac_try="$ac_compile"
4831 case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_compile") 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } && {
4843 test -z "$ac_c_werror_flag" ||
4844 test ! -s conftest.err
4845 } && test -s conftest.$ac_objext; then
4846 case $ac_type in
4847 uint64_t) ac_cv_c_uint64_t=yes ;;
4848 *) ac_cv_c_uint64_t=$ac_type ;;
4849 esac
4851 else
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 test "$ac_cv_c_uint64_t" != no && break
4860 done
4862 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
4863 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
4864 case $ac_cv_c_uint64_t in #(
4865 no|yes) ;; #(
4868 cat >>confdefs.h <<\_ACEOF
4869 #define _UINT64_T 1
4870 _ACEOF
4873 cat >>confdefs.h <<_ACEOF
4874 #define uint64_t $ac_cv_c_uint64_t
4875 _ACEOF
4877 esac
4880 { echo "$as_me:$LINENO: checking for uint8_t" >&5
4881 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
4882 if test "${ac_cv_c_uint8_t+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885 ac_cv_c_uint8_t=no
4886 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
4887 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
4888 cat >conftest.$ac_ext <<_ACEOF
4889 /* confdefs.h. */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4894 $ac_includes_default
4896 main ()
4898 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
4899 test_array [0] = 0
4902 return 0;
4904 _ACEOF
4905 rm -f conftest.$ac_objext
4906 if { (ac_try="$ac_compile"
4907 case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912 (eval "$ac_compile") 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } && {
4919 test -z "$ac_c_werror_flag" ||
4920 test ! -s conftest.err
4921 } && test -s conftest.$ac_objext; then
4922 case $ac_type in
4923 uint8_t) ac_cv_c_uint8_t=yes ;;
4924 *) ac_cv_c_uint8_t=$ac_type ;;
4925 esac
4927 else
4928 echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935 test "$ac_cv_c_uint8_t" != no && break
4936 done
4938 { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
4939 echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
4940 case $ac_cv_c_uint8_t in #(
4941 no|yes) ;; #(
4944 cat >>confdefs.h <<\_ACEOF
4945 #define _UINT8_T 1
4946 _ACEOF
4949 cat >>confdefs.h <<_ACEOF
4950 #define uint8_t $ac_cv_c_uint8_t
4951 _ACEOF
4953 esac
4956 # Checks for library functions.
4957 #AC_FUNC_MALLOC
4958 #AC_CHECK_FUNCS([floor sqrt])
4960 if test "${ac_cv_header_jack_jack_h+set}" = set; then
4961 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
4962 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
4963 if test "${ac_cv_header_jack_jack_h+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
4967 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
4968 else
4969 # Is the header compilable?
4970 { echo "$as_me:$LINENO: checking jack/jack.h usability" >&5
4971 echo $ECHO_N "checking jack/jack.h usability... $ECHO_C" >&6; }
4972 cat >conftest.$ac_ext <<_ACEOF
4973 /* confdefs.h. */
4974 _ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4978 $ac_includes_default
4979 #include <jack/jack.h>
4980 _ACEOF
4981 rm -f conftest.$ac_objext
4982 if { (ac_try="$ac_compile"
4983 case "(($ac_try" in
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4986 esac
4987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988 (eval "$ac_compile") 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } && {
4995 test -z "$ac_c_werror_flag" ||
4996 test ! -s conftest.err
4997 } && test -s conftest.$ac_objext; then
4998 ac_header_compiler=yes
4999 else
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5003 ac_header_compiler=no
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5008 echo "${ECHO_T}$ac_header_compiler" >&6; }
5010 # Is the header present?
5011 { echo "$as_me:$LINENO: checking jack/jack.h presence" >&5
5012 echo $ECHO_N "checking jack/jack.h presence... $ECHO_C" >&6; }
5013 cat >conftest.$ac_ext <<_ACEOF
5014 /* confdefs.h. */
5015 _ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 #include <jack/jack.h>
5020 _ACEOF
5021 if { (ac_try="$ac_cpp conftest.$ac_ext"
5022 case "(($ac_try" in
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5025 esac
5026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5028 ac_status=$?
5029 grep -v '^ *+' conftest.er1 >conftest.err
5030 rm -f conftest.er1
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } >/dev/null && {
5034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5035 test ! -s conftest.err
5036 }; then
5037 ac_header_preproc=yes
5038 else
5039 echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5042 ac_header_preproc=no
5045 rm -f conftest.err conftest.$ac_ext
5046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5047 echo "${ECHO_T}$ac_header_preproc" >&6; }
5049 # So? What about this header?
5050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5051 yes:no: )
5052 { echo "$as_me:$LINENO: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&5
5053 echo "$as_me: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5054 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the compiler's result" >&5
5055 echo "$as_me: WARNING: jack/jack.h: proceeding with the compiler's result" >&2;}
5056 ac_header_preproc=yes
5058 no:yes:* )
5059 { echo "$as_me:$LINENO: WARNING: jack/jack.h: present but cannot be compiled" >&5
5060 echo "$as_me: WARNING: jack/jack.h: present but cannot be compiled" >&2;}
5061 { echo "$as_me:$LINENO: WARNING: jack/jack.h: check for missing prerequisite headers?" >&5
5062 echo "$as_me: WARNING: jack/jack.h: check for missing prerequisite headers?" >&2;}
5063 { echo "$as_me:$LINENO: WARNING: jack/jack.h: see the Autoconf documentation" >&5
5064 echo "$as_me: WARNING: jack/jack.h: see the Autoconf documentation" >&2;}
5065 { echo "$as_me:$LINENO: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&5
5066 echo "$as_me: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&2;}
5067 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&5
5068 echo "$as_me: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&2;}
5069 { echo "$as_me:$LINENO: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&5
5070 echo "$as_me: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&2;}
5071 ( cat <<\_ASBOX
5072 ## ------------------------------------ ##
5073 ## Report this to unknown@somewhere.org ##
5074 ## ------------------------------------ ##
5075 _ASBOX
5076 ) | sed "s/^/$as_me: WARNING: /" >&2
5078 esac
5079 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
5080 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
5081 if test "${ac_cv_header_jack_jack_h+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084 ac_cv_header_jack_jack_h=$ac_header_preproc
5086 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
5087 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
5090 if test $ac_cv_header_jack_jack_h = yes; then
5092 else
5094 { { echo "$as_me:$LINENO: error:
5095 Cannot find JACK header file.
5096 Please install JACK.
5097 " >&5
5098 echo "$as_me: error:
5099 Cannot find JACK header file.
5100 Please install JACK.
5101 " >&2;}
5102 { (exit 1); exit 1; }; }
5108 { echo "$as_me:$LINENO: checking for jack_midi_event_write in -ljack" >&5
5109 echo $ECHO_N "checking for jack_midi_event_write in -ljack... $ECHO_C" >&6; }
5110 if test "${ac_cv_lib_jack_jack_midi_event_write+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 else
5113 ac_check_lib_save_LIBS=$LIBS
5114 LIBS="-ljack $LIBS"
5115 cat >conftest.$ac_ext <<_ACEOF
5116 /* confdefs.h. */
5117 _ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5122 /* Override any GCC internal prototype to avoid an error.
5123 Use char because int might match the return type of a GCC
5124 builtin and then its argument prototype would still apply. */
5125 #ifdef __cplusplus
5126 extern "C"
5127 #endif
5128 char jack_midi_event_write ();
5130 main ()
5132 return jack_midi_event_write ();
5134 return 0;
5136 _ACEOF
5137 rm -f conftest.$ac_objext conftest$ac_exeext
5138 if { (ac_try="$ac_link"
5139 case "(($ac_try" in
5140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141 *) ac_try_echo=$ac_try;;
5142 esac
5143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5144 (eval "$ac_link") 2>conftest.er1
5145 ac_status=$?
5146 grep -v '^ *+' conftest.er1 >conftest.err
5147 rm -f conftest.er1
5148 cat conftest.err >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } && {
5151 test -z "$ac_c_werror_flag" ||
5152 test ! -s conftest.err
5153 } && test -s conftest$ac_exeext &&
5154 $as_test_x conftest$ac_exeext; then
5155 ac_cv_lib_jack_jack_midi_event_write=yes
5156 else
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5160 ac_cv_lib_jack_jack_midi_event_write=no
5163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5164 conftest$ac_exeext conftest.$ac_ext
5165 LIBS=$ac_check_lib_save_LIBS
5167 { echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_midi_event_write" >&5
5168 echo "${ECHO_T}$ac_cv_lib_jack_jack_midi_event_write" >&6; }
5169 if test $ac_cv_lib_jack_jack_midi_event_write = yes; then
5170 cat >>confdefs.h <<_ACEOF
5171 #define HAVE_LIBJACK 1
5172 _ACEOF
5174 LIBS="-ljack $LIBS"
5176 else
5178 { { echo "$as_me:$LINENO: error:
5179 JACK midi support missing.
5180 Upgrade to a recent version of JACK.
5181 " >&5
5182 echo "$as_me: error:
5183 JACK midi support missing.
5184 Upgrade to a recent version of JACK.
5185 " >&2;}
5186 { (exit 1); exit 1; }; }
5191 # Extract the first word of "fltk2-config", so it can be a program name with args.
5192 set dummy fltk2-config; ac_word=$2
5193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5195 if test "${ac_cv_prog_fltk2found+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198 if test -n "$fltk2found"; then
5199 ac_cv_prog_fltk2found="$fltk2found" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5208 ac_cv_prog_fltk2found="yes"
5209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5212 done
5213 done
5214 IFS=$as_save_IFS
5216 test -z "$ac_cv_prog_fltk2found" && ac_cv_prog_fltk2found="no"
5219 fltk2found=$ac_cv_prog_fltk2found
5220 if test -n "$fltk2found"; then
5221 { echo "$as_me:$LINENO: result: $fltk2found" >&5
5222 echo "${ECHO_T}$fltk2found" >&6; }
5223 else
5224 { echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6; }
5229 if test "$fltk2found" == "no"; then
5230 { { echo "$as_me:$LINENO: error:
5231 FLTK 2 not found.
5232 Make sure FLTK 2 is installed correctly.
5233 " >&5
5234 echo "$as_me: error:
5235 FLTK 2 not found.
5236 Make sure FLTK 2 is installed correctly.
5237 " >&2;}
5238 { (exit 1); exit 1; }; }
5241 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile gfx/Makefile"
5243 cat >confcache <<\_ACEOF
5244 # This file is a shell script that caches the results of configure
5245 # tests run on this system so they can be shared between configure
5246 # scripts and configure runs, see configure's option --config-cache.
5247 # It is not useful on other systems. If it contains results you don't
5248 # want to keep, you may remove or edit it.
5250 # config.status only pays attention to the cache file if you give it
5251 # the --recheck option to rerun configure.
5253 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5254 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5255 # following values.
5257 _ACEOF
5259 # The following way of writing the cache mishandles newlines in values,
5260 # but we know of no workaround that is simple, portable, and efficient.
5261 # So, we kill variables containing newlines.
5262 # Ultrix sh set writes to stderr and can't be redirected directly,
5263 # and sets the high bit in the cache file unless we assign to the vars.
5265 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5266 eval ac_val=\$$ac_var
5267 case $ac_val in #(
5268 *${as_nl}*)
5269 case $ac_var in #(
5270 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5271 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5272 esac
5273 case $ac_var in #(
5274 _ | IFS | as_nl) ;; #(
5275 *) $as_unset $ac_var ;;
5276 esac ;;
5277 esac
5278 done
5280 (set) 2>&1 |
5281 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5282 *${as_nl}ac_space=\ *)
5283 # `set' does not quote correctly, so add quotes (double-quote
5284 # substitution turns \\\\ into \\, and sed turns \\ into \).
5285 sed -n \
5286 "s/'/'\\\\''/g;
5287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5288 ;; #(
5290 # `set' quotes correctly as required by POSIX, so do not add quotes.
5291 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5293 esac |
5294 sort
5296 sed '
5297 /^ac_cv_env_/b end
5298 t clear
5299 :clear
5300 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5301 t end
5302 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5303 :end' >>confcache
5304 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5305 if test -w "$cache_file"; then
5306 test "x$cache_file" != "x/dev/null" &&
5307 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5308 echo "$as_me: updating cache $cache_file" >&6;}
5309 cat confcache >$cache_file
5310 else
5311 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5312 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5315 rm -f confcache
5317 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5318 # Let make expand exec_prefix.
5319 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5321 DEFS=-DHAVE_CONFIG_H
5323 ac_libobjs=
5324 ac_ltlibobjs=
5325 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5326 # 1. Remove the extension, and $U if already installed.
5327 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5328 ac_i=`echo "$ac_i" | sed "$ac_script"`
5329 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5330 # will be set to the directory where LIBOBJS objects are built.
5331 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5332 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5333 done
5334 LIBOBJS=$ac_libobjs
5336 LTLIBOBJS=$ac_ltlibobjs
5339 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5340 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5341 Usually this means the macro was only invoked conditionally." >&5
5342 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5343 Usually this means the macro was only invoked conditionally." >&2;}
5344 { (exit 1); exit 1; }; }
5346 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5347 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
5348 Usually this means the macro was only invoked conditionally." >&5
5349 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
5350 Usually this means the macro was only invoked conditionally." >&2;}
5351 { (exit 1); exit 1; }; }
5353 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5354 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5355 Usually this means the macro was only invoked conditionally." >&5
5356 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5357 Usually this means the macro was only invoked conditionally." >&2;}
5358 { (exit 1); exit 1; }; }
5361 : ${CONFIG_STATUS=./config.status}
5362 ac_clean_files_save=$ac_clean_files
5363 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5364 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5365 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5366 cat >$CONFIG_STATUS <<_ACEOF
5367 #! $SHELL
5368 # Generated by $as_me.
5369 # Run this file to recreate the current configuration.
5370 # Compiler output produced by configure, useful for debugging
5371 # configure, is in config.log if it exists.
5373 debug=false
5374 ac_cs_recheck=false
5375 ac_cs_silent=false
5376 SHELL=\${CONFIG_SHELL-$SHELL}
5377 _ACEOF
5379 cat >>$CONFIG_STATUS <<\_ACEOF
5380 ## --------------------- ##
5381 ## M4sh Initialization. ##
5382 ## --------------------- ##
5384 # Be more Bourne compatible
5385 DUALCASE=1; export DUALCASE # for MKS sh
5386 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5387 emulate sh
5388 NULLCMD=:
5389 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5390 # is contrary to our usage. Disable this feature.
5391 alias -g '${1+"$@"}'='"$@"'
5392 setopt NO_GLOB_SUBST
5393 else
5394 case `(set -o) 2>/dev/null` in
5395 *posix*) set -o posix ;;
5396 esac
5403 # PATH needs CR
5404 # Avoid depending upon Character Ranges.
5405 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5406 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5407 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5408 as_cr_digits='0123456789'
5409 as_cr_alnum=$as_cr_Letters$as_cr_digits
5411 # The user is always right.
5412 if test "${PATH_SEPARATOR+set}" != set; then
5413 echo "#! /bin/sh" >conf$$.sh
5414 echo "exit 0" >>conf$$.sh
5415 chmod +x conf$$.sh
5416 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5417 PATH_SEPARATOR=';'
5418 else
5419 PATH_SEPARATOR=:
5421 rm -f conf$$.sh
5424 # Support unset when possible.
5425 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5426 as_unset=unset
5427 else
5428 as_unset=false
5432 # IFS
5433 # We need space, tab and new line, in precisely that order. Quoting is
5434 # there to prevent editors from complaining about space-tab.
5435 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5436 # splitting by setting IFS to empty value.)
5437 as_nl='
5439 IFS=" "" $as_nl"
5441 # Find who we are. Look in the path if we contain no directory separator.
5442 case $0 in
5443 *[\\/]* ) as_myself=$0 ;;
5444 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5450 done
5451 IFS=$as_save_IFS
5454 esac
5455 # We did not find ourselves, most probably we were run as `sh COMMAND'
5456 # in which case we are not to be found in the path.
5457 if test "x$as_myself" = x; then
5458 as_myself=$0
5460 if test ! -f "$as_myself"; then
5461 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5462 { (exit 1); exit 1; }
5465 # Work around bugs in pre-3.0 UWIN ksh.
5466 for as_var in ENV MAIL MAILPATH
5467 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5468 done
5469 PS1='$ '
5470 PS2='> '
5471 PS4='+ '
5473 # NLS nuisances.
5474 for as_var in \
5475 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5476 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5477 LC_TELEPHONE LC_TIME
5479 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5480 eval $as_var=C; export $as_var
5481 else
5482 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5484 done
5486 # Required to use basename.
5487 if expr a : '\(a\)' >/dev/null 2>&1 &&
5488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5489 as_expr=expr
5490 else
5491 as_expr=false
5494 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5495 as_basename=basename
5496 else
5497 as_basename=false
5501 # Name of the executable.
5502 as_me=`$as_basename -- "$0" ||
5503 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5504 X"$0" : 'X\(//\)$' \| \
5505 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5506 echo X/"$0" |
5507 sed '/^.*\/\([^/][^/]*\)\/*$/{
5508 s//\1/
5511 /^X\/\(\/\/\)$/{
5512 s//\1/
5515 /^X\/\(\/\).*/{
5516 s//\1/
5519 s/.*/./; q'`
5521 # CDPATH.
5522 $as_unset CDPATH
5526 as_lineno_1=$LINENO
5527 as_lineno_2=$LINENO
5528 test "x$as_lineno_1" != "x$as_lineno_2" &&
5529 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5531 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5532 # uniformly replaced by the line number. The first 'sed' inserts a
5533 # line-number line after each line using $LINENO; the second 'sed'
5534 # does the real work. The second script uses 'N' to pair each
5535 # line-number line with the line containing $LINENO, and appends
5536 # trailing '-' during substitution so that $LINENO is not a special
5537 # case at line end.
5538 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5539 # scripts with optimization help from Paolo Bonzini. Blame Lee
5540 # E. McMahon (1931-1989) for sed's syntax. :-)
5541 sed -n '
5543 /[$]LINENO/=
5544 ' <$as_myself |
5545 sed '
5546 s/[$]LINENO.*/&-/
5547 t lineno
5549 :lineno
5551 :loop
5552 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5553 t loop
5554 s/-\n.*//
5555 ' >$as_me.lineno &&
5556 chmod +x "$as_me.lineno" ||
5557 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5558 { (exit 1); exit 1; }; }
5560 # Don't try to exec as it changes $[0], causing all sort of problems
5561 # (the dirname of $[0] is not the place where we might find the
5562 # original and so on. Autoconf is especially sensitive to this).
5563 . "./$as_me.lineno"
5564 # Exit status is that of the last command.
5565 exit
5569 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5570 as_dirname=dirname
5571 else
5572 as_dirname=false
5575 ECHO_C= ECHO_N= ECHO_T=
5576 case `echo -n x` in
5577 -n*)
5578 case `echo 'x\c'` in
5579 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5580 *) ECHO_C='\c';;
5581 esac;;
5583 ECHO_N='-n';;
5584 esac
5586 if expr a : '\(a\)' >/dev/null 2>&1 &&
5587 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5588 as_expr=expr
5589 else
5590 as_expr=false
5593 rm -f conf$$ conf$$.exe conf$$.file
5594 if test -d conf$$.dir; then
5595 rm -f conf$$.dir/conf$$.file
5596 else
5597 rm -f conf$$.dir
5598 mkdir conf$$.dir
5600 echo >conf$$.file
5601 if ln -s conf$$.file conf$$ 2>/dev/null; then
5602 as_ln_s='ln -s'
5603 # ... but there are two gotchas:
5604 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5605 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5606 # In both cases, we have to default to `cp -p'.
5607 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5608 as_ln_s='cp -p'
5609 elif ln conf$$.file conf$$ 2>/dev/null; then
5610 as_ln_s=ln
5611 else
5612 as_ln_s='cp -p'
5614 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5615 rmdir conf$$.dir 2>/dev/null
5617 if mkdir -p . 2>/dev/null; then
5618 as_mkdir_p=:
5619 else
5620 test -d ./-p && rmdir ./-p
5621 as_mkdir_p=false
5624 if test -x / >/dev/null 2>&1; then
5625 as_test_x='test -x'
5626 else
5627 if ls -dL / >/dev/null 2>&1; then
5628 as_ls_L_option=L
5629 else
5630 as_ls_L_option=
5632 as_test_x='
5633 eval sh -c '\''
5634 if test -d "$1"; then
5635 test -d "$1/.";
5636 else
5637 case $1 in
5638 -*)set "./$1";;
5639 esac;
5640 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5641 ???[sx]*):;;*)false;;esac;fi
5642 '\'' sh
5645 as_executable_p=$as_test_x
5647 # Sed expression to map a string onto a valid CPP name.
5648 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5650 # Sed expression to map a string onto a valid variable name.
5651 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5654 exec 6>&1
5656 # Save the log message, to keep $[0] and so on meaningful, and to
5657 # report actual input values of CONFIG_FILES etc. instead of their
5658 # values after options handling.
5659 ac_log="
5660 This file was extended by epichord $as_me 0.0.0, which was
5661 generated by GNU Autoconf 2.61. Invocation command line was
5663 CONFIG_FILES = $CONFIG_FILES
5664 CONFIG_HEADERS = $CONFIG_HEADERS
5665 CONFIG_LINKS = $CONFIG_LINKS
5666 CONFIG_COMMANDS = $CONFIG_COMMANDS
5667 $ $0 $@
5669 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5672 _ACEOF
5674 cat >>$CONFIG_STATUS <<_ACEOF
5675 # Files that config.status was made for.
5676 config_files="$ac_config_files"
5677 config_headers="$ac_config_headers"
5678 config_commands="$ac_config_commands"
5680 _ACEOF
5682 cat >>$CONFIG_STATUS <<\_ACEOF
5683 ac_cs_usage="\
5684 \`$as_me' instantiates files from templates according to the
5685 current configuration.
5687 Usage: $0 [OPTIONS] [FILE]...
5689 -h, --help print this help, then exit
5690 -V, --version print version number and configuration settings, then exit
5691 -q, --quiet do not print progress messages
5692 -d, --debug don't remove temporary files
5693 --recheck update $as_me by reconfiguring in the same conditions
5694 --file=FILE[:TEMPLATE]
5695 instantiate the configuration file FILE
5696 --header=FILE[:TEMPLATE]
5697 instantiate the configuration header FILE
5699 Configuration files:
5700 $config_files
5702 Configuration headers:
5703 $config_headers
5705 Configuration commands:
5706 $config_commands
5708 Report bugs to <bug-autoconf@gnu.org>."
5710 _ACEOF
5711 cat >>$CONFIG_STATUS <<_ACEOF
5712 ac_cs_version="\\
5713 epichord config.status 0.0.0
5714 configured by $0, generated by GNU Autoconf 2.61,
5715 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5717 Copyright (C) 2006 Free Software Foundation, Inc.
5718 This config.status script is free software; the Free Software Foundation
5719 gives unlimited permission to copy, distribute and modify it."
5721 ac_pwd='$ac_pwd'
5722 srcdir='$srcdir'
5723 INSTALL='$INSTALL'
5724 _ACEOF
5726 cat >>$CONFIG_STATUS <<\_ACEOF
5727 # If no file are specified by the user, then we need to provide default
5728 # value. By we need to know if files were specified by the user.
5729 ac_need_defaults=:
5730 while test $# != 0
5732 case $1 in
5733 --*=*)
5734 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5735 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5736 ac_shift=:
5739 ac_option=$1
5740 ac_optarg=$2
5741 ac_shift=shift
5743 esac
5745 case $ac_option in
5746 # Handling of the options.
5747 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5748 ac_cs_recheck=: ;;
5749 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5750 echo "$ac_cs_version"; exit ;;
5751 --debug | --debu | --deb | --de | --d | -d )
5752 debug=: ;;
5753 --file | --fil | --fi | --f )
5754 $ac_shift
5755 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5756 ac_need_defaults=false;;
5757 --header | --heade | --head | --hea )
5758 $ac_shift
5759 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5760 ac_need_defaults=false;;
5761 --he | --h)
5762 # Conflict between --help and --header
5763 { echo "$as_me: error: ambiguous option: $1
5764 Try \`$0 --help' for more information." >&2
5765 { (exit 1); exit 1; }; };;
5766 --help | --hel | -h )
5767 echo "$ac_cs_usage"; exit ;;
5768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5769 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5770 ac_cs_silent=: ;;
5772 # This is an error.
5773 -*) { echo "$as_me: error: unrecognized option: $1
5774 Try \`$0 --help' for more information." >&2
5775 { (exit 1); exit 1; }; } ;;
5777 *) ac_config_targets="$ac_config_targets $1"
5778 ac_need_defaults=false ;;
5780 esac
5781 shift
5782 done
5784 ac_configure_extra_args=
5786 if $ac_cs_silent; then
5787 exec 6>/dev/null
5788 ac_configure_extra_args="$ac_configure_extra_args --silent"
5791 _ACEOF
5792 cat >>$CONFIG_STATUS <<_ACEOF
5793 if \$ac_cs_recheck; then
5794 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5795 CONFIG_SHELL=$SHELL
5796 export CONFIG_SHELL
5797 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5800 _ACEOF
5801 cat >>$CONFIG_STATUS <<\_ACEOF
5802 exec 5>>config.log
5804 echo
5805 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5806 ## Running $as_me. ##
5807 _ASBOX
5808 echo "$ac_log"
5809 } >&5
5811 _ACEOF
5812 cat >>$CONFIG_STATUS <<_ACEOF
5814 # INIT-COMMANDS
5816 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5818 _ACEOF
5820 cat >>$CONFIG_STATUS <<\_ACEOF
5822 # Handling of arguments.
5823 for ac_config_target in $ac_config_targets
5825 case $ac_config_target in
5826 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5827 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5828 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5829 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5830 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5831 "gfx/Makefile") CONFIG_FILES="$CONFIG_FILES gfx/Makefile" ;;
5833 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5834 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5835 { (exit 1); exit 1; }; };;
5836 esac
5837 done
5840 # If the user did not use the arguments to specify the items to instantiate,
5841 # then the envvar interface is used. Set only those that are not.
5842 # We use the long form for the default assignment because of an extremely
5843 # bizarre bug on SunOS 4.1.3.
5844 if $ac_need_defaults; then
5845 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5846 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5847 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5850 # Have a temporary directory for convenience. Make it in the build tree
5851 # simply because there is no reason against having it here, and in addition,
5852 # creating and moving files from /tmp can sometimes cause problems.
5853 # Hook for its removal unless debugging.
5854 # Note that there is a small window in which the directory will not be cleaned:
5855 # after its creation but before its name has been assigned to `$tmp'.
5856 $debug ||
5858 tmp=
5859 trap 'exit_status=$?
5860 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5862 trap '{ (exit 1); exit 1; }' 1 2 13 15
5864 # Create a (secure) tmp directory for tmp files.
5867 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5868 test -n "$tmp" && test -d "$tmp"
5869 } ||
5871 tmp=./conf$$-$RANDOM
5872 (umask 077 && mkdir "$tmp")
5873 } ||
5875 echo "$me: cannot create a temporary directory in ." >&2
5876 { (exit 1); exit 1; }
5880 # Set up the sed scripts for CONFIG_FILES section.
5883 # No need to generate the scripts if there are no CONFIG_FILES.
5884 # This happens for instance when ./config.status config.h
5885 if test -n "$CONFIG_FILES"; then
5887 _ACEOF
5891 ac_delim='%!_!# '
5892 for ac_last_try in false false false false false :; do
5893 cat >conf$$subs.sed <<_ACEOF
5894 SHELL!$SHELL$ac_delim
5895 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5896 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5897 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5898 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5899 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5900 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5901 exec_prefix!$exec_prefix$ac_delim
5902 prefix!$prefix$ac_delim
5903 program_transform_name!$program_transform_name$ac_delim
5904 bindir!$bindir$ac_delim
5905 sbindir!$sbindir$ac_delim
5906 libexecdir!$libexecdir$ac_delim
5907 datarootdir!$datarootdir$ac_delim
5908 datadir!$datadir$ac_delim
5909 sysconfdir!$sysconfdir$ac_delim
5910 sharedstatedir!$sharedstatedir$ac_delim
5911 localstatedir!$localstatedir$ac_delim
5912 includedir!$includedir$ac_delim
5913 oldincludedir!$oldincludedir$ac_delim
5914 docdir!$docdir$ac_delim
5915 infodir!$infodir$ac_delim
5916 htmldir!$htmldir$ac_delim
5917 dvidir!$dvidir$ac_delim
5918 pdfdir!$pdfdir$ac_delim
5919 psdir!$psdir$ac_delim
5920 libdir!$libdir$ac_delim
5921 localedir!$localedir$ac_delim
5922 mandir!$mandir$ac_delim
5923 DEFS!$DEFS$ac_delim
5924 ECHO_C!$ECHO_C$ac_delim
5925 ECHO_N!$ECHO_N$ac_delim
5926 ECHO_T!$ECHO_T$ac_delim
5927 LIBS!$LIBS$ac_delim
5928 build_alias!$build_alias$ac_delim
5929 host_alias!$host_alias$ac_delim
5930 target_alias!$target_alias$ac_delim
5931 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
5932 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
5933 INSTALL_DATA!$INSTALL_DATA$ac_delim
5934 CYGPATH_W!$CYGPATH_W$ac_delim
5935 PACKAGE!$PACKAGE$ac_delim
5936 VERSION!$VERSION$ac_delim
5937 ACLOCAL!$ACLOCAL$ac_delim
5938 AUTOCONF!$AUTOCONF$ac_delim
5939 AUTOMAKE!$AUTOMAKE$ac_delim
5940 AUTOHEADER!$AUTOHEADER$ac_delim
5941 MAKEINFO!$MAKEINFO$ac_delim
5942 install_sh!$install_sh$ac_delim
5943 STRIP!$STRIP$ac_delim
5944 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
5945 mkdir_p!$mkdir_p$ac_delim
5946 AWK!$AWK$ac_delim
5947 SET_MAKE!$SET_MAKE$ac_delim
5948 am__leading_dot!$am__leading_dot$ac_delim
5949 AMTAR!$AMTAR$ac_delim
5950 am__tar!$am__tar$ac_delim
5951 am__untar!$am__untar$ac_delim
5952 CXX!$CXX$ac_delim
5953 CXXFLAGS!$CXXFLAGS$ac_delim
5954 LDFLAGS!$LDFLAGS$ac_delim
5955 CPPFLAGS!$CPPFLAGS$ac_delim
5956 ac_ct_CXX!$ac_ct_CXX$ac_delim
5957 EXEEXT!$EXEEXT$ac_delim
5958 OBJEXT!$OBJEXT$ac_delim
5959 DEPDIR!$DEPDIR$ac_delim
5960 am__include!$am__include$ac_delim
5961 am__quote!$am__quote$ac_delim
5962 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
5963 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
5964 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
5965 CXXDEPMODE!$CXXDEPMODE$ac_delim
5966 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
5967 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
5968 CC!$CC$ac_delim
5969 CFLAGS!$CFLAGS$ac_delim
5970 ac_ct_CC!$ac_ct_CC$ac_delim
5971 CCDEPMODE!$CCDEPMODE$ac_delim
5972 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
5973 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
5974 CPP!$CPP$ac_delim
5975 GREP!$GREP$ac_delim
5976 EGREP!$EGREP$ac_delim
5977 fltk2found!$fltk2found$ac_delim
5978 LIBOBJS!$LIBOBJS$ac_delim
5979 LTLIBOBJS!$LTLIBOBJS$ac_delim
5980 _ACEOF
5982 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
5983 break
5984 elif $ac_last_try; then
5985 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5986 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5987 { (exit 1); exit 1; }; }
5988 else
5989 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5991 done
5993 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5994 if test -n "$ac_eof"; then
5995 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5996 ac_eof=`expr $ac_eof + 1`
5999 cat >>$CONFIG_STATUS <<_ACEOF
6000 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6001 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6002 _ACEOF
6003 sed '
6004 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6005 s/^/s,@/; s/!/@,|#_!!_#|/
6008 s/'"$ac_delim"'$/,g/; t
6009 s/$/\\/; p
6010 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6011 ' >>$CONFIG_STATUS <conf$$subs.sed
6012 rm -f conf$$subs.sed
6013 cat >>$CONFIG_STATUS <<_ACEOF
6014 :end
6015 s/|#_!!_#|//g
6016 CEOF$ac_eof
6017 _ACEOF
6020 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6021 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6022 # trailing colons and then remove the whole line if VPATH becomes empty
6023 # (actually we leave an empty line to preserve line numbers).
6024 if test "x$srcdir" = x.; then
6025 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6026 s/:*\$(srcdir):*/:/
6027 s/:*\${srcdir}:*/:/
6028 s/:*@srcdir@:*/:/
6029 s/^\([^=]*=[ ]*\):*/\1/
6030 s/:*$//
6031 s/^[^=]*=[ ]*$//
6035 cat >>$CONFIG_STATUS <<\_ACEOF
6036 fi # test -n "$CONFIG_FILES"
6039 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
6041 case $ac_tag in
6042 :[FHLC]) ac_mode=$ac_tag; continue;;
6043 esac
6044 case $ac_mode$ac_tag in
6045 :[FHL]*:*);;
6046 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6047 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6048 { (exit 1); exit 1; }; };;
6049 :[FH]-) ac_tag=-:-;;
6050 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6051 esac
6052 ac_save_IFS=$IFS
6053 IFS=:
6054 set x $ac_tag
6055 IFS=$ac_save_IFS
6056 shift
6057 ac_file=$1
6058 shift
6060 case $ac_mode in
6061 :L) ac_source=$1;;
6062 :[FH])
6063 ac_file_inputs=
6064 for ac_f
6066 case $ac_f in
6067 -) ac_f="$tmp/stdin";;
6068 *) # Look for the file first in the build tree, then in the source tree
6069 # (if the path is not absolute). The absolute path cannot be DOS-style,
6070 # because $ac_f cannot contain `:'.
6071 test -f "$ac_f" ||
6072 case $ac_f in
6073 [\\/$]*) false;;
6074 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6075 esac ||
6076 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6077 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6078 { (exit 1); exit 1; }; };;
6079 esac
6080 ac_file_inputs="$ac_file_inputs $ac_f"
6081 done
6083 # Let's still pretend it is `configure' which instantiates (i.e., don't
6084 # use $as_me), people would be surprised to read:
6085 # /* config.h. Generated by config.status. */
6086 configure_input="Generated from "`IFS=:
6087 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6088 if test x"$ac_file" != x-; then
6089 configure_input="$ac_file. $configure_input"
6090 { echo "$as_me:$LINENO: creating $ac_file" >&5
6091 echo "$as_me: creating $ac_file" >&6;}
6094 case $ac_tag in
6095 *:-:* | *:-) cat >"$tmp/stdin";;
6096 esac
6098 esac
6100 ac_dir=`$as_dirname -- "$ac_file" ||
6101 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6102 X"$ac_file" : 'X\(//\)[^/]' \| \
6103 X"$ac_file" : 'X\(//\)$' \| \
6104 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6105 echo X"$ac_file" |
6106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6107 s//\1/
6110 /^X\(\/\/\)[^/].*/{
6111 s//\1/
6114 /^X\(\/\/\)$/{
6115 s//\1/
6118 /^X\(\/\).*/{
6119 s//\1/
6122 s/.*/./; q'`
6123 { as_dir="$ac_dir"
6124 case $as_dir in #(
6125 -*) as_dir=./$as_dir;;
6126 esac
6127 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6128 as_dirs=
6129 while :; do
6130 case $as_dir in #(
6131 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6132 *) as_qdir=$as_dir;;
6133 esac
6134 as_dirs="'$as_qdir' $as_dirs"
6135 as_dir=`$as_dirname -- "$as_dir" ||
6136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6137 X"$as_dir" : 'X\(//\)[^/]' \| \
6138 X"$as_dir" : 'X\(//\)$' \| \
6139 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6140 echo X"$as_dir" |
6141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6142 s//\1/
6145 /^X\(\/\/\)[^/].*/{
6146 s//\1/
6149 /^X\(\/\/\)$/{
6150 s//\1/
6153 /^X\(\/\).*/{
6154 s//\1/
6157 s/.*/./; q'`
6158 test -d "$as_dir" && break
6159 done
6160 test -z "$as_dirs" || eval "mkdir $as_dirs"
6161 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6162 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6163 { (exit 1); exit 1; }; }; }
6164 ac_builddir=.
6166 case "$ac_dir" in
6167 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6169 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6170 # A ".." for each directory in $ac_dir_suffix.
6171 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6172 case $ac_top_builddir_sub in
6173 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6174 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6175 esac ;;
6176 esac
6177 ac_abs_top_builddir=$ac_pwd
6178 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6179 # for backward compatibility:
6180 ac_top_builddir=$ac_top_build_prefix
6182 case $srcdir in
6183 .) # We are building in place.
6184 ac_srcdir=.
6185 ac_top_srcdir=$ac_top_builddir_sub
6186 ac_abs_top_srcdir=$ac_pwd ;;
6187 [\\/]* | ?:[\\/]* ) # Absolute name.
6188 ac_srcdir=$srcdir$ac_dir_suffix;
6189 ac_top_srcdir=$srcdir
6190 ac_abs_top_srcdir=$srcdir ;;
6191 *) # Relative name.
6192 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6193 ac_top_srcdir=$ac_top_build_prefix$srcdir
6194 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6195 esac
6196 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6199 case $ac_mode in
6202 # CONFIG_FILE
6205 case $INSTALL in
6206 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6207 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6208 esac
6209 _ACEOF
6211 cat >>$CONFIG_STATUS <<\_ACEOF
6212 # If the template does not know about datarootdir, expand it.
6213 # FIXME: This hack should be removed a few years after 2.60.
6214 ac_datarootdir_hack=; ac_datarootdir_seen=
6216 case `sed -n '/datarootdir/ {
6220 /@datadir@/p
6221 /@docdir@/p
6222 /@infodir@/p
6223 /@localedir@/p
6224 /@mandir@/p
6225 ' $ac_file_inputs` in
6226 *datarootdir*) ac_datarootdir_seen=yes;;
6227 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6228 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6229 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6230 _ACEOF
6231 cat >>$CONFIG_STATUS <<_ACEOF
6232 ac_datarootdir_hack='
6233 s&@datadir@&$datadir&g
6234 s&@docdir@&$docdir&g
6235 s&@infodir@&$infodir&g
6236 s&@localedir@&$localedir&g
6237 s&@mandir@&$mandir&g
6238 s&\\\${datarootdir}&$datarootdir&g' ;;
6239 esac
6240 _ACEOF
6242 # Neutralize VPATH when `$srcdir' = `.'.
6243 # Shell code in configure.ac might set extrasub.
6244 # FIXME: do we really want to maintain this feature?
6245 cat >>$CONFIG_STATUS <<_ACEOF
6246 sed "$ac_vpsub
6247 $extrasub
6248 _ACEOF
6249 cat >>$CONFIG_STATUS <<\_ACEOF
6251 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6252 s&@configure_input@&$configure_input&;t t
6253 s&@top_builddir@&$ac_top_builddir_sub&;t t
6254 s&@srcdir@&$ac_srcdir&;t t
6255 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6256 s&@top_srcdir@&$ac_top_srcdir&;t t
6257 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6258 s&@builddir@&$ac_builddir&;t t
6259 s&@abs_builddir@&$ac_abs_builddir&;t t
6260 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6261 s&@INSTALL@&$ac_INSTALL&;t t
6262 $ac_datarootdir_hack
6263 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6265 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6266 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6267 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6268 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6269 which seems to be undefined. Please make sure it is defined." >&5
6270 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6271 which seems to be undefined. Please make sure it is defined." >&2;}
6273 rm -f "$tmp/stdin"
6274 case $ac_file in
6275 -) cat "$tmp/out"; rm -f "$tmp/out";;
6276 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6277 esac
6281 # CONFIG_HEADER
6283 _ACEOF
6285 # Transform confdefs.h into a sed script `conftest.defines', that
6286 # substitutes the proper values into config.h.in to produce config.h.
6287 rm -f conftest.defines conftest.tail
6288 # First, append a space to every undef/define line, to ease matching.
6289 echo 's/$/ /' >conftest.defines
6290 # Then, protect against being on the right side of a sed subst, or in
6291 # an unquoted here document, in config.status. If some macros were
6292 # called several times there might be several #defines for the same
6293 # symbol, which is useless. But do not sort them, since the last
6294 # AC_DEFINE must be honored.
6295 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6296 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6297 # NAME is the cpp macro being defined, VALUE is the value it is being given.
6298 # PARAMS is the parameter list in the macro definition--in most cases, it's
6299 # just an empty string.
6300 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
6301 ac_dB='\\)[ (].*,\\1define\\2'
6302 ac_dC=' '
6303 ac_dD=' ,'
6305 uniq confdefs.h |
6306 sed -n '
6307 t rset
6308 :rset
6309 s/^[ ]*#[ ]*define[ ][ ]*//
6310 t ok
6313 s/[\\&,]/\\&/g
6314 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6315 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6316 ' >>conftest.defines
6318 # Remove the space that was appended to ease matching.
6319 # Then replace #undef with comments. This is necessary, for
6320 # example, in the case of _POSIX_SOURCE, which is predefined and required
6321 # on some systems where configure will not decide to define it.
6322 # (The regexp can be short, since the line contains either #define or #undef.)
6323 echo 's/ $//
6324 s,^[ #]*u.*,/* & */,' >>conftest.defines
6326 # Break up conftest.defines:
6327 ac_max_sed_lines=50
6329 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6330 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6331 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6332 # et cetera.
6333 ac_in='$ac_file_inputs'
6334 ac_out='"$tmp/out1"'
6335 ac_nxt='"$tmp/out2"'
6337 while :
6339 # Write a here document:
6340 cat >>$CONFIG_STATUS <<_ACEOF
6341 # First, check the format of the line:
6342 cat >"\$tmp/defines.sed" <<\\CEOF
6343 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
6344 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
6346 :def
6347 _ACEOF
6348 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6349 echo 'CEOF
6350 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6351 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6352 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6353 grep . conftest.tail >/dev/null || break
6354 rm -f conftest.defines
6355 mv conftest.tail conftest.defines
6356 done
6357 rm -f conftest.defines conftest.tail
6359 echo "ac_result=$ac_in" >>$CONFIG_STATUS
6360 cat >>$CONFIG_STATUS <<\_ACEOF
6361 if test x"$ac_file" != x-; then
6362 echo "/* $configure_input */" >"$tmp/config.h"
6363 cat "$ac_result" >>"$tmp/config.h"
6364 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6365 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6366 echo "$as_me: $ac_file is unchanged" >&6;}
6367 else
6368 rm -f $ac_file
6369 mv "$tmp/config.h" $ac_file
6371 else
6372 echo "/* $configure_input */"
6373 cat "$ac_result"
6375 rm -f "$tmp/out12"
6376 # Compute $ac_file's index in $config_headers.
6377 _am_stamp_count=1
6378 for _am_header in $config_headers :; do
6379 case $_am_header in
6380 $ac_file | $ac_file:* )
6381 break ;;
6383 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6384 esac
6385 done
6386 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
6387 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6388 X$ac_file : 'X\(//\)[^/]' \| \
6389 X$ac_file : 'X\(//\)$' \| \
6390 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
6391 echo X$ac_file |
6392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6393 s//\1/
6396 /^X\(\/\/\)[^/].*/{
6397 s//\1/
6400 /^X\(\/\/\)$/{
6401 s//\1/
6404 /^X\(\/\).*/{
6405 s//\1/
6408 s/.*/./; q'`/stamp-h$_am_stamp_count
6411 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
6412 echo "$as_me: executing $ac_file commands" >&6;}
6414 esac
6417 case $ac_file$ac_mode in
6418 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6419 # Strip MF so we end up with the name of the file.
6420 mf=`echo "$mf" | sed -e 's/:.*$//'`
6421 # Check whether this is an Automake generated Makefile or not.
6422 # We used to match only the files named `Makefile.in', but
6423 # some people rename them; so instead we look at the file content.
6424 # Grep'ing the first line is not enough: some people post-process
6425 # each Makefile.in and add a new line on top of each file to say so.
6426 # So let's grep whole file.
6427 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6428 dirpart=`$as_dirname -- "$mf" ||
6429 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6430 X"$mf" : 'X\(//\)[^/]' \| \
6431 X"$mf" : 'X\(//\)$' \| \
6432 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6433 echo X"$mf" |
6434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6435 s//\1/
6438 /^X\(\/\/\)[^/].*/{
6439 s//\1/
6442 /^X\(\/\/\)$/{
6443 s//\1/
6446 /^X\(\/\).*/{
6447 s//\1/
6450 s/.*/./; q'`
6451 else
6452 continue
6454 # Extract the definition of DEPDIR, am__include, and am__quote
6455 # from the Makefile without running `make'.
6456 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6457 test -z "$DEPDIR" && continue
6458 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6459 test -z "am__include" && continue
6460 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6461 # When using ansi2knr, U may be empty or an underscore; expand it
6462 U=`sed -n 's/^U = //p' < "$mf"`
6463 # Find all dependency output files, they are included files with
6464 # $(DEPDIR) in their names. We invoke sed twice because it is the
6465 # simplest approach to changing $(DEPDIR) to its actual value in the
6466 # expansion.
6467 for file in `sed -n "
6468 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6469 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6470 # Make sure the directory exists.
6471 test -f "$dirpart/$file" && continue
6472 fdir=`$as_dirname -- "$file" ||
6473 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6474 X"$file" : 'X\(//\)[^/]' \| \
6475 X"$file" : 'X\(//\)$' \| \
6476 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6477 echo X"$file" |
6478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6479 s//\1/
6482 /^X\(\/\/\)[^/].*/{
6483 s//\1/
6486 /^X\(\/\/\)$/{
6487 s//\1/
6490 /^X\(\/\).*/{
6491 s//\1/
6494 s/.*/./; q'`
6495 { as_dir=$dirpart/$fdir
6496 case $as_dir in #(
6497 -*) as_dir=./$as_dir;;
6498 esac
6499 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6500 as_dirs=
6501 while :; do
6502 case $as_dir in #(
6503 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6504 *) as_qdir=$as_dir;;
6505 esac
6506 as_dirs="'$as_qdir' $as_dirs"
6507 as_dir=`$as_dirname -- "$as_dir" ||
6508 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6509 X"$as_dir" : 'X\(//\)[^/]' \| \
6510 X"$as_dir" : 'X\(//\)$' \| \
6511 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6512 echo X"$as_dir" |
6513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6514 s//\1/
6517 /^X\(\/\/\)[^/].*/{
6518 s//\1/
6521 /^X\(\/\/\)$/{
6522 s//\1/
6525 /^X\(\/\).*/{
6526 s//\1/
6529 s/.*/./; q'`
6530 test -d "$as_dir" && break
6531 done
6532 test -z "$as_dirs" || eval "mkdir $as_dirs"
6533 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6534 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6535 { (exit 1); exit 1; }; }; }
6536 # echo "creating $dirpart/$file"
6537 echo '# dummy' > "$dirpart/$file"
6538 done
6539 done
6542 esac
6543 done # for ac_tag
6546 { (exit 0); exit 0; }
6547 _ACEOF
6548 chmod +x $CONFIG_STATUS
6549 ac_clean_files=$ac_clean_files_save
6552 # configure is writing to config.log, and then calls config.status.
6553 # config.status does its own redirection, appending to config.log.
6554 # Unfortunately, on DOS this fails, as config.log is still kept open
6555 # by configure, so config.status won't be able to write to it; its
6556 # output is simply discarded. So we exec the FD to /dev/null,
6557 # effectively closing config.log, so it can be properly (re)opened and
6558 # appended to by config.status. When coming back to configure, we
6559 # need to make the FD available again.
6560 if test "$no_create" != yes; then
6561 ac_cs_success=:
6562 ac_config_status_args=
6563 test "$silent" = yes &&
6564 ac_config_status_args="$ac_config_status_args --quiet"
6565 exec 5>/dev/null
6566 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6567 exec 5>>config.log
6568 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6569 # would make configure fail if this is the last instruction.
6570 $ac_cs_success || { (exit 1); exit 1; }