2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 *v*x* | *x*v* ) as_opts=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 as_val=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status=$1; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 elif ln conf$$.file conf$$ 2>/dev/null; then
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
503 test -d ./-p && rmdir ./-p
507 if test -x / >/dev/null 2>&1; then
510 if ls -dL / >/dev/null 2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix=/usr/local
550 ac_config_libobj_dir=.
557 # Identity of this package.
565 ac_unique_file="aplay/aplay.c"
566 ac_default_prefix=/usr
567 # Factoring default headers for most tests.
568 ac_includes_default="\
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
580 # ifdef HAVE_STDLIB_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
603 ac_subst_vars='am__EXEEXT_FALSE
636 HAVE_SAMPLERATE_FALSE
697 INSTALL_STRIP_PROGRAM
739 program_transform_name
752 enable_option_checking
754 enable_dependency_tracking
771 with_systemdsystemunitdir
772 with_asound_state_dir
774 ac_precious_vars='build_alias
786 # Initialize some variables set by options.
788 ac_init_version=false
789 ac_unrecognized_opts=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
800 program_transform_name=s,x,x,
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir='${exec_prefix}/bin'
815 sbindir='${exec_prefix}/sbin'
816 libexecdir='${exec_prefix}/libexec'
817 datarootdir='${prefix}/share'
818 datadir='${datarootdir}'
819 sysconfdir='${prefix}/etc'
820 sharedstatedir='${prefix}/com'
821 localstatedir='${prefix}/var'
822 includedir='${prefix}/include'
823 oldincludedir='/usr/include'
824 docdir='${datarootdir}/doc/${PACKAGE}'
825 infodir='${datarootdir}/info'
830 libdir='${exec_prefix}/lib'
831 localedir='${datarootdir}/locale'
832 mandir='${datarootdir}/man'
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\$ac_option
846 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 # Accept the important Cygnus configure options, so we can diagnose typos.
853 case $ac_dashdash$ac_option in
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
875 cache_file=config.cache ;;
877 -datadir | --datadir | --datadi | --datad)
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
889 -disable-* | --disable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error $? "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
903 eval enable_$ac_useropt=no ;;
905 -docdir | --docdir | --docdi | --doc | --do)
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 -enable-* | --enable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
929 eval enable_$ac_useropt=\$ac_optarg ;;
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
944 -help | --help | --hel | --he | -h)
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 htmldir=$ac_optarg ;;
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
974 -libdir | --libdir | --libdi | --libd)
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
986 -localedir | --localedir | --localedi | --localed | --locale)
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1065 -psdir | --psdir | --psdi | --psd | --ps)
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 sbindir=$ac_optarg ;;
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 sharedstatedir=$ac_optarg ;;
1091 -site | --site | --sit)
1093 -site=* | --site=* | --sit=*)
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1133 eval with_$ac_useropt=\$ac_optarg ;;
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1149 eval with_$ac_useropt=no ;;
1152 # Obsolete; use --with-x.
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1169 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information"
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1184 # FIXME: should be removed in autoconf 3.0.
1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error $? "missing argument to $ac_option"
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1202 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 # Check all directory arguments for consistency.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1220 # Be sure to have absolute directory names.
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1233 target=$target_alias
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1240 If a cross compiler is detected then cross compile mode will be used" >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249 test "$silent" = yes && exec 6>/dev/null
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error $? "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error $? "pwd does not report name of working directory"
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1292 ac_srcdir_defaulted=no
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 # Report the --help message.
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1326 \`configure' configures this package to adapt to many kinds of systems.
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1333 Defaults for the options are specified in brackets.
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking ...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1357 For better control, use the options below.
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 if test -n "$ac_init_help"; then
1399 --disable-option-checking ignore unrecognized --enable/--with options
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1402 --disable-nls do not use Native Language Support
1403 --disable-dependency-tracking speeds up one-time build
1404 --enable-dependency-tracking do not reject slow dependency extractors
1405 --disable-rpath do not hardcode runtime library paths
1406 --disable-alsatest Do not try to compile and run a test Alsa program
1407 --disable-alsamixer Disable alsamixer compilation
1408 --disable-alsaconf Disable alsaconf packaging
1409 --disable-alsaloop Disable alsaloop packaging
1410 --disable-xmlto Disable man page creation via xmlto
1411 --disable-largefile omit support for large files
1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1416 --with-gnu-ld assume the C compiler uses GNU ld default=no
1417 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1418 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1419 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1420 --without-libintl-prefix don't search for libintl in includedir and libdir
1421 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
1422 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
1423 --with-librt Use librt for monotonic clock (default = yes)
1424 --with-udev-rules-dir Directory where to install udev rules to (defaults
1425 to /lib/udev/rules.d)
1426 --with-curses libname Specify the curses library to use (default=auto)
1427 --with-testsound=file give the path of test sound file for alsaconf
1428 --with-systemdsystemunitdir=DIR
1429 Directory for systemd service files
1430 --with-asound-state-dir=DIR
1431 Directory to place asound.state file in
1433 Some influential environment variables:
1434 CC C compiler command
1435 CFLAGS C compiler flags
1436 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1437 nonstandard directory <lib dir>
1438 LIBS libraries to pass to the linker, e.g. -l<library>
1439 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1440 you have headers in a nonstandard directory <include dir>
1442 PKG_CONFIG path to pkg-config utility
1444 Use these variables to override the choices made by `configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1447 Report bugs to the package provider.
1452 if test "$ac_init_help" = "recursive"; then
1453 # If there are subdirs, report their specific --help.
1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455 test -d "$ac_dir" ||
1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464 # A ".." for each directory in $ac_dir_suffix.
1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466 case $ac_top_builddir_sub in
1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 ac_abs_top_builddir=$ac_pwd
1472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473 # for backward compatibility:
1474 ac_top_builddir=$ac_top_build_prefix
1477 .) # We are building in place.
1479 ac_top_srcdir=$ac_top_builddir_sub
1480 ac_abs_top_srcdir=$ac_pwd ;;
1481 [\\/]* | ?:[\\/]* ) # Absolute name.
1482 ac_srcdir=$srcdir$ac_dir_suffix;
1483 ac_top_srcdir=$srcdir
1484 ac_abs_top_srcdir=$srcdir ;;
1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487 ac_top_srcdir=$ac_top_build_prefix$srcdir
1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492 cd "$ac_dir" || { ac_status=$?; continue; }
1493 # Check for guested configure.
1494 if test -f "$ac_srcdir/configure.gnu"; then
1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497 elif test -f "$ac_srcdir/configure"; then
1499 $SHELL "$ac_srcdir/configure" --help=recursive
1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503 cd "$ac_pwd" || { ac_status=$?; break; }
1507 test -n "$ac_init_help" && exit $ac_status
1508 if $ac_init_version; then
1511 generated by GNU Autoconf 2.68
1513 Copyright (C) 2010 Free Software Foundation, Inc.
1514 This configure script is free software; the Free Software Foundation
1515 gives unlimited permission to copy, distribute and modify it.
1520 ## ------------------------ ##
1521 ## Autoconf initialization. ##
1522 ## ------------------------ ##
1524 # ac_fn_c_try_compile LINENO
1525 # --------------------------
1526 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_c_try_compile ()
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 rm -f conftest.$ac_objext
1531 if { { ac_try="$ac_compile"
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_compile") 2>conftest.err
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest.$ac_objext; then :
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
1560 } # ac_fn_c_try_compile
1562 # ac_fn_c_try_link LINENO
1563 # -----------------------
1564 # Try to link conftest.$ac_ext, and return whether this succeeded.
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext conftest$ac_exeext
1569 if { { ac_try="$ac_link"
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_link") 2>conftest.err
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest$ac_exeext && {
1588 test "$cross_compiling" = yes ||
1589 $as_test_x conftest$ac_exeext
1593 $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1598 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1599 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1600 # interfere with the next link command; also delete a directory that is
1601 # left behind by Apple's compiler. We do this before executing the actions.
1602 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1606 } # ac_fn_c_try_link
1608 # ac_fn_c_check_func LINENO FUNC VAR
1609 # ----------------------------------
1610 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1611 ac_fn_c_check_func ()
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615 $as_echo_n "checking for $2... " >&6; }
1616 if eval \${$3+:} false; then :
1617 $as_echo_n "(cached) " >&6
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h. */
1621 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1623 #define $2 innocuous_$2
1625 /* System header to define __stub macros and hopefully few prototypes,
1626 which can conflict with char $2 (); below.
1627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1628 <limits.h> exists even on freestanding compilers. */
1631 # include <limits.h>
1633 # include <assert.h>
1638 /* Override any GCC internal prototype to avoid an error.
1639 Use char because int might match the return type of a GCC
1640 builtin and then its argument prototype would still apply. */
1645 /* The GNU C library defines this for functions which it implements
1646 to always fail with ENOSYS. Some functions are actually named
1647 something starting with __ and the normal name is an alias. */
1648 #if defined __stub_$2 || defined __stub___$2
1660 if ac_fn_c_try_link "$LINENO"; then :
1665 rm -f core conftest.err conftest.$ac_objext \
1666 conftest$ac_exeext conftest.$ac_ext
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 } # ac_fn_c_check_func
1675 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1676 # -------------------------------------------------------
1677 # Tests whether HEADER exists and can be compiled using the include files in
1678 # INCLUDES, setting the cache variable VAR accordingly.
1679 ac_fn_c_check_header_compile ()
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 $as_echo_n "checking for $2... " >&6; }
1684 if eval \${$3+:} false; then :
1685 $as_echo_n "(cached) " >&6
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h. */
1692 if ac_fn_c_try_compile "$LINENO"; then :
1697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 } # ac_fn_c_check_header_compile
1706 # ac_fn_c_try_cpp LINENO
1707 # ----------------------
1708 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_cpp conftest.$ac_ext"
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } > conftest.i && {
1728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1743 # ac_fn_c_try_run LINENO
1744 # ----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746 # that executables *can* be run.
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_link"
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>&5
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761 { { case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_try") 2>&5
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; }; }; then :
1773 $as_echo "$as_me: program exited with status $ac_status" >&5
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 ac_retval=$ac_status
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1785 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1788 # the include files in INCLUDES and setting the cache variable VAR
1790 ac_fn_c_check_header_mongrel ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if eval \${$3+:} false; then :
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1803 # Is the header compilable?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1805 $as_echo_n "checking $2 usability... " >&6; }
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 ac_header_compiler=yes
1814 ac_header_compiler=no
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1818 $as_echo "$ac_header_compiler" >&6; }
1820 # Is the header present?
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1822 $as_echo_n "checking $2 presence... " >&6; }
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1827 if ac_fn_c_try_cpp "$LINENO"; then :
1828 ac_header_preproc=yes
1830 ac_header_preproc=no
1832 rm -f conftest.err conftest.i conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1834 $as_echo "$ac_header_preproc" >&6; }
1836 # So? What about this header?
1837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1840 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1846 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1848 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1850 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1852 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1862 eval "$3=\$ac_header_compiler"
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 } # ac_fn_c_check_header_mongrel
1871 cat >config.log <<_ACEOF
1872 This file contains any messages produced by compilers while
1873 running configure, to aid debugging if configure makes a mistake.
1875 It was created by $as_me, which was
1876 generated by GNU Autoconf 2.68. Invocation command line was
1888 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1889 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1890 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1891 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1892 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1894 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1895 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1897 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1898 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1899 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1900 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1901 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1902 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1903 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 test -z "$as_dir" && as_dir=.
1912 $as_echo "PATH: $as_dir"
1928 # Keep a trace of the command line.
1929 # Strip out --no-create and --no-recursion so they do not pile up.
1930 # Strip out --silent because we don't want to record it for future runs.
1931 # Also quote any args containing shell meta-characters.
1932 # Make two passes to allow for proper duplicate-argument suppression.
1936 ac_must_keep_next=false
1942 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944 | -silent | --silent | --silen | --sile | --sil)
1947 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1950 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1952 as_fn_append ac_configure_args1 " '$ac_arg'"
1953 if test $ac_must_keep_next = true; then
1954 ac_must_keep_next=false # Got value, back to normal.
1957 *=* | --config-cache | -C | -disable-* | --disable-* \
1958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1960 | -with-* | --with-* | -without-* | --without-* | --x)
1961 case "$ac_configure_args0 " in
1962 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1965 -* ) ac_must_keep_next=true ;;
1968 as_fn_append ac_configure_args " '$ac_arg'"
1973 { ac_configure_args0=; unset ac_configure_args0;}
1974 { ac_configure_args1=; unset ac_configure_args1;}
1976 # When interrupted or exit'd, cleanup temporary files, and complete
1977 # config.log. We remove comments because anyway the quotes in there
1978 # would cause problems or look ugly.
1979 # WARNING: Use '\'' to represent an apostrophe within the trap.
1980 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1981 trap 'exit_status=$?
1982 # Save into config.log some information that might help in debugging.
1986 $as_echo "## ---------------- ##
1987 ## Cache variables. ##
1988 ## ---------------- ##"
1990 # The following way of writing the cache mishandles newlines in values,
1992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1993 eval ac_val=\$$ac_var
1997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2001 _ | IFS | as_nl) ;; #(
2002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2003 *) { eval $ac_var=; unset $ac_var;} ;;
2008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2009 *${as_nl}ac_space=\ *)
2011 "s/'\''/'\''\\\\'\'''\''/g;
2012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2022 $as_echo "## ----------------- ##
2023 ## Output variables. ##
2024 ## ----------------- ##"
2026 for ac_var in $ac_subst_vars
2028 eval ac_val=\$$ac_var
2030 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2032 $as_echo "$ac_var='\''$ac_val'\''"
2036 if test -n "$ac_subst_files"; then
2037 $as_echo "## ------------------- ##
2038 ## File substitutions. ##
2039 ## ------------------- ##"
2041 for ac_var in $ac_subst_files
2043 eval ac_val=\$$ac_var
2045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2047 $as_echo "$ac_var='\''$ac_val'\''"
2052 if test -s confdefs.h; then
2053 $as_echo "## ----------- ##
2060 test "$ac_signal" != 0 &&
2061 $as_echo "$as_me: caught signal $ac_signal"
2062 $as_echo "$as_me: exit $exit_status"
2064 rm -f core *.core core.conftest.* &&
2065 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2068 for ac_signal in 1 2 13 15; do
2069 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2073 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2074 rm -f -r conftest* confdefs.h
2076 $as_echo "/* confdefs.h */" > confdefs.h
2078 # Predefined preprocessor variables.
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_NAME "$PACKAGE_NAME"
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_STRING "$PACKAGE_STRING"
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_URL "$PACKAGE_URL"
2105 # Let the site file select an alternate cache file if it wants to.
2106 # Prefer an explicitly selected file to automatically selected ones.
2109 if test -n "$CONFIG_SITE"; then
2110 # We do not want a PATH search for config.site.
2111 case $CONFIG_SITE in #((
2112 -*) ac_site_file1=./$CONFIG_SITE;;
2113 */*) ac_site_file1=$CONFIG_SITE;;
2114 *) ac_site_file1=./$CONFIG_SITE;;
2116 elif test "x$prefix" != xNONE; then
2117 ac_site_file1=$prefix/share/config.site
2118 ac_site_file2=$prefix/etc/config.site
2120 ac_site_file1=$ac_default_prefix/share/config.site
2121 ac_site_file2=$ac_default_prefix/etc/config.site
2123 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2125 test "x$ac_site_file" = xNONE && continue
2126 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2128 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2129 sed 's/^/| /' "$ac_site_file" >&5
2131 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133 as_fn_error $? "failed to load site script $ac_site_file
2134 See \`config.log' for more details" "$LINENO" 5; }
2138 if test -r "$cache_file"; then
2139 # Some versions of bash will fail to source /dev/null (special files
2140 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2141 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2143 $as_echo "$as_me: loading cache $cache_file" >&6;}
2145 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2146 *) . "./$cache_file";;
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2151 $as_echo "$as_me: creating cache $cache_file" >&6;}
2155 # Check that the precious variables saved in the cache have kept the same
2157 ac_cache_corrupted=false
2158 for ac_var in $ac_precious_vars; do
2159 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2160 eval ac_new_set=\$ac_env_${ac_var}_set
2161 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2162 eval ac_new_val=\$ac_env_${ac_var}_value
2163 case $ac_old_set,$ac_new_set in
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2166 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2167 ac_cache_corrupted=: ;;
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2170 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2171 ac_cache_corrupted=: ;;
2174 if test "x$ac_old_val" != "x$ac_new_val"; then
2175 # differences in whitespace do not lead to failure.
2176 ac_old_val_w=`echo x $ac_old_val`
2177 ac_new_val_w=`echo x $ac_new_val`
2178 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2180 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2181 ac_cache_corrupted=:
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2184 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2185 eval $ac_var=\$ac_old_val
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2188 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2190 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2193 # Pass precious variables to config.status.
2194 if test "$ac_new_set" = set; then
2196 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2197 *) ac_arg=$ac_var=$ac_new_val ;;
2199 case " $ac_configure_args " in
2200 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2201 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2205 if $ac_cache_corrupted; then
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2209 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2210 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2212 ## -------------------- ##
2213 ## Main body of script. ##
2214 ## -------------------- ##
2217 ac_cpp='$CPP $CPPFLAGS'
2218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2224 am__api_version='1.11'
2227 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2228 if test -f "$ac_dir/install-sh"; then
2230 ac_install_sh="$ac_aux_dir/install-sh -c"
2232 elif test -f "$ac_dir/install.sh"; then
2234 ac_install_sh="$ac_aux_dir/install.sh -c"
2236 elif test -f "$ac_dir/shtool"; then
2238 ac_install_sh="$ac_aux_dir/shtool install -c"
2242 if test -z "$ac_aux_dir"; then
2243 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2246 # These three variables are undocumented and unsupported,
2247 # and are intended to be withdrawn in a future Autoconf release.
2248 # They can cause serious problems if a builder's source tree is in a directory
2249 # whose full name contains unusual characters.
2250 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2251 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2252 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2255 # Find a good install program. We prefer a C program (faster),
2256 # so one script is as good as another. But avoid the broken or
2257 # incompatible versions:
2258 # SysV /etc/install, /usr/sbin/install
2259 # SunOS /usr/etc/install
2260 # IRIX /sbin/install
2262 # AmigaOS /C/install, which installs bootblocks on floppy discs
2263 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2264 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2265 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2266 # OS/2's system install, which has a completely different semantic
2267 # ./install, which can be erroneously created by make from ./install.sh.
2268 # Reject install programs that cannot install multiple files.
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2270 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2271 if test -z "$INSTALL"; then
2272 if ${ac_cv_path_install+:} false; then :
2273 $as_echo_n "(cached) " >&6
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 test -z "$as_dir" && as_dir=.
2280 # Account for people who put trailing slashes in PATH elements.
2281 case $as_dir/ in #((
2282 ./ | .// | /[cC]/* | \
2283 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2284 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2287 # OSF1 and SCO ODT 3.0 have their own names for install.
2288 # Don't use installbsd from OSF since it installs stuff as root
2290 for ac_prog in ginstall scoinst install; do
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2293 if test $ac_prog = install &&
2294 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2295 # AIX install. It has an incompatible calling convention.
2297 elif test $ac_prog = install &&
2298 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299 # program-specific install script used by HP pwplus--don't use.
2302 rm -rf conftest.one conftest.two conftest.dir
2303 echo one > conftest.one
2304 echo two > conftest.two
2306 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2307 test -s conftest.one && test -s conftest.two &&
2308 test -s conftest.dir/conftest.one &&
2309 test -s conftest.dir/conftest.two
2311 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2324 rm -rf conftest.one conftest.two conftest.dir
2327 if test "${ac_cv_path_install+set}" = set; then
2328 INSTALL=$ac_cv_path_install
2330 # As a last resort, use the slow shell script. Don't cache a
2331 # value for INSTALL within a source directory, because that will
2332 # break other packages using the cache if that directory is
2333 # removed, or if the value is a relative name.
2334 INSTALL=$ac_install_sh
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2338 $as_echo "$INSTALL" >&6; }
2340 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2341 # It thinks the first close brace ends the variable substitution.
2342 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2344 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2346 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2349 $as_echo_n "checking whether build environment is sane... " >&6; }
2352 echo timestamp > conftest.file
2353 # Reject unsafe characters in $srcdir or the absolute working directory
2354 # name. Accept space and tab only in the latter.
2358 *[\\\"\#\$\&\'\`$am_lf]*)
2359 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2362 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2363 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2366 # Do `set' in a subshell so we don't clobber the current shell's
2367 # arguments. Must try -L first in case configure is actually a
2368 # symlink; some systems play weird games with the mod time of symlinks
2369 # (eg FreeBSD returns the mod time of the symlink's containing
2372 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2373 if test "$*" = "X"; then
2375 set X `ls -t "$srcdir/configure" conftest.file`
2378 if test "$*" != "X $srcdir/configure conftest.file" \
2379 && test "$*" != "X conftest.file $srcdir/configure"; then
2381 # If neither matched, then we have a broken ls. This can happen
2382 # if, for instance, CONFIG_SHELL is bash and it inherits a
2383 # broken ls alias from the environment. This has actually
2384 # happened. Such a system could not be considered "sane".
2385 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2386 alias in your environment" "$LINENO" 5
2389 test "$2" = conftest.file
2395 as_fn_error $? "newly created file is older than distributed files!
2396 Check your system clock" "$LINENO" 5
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2399 $as_echo "yes" >&6; }
2400 test "$program_prefix" != NONE &&
2401 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2402 # Use a double $ so make ignores it.
2403 test "$program_suffix" != NONE &&
2404 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2405 # Double any \ or $.
2406 # By default was `s,x,x', remove it if useless.
2407 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2408 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2410 # expand $ac_aux_dir to an absolute path
2411 am_aux_dir=`cd $ac_aux_dir && pwd`
2413 if test x"${MISSING+set}" != xset; then
2416 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2418 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2421 # Use eval to expand $SHELL
2422 if eval "$MISSING --run true"; then
2423 am_missing_run="$MISSING --run "
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2427 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2430 if test x"${install_sh}" != xset; then
2433 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2435 install_sh="\${SHELL} $am_aux_dir/install-sh"
2439 # Installed binaries are usually stripped using `strip' when the user
2440 # run `make install-strip'. However `strip' might not be the right
2441 # tool to use in cross-compilation environments, therefore Automake
2442 # will honor the `STRIP' environment variable to overrule this program.
2443 if test "$cross_compiling" != no; then
2444 if test -n "$ac_tool_prefix"; then
2445 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}strip; ac_word=$2
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if ${ac_cv_prog_STRIP+:} false; then :
2450 $as_echo_n "(cached) " >&6
2452 if test -n "$STRIP"; then
2453 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 STRIP=$ac_cv_prog_STRIP
2473 if test -n "$STRIP"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2475 $as_echo "$STRIP" >&6; }
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2478 $as_echo "no" >&6; }
2483 if test -z "$ac_cv_prog_STRIP"; then
2485 # Extract the first word of "strip", so it can be a program name with args.
2486 set dummy strip; ac_word=$2
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2488 $as_echo_n "checking for $ac_word... " >&6; }
2489 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2490 $as_echo_n "(cached) " >&6
2492 if test -n "$ac_ct_STRIP"; then
2493 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 ac_cv_prog_ac_ct_STRIP="strip"
2503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2513 if test -n "$ac_ct_STRIP"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2515 $as_echo "$ac_ct_STRIP" >&6; }
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518 $as_echo "no" >&6; }
2521 if test "x$ac_ct_STRIP" = x; then
2524 case $cross_compiling:$ac_tool_warned in
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2528 ac_tool_warned=yes ;;
2533 STRIP="$ac_cv_prog_STRIP"
2537 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2540 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2541 if test -z "$MKDIR_P"; then
2542 if ${ac_cv_path_mkdir+:} false; then :
2543 $as_echo_n "(cached) " >&6
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2549 test -z "$as_dir" && as_dir=.
2550 for ac_prog in mkdir gmkdir; do
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2553 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2554 'mkdir (GNU coreutils) '* | \
2555 'mkdir (coreutils) '* | \
2556 'mkdir (fileutils) '4.1*)
2557 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2567 test -d ./--version && rmdir ./--version
2568 if test "${ac_cv_path_mkdir+set}" = set; then
2569 MKDIR_P="$ac_cv_path_mkdir -p"
2571 # As a last resort, use the slow shell script. Don't cache a
2572 # value for MKDIR_P within a source directory, because that will
2573 # break other packages using the cache if that directory is
2574 # removed, or if the value is a relative name.
2575 MKDIR_P="$ac_install_sh -d"
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2579 $as_echo "$MKDIR_P" >&6; }
2583 [\\/$]* | ?:[\\/]*) ;;
2584 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2587 for ac_prog in gawk mawk nawk awk
2589 # Extract the first word of "$ac_prog", so it can be a program name with args.
2590 set dummy $ac_prog; ac_word=$2
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if ${ac_cv_prog_AWK+:} false; then :
2594 $as_echo_n "(cached) " >&6
2596 if test -n "$AWK"; then
2597 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2606 ac_cv_prog_AWK="$ac_prog"
2607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 if test -n "$AWK"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2619 $as_echo "$AWK" >&6; }
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622 $as_echo "no" >&6; }
2626 test -n "$AWK" && break
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2630 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2632 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2633 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2634 $as_echo_n "(cached) " >&6
2636 cat >conftest.make <<\_ACEOF
2639 @echo '@@@%%%=$(MAKE)=@@@%%%'
2641 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2642 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2644 eval ac_cv_prog_make_${ac_make}_set=yes;;
2646 eval ac_cv_prog_make_${ac_make}_set=no;;
2650 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2652 $as_echo "yes" >&6; }
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2657 SET_MAKE="MAKE=${MAKE-make}"
2660 rm -rf .tst 2>/dev/null
2661 mkdir .tst 2>/dev/null
2662 if test -d .tst; then
2667 rmdir .tst 2>/dev/null
2669 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2670 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2671 # is not polluted with repeated "-I."
2672 am__isrc=' -I$(srcdir)'
2673 # test to see if srcdir already configured
2674 if test -f $srcdir/config.status; then
2675 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2679 # test whether we have cygpath
2680 if test -z "$CYGPATH_W"; then
2681 if (cygpath --version) >/dev/null 2>/dev/null; then
2682 CYGPATH_W='cygpath -w'
2689 # Define the identity of the package.
2694 cat >>confdefs.h <<_ACEOF
2695 #define PACKAGE "$PACKAGE"
2699 cat >>confdefs.h <<_ACEOF
2700 #define VERSION "$VERSION"
2703 # Some tools Automake needs.
2705 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2708 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2711 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2714 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2717 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2719 # We need awk for the "check" target. The system "awk" is bad on
2721 # Always define AMTAR for backward compatibility.
2723 AMTAR=${AMTAR-"${am_missing_run}tar"}
2725 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2734 $as_echo_n "checking whether NLS is requested... " >&6; }
2735 # Check whether --enable-nls was given.
2736 if test "${enable_nls+set}" = set; then :
2737 enableval=$enable_nls; USE_NLS=$enableval
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
2743 $as_echo "$USE_NLS" >&6; }
2750 # Prepare PATH_SEPARATOR.
2751 # The user is always right.
2752 if test "${PATH_SEPARATOR+set}" != set; then
2753 echo "#! /bin/sh" >conf$$.sh
2754 echo "exit 0" >>conf$$.sh
2756 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2764 # Find out how to test for executable files. Don't use a zero-byte file,
2765 # as systems may use methods other than mode bits to determine executability.
2766 cat >conf$$.file <<_ASEOF
2770 chmod +x conf$$.file
2771 if test -x conf$$.file >/dev/null 2>&1; then
2772 ac_executable_p="test -x"
2774 ac_executable_p="test -f"
2778 # Extract the first word of "msgfmt", so it can be a program name with args.
2779 set dummy msgfmt; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_path_MSGFMT+:} false; then :
2783 $as_echo_n "(cached) " >&6
2787 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2790 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2791 for ac_dir in $PATH; do
2793 test -z "$ac_dir" && ac_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2796 echo "$as_me: trying $ac_dir/$ac_word..." >&5
2797 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
2798 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2799 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2806 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2810 MSGFMT="$ac_cv_path_MSGFMT"
2811 if test "$MSGFMT" != ":"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
2813 $as_echo "$MSGFMT" >&6; }
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2819 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2820 set dummy gmsgfmt; ac_word=$2
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if ${ac_cv_path_GMSGFMT+:} false; then :
2824 $as_echo_n "(cached) " >&6
2828 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2850 GMSGFMT=$ac_cv_path_GMSGFMT
2851 if test -n "$GMSGFMT"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
2853 $as_echo "$GMSGFMT" >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2861 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2862 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
2863 *) MSGFMT_015=$MSGFMT ;;
2866 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2867 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
2868 *) GMSGFMT_015=$GMSGFMT ;;
2873 # Prepare PATH_SEPARATOR.
2874 # The user is always right.
2875 if test "${PATH_SEPARATOR+set}" != set; then
2876 echo "#! /bin/sh" >conf$$.sh
2877 echo "exit 0" >>conf$$.sh
2879 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2887 # Find out how to test for executable files. Don't use a zero-byte file,
2888 # as systems may use methods other than mode bits to determine executability.
2889 cat >conf$$.file <<_ASEOF
2893 chmod +x conf$$.file
2894 if test -x conf$$.file >/dev/null 2>&1; then
2895 ac_executable_p="test -x"
2897 ac_executable_p="test -f"
2901 # Extract the first word of "xgettext", so it can be a program name with args.
2902 set dummy xgettext; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if ${ac_cv_path_XGETTEXT+:} false; then :
2906 $as_echo_n "(cached) " >&6
2910 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2913 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2914 for ac_dir in $PATH; do
2916 test -z "$ac_dir" && ac_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2919 echo "$as_me: trying $ac_dir/$ac_word..." >&5
2920 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
2921 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2922 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2929 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2933 XGETTEXT="$ac_cv_path_XGETTEXT"
2934 if test "$XGETTEXT" != ":"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
2936 $as_echo "$XGETTEXT" >&6; }
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2944 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2945 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
2946 *) XGETTEXT_015=$XGETTEXT ;;
2951 # Prepare PATH_SEPARATOR.
2952 # The user is always right.
2953 if test "${PATH_SEPARATOR+set}" != set; then
2954 echo "#! /bin/sh" >conf$$.sh
2955 echo "exit 0" >>conf$$.sh
2957 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2965 # Find out how to test for executable files. Don't use a zero-byte file,
2966 # as systems may use methods other than mode bits to determine executability.
2967 cat >conf$$.file <<_ASEOF
2971 chmod +x conf$$.file
2972 if test -x conf$$.file >/dev/null 2>&1; then
2973 ac_executable_p="test -x"
2975 ac_executable_p="test -f"
2979 # Extract the first word of "msgmerge", so it can be a program name with args.
2980 set dummy msgmerge; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_path_MSGMERGE+:} false; then :
2984 $as_echo_n "(cached) " >&6
2988 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2991 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2992 for ac_dir in $PATH; do
2994 test -z "$ac_dir" && ac_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2997 echo "$as_me: trying $ac_dir/$ac_word..." >&5
2998 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
2999 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3006 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3010 MSGMERGE="$ac_cv_path_MSGMERGE"
3011 if test "$MSGMERGE" != ":"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3013 $as_echo "$MSGMERGE" >&6; }
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3020 test -n "$localedir" || localedir='${datadir}/locale'
3023 ac_config_commands="$ac_config_commands po-directories"
3027 if test "X$prefix" = "XNONE"; then
3028 acl_final_prefix="$ac_default_prefix"
3030 acl_final_prefix="$prefix"
3032 if test "X$exec_prefix" = "XNONE"; then
3033 acl_final_exec_prefix='${prefix}'
3035 acl_final_exec_prefix="$exec_prefix"
3037 acl_save_prefix="$prefix"
3038 prefix="$acl_final_prefix"
3039 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3040 prefix="$acl_save_prefix"
3042 DEPDIR="${am__leading_dot}deps"
3044 ac_config_commands="$ac_config_commands depfiles"
3047 am_make=${MAKE-make}
3048 cat > confinc << 'END'
3050 @echo this is the am__doit target
3053 # If we don't find an include directive, just comment out the code.
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3055 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3059 # First try GNU make style include.
3060 echo "include confinc" > confmf
3061 # Ignore all kinds of additional output from `make'.
3062 case `$am_make -s -f confmf 2> /dev/null` in #(
3063 *the\ am__doit\ target*)
3069 # Now try BSD make style include.
3070 if test "$am__include" = "#"; then
3071 echo '.include "confinc"' > confmf
3072 case `$am_make -s -f confmf 2> /dev/null` in #(
3073 *the\ am__doit\ target*)
3074 am__include=.include
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3083 $as_echo "$_am_result" >&6; }
3084 rm -f confinc confmf
3086 # Check whether --enable-dependency-tracking was given.
3087 if test "${enable_dependency_tracking+set}" = set; then :
3088 enableval=$enable_dependency_tracking;
3091 if test "x$enable_dependency_tracking" != xno; then
3092 am_depcomp="$ac_aux_dir/depcomp"
3095 if test "x$enable_dependency_tracking" != xno; then
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109 if test -n "$ac_tool_prefix"; then
3110 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3111 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_CC+:} false; then :
3115 $as_echo_n "(cached) " >&6
3117 if test -n "$CC"; then
3118 ac_cv_prog_CC="$CC" # Let the user override the test.
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 if test -n "$CC"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140 $as_echo "$CC" >&6; }
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3148 if test -z "$ac_cv_prog_CC"; then
3150 # Extract the first word of "gcc", so it can be a program name with args.
3151 set dummy gcc; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3155 $as_echo_n "(cached) " >&6
3157 if test -n "$ac_ct_CC"; then
3158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_ac_ct_CC="gcc"
3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3178 if test -n "$ac_ct_CC"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3180 $as_echo "$ac_ct_CC" >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3186 if test "x$ac_ct_CC" = x; then
3189 case $cross_compiling:$ac_tool_warned in
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3193 ac_tool_warned=yes ;;
3201 if test -z "$CC"; then
3202 if test -n "$ac_tool_prefix"; then
3203 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3204 set dummy ${ac_tool_prefix}cc; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if ${ac_cv_prog_CC+:} false; then :
3208 $as_echo_n "(cached) " >&6
3210 if test -n "$CC"; then
3211 ac_cv_prog_CC="$CC" # Let the user override the test.
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220 ac_cv_prog_CC="${ac_tool_prefix}cc"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 if test -n "$CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3233 $as_echo "$CC" >&6; }
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3242 if test -z "$CC"; then
3243 # Extract the first word of "cc", so it can be a program name with args.
3244 set dummy cc; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if ${ac_cv_prog_CC+:} false; then :
3248 $as_echo_n "(cached) " >&6
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3262 ac_prog_rejected=yes
3266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 if test $ac_prog_rejected = yes; then
3274 # We found a bogon in the path, so make sure we never use it.
3275 set dummy $ac_cv_prog_CC
3277 if test $# != 0; then
3278 # We chose a different compiler from the bogus one.
3279 # However, it has the same basename, so the bogon will be chosen
3280 # first if we set CC to just the basename; use the full file name.
3282 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3288 if test -n "$CC"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3290 $as_echo "$CC" >&6; }
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3298 if test -z "$CC"; then
3299 if test -n "$ac_tool_prefix"; then
3300 for ac_prog in cl.exe
3302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305 $as_echo_n "checking for $ac_word... " >&6; }
3306 if ${ac_cv_prog_CC+:} false; then :
3307 $as_echo_n "(cached) " >&6
3309 if test -n "$CC"; then
3310 ac_cv_prog_CC="$CC" # Let the user override the test.
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 if test -n "$CC"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3332 $as_echo "$CC" >&6; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3339 test -n "$CC" && break
3342 if test -z "$CC"; then
3344 for ac_prog in cl.exe
3346 # Extract the first word of "$ac_prog", so it can be a program name with args.
3347 set dummy $ac_prog; ac_word=$2
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3351 $as_echo_n "(cached) " >&6
3353 if test -n "$ac_ct_CC"; then
3354 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363 ac_cv_prog_ac_ct_CC="$ac_prog"
3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3374 if test -n "$ac_ct_CC"; then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3376 $as_echo "$ac_ct_CC" >&6; }
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3383 test -n "$ac_ct_CC" && break
3386 if test "x$ac_ct_CC" = x; then
3389 case $cross_compiling:$ac_tool_warned in
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3393 ac_tool_warned=yes ;;
3402 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error $? "no acceptable C compiler found in \$PATH
3405 See \`config.log' for more details" "$LINENO" 5; }
3407 # Provide some information about the compiler.
3408 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3411 for ac_option in --version -v -V -qversion; do
3412 { { ac_try="$ac_compiler $ac_option >&5"
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418 $as_echo "$ac_try_echo"; } >&5
3419 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3421 if test -s conftest.err; then
3423 ... rest of stderr output deleted ...
3424 10q' conftest.err >conftest.er1
3425 cat conftest.er1 >&5
3427 rm -f conftest.er1 conftest.err
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3443 ac_clean_files_save=$ac_clean_files
3444 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3445 # Try to create an executable without -o first, disregard a.out.
3446 # It will help us diagnose broken compilers, and finding out an intuition
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3449 $as_echo_n "checking whether the C compiler works... " >&6; }
3450 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3452 # The possible output files:
3453 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3456 for ac_file in $ac_files
3459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3460 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3465 if { { ac_try="$ac_link_default"
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472 (eval "$ac_link_default") 2>&5
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }; then :
3476 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3477 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3478 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3479 # so that the user can short-circuit this test for compilers unknown to
3481 for ac_file in $ac_files ''
3483 test -f "$ac_file" || continue
3485 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3488 # We found the default executable, but exeext='' is most
3492 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3494 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3496 # We set ac_cv_exeext here because the later test for it is not
3497 # safe: cross compilers may not add the suffix if given an `-o'
3498 # argument, so we may need to know it at that point already.
3499 # Even if this section looks crufty: it has the advantage of
3506 test "$ac_cv_exeext" = no && ac_cv_exeext=
3511 if test -z "$ac_file"; then :
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 $as_echo "no" >&6; }
3514 $as_echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 as_fn_error 77 "C compiler cannot create executables
3520 See \`config.log' for more details" "$LINENO" 5; }
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3523 $as_echo "yes" >&6; }
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3526 $as_echo_n "checking for C compiler default output file name... " >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3528 $as_echo "$ac_file" >&6; }
3529 ac_exeext=$ac_cv_exeext
3531 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3532 ac_clean_files=$ac_clean_files_save
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3534 $as_echo_n "checking for suffix of executables... " >&6; }
3535 if { { ac_try="$ac_link"
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541 $as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_link") 2>&5
3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }; then :
3546 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3547 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3548 # work properly (i.e., refer to `conftest.exe'), while it won't with
3550 for ac_file in conftest.exe conftest conftest.*; do
3551 test -f "$ac_file" || continue
3553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3554 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3562 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3563 See \`config.log' for more details" "$LINENO" 5; }
3565 rm -f conftest conftest$ac_cv_exeext
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3567 $as_echo "$ac_cv_exeext" >&6; }
3569 rm -f conftest.$ac_ext
3570 EXEEXT=$ac_cv_exeext
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3578 FILE *f = fopen ("conftest.out", "w");
3579 return ferror (f) || fclose (f) != 0;
3585 ac_clean_files="$ac_clean_files conftest.out"
3586 # Check that the compiler produces executables we can run. If not, either
3587 # the compiler is broken, or we cross compile.
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3589 $as_echo_n "checking whether we are cross compiling... " >&6; }
3590 if test "$cross_compiling" != yes; then
3591 { { ac_try="$ac_link"
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597 $as_echo "$ac_try_echo"; } >&5
3598 (eval "$ac_link") 2>&5
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }
3602 if { ac_try='./conftest$ac_cv_exeext'
3603 { { case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608 $as_echo "$ac_try_echo"; } >&5
3609 (eval "$ac_try") 2>&5
3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612 test $ac_status = 0; }; }; then
3615 if test "$cross_compiling" = maybe; then
3618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620 as_fn_error $? "cannot run C compiled programs.
3621 If you meant to cross compile, use \`--host'.
3622 See \`config.log' for more details" "$LINENO" 5; }
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3627 $as_echo "$cross_compiling" >&6; }
3629 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3630 ac_clean_files=$ac_clean_files_save
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3632 $as_echo_n "checking for suffix of object files... " >&6; }
3633 if ${ac_cv_objext+:} false; then :
3634 $as_echo_n "(cached) " >&6
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3647 rm -f conftest.o conftest.obj
3648 if { { ac_try="$ac_compile"
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654 $as_echo "$ac_try_echo"; } >&5
3655 (eval "$ac_compile") 2>&5
3657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658 test $ac_status = 0; }; then :
3659 for ac_file in conftest.o conftest.obj conftest.*; do
3660 test -f "$ac_file" || continue;
3662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3663 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3668 $as_echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3673 as_fn_error $? "cannot compute suffix of object files: cannot compile
3674 See \`config.log' for more details" "$LINENO" 5; }
3676 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3679 $as_echo "$ac_cv_objext" >&6; }
3680 OBJEXT=$ac_cv_objext
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3683 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3684 if ${ac_cv_c_compiler_gnu+:} false; then :
3685 $as_echo_n "(cached) " >&6
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3701 if ac_fn_c_try_compile "$LINENO"; then :
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3711 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3712 if test $ac_compiler_gnu = yes; then
3717 ac_test_CFLAGS=${CFLAGS+set}
3718 ac_save_CFLAGS=$CFLAGS
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3720 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3721 if ${ac_cv_prog_cc_g+:} false; then :
3722 $as_echo_n "(cached) " >&6
3724 ac_save_c_werror_flag=$ac_c_werror_flag
3725 ac_c_werror_flag=yes
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3739 if ac_fn_c_try_compile "$LINENO"; then :
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3754 if ac_fn_c_try_compile "$LINENO"; then :
3757 ac_c_werror_flag=$ac_save_c_werror_flag
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3770 if ac_fn_c_try_compile "$LINENO"; then :
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 ac_c_werror_flag=$ac_save_c_werror_flag
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3781 $as_echo "$ac_cv_prog_cc_g" >&6; }
3782 if test "$ac_test_CFLAGS" = set; then
3783 CFLAGS=$ac_save_CFLAGS
3784 elif test $ac_cv_prog_cc_g = yes; then
3785 if test "$GCC" = yes; then
3791 if test "$GCC" = yes; then
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3798 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3799 if ${ac_cv_prog_cc_c89+:} false; then :
3800 $as_echo_n "(cached) " >&6
3802 ac_cv_prog_cc_c89=no
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3808 #include <sys/types.h>
3809 #include <sys/stat.h>
3810 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3811 struct buf { int x; };
3812 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3813 static char *e (p, i)
3819 static char *f (char * (*g) (char **, int), char **p, ...)
3824 s = g (p, va_arg (v,int));
3829 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3830 function prototypes and stuff, but not '\xHH' hex character constants.
3831 These don't provoke an error unfortunately, instead are silently treated
3832 as 'x'. The following induces an error, until -std is added to get
3833 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3834 array size at least. It's necessary to write '\x00'==0 to get something
3835 that's true only with -std. */
3836 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3838 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3839 inside strings and character constants. */
3841 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3843 int test (int i, double x);
3844 struct s1 {int (*f) (int a);};
3845 struct s2 {int (*f) (double a);};
3846 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3852 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3857 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3858 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3860 CC="$ac_save_CC $ac_arg"
3861 if ac_fn_c_try_compile "$LINENO"; then :
3862 ac_cv_prog_cc_c89=$ac_arg
3864 rm -f core conftest.err conftest.$ac_objext
3865 test "x$ac_cv_prog_cc_c89" != "xno" && break
3867 rm -f conftest.$ac_ext
3872 case "x$ac_cv_prog_cc_c89" in
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3875 $as_echo "none needed" >&6; } ;;
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3878 $as_echo "unsupported" >&6; } ;;
3880 CC="$CC $ac_cv_prog_cc_c89"
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3882 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3884 if test "x$ac_cv_prog_cc_c89" != xno; then :
3889 ac_cpp='$CPP $CPPFLAGS'
3890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894 depcc="$CC" am_compiler_list=
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3897 $as_echo_n "checking dependency style of $depcc... " >&6; }
3898 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3899 $as_echo_n "(cached) " >&6
3901 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3902 # We make a subdir and do the tests there. Otherwise we can end up
3903 # making bogus files that we don't know about and never remove. For
3904 # instance it was reported that on HP-UX the gcc test will end up
3905 # making a dummy file named `D' -- because `-MD' means `put the output
3908 # Copy depcomp to subdir because otherwise we won't find it if we're
3909 # using a relative directory.
3910 cp "$am_depcomp" conftest.dir
3912 # We will build objects and dependencies in a subdirectory because
3913 # it helps to detect inapplicable dependency modes. For instance
3914 # both Tru64's cc and ICC support -MD to output dependencies as a
3915 # side effect of compilation, but ICC will put the dependencies in
3916 # the current directory while Tru64 will put them in the object
3920 am_cv_CC_dependencies_compiler_type=none
3921 if test "$am_compiler_list" = ""; then
3922 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3925 case " $depcc " in #(
3926 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3929 for depmode in $am_compiler_list; do
3930 # Setup a source with many dependencies, because some compilers
3931 # like to wrap large dependency lists on column 80 (with \), and
3932 # we should not choose a depcomp mode which is confused by this.
3934 # We need to recreate these files for each test, as the compiler may
3935 # overwrite some of them when testing with obscure command lines.
3936 # This happens at least with the AIX C compiler.
3938 for i in 1 2 3 4 5 6; do
3939 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3940 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3941 # Solaris 8's {/usr,}/bin/sh.
3942 touch sub/conftst$i.h
3944 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3946 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3947 # mode. It turns out that the SunPro C++ compiler does not properly
3948 # handle `-M -o', and we need to detect this. Also, some Intel
3949 # versions had trouble with output in subdirs
3950 am__obj=sub/conftest.${OBJEXT-o}
3951 am__minus_obj="-o $am__obj"
3954 # This depmode causes a compiler race in universal mode.
3955 test "$am__universal" = false || continue
3958 # after this tag, mechanisms are not by side-effect, so they'll
3959 # only be used when explicitly requested
3960 if test "x$enable_dependency_tracking" = xyes; then
3966 msvisualcpp | msvcmsys)
3967 # This compiler won't grok `-c -o', but also, the minuso test has
3968 # not run yet. These depmodes are late enough in the game, and
3969 # so weak that their functioning should not be impacted.
3970 am__obj=conftest.${OBJEXT-o}
3975 if depmode=$depmode \
3976 source=sub/conftest.c object=$am__obj \
3977 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3978 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3979 >/dev/null 2>conftest.err &&
3980 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3981 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3982 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3983 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3984 # icc doesn't choke on unknown options, it will just issue warnings
3985 # or remarks (even with -Werror). So we grep stderr for any message
3986 # that says an option was ignored or not supported.
3987 # When given -MP, icc 7.0 and 7.1 complain thusly:
3988 # icc: Command line warning: ignoring option '-M'; no argument required
3989 # The diagnosis changed in icc 8.0:
3990 # icc: Command line remark: option '-MP' not supported
3991 if (grep 'ignoring option' conftest.err ||
3992 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3993 am_cv_CC_dependencies_compiler_type=$depmode
4002 am_cv_CC_dependencies_compiler_type=none
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4007 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4008 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4011 test "x$enable_dependency_tracking" != xno \
4012 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4014 am__fastdepCC_FALSE='#'
4016 am__fastdepCC_TRUE='#'
4017 am__fastdepCC_FALSE=
4021 # Make sure we can run config.sub.
4022 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4023 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4026 $as_echo_n "checking build system type... " >&6; }
4027 if ${ac_cv_build+:} false; then :
4028 $as_echo_n "(cached) " >&6
4030 ac_build_alias=$build_alias
4031 test "x$ac_build_alias" = x &&
4032 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4033 test "x$ac_build_alias" = x &&
4034 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4035 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4036 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4040 $as_echo "$ac_cv_build" >&6; }
4041 case $ac_cv_build in
4043 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4046 ac_save_IFS=$IFS; IFS='-'
4052 # Remember, the first character of IFS is used to create $*,
4053 # except with old shells:
4056 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4060 $as_echo_n "checking host system type... " >&6; }
4061 if ${ac_cv_host+:} false; then :
4062 $as_echo_n "(cached) " >&6
4064 if test "x$host_alias" = x; then
4065 ac_cv_host=$ac_cv_build
4067 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4068 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4073 $as_echo "$ac_cv_host" >&6; }
4076 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4079 ac_save_IFS=$IFS; IFS='-'
4085 # Remember, the first character of IFS is used to create $*,
4086 # except with old shells:
4089 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4093 # Check whether --with-gnu-ld was given.
4094 if test "${with_gnu_ld+set}" = set; then :
4095 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4100 # Prepare PATH_SEPARATOR.
4101 # The user is always right.
4102 if test "${PATH_SEPARATOR+set}" != set; then
4103 echo "#! /bin/sh" >conf$$.sh
4104 echo "exit 0" >>conf$$.sh
4106 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4114 if test "$GCC" = yes; then
4115 # Check if gcc -print-prog-name=ld gives a path.
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4117 $as_echo_n "checking for ld used by GCC... " >&6; }
4120 # gcc leaves a trailing carriage return which upsets mingw
4121 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4123 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4126 # Accept absolute paths.
4127 [\\/]* | [A-Za-z]:[\\/]*)
4128 re_direlt='/[^/][^/]*/\.\./'
4129 # Canonicalize the path of ld
4130 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4131 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4132 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4134 test -z "$LD" && LD="$ac_prog"
4137 # If it fails, then pretend we aren't using GCC.
4141 # If it is relative, then search for the first ld in PATH.
4145 elif test "$with_gnu_ld" = yes; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4147 $as_echo_n "checking for GNU ld... " >&6; }
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4150 $as_echo_n "checking for non-GNU ld... " >&6; }
4152 if ${acl_cv_path_LD+:} false; then :
4153 $as_echo_n "(cached) " >&6
4155 if test -z "$LD"; then
4156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4157 for ac_dir in $PATH; do
4158 test -z "$ac_dir" && ac_dir=.
4159 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4160 acl_cv_path_LD="$ac_dir/$ac_prog"
4161 # Check to see if the program is GNU ld. I'd rather use --version,
4162 # but apparently some GNU ld's only accept -v.
4163 # Break only if it was the GNU/non-GNU ld that we prefer.
4164 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4165 *GNU* | *'with BFD'*)
4166 test "$with_gnu_ld" != no && break ;;
4168 test "$with_gnu_ld" != yes && break ;;
4174 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4178 LD="$acl_cv_path_LD"
4179 if test -n "$LD"; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4181 $as_echo "$LD" >&6; }
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4186 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4188 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4189 if ${acl_cv_prog_gnu_ld+:} false; then :
4190 $as_echo_n "(cached) " >&6
4192 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4193 case `$LD -v 2>&1 </dev/null` in
4194 *GNU* | *'with BFD'*)
4195 acl_cv_prog_gnu_ld=yes ;;
4197 acl_cv_prog_gnu_ld=no ;;
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4201 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4202 with_gnu_ld=$acl_cv_prog_gnu_ld
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4208 $as_echo_n "checking for shared library run path origin... " >&6; }
4209 if ${acl_cv_rpath+:} false; then :
4210 $as_echo_n "(cached) " >&6
4213 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4214 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4221 $as_echo "$acl_cv_rpath" >&6; }
4223 libext="$acl_cv_libext"
4224 shlibext="$acl_cv_shlibext"
4225 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4226 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4227 hardcode_direct="$acl_cv_hardcode_direct"
4228 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4229 # Check whether --enable-rpath was given.
4230 if test "${enable_rpath+set}" = set; then :
4231 enableval=$enable_rpath; :
4239 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4240 if test -n "$searchpath"; then
4241 acl_save_IFS="${IFS= }"; IFS=":"
4242 for searchdir in $searchpath; do
4243 if test -d "$searchdir"; then
4244 case "$searchdir" in
4245 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4246 *) searchdir=`cd "$searchdir" && pwd`
4247 case "$searchdir" in
4248 */lib64 ) acl_libdirstem=lib64 ;;
4265 acl_save_prefix="$prefix"
4266 prefix="$acl_final_prefix"
4267 acl_save_exec_prefix="$exec_prefix"
4268 exec_prefix="$acl_final_exec_prefix"
4270 eval additional_includedir=\"$includedir\"
4271 eval additional_libdir=\"$libdir\"
4273 exec_prefix="$acl_save_exec_prefix"
4274 prefix="$acl_save_prefix"
4277 # Check whether --with-libiconv-prefix was given.
4278 if test "${with_libiconv_prefix+set}" = set; then :
4279 withval=$with_libiconv_prefix;
4280 if test "X$withval" = "Xno"; then
4283 if test "X$withval" = "X"; then
4285 acl_save_prefix="$prefix"
4286 prefix="$acl_final_prefix"
4287 acl_save_exec_prefix="$exec_prefix"
4288 exec_prefix="$acl_final_exec_prefix"
4290 eval additional_includedir=\"$includedir\"
4291 eval additional_libdir=\"$libdir\"
4293 exec_prefix="$acl_save_exec_prefix"
4294 prefix="$acl_save_prefix"
4297 additional_includedir="$withval/include"
4298 additional_libdir="$withval/$acl_libdirstem"
4309 names_already_handled=
4310 names_next_round='iconv '
4311 while test -n "$names_next_round"; do
4312 names_this_round="$names_next_round"
4314 for name in $names_this_round; do
4316 for n in $names_already_handled; do
4317 if test "$n" = "$name"; then
4322 if test -z "$already_handled"; then
4323 names_already_handled="$names_already_handled $name"
4324 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4325 eval value=\"\$HAVE_LIB$uppername\"
4326 if test -n "$value"; then
4327 if test "$value" = yes; then
4328 eval value=\"\$LIB$uppername\"
4329 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4330 eval value=\"\$LTLIB$uppername\"
4331 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4340 if test $use_additional = yes; then
4341 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4342 found_dir="$additional_libdir"
4343 found_so="$additional_libdir/lib$name.$shlibext"
4344 if test -f "$additional_libdir/lib$name.la"; then
4345 found_la="$additional_libdir/lib$name.la"
4348 if test -f "$additional_libdir/lib$name.$libext"; then
4349 found_dir="$additional_libdir"
4350 found_a="$additional_libdir/lib$name.$libext"
4351 if test -f "$additional_libdir/lib$name.la"; then
4352 found_la="$additional_libdir/lib$name.la"
4357 if test "X$found_dir" = "X"; then
4358 for x in $LDFLAGS $LTLIBICONV; do
4360 acl_save_prefix="$prefix"
4361 prefix="$acl_final_prefix"
4362 acl_save_exec_prefix="$exec_prefix"
4363 exec_prefix="$acl_final_exec_prefix"
4365 exec_prefix="$acl_save_exec_prefix"
4366 prefix="$acl_save_prefix"
4370 dir=`echo "X$x" | sed -e 's/^X-L//'`
4371 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4373 found_so="$dir/lib$name.$shlibext"
4374 if test -f "$dir/lib$name.la"; then
4375 found_la="$dir/lib$name.la"
4378 if test -f "$dir/lib$name.$libext"; then
4380 found_a="$dir/lib$name.$libext"
4381 if test -f "$dir/lib$name.la"; then
4382 found_la="$dir/lib$name.la"
4388 if test "X$found_dir" != "X"; then
4393 if test "X$found_dir" != "X"; then
4394 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4395 if test "X$found_so" != "X"; then
4396 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
4397 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4400 for x in $ltrpathdirs; do
4401 if test "X$x" = "X$found_dir"; then
4406 if test -z "$haveit"; then
4407 ltrpathdirs="$ltrpathdirs $found_dir"
4409 if test "$hardcode_direct" = yes; then
4410 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4412 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4413 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4415 for x in $rpathdirs; do
4416 if test "X$x" = "X$found_dir"; then
4421 if test -z "$haveit"; then
4422 rpathdirs="$rpathdirs $found_dir"
4426 for x in $LDFLAGS $LIBICONV; do
4428 acl_save_prefix="$prefix"
4429 prefix="$acl_final_prefix"
4430 acl_save_exec_prefix="$exec_prefix"
4431 exec_prefix="$acl_final_exec_prefix"
4433 exec_prefix="$acl_save_exec_prefix"
4434 prefix="$acl_save_prefix"
4436 if test "X$x" = "X-L$found_dir"; then
4441 if test -z "$haveit"; then
4442 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4444 if test "$hardcode_minus_L" != no; then
4445 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4447 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4453 if test "X$found_a" != "X"; then
4454 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4456 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4459 additional_includedir=
4460 case "$found_dir" in
4461 */$acl_libdirstem | */$acl_libdirstem/)
4462 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4463 additional_includedir="$basedir/include"
4466 if test "X$additional_includedir" != "X"; then
4467 if test "X$additional_includedir" != "X/usr/include"; then
4469 if test "X$additional_includedir" = "X/usr/local/include"; then
4470 if test -n "$GCC"; then
4472 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4476 if test -z "$haveit"; then
4477 for x in $CPPFLAGS $INCICONV; do
4479 acl_save_prefix="$prefix"
4480 prefix="$acl_final_prefix"
4481 acl_save_exec_prefix="$exec_prefix"
4482 exec_prefix="$acl_final_exec_prefix"
4484 exec_prefix="$acl_save_exec_prefix"
4485 prefix="$acl_save_prefix"
4487 if test "X$x" = "X-I$additional_includedir"; then
4492 if test -z "$haveit"; then
4493 if test -d "$additional_includedir"; then
4494 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4500 if test -n "$found_la"; then
4501 save_libdir="$libdir"
4503 */* | *\\*) . "$found_la" ;;
4504 *) . "./$found_la" ;;
4506 libdir="$save_libdir"
4507 for dep in $dependency_libs; do
4510 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4511 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
4513 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
4514 if test -n "$GCC"; then
4516 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4520 if test -z "$haveit"; then
4522 for x in $LDFLAGS $LIBICONV; do
4524 acl_save_prefix="$prefix"
4525 prefix="$acl_final_prefix"
4526 acl_save_exec_prefix="$exec_prefix"
4527 exec_prefix="$acl_final_exec_prefix"
4529 exec_prefix="$acl_save_exec_prefix"
4530 prefix="$acl_save_prefix"
4532 if test "X$x" = "X-L$additional_libdir"; then
4537 if test -z "$haveit"; then
4538 if test -d "$additional_libdir"; then
4539 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4543 for x in $LDFLAGS $LTLIBICONV; do
4545 acl_save_prefix="$prefix"
4546 prefix="$acl_final_prefix"
4547 acl_save_exec_prefix="$exec_prefix"
4548 exec_prefix="$acl_final_exec_prefix"
4550 exec_prefix="$acl_save_exec_prefix"
4551 prefix="$acl_save_prefix"
4553 if test "X$x" = "X-L$additional_libdir"; then
4558 if test -z "$haveit"; then
4559 if test -d "$additional_libdir"; then
4560 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4567 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4568 if test "$enable_rpath" != no; then
4570 for x in $rpathdirs; do
4571 if test "X$x" = "X$dir"; then
4576 if test -z "$haveit"; then
4577 rpathdirs="$rpathdirs $dir"
4580 for x in $ltrpathdirs; do
4581 if test "X$x" = "X$dir"; then
4586 if test -z "$haveit"; then
4587 ltrpathdirs="$ltrpathdirs $dir"
4592 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4595 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4598 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4599 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4605 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4606 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4612 if test "X$rpathdirs" != "X"; then
4613 if test -n "$hardcode_libdir_separator"; then
4615 for found_dir in $rpathdirs; do
4616 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4618 acl_save_libdir="$libdir"
4620 eval flag=\"$hardcode_libdir_flag_spec\"
4621 libdir="$acl_save_libdir"
4622 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4624 for found_dir in $rpathdirs; do
4625 acl_save_libdir="$libdir"
4627 eval flag=\"$hardcode_libdir_flag_spec\"
4628 libdir="$acl_save_libdir"
4629 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4633 if test "X$ltrpathdirs" != "X"; then
4634 for found_dir in $ltrpathdirs; do
4635 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
4658 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
4659 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
4660 $as_echo_n "(cached) " >&6
4662 gt_save_LIBS="$LIBS"
4663 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 #include <CoreFoundation/CFPreferences.h>
4670 CFPreferencesCopyAppValue(NULL, NULL)
4675 if ac_fn_c_try_link "$LINENO"; then :
4676 gt_cv_func_CFPreferencesCopyAppValue=yes
4678 gt_cv_func_CFPreferencesCopyAppValue=no
4680 rm -f core conftest.err conftest.$ac_objext \
4681 conftest$ac_exeext conftest.$ac_ext
4682 LIBS="$gt_save_LIBS"
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
4685 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
4686 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
4688 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
4692 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
4693 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
4694 $as_echo_n "(cached) " >&6
4696 gt_save_LIBS="$LIBS"
4697 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4700 #include <CoreFoundation/CFLocale.h>
4704 CFLocaleCopyCurrent();
4709 if ac_fn_c_try_link "$LINENO"; then :
4710 gt_cv_func_CFLocaleCopyCurrent=yes
4712 gt_cv_func_CFLocaleCopyCurrent=no
4714 rm -f core conftest.err conftest.$ac_objext \
4715 conftest$ac_exeext conftest.$ac_ext
4716 LIBS="$gt_save_LIBS"
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
4719 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
4720 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4722 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
4726 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4727 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
4739 if test "$USE_NLS" = "yes"; then
4740 gt_use_preinstalled_gnugettext=no
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
4748 $as_echo_n "checking for GNU gettext in libc... " >&6; }
4749 if ${gt_cv_func_gnugettext1_libc+:} false; then :
4750 $as_echo_n "(cached) " >&6
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754 #include <libintl.h>
4755 extern int _nl_msg_cat_cntr;
4756 extern int *_nl_domain_bindings;
4760 bindtextdomain ("", "");
4761 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
4766 if ac_fn_c_try_link "$LINENO"; then :
4767 gt_cv_func_gnugettext1_libc=yes
4769 gt_cv_func_gnugettext1_libc=no
4771 rm -f core conftest.err conftest.$ac_objext \
4772 conftest$ac_exeext conftest.$ac_ext
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
4775 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
4777 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4783 am_save_CPPFLAGS="$CPPFLAGS"
4785 for element in $INCICONV; do
4787 for x in $CPPFLAGS; do
4789 acl_save_prefix="$prefix"
4790 prefix="$acl_final_prefix"
4791 acl_save_exec_prefix="$exec_prefix"
4792 exec_prefix="$acl_final_exec_prefix"
4794 exec_prefix="$acl_save_exec_prefix"
4795 prefix="$acl_save_prefix"
4797 if test "X$x" = "X$element"; then
4802 if test -z "$haveit"; then
4803 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
4809 $as_echo_n "checking for iconv... " >&6; }
4810 if ${am_cv_func_iconv+:} false; then :
4811 $as_echo_n "(cached) " >&6
4814 am_cv_func_iconv="no, consider installing GNU libiconv"
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4823 iconv_t cd = iconv_open("","");
4824 iconv(cd,NULL,NULL,NULL,NULL);
4830 if ac_fn_c_try_link "$LINENO"; then :
4831 am_cv_func_iconv=yes
4833 rm -f core conftest.err conftest.$ac_objext \
4834 conftest$ac_exeext conftest.$ac_ext
4835 if test "$am_cv_func_iconv" != yes; then
4836 am_save_LIBS="$LIBS"
4837 LIBS="$LIBS $LIBICONV"
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4845 iconv_t cd = iconv_open("","");
4846 iconv(cd,NULL,NULL,NULL,NULL);
4852 if ac_fn_c_try_link "$LINENO"; then :
4854 am_cv_func_iconv=yes
4856 rm -f core conftest.err conftest.$ac_objext \
4857 conftest$ac_exeext conftest.$ac_ext
4858 LIBS="$am_save_LIBS"
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
4863 $as_echo "$am_cv_func_iconv" >&6; }
4864 if test "$am_cv_func_iconv" = yes; then
4866 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
4869 if test "$am_cv_lib_iconv" = yes; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
4871 $as_echo_n "checking how to link with libiconv... " >&6; }
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
4873 $as_echo "$LIBICONV" >&6; }
4875 CPPFLAGS="$am_save_CPPFLAGS"
4888 acl_save_prefix="$prefix"
4889 prefix="$acl_final_prefix"
4890 acl_save_exec_prefix="$exec_prefix"
4891 exec_prefix="$acl_final_exec_prefix"
4893 eval additional_includedir=\"$includedir\"
4894 eval additional_libdir=\"$libdir\"
4896 exec_prefix="$acl_save_exec_prefix"
4897 prefix="$acl_save_prefix"
4900 # Check whether --with-libintl-prefix was given.
4901 if test "${with_libintl_prefix+set}" = set; then :
4902 withval=$with_libintl_prefix;
4903 if test "X$withval" = "Xno"; then
4906 if test "X$withval" = "X"; then
4908 acl_save_prefix="$prefix"
4909 prefix="$acl_final_prefix"
4910 acl_save_exec_prefix="$exec_prefix"
4911 exec_prefix="$acl_final_exec_prefix"
4913 eval additional_includedir=\"$includedir\"
4914 eval additional_libdir=\"$libdir\"
4916 exec_prefix="$acl_save_exec_prefix"
4917 prefix="$acl_save_prefix"
4920 additional_includedir="$withval/include"
4921 additional_libdir="$withval/$acl_libdirstem"
4932 names_already_handled=
4933 names_next_round='intl '
4934 while test -n "$names_next_round"; do
4935 names_this_round="$names_next_round"
4937 for name in $names_this_round; do
4939 for n in $names_already_handled; do
4940 if test "$n" = "$name"; then
4945 if test -z "$already_handled"; then
4946 names_already_handled="$names_already_handled $name"
4947 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4948 eval value=\"\$HAVE_LIB$uppername\"
4949 if test -n "$value"; then
4950 if test "$value" = yes; then
4951 eval value=\"\$LIB$uppername\"
4952 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4953 eval value=\"\$LTLIB$uppername\"
4954 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4963 if test $use_additional = yes; then
4964 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4965 found_dir="$additional_libdir"
4966 found_so="$additional_libdir/lib$name.$shlibext"
4967 if test -f "$additional_libdir/lib$name.la"; then
4968 found_la="$additional_libdir/lib$name.la"
4971 if test -f "$additional_libdir/lib$name.$libext"; then
4972 found_dir="$additional_libdir"
4973 found_a="$additional_libdir/lib$name.$libext"
4974 if test -f "$additional_libdir/lib$name.la"; then
4975 found_la="$additional_libdir/lib$name.la"
4980 if test "X$found_dir" = "X"; then
4981 for x in $LDFLAGS $LTLIBINTL; do
4983 acl_save_prefix="$prefix"
4984 prefix="$acl_final_prefix"
4985 acl_save_exec_prefix="$exec_prefix"
4986 exec_prefix="$acl_final_exec_prefix"
4988 exec_prefix="$acl_save_exec_prefix"
4989 prefix="$acl_save_prefix"
4993 dir=`echo "X$x" | sed -e 's/^X-L//'`
4994 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4996 found_so="$dir/lib$name.$shlibext"
4997 if test -f "$dir/lib$name.la"; then
4998 found_la="$dir/lib$name.la"
5001 if test -f "$dir/lib$name.$libext"; then
5003 found_a="$dir/lib$name.$libext"
5004 if test -f "$dir/lib$name.la"; then
5005 found_la="$dir/lib$name.la"
5011 if test "X$found_dir" != "X"; then
5016 if test "X$found_dir" != "X"; then
5017 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5018 if test "X$found_so" != "X"; then
5019 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5020 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5023 for x in $ltrpathdirs; do
5024 if test "X$x" = "X$found_dir"; then
5029 if test -z "$haveit"; then
5030 ltrpathdirs="$ltrpathdirs $found_dir"
5032 if test "$hardcode_direct" = yes; then
5033 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5035 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5036 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5038 for x in $rpathdirs; do
5039 if test "X$x" = "X$found_dir"; then
5044 if test -z "$haveit"; then
5045 rpathdirs="$rpathdirs $found_dir"
5049 for x in $LDFLAGS $LIBINTL; do
5051 acl_save_prefix="$prefix"
5052 prefix="$acl_final_prefix"
5053 acl_save_exec_prefix="$exec_prefix"
5054 exec_prefix="$acl_final_exec_prefix"
5056 exec_prefix="$acl_save_exec_prefix"
5057 prefix="$acl_save_prefix"
5059 if test "X$x" = "X-L$found_dir"; then
5064 if test -z "$haveit"; then
5065 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5067 if test "$hardcode_minus_L" != no; then
5068 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5070 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5076 if test "X$found_a" != "X"; then
5077 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5079 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5082 additional_includedir=
5083 case "$found_dir" in
5084 */$acl_libdirstem | */$acl_libdirstem/)
5085 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5086 additional_includedir="$basedir/include"
5089 if test "X$additional_includedir" != "X"; then
5090 if test "X$additional_includedir" != "X/usr/include"; then
5092 if test "X$additional_includedir" = "X/usr/local/include"; then
5093 if test -n "$GCC"; then
5095 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5099 if test -z "$haveit"; then
5100 for x in $CPPFLAGS $INCINTL; do
5102 acl_save_prefix="$prefix"
5103 prefix="$acl_final_prefix"
5104 acl_save_exec_prefix="$exec_prefix"
5105 exec_prefix="$acl_final_exec_prefix"
5107 exec_prefix="$acl_save_exec_prefix"
5108 prefix="$acl_save_prefix"
5110 if test "X$x" = "X-I$additional_includedir"; then
5115 if test -z "$haveit"; then
5116 if test -d "$additional_includedir"; then
5117 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5123 if test -n "$found_la"; then
5124 save_libdir="$libdir"
5126 */* | *\\*) . "$found_la" ;;
5127 *) . "./$found_la" ;;
5129 libdir="$save_libdir"
5130 for dep in $dependency_libs; do
5133 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5134 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5136 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5137 if test -n "$GCC"; then
5139 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5143 if test -z "$haveit"; then
5145 for x in $LDFLAGS $LIBINTL; do
5147 acl_save_prefix="$prefix"
5148 prefix="$acl_final_prefix"
5149 acl_save_exec_prefix="$exec_prefix"
5150 exec_prefix="$acl_final_exec_prefix"
5152 exec_prefix="$acl_save_exec_prefix"
5153 prefix="$acl_save_prefix"
5155 if test "X$x" = "X-L$additional_libdir"; then
5160 if test -z "$haveit"; then
5161 if test -d "$additional_libdir"; then
5162 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5166 for x in $LDFLAGS $LTLIBINTL; do
5168 acl_save_prefix="$prefix"
5169 prefix="$acl_final_prefix"
5170 acl_save_exec_prefix="$exec_prefix"
5171 exec_prefix="$acl_final_exec_prefix"
5173 exec_prefix="$acl_save_exec_prefix"
5174 prefix="$acl_save_prefix"
5176 if test "X$x" = "X-L$additional_libdir"; then
5181 if test -z "$haveit"; then
5182 if test -d "$additional_libdir"; then
5183 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5190 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5191 if test "$enable_rpath" != no; then
5193 for x in $rpathdirs; do
5194 if test "X$x" = "X$dir"; then
5199 if test -z "$haveit"; then
5200 rpathdirs="$rpathdirs $dir"
5203 for x in $ltrpathdirs; do
5204 if test "X$x" = "X$dir"; then
5209 if test -z "$haveit"; then
5210 ltrpathdirs="$ltrpathdirs $dir"
5215 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5218 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5221 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5222 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5228 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5229 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5235 if test "X$rpathdirs" != "X"; then
5236 if test -n "$hardcode_libdir_separator"; then
5238 for found_dir in $rpathdirs; do
5239 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5241 acl_save_libdir="$libdir"
5243 eval flag=\"$hardcode_libdir_flag_spec\"
5244 libdir="$acl_save_libdir"
5245 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5247 for found_dir in $rpathdirs; do
5248 acl_save_libdir="$libdir"
5250 eval flag=\"$hardcode_libdir_flag_spec\"
5251 libdir="$acl_save_libdir"
5252 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5256 if test "X$ltrpathdirs" != "X"; then
5257 for found_dir in $ltrpathdirs; do
5258 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5263 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
5264 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
5265 $as_echo_n "(cached) " >&6
5267 gt_save_CPPFLAGS="$CPPFLAGS"
5268 CPPFLAGS="$CPPFLAGS $INCINTL"
5269 gt_save_LIBS="$LIBS"
5270 LIBS="$LIBS $LIBINTL"
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5273 #include <libintl.h>
5274 extern int _nl_msg_cat_cntr;
5279 const char *_nl_expand_alias (const char *);
5283 bindtextdomain ("", "");
5284 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5289 if ac_fn_c_try_link "$LINENO"; then :
5290 gt_cv_func_gnugettext1_libintl=yes
5292 gt_cv_func_gnugettext1_libintl=no
5294 rm -f core conftest.err conftest.$ac_objext \
5295 conftest$ac_exeext conftest.$ac_ext
5296 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5297 LIBS="$LIBS $LIBICONV"
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300 #include <libintl.h>
5301 extern int _nl_msg_cat_cntr;
5306 const char *_nl_expand_alias (const char *);
5310 bindtextdomain ("", "");
5311 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5316 if ac_fn_c_try_link "$LINENO"; then :
5317 LIBINTL="$LIBINTL $LIBICONV"
5318 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5319 gt_cv_func_gnugettext1_libintl=yes
5322 rm -f core conftest.err conftest.$ac_objext \
5323 conftest$ac_exeext conftest.$ac_ext
5325 CPPFLAGS="$gt_save_CPPFLAGS"
5326 LIBS="$gt_save_LIBS"
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
5329 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
5332 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5333 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5334 && test "$PACKAGE" != gettext-runtime \
5335 && test "$PACKAGE" != gettext-tools; }; then
5336 gt_use_preinstalled_gnugettext=yes
5345 if test -n "$INTL_MACOSX_LIBS"; then
5346 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5347 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5348 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
5349 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
5353 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5354 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5356 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
5364 $as_echo_n "checking whether to use NLS... " >&6; }
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5366 $as_echo "$USE_NLS" >&6; }
5367 if test "$USE_NLS" = "yes"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
5369 $as_echo_n "checking where the gettext function comes from... " >&6; }
5370 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5371 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5372 gt_source="external libintl"
5377 gt_source="included intl directory"
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
5380 $as_echo "$gt_source" >&6; }
5383 if test "$USE_NLS" = "yes"; then
5385 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5386 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
5388 $as_echo_n "checking how to link with libintl... " >&6; }
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5390 $as_echo "$LIBINTL" >&6; }
5392 for element in $INCINTL; do
5394 for x in $CPPFLAGS; do
5396 acl_save_prefix="$prefix"
5397 prefix="$acl_final_prefix"
5398 acl_save_exec_prefix="$exec_prefix"
5399 exec_prefix="$acl_final_exec_prefix"
5401 exec_prefix="$acl_save_exec_prefix"
5402 prefix="$acl_save_prefix"
5404 if test "X$x" = "X$element"; then
5409 if test -z "$haveit"; then
5410 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5417 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5420 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
5439 if test "x$target" != "x$host" -a -z "`echo $CC | grep -e '-gcc'`";
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cross-compiler" >&5
5442 $as_echo_n "checking for cross-compiler... " >&6; }
5444 which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
5445 which ${target_cpu}-${target_os}-gcc >/dev/null 2>&1 \
5446 && CC=${target_cpu}-${target-os}-gcc
5447 which ${target_cpu}-${target_vendor}-${target_os}-gcc >/dev/null 2>&1 \
5448 && CC=${target_cpu}-${target_vendor}-${target_os}-gcc
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5451 $as_echo "$CC" >&6; }
5455 ac_cpp='$CPP $CPPFLAGS'
5456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5459 if test -n "$ac_tool_prefix"; then
5460 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5461 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_CC+:} false; then :
5465 $as_echo_n "(cached) " >&6
5467 if test -n "$CC"; then
5468 ac_cv_prog_CC="$CC" # Let the user override the test.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 if test -n "$CC"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5490 $as_echo "$CC" >&6; }
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5498 if test -z "$ac_cv_prog_CC"; then
5500 # Extract the first word of "gcc", so it can be a program name with args.
5501 set dummy gcc; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5505 $as_echo_n "(cached) " >&6
5507 if test -n "$ac_ct_CC"; then
5508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 ac_cv_prog_ac_ct_CC="gcc"
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5528 if test -n "$ac_ct_CC"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5530 $as_echo "$ac_ct_CC" >&6; }
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5536 if test "x$ac_ct_CC" = x; then
5539 case $cross_compiling:$ac_tool_warned in
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5543 ac_tool_warned=yes ;;
5551 if test -z "$CC"; then
5552 if test -n "$ac_tool_prefix"; then
5553 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5554 set dummy ${ac_tool_prefix}cc; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if ${ac_cv_prog_CC+:} false; then :
5558 $as_echo_n "(cached) " >&6
5560 if test -n "$CC"; then
5561 ac_cv_prog_CC="$CC" # Let the user override the test.
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570 ac_cv_prog_CC="${ac_tool_prefix}cc"
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581 if test -n "$CC"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5583 $as_echo "$CC" >&6; }
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5592 if test -z "$CC"; then
5593 # Extract the first word of "cc", so it can be a program name with args.
5594 set dummy cc; ac_word=$2
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5596 $as_echo_n "checking for $ac_word... " >&6; }
5597 if ${ac_cv_prog_CC+:} false; then :
5598 $as_echo_n "(cached) " >&6
5600 if test -n "$CC"; then
5601 ac_cv_prog_CC="$CC" # Let the user override the test.
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5611 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5612 ac_prog_rejected=yes
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 if test $ac_prog_rejected = yes; then
5624 # We found a bogon in the path, so make sure we never use it.
5625 set dummy $ac_cv_prog_CC
5627 if test $# != 0; then
5628 # We chose a different compiler from the bogus one.
5629 # However, it has the same basename, so the bogon will be chosen
5630 # first if we set CC to just the basename; use the full file name.
5632 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5638 if test -n "$CC"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5640 $as_echo "$CC" >&6; }
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5648 if test -z "$CC"; then
5649 if test -n "$ac_tool_prefix"; then
5650 for ac_prog in cl.exe
5652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655 $as_echo_n "checking for $ac_word... " >&6; }
5656 if ${ac_cv_prog_CC+:} false; then :
5657 $as_echo_n "(cached) " >&6
5659 if test -n "$CC"; then
5660 ac_cv_prog_CC="$CC" # Let the user override the test.
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 if test -n "$CC"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5682 $as_echo "$CC" >&6; }
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685 $as_echo "no" >&6; }
5689 test -n "$CC" && break
5692 if test -z "$CC"; then
5694 for ac_prog in cl.exe
5696 # Extract the first word of "$ac_prog", so it can be a program name with args.
5697 set dummy $ac_prog; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5701 $as_echo_n "(cached) " >&6
5703 if test -n "$ac_ct_CC"; then
5704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713 ac_cv_prog_ac_ct_CC="$ac_prog"
5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5724 if test -n "$ac_ct_CC"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5726 $as_echo "$ac_ct_CC" >&6; }
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }
5733 test -n "$ac_ct_CC" && break
5736 if test "x$ac_ct_CC" = x; then
5739 case $cross_compiling:$ac_tool_warned in
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5743 ac_tool_warned=yes ;;
5752 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5754 as_fn_error $? "no acceptable C compiler found in \$PATH
5755 See \`config.log' for more details" "$LINENO" 5; }
5757 # Provide some information about the compiler.
5758 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5761 for ac_option in --version -v -V -qversion; do
5762 { { ac_try="$ac_compiler $ac_option >&5"
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5768 $as_echo "$ac_try_echo"; } >&5
5769 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5771 if test -s conftest.err; then
5773 ... rest of stderr output deleted ...
5774 10q' conftest.err >conftest.er1
5775 cat conftest.er1 >&5
5777 rm -f conftest.er1 conftest.err
5778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5779 test $ac_status = 0; }
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5783 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5784 if ${ac_cv_c_compiler_gnu+:} false; then :
5785 $as_echo_n "(cached) " >&6
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5801 if ac_fn_c_try_compile "$LINENO"; then :
5806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5807 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5811 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5812 if test $ac_compiler_gnu = yes; then
5817 ac_test_CFLAGS=${CFLAGS+set}
5818 ac_save_CFLAGS=$CFLAGS
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5820 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5821 if ${ac_cv_prog_cc_g+:} false; then :
5822 $as_echo_n "(cached) " >&6
5824 ac_save_c_werror_flag=$ac_c_werror_flag
5825 ac_c_werror_flag=yes
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5839 if ac_fn_c_try_compile "$LINENO"; then :
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5854 if ac_fn_c_try_compile "$LINENO"; then :
5857 ac_c_werror_flag=$ac_save_c_werror_flag
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5870 if ac_fn_c_try_compile "$LINENO"; then :
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 ac_c_werror_flag=$ac_save_c_werror_flag
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5881 $as_echo "$ac_cv_prog_cc_g" >&6; }
5882 if test "$ac_test_CFLAGS" = set; then
5883 CFLAGS=$ac_save_CFLAGS
5884 elif test $ac_cv_prog_cc_g = yes; then
5885 if test "$GCC" = yes; then
5891 if test "$GCC" = yes; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5898 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5899 if ${ac_cv_prog_cc_c89+:} false; then :
5900 $as_echo_n "(cached) " >&6
5902 ac_cv_prog_cc_c89=no
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5908 #include <sys/types.h>
5909 #include <sys/stat.h>
5910 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5911 struct buf { int x; };
5912 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5913 static char *e (p, i)
5919 static char *f (char * (*g) (char **, int), char **p, ...)
5924 s = g (p, va_arg (v,int));
5929 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5930 function prototypes and stuff, but not '\xHH' hex character constants.
5931 These don't provoke an error unfortunately, instead are silently treated
5932 as 'x'. The following induces an error, until -std is added to get
5933 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5934 array size at least. It's necessary to write '\x00'==0 to get something
5935 that's true only with -std. */
5936 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5938 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5939 inside strings and character constants. */
5941 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5943 int test (int i, double x);
5944 struct s1 {int (*f) (int a);};
5945 struct s2 {int (*f) (double a);};
5946 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5952 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5957 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5958 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5960 CC="$ac_save_CC $ac_arg"
5961 if ac_fn_c_try_compile "$LINENO"; then :
5962 ac_cv_prog_cc_c89=$ac_arg
5964 rm -f core conftest.err conftest.$ac_objext
5965 test "x$ac_cv_prog_cc_c89" != "xno" && break
5967 rm -f conftest.$ac_ext
5972 case "x$ac_cv_prog_cc_c89" in
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5975 $as_echo "none needed" >&6; } ;;
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5978 $as_echo "unsupported" >&6; } ;;
5980 CC="$CC $ac_cv_prog_cc_c89"
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5982 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5984 if test "x$ac_cv_prog_cc_c89" != xno; then :
5989 ac_cpp='$CPP $CPPFLAGS'
5990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5994 depcc="$CC" am_compiler_list=
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5997 $as_echo_n "checking dependency style of $depcc... " >&6; }
5998 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5999 $as_echo_n "(cached) " >&6
6001 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6002 # We make a subdir and do the tests there. Otherwise we can end up
6003 # making bogus files that we don't know about and never remove. For
6004 # instance it was reported that on HP-UX the gcc test will end up
6005 # making a dummy file named `D' -- because `-MD' means `put the output
6008 # Copy depcomp to subdir because otherwise we won't find it if we're
6009 # using a relative directory.
6010 cp "$am_depcomp" conftest.dir
6012 # We will build objects and dependencies in a subdirectory because
6013 # it helps to detect inapplicable dependency modes. For instance
6014 # both Tru64's cc and ICC support -MD to output dependencies as a
6015 # side effect of compilation, but ICC will put the dependencies in
6016 # the current directory while Tru64 will put them in the object
6020 am_cv_CC_dependencies_compiler_type=none
6021 if test "$am_compiler_list" = ""; then
6022 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6025 case " $depcc " in #(
6026 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6029 for depmode in $am_compiler_list; do
6030 # Setup a source with many dependencies, because some compilers
6031 # like to wrap large dependency lists on column 80 (with \), and
6032 # we should not choose a depcomp mode which is confused by this.
6034 # We need to recreate these files for each test, as the compiler may
6035 # overwrite some of them when testing with obscure command lines.
6036 # This happens at least with the AIX C compiler.
6038 for i in 1 2 3 4 5 6; do
6039 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6040 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6041 # Solaris 8's {/usr,}/bin/sh.
6042 touch sub/conftst$i.h
6044 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6046 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6047 # mode. It turns out that the SunPro C++ compiler does not properly
6048 # handle `-M -o', and we need to detect this. Also, some Intel
6049 # versions had trouble with output in subdirs
6050 am__obj=sub/conftest.${OBJEXT-o}
6051 am__minus_obj="-o $am__obj"
6054 # This depmode causes a compiler race in universal mode.
6055 test "$am__universal" = false || continue
6058 # after this tag, mechanisms are not by side-effect, so they'll
6059 # only be used when explicitly requested
6060 if test "x$enable_dependency_tracking" = xyes; then
6066 msvisualcpp | msvcmsys)
6067 # This compiler won't grok `-c -o', but also, the minuso test has
6068 # not run yet. These depmodes are late enough in the game, and
6069 # so weak that their functioning should not be impacted.
6070 am__obj=conftest.${OBJEXT-o}
6075 if depmode=$depmode \
6076 source=sub/conftest.c object=$am__obj \
6077 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6078 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6079 >/dev/null 2>conftest.err &&
6080 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6081 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6082 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6083 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6084 # icc doesn't choke on unknown options, it will just issue warnings
6085 # or remarks (even with -Werror). So we grep stderr for any message
6086 # that says an option was ignored or not supported.
6087 # When given -MP, icc 7.0 and 7.1 complain thusly:
6088 # icc: Command line warning: ignoring option '-M'; no argument required
6089 # The diagnosis changed in icc 8.0:
6090 # icc: Command line remark: option '-MP' not supported
6091 if (grep 'ignoring option' conftest.err ||
6092 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6093 am_cv_CC_dependencies_compiler_type=$depmode
6102 am_cv_CC_dependencies_compiler_type=none
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6107 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6108 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6111 test "x$enable_dependency_tracking" != xno \
6112 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6114 am__fastdepCC_FALSE='#'
6116 am__fastdepCC_TRUE='#'
6117 am__fastdepCC_FALSE=
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6124 $as_echo_n "checking whether ln -s works... " >&6; }
6126 if test "$LN_S" = "ln -s"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6128 $as_echo "yes" >&6; }
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6131 $as_echo "no, using $LN_S" >&6; }
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6135 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6136 if ${ac_cv_path_SED+:} false; then :
6137 $as_echo_n "(cached) " >&6
6139 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6140 for ac_i in 1 2 3 4 5 6 7; do
6141 ac_script="$ac_script$as_nl$ac_script"
6143 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6144 { ac_script=; unset ac_script;}
6145 if test -z "$SED"; then
6146 ac_path_SED_found=false
6147 # Loop through the user's path and test for each of PROGNAME-LIST
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 test -z "$as_dir" && as_dir=.
6153 for ac_prog in sed gsed; do
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6156 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6157 # Check for GNU ac_path_SED and select it if it is found.
6158 # Check for GNU $ac_path_SED
6159 case `"$ac_path_SED" --version 2>&1` in
6161 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6164 $as_echo_n 0123456789 >"conftest.in"
6167 cat "conftest.in" "conftest.in" >"conftest.tmp"
6168 mv "conftest.tmp" "conftest.in"
6169 cp "conftest.in" "conftest.nl"
6170 $as_echo '' >> "conftest.nl"
6171 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6173 as_fn_arith $ac_count + 1 && ac_count=$as_val
6174 if test $ac_count -gt ${ac_path_SED_max-0}; then
6175 # Best one so far, save it but keep looking for a better one
6176 ac_cv_path_SED="$ac_path_SED"
6177 ac_path_SED_max=$ac_count
6179 # 10*(2^10) chars as input seems more than enough
6180 test $ac_count -gt 10 && break
6182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6185 $ac_path_SED_found && break 3
6190 if test -z "$ac_cv_path_SED"; then
6191 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6199 $as_echo "$ac_cv_path_SED" >&6; }
6200 SED="$ac_cv_path_SED"
6203 alsa_save_CFLAGS="$CFLAGS"
6204 alsa_save_LDFLAGS="$LDFLAGS"
6205 alsa_save_LIBS="$LIBS"
6209 # Check whether --with-alsa-prefix was given.
6210 if test "${with_alsa_prefix+set}" = set; then :
6211 withval=$with_alsa_prefix; alsa_prefix="$withval"
6218 # Check whether --with-alsa-inc-prefix was given.
6219 if test "${with_alsa_inc_prefix+set}" = set; then :
6220 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
6226 # Check whether --enable-alsatest was given.
6227 if test "${enable_alsatest+set}" = set; then :
6228 enableval=$enable_alsatest; enable_alsatest="$enableval"
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
6235 $as_echo_n "checking for ALSA CFLAGS... " >&6; }
6236 if test "$alsa_inc_prefix" != "" ; then
6237 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
6238 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6241 $as_echo "$ALSA_CFLAGS" >&6; }
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
6244 $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
6245 if test "$alsa_prefix" != "" ; then
6246 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
6247 LDFLAGS="$LDFLAGS $ALSA_LIBS"
6250 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
6251 LIBS="$ALSA_LIBS $LIBS"
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6253 $as_echo "$ALSA_LIBS" >&6; }
6255 min_alsa_version=1.0.24
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
6257 $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
6259 alsa_min_major_version=`echo $min_alsa_version | \
6260 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6261 alsa_min_minor_version=`echo $min_alsa_version | \
6262 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6263 alsa_min_micro_version=`echo $min_alsa_version | \
6264 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6268 ac_cpp='$CPP $CPPFLAGS'
6269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6276 #include <alsa/asoundlib.h>
6282 /* ensure backward compatibility */
6283 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
6284 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
6286 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
6287 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
6289 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
6290 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
6293 # if(SND_LIB_MAJOR > $alsa_min_major_version)
6296 # if(SND_LIB_MAJOR < $alsa_min_major_version)
6300 # if(SND_LIB_MINOR > $alsa_min_minor_version)
6303 # if(SND_LIB_MINOR < $alsa_min_minor_version)
6307 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
6318 if ac_fn_c_try_compile "$LINENO"; then :
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
6320 $as_echo "found." >&6; }
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
6323 $as_echo "not present." >&6; }
6324 as_fn_error $? "Sufficiently new version of libasound not found." "$LINENO" 5
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 ac_cpp='$CPP $CPPFLAGS'
6331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6336 if test "x$enable_alsatest" = "xyes"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
6338 $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
6339 if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
6340 $as_echo_n "(cached) " >&6
6342 ac_check_lib_save_LIBS=$LIBS
6343 LIBS="-lasound $LIBS"
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6347 /* Override any GCC internal prototype to avoid an error.
6348 Use char because int might match the return type of a GCC
6349 builtin and then its argument prototype would still apply. */
6353 char snd_ctl_open ();
6357 return snd_ctl_open ();
6362 if ac_fn_c_try_link "$LINENO"; then :
6363 ac_cv_lib_asound_snd_ctl_open=yes
6365 ac_cv_lib_asound_snd_ctl_open=no
6367 rm -f core conftest.err conftest.$ac_objext \
6368 conftest$ac_exeext conftest.$ac_ext
6369 LIBS=$ac_check_lib_save_LIBS
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
6372 $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
6373 if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
6374 cat >>confdefs.h <<_ACEOF
6375 #define HAVE_LIBASOUND 1
6378 LIBS="-lasound $LIBS"
6381 as_fn_error $? "No linkable libasound was found." "$LINENO" 5
6388 if test "x$alsa_found" = "xyes" ; then
6390 LIBS=`echo $LIBS | sed 's/-lasound//g'`
6391 LIBS=`echo $LIBS | sed 's/ //'`
6392 LIBS="-lasound $LIBS"
6394 if test "x$alsa_found" = "xno" ; then
6396 CFLAGS="$alsa_save_CFLAGS"
6397 LDFLAGS="$alsa_save_LDFLAGS"
6398 LIBS="$alsa_save_LIBS"
6406 ac_fn_c_check_func "$LINENO" "snd_ctl_elem_add_enumerated" "ac_cv_func_snd_ctl_elem_add_enumerated"
6407 if test "x$ac_cv_func_snd_ctl_elem_add_enumerated" = xyes; then :
6410 as_fn_error $? "No user enum control support in alsa-lib" "$LINENO" 5
6414 for ac_header in alsa/pcm.h
6416 ac_fn_c_check_header_compile "$LINENO" "alsa/pcm.h" "ac_cv_header_alsa_pcm_h" "#include <alsa/asoundlib.h>
6418 if test "x$ac_cv_header_alsa_pcm_h" = xyes; then :
6419 cat >>confdefs.h <<_ACEOF
6420 #define HAVE_ALSA_PCM_H 1
6429 for ac_header in alsa/mixer.h
6431 ac_fn_c_check_header_compile "$LINENO" "alsa/mixer.h" "ac_cv_header_alsa_mixer_h" "#include <alsa/asoundlib.h>
6433 if test "x$ac_cv_header_alsa_mixer_h" = xyes; then :
6434 cat >>confdefs.h <<_ACEOF
6435 #define HAVE_ALSA_MIXER_H 1
6444 for ac_header in alsa/rawmidi.h
6446 ac_fn_c_check_header_compile "$LINENO" "alsa/rawmidi.h" "ac_cv_header_alsa_rawmidi_h" "#include <alsa/asoundlib.h>
6448 if test "x$ac_cv_header_alsa_rawmidi_h" = xyes; then :
6449 cat >>confdefs.h <<_ACEOF
6450 #define HAVE_ALSA_RAWMIDI_H 1
6459 for ac_header in alsa/seq.h
6461 ac_fn_c_check_header_compile "$LINENO" "alsa/seq.h" "ac_cv_header_alsa_seq_h" "#include <alsa/asoundlib.h>
6463 if test "x$ac_cv_header_alsa_seq_h" = xyes; then :
6464 cat >>confdefs.h <<_ACEOF
6465 #define HAVE_ALSA_SEQ_H 1
6474 for ac_header in samplerate.h
6476 ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "#include <samplerate.h>
6478 if test "x$ac_cv_header_samplerate_h" = xyes; then :
6479 cat >>confdefs.h <<_ACEOF
6480 #define HAVE_SAMPLERATE_H 1
6482 have_samplerate="yes"
6484 have_samplerate="no"
6490 if test "$have_pcm" = "yes"; then
6498 if test "$have_mixer" = "yes"; then
6500 HAVE_MIXER_FALSE='#'
6506 if test "$have_rawmidi" = "yes"; then
6508 HAVE_RAWMIDI_FALSE='#'
6510 HAVE_RAWMIDI_TRUE='#'
6514 if test "$have_seq" = "yes"; then
6522 if test "$have_samplerate" = "yes"; then
6523 HAVE_SAMPLERATE_TRUE=
6524 HAVE_SAMPLERATE_FALSE='#'
6526 HAVE_SAMPLERATE_TRUE='#'
6527 HAVE_SAMPLERATE_FALSE=
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
6533 $as_echo_n "checking for librt... " >&6; }
6535 # Check whether --with-librt was given.
6536 if test "${with_librt+set}" = set; then :
6537 withval=$with_librt; have_librt="$withval"
6542 if test "$have_librt" = "yes"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
6544 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
6545 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
6546 $as_echo_n "(cached) " >&6
6548 ac_check_lib_save_LIBS=$LIBS
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6553 /* Override any GCC internal prototype to avoid an error.
6554 Use char because int might match the return type of a GCC
6555 builtin and then its argument prototype would still apply. */
6559 char clock_gettime ();
6563 return clock_gettime ();
6568 if ac_fn_c_try_link "$LINENO"; then :
6569 ac_cv_lib_rt_clock_gettime=yes
6571 ac_cv_lib_rt_clock_gettime=no
6573 rm -f core conftest.err conftest.$ac_objext \
6574 conftest$ac_exeext conftest.$ac_ext
6575 LIBS=$ac_check_lib_save_LIBS
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
6578 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
6579 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
6583 if test "$HAVE_LIBRT" = "yes" ; then
6586 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
6589 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6601 if test "$have_mixer" = "yes"; then
6602 # Check whether --enable-alsamixer was given.
6603 if test "${enable_alsamixer+set}" = set; then :
6604 enableval=$enable_alsamixer; case "${enableval}" in
6605 yes) alsamixer=true ;;
6606 no) alsamixer=false ;;
6607 *) as_fn_error $? "bad value ${enableval} for --enable-alsamixer" "$LINENO" 5 ;;
6614 if test x$alsamixer = xtrue; then
6623 # Check whether --enable-alsaconf was given.
6624 if test "${enable_alsaconf+set}" = set; then :
6625 enableval=$enable_alsaconf; case "${enableval}" in
6626 yes) alsaconf=true ;;
6627 no) alsaconf=false ;;
6628 *) as_fn_error $? "bad value ${enableval} for --enable-alsaconf" "$LINENO" 5 ;;
6634 if test x$alsaconf = xtrue; then
6643 # Check whether --enable-alsaloop was given.
6644 if test "${enable_alsaloop+set}" = set; then :
6645 enableval=$enable_alsaloop; case "${enableval}" in
6646 yes) alsaloop=true ;;
6647 no) alsaloop=false ;;
6648 *) as_fn_error $? "bad value ${enableval} for --enable-alsaloop" "$LINENO" 5 ;;
6654 if test x$alsaloop = xtrue; then
6664 # Check whether --enable-xmlto was given.
6665 if test "${enable_xmlto+set}" = set; then :
6666 enableval=$enable_xmlto; xmlto="$enableval"
6671 if test "$xmlto" = "yes"; then
6672 # Extract the first word of "xmlto", so it can be a program name with args.
6673 set dummy xmlto; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if ${ac_cv_prog_xmlto+:} false; then :
6677 $as_echo_n "(cached) " >&6
6679 if test -n "$xmlto"; then
6680 ac_cv_prog_xmlto="$xmlto" # Let the user override the test.
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689 ac_cv_prog_xmlto="yes"
6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 xmlto=$ac_cv_prog_xmlto
6700 if test -n "$xmlto"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto" >&5
6702 $as_echo "$xmlto" >&6; }
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6710 if test x"$xmlto" = xyes; then
6720 # Check whether --with-udev-rules-dir was given.
6721 if test "${with_udev_rules_dir+set}" = set; then :
6722 withval=$with_udev_rules_dir; udevrulesdir=$withval
6724 udevrulesdir="/lib/udev/rules.d"
6730 ac_cpp='$CPP $CPPFLAGS'
6731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6735 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6736 # On Suns, sometimes $CPP names a directory.
6737 if test -n "$CPP" && test -d "$CPP"; then
6740 if test -z "$CPP"; then
6741 if ${ac_cv_prog_CPP+:} false; then :
6742 $as_echo_n "(cached) " >&6
6744 # Double quotes because CPP needs to be expanded
6745 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6748 for ac_c_preproc_warn_flag in '' yes
6750 # Use a header file that comes with gcc, so configuring glibc
6751 # with a fresh cross-compiler works.
6752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6753 # <limits.h> exists even on freestanding compilers.
6754 # On the NeXT, cc -E runs the code through the compiler's parser,
6755 # not just through cpp. "Syntax error" is here to catch this case.
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6759 # include <limits.h>
6761 # include <assert.h>
6765 if ac_fn_c_try_cpp "$LINENO"; then :
6768 # Broken: fails on valid input.
6771 rm -f conftest.err conftest.i conftest.$ac_ext
6773 # OK, works on sane cases. Now check whether nonexistent headers
6774 # can be detected and how.
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 #include <ac_nonexistent.h>
6779 if ac_fn_c_try_cpp "$LINENO"; then :
6780 # Broken: success on invalid input.
6783 # Passes both tests.
6787 rm -f conftest.err conftest.i conftest.$ac_ext
6790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6791 rm -f conftest.i conftest.err conftest.$ac_ext
6792 if $ac_preproc_ok; then :
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6805 $as_echo "$CPP" >&6; }
6807 for ac_c_preproc_warn_flag in '' yes
6809 # Use a header file that comes with gcc, so configuring glibc
6810 # with a fresh cross-compiler works.
6811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6812 # <limits.h> exists even on freestanding compilers.
6813 # On the NeXT, cc -E runs the code through the compiler's parser,
6814 # not just through cpp. "Syntax error" is here to catch this case.
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6818 # include <limits.h>
6820 # include <assert.h>
6824 if ac_fn_c_try_cpp "$LINENO"; then :
6827 # Broken: fails on valid input.
6830 rm -f conftest.err conftest.i conftest.$ac_ext
6832 # OK, works on sane cases. Now check whether nonexistent headers
6833 # can be detected and how.
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6836 #include <ac_nonexistent.h>
6838 if ac_fn_c_try_cpp "$LINENO"; then :
6839 # Broken: success on invalid input.
6842 # Passes both tests.
6846 rm -f conftest.err conftest.i conftest.$ac_ext
6849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6850 rm -f conftest.i conftest.err conftest.$ac_ext
6851 if $ac_preproc_ok; then :
6854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6856 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6857 See \`config.log' for more details" "$LINENO" 5; }
6861 ac_cpp='$CPP $CPPFLAGS'
6862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6868 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6869 if ${ac_cv_path_GREP+:} false; then :
6870 $as_echo_n "(cached) " >&6
6872 if test -z "$GREP"; then
6873 ac_path_GREP_found=false
6874 # Loop through the user's path and test for each of PROGNAME-LIST
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6879 test -z "$as_dir" && as_dir=.
6880 for ac_prog in grep ggrep; do
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6883 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6884 # Check for GNU ac_path_GREP and select it if it is found.
6885 # Check for GNU $ac_path_GREP
6886 case `"$ac_path_GREP" --version 2>&1` in
6888 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6891 $as_echo_n 0123456789 >"conftest.in"
6894 cat "conftest.in" "conftest.in" >"conftest.tmp"
6895 mv "conftest.tmp" "conftest.in"
6896 cp "conftest.in" "conftest.nl"
6897 $as_echo 'GREP' >> "conftest.nl"
6898 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6899 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6900 as_fn_arith $ac_count + 1 && ac_count=$as_val
6901 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6902 # Best one so far, save it but keep looking for a better one
6903 ac_cv_path_GREP="$ac_path_GREP"
6904 ac_path_GREP_max=$ac_count
6906 # 10*(2^10) chars as input seems more than enough
6907 test $ac_count -gt 10 && break
6909 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6912 $ac_path_GREP_found && break 3
6917 if test -z "$ac_cv_path_GREP"; then
6918 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6921 ac_cv_path_GREP=$GREP
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6926 $as_echo "$ac_cv_path_GREP" >&6; }
6927 GREP="$ac_cv_path_GREP"
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6931 $as_echo_n "checking for egrep... " >&6; }
6932 if ${ac_cv_path_EGREP+:} false; then :
6933 $as_echo_n "(cached) " >&6
6935 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6936 then ac_cv_path_EGREP="$GREP -E"
6938 if test -z "$EGREP"; then
6939 ac_path_EGREP_found=false
6940 # Loop through the user's path and test for each of PROGNAME-LIST
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6945 test -z "$as_dir" && as_dir=.
6946 for ac_prog in egrep; do
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6949 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6950 # Check for GNU ac_path_EGREP and select it if it is found.
6951 # Check for GNU $ac_path_EGREP
6952 case `"$ac_path_EGREP" --version 2>&1` in
6954 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6957 $as_echo_n 0123456789 >"conftest.in"
6960 cat "conftest.in" "conftest.in" >"conftest.tmp"
6961 mv "conftest.tmp" "conftest.in"
6962 cp "conftest.in" "conftest.nl"
6963 $as_echo 'EGREP' >> "conftest.nl"
6964 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6965 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6966 as_fn_arith $ac_count + 1 && ac_count=$as_val
6967 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6968 # Best one so far, save it but keep looking for a better one
6969 ac_cv_path_EGREP="$ac_path_EGREP"
6970 ac_path_EGREP_max=$ac_count
6972 # 10*(2^10) chars as input seems more than enough
6973 test $ac_count -gt 10 && break
6975 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6978 $ac_path_EGREP_found && break 3
6983 if test -z "$ac_cv_path_EGREP"; then
6984 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6987 ac_cv_path_EGREP=$EGREP
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6993 $as_echo "$ac_cv_path_EGREP" >&6; }
6994 EGREP="$ac_cv_path_EGREP"
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6998 $as_echo_n "checking for ANSI C header files... " >&6; }
6999 if ${ac_cv_header_stdc+:} false; then :
7000 $as_echo_n "(cached) " >&6
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7017 if ac_fn_c_try_compile "$LINENO"; then :
7018 ac_cv_header_stdc=yes
7020 ac_cv_header_stdc=no
7022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7024 if test $ac_cv_header_stdc = yes; then
7025 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7032 $EGREP "memchr" >/dev/null 2>&1; then :
7035 ac_cv_header_stdc=no
7041 if test $ac_cv_header_stdc = yes; then
7042 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7049 $EGREP "free" >/dev/null 2>&1; then :
7052 ac_cv_header_stdc=no
7058 if test $ac_cv_header_stdc = yes; then
7059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7060 if test "$cross_compiling" = yes; then :
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7067 #if ((' ' & 0x0FF) == 0x020)
7068 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7069 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7071 # define ISLOWER(c) \
7072 (('a' <= (c) && (c) <= 'i') \
7073 || ('j' <= (c) && (c) <= 'r') \
7074 || ('s' <= (c) && (c) <= 'z'))
7075 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7078 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7083 for (i = 0; i < 256; i++)
7084 if (XOR (islower (i), ISLOWER (i))
7085 || toupper (i) != TOUPPER (i))
7090 if ac_fn_c_try_run "$LINENO"; then :
7093 ac_cv_header_stdc=no
7095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7096 conftest.$ac_objext conftest.beam conftest.$ac_ext
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7102 $as_echo "$ac_cv_header_stdc" >&6; }
7103 if test $ac_cv_header_stdc = yes; then
7105 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7109 if test x$alsamixer = xtrue; then
7111 # Check whether --with-curses was given.
7112 if test "${with_curses+set}" = set; then :
7113 withval=$with_curses; curseslib="$withval"
7121 if test "$curseslib" = "ncursesw" -o \( "$curseslib" = "auto" -a "$USE_NLS" = "yes" \); then
7122 # Extract the first word of "ncursesw5-config", so it can be a program name with args.
7123 set dummy ncursesw5-config; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if ${ac_cv_prog_ncursesw5_config+:} false; then :
7127 $as_echo_n "(cached) " >&6
7129 if test -n "$ncursesw5_config"; then
7130 ac_cv_prog_ncursesw5_config="$ncursesw5_config" # Let the user override the test.
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_prog_ncursesw5_config="yes"
7140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 ncursesw5_config=$ac_cv_prog_ncursesw5_config
7150 if test -n "$ncursesw5_config"; then
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ncursesw5_config" >&5
7152 $as_echo "$ncursesw5_config" >&6; }
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7159 if test "$ncursesw5_config" = "yes"; then
7160 CURSESINC="<ncurses.h>"
7161 CURSESLIB=`ncursesw5-config --libs`
7162 CURSESLIBDIR=`ncursesw5-config --libdir`
7163 CURSES_CFLAGS=`ncursesw5-config --cflags`
7164 curseslib="ncursesw"
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
7167 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
7168 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
7169 $as_echo_n "(cached) " >&6
7171 ac_check_lib_save_LIBS=$LIBS
7172 LIBS="-lncursesw $LIBS"
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7176 /* Override any GCC internal prototype to avoid an error.
7177 Use char because int might match the return type of a GCC
7178 builtin and then its argument prototype would still apply. */
7191 if ac_fn_c_try_link "$LINENO"; then :
7192 ac_cv_lib_ncursesw_initscr=yes
7194 ac_cv_lib_ncursesw_initscr=no
7196 rm -f core conftest.err conftest.$ac_objext \
7197 conftest$ac_exeext conftest.$ac_ext
7198 LIBS=$ac_check_lib_save_LIBS
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
7201 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
7202 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
7203 CURSESINC='<ncurses.h>'; CURSESLIB='-lncursesw'; curseslib="ncursesw"
7207 if test -n "$CURSESINC"; then
7208 NCURSESLIBSUFFIX="w"
7212 if test "$curseslib" = "ncurses" -o "$curseslib" = "auto"; then
7213 # Extract the first word of "ncurses5-config", so it can be a program name with args.
7214 set dummy ncurses5-config; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if ${ac_cv_prog_ncurses5_config+:} false; then :
7218 $as_echo_n "(cached) " >&6
7220 if test -n "$ncurses5_config"; then
7221 ac_cv_prog_ncurses5_config="$ncurses5_config" # Let the user override the test.
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7230 ac_cv_prog_ncurses5_config="yes"
7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 ncurses5_config=$ac_cv_prog_ncurses5_config
7241 if test -n "$ncurses5_config"; then
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ncurses5_config" >&5
7243 $as_echo "$ncurses5_config" >&6; }
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7250 if test "$ncurses5_config" = "yes"; then
7251 CURSESINC="<ncurses.h>"
7252 CURSESLIB=`ncurses5-config --libs`
7253 CURSESLIBDIR=`ncurses5-config --libdir`
7254 CURSES_CFLAGS=`ncurses5-config --cflags`
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
7258 $as_echo_n "checking for initscr in -lncurses... " >&6; }
7259 if ${ac_cv_lib_ncurses_initscr+:} false; then :
7260 $as_echo_n "(cached) " >&6
7262 ac_check_lib_save_LIBS=$LIBS
7263 LIBS="-lncurses $LIBS"
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7267 /* Override any GCC internal prototype to avoid an error.
7268 Use char because int might match the return type of a GCC
7269 builtin and then its argument prototype would still apply. */
7282 if ac_fn_c_try_link "$LINENO"; then :
7283 ac_cv_lib_ncurses_initscr=yes
7285 ac_cv_lib_ncurses_initscr=no
7287 rm -f core conftest.err conftest.$ac_objext \
7288 conftest$ac_exeext conftest.$ac_ext
7289 LIBS=$ac_check_lib_save_LIBS
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
7292 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
7293 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
7294 CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; curseslib="ncurses"
7299 if test "$curseslib" = "curses" -o "$curseslib" = "auto"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
7301 $as_echo_n "checking for initscr in -lcurses... " >&6; }
7302 if ${ac_cv_lib_curses_initscr+:} false; then :
7303 $as_echo_n "(cached) " >&6
7305 ac_check_lib_save_LIBS=$LIBS
7306 LIBS="-lcurses $LIBS"
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7310 /* Override any GCC internal prototype to avoid an error.
7311 Use char because int might match the return type of a GCC
7312 builtin and then its argument prototype would still apply. */
7325 if ac_fn_c_try_link "$LINENO"; then :
7326 ac_cv_lib_curses_initscr=yes
7328 ac_cv_lib_curses_initscr=no
7330 rm -f core conftest.err conftest.$ac_objext \
7331 conftest$ac_exeext conftest.$ac_ext
7332 LIBS=$ac_check_lib_save_LIBS
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
7335 $as_echo "$ac_cv_lib_curses_initscr" >&6; }
7336 if test "x$ac_cv_lib_curses_initscr" = xyes; then :
7337 CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; curseslib="curses"
7341 if test -z "$CURSESINC"; then
7342 as_fn_error $? "this packages requires a curses library" "$LINENO" 5
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses library" >&5
7346 $as_echo_n "checking for curses library... " >&6; }
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curseslib" >&5
7348 $as_echo "$curseslib" >&6; }
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses header name" >&5
7350 $as_echo_n "checking for curses header name... " >&6; }
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSESINC" >&5
7352 $as_echo "$CURSESINC" >&6; }
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses compiler flags" >&5
7354 $as_echo_n "checking for curses compiler flags... " >&6; }
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSES_CFLAGS" >&5
7356 $as_echo "$CURSES_CFLAGS" >&6; }
7358 if test -n "$CURSESLIBDIR"; then
7359 if test "-L$CURSESLIBDIR " = "$(echo $CURSESLIB | cut -c-$((${#CURSESLIBDIR}+3)) )"; then
7360 CURSESLIB="$(echo $CURSESLIB | cut -c$((${#CURSESLIBDIR}+4))-)"
7364 saved_CFLAGS="$CFLAGS"
7365 saved_LDFLAGS="$LDFLAGS"
7367 CFLAGS="$CFLAGS $CURSES_CFLAGS"
7368 if test -n "$CURSESLIBDIR"; then
7369 LDFLAGS="$LDFLAGS -L$CURSESLIBDIR"
7371 LIBS="$CURSESLIB $LIBS"
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7384 if ac_fn_c_try_link "$LINENO"; then :
7385 HAVE_CURSES_ESCDELAY="yes"
7387 rm -f core conftest.err conftest.$ac_objext \
7388 conftest$ac_exeext conftest.$ac_ext
7389 if test "$HAVE_CURSES_ESCDELAY" = "yes"; then
7391 $as_echo "#define HAVE_CURSES_ESCDELAY 1" >>confdefs.h
7395 if test "$USE_NLS" = "yes"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses NLS support" >&5
7397 $as_echo_n "checking for curses NLS support... " >&6; }
7398 if test "$curseslib" = "curses"; then
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7402 #define _XOPEN_SOURCE 1
7403 #define _XOPEN_SOURCE_EXTENDED 1
7411 setcchar(&wc, L"x", A_NORMAL, 0, 0);
7417 if ac_fn_c_try_link "$LINENO"; then :
7420 rm -f core conftest.err conftest.$ac_objext \
7421 conftest$ac_exeext conftest.$ac_ext
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSES_NLS" >&5
7424 $as_echo "$CURSES_NLS" >&6; }
7425 if test "$CURSES_NLS" = "yes"; then
7427 $as_echo "#define ENABLE_NLS_IN_CURSES 1" >>confdefs.h
7432 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7433 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7434 inttypes.h stdint.h unistd.h
7436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7437 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7439 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7440 cat >>confdefs.h <<_ACEOF
7441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7449 for ac_header in panel.h menu.h form.h
7451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7452 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7453 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7454 cat >>confdefs.h <<_ACEOF
7455 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7459 as_fn_error $? "required curses helper header not found" "$LINENO" 5
7464 as_ac_Lib=`$as_echo "ac_cv_lib_panel$NCURSESLIBSUFFIX''_new_panel" | $as_tr_sh`
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_panel in -lpanel$NCURSESLIBSUFFIX" >&5
7466 $as_echo_n "checking for new_panel in -lpanel$NCURSESLIBSUFFIX... " >&6; }
7467 if eval \${$as_ac_Lib+:} false; then :
7468 $as_echo_n "(cached) " >&6
7470 ac_check_lib_save_LIBS=$LIBS
7471 LIBS="-lpanel$NCURSESLIBSUFFIX $LIBS"
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7475 /* Override any GCC internal prototype to avoid an error.
7476 Use char because int might match the return type of a GCC
7477 builtin and then its argument prototype would still apply. */
7485 return new_panel ();
7490 if ac_fn_c_try_link "$LINENO"; then :
7491 eval "$as_ac_Lib=yes"
7493 eval "$as_ac_Lib=no"
7495 rm -f core conftest.err conftest.$ac_objext \
7496 conftest$ac_exeext conftest.$ac_ext
7497 LIBS=$ac_check_lib_save_LIBS
7499 eval ac_res=\$$as_ac_Lib
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7501 $as_echo "$ac_res" >&6; }
7502 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7503 CURSESLIB="-lpanel$NCURSESLIBSUFFIX $CURSESLIB"
7505 as_fn_error $? "panel$NCURSESLIBSUFFIX library not found" "$LINENO" 5
7508 as_ac_Lib=`$as_echo "ac_cv_lib_menu$NCURSESLIBSUFFIX''_new_menu" | $as_tr_sh`
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_menu in -lmenu$NCURSESLIBSUFFIX" >&5
7510 $as_echo_n "checking for new_menu in -lmenu$NCURSESLIBSUFFIX... " >&6; }
7511 if eval \${$as_ac_Lib+:} false; then :
7512 $as_echo_n "(cached) " >&6
7514 ac_check_lib_save_LIBS=$LIBS
7515 LIBS="-lmenu$NCURSESLIBSUFFIX $LIBS"
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7519 /* Override any GCC internal prototype to avoid an error.
7520 Use char because int might match the return type of a GCC
7521 builtin and then its argument prototype would still apply. */
7534 if ac_fn_c_try_link "$LINENO"; then :
7535 eval "$as_ac_Lib=yes"
7537 eval "$as_ac_Lib=no"
7539 rm -f core conftest.err conftest.$ac_objext \
7540 conftest$ac_exeext conftest.$ac_ext
7541 LIBS=$ac_check_lib_save_LIBS
7543 eval ac_res=\$$as_ac_Lib
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7545 $as_echo "$ac_res" >&6; }
7546 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7547 CURSESLIB="-lmenu$NCURSESLIBSUFFIX $CURSESLIB"
7549 as_fn_error $? "menu$NCURSESLIBSUFFIX library not found" "$LINENO" 5
7552 as_ac_Lib=`$as_echo "ac_cv_lib_form$NCURSESLIBSUFFIX''_new_form" | $as_tr_sh`
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_form in -lform$NCURSESLIBSUFFIX" >&5
7554 $as_echo_n "checking for new_form in -lform$NCURSESLIBSUFFIX... " >&6; }
7555 if eval \${$as_ac_Lib+:} false; then :
7556 $as_echo_n "(cached) " >&6
7558 ac_check_lib_save_LIBS=$LIBS
7559 LIBS="-lform$NCURSESLIBSUFFIX $LIBS"
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h. */
7563 /* Override any GCC internal prototype to avoid an error.
7564 Use char because int might match the return type of a GCC
7565 builtin and then its argument prototype would still apply. */
7578 if ac_fn_c_try_link "$LINENO"; then :
7579 eval "$as_ac_Lib=yes"
7581 eval "$as_ac_Lib=no"
7583 rm -f core conftest.err conftest.$ac_objext \
7584 conftest$ac_exeext conftest.$ac_ext
7585 LIBS=$ac_check_lib_save_LIBS
7587 eval ac_res=\$$as_ac_Lib
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7589 $as_echo "$ac_res" >&6; }
7590 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7591 CURSESLIB="-lform$NCURSESLIBSUFFIX $CURSESLIB"
7593 as_fn_error $? "form$NCURSESLIBSUFFIX library not found" "$LINENO" 5
7597 CFLAGS="$saved_CFLAGS"
7598 LDFLAGS="$saved_LDFLAGS"
7601 if test -n "$CURSESLIBDIR"; then
7602 CURSESLIB="-L$CURSESLIBDIR $CURSESLIB"
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses linker flags" >&5
7606 $as_echo_n "checking for curses linker flags... " >&6; }
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSESLIB" >&5
7608 $as_echo "$CURSESLIB" >&6; }
7615 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7620 *) dir="$prefix/share"
7623 soundsdir="$dir/sounds/alsa"
7625 cat >>confdefs.h <<_ACEOF
7626 #define SOUNDSDIR "$soundsdir"
7630 mydatadir="$dir/alsa"
7632 cat >>confdefs.h <<_ACEOF
7633 #define DATADIR "$mydatadir"
7638 # Check whether --with-testsound was given.
7639 if test "${with_testsound+set}" = set; then :
7640 withval=$with_testsound; TESTSOUND="$withval"
7642 TESTSOUND="$dir/test.wav"
7647 ac_config_headers="$ac_config_headers include/aconfig.h"
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7651 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7652 if ${ac_cv_c_const+:} false; then :
7653 $as_echo_n "(cached) " >&6
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7661 /* FIXME: Include the comments suggested by Paul. */
7663 /* Ultrix mips cc rejects this. */
7664 typedef int charset[2];
7666 /* SunOS 4.1.1 cc rejects this. */
7667 char const *const *pcpcc;
7669 /* NEC SVR4.0.2 mips cc rejects this. */
7670 struct point {int x, y;};
7671 static struct point const zero = {0,0};
7672 /* AIX XL C 1.02.0.0 rejects this.
7673 It does not let you subtract one const X* pointer from another in
7674 an arm of an if-expression whose if-part is not a constant
7676 const char *g = "string";
7677 pcpcc = &g + (g ? g-g : 0);
7678 /* HPUX 7.0 cc rejects these. */
7680 ppc = (char**) pcpcc;
7681 pcpcc = (char const *const *) ppc;
7682 { /* SCO 3.2v4 cc rejects this. */
7684 char const *s = 0 ? (char *) 0 : (char const *) 0;
7689 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7691 const int *foo = &x[0];
7694 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7695 typedef const int *iptr;
7699 { /* AIX XL C 1.02.0.0 rejects this saying
7700 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7701 struct s { int j; const int *ap[3]; };
7702 struct s *b; b->j = 5;
7704 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7708 return !cs[0] && !zero.x;
7715 if ac_fn_c_try_compile "$LINENO"; then :
7720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7723 $as_echo "$ac_cv_c_const" >&6; }
7724 if test $ac_cv_c_const = no; then
7726 $as_echo "#define const /**/" >>confdefs.h
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7731 $as_echo_n "checking for inline... " >&6; }
7732 if ${ac_cv_c_inline+:} false; then :
7733 $as_echo_n "(cached) " >&6
7736 for ac_kw in inline __inline__ __inline; do
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7741 static $ac_kw foo_t static_foo () {return 0; }
7742 $ac_kw foo_t foo () {return 0; }
7746 if ac_fn_c_try_compile "$LINENO"; then :
7747 ac_cv_c_inline=$ac_kw
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7750 test "$ac_cv_c_inline" != no && break
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7755 $as_echo "$ac_cv_c_inline" >&6; }
7757 case $ac_cv_c_inline in
7760 case $ac_cv_c_inline in
7762 *) ac_val=$ac_cv_c_inline;;
7764 cat >>confdefs.h <<_ACEOF
7766 #define inline $ac_val
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7773 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7774 if ${ac_cv_header_time+:} false; then :
7775 $as_echo_n "(cached) " >&6
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7779 #include <sys/types.h>
7780 #include <sys/time.h>
7786 if ((struct tm *) 0)
7792 if ac_fn_c_try_compile "$LINENO"; then :
7793 ac_cv_header_time=yes
7795 ac_cv_header_time=no
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7800 $as_echo "$ac_cv_header_time" >&6; }
7801 if test $ac_cv_header_time = yes; then
7803 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7808 if test $ac_cv_c_compiler_gnu = yes; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
7810 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
7811 if ${ac_cv_prog_gcc_traditional+:} false; then :
7812 $as_echo_n "(cached) " >&6
7814 ac_pattern="Autoconf.*'x'"
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7821 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
7822 ac_cv_prog_gcc_traditional=yes
7824 ac_cv_prog_gcc_traditional=no
7829 if test $ac_cv_prog_gcc_traditional = no; then
7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h. */
7835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7836 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
7837 ac_cv_prog_gcc_traditional=yes
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
7844 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
7845 if test $ac_cv_prog_gcc_traditional = yes; then
7846 CC="$CC -traditional"
7851 # Check whether --enable-largefile was given.
7852 if test "${enable_largefile+set}" = set; then :
7853 enableval=$enable_largefile;
7856 if test "$enable_largefile" != no; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7859 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7860 if ${ac_cv_sys_largefile_CC+:} false; then :
7861 $as_echo_n "(cached) " >&6
7863 ac_cv_sys_largefile_CC=no
7864 if test "$GCC" != yes; then
7867 # IRIX 6.2 and later do not support large files by default,
7868 # so use the C compiler's -n32 option if that helps.
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7871 #include <sys/types.h>
7872 /* Check that off_t can represent 2**63 - 1 correctly.
7873 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7874 since some C++ compilers masquerading as C compilers
7875 incorrectly reject 9223372036854775807. */
7876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7877 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7878 && LARGE_OFF_T % 2147483647 == 1)
7888 if ac_fn_c_try_compile "$LINENO"; then :
7891 rm -f core conftest.err conftest.$ac_objext
7893 if ac_fn_c_try_compile "$LINENO"; then :
7894 ac_cv_sys_largefile_CC=' -n32'; break
7896 rm -f core conftest.err conftest.$ac_objext
7900 rm -f conftest.$ac_ext
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7904 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7905 if test "$ac_cv_sys_largefile_CC" != no; then
7906 CC=$CC$ac_cv_sys_largefile_CC
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7910 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7911 if ${ac_cv_sys_file_offset_bits+:} false; then :
7912 $as_echo_n "(cached) " >&6
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7917 #include <sys/types.h>
7918 /* Check that off_t can represent 2**63 - 1 correctly.
7919 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7920 since some C++ compilers masquerading as C compilers
7921 incorrectly reject 9223372036854775807. */
7922 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7923 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7924 && LARGE_OFF_T % 2147483647 == 1)
7934 if ac_fn_c_try_compile "$LINENO"; then :
7935 ac_cv_sys_file_offset_bits=no; break
7937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7940 #define _FILE_OFFSET_BITS 64
7941 #include <sys/types.h>
7942 /* Check that off_t can represent 2**63 - 1 correctly.
7943 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7944 since some C++ compilers masquerading as C compilers
7945 incorrectly reject 9223372036854775807. */
7946 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7947 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7948 && LARGE_OFF_T % 2147483647 == 1)
7958 if ac_fn_c_try_compile "$LINENO"; then :
7959 ac_cv_sys_file_offset_bits=64; break
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 ac_cv_sys_file_offset_bits=unknown
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7967 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7968 case $ac_cv_sys_file_offset_bits in #(
7971 cat >>confdefs.h <<_ACEOF
7972 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7977 if test $ac_cv_sys_file_offset_bits = unknown; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7979 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7980 if ${ac_cv_sys_large_files+:} false; then :
7981 $as_echo_n "(cached) " >&6
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 #include <sys/types.h>
7987 /* Check that off_t can represent 2**63 - 1 correctly.
7988 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7989 since some C++ compilers masquerading as C compilers
7990 incorrectly reject 9223372036854775807. */
7991 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7992 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7993 && LARGE_OFF_T % 2147483647 == 1)
8003 if ac_fn_c_try_compile "$LINENO"; then :
8004 ac_cv_sys_large_files=no; break
8006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8009 #define _LARGE_FILES 1
8010 #include <sys/types.h>
8011 /* Check that off_t can represent 2**63 - 1 correctly.
8012 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8013 since some C++ compilers masquerading as C compilers
8014 incorrectly reject 9223372036854775807. */
8015 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8016 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8017 && LARGE_OFF_T % 2147483647 == 1)
8027 if ac_fn_c_try_compile "$LINENO"; then :
8028 ac_cv_sys_large_files=1; break
8030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 ac_cv_sys_large_files=unknown
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8036 $as_echo "$ac_cv_sys_large_files" >&6; }
8037 case $ac_cv_sys_large_files in #(
8040 cat >>confdefs.h <<_ACEOF
8041 #define _LARGE_FILES $ac_cv_sys_large_files
8051 SND_UTIL_VERSION=$VERSION
8052 echo $VERSION > $srcdir/version
8054 cat >>confdefs.h <<_ACEOF
8055 #define VERSION "$SND_UTIL_VERSION"
8059 SND_UTIL_MAJOR=`echo $VERSION | cut -d . -f 1`
8061 SND_UTIL_MINOR=`echo $VERSION | cut -d . -f 2`
8063 SND_UTIL_SUBMINOR=`echo $VERSION | cut -d . -f 3 | sed -e 's/pre[0-9]*//g'`
8071 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8072 if test -n "$ac_tool_prefix"; then
8073 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8074 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8078 $as_echo_n "(cached) " >&6
8082 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8092 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8103 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8104 if test -n "$PKG_CONFIG"; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8106 $as_echo "$PKG_CONFIG" >&6; }
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8114 if test -z "$ac_cv_path_PKG_CONFIG"; then
8115 ac_pt_PKG_CONFIG=$PKG_CONFIG
8116 # Extract the first word of "pkg-config", so it can be a program name with args.
8117 set dummy pkg-config; ac_word=$2
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119 $as_echo_n "checking for $ac_word... " >&6; }
8120 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8121 $as_echo_n "(cached) " >&6
8123 case $ac_pt_PKG_CONFIG in
8125 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 test -z "$as_dir" && as_dir=.
8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8135 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8147 if test -n "$ac_pt_PKG_CONFIG"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8149 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8155 if test "x$ac_pt_PKG_CONFIG" = x; then
8158 case $cross_compiling:$ac_tool_warned in
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8162 ac_tool_warned=yes ;;
8164 PKG_CONFIG=$ac_pt_PKG_CONFIG
8167 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8171 if test -n "$PKG_CONFIG"; then
8172 _pkg_min_version=0.9.0
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8174 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8175 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8177 $as_echo "yes" >&6; }
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 $as_echo "no" >&6; }
8186 # Check whether --with-systemdsystemunitdir was given.
8187 if test "${with_systemdsystemunitdir+set}" = set; then :
8188 withval=$with_systemdsystemunitdir;
8190 with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
8193 if test "x$with_systemdsystemunitdir" != xno; then
8194 systemdsystemunitdir=$with_systemdsystemunitdir
8197 if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
8199 HAVE_SYSTEMD_FALSE='#'
8201 HAVE_SYSTEMD_TRUE='#'
8207 # Check whether --with-asound-state-dir was given.
8208 if test "${with_asound_state_dir+set}" = set; then :
8209 withval=$with_asound_state_dir; ASOUND_STATE_DIR="$withval"
8211 ASOUND_STATE_DIR="/var/lib/alsa"
8216 ac_config_files="$ac_config_files Makefile alsactl/Makefile alsactl/init/Makefile alsamixer/Makefile amidi/Makefile amixer/Makefile m4/Makefile po/Makefile.in alsaconf/alsaconf alsaconf/Makefile alsaconf/po/Makefile alsaucm/Makefile aplay/Makefile include/Makefile iecset/Makefile utils/Makefile utils/alsa-utils.spec seq/Makefile seq/aconnect/Makefile seq/aplaymidi/Makefile seq/aseqdump/Makefile seq/aseqnet/Makefile speaker-test/Makefile speaker-test/samples/Makefile alsaloop/Makefile"
8218 cat >confcache <<\_ACEOF
8219 # This file is a shell script that caches the results of configure
8220 # tests run on this system so they can be shared between configure
8221 # scripts and configure runs, see configure's option --config-cache.
8222 # It is not useful on other systems. If it contains results you don't
8223 # want to keep, you may remove or edit it.
8225 # config.status only pays attention to the cache file if you give it
8226 # the --recheck option to rerun configure.
8228 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8229 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8234 # The following way of writing the cache mishandles newlines in values,
8235 # but we know of no workaround that is simple, portable, and efficient.
8236 # So, we kill variables containing newlines.
8237 # Ultrix sh set writes to stderr and can't be redirected directly,
8238 # and sets the high bit in the cache file unless we assign to the vars.
8240 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8241 eval ac_val=\$$ac_var
8245 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8246 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8249 _ | IFS | as_nl) ;; #(
8250 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8251 *) { eval $ac_var=; unset $ac_var;} ;;
8257 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8258 *${as_nl}ac_space=\ *)
8259 # `set' does not quote correctly, so add quotes: double-quote
8260 # substitution turns \\\\ into \\, and sed turns \\ into \.
8263 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8266 # `set' quotes correctly as required by POSIX, so do not add quotes.
8267 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8276 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8278 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8280 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8281 if test -w "$cache_file"; then
8282 if test "x$cache_file" != "x/dev/null"; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8284 $as_echo "$as_me: updating cache $cache_file" >&6;}
8285 if test ! -f "$cache_file" || test -h "$cache_file"; then
8286 cat confcache >"$cache_file"
8288 case $cache_file in #(
8290 mv -f confcache "$cache_file"$$ &&
8291 mv -f "$cache_file"$$ "$cache_file" ;; #(
8293 mv -f confcache "$cache_file" ;;
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8299 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8304 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8305 # Let make expand exec_prefix.
8306 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8308 DEFS=-DHAVE_CONFIG_H
8313 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8314 # 1. Remove the extension, and $U if already installed.
8315 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8316 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8317 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8318 # will be set to the directory where LIBOBJS objects are built.
8319 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8320 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8324 LTLIBOBJS=$ac_ltlibobjs
8327 if test -n "$EXEEXT"; then
8329 am__EXEEXT_FALSE='#'
8335 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8336 as_fn_error $? "conditional \"AMDEP\" was never defined.
8337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8339 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8340 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8343 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8344 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8347 if test -z "${HAVE_PCM_TRUE}" && test -z "${HAVE_PCM_FALSE}"; then
8348 as_fn_error $? "conditional \"HAVE_PCM\" was never defined.
8349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8351 if test -z "${HAVE_MIXER_TRUE}" && test -z "${HAVE_MIXER_FALSE}"; then
8352 as_fn_error $? "conditional \"HAVE_MIXER\" was never defined.
8353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8355 if test -z "${HAVE_RAWMIDI_TRUE}" && test -z "${HAVE_RAWMIDI_FALSE}"; then
8356 as_fn_error $? "conditional \"HAVE_RAWMIDI\" was never defined.
8357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8359 if test -z "${HAVE_SEQ_TRUE}" && test -z "${HAVE_SEQ_FALSE}"; then
8360 as_fn_error $? "conditional \"HAVE_SEQ\" was never defined.
8361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8363 if test -z "${HAVE_SAMPLERATE_TRUE}" && test -z "${HAVE_SAMPLERATE_FALSE}"; then
8364 as_fn_error $? "conditional \"HAVE_SAMPLERATE\" was never defined.
8365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8367 if test -z "${ALSAMIXER_TRUE}" && test -z "${ALSAMIXER_FALSE}"; then
8368 as_fn_error $? "conditional \"ALSAMIXER\" was never defined.
8369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8371 if test -z "${ALSACONF_TRUE}" && test -z "${ALSACONF_FALSE}"; then
8372 as_fn_error $? "conditional \"ALSACONF\" was never defined.
8373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8375 if test -z "${ALSALOOP_TRUE}" && test -z "${ALSALOOP_FALSE}"; then
8376 as_fn_error $? "conditional \"ALSALOOP\" was never defined.
8377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8379 if test -z "${USE_XMLTO_TRUE}" && test -z "${USE_XMLTO_FALSE}"; then
8380 as_fn_error $? "conditional \"USE_XMLTO\" was never defined.
8381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8383 if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
8384 as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
8385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8388 : "${CONFIG_STATUS=./config.status}"
8390 ac_clean_files_save=$ac_clean_files
8391 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8393 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8395 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8397 # Generated by $as_me.
8398 # Run this file to recreate the current configuration.
8399 # Compiler output produced by configure, useful for debugging
8400 # configure, is in config.log if it exists.
8406 SHELL=\${CONFIG_SHELL-$SHELL}
8409 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8410 ## -------------------- ##
8411 ## M4sh Initialization. ##
8412 ## -------------------- ##
8414 # Be more Bourne compatible
8415 DUALCASE=1; export DUALCASE # for MKS sh
8416 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8419 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8420 # is contrary to our usage. Disable this feature.
8421 alias -g '${1+"$@"}'='"$@"'
8422 setopt NO_GLOB_SUBST
8424 case `(set -o) 2>/dev/null` in #(
8436 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8437 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8438 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8439 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8440 # Prefer a ksh shell builtin over an external printf program on Solaris,
8441 # but without wasting forks for bash or zsh.
8442 if test -z "$BASH_VERSION$ZSH_VERSION" \
8443 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8444 as_echo='print -r --'
8445 as_echo_n='print -rn --'
8446 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8447 as_echo='printf %s\n'
8448 as_echo_n='printf %s'
8450 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8451 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8452 as_echo_n='/usr/ucb/echo -n'
8454 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8455 as_echo_n_body='eval
8459 expr "X$arg" : "X\\(.*\\)$as_nl";
8460 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8462 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8464 export as_echo_n_body
8465 as_echo_n='sh -c $as_echo_n_body as_echo'
8468 as_echo='sh -c $as_echo_body as_echo'
8471 # The user is always right.
8472 if test "${PATH_SEPARATOR+set}" != set; then
8474 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8475 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8482 # We need space, tab and new line, in precisely that order. Quoting is
8483 # there to prevent editors from complaining about space-tab.
8484 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8485 # splitting by setting IFS to empty value.)
8488 # Find who we are. Look in the path if we contain no directory separator.
8491 *[\\/]* ) as_myself=$0 ;;
8492 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 test -z "$as_dir" && as_dir=.
8497 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8503 # We did not find ourselves, most probably we were run as `sh COMMAND'
8504 # in which case we are not to be found in the path.
8505 if test "x$as_myself" = x; then
8508 if test ! -f "$as_myself"; then
8509 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8513 # Unset variables that we do not need and which cause bugs (e.g. in
8514 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8515 # suppresses any "Segmentation fault" message there. '((' could
8516 # trigger a bug in pdksh 5.2.14.
8517 for as_var in BASH_ENV ENV MAIL MAILPATH
8518 do eval test x\${$as_var+set} = xset \
8519 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8532 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8535 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8536 # ----------------------------------------
8537 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8538 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8539 # script with STATUS, using 1 if that was 0.
8542 as_status=$1; test $as_status -eq 0 && as_status=1
8544 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8545 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8547 $as_echo "$as_me: error: $2" >&2
8548 as_fn_exit $as_status
8552 # as_fn_set_status STATUS
8553 # -----------------------
8554 # Set $? to STATUS, without forking.
8558 } # as_fn_set_status
8562 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8572 # Portably unset VAR.
8575 { eval $1=; unset $1;}
8577 as_unset=as_fn_unset
8578 # as_fn_append VAR VALUE
8579 # ----------------------
8580 # Append the text in VALUE to the end of the definition contained in VAR. Take
8581 # advantage of any shell optimizations that allow amortized linear growth over
8582 # repeated appends, instead of the typical quadratic growth present in naive
8584 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8585 eval 'as_fn_append ()
8596 # as_fn_arith ARG...
8597 # ------------------
8598 # Perform arithmetic evaluation on the ARGs, and store the result in the
8599 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8600 # must be portable across $(()) and expr.
8601 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8602 eval 'as_fn_arith ()
8609 as_val=`expr "$@" || test $? -eq 1`
8614 if expr a : '\(a\)' >/dev/null 2>&1 &&
8615 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8621 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8622 as_basename=basename
8627 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8633 as_me=`$as_basename -- "$0" ||
8634 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8635 X"$0" : 'X\(//\)$' \| \
8636 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8638 sed '/^.*\/\([^/][^/]*\)\/*$/{
8652 # Avoid depending upon Character Ranges.
8653 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8654 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8655 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8656 as_cr_digits='0123456789'
8657 as_cr_alnum=$as_cr_Letters$as_cr_digits
8659 ECHO_C= ECHO_N= ECHO_T=
8660 case `echo -n x` in #(((((
8662 case `echo 'xy\c'` in
8663 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8665 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8672 rm -f conf$$ conf$$.exe conf$$.file
8673 if test -d conf$$.dir; then
8674 rm -f conf$$.dir/conf$$.file
8677 mkdir conf$$.dir 2>/dev/null
8679 if (echo >conf$$.file) 2>/dev/null; then
8680 if ln -s conf$$.file conf$$ 2>/dev/null; then
8682 # ... but there are two gotchas:
8683 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8684 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8685 # In both cases, we have to default to `cp -p'.
8686 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8688 elif ln conf$$.file conf$$ 2>/dev/null; then
8696 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8697 rmdir conf$$.dir 2>/dev/null
8702 # Create "$as_dir" as a directory, including parents if necessary.
8707 -*) as_dir=./$as_dir;;
8709 test -d "$as_dir" || eval $as_mkdir_p || {
8713 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8714 *) as_qdir=$as_dir;;
8716 as_dirs="'$as_qdir' $as_dirs"
8717 as_dir=`$as_dirname -- "$as_dir" ||
8718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8719 X"$as_dir" : 'X\(//\)[^/]' \| \
8720 X"$as_dir" : 'X\(//\)$' \| \
8721 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8722 $as_echo X"$as_dir" |
8723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8740 test -d "$as_dir" && break
8742 test -z "$as_dirs" || eval "mkdir $as_dirs"
8743 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8747 if mkdir -p . 2>/dev/null; then
8748 as_mkdir_p='mkdir -p "$as_dir"'
8750 test -d ./-p && rmdir ./-p
8754 if test -x / >/dev/null 2>&1; then
8757 if ls -dL / >/dev/null 2>&1; then
8764 if test -d "$1"; then
8770 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8771 ???[sx]*):;;*)false;;esac;fi
8775 as_executable_p=$as_test_x
8777 # Sed expression to map a string onto a valid CPP name.
8778 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8780 # Sed expression to map a string onto a valid variable name.
8781 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8785 ## ----------------------------------- ##
8786 ## Main body of $CONFIG_STATUS script. ##
8787 ## ----------------------------------- ##
8789 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8792 # Save the log message, to keep $0 and so on meaningful, and to
8793 # report actual input values of CONFIG_FILES etc. instead of their
8794 # values after options handling.
8796 This file was extended by $as_me, which was
8797 generated by GNU Autoconf 2.68. Invocation command line was
8799 CONFIG_FILES = $CONFIG_FILES
8800 CONFIG_HEADERS = $CONFIG_HEADERS
8801 CONFIG_LINKS = $CONFIG_LINKS
8802 CONFIG_COMMANDS = $CONFIG_COMMANDS
8805 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8810 case $ac_config_files in *"
8811 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8814 case $ac_config_headers in *"
8815 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8820 # Files that config.status was made for.
8821 config_files="$ac_config_files"
8822 config_headers="$ac_config_headers"
8823 config_commands="$ac_config_commands"
8827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8829 \`$as_me' instantiates files and other configuration actions
8830 from templates according to the current configuration. Unless the files
8831 and actions are specified as TAGs, all are instantiated by default.
8833 Usage: $0 [OPTION]... [TAG]...
8835 -h, --help print this help, then exit
8836 -V, --version print version number and configuration settings, then exit
8837 --config print configuration, then exit
8838 -q, --quiet, --silent
8839 do not print progress messages
8840 -d, --debug don't remove temporary files
8841 --recheck update $as_me by reconfiguring in the same conditions
8842 --file=FILE[:TEMPLATE]
8843 instantiate the configuration file FILE
8844 --header=FILE[:TEMPLATE]
8845 instantiate the configuration header FILE
8847 Configuration files:
8850 Configuration headers:
8853 Configuration commands:
8856 Report bugs to the package provider."
8859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8860 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8863 configured by $0, generated by GNU Autoconf 2.68,
8864 with options \\"\$ac_cs_config\\"
8866 Copyright (C) 2010 Free Software Foundation, Inc.
8867 This config.status script is free software; the Free Software Foundation
8868 gives unlimited permission to copy, distribute and modify it."
8875 test -n "\$AWK" || AWK=awk
8878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8879 # The default lists apply if the user does not specify any file.
8885 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8886 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8890 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8902 # Handling of the options.
8903 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8905 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8906 $as_echo "$ac_cs_version"; exit ;;
8907 --config | --confi | --conf | --con | --co | --c )
8908 $as_echo "$ac_cs_config"; exit ;;
8909 --debug | --debu | --deb | --de | --d | -d )
8911 --file | --fil | --fi | --f )
8914 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8915 '') as_fn_error $? "missing file argument" ;;
8917 as_fn_append CONFIG_FILES " '$ac_optarg'"
8918 ac_need_defaults=false;;
8919 --header | --heade | --head | --hea )
8922 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8924 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8925 ac_need_defaults=false;;
8927 # Conflict between --help and --header
8928 as_fn_error $? "ambiguous option: \`$1'
8929 Try \`$0 --help' for more information.";;
8930 --help | --hel | -h )
8931 $as_echo "$ac_cs_usage"; exit ;;
8932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8933 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8937 -*) as_fn_error $? "unrecognized option: \`$1'
8938 Try \`$0 --help' for more information." ;;
8940 *) as_fn_append ac_config_targets " $1"
8941 ac_need_defaults=false ;;
8947 ac_configure_extra_args=
8949 if $ac_cs_silent; then
8951 ac_configure_extra_args="$ac_configure_extra_args --silent"
8955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8956 if \$ac_cs_recheck; then
8957 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8959 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8960 CONFIG_SHELL='$SHELL'
8966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8970 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8971 ## Running $as_me. ##
8977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8981 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8982 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8983 # from automake < 1.5.
8984 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8985 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8986 LINGUAS="${LINGUAS-%UNSET%}"
8988 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8994 # Handling of arguments.
8995 for ac_config_target in $ac_config_targets
8997 case $ac_config_target in
8998 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
8999 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9000 "include/aconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/aconfig.h" ;;
9001 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9002 "alsactl/Makefile") CONFIG_FILES="$CONFIG_FILES alsactl/Makefile" ;;
9003 "alsactl/init/Makefile") CONFIG_FILES="$CONFIG_FILES alsactl/init/Makefile" ;;
9004 "alsamixer/Makefile") CONFIG_FILES="$CONFIG_FILES alsamixer/Makefile" ;;
9005 "amidi/Makefile") CONFIG_FILES="$CONFIG_FILES amidi/Makefile" ;;
9006 "amixer/Makefile") CONFIG_FILES="$CONFIG_FILES amixer/Makefile" ;;
9007 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
9008 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9009 "alsaconf/alsaconf") CONFIG_FILES="$CONFIG_FILES alsaconf/alsaconf" ;;
9010 "alsaconf/Makefile") CONFIG_FILES="$CONFIG_FILES alsaconf/Makefile" ;;
9011 "alsaconf/po/Makefile") CONFIG_FILES="$CONFIG_FILES alsaconf/po/Makefile" ;;
9012 "alsaucm/Makefile") CONFIG_FILES="$CONFIG_FILES alsaucm/Makefile" ;;
9013 "aplay/Makefile") CONFIG_FILES="$CONFIG_FILES aplay/Makefile" ;;
9014 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9015 "iecset/Makefile") CONFIG_FILES="$CONFIG_FILES iecset/Makefile" ;;
9016 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
9017 "utils/alsa-utils.spec") CONFIG_FILES="$CONFIG_FILES utils/alsa-utils.spec" ;;
9018 "seq/Makefile") CONFIG_FILES="$CONFIG_FILES seq/Makefile" ;;
9019 "seq/aconnect/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aconnect/Makefile" ;;
9020 "seq/aplaymidi/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aplaymidi/Makefile" ;;
9021 "seq/aseqdump/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aseqdump/Makefile" ;;
9022 "seq/aseqnet/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aseqnet/Makefile" ;;
9023 "speaker-test/Makefile") CONFIG_FILES="$CONFIG_FILES speaker-test/Makefile" ;;
9024 "speaker-test/samples/Makefile") CONFIG_FILES="$CONFIG_FILES speaker-test/samples/Makefile" ;;
9025 "alsaloop/Makefile") CONFIG_FILES="$CONFIG_FILES alsaloop/Makefile" ;;
9027 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9032 # If the user did not use the arguments to specify the items to instantiate,
9033 # then the envvar interface is used. Set only those that are not.
9034 # We use the long form for the default assignment because of an extremely
9035 # bizarre bug on SunOS 4.1.3.
9036 if $ac_need_defaults; then
9037 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9038 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9039 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9042 # Have a temporary directory for convenience. Make it in the build tree
9043 # simply because there is no reason against having it here, and in addition,
9044 # creating and moving files from /tmp can sometimes cause problems.
9045 # Hook for its removal unless debugging.
9046 # Note that there is a small window in which the directory will not be cleaned:
9047 # after its creation but before its name has been assigned to `$tmp'.
9051 trap 'exit_status=$?
9053 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9055 trap 'as_fn_exit 1' 1 2 13 15
9057 # Create a (secure) tmp directory for tmp files.
9060 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9064 tmp=./conf$$-$RANDOM
9065 (umask 077 && mkdir "$tmp")
9066 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9069 # Set up the scripts for CONFIG_FILES section.
9070 # No need to generate them if there are no CONFIG_FILES.
9071 # This happens for instance with `./config.status config.h'.
9072 if test -n "$CONFIG_FILES"; then
9075 ac_cr=`echo X | tr X '\015'`
9076 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9077 # But we know of no other shell where ac_cr would be empty at this
9078 # point, so we can use a bashism as a fallback.
9079 if test "x$ac_cr" = x; then
9080 eval ac_cr=\$\'\\r\'
9082 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9083 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9089 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9094 echo "cat >conf$$subs.awk <<_ACEOF" &&
9095 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9098 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9099 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9101 for ac_last_try in false false false false false :; do
9102 . ./conf$$subs.sh ||
9103 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9105 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9106 if test $ac_delim_n = $ac_delim_num; then
9108 elif $ac_last_try; then
9109 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9111 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9117 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9121 s/^/S["/; s/!.*/"]=/
9131 s/\(.\{148\}\)..*/\1/
9133 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9138 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9145 s/\(.\{148\}\)..*/\1/
9147 s/["\\]/\\&/g; s/^/"/; s/$/"/
9151 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9156 ' <conf$$subs.awk | sed '
9161 ' >>$CONFIG_STATUS || ac_write_fail=1
9162 rm -f conf$$subs.awk
9163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9165 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9166 for (key in S) S_is_set[key] = 1
9172 nfields = split(line, field, "@")
9174 len = length(field[1])
9175 for (i = 2; i < nfields; i++) {
9177 keylen = length(key)
9178 if (S_is_set[key]) {
9180 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9181 len += length(value) + length(field[++i])
9192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9193 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9194 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9197 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9198 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9201 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9202 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9203 # trailing colons and then remove the whole line if VPATH becomes empty
9204 # (actually we leave an empty line to preserve line numbers).
9205 if test "x$srcdir" = x.; then
9206 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9225 fi # test -n "$CONFIG_FILES"
9227 # Set up the scripts for CONFIG_HEADERS section.
9228 # No need to generate them if there are no CONFIG_HEADERS.
9229 # This happens for instance with `./config.status Makefile'.
9230 if test -n "$CONFIG_HEADERS"; then
9231 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9235 # Transform confdefs.h into an awk script `defines.awk', embedded as
9236 # here-document in config.status, that substitutes the proper values into
9237 # config.h.in to produce config.h.
9239 # Create a delimiter string that does not exist in confdefs.h, to ease
9240 # handling of long lines.
9242 for ac_last_try in false false :; do
9243 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9244 if test -z "$ac_tt"; then
9246 elif $ac_last_try; then
9247 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9253 # For the awk script, D is an array of macro values keyed by name,
9254 # likewise P contains macro parameters if any. Preserve backslash
9255 # newline sequences.
9257 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9259 s/.\{148\}/&'"$ac_delim"'/g
9262 s/^[ ]*#[ ]*define[ ][ ]*/ /
9269 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9271 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9275 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9276 D["\1"]=" \3\\\\\\n"\\/p
9278 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9283 s/.\{148\}/&'"$ac_delim"'/g
9288 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9291 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9293 ' <confdefs.h | sed '
9294 s/'"$ac_delim"'/"\\\
9295 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9298 for (key in D) D_is_set[key] = 1
9301 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9303 split(line, arg, " ")
9304 if (arg[1] == "#") {
9308 defundef = substr(arg[1], 2)
9311 split(mac1, mac2, "(") #)
9313 prefix = substr(line, 1, index(line, defundef) - 1)
9314 if (D_is_set[macro]) {
9315 # Preserve the white space surrounding the "#".
9316 print prefix "define", macro P[macro] D[macro]
9319 # Replace #undef with comments. This is necessary, for example,
9320 # in the case of _POSIX_SOURCE, which is predefined and required
9321 # on some systems where configure will not decide to define it.
9322 if (defundef == "undef") {
9323 print "/*", prefix defundef, macro, "*/"
9331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9332 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9333 fi # test -n "$CONFIG_HEADERS"
9336 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9341 :[FHLC]) ac_mode=$ac_tag; continue;;
9343 case $ac_mode$ac_tag in
9345 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9346 :[FH]-) ac_tag=-:-;;
9347 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9364 -) ac_f="$ac_tmp/stdin";;
9365 *) # Look for the file first in the build tree, then in the source tree
9366 # (if the path is not absolute). The absolute path cannot be DOS-style,
9367 # because $ac_f cannot contain `:'.
9371 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9373 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9375 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9376 as_fn_append ac_file_inputs " '$ac_f'"
9379 # Let's still pretend it is `configure' which instantiates (i.e., don't
9380 # use $as_me), people would be surprised to read:
9381 # /* config.h. Generated by config.status. */
9382 configure_input='Generated from '`
9383 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9385 if test x"$ac_file" != x-; then
9386 configure_input="$ac_file. $configure_input"
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9388 $as_echo "$as_me: creating $ac_file" >&6;}
9390 # Neutralize special characters interpreted by sed in replacement strings.
9391 case $configure_input in #(
9392 *\&* | *\|* | *\\* )
9393 ac_sed_conf_input=`$as_echo "$configure_input" |
9394 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9395 *) ac_sed_conf_input=$configure_input;;
9399 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9400 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9405 ac_dir=`$as_dirname -- "$ac_file" ||
9406 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9407 X"$ac_file" : 'X\(//\)[^/]' \| \
9408 X"$ac_file" : 'X\(//\)$' \| \
9409 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9410 $as_echo X"$ac_file" |
9411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9428 as_dir="$ac_dir"; as_fn_mkdir_p
9432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9435 # A ".." for each directory in $ac_dir_suffix.
9436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9437 case $ac_top_builddir_sub in
9438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9442 ac_abs_top_builddir=$ac_pwd
9443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9444 # for backward compatibility:
9445 ac_top_builddir=$ac_top_build_prefix
9448 .) # We are building in place.
9450 ac_top_srcdir=$ac_top_builddir_sub
9451 ac_abs_top_srcdir=$ac_pwd ;;
9452 [\\/]* | ?:[\\/]* ) # Absolute name.
9453 ac_srcdir=$srcdir$ac_dir_suffix;
9454 ac_top_srcdir=$srcdir
9455 ac_abs_top_srcdir=$srcdir ;;
9457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9458 ac_top_srcdir=$ac_top_build_prefix$srcdir
9459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9471 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9472 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9476 [\\/$]* | ?:[\\/]* ) ;;
9477 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9482 # If the template does not know about datarootdir, expand it.
9483 # FIXME: This hack should be removed a few years after 2.60.
9484 ac_datarootdir_hack=; ac_datarootdir_seen=
9495 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9496 *datarootdir*) ac_datarootdir_seen=yes;;
9497 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9499 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9502 ac_datarootdir_hack='
9503 s&@datadir@&$datadir&g
9504 s&@docdir@&$docdir&g
9505 s&@infodir@&$infodir&g
9506 s&@localedir@&$localedir&g
9507 s&@mandir@&$mandir&g
9508 s&\\\${datarootdir}&$datarootdir&g' ;;
9512 # Neutralize VPATH when `$srcdir' = `.'.
9513 # Shell code in configure.ac might set extrasub.
9514 # FIXME: do we really want to maintain this feature?
9515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9516 ac_sed_extra="$ac_vpsub
9519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9521 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9522 s|@configure_input@|$ac_sed_conf_input|;t t
9523 s&@top_builddir@&$ac_top_builddir_sub&;t t
9524 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9525 s&@srcdir@&$ac_srcdir&;t t
9526 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9527 s&@top_srcdir@&$ac_top_srcdir&;t t
9528 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9529 s&@builddir@&$ac_builddir&;t t
9530 s&@abs_builddir@&$ac_abs_builddir&;t t
9531 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9532 s&@INSTALL@&$ac_INSTALL&;t t
9533 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9534 $ac_datarootdir_hack
9536 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9537 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9539 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9540 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9541 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9542 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9544 which seems to be undefined. Please make sure it is defined" >&5
9545 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9546 which seems to be undefined. Please make sure it is defined" >&2;}
9548 rm -f "$ac_tmp/stdin"
9550 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9551 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9553 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9559 if test x"$ac_file" != x-; then
9561 $as_echo "/* $configure_input */" \
9562 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9563 } >"$ac_tmp/config.h" \
9564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9565 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9567 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9570 mv "$ac_tmp/config.h" "$ac_file" \
9571 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9574 $as_echo "/* $configure_input */" \
9575 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9576 || as_fn_error $? "could not create -" "$LINENO" 5
9578 # Compute "$ac_file"'s index in $config_headers.
9581 for _am_header in $config_headers :; do
9583 $_am_arg | $_am_arg:* )
9586 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9589 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9590 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9591 X"$_am_arg" : 'X\(//\)[^/]' \| \
9592 X"$_am_arg" : 'X\(//\)$' \| \
9593 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9594 $as_echo X"$_am_arg" |
9595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9611 s/.*/./; q'`/stamp-h$_am_stamp_count
9614 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9615 $as_echo "$as_me: executing $ac_file commands" >&6;}
9620 case $ac_file$ac_mode in
9622 for ac_file in $CONFIG_FILES; do
9623 # Support "outfile[:infile[:infile...]]"
9625 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9627 # PO directories have a Makefile.in generated from Makefile.in.in.
9628 case "$ac_file" in */Makefile.in)
9629 # Adjust a relative srcdir.
9630 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9631 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9632 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9633 # In autoconf-2.13 it is called $ac_given_srcdir.
9634 # In autoconf-2.50 it is called $srcdir.
9635 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9636 case "$ac_given_srcdir" in
9637 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9638 /*) top_srcdir="$ac_given_srcdir" ;;
9639 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9641 # Treat a directory as a PO directory if and only if it has a
9642 # POTFILES.in file. This allows packages to have multiple PO
9643 # directories under different names or in different locations.
9644 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9645 rm -f "$ac_dir/POTFILES"
9646 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9647 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9648 POMAKEFILEDEPS="POTFILES.in"
9649 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9650 # on $ac_dir but don't depend on user-specified configuration
9652 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9653 # The LINGUAS file contains the set of available languages.
9654 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9655 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9657 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9658 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9659 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9660 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9662 # The set of available languages was given in configure.in.
9663 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9664 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9667 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9668 # Compute UPDATEPOFILES
9669 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9670 # Compute DUMMYPOFILES
9671 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9673 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9674 case "$ac_given_srcdir" in
9676 *) srcdirpre='$(srcdir)/' ;;
9682 for lang in $ALL_LINGUAS; do
9683 POFILES="$POFILES $srcdirpre$lang.po"
9684 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9685 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9686 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9688 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9689 # environment variable.
9691 if test -n "$ALL_LINGUAS"; then
9692 for presentlang in $ALL_LINGUAS; do
9694 if test "%UNSET%" != "$LINGUAS"; then
9695 desiredlanguages="$LINGUAS"
9697 desiredlanguages="$ALL_LINGUAS"
9699 for desiredlang in $desiredlanguages; do
9700 # Use the presentlang catalog if desiredlang is
9701 # a. equal to presentlang, or
9702 # b. a variant of presentlang (because in this case,
9703 # presentlang can be used as a fallback for messages
9704 # which are not translated in the desiredlang catalog).
9705 case "$desiredlang" in
9706 "$presentlang"*) useit=yes;;
9709 if test $useit = yes; then
9710 INST_LINGUAS="$INST_LINGUAS $presentlang"
9715 if test -n "$INST_LINGUAS"; then
9716 for lang in $INST_LINGUAS; do
9717 CATALOGS="$CATALOGS $lang.gmo"
9720 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9721 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9722 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9723 if test -f "$f"; then
9725 *.orig | *.bak | *~) ;;
9726 *) cat "$f" >> "$ac_dir/Makefile" ;;
9734 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9735 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9736 # are listed without --file. Let's play safe and only enable the eval
9737 # if we detect the quoting.
9738 case $CONFIG_FILES in
9739 *\'*) eval set x "$CONFIG_FILES" ;;
9740 *) set x $CONFIG_FILES ;;
9745 # Strip MF so we end up with the name of the file.
9746 mf=`echo "$mf" | sed -e 's/:.*$//'`
9747 # Check whether this is an Automake generated Makefile or not.
9748 # We used to match only the files named `Makefile.in', but
9749 # some people rename them; so instead we look at the file content.
9750 # Grep'ing the first line is not enough: some people post-process
9751 # each Makefile.in and add a new line on top of each file to say so.
9752 # Grep'ing the whole file is not good either: AIX grep has a line
9753 # limit of 2048, but all sed's we know have understand at least 4000.
9754 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9755 dirpart=`$as_dirname -- "$mf" ||
9756 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9757 X"$mf" : 'X\(//\)[^/]' \| \
9758 X"$mf" : 'X\(//\)$' \| \
9759 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9781 # Extract the definition of DEPDIR, am__include, and am__quote
9782 # from the Makefile without running `make'.
9783 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9784 test -z "$DEPDIR" && continue
9785 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9786 test -z "am__include" && continue
9787 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9788 # When using ansi2knr, U may be empty or an underscore; expand it
9789 U=`sed -n 's/^U = //p' < "$mf"`
9790 # Find all dependency output files, they are included files with
9791 # $(DEPDIR) in their names. We invoke sed twice because it is the
9792 # simplest approach to changing $(DEPDIR) to its actual value in the
9794 for file in `sed -n "
9795 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9796 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9797 # Make sure the directory exists.
9798 test -f "$dirpart/$file" && continue
9799 fdir=`$as_dirname -- "$file" ||
9800 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9801 X"$file" : 'X\(//\)[^/]' \| \
9802 X"$file" : 'X\(//\)$' \| \
9803 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9822 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9823 # echo "creating $dirpart/$file"
9824 echo '# dummy' > "$dirpart/$file"
9836 ac_clean_files=$ac_clean_files_save
9838 test $ac_write_fail = 0 ||
9839 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9842 # configure is writing to config.log, and then calls config.status.
9843 # config.status does its own redirection, appending to config.log.
9844 # Unfortunately, on DOS this fails, as config.log is still kept open
9845 # by configure, so config.status won't be able to write to it; its
9846 # output is simply discarded. So we exec the FD to /dev/null,
9847 # effectively closing config.log, so it can be properly (re)opened and
9848 # appended to by config.status. When coming back to configure, we
9849 # need to make the FD available again.
9850 if test "$no_create" != yes; then
9852 ac_config_status_args=
9853 test "$silent" = yes &&
9854 ac_config_status_args="$ac_config_status_args --quiet"
9856 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9858 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9859 # would make configure fail if this is the last instruction.
9860 $ac_cs_success || as_fn_exit 1
9862 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9864 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}