2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for MiniDLNA 1.1.3.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
578 PACKAGE_NAME
='MiniDLNA'
579 PACKAGE_TARNAME
='minidlna'
580 PACKAGE_VERSION
='1.1.3'
581 PACKAGE_STRING
='MiniDLNA 1.1.3'
585 # Factoring default headers for most tests.
586 ac_includes_default
="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
622 ac_subst_vars
='am__EXEEXT_FALSE
633 HAVE_VORBISFILE_FALSE
648 XGETTEXT_EXTRA_OPTIONS
656 GETTEXT_MACRO_VERSION
692 INSTALL_STRIP_PROGRAM
746 program_transform_name
759 enable_option_checking
761 enable_dependency_tracking
777 ac_precious_vars
='build_alias
788 # Initialize some variables set by options.
790 ac_init_version
=false
791 ac_unrecognized_opts
=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
802 program_transform_name
=s
,x
,x
,
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir
='${exec_prefix}/bin'
817 sbindir
='${exec_prefix}/sbin'
818 libexecdir
='${exec_prefix}/libexec'
819 datarootdir
='${prefix}/share'
820 datadir
='${datarootdir}'
821 sysconfdir
='${prefix}/etc'
822 sharedstatedir
='${prefix}/com'
823 localstatedir
='${prefix}/var'
824 includedir
='${prefix}/include'
825 oldincludedir
='/usr/include'
826 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir
='${datarootdir}/info'
832 libdir
='${exec_prefix}/lib'
833 localedir
='${datarootdir}/locale'
834 mandir
='${datarootdir}/man'
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\
$ac_option
848 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 # Accept the important Cygnus configure options, so we can diagnose typos.
855 case $ac_dashdash$ac_option in
859 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
861 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
864 -build |
--build |
--buil |
--bui |
--bu)
865 ac_prev
=build_alias
;;
866 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
867 build_alias
=$ac_optarg ;;
869 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
870 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
871 ac_prev
=cache_file
;;
872 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
873 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
874 cache_file
=$ac_optarg ;;
877 cache_file
=config.cache
;;
879 -datadir |
--datadir |
--datadi |
--datad)
881 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
882 datadir
=$ac_optarg ;;
884 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
885 |
--dataroo |
--dataro |
--datar)
886 ac_prev
=datarootdir
;;
887 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
888 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
889 datarootdir
=$ac_optarg ;;
891 -disable-* |
--disable-*)
892 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
895 as_fn_error $?
"invalid feature name: $ac_useropt"
896 ac_useropt_orig
=$ac_useropt
897 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
902 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep
=', ';;
905 eval enable_
$ac_useropt=no
;;
907 -docdir |
--docdir |
--docdi |
--doc |
--do)
909 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
912 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
914 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
917 -enable-* |
--enable-*)
918 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
921 as_fn_error $?
"invalid feature name: $ac_useropt"
922 ac_useropt_orig
=$ac_useropt
923 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
928 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep
=', ';;
931 eval enable_
$ac_useropt=\
$ac_optarg ;;
933 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
934 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
935 |
--exec |
--exe |
--ex)
936 ac_prev
=exec_prefix
;;
937 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
938 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
939 |
--exec=* |
--exe=* |
--ex=*)
940 exec_prefix
=$ac_optarg ;;
942 -gas |
--gas |
--ga |
--g)
943 # Obsolete; use --with-gas.
946 -help |
--help |
--hel |
--he |
-h)
948 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
949 ac_init_help
=recursive
;;
950 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
951 ac_init_help
=short
;;
953 -host |
--host |
--hos |
--ho)
954 ac_prev
=host_alias
;;
955 -host=* |
--host=* |
--hos=* |
--ho=*)
956 host_alias
=$ac_optarg ;;
958 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
960 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
962 htmldir
=$ac_optarg ;;
964 -includedir |
--includedir |
--includedi |
--included |
--include \
965 |
--includ |
--inclu |
--incl |
--inc)
966 ac_prev
=includedir
;;
967 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
968 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
969 includedir
=$ac_optarg ;;
971 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
973 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
974 infodir
=$ac_optarg ;;
976 -libdir |
--libdir |
--libdi |
--libd)
978 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
981 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
982 |
--libexe |
--libex |
--libe)
983 ac_prev
=libexecdir
;;
984 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
985 |
--libexe=* |
--libex=* |
--libe=*)
986 libexecdir
=$ac_optarg ;;
988 -localedir |
--localedir |
--localedi |
--localed |
--locale)
990 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
991 localedir
=$ac_optarg ;;
993 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
994 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
995 ac_prev
=localstatedir
;;
996 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
997 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
998 localstatedir
=$ac_optarg ;;
1000 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1002 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1003 mandir
=$ac_optarg ;;
1005 -nfp |
--nfp |
--nf)
1006 # Obsolete; use --without-fp.
1009 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1010 |
--no-cr |
--no-c |
-n)
1013 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1014 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1017 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1018 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1019 |
--oldin |
--oldi |
--old |
--ol |
--o)
1020 ac_prev
=oldincludedir
;;
1021 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1022 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1023 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1024 oldincludedir
=$ac_optarg ;;
1026 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1028 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1029 prefix
=$ac_optarg ;;
1031 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1032 |
--program-pre |
--program-pr |
--program-p)
1033 ac_prev
=program_prefix
;;
1034 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1035 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1036 program_prefix
=$ac_optarg ;;
1038 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1039 |
--program-suf |
--program-su |
--program-s)
1040 ac_prev
=program_suffix
;;
1041 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1042 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1043 program_suffix
=$ac_optarg ;;
1045 -program-transform-name |
--program-transform-name \
1046 |
--program-transform-nam |
--program-transform-na \
1047 |
--program-transform-n |
--program-transform- \
1048 |
--program-transform |
--program-transfor \
1049 |
--program-transfo |
--program-transf \
1050 |
--program-trans |
--program-tran \
1051 |
--progr-tra |
--program-tr |
--program-t)
1052 ac_prev
=program_transform_name
;;
1053 -program-transform-name=* |
--program-transform-name=* \
1054 |
--program-transform-nam=* |
--program-transform-na=* \
1055 |
--program-transform-n=* |
--program-transform-=* \
1056 |
--program-transform=* |
--program-transfor=* \
1057 |
--program-transfo=* |
--program-transf=* \
1058 |
--program-trans=* |
--program-tran=* \
1059 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1060 program_transform_name
=$ac_optarg ;;
1062 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1064 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1065 pdfdir
=$ac_optarg ;;
1067 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1069 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1072 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1073 |
-silent |
--silent |
--silen |
--sile |
--sil)
1076 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1078 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1080 sbindir
=$ac_optarg ;;
1082 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1083 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1084 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1086 ac_prev
=sharedstatedir
;;
1087 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1088 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1089 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1091 sharedstatedir
=$ac_optarg ;;
1093 -site |
--site |
--sit)
1095 -site=* |
--site=* |
--sit=*)
1098 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1100 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1101 srcdir
=$ac_optarg ;;
1103 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1104 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1105 ac_prev
=sysconfdir
;;
1106 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1107 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1108 sysconfdir
=$ac_optarg ;;
1110 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1111 ac_prev
=target_alias
;;
1112 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1113 target_alias
=$ac_optarg ;;
1115 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1118 -version |
--version |
--versio |
--versi |
--vers |
-V)
1119 ac_init_version
=: ;;
1122 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1125 as_fn_error $?
"invalid package name: $ac_useropt"
1126 ac_useropt_orig
=$ac_useropt
1127 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1132 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep
=', ';;
1135 eval with_
$ac_useropt=\
$ac_optarg ;;
1137 -without-* |
--without-*)
1138 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1141 as_fn_error $?
"invalid package name: $ac_useropt"
1142 ac_useropt_orig
=$ac_useropt
1143 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1148 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep
=', ';;
1151 eval with_
$ac_useropt=no
;;
1154 # Obsolete; use --with-x.
1157 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1158 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1159 ac_prev
=x_includes
;;
1160 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1161 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1162 x_includes
=$ac_optarg ;;
1164 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1165 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1166 ac_prev
=x_libraries
;;
1167 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1168 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1169 x_libraries
=$ac_optarg ;;
1171 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information"
1176 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 case $ac_envvar in #(
1179 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1180 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1182 eval $ac_envvar=\
$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196 if test -n "$ac_prev"; then
1197 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1198 as_fn_error $?
"missing argument to $ac_option"
1201 if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1204 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 # Check all directory arguments for consistency.
1210 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1215 eval ac_val
=\$
$ac_var
1216 # Remove trailing slashes.
1219 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\
$ac_val;;
1222 # Be sure to have absolute directory names.
1224 [\\/$
]* | ?
:[\\/]* ) continue;;
1225 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1227 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1235 target
=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x
; then
1239 if test "x$build_alias" = x
; then
1240 cross_compiling
=maybe
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 MiniDLNA 1.1.3 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/minidlna]
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
]
1391 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive
) echo "Configuration of MiniDLNA 1.1.3:";;
1402 --disable-option-checking ignore unrecognized
--enable/--with options
1403 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1404 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1405 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1406 --disable-silent-rules verbose build output
(undo
: "make V=0")
1407 --enable-dependency-tracking
1408 do not reject slow dependency extractors
1409 --disable-dependency-tracking
1410 speeds up one-time build
1411 --disable-rpath do not hardcode runtime library paths
1412 --disable-nls do not use Native Language Support
1413 --enable-tivo enable TiVo support
1414 --enable-netgear enable generic NETGEAR device support
1415 --enable-readynas enable NETGEAR ReadyNAS support
1416 --enable-static build a static binary executable
1419 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1420 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1421 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1422 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1423 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1424 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1425 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1426 --with-log-path=PATH Default log path
1427 --with-db-path=PATH Default DB path
1428 --with-os-name=NAME OS Name
1429 --with-os-version=VERS OS Version
1430 --with-os-url=URL OS URL
1432 Some influential environment variables
:
1433 CC C compiler
command
1434 CFLAGS C compiler flags
1435 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1436 nonstandard directory
<lib dir
>
1437 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1438 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1439 you have headers
in a nonstandard directory
<include dir
>
1442 Use these variables to override the choices made by
`configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1445 Report bugs to the package provider.
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1475 .) # We are building in place.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1508 MiniDLNA configure 1.1.3
1509 generated by GNU Autoconf 2.69
1511 Copyright (C) 2012 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1532 *) ac_try_echo
=$ac_try;;
1534 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1538 if test -s conftest.err
; then
1539 grep -v '^ *+' conftest.err
>conftest.er1
1540 cat conftest.er1
>&5
1541 mv -f conftest.er1 conftest.err
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.
$ac_objext; then :
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.
$ac_ext >&5
1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556 as_fn_set_status
$ac_retval
1558 } # ac_fn_c_try_compile
1560 # ac_fn_c_try_cpp LINENO
1561 # ----------------------
1562 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1565 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1566 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } > conftest.i && {
1582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1597 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1600 # the include files in INCLUDES and setting the cache variable VAR
1602 ac_fn_c_check_header_mongrel ()
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if eval \${$3+:} false; then :
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607 $as_echo_n "checking for $2... " >&6; }
1608 if eval \${$3+:} false; then :
1609 $as_echo_n "(cached) " >&6
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
1615 # Is the header compilable?
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1617 $as_echo_n "checking $2 usability... " >&6; }
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1623 if ac_fn_c_try_compile "$LINENO"; then :
1624 ac_header_compiler=yes
1626 ac_header_compiler=no
1628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1630 $as_echo "$ac_header_compiler" >&6; }
1632 # Is the header present?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1634 $as_echo_n "checking $2 presence... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1639 if ac_fn_c_try_cpp "$LINENO"; then :
1640 ac_header_preproc=yes
1642 ac_header_preproc=no
1644 rm -f conftest.err conftest.i conftest.$ac_ext
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1646 $as_echo "$ac_header_preproc" >&6; }
1648 # So? What about this header?
1649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1652 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1658 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1660 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1662 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1664 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1666 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670 $as_echo_n "checking for $2... " >&6; }
1671 if eval \${$3+:} false; then :
1672 $as_echo_n "(cached) " >&6
1674 eval "$3=\$ac_header_compiler"
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 } # ac_fn_c_check_header_mongrel
1684 # ac_fn_c_try_run LINENO
1685 # ----------------------
1686 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1687 # that executables *can* be run.
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_link"
1693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1694 *) ac_try_echo
=$ac_try;;
1696 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_link") 2>&5
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1702 { { case "(($ac_try" in
1703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_try") 2>&5
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; }; }; then :
1714 $as_echo "$as_me: program exited with status $ac_status" >&5
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1718 ac_retval=$ac_status
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1726 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1727 # -------------------------------------------------------
1728 # Tests whether HEADER exists and can be compiled using the include files in
1729 # INCLUDES, setting the cache variable VAR accordingly.
1730 ac_fn_c_check_header_compile ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1743 if ac_fn_c_try_compile "$LINENO"; then :
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 } # ac_fn_c_check_header_compile
1757 # ac_fn_c_try_link LINENO
1758 # -----------------------
1759 # Try to link conftest.$ac_ext, and return whether this succeeded.
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 rm -f conftest.$ac_objext conftest$ac_exeext
1764 if { { ac_try="$ac_link"
1766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1767 *) ac_try_echo
=$ac_try;;
1769 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_link") 2>conftest.err
1773 if test -s conftest.err
; then
1774 grep -v '^ *+' conftest.err
>conftest.er1
1775 cat conftest.er1
>&5
1776 mv -f conftest.er1 conftest.err
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && {
1780 test -z "$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 } && test -s conftest
$ac_exeext && {
1783 test "$cross_compiling" = yes ||
1784 test -x conftest
$ac_exeext
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.
$ac_ext >&5
1793 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1794 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1795 # interfere with the next link command; also delete a directory that is
1796 # left behind by Apple's compiler. We do this before executing the actions.
1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 as_fn_set_status
$ac_retval
1801 } # ac_fn_c_try_link
1803 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1804 # -------------------------------------------
1805 # Tests whether TYPE exists after having included INCLUDES, setting cache
1806 # variable VAR accordingly.
1807 ac_fn_c_check_type
()
1809 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval \
${$3+:} false
; then :
1813 $as_echo_n "(cached) " >&6
1816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1828 if ac_fn_c_try_compile
"$LINENO"; then :
1829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1841 if ac_fn_c_try_compile
"$LINENO"; then :
1846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852 $as_echo "$ac_res" >&6; }
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 } # ac_fn_c_check_type
1857 # ac_fn_c_find_uintX_t LINENO BITS VAR
1858 # ------------------------------------
1859 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1861 ac_fn_c_find_uintX_t
()
1863 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1865 $as_echo_n "checking for uint$2_t... " >&6; }
1866 if eval \
${$3+:} false
; then :
1867 $as_echo_n "(cached) " >&6
1870 # Order is important - never check a type that is potentially smaller
1871 # than half of the expected target width.
1872 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
1873 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 $ac_includes_default
1880 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1882 return test_array [0];
1888 if ac_fn_c_try_compile
"$LINENO"; then :
1893 eval "$3=\$ac_type" ;;
1896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1897 if eval test \"x\$
"$3"\" = x
"no"; then :
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 } # ac_fn_c_find_uintX_t
1911 # ac_fn_c_find_intX_t LINENO BITS VAR
1912 # -----------------------------------
1913 # Finds a signed integer type with width BITS, setting cache variable VAR
1915 ac_fn_c_find_intX_t
()
1917 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1919 $as_echo_n "checking for int$2_t... " >&6; }
1920 if eval \
${$3+:} false
; then :
1921 $as_echo_n "(cached) " >&6
1924 # Order is important - never check a type that is potentially smaller
1925 # than half of the expected target width.
1926 for ac_type
in int
$2_t 'int' 'long int' \
1927 'long long int' 'short int' 'signed char'; do
1928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 $ac_includes_default
1931 enum { N = $2 / 2 - 1 };
1935 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1937 return test_array [0];
1943 if ac_fn_c_try_compile
"$LINENO"; then :
1944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 $ac_includes_default
1947 enum { N = $2 / 2 - 1 };
1951 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1952 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1954 return test_array [0];
1960 if ac_fn_c_try_compile
"$LINENO"; then :
1967 eval "$3=\$ac_type" ;;
1970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1973 if eval test \"x\$
"$3"\" = x
"no"; then :
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 } # ac_fn_c_find_intX_t
1987 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1988 # ----------------------------------------------------
1989 # Tries to find if the field MEMBER exists in type AGGR, after including
1990 # INCLUDES, setting cache variable VAR accordingly.
1991 ac_fn_c_check_member
()
1993 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1995 $as_echo_n "checking for $2.$3... " >&6; }
1996 if eval \
${$4+:} false
; then :
1997 $as_echo_n "(cached) " >&6
1999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2012 if ac_fn_c_try_compile
"$LINENO"; then :
2015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2022 if (sizeof ac_aggr.$3)
2028 if ac_fn_c_try_compile
"$LINENO"; then :
2033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 } # ac_fn_c_check_member
2044 # ac_fn_c_check_func LINENO FUNC VAR
2045 # ----------------------------------
2046 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2047 ac_fn_c_check_func
()
2049 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \
${$3+:} false
; then :
2053 $as_echo_n "(cached) " >&6
2055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2057 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2059 #define $2 innocuous_$2
2061 /* System header to define __stub macros and hopefully few prototypes,
2062 which can conflict with char $2 (); below.
2063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2064 <limits.h> exists even on freestanding compilers. */
2067 # include <limits.h>
2069 # include <assert.h>
2074 /* Override any GCC internal prototype to avoid an error.
2075 Use char because int might match the return type of a GCC
2076 builtin and then its argument prototype would still apply. */
2081 /* The GNU C library defines this for functions which it implements
2082 to always fail with ENOSYS. Some functions are actually named
2083 something starting with __ and the normal name is an alias. */
2084 #if defined __stub_$2 || defined __stub___$2
2096 if ac_fn_c_try_link
"$LINENO"; then :
2101 rm -f core conftest.err conftest.
$ac_objext \
2102 conftest
$ac_exeext conftest.
$ac_ext
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109 } # ac_fn_c_check_func
2110 cat >config.log
<<_ACEOF
2111 This file contains any messages produced by compilers while
2112 running configure, to aid debugging if configure makes a mistake.
2114 It was created by MiniDLNA $as_me 1.1.3, which was
2115 generated by GNU Autoconf 2.69. Invocation command line was
2127 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2128 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2129 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2130 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2131 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2133 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2134 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2136 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2137 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2138 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2139 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2140 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2141 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2142 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2150 test -z "$as_dir" && as_dir
=.
2151 $as_echo "PATH: $as_dir"
2167 # Keep a trace of the command line.
2168 # Strip out --no-create and --no-recursion so they do not pile up.
2169 # Strip out --silent because we don't want to record it for future runs.
2170 # Also quote any args containing shell meta-characters.
2171 # Make two passes to allow for proper duplicate-argument suppression.
2175 ac_must_keep_next
=false
2181 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2182 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2183 |
-silent |
--silent |
--silen |
--sile |
--sil)
2186 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2189 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2191 as_fn_append ac_configure_args1
" '$ac_arg'"
2192 if test $ac_must_keep_next = true
; then
2193 ac_must_keep_next
=false
# Got value, back to normal.
2196 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2197 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2198 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2199 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2200 case "$ac_configure_args0 " in
2201 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2204 -* ) ac_must_keep_next
=true
;;
2207 as_fn_append ac_configure_args
" '$ac_arg'"
2212 { ac_configure_args0
=; unset ac_configure_args0
;}
2213 { ac_configure_args1
=; unset ac_configure_args1
;}
2215 # When interrupted or exit'd, cleanup temporary files, and complete
2216 # config.log. We remove comments because anyway the quotes in there
2217 # would cause problems or look ugly.
2218 # WARNING: Use '\'' to represent an apostrophe within the trap.
2219 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2220 trap 'exit_status=$?
2221 # Save into config.log some information that might help in debugging.
2225 $as_echo "## ---------------- ##
2226 ## Cache variables. ##
2227 ## ---------------- ##"
2229 # The following way of writing the cache mishandles newlines in values,
2231 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2232 eval ac_val=\$$ac_var
2236 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2237 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2240 _ | IFS | as_nl) ;; #(
2241 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2242 *) { eval $ac_var=; unset $ac_var;} ;;
2247 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2248 *${as_nl}ac_space=\ *)
2250 "s/'\''/'\''\\\\'\'''\''/g;
2251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2261 $as_echo "## ----------------- ##
2262 ## Output variables. ##
2263 ## ----------------- ##"
2265 for ac_var in $ac_subst_vars
2267 eval ac_val=\$$ac_var
2269 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271 $as_echo "$ac_var='\''$ac_val'\''"
2275 if test -n "$ac_subst_files"; then
2276 $as_echo "## ------------------- ##
2277 ## File substitutions. ##
2278 ## ------------------- ##"
2280 for ac_var
in $ac_subst_files
2282 eval ac_val
=\$
$ac_var
2284 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2286 $as_echo "$ac_var='\''$ac_val'\''"
2291 if test -s confdefs.h; then
2292 $as_echo "## ----------- ##
2299 test "$ac_signal" != 0 &&
2300 $as_echo "$as_me: caught signal $ac_signal"
2301 $as_echo "$as_me: exit $exit_status"
2303 rm -f core *.core core.conftest.* &&
2304 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2307 for ac_signal
in 1 2 13 15; do
2308 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2312 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2313 rm -f -r conftest
* confdefs.h
2315 $as_echo "/* confdefs.h */" > confdefs.h
2317 # Predefined preprocessor variables.
2319 cat >>confdefs.h
<<_ACEOF
2320 #define PACKAGE_NAME "$PACKAGE_NAME"
2323 cat >>confdefs.h
<<_ACEOF
2324 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2327 cat >>confdefs.h
<<_ACEOF
2328 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2331 cat >>confdefs.h
<<_ACEOF
2332 #define PACKAGE_STRING "$PACKAGE_STRING"
2335 cat >>confdefs.h
<<_ACEOF
2336 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2339 cat >>confdefs.h
<<_ACEOF
2340 #define PACKAGE_URL "$PACKAGE_URL"
2344 # Let the site file select an alternate cache file if it wants to.
2345 # Prefer an explicitly selected file to automatically selected ones.
2348 if test -n "$CONFIG_SITE"; then
2349 # We do not want a PATH search for config.site.
2350 case $CONFIG_SITE in #((
2351 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2352 */*) ac_site_file1
=$CONFIG_SITE;;
2353 *) ac_site_file1
=.
/$CONFIG_SITE;;
2355 elif test "x$prefix" != xNONE
; then
2356 ac_site_file1
=$prefix/share
/config.site
2357 ac_site_file2
=$prefix/etc
/config.site
2359 ac_site_file1
=$ac_default_prefix/share
/config.site
2360 ac_site_file2
=$ac_default_prefix/etc
/config.site
2362 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2364 test "x$ac_site_file" = xNONE
&& continue
2365 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2367 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2368 sed 's/^/| /' "$ac_site_file" >&5
2370 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2372 as_fn_error $?
"failed to load site script $ac_site_file
2373 See \`config.log' for more details" "$LINENO" 5; }
2377 if test -r "$cache_file"; then
2378 # Some versions of bash will fail to source /dev/null (special files
2379 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2380 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2382 $as_echo "$as_me: loading cache $cache_file" >&6;}
2384 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2385 *) .
"./$cache_file";;
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2390 $as_echo "$as_me: creating cache $cache_file" >&6;}
2394 gt_needs
="$gt_needs "
2395 # Check that the precious variables saved in the cache have kept the same
2397 ac_cache_corrupted
=false
2398 for ac_var
in $ac_precious_vars; do
2399 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2400 eval ac_new_set
=\
$ac_env_${ac_var}_set
2401 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2402 eval ac_new_val
=\
$ac_env_${ac_var}_value
2403 case $ac_old_set,$ac_new_set in
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2406 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2407 ac_cache_corrupted
=: ;;
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2410 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2411 ac_cache_corrupted
=: ;;
2414 if test "x$ac_old_val" != "x$ac_new_val"; then
2415 # differences in whitespace do not lead to failure.
2416 ac_old_val_w
=`echo x $ac_old_val`
2417 ac_new_val_w
=`echo x $ac_new_val`
2418 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2420 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2421 ac_cache_corrupted
=:
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2424 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2425 eval $ac_var=\
$ac_old_val
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2428 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2430 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2433 # Pass precious variables to config.status.
2434 if test "$ac_new_set" = set; then
2436 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2437 *) ac_arg
=$ac_var=$ac_new_val ;;
2439 case " $ac_configure_args " in
2440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2441 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2445 if $ac_cache_corrupted; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2449 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2450 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2452 ## -------------------- ##
2453 ## Main body of script. ##
2454 ## -------------------- ##
2457 ac_cpp
='$CPP $CPPFLAGS'
2458 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2466 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2467 if test -f "$ac_dir/install-sh"; then
2469 ac_install_sh
="$ac_aux_dir/install-sh -c"
2471 elif test -f "$ac_dir/install.sh"; then
2473 ac_install_sh
="$ac_aux_dir/install.sh -c"
2475 elif test -f "$ac_dir/shtool"; then
2477 ac_install_sh
="$ac_aux_dir/shtool install -c"
2481 if test -z "$ac_aux_dir"; then
2482 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2485 # These three variables are undocumented and unsupported,
2486 # and are intended to be withdrawn in a future Autoconf release.
2487 # They can cause serious problems if a builder's source tree is in a directory
2488 # whose full name contains unusual characters.
2489 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2490 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2491 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2494 # Make sure we can run config.sub.
2495 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2496 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2499 $as_echo_n "checking build system type... " >&6; }
2500 if ${ac_cv_build+:} false
; then :
2501 $as_echo_n "(cached) " >&6
2503 ac_build_alias
=$build_alias
2504 test "x$ac_build_alias" = x
&&
2505 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2506 test "x$ac_build_alias" = x
&&
2507 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2508 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2509 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2513 $as_echo "$ac_cv_build" >&6; }
2514 case $ac_cv_build in
2516 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2519 ac_save_IFS
=$IFS; IFS
='-'
2525 # Remember, the first character of IFS is used to create $*,
2526 # except with old shells:
2529 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2533 $as_echo_n "checking host system type... " >&6; }
2534 if ${ac_cv_host+:} false
; then :
2535 $as_echo_n "(cached) " >&6
2537 if test "x$host_alias" = x
; then
2538 ac_cv_host
=$ac_cv_build
2540 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2541 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2546 $as_echo "$ac_cv_host" >&6; }
2549 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2552 ac_save_IFS
=$IFS; IFS
='-'
2558 # Remember, the first character of IFS is used to create $*,
2559 # except with old shells:
2562 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2566 $as_echo_n "checking target system type... " >&6; }
2567 if ${ac_cv_target+:} false
; then :
2568 $as_echo_n "(cached) " >&6
2570 if test "x$target_alias" = x
; then
2571 ac_cv_target
=$ac_cv_host
2573 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2574 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2579 $as_echo "$ac_cv_target" >&6; }
2580 case $ac_cv_target in
2582 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2584 target
=$ac_cv_target
2585 ac_save_IFS
=$IFS; IFS
='-'
2591 # Remember, the first character of IFS is used to create $*,
2592 # except with old shells:
2595 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2598 # The aliases save the names the user supplied, while $host etc.
2599 # will get canonicalized.
2600 test -n "$target_alias" &&
2601 test "$program_prefix$program_suffix$program_transform_name" = \
2603 program_prefix
=${target_alias}-
2604 am__api_version
='1.14'
2606 # Find a good install program. We prefer a C program (faster),
2607 # so one script is as good as another. But avoid the broken or
2608 # incompatible versions:
2609 # SysV /etc/install, /usr/sbin/install
2610 # SunOS /usr/etc/install
2611 # IRIX /sbin/install
2613 # AmigaOS /C/install, which installs bootblocks on floppy discs
2614 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2615 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2616 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2617 # OS/2's system install, which has a completely different semantic
2618 # ./install, which can be erroneously created by make from ./install.sh.
2619 # Reject install programs that cannot install multiple files.
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2621 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2622 if test -z "$INSTALL"; then
2623 if ${ac_cv_path_install+:} false
; then :
2624 $as_echo_n "(cached) " >&6
2626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir
=.
2631 # Account for people who put trailing slashes in PATH elements.
2632 case $as_dir/ in #((
2633 .
/ | .
// |
/[cC
]/* | \
2634 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2635 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2638 # OSF1 and SCO ODT 3.0 have their own names for install.
2639 # Don't use installbsd from OSF since it installs stuff as root
2641 for ac_prog
in ginstall scoinst
install; do
2642 for ac_exec_ext
in '' $ac_executable_extensions; do
2643 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2644 if test $ac_prog = install &&
2645 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2646 # AIX install. It has an incompatible calling convention.
2648 elif test $ac_prog = install &&
2649 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2650 # program-specific install script used by HP pwplus--don't use.
2653 rm -rf conftest.one conftest.two conftest.dir
2654 echo one
> conftest.one
2655 echo two
> conftest.two
2657 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2658 test -s conftest.one
&& test -s conftest.two
&&
2659 test -s conftest.dir
/conftest.one
&&
2660 test -s conftest.dir
/conftest.two
2662 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2675 rm -rf conftest.one conftest.two conftest.dir
2678 if test "${ac_cv_path_install+set}" = set; then
2679 INSTALL
=$ac_cv_path_install
2681 # As a last resort, use the slow shell script. Don't cache a
2682 # value for INSTALL within a source directory, because that will
2683 # break other packages using the cache if that directory is
2684 # removed, or if the value is a relative name.
2685 INSTALL
=$ac_install_sh
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2689 $as_echo "$INSTALL" >&6; }
2691 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2692 # It thinks the first close brace ends the variable substitution.
2693 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2695 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2697 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2700 $as_echo_n "checking whether build environment is sane... " >&6; }
2701 # Reject unsafe characters in $srcdir or the absolute working directory
2702 # name. Accept space and tab only in the latter.
2706 *[\\\"\
#\$\&\'\`$am_lf]*)
2707 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2710 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2711 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2714 # Do 'set' in a subshell so we don't clobber the current shell's
2715 # arguments. Must try -L first in case configure is actually a
2716 # symlink; some systems play weird games with the mod time of symlinks
2717 # (eg FreeBSD returns the mod time of the symlink's containing
2721 for am_try
in 1 2; do
2722 echo "timestamp, slept: $am_has_slept" > conftest.
file
2723 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2724 if test "$*" = "X"; then
2726 set X
`ls -t "$srcdir/configure" conftest.file`
2728 if test "$*" != "X $srcdir/configure conftest.file" \
2729 && test "$*" != "X conftest.file $srcdir/configure"; then
2731 # If neither matched, then we have a broken ls. This can happen
2732 # if, for instance, CONFIG_SHELL is bash and it inherits a
2733 # broken ls alias from the environment. This has actually
2734 # happened. Such a system could not be considered "sane".
2735 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2736 alias in your environment" "$LINENO" 5
2738 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2745 test "$2" = conftest.
file
2751 as_fn_error $?
"newly created file is older than distributed files!
2752 Check your system clock" "$LINENO" 5
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2755 $as_echo "yes" >&6; }
2756 # If we didn't sleep, we still need to ensure time stamps of config.status and
2757 # generated files are strictly newer.
2759 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2766 test "$program_prefix" != NONE
&&
2767 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2768 # Use a double $ so make ignores it.
2769 test "$program_suffix" != NONE
&&
2770 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2771 # Double any \ or $.
2772 # By default was `s,x,x', remove it if useless.
2773 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2774 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2776 # expand $ac_aux_dir to an absolute path
2777 am_aux_dir
=`cd $ac_aux_dir && pwd`
2779 if test x
"${MISSING+set}" != xset
; then
2782 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2784 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2787 # Use eval to expand $SHELL
2788 if eval "$MISSING --is-lightweight"; then
2789 am_missing_run
="$MISSING "
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2793 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2796 if test x
"${install_sh}" != xset
; then
2799 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2801 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2805 # Installed binaries are usually stripped using 'strip' when the user
2806 # run "make install-strip". However 'strip' might not be the right
2807 # tool to use in cross-compilation environments, therefore Automake
2808 # will honor the 'STRIP' environment variable to overrule this program.
2809 if test "$cross_compiling" != no
; then
2810 if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2812 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_STRIP+:} false
; then :
2816 $as_echo_n "(cached) " >&6
2818 if test -n "$STRIP"; then
2819 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir
=.
2826 for ac_exec_ext
in '' $ac_executable_extensions; do
2827 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 STRIP
=$ac_cv_prog_STRIP
2839 if test -n "$STRIP"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2841 $as_echo "$STRIP" >&6; }
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2849 if test -z "$ac_cv_prog_STRIP"; then
2851 # Extract the first word of "strip", so it can be a program name with args.
2852 set dummy strip
; ac_word
=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2856 $as_echo_n "(cached) " >&6
2858 if test -n "$ac_ct_STRIP"; then
2859 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2865 test -z "$as_dir" && as_dir
=.
2866 for ac_exec_ext
in '' $ac_executable_extensions; do
2867 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2868 ac_cv_prog_ac_ct_STRIP
="strip"
2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2879 if test -n "$ac_ct_STRIP"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2881 $as_echo "$ac_ct_STRIP" >&6; }
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2887 if test "x$ac_ct_STRIP" = x
; then
2890 case $cross_compiling:$ac_tool_warned in
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2894 ac_tool_warned
=yes ;;
2899 STRIP
="$ac_cv_prog_STRIP"
2903 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2906 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2907 if test -z "$MKDIR_P"; then
2908 if ${ac_cv_path_mkdir+:} false
; then :
2909 $as_echo_n "(cached) " >&6
2911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2912 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2915 test -z "$as_dir" && as_dir
=.
2916 for ac_prog
in mkdir gmkdir
; do
2917 for ac_exec_ext
in '' $ac_executable_extensions; do
2918 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2919 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2920 'mkdir (GNU coreutils) '* | \
2921 'mkdir (coreutils) '* | \
2922 'mkdir (fileutils) '4.1*)
2923 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2933 test -d .
/--version && rmdir .
/--version
2934 if test "${ac_cv_path_mkdir+set}" = set; then
2935 MKDIR_P
="$ac_cv_path_mkdir -p"
2937 # As a last resort, use the slow shell script. Don't cache a
2938 # value for MKDIR_P within a source directory, because that will
2939 # break other packages using the cache if that directory is
2940 # removed, or if the value is a relative name.
2941 MKDIR_P
="$ac_install_sh -d"
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2945 $as_echo "$MKDIR_P" >&6; }
2947 for ac_prog
in gawk mawk nawk
awk
2949 # Extract the first word of "$ac_prog", so it can be a program name with args.
2950 set dummy
$ac_prog; ac_word
=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_AWK+:} false
; then :
2954 $as_echo_n "(cached) " >&6
2956 if test -n "$AWK"; then
2957 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir
=.
2964 for ac_exec_ext
in '' $ac_executable_extensions; do
2965 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_AWK
="$ac_prog"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 if test -n "$AWK"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2979 $as_echo "$AWK" >&6; }
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2986 test -n "$AWK" && break
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2990 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2992 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2993 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2994 $as_echo_n "(cached) " >&6
2996 cat >conftest.
make <<\_ACEOF
2999 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3001 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3002 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3004 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3006 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3010 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3012 $as_echo "yes" >&6; }
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3017 SET_MAKE
="MAKE=${MAKE-make}"
3020 rm -rf .tst
2>/dev
/null
3021 mkdir .tst
2>/dev
/null
3022 if test -d .tst
; then
3027 rmdir .tst
2>/dev
/null
3029 # Check whether --enable-silent-rules was given.
3030 if test "${enable_silent_rules+set}" = set; then :
3031 enableval
=$enable_silent_rules;
3034 case $enable_silent_rules in # (((
3035 yes) AM_DEFAULT_VERBOSITY
=0;;
3036 no
) AM_DEFAULT_VERBOSITY
=1;;
3037 *) AM_DEFAULT_VERBOSITY
=1;;
3039 am_make
=${MAKE-make}
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3041 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3042 if ${am_cv_make_support_nested_variables+:} false
; then :
3043 $as_echo_n "(cached) " >&6
3045 if $as_echo 'TRUE=$(BAR$(V))
3051 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3052 am_cv_make_support_nested_variables
=yes
3054 am_cv_make_support_nested_variables
=no
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3058 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3059 if test $am_cv_make_support_nested_variables = yes; then
3061 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3063 AM_V
=$AM_DEFAULT_VERBOSITY
3064 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3068 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3069 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3070 # is not polluted with repeated "-I."
3071 am__isrc
=' -I$(srcdir)'
3072 # test to see if srcdir already configured
3073 if test -f $srcdir/config.status
; then
3074 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3078 # test whether we have cygpath
3079 if test -z "$CYGPATH_W"; then
3080 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3081 CYGPATH_W
='cygpath -w'
3088 # Define the identity of the package.
3093 cat >>confdefs.h
<<_ACEOF
3094 #define PACKAGE "$PACKAGE"
3098 cat >>confdefs.h
<<_ACEOF
3099 #define VERSION "$VERSION"
3102 # Some tools Automake needs.
3104 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3107 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3110 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3113 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3116 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3118 # For better backward compatibility. To be removed once Automake 1.9.x
3119 # dies out for good. For more background, see:
3120 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3121 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3122 mkdir_p
='$(MKDIR_P)'
3124 # We need awk for the "check" target. The system "awk" is bad on
3126 # Always define AMTAR for backward compatibility. Yes, it's still used
3127 # in the wild :-( We should find a proper way to deprecate it ...
3131 # We'll loop over all known methods to create a tar archive until one works.
3132 _am_tools
='gnutar pax cpio none'
3134 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3141 # POSIX will say in a future version that running "rm -f" with no argument
3142 # is OK; and we want to be able to make that assumption in our Makefile
3143 # recipes. So use an aggressive probe to check that the usage we want is
3144 # actually supported "in the wild" to an acceptable degree.
3145 # See automake bug#10828.
3146 # To make any issue more visible, cause the running configure to be aborted
3147 # by default if the 'rm' program in use doesn't match our expectations; the
3148 # user can still override this though.
3149 if rm -f && rm -fr && rm -rf; then : OK
; else
3153 Your 'rm' program seems unable to run without file operands specified
3154 on the command line, even when the '-f' option is present. This is contrary
3155 to the behaviour of most rm programs out there, and not conforming with
3156 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3158 Please tell bug-automake@gnu.org about your system, including the value
3159 of your $PATH and any error possibly output before this message. This
3160 can help us improve future automake versions.
3163 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3164 echo 'Configuration will proceed anyway, since you have set the' >&2
3165 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3169 Aborting the configuration process, to ensure you take notice of the issue.
3171 You can download and install GNU coreutils to get an 'rm' implementation
3172 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3174 If you want to complete the configuration process using your problematic
3175 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3176 to "yes", and re-run configure.
3179 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3182 ac_config_headers
="$ac_config_headers config.h"
3184 # Check whether --enable-silent-rules was given.
3185 if test "${enable_silent_rules+set}" = set; then :
3186 enableval
=$enable_silent_rules;
3189 case $enable_silent_rules in # (((
3190 yes) AM_DEFAULT_VERBOSITY
=0;;
3191 no
) AM_DEFAULT_VERBOSITY
=1;;
3192 *) AM_DEFAULT_VERBOSITY
=0;;
3194 am_make
=${MAKE-make}
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3196 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3197 if ${am_cv_make_support_nested_variables+:} false
; then :
3198 $as_echo_n "(cached) " >&6
3200 if $as_echo 'TRUE=$(BAR$(V))
3206 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3207 am_cv_make_support_nested_variables
=yes
3209 am_cv_make_support_nested_variables
=no
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3213 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3214 if test $am_cv_make_support_nested_variables = yes; then
3216 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3218 AM_V
=$AM_DEFAULT_VERBOSITY
3219 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3224 DEPDIR="${am__leading_dot}deps"
3226 ac_config_commands="$ac_config_commands depfiles"
3229 am_make=${MAKE-make}
3230 cat > confinc << 'END
'
3232 @echo this is the am__doit target
3235 # If we don't
find an include directive
, just comment out the code.
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3237 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3241 # First try GNU make style include.
3242 echo "include confinc" > confmf
3243 # Ignore all kinds of additional output from 'make'.
3244 case `$am_make -s -f confmf 2> /dev/null` in #(
3245 *the\ am__doit\ target
*)
3251 # Now try BSD make style include.
3252 if test "$am__include" = "#"; then
3253 echo '.include "confinc"' > confmf
3254 case `$am_make -s -f confmf 2> /dev/null` in #(
3255 *the\ am__doit\ target
*)
3256 am__include
=.include
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3265 $as_echo "$_am_result" >&6; }
3266 rm -f confinc confmf
3268 # Check whether --enable-dependency-tracking was given.
3269 if test "${enable_dependency_tracking+set}" = set; then :
3270 enableval
=$enable_dependency_tracking;
3273 if test "x$enable_dependency_tracking" != xno
; then
3274 am_depcomp
="$ac_aux_dir/depcomp"
3278 if test "x$enable_dependency_tracking" != xno; then
3288 ac_cpp
='$CPP $CPPFLAGS'
3289 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3292 if test -n "$ac_tool_prefix"; then
3293 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3294 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 $as_echo_n "checking for $ac_word... " >&6; }
3297 if ${ac_cv_prog_CC+:} false
; then :
3298 $as_echo_n "(cached) " >&6
3300 if test -n "$CC"; then
3301 ac_cv_prog_CC
="$CC" # Let the user override the test.
3303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3307 test -z "$as_dir" && as_dir
=.
3308 for ac_exec_ext
in '' $ac_executable_extensions; do
3309 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3310 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 if test -n "$CC"; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3323 $as_echo "$CC" >&6; }
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3331 if test -z "$ac_cv_prog_CC"; then
3333 # Extract the first word of "gcc", so it can be a program name with args.
3334 set dummy gcc
; ac_word
=$2
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336 $as_echo_n "checking for $ac_word... " >&6; }
3337 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3338 $as_echo_n "(cached) " >&6
3340 if test -n "$ac_ct_CC"; then
3341 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3347 test -z "$as_dir" && as_dir
=.
3348 for ac_exec_ext
in '' $ac_executable_extensions; do
3349 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3350 ac_cv_prog_ac_ct_CC
="gcc"
3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3361 if test -n "$ac_ct_CC"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3363 $as_echo "$ac_ct_CC" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3369 if test "x$ac_ct_CC" = x
; then
3372 case $cross_compiling:$ac_tool_warned in
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3376 ac_tool_warned
=yes ;;
3384 if test -z "$CC"; then
3385 if test -n "$ac_tool_prefix"; then
3386 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3387 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if ${ac_cv_prog_CC+:} false
; then :
3391 $as_echo_n "(cached) " >&6
3393 if test -n "$CC"; then
3394 ac_cv_prog_CC
="$CC" # Let the user override the test.
3396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3400 test -z "$as_dir" && as_dir
=.
3401 for ac_exec_ext
in '' $ac_executable_extensions; do
3402 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3403 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 if test -n "$CC"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3416 $as_echo "$CC" >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3425 if test -z "$CC"; then
3426 # Extract the first word of "cc", so it can be a program name with args.
3427 set dummy cc
; ac_word
=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if ${ac_cv_prog_CC+:} false
; then :
3431 $as_echo_n "(cached) " >&6
3433 if test -n "$CC"; then
3434 ac_cv_prog_CC
="$CC" # Let the user override the test.
3437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3441 test -z "$as_dir" && as_dir
=.
3442 for ac_exec_ext
in '' $ac_executable_extensions; do
3443 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3444 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3445 ac_prog_rejected
=yes
3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 if test $ac_prog_rejected = yes; then
3457 # We found a bogon in the path, so make sure we never use it.
3458 set dummy
$ac_cv_prog_CC
3460 if test $# != 0; then
3461 # We chose a different compiler from the bogus one.
3462 # However, it has the same basename, so the bogon will be chosen
3463 # first if we set CC to just the basename; use the full file name.
3465 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3471 if test -n "$CC"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3473 $as_echo "$CC" >&6; }
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 $as_echo "no" >&6; }
3481 if test -z "$CC"; then
3482 if test -n "$ac_tool_prefix"; then
3483 for ac_prog
in cl.exe
3485 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3486 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488 $as_echo_n "checking for $ac_word... " >&6; }
3489 if ${ac_cv_prog_CC+:} false
; then :
3490 $as_echo_n "(cached) " >&6
3492 if test -n "$CC"; then
3493 ac_cv_prog_CC
="$CC" # Let the user override the test.
3495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3499 test -z "$as_dir" && as_dir
=.
3500 for ac_exec_ext
in '' $ac_executable_extensions; do
3501 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3502 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 if test -n "$CC"; then
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3515 $as_echo "$CC" >&6; }
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518 $as_echo "no" >&6; }
3522 test -n "$CC" && break
3525 if test -z "$CC"; then
3527 for ac_prog
in cl.exe
3529 # Extract the first word of "$ac_prog", so it can be a program name with args.
3530 set dummy
$ac_prog; ac_word
=$2
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532 $as_echo_n "checking for $ac_word... " >&6; }
3533 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3534 $as_echo_n "(cached) " >&6
3536 if test -n "$ac_ct_CC"; then
3537 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3543 test -z "$as_dir" && as_dir
=.
3544 for ac_exec_ext
in '' $ac_executable_extensions; do
3545 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3546 ac_cv_prog_ac_ct_CC
="$ac_prog"
3547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3557 if test -n "$ac_ct_CC"; then
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3559 $as_echo "$ac_ct_CC" >&6; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3566 test -n "$ac_ct_CC" && break
3569 if test "x$ac_ct_CC" = x
; then
3572 case $cross_compiling:$ac_tool_warned in
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3576 ac_tool_warned
=yes ;;
3585 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587 as_fn_error $?
"no acceptable C compiler found in \$PATH
3588 See \`config.log' for more details" "$LINENO" 5; }
3590 # Provide some information about the compiler.
3591 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3594 for ac_option
in --version -v -V -qversion; do
3595 { { ac_try
="$ac_compiler $ac_option >&5"
3597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601 $as_echo "$ac_try_echo"; } >&5
3602 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3604 if test -s conftest.err; then
3606 ... rest of stderr output deleted ...
3607 10q' conftest.err >conftest.er1
3608 cat conftest.er1 >&5
3610 rm -f conftest.er1 conftest.err
3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612 test $ac_status = 0; }
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3626 ac_clean_files_save=$ac_clean_files
3627 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3628 # Try to create an executable without -o first, disregard a.out.
3629 # It will help us diagnose broken compilers, and finding out an intuition
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3632 $as_echo_n "checking whether the C compiler works... " >&6; }
3633 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3635 # The possible output files:
3636 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3639 for ac_file in $ac_files
3642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3643 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3648 if { { ac_try="$ac_link_default"
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_link_default") 2>&5
3657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658 test $ac_status = 0; }; then :
3659 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3660 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3661 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3662 # so that the user can short-circuit this test for compilers unknown to
3664 for ac_file
in $ac_files ''
3666 test -f "$ac_file" ||
continue
3668 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3671 # We found the default executable, but exeext='' is most
3675 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3677 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3679 # We set ac_cv_exeext here because the later test for it is not
3680 # safe: cross compilers may not add the suffix if given an `-o'
3681 # argument, so we may need to know it at that point already.
3682 # Even if this section looks crufty: it has the advantage of
3689 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3694 if test -z "$ac_file"; then :
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696 $as_echo "no" >&6; }
3697 $as_echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.
$ac_ext >&5
3700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 as_fn_error
77 "C compiler cannot create executables
3703 See \`config.log' for more details" "$LINENO" 5; }
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3706 $as_echo "yes" >&6; }
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3709 $as_echo_n "checking for C compiler default output file name... " >&6; }
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3711 $as_echo "$ac_file" >&6; }
3712 ac_exeext
=$ac_cv_exeext
3714 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3715 ac_clean_files
=$ac_clean_files_save
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3717 $as_echo_n "checking for suffix of executables... " >&6; }
3718 if { { ac_try
="$ac_link"
3720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724 $as_echo "$ac_try_echo"; } >&5
3725 (eval "$ac_link") 2>&5
3727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728 test $ac_status = 0; }; then :
3729 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3730 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3731 # work properly (i.e., refer to `conftest.exe'), while it won't with
3733 for ac_file
in conftest.exe conftest conftest.
*; do
3734 test -f "$ac_file" ||
continue
3736 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3737 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3745 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3746 See \`config.log' for more details" "$LINENO" 5; }
3748 rm -f conftest conftest
$ac_cv_exeext
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3750 $as_echo "$ac_cv_exeext" >&6; }
3752 rm -f conftest.
$ac_ext
3753 EXEEXT
=$ac_cv_exeext
3755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3761 FILE *f = fopen ("conftest.out", "w");
3762 return ferror (f) || fclose (f) != 0;
3768 ac_clean_files
="$ac_clean_files conftest.out"
3769 # Check that the compiler produces executables we can run. If not, either
3770 # the compiler is broken, or we cross compile.
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3772 $as_echo_n "checking whether we are cross compiling... " >&6; }
3773 if test "$cross_compiling" != yes; then
3774 { { ac_try
="$ac_link"
3776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_link") 2>&5
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }
3785 if { ac_try='./conftest$ac_cv_exeext'
3786 { { case "(($ac_try" in
3787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3788 *) ac_try_echo
=$ac_try;;
3790 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791 $as_echo "$ac_try_echo"; } >&5
3792 (eval "$ac_try") 2>&5
3794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795 test $ac_status = 0; }; }; then
3798 if test "$cross_compiling" = maybe
; then
3801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3803 as_fn_error $?
"cannot run C compiled programs.
3804 If you meant to cross compile, use \`--host'.
3805 See \`config.log' for more details" "$LINENO" 5; }
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3810 $as_echo "$cross_compiling" >&6; }
3812 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3813 ac_clean_files
=$ac_clean_files_save
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3815 $as_echo_n "checking for suffix of object files... " >&6; }
3816 if ${ac_cv_objext+:} false
; then :
3817 $as_echo_n "(cached) " >&6
3819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3830 rm -f conftest.o conftest.obj
3831 if { { ac_try
="$ac_compile"
3833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837 $as_echo "$ac_try_echo"; } >&5
3838 (eval "$ac_compile") 2>&5
3840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841 test $ac_status = 0; }; then :
3842 for ac_file in conftest.o conftest.obj conftest.*; do
3843 test -f "$ac_file" || continue;
3845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3846 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3851 $as_echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3856 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3857 See \
`config.log' for more details" "$LINENO" 5; }
3859 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3862 $as_echo "$ac_cv_objext" >&6; }
3863 OBJEXT=$ac_cv_objext
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3866 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3867 if ${ac_cv_c_compiler_gnu+:} false; then :
3868 $as_echo_n "(cached) " >&6
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3884 if ac_fn_c_try_compile "$LINENO"; then :
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3894 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3895 if test $ac_compiler_gnu = yes; then
3900 ac_test_CFLAGS=${CFLAGS+set}
3901 ac_save_CFLAGS=$CFLAGS
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3903 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3904 if ${ac_cv_prog_cc_g+:} false; then :
3905 $as_echo_n "(cached) " >&6
3907 ac_save_c_werror_flag=$ac_c_werror_flag
3908 ac_c_werror_flag=yes
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3922 if ac_fn_c_try_compile "$LINENO"; then :
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3937 if ac_fn_c_try_compile "$LINENO"; then :
3940 ac_c_werror_flag=$ac_save_c_werror_flag
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3953 if ac_fn_c_try_compile "$LINENO"; then :
3956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 ac_c_werror_flag=$ac_save_c_werror_flag
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3964 $as_echo "$ac_cv_prog_cc_g" >&6; }
3965 if test "$ac_test_CFLAGS" = set; then
3966 CFLAGS=$ac_save_CFLAGS
3967 elif test $ac_cv_prog_cc_g = yes; then
3968 if test "$GCC" = yes; then
3974 if test "$GCC" = yes; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3981 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3982 if ${ac_cv_prog_cc_c89+:} false; then :
3983 $as_echo_n "(cached) " >&6
3985 ac_cv_prog_cc_c89=no
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3992 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3993 struct buf { int x; };
3994 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3995 static char *e (p, i)
4001 static char *f (char * (*g) (char **, int), char **p, ...)
4006 s = g (p, va_arg (v,int));
4011 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4012 function prototypes and stuff, but not '\xHH' hex character constants.
4013 These don't provoke an error unfortunately, instead are silently treated
4014 as 'x'. The following induces an error, until -std is added to get
4015 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4016 array size at least. It's necessary to write '\x00'==0 to get something
4017 that's true only with -std. */
4018 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4020 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4021 inside strings and character constants. */
4023 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4025 int test (int i, double x);
4026 struct s1 {int (*f) (int a);};
4027 struct s2 {int (*f) (double a);};
4028 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4034 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4039 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4040 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4042 CC="$ac_save_CC $ac_arg"
4043 if ac_fn_c_try_compile "$LINENO"; then :
4044 ac_cv_prog_cc_c89=$ac_arg
4046 rm -f core conftest.err conftest.$ac_objext
4047 test "x$ac_cv_prog_cc_c89" != "xno" && break
4049 rm -f conftest.$ac_ext
4054 case "x$ac_cv_prog_cc_c89" in
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4057 $as_echo "none needed" >&6; } ;;
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4060 $as_echo "unsupported" >&6; } ;;
4062 CC="$CC $ac_cv_prog_cc_c89"
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4064 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4066 if test "x$ac_cv_prog_cc_c89" != xno; then :
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077 ac_cpp='$CPP $CPPFLAGS'
4078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4082 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4083 if ${am_cv_prog_cc_c_o+:} false; then :
4084 $as_echo_n "(cached) " >&6
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4097 # Make sure it works both with $CC and with simple cc.
4098 # Following AC_PROG_CC_C_O, we do the test twice because some
4099 # compilers refuse to overwrite an existing .o file with -o,
4100 # though they will create one.
4101 am_cv_prog_cc_c_o=yes
4103 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4104 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } \
4108 && test -f conftest2.$ac_objext; then
4111 am_cv_prog_cc_c_o=no
4115 rm -f core conftest*
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4119 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4120 if test "$am_cv_prog_cc_c_o" != yes; then
4121 # Losing compiler, so override with the script.
4122 # FIXME: It is wrong to rewrite CC.
4123 # But if we don't then we get into trouble of one sort or another.
4124 # A longer-term fix would be to have automake use am__CC in this case,
4125 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4126 CC="$am_aux_dir/compile $CC"
4129 ac_cpp='$CPP $CPPFLAGS'
4130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135 depcc="$CC" am_compiler_list=
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4138 $as_echo_n "checking dependency style of $depcc... " >&6; }
4139 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4140 $as_echo_n "(cached) " >&6
4142 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4143 # We make a subdir and do the tests there. Otherwise we can end up
4144 # making bogus files that we don't know about and never remove. For
4145 # instance it was reported that on HP-UX the gcc test will end up
4146 # making a dummy file named 'D' -- because '-MD' means "put the output
4150 # Copy depcomp to subdir because otherwise we won't find it if we're
4151 # using a relative directory.
4152 cp "$am_depcomp" conftest.dir
4154 # We will build objects and dependencies in a subdirectory because
4155 # it helps to detect inapplicable dependency modes. For instance
4156 # both Tru64's cc and ICC support -MD to output dependencies as a
4157 # side effect of compilation, but ICC will put the dependencies in
4158 # the current directory while Tru64 will put them in the object
4162 am_cv_CC_dependencies_compiler_type=none
4163 if test "$am_compiler_list" = ""; then
4164 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4167 case " $depcc " in #(
4168 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4171 for depmode in $am_compiler_list; do
4172 # Setup a source with many dependencies, because some compilers
4173 # like to wrap large dependency lists on column 80 (with \), and
4174 # we should not choose a depcomp mode which is confused by this.
4176 # We need to recreate these files for each test, as the compiler may
4177 # overwrite some of them when testing with obscure command lines.
4178 # This happens at least with the AIX C compiler.
4180 for i in 1 2 3 4 5 6; do
4181 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4182 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4183 # Solaris 10 /bin/sh.
4184 echo '/* dummy */' > sub/conftst$i.h
4186 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4188 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4189 # mode. It turns out that the SunPro C++ compiler does not properly
4190 # handle '-M -o', and we need to detect this. Also, some Intel
4191 # versions had trouble with output in subdirs.
4192 am__obj=sub/conftest.${OBJEXT-o}
4193 am__minus_obj="-o $am__obj"
4196 # This depmode causes a compiler race in universal mode.
4197 test "$am__universal" = false || continue
4200 # After this tag, mechanisms are not by side-effect, so they'll
4201 # only be used when explicitly requested.
4202 if test "x$enable_dependency_tracking" = xyes; then
4208 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4209 # This compiler won't grok '-c -o', but also, the minuso test has
4210 # not run yet. These depmodes are late enough in the game, and
4211 # so weak that their functioning should not be impacted.
4212 am__obj=conftest.${OBJEXT-o}
4217 if depmode=$depmode \
4218 source=sub/conftest.c object=$am__obj \
4219 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4220 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4221 >/dev/null 2>conftest.err &&
4222 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4223 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4224 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4225 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4226 # icc doesn't choke on unknown options, it will just issue warnings
4227 # or remarks (even with -Werror). So we grep stderr for any message
4228 # that says an option was ignored or not supported.
4229 # When given -MP, icc 7.0 and 7.1 complain thusly:
4230 # icc: Command line warning: ignoring option '-M'; no argument required
4231 # The diagnosis changed in icc 8.0:
4232 # icc: Command line remark: option '-MP' not supported
4233 if (grep 'ignoring option' conftest.err ||
4234 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4235 am_cv_CC_dependencies_compiler_type=$depmode
4244 am_cv_CC_dependencies_compiler_type=none
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4249 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4250 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4253 test "x$enable_dependency_tracking" != xno \
4254 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4256 am__fastdepCC_FALSE='#'
4258 am__fastdepCC_TRUE='#'
4259 am__fastdepCC_FALSE=
4265 ac_cpp='$CPP $CPPFLAGS'
4266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4270 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4271 # On Suns, sometimes $CPP names a directory.
4272 if test -n "$CPP" && test -d "$CPP"; then
4275 if test -z "$CPP"; then
4276 if ${ac_cv_prog_CPP+:} false; then :
4277 $as_echo_n "(cached) " >&6
4279 # Double quotes because CPP needs to be expanded
4280 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4283 for ac_c_preproc_warn_flag in '' yes
4285 # Use a header file that comes with gcc, so configuring glibc
4286 # with a fresh cross-compiler works.
4287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288 # <limits.h> exists even on freestanding compilers.
4289 # On the NeXT, cc -E runs the code through the compiler's parser,
4290 # not just through cpp. "Syntax error" is here to catch this case.
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4294 # include <limits.h>
4296 # include <assert.h>
4300 if ac_fn_c_try_cpp "$LINENO"; then :
4303 # Broken: fails on valid input.
4306 rm -f conftest.err conftest.i conftest.$ac_ext
4308 # OK, works on sane cases. Now check whether nonexistent headers
4309 # can be detected and how.
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4312 #include <ac_nonexistent.h>
4314 if ac_fn_c_try_cpp "$LINENO"; then :
4315 # Broken: success on invalid input.
4318 # Passes both tests.
4322 rm -f conftest.err conftest.i conftest.$ac_ext
4325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4326 rm -f conftest.i conftest.err conftest.
$ac_ext
4327 if $ac_preproc_ok; then :
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4340 $as_echo "$CPP" >&6; }
4342 for ac_c_preproc_warn_flag
in '' yes
4344 # Use a header file that comes with gcc, so configuring glibc
4345 # with a fresh cross-compiler works.
4346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4347 # <limits.h> exists even on freestanding compilers.
4348 # On the NeXT, cc -E runs the code through the compiler's parser,
4349 # not just through cpp. "Syntax error" is here to catch this case.
4350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4353 # include <limits.h>
4355 # include <assert.h>
4359 if ac_fn_c_try_cpp
"$LINENO"; then :
4362 # Broken: fails on valid input.
4365 rm -f conftest.err conftest.i conftest.
$ac_ext
4367 # OK, works on sane cases. Now check whether nonexistent headers
4368 # can be detected and how.
4369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371 #include <ac_nonexistent.h>
4373 if ac_fn_c_try_cpp
"$LINENO"; then :
4374 # Broken: success on invalid input.
4377 # Passes both tests.
4381 rm -f conftest.err conftest.i conftest.
$ac_ext
4384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4385 rm -f conftest.i conftest.err conftest.
$ac_ext
4386 if $ac_preproc_ok; then :
4389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4391 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4392 See \`config.log' for more details" "$LINENO" 5; }
4396 ac_cpp
='$CPP $CPPFLAGS'
4397 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4403 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4404 if ${ac_cv_path_GREP+:} false
; then :
4405 $as_echo_n "(cached) " >&6
4407 if test -z "$GREP"; then
4408 ac_path_GREP_found
=false
4409 # Loop through the user's path and test for each of PROGNAME-LIST
4410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4411 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4414 test -z "$as_dir" && as_dir
=.
4415 for ac_prog
in grep ggrep
; do
4416 for ac_exec_ext
in '' $ac_executable_extensions; do
4417 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4418 as_fn_executable_p
"$ac_path_GREP" ||
continue
4419 # Check for GNU ac_path_GREP and select it if it is found.
4420 # Check for GNU $ac_path_GREP
4421 case `"$ac_path_GREP" --version 2>&1` in
4423 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4426 $as_echo_n 0123456789 >"conftest.in"
4429 cat "conftest.in" "conftest.in" >"conftest.tmp"
4430 mv "conftest.tmp" "conftest.in"
4431 cp "conftest.in" "conftest.nl"
4432 $as_echo 'GREP' >> "conftest.nl"
4433 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4434 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4435 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4436 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4437 # Best one so far, save it but keep looking for a better one
4438 ac_cv_path_GREP
="$ac_path_GREP"
4439 ac_path_GREP_max
=$ac_count
4441 # 10*(2^10) chars as input seems more than enough
4442 test $ac_count -gt 10 && break
4444 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4447 $ac_path_GREP_found && break 3
4452 if test -z "$ac_cv_path_GREP"; then
4453 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4456 ac_cv_path_GREP
=$GREP
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4461 $as_echo "$ac_cv_path_GREP" >&6; }
4462 GREP
="$ac_cv_path_GREP"
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4466 $as_echo_n "checking for egrep... " >&6; }
4467 if ${ac_cv_path_EGREP+:} false
; then :
4468 $as_echo_n "(cached) " >&6
4470 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4471 then ac_cv_path_EGREP
="$GREP -E"
4473 if test -z "$EGREP"; then
4474 ac_path_EGREP_found
=false
4475 # Loop through the user's path and test for each of PROGNAME-LIST
4476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4477 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4480 test -z "$as_dir" && as_dir
=.
4481 for ac_prog
in egrep; do
4482 for ac_exec_ext
in '' $ac_executable_extensions; do
4483 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4484 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4485 # Check for GNU ac_path_EGREP and select it if it is found.
4486 # Check for GNU $ac_path_EGREP
4487 case `"$ac_path_EGREP" --version 2>&1` in
4489 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4492 $as_echo_n 0123456789 >"conftest.in"
4495 cat "conftest.in" "conftest.in" >"conftest.tmp"
4496 mv "conftest.tmp" "conftest.in"
4497 cp "conftest.in" "conftest.nl"
4498 $as_echo 'EGREP' >> "conftest.nl"
4499 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4500 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4501 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4502 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4503 # Best one so far, save it but keep looking for a better one
4504 ac_cv_path_EGREP
="$ac_path_EGREP"
4505 ac_path_EGREP_max
=$ac_count
4507 # 10*(2^10) chars as input seems more than enough
4508 test $ac_count -gt 10 && break
4510 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4513 $ac_path_EGREP_found && break 3
4518 if test -z "$ac_cv_path_EGREP"; then
4519 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4522 ac_cv_path_EGREP
=$EGREP
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4528 $as_echo "$ac_cv_path_EGREP" >&6; }
4529 EGREP
="$ac_cv_path_EGREP"
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4533 $as_echo_n "checking for ANSI C header files... " >&6; }
4534 if ${ac_cv_header_stdc+:} false
; then :
4535 $as_echo_n "(cached) " >&6
4537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4552 if ac_fn_c_try_compile
"$LINENO"; then :
4553 ac_cv_header_stdc
=yes
4555 ac_cv_header_stdc
=no
4557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4559 if test $ac_cv_header_stdc = yes; then
4560 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4567 $EGREP "memchr" >/dev
/null
2>&1; then :
4570 ac_cv_header_stdc
=no
4576 if test $ac_cv_header_stdc = yes; then
4577 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4584 $EGREP "free" >/dev
/null
2>&1; then :
4587 ac_cv_header_stdc
=no
4593 if test $ac_cv_header_stdc = yes; then
4594 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4595 if test "$cross_compiling" = yes; then :
4598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4602 #if ((' ' & 0x0FF) == 0x020)
4603 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4604 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4606 # define ISLOWER(c) \
4607 (('a' <= (c) && (c) <= 'i') \
4608 || ('j' <= (c) && (c) <= 'r') \
4609 || ('s' <= (c) && (c) <= 'z'))
4610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4618 for (i = 0; i < 256; i++)
4619 if (XOR (islower (i), ISLOWER (i))
4620 || toupper (i) != TOUPPER (i))
4625 if ac_fn_c_try_run
"$LINENO"; then :
4628 ac_cv_header_stdc
=no
4630 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4631 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4637 $as_echo "$ac_cv_header_stdc" >&6; }
4638 if test $ac_cv_header_stdc = yes; then
4640 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4644 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4645 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4646 inttypes.h stdint.h unistd.h
4648 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4649 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4651 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4652 cat >>confdefs.h
<<_ACEOF
4653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4662 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4663 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4670 if test "$MINIX" = yes; then
4672 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4675 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4678 $as_echo "#define _MINIX 1" >>confdefs.h
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4684 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4685 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4686 $as_echo_n "(cached) " >&6
4688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4691 # define __EXTENSIONS__ 1
4692 $ac_includes_default
4701 if ac_fn_c_try_compile
"$LINENO"; then :
4702 ac_cv_safe_to_define___extensions__
=yes
4704 ac_cv_safe_to_define___extensions__
=no
4706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4709 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4710 test $ac_cv_safe_to_define___extensions__ = yes &&
4711 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4713 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4715 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4717 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4719 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4726 if test "X$prefix" = "XNONE"; then
4727 acl_final_prefix
="$ac_default_prefix"
4729 acl_final_prefix
="$prefix"
4731 if test "X$exec_prefix" = "XNONE"; then
4732 acl_final_exec_prefix
='${prefix}'
4734 acl_final_exec_prefix
="$exec_prefix"
4736 acl_save_prefix
="$prefix"
4737 prefix
="$acl_final_prefix"
4738 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
4739 prefix
="$acl_save_prefix"
4742 # Check whether --with-gnu-ld was given.
4743 if test "${with_gnu_ld+set}" = set; then :
4744 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4749 # Prepare PATH_SEPARATOR.
4750 # The user is always right.
4751 if test "${PATH_SEPARATOR+set}" != set; then
4752 echo "#! /bin/sh" >conf$$.sh
4753 echo "exit 0" >>conf$$.sh
4755 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4763 if test "$GCC" = yes; then
4764 # Check if gcc -print-prog-name=ld gives a path.
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4766 $as_echo_n "checking for ld used by GCC... " >&6; }
4769 # gcc leaves a trailing carriage return which upsets mingw
4770 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4772 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4775 # Accept absolute paths.
4776 [\\/]* |
[A-Za-z
]:[\\/]*)
4777 re_direlt
='/[^/][^/]*/\.\./'
4778 # Canonicalize the path of ld
4779 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
4780 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
4781 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
4783 test -z "$LD" && LD
="$ac_prog"
4786 # If it fails, then pretend we aren't using GCC.
4790 # If it is relative, then search for the first ld in PATH.
4794 elif test "$with_gnu_ld" = yes; then
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4796 $as_echo_n "checking for GNU ld... " >&6; }
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4799 $as_echo_n "checking for non-GNU ld... " >&6; }
4801 if ${acl_cv_path_LD+:} false
; then :
4802 $as_echo_n "(cached) " >&6
4804 if test -z "$LD"; then
4805 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4806 for ac_dir
in $PATH; do
4807 test -z "$ac_dir" && ac_dir
=.
4808 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4809 acl_cv_path_LD
="$ac_dir/$ac_prog"
4810 # Check to see if the program is GNU ld. I'd rather use --version,
4811 # but apparently some GNU ld's only accept -v.
4812 # Break only if it was the GNU/non-GNU ld that we prefer.
4813 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4814 *GNU
* |
*'with BFD'*)
4815 test "$with_gnu_ld" != no
&& break ;;
4817 test "$with_gnu_ld" != yes && break ;;
4823 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
4827 LD
="$acl_cv_path_LD"
4828 if test -n "$LD"; then
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4830 $as_echo "$LD" >&6; }
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833 $as_echo "no" >&6; }
4835 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4837 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4838 if ${acl_cv_prog_gnu_ld+:} false
; then :
4839 $as_echo_n "(cached) " >&6
4841 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4842 case `$LD -v 2>&1 </dev/null` in
4843 *GNU
* |
*'with BFD'*)
4844 acl_cv_prog_gnu_ld
=yes ;;
4846 acl_cv_prog_gnu_ld
=no
;;
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4850 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4851 with_gnu_ld
=$acl_cv_prog_gnu_ld
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4857 $as_echo_n "checking for shared library run path origin... " >&6; }
4858 if ${acl_cv_rpath+:} false
; then :
4859 $as_echo_n "(cached) " >&6
4862 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
4863 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4870 $as_echo "$acl_cv_rpath" >&6; }
4872 acl_libext
="$acl_cv_libext"
4873 acl_shlibext
="$acl_cv_shlibext"
4874 acl_libname_spec
="$acl_cv_libname_spec"
4875 acl_library_names_spec
="$acl_cv_library_names_spec"
4876 acl_hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
4877 acl_hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
4878 acl_hardcode_direct
="$acl_cv_hardcode_direct"
4879 acl_hardcode_minus_L
="$acl_cv_hardcode_minus_L"
4880 # Check whether --enable-rpath was given.
4881 if test "${enable_rpath+set}" = set; then :
4882 enableval
=$enable_rpath; :
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4895 $as_echo_n "checking for 64-bit host... " >&6; }
4896 if ${gl_cv_solaris_64bit+:} false
; then :
4897 $as_echo_n "(cached) " >&6
4899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4908 $EGREP "sixtyfour bits" >/dev
/null
2>&1; then :
4909 gl_cv_solaris_64bit
=yes
4911 gl_cv_solaris_64bit
=no
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4918 $as_echo "$gl_cv_solaris_64bit" >&6; }
4919 if test $gl_cv_solaris_64bit = yes; then
4920 acl_libdirstem
=lib
/64
4922 sparc
*) acl_libdirstem2
=lib
/sparcv9
;;
4923 i
*86 | x86_64
) acl_libdirstem2
=lib
/amd64
;;
4928 searchpath
=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4929 if test -n "$searchpath"; then
4930 acl_save_IFS
="${IFS= }"; IFS
=":"
4931 for searchdir
in $searchpath; do
4932 if test -d "$searchdir"; then
4933 case "$searchdir" in
4934 */lib64
/ |
*/lib64
) acl_libdirstem
=lib64
;;
4936 # Better ignore directories of this form. They are misleading.
4938 *) searchdir
=`cd "$searchdir" && pwd`
4939 case "$searchdir" in
4940 */lib64
) acl_libdirstem
=lib64
;;
4949 test -n "$acl_libdirstem2" || acl_libdirstem2
="$acl_libdirstem"
4964 acl_save_prefix
="$prefix"
4965 prefix
="$acl_final_prefix"
4966 acl_save_exec_prefix
="$exec_prefix"
4967 exec_prefix
="$acl_final_exec_prefix"
4969 eval additional_includedir
=\"$includedir\"
4970 eval additional_libdir
=\"$libdir\"
4972 exec_prefix
="$acl_save_exec_prefix"
4973 prefix
="$acl_save_prefix"
4976 # Check whether --with-libiconv-prefix was given.
4977 if test "${with_libiconv_prefix+set}" = set; then :
4978 withval
=$with_libiconv_prefix;
4979 if test "X$withval" = "Xno"; then
4982 if test "X$withval" = "X"; then
4984 acl_save_prefix
="$prefix"
4985 prefix
="$acl_final_prefix"
4986 acl_save_exec_prefix
="$exec_prefix"
4987 exec_prefix
="$acl_final_exec_prefix"
4989 eval additional_includedir
=\"$includedir\"
4990 eval additional_libdir
=\"$libdir\"
4992 exec_prefix
="$acl_save_exec_prefix"
4993 prefix
="$acl_save_prefix"
4996 additional_includedir
="$withval/include"
4997 additional_libdir
="$withval/$acl_libdirstem"
4998 if test "$acl_libdirstem2" != "$acl_libdirstem" \
4999 && ! test -d "$withval/$acl_libdirstem"; then
5000 additional_libdir
="$withval/$acl_libdirstem2"
5014 names_already_handled
=
5015 names_next_round
='iconv '
5016 while test -n "$names_next_round"; do
5017 names_this_round
="$names_next_round"
5019 for name
in $names_this_round; do
5021 for n
in $names_already_handled; do
5022 if test "$n" = "$name"; then
5027 if test -z "$already_handled"; then
5028 names_already_handled
="$names_already_handled $name"
5029 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5030 eval value
=\"\
$HAVE_LIB$uppername\"
5031 if test -n "$value"; then
5032 if test "$value" = yes; then
5033 eval value
=\"\
$LIB$uppername\"
5034 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
5035 eval value
=\"\
$LTLIB$uppername\"
5036 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
5045 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
5046 if test -n "$acl_shlibext"; then
5047 shrext
=".$acl_shlibext" # typically: shrext=.so
5051 if test $use_additional = yes; then
5052 dir
="$additional_libdir"
5053 if test -n "$acl_shlibext"; then
5054 if test -f "$dir/$libname$shrext"; then
5056 found_so
="$dir/$libname$shrext"
5058 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5059 ver
=`(cd "$dir" && \
5060 for f in "$libname$shrext".*; do echo "$f"; done \
5061 | sed -e "s,^$libname$shrext\\\\.,," \
5062 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5063 | sed 1q ) 2>/dev/null`
5064 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5066 found_so
="$dir/$libname$shrext.$ver"
5069 eval library_names
=\"$acl_library_names_spec\"
5070 for f
in $library_names; do
5071 if test -f "$dir/$f"; then
5080 if test "X$found_dir" = "X"; then
5081 if test -f "$dir/$libname.$acl_libext"; then
5083 found_a
="$dir/$libname.$acl_libext"
5086 if test "X$found_dir" != "X"; then
5087 if test -f "$dir/$libname.la"; then
5088 found_la
="$dir/$libname.la"
5092 if test "X$found_dir" = "X"; then
5093 for x
in $LDFLAGS $LTLIBICONV; do
5095 acl_save_prefix
="$prefix"
5096 prefix
="$acl_final_prefix"
5097 acl_save_exec_prefix
="$exec_prefix"
5098 exec_prefix
="$acl_final_exec_prefix"
5100 exec_prefix
="$acl_save_exec_prefix"
5101 prefix
="$acl_save_prefix"
5105 dir
=`echo "X$x" | sed -e 's/^X-L//'`
5106 if test -n "$acl_shlibext"; then
5107 if test -f "$dir/$libname$shrext"; then
5109 found_so
="$dir/$libname$shrext"
5111 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5112 ver
=`(cd "$dir" && \
5113 for f in "$libname$shrext".*; do echo "$f"; done \
5114 | sed -e "s,^$libname$shrext\\\\.,," \
5115 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5116 | sed 1q ) 2>/dev/null`
5117 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5119 found_so
="$dir/$libname$shrext.$ver"
5122 eval library_names
=\"$acl_library_names_spec\"
5123 for f
in $library_names; do
5124 if test -f "$dir/$f"; then
5133 if test "X$found_dir" = "X"; then
5134 if test -f "$dir/$libname.$acl_libext"; then
5136 found_a
="$dir/$libname.$acl_libext"
5139 if test "X$found_dir" != "X"; then
5140 if test -f "$dir/$libname.la"; then
5141 found_la
="$dir/$libname.la"
5146 if test "X$found_dir" != "X"; then
5151 if test "X$found_dir" != "X"; then
5152 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5153 if test "X$found_so" != "X"; then
5154 if test "$enable_rpath" = no \
5155 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
5156 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5157 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5160 for x
in $ltrpathdirs; do
5161 if test "X$x" = "X$found_dir"; then
5166 if test -z "$haveit"; then
5167 ltrpathdirs
="$ltrpathdirs $found_dir"
5169 if test "$acl_hardcode_direct" = yes; then
5170 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5172 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
5173 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5175 for x
in $rpathdirs; do
5176 if test "X$x" = "X$found_dir"; then
5181 if test -z "$haveit"; then
5182 rpathdirs
="$rpathdirs $found_dir"
5186 for x
in $LDFLAGS $LIBICONV; do
5188 acl_save_prefix
="$prefix"
5189 prefix
="$acl_final_prefix"
5190 acl_save_exec_prefix
="$exec_prefix"
5191 exec_prefix
="$acl_final_exec_prefix"
5193 exec_prefix
="$acl_save_exec_prefix"
5194 prefix
="$acl_save_prefix"
5196 if test "X$x" = "X-L$found_dir"; then
5201 if test -z "$haveit"; then
5202 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5204 if test "$acl_hardcode_minus_L" != no
; then
5205 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5207 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
5213 if test "X$found_a" != "X"; then
5214 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
5216 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5219 additional_includedir
=
5220 case "$found_dir" in
5221 */$acl_libdirstem |
*/$acl_libdirstem/)
5222 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5223 if test "$name" = 'iconv'; then
5224 LIBICONV_PREFIX
="$basedir"
5226 additional_includedir
="$basedir/include"
5228 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
5229 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5230 if test "$name" = 'iconv'; then
5231 LIBICONV_PREFIX
="$basedir"
5233 additional_includedir
="$basedir/include"
5236 if test "X$additional_includedir" != "X"; then
5237 if test "X$additional_includedir" != "X/usr/include"; then
5239 if test "X$additional_includedir" = "X/usr/local/include"; then
5240 if test -n "$GCC"; then
5242 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
5246 if test -z "$haveit"; then
5247 for x
in $CPPFLAGS $INCICONV; do
5249 acl_save_prefix
="$prefix"
5250 prefix
="$acl_final_prefix"
5251 acl_save_exec_prefix
="$exec_prefix"
5252 exec_prefix
="$acl_final_exec_prefix"
5254 exec_prefix
="$acl_save_exec_prefix"
5255 prefix
="$acl_save_prefix"
5257 if test "X$x" = "X-I$additional_includedir"; then
5262 if test -z "$haveit"; then
5263 if test -d "$additional_includedir"; then
5264 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5270 if test -n "$found_la"; then
5271 save_libdir
="$libdir"
5273 */* |
*\\*) .
"$found_la" ;;
5274 *) .
"./$found_la" ;;
5276 libdir
="$save_libdir"
5277 for dep
in $dependency_libs; do
5280 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
5281 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5282 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5284 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5285 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5286 if test -n "$GCC"; then
5288 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
5292 if test -z "$haveit"; then
5294 for x
in $LDFLAGS $LIBICONV; do
5296 acl_save_prefix
="$prefix"
5297 prefix
="$acl_final_prefix"
5298 acl_save_exec_prefix
="$exec_prefix"
5299 exec_prefix
="$acl_final_exec_prefix"
5301 exec_prefix
="$acl_save_exec_prefix"
5302 prefix
="$acl_save_prefix"
5304 if test "X$x" = "X-L$additional_libdir"; then
5309 if test -z "$haveit"; then
5310 if test -d "$additional_libdir"; then
5311 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5315 for x
in $LDFLAGS $LTLIBICONV; do
5317 acl_save_prefix
="$prefix"
5318 prefix
="$acl_final_prefix"
5319 acl_save_exec_prefix
="$exec_prefix"
5320 exec_prefix
="$acl_final_exec_prefix"
5322 exec_prefix
="$acl_save_exec_prefix"
5323 prefix
="$acl_save_prefix"
5325 if test "X$x" = "X-L$additional_libdir"; then
5330 if test -z "$haveit"; then
5331 if test -d "$additional_libdir"; then
5332 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5339 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
5340 if test "$enable_rpath" != no
; then
5342 for x
in $rpathdirs; do
5343 if test "X$x" = "X$dir"; then
5348 if test -z "$haveit"; then
5349 rpathdirs
="$rpathdirs $dir"
5352 for x
in $ltrpathdirs; do
5353 if test "X$x" = "X$dir"; then
5358 if test -z "$haveit"; then
5359 ltrpathdirs
="$ltrpathdirs $dir"
5364 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5367 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5370 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
5371 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5377 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
5378 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5384 if test "X$rpathdirs" != "X"; then
5385 if test -n "$acl_hardcode_libdir_separator"; then
5387 for found_dir
in $rpathdirs; do
5388 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5390 acl_save_libdir
="$libdir"
5392 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
5393 libdir
="$acl_save_libdir"
5394 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
5396 for found_dir
in $rpathdirs; do
5397 acl_save_libdir
="$libdir"
5399 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
5400 libdir
="$acl_save_libdir"
5401 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
5405 if test "X$ltrpathdirs" != "X"; then
5406 for found_dir
in $ltrpathdirs; do
5407 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5422 am_save_CPPFLAGS
="$CPPFLAGS"
5424 for element
in $INCICONV; do
5426 for x
in $CPPFLAGS; do
5428 acl_save_prefix
="$prefix"
5429 prefix
="$acl_final_prefix"
5430 acl_save_exec_prefix
="$exec_prefix"
5431 exec_prefix
="$acl_final_exec_prefix"
5433 exec_prefix
="$acl_save_exec_prefix"
5434 prefix
="$acl_save_prefix"
5436 if test "X$x" = "X$element"; then
5441 if test -z "$haveit"; then
5442 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5448 $as_echo_n "checking for iconv... " >&6; }
5449 if ${am_cv_func_iconv+:} false
; then :
5450 $as_echo_n "(cached) " >&6
5453 am_cv_func_iconv
="no, consider installing GNU libiconv"
5455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5462 iconv_t cd = iconv_open("","");
5463 iconv(cd,NULL,NULL,NULL,NULL);
5469 if ac_fn_c_try_link
"$LINENO"; then :
5470 am_cv_func_iconv
=yes
5472 rm -f core conftest.err conftest.
$ac_objext \
5473 conftest
$ac_exeext conftest.
$ac_ext
5474 if test "$am_cv_func_iconv" != yes; then
5475 am_save_LIBS
="$LIBS"
5476 LIBS
="$LIBS $LIBICONV"
5477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5484 iconv_t cd = iconv_open("","");
5485 iconv(cd,NULL,NULL,NULL,NULL);
5491 if ac_fn_c_try_link
"$LINENO"; then :
5493 am_cv_func_iconv
=yes
5495 rm -f core conftest.err conftest.
$ac_objext \
5496 conftest
$ac_exeext conftest.
$ac_ext
5497 LIBS
="$am_save_LIBS"
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5502 $as_echo "$am_cv_func_iconv" >&6; }
5503 if test "$am_cv_func_iconv" = yes; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5505 $as_echo_n "checking for working iconv... " >&6; }
5506 if ${am_cv_func_iconv_works+:} false
; then :
5507 $as_echo_n "(cached) " >&6
5510 am_save_LIBS
="$LIBS"
5511 if test $am_cv_lib_iconv = yes; then
5512 LIBS
="$LIBS $LIBICONV"
5514 if test "$cross_compiling" = yes; then :
5516 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
5517 *) am_cv_func_iconv_works
="guessing yes" ;;
5520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5527 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5530 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5531 if (cd_utf8_to_88591 != (iconv_t)(-1))
5533 static const char input[] = "\342\202\254"; /* EURO SIGN */
5535 const char *inptr = input;
5536 size_t inbytesleft = strlen (input);
5538 size_t outbytesleft = sizeof (buf);
5539 size_t res = iconv (cd_utf8_to_88591,
5540 (char **) &inptr, &inbytesleft,
5541 &outptr, &outbytesleft);
5546 /* Test against Solaris 10 bug: Failures are not distinguishable from
5547 successful returns. */
5549 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5550 if (cd_ascii_to_88591 != (iconv_t)(-1))
5552 static const char input[] = "\263";
5554 const char *inptr = input;
5555 size_t inbytesleft = strlen (input);
5557 size_t outbytesleft = sizeof (buf);
5558 size_t res = iconv (cd_ascii_to_88591,
5559 (char **) &inptr, &inbytesleft,
5560 &outptr, &outbytesleft);
5565 #if 0 /* This bug could be worked around by the caller. */
5566 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5568 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5569 if (cd_88591_to_utf8 != (iconv_t)(-1))
5571 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5573 const char *inptr = input;
5574 size_t inbytesleft = strlen (input);
5576 size_t outbytesleft = sizeof (buf);
5577 size_t res = iconv (cd_88591_to_utf8,
5578 (char **) &inptr, &inbytesleft,
5579 &outptr, &outbytesleft);
5585 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5587 if (/* Try standardized names. */
5588 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5589 /* Try IRIX, OSF/1 names. */
5590 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5591 /* Try AIX names. */
5592 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5593 /* Try HP-UX names. */
5594 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5599 if ac_fn_c_try_run
"$LINENO"; then :
5600 am_cv_func_iconv_works
=yes
5602 am_cv_func_iconv_works
=no
5604 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5605 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5608 LIBS
="$am_save_LIBS"
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5612 $as_echo "$am_cv_func_iconv_works" >&6; }
5613 case "$am_cv_func_iconv_works" in
5614 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
5615 *) am_func_iconv
=yes ;;
5618 am_func_iconv
=no am_cv_lib_iconv
=no
5620 if test "$am_func_iconv" = yes; then
5622 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5625 if test "$am_cv_lib_iconv" = yes; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5627 $as_echo_n "checking how to link with libiconv... " >&6; }
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5629 $as_echo "$LIBICONV" >&6; }
5631 CPPFLAGS
="$am_save_CPPFLAGS"
5638 if test "$am_cv_func_iconv" = yes; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
5640 $as_echo_n "checking for iconv declaration... " >&6; }
5641 if ${am_cv_proto_iconv+:} false
; then :
5642 $as_echo_n "(cached) " >&6
5645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5654 #if defined(__STDC__) || defined(__cplusplus)
5655 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5668 if ac_fn_c_try_compile
"$LINENO"; then :
5669 am_cv_proto_iconv_arg1
=""
5671 am_cv_proto_iconv_arg1
="const"
5673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5674 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
5677 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
5679 $am_cv_proto_iconv" >&5
5681 $am_cv_proto_iconv" >&6; }
5683 cat >>confdefs.h
<<_ACEOF
5684 #define ICONV_CONST $am_cv_proto_iconv_arg1
5692 [\\/$
]* | ?
:[\\/]*) ;;
5693 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5698 $as_echo_n "checking whether NLS is requested... " >&6; }
5699 # Check whether --enable-nls was given.
5700 if test "${enable_nls+set}" = set; then :
5701 enableval
=$enable_nls; USE_NLS
=$enableval
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5707 $as_echo "$USE_NLS" >&6; }
5712 GETTEXT_MACRO_VERSION
=0.18
5717 # Prepare PATH_SEPARATOR.
5718 # The user is always right.
5719 if test "${PATH_SEPARATOR+set}" != set; then
5720 echo "#! /bin/sh" >conf$$.sh
5721 echo "exit 0" >>conf$$.sh
5723 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5731 # Find out how to test for executable files. Don't use a zero-byte file,
5732 # as systems may use methods other than mode bits to determine executability.
5733 cat >conf$$.
file <<_ASEOF
5737 chmod +x conf$$.
file
5738 if test -x conf$$.
file >/dev
/null
2>&1; then
5739 ac_executable_p
="test -x"
5741 ac_executable_p
="test -f"
5745 # Extract the first word of "msgfmt", so it can be a program name with args.
5746 set dummy msgfmt
; ac_word
=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if ${ac_cv_path_MSGFMT+:} false
; then :
5750 $as_echo_n "(cached) " >&6
5754 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5757 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
5758 for ac_dir
in $PATH; do
5760 test -z "$ac_dir" && ac_dir
=.
5761 for ac_exec_ext
in '' $ac_executable_extensions; do
5762 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5763 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5764 if $ac_dir/$ac_word --statistics /dev
/null
>&5 2>&1 &&
5765 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
5766 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
5773 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
5777 MSGFMT
="$ac_cv_path_MSGFMT"
5778 if test "$MSGFMT" != ":"; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5780 $as_echo "$MSGFMT" >&6; }
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5786 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5787 set dummy gmsgfmt
; ac_word
=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if ${ac_cv_path_GMSGFMT+:} false
; then :
5791 $as_echo_n "(cached) " >&6
5795 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5798 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5802 test -z "$as_dir" && as_dir
=.
5803 for ac_exec_ext
in '' $ac_executable_extensions; do
5804 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5805 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5817 GMSGFMT
=$ac_cv_path_GMSGFMT
5818 if test -n "$GMSGFMT"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5820 $as_echo "$GMSGFMT" >&6; }
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5828 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5829 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) MSGFMT_015
=: ;;
5830 *) MSGFMT_015
=$MSGFMT ;;
5833 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5834 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) GMSGFMT_015
=: ;;
5835 *) GMSGFMT_015
=$GMSGFMT ;;
5840 # Prepare PATH_SEPARATOR.
5841 # The user is always right.
5842 if test "${PATH_SEPARATOR+set}" != set; then
5843 echo "#! /bin/sh" >conf$$.sh
5844 echo "exit 0" >>conf$$.sh
5846 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5854 # Find out how to test for executable files. Don't use a zero-byte file,
5855 # as systems may use methods other than mode bits to determine executability.
5856 cat >conf$$.
file <<_ASEOF
5860 chmod +x conf$$.
file
5861 if test -x conf$$.
file >/dev
/null
2>&1; then
5862 ac_executable_p
="test -x"
5864 ac_executable_p
="test -f"
5868 # Extract the first word of "xgettext", so it can be a program name with args.
5869 set dummy xgettext
; ac_word
=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if ${ac_cv_path_XGETTEXT+:} false
; then :
5873 $as_echo_n "(cached) " >&6
5877 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5880 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
5881 for ac_dir
in $PATH; do
5883 test -z "$ac_dir" && ac_dir
=.
5884 for ac_exec_ext
in '' $ac_executable_extensions; do
5885 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5886 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5887 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>&5 2>&1 &&
5888 (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
5889 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
5896 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5900 XGETTEXT
="$ac_cv_path_XGETTEXT"
5901 if test "$XGETTEXT" != ":"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5903 $as_echo "$XGETTEXT" >&6; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5911 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5912 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) XGETTEXT_015
=: ;;
5913 *) XGETTEXT_015
=$XGETTEXT ;;
5918 # Prepare PATH_SEPARATOR.
5919 # The user is always right.
5920 if test "${PATH_SEPARATOR+set}" != set; then
5921 echo "#! /bin/sh" >conf$$.sh
5922 echo "exit 0" >>conf$$.sh
5924 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5932 # Find out how to test for executable files. Don't use a zero-byte file,
5933 # as systems may use methods other than mode bits to determine executability.
5934 cat >conf$$.
file <<_ASEOF
5938 chmod +x conf$$.
file
5939 if test -x conf$$.
file >/dev
/null
2>&1; then
5940 ac_executable_p
="test -x"
5942 ac_executable_p
="test -f"
5946 # Extract the first word of "msgmerge", so it can be a program name with args.
5947 set dummy msgmerge
; ac_word
=$2
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5949 $as_echo_n "checking for $ac_word... " >&6; }
5950 if ${ac_cv_path_MSGMERGE+:} false
; then :
5951 $as_echo_n "(cached) " >&6
5955 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
5958 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
5959 for ac_dir
in $PATH; do
5961 test -z "$ac_dir" && ac_dir
=.
5962 for ac_exec_ext
in '' $ac_executable_extensions; do
5963 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5964 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5965 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>&5 2>&1; then
5966 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
5973 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
5977 MSGMERGE
="$ac_cv_path_MSGMERGE"
5978 if test "$MSGMERGE" != ":"; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5980 $as_echo "$MSGMERGE" >&6; }
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5987 test -n "$localedir" || localedir
='${datadir}/locale'
5990 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS
=
5993 ac_config_commands
="$ac_config_commands po-directories"
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6021 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6022 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
6023 $as_echo_n "(cached) " >&6
6025 gt_save_LIBS
="$LIBS"
6026 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
6027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 #include <CoreFoundation/CFPreferences.h>
6033 CFPreferencesCopyAppValue(NULL, NULL)
6038 if ac_fn_c_try_link
"$LINENO"; then :
6039 gt_cv_func_CFPreferencesCopyAppValue
=yes
6041 gt_cv_func_CFPreferencesCopyAppValue
=no
6043 rm -f core conftest.err conftest.
$ac_objext \
6044 conftest
$ac_exeext conftest.
$ac_ext
6045 LIBS
="$gt_save_LIBS"
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6048 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6049 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6051 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6055 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6056 if ${gt_cv_func_CFLocaleCopyCurrent+:} false
; then :
6057 $as_echo_n "(cached) " >&6
6059 gt_save_LIBS
="$LIBS"
6060 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
6061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6063 #include <CoreFoundation/CFLocale.h>
6067 CFLocaleCopyCurrent();
6072 if ac_fn_c_try_link
"$LINENO"; then :
6073 gt_cv_func_CFLocaleCopyCurrent
=yes
6075 gt_cv_func_CFLocaleCopyCurrent
=no
6077 rm -f core conftest.err conftest.
$ac_objext \
6078 conftest
$ac_exeext conftest.
$ac_ext
6079 LIBS
="$gt_save_LIBS"
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6082 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6083 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6085 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6089 if test $gt_cv_func_CFPreferencesCopyAppValue = yes ||
test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6090 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation"
6102 case " $gt_needs " in
6103 *" need-formatstring-macros "*) gt_api_version
=3 ;;
6104 *" need-ngettext "*) gt_api_version
=2 ;;
6105 *) gt_api_version
=1 ;;
6107 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
6108 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
6110 if test "$USE_NLS" = "yes"; then
6111 gt_use_preinstalled_gnugettext
=no
6114 if test $gt_api_version -ge 3; then
6115 gt_revision_test_code
='
6116 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6117 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6119 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6122 gt_revision_test_code
=
6124 if test $gt_api_version -ge 2; then
6125 gt_expression_test_code
=' + * ngettext ("", "", 0)'
6127 gt_expression_test_code
=
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6131 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6132 if eval \
${$gt_func_gnugettext_libc+:} false
; then :
6133 $as_echo_n "(cached) " >&6
6135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h. */
6137 #include <libintl.h>
6138 $gt_revision_test_code
6139 extern int _nl_msg_cat_cntr;
6140 extern int *_nl_domain_bindings;
6144 bindtextdomain ("", "");
6145 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6150 if ac_fn_c_try_link
"$LINENO"; then :
6151 eval "$gt_func_gnugettext_libc=yes"
6153 eval "$gt_func_gnugettext_libc=no"
6155 rm -f core conftest.err conftest.
$ac_objext \
6156 conftest
$ac_exeext conftest.
$ac_ext
6158 eval ac_res
=\$
$gt_func_gnugettext_libc
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6160 $as_echo "$ac_res" >&6; }
6162 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6168 am_save_CPPFLAGS
="$CPPFLAGS"
6170 for element
in $INCICONV; do
6172 for x
in $CPPFLAGS; do
6174 acl_save_prefix
="$prefix"
6175 prefix
="$acl_final_prefix"
6176 acl_save_exec_prefix
="$exec_prefix"
6177 exec_prefix
="$acl_final_exec_prefix"
6179 exec_prefix
="$acl_save_exec_prefix"
6180 prefix
="$acl_save_prefix"
6182 if test "X$x" = "X$element"; then
6187 if test -z "$haveit"; then
6188 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6194 $as_echo_n "checking for iconv... " >&6; }
6195 if ${am_cv_func_iconv+:} false
; then :
6196 $as_echo_n "(cached) " >&6
6199 am_cv_func_iconv
="no, consider installing GNU libiconv"
6201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6208 iconv_t cd = iconv_open("","");
6209 iconv(cd,NULL,NULL,NULL,NULL);
6215 if ac_fn_c_try_link
"$LINENO"; then :
6216 am_cv_func_iconv
=yes
6218 rm -f core conftest.err conftest.
$ac_objext \
6219 conftest
$ac_exeext conftest.
$ac_ext
6220 if test "$am_cv_func_iconv" != yes; then
6221 am_save_LIBS
="$LIBS"
6222 LIBS
="$LIBS $LIBICONV"
6223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6230 iconv_t cd = iconv_open("","");
6231 iconv(cd,NULL,NULL,NULL,NULL);
6237 if ac_fn_c_try_link
"$LINENO"; then :
6239 am_cv_func_iconv
=yes
6241 rm -f core conftest.err conftest.
$ac_objext \
6242 conftest
$ac_exeext conftest.
$ac_ext
6243 LIBS
="$am_save_LIBS"
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6248 $as_echo "$am_cv_func_iconv" >&6; }
6249 if test "$am_cv_func_iconv" = yes; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6251 $as_echo_n "checking for working iconv... " >&6; }
6252 if ${am_cv_func_iconv_works+:} false
; then :
6253 $as_echo_n "(cached) " >&6
6256 am_save_LIBS
="$LIBS"
6257 if test $am_cv_lib_iconv = yes; then
6258 LIBS
="$LIBS $LIBICONV"
6260 if test "$cross_compiling" = yes; then :
6262 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
6263 *) am_cv_func_iconv_works
="guessing yes" ;;
6266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6273 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6276 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6277 if (cd_utf8_to_88591 != (iconv_t)(-1))
6279 static const char input[] = "\342\202\254"; /* EURO SIGN */
6281 const char *inptr = input;
6282 size_t inbytesleft = strlen (input);
6284 size_t outbytesleft = sizeof (buf);
6285 size_t res = iconv (cd_utf8_to_88591,
6286 (char **) &inptr, &inbytesleft,
6287 &outptr, &outbytesleft);
6292 /* Test against Solaris 10 bug: Failures are not distinguishable from
6293 successful returns. */
6295 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6296 if (cd_ascii_to_88591 != (iconv_t)(-1))
6298 static const char input[] = "\263";
6300 const char *inptr = input;
6301 size_t inbytesleft = strlen (input);
6303 size_t outbytesleft = sizeof (buf);
6304 size_t res = iconv (cd_ascii_to_88591,
6305 (char **) &inptr, &inbytesleft,
6306 &outptr, &outbytesleft);
6311 #if 0 /* This bug could be worked around by the caller. */
6312 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6314 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6315 if (cd_88591_to_utf8 != (iconv_t)(-1))
6317 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6319 const char *inptr = input;
6320 size_t inbytesleft = strlen (input);
6322 size_t outbytesleft = sizeof (buf);
6323 size_t res = iconv (cd_88591_to_utf8,
6324 (char **) &inptr, &inbytesleft,
6325 &outptr, &outbytesleft);
6331 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6333 if (/* Try standardized names. */
6334 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6335 /* Try IRIX, OSF/1 names. */
6336 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6337 /* Try AIX names. */
6338 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6339 /* Try HP-UX names. */
6340 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6345 if ac_fn_c_try_run
"$LINENO"; then :
6346 am_cv_func_iconv_works
=yes
6348 am_cv_func_iconv_works
=no
6350 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6351 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6354 LIBS
="$am_save_LIBS"
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6358 $as_echo "$am_cv_func_iconv_works" >&6; }
6359 case "$am_cv_func_iconv_works" in
6360 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
6361 *) am_func_iconv
=yes ;;
6364 am_func_iconv
=no am_cv_lib_iconv
=no
6366 if test "$am_func_iconv" = yes; then
6368 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6371 if test "$am_cv_lib_iconv" = yes; then
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6373 $as_echo_n "checking how to link with libiconv... " >&6; }
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6375 $as_echo "$LIBICONV" >&6; }
6377 CPPFLAGS
="$am_save_CPPFLAGS"
6394 acl_save_prefix
="$prefix"
6395 prefix
="$acl_final_prefix"
6396 acl_save_exec_prefix
="$exec_prefix"
6397 exec_prefix
="$acl_final_exec_prefix"
6399 eval additional_includedir
=\"$includedir\"
6400 eval additional_libdir
=\"$libdir\"
6402 exec_prefix
="$acl_save_exec_prefix"
6403 prefix
="$acl_save_prefix"
6406 # Check whether --with-libintl-prefix was given.
6407 if test "${with_libintl_prefix+set}" = set; then :
6408 withval
=$with_libintl_prefix;
6409 if test "X$withval" = "Xno"; then
6412 if test "X$withval" = "X"; then
6414 acl_save_prefix
="$prefix"
6415 prefix
="$acl_final_prefix"
6416 acl_save_exec_prefix
="$exec_prefix"
6417 exec_prefix
="$acl_final_exec_prefix"
6419 eval additional_includedir
=\"$includedir\"
6420 eval additional_libdir
=\"$libdir\"
6422 exec_prefix
="$acl_save_exec_prefix"
6423 prefix
="$acl_save_prefix"
6426 additional_includedir
="$withval/include"
6427 additional_libdir
="$withval/$acl_libdirstem"
6428 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6429 && ! test -d "$withval/$acl_libdirstem"; then
6430 additional_libdir
="$withval/$acl_libdirstem2"
6444 names_already_handled
=
6445 names_next_round
='intl '
6446 while test -n "$names_next_round"; do
6447 names_this_round
="$names_next_round"
6449 for name
in $names_this_round; do
6451 for n
in $names_already_handled; do
6452 if test "$n" = "$name"; then
6457 if test -z "$already_handled"; then
6458 names_already_handled
="$names_already_handled $name"
6459 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6460 eval value
=\"\
$HAVE_LIB$uppername\"
6461 if test -n "$value"; then
6462 if test "$value" = yes; then
6463 eval value
=\"\
$LIB$uppername\"
6464 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
6465 eval value
=\"\
$LTLIB$uppername\"
6466 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
6475 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
6476 if test -n "$acl_shlibext"; then
6477 shrext
=".$acl_shlibext" # typically: shrext=.so
6481 if test $use_additional = yes; then
6482 dir
="$additional_libdir"
6483 if test -n "$acl_shlibext"; then
6484 if test -f "$dir/$libname$shrext"; then
6486 found_so
="$dir/$libname$shrext"
6488 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6489 ver
=`(cd "$dir" && \
6490 for f in "$libname$shrext".*; do echo "$f"; done \
6491 | sed -e "s,^$libname$shrext\\\\.,," \
6492 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6493 | sed 1q ) 2>/dev/null`
6494 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6496 found_so
="$dir/$libname$shrext.$ver"
6499 eval library_names
=\"$acl_library_names_spec\"
6500 for f
in $library_names; do
6501 if test -f "$dir/$f"; then
6510 if test "X$found_dir" = "X"; then
6511 if test -f "$dir/$libname.$acl_libext"; then
6513 found_a
="$dir/$libname.$acl_libext"
6516 if test "X$found_dir" != "X"; then
6517 if test -f "$dir/$libname.la"; then
6518 found_la
="$dir/$libname.la"
6522 if test "X$found_dir" = "X"; then
6523 for x
in $LDFLAGS $LTLIBINTL; do
6525 acl_save_prefix
="$prefix"
6526 prefix
="$acl_final_prefix"
6527 acl_save_exec_prefix
="$exec_prefix"
6528 exec_prefix
="$acl_final_exec_prefix"
6530 exec_prefix
="$acl_save_exec_prefix"
6531 prefix
="$acl_save_prefix"
6535 dir
=`echo "X$x" | sed -e 's/^X-L//'`
6536 if test -n "$acl_shlibext"; then
6537 if test -f "$dir/$libname$shrext"; then
6539 found_so
="$dir/$libname$shrext"
6541 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6542 ver
=`(cd "$dir" && \
6543 for f in "$libname$shrext".*; do echo "$f"; done \
6544 | sed -e "s,^$libname$shrext\\\\.,," \
6545 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6546 | sed 1q ) 2>/dev/null`
6547 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6549 found_so
="$dir/$libname$shrext.$ver"
6552 eval library_names
=\"$acl_library_names_spec\"
6553 for f
in $library_names; do
6554 if test -f "$dir/$f"; then
6563 if test "X$found_dir" = "X"; then
6564 if test -f "$dir/$libname.$acl_libext"; then
6566 found_a
="$dir/$libname.$acl_libext"
6569 if test "X$found_dir" != "X"; then
6570 if test -f "$dir/$libname.la"; then
6571 found_la
="$dir/$libname.la"
6576 if test "X$found_dir" != "X"; then
6581 if test "X$found_dir" != "X"; then
6582 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6583 if test "X$found_so" != "X"; then
6584 if test "$enable_rpath" = no \
6585 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
6586 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6587 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6590 for x
in $ltrpathdirs; do
6591 if test "X$x" = "X$found_dir"; then
6596 if test -z "$haveit"; then
6597 ltrpathdirs
="$ltrpathdirs $found_dir"
6599 if test "$acl_hardcode_direct" = yes; then
6600 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6602 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
6603 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6605 for x
in $rpathdirs; do
6606 if test "X$x" = "X$found_dir"; then
6611 if test -z "$haveit"; then
6612 rpathdirs
="$rpathdirs $found_dir"
6616 for x
in $LDFLAGS $LIBINTL; do
6618 acl_save_prefix
="$prefix"
6619 prefix
="$acl_final_prefix"
6620 acl_save_exec_prefix
="$exec_prefix"
6621 exec_prefix
="$acl_final_exec_prefix"
6623 exec_prefix
="$acl_save_exec_prefix"
6624 prefix
="$acl_save_prefix"
6626 if test "X$x" = "X-L$found_dir"; then
6631 if test -z "$haveit"; then
6632 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6634 if test "$acl_hardcode_minus_L" != no
; then
6635 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6637 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
6643 if test "X$found_a" != "X"; then
6644 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
6646 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6649 additional_includedir
=
6650 case "$found_dir" in
6651 */$acl_libdirstem |
*/$acl_libdirstem/)
6652 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6653 if test "$name" = 'intl'; then
6654 LIBINTL_PREFIX
="$basedir"
6656 additional_includedir
="$basedir/include"
6658 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
6659 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6660 if test "$name" = 'intl'; then
6661 LIBINTL_PREFIX
="$basedir"
6663 additional_includedir
="$basedir/include"
6666 if test "X$additional_includedir" != "X"; then
6667 if test "X$additional_includedir" != "X/usr/include"; then
6669 if test "X$additional_includedir" = "X/usr/local/include"; then
6670 if test -n "$GCC"; then
6672 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
6676 if test -z "$haveit"; then
6677 for x
in $CPPFLAGS $INCINTL; do
6679 acl_save_prefix
="$prefix"
6680 prefix
="$acl_final_prefix"
6681 acl_save_exec_prefix
="$exec_prefix"
6682 exec_prefix
="$acl_final_exec_prefix"
6684 exec_prefix
="$acl_save_exec_prefix"
6685 prefix
="$acl_save_prefix"
6687 if test "X$x" = "X-I$additional_includedir"; then
6692 if test -z "$haveit"; then
6693 if test -d "$additional_includedir"; then
6694 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6700 if test -n "$found_la"; then
6701 save_libdir
="$libdir"
6703 */* |
*\\*) .
"$found_la" ;;
6704 *) .
"./$found_la" ;;
6706 libdir
="$save_libdir"
6707 for dep
in $dependency_libs; do
6710 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
6711 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6712 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6714 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6715 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6716 if test -n "$GCC"; then
6718 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
6722 if test -z "$haveit"; then
6724 for x
in $LDFLAGS $LIBINTL; do
6726 acl_save_prefix
="$prefix"
6727 prefix
="$acl_final_prefix"
6728 acl_save_exec_prefix
="$exec_prefix"
6729 exec_prefix
="$acl_final_exec_prefix"
6731 exec_prefix
="$acl_save_exec_prefix"
6732 prefix
="$acl_save_prefix"
6734 if test "X$x" = "X-L$additional_libdir"; then
6739 if test -z "$haveit"; then
6740 if test -d "$additional_libdir"; then
6741 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6745 for x
in $LDFLAGS $LTLIBINTL; do
6747 acl_save_prefix
="$prefix"
6748 prefix
="$acl_final_prefix"
6749 acl_save_exec_prefix
="$exec_prefix"
6750 exec_prefix
="$acl_final_exec_prefix"
6752 exec_prefix
="$acl_save_exec_prefix"
6753 prefix
="$acl_save_prefix"
6755 if test "X$x" = "X-L$additional_libdir"; then
6760 if test -z "$haveit"; then
6761 if test -d "$additional_libdir"; then
6762 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6769 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
6770 if test "$enable_rpath" != no
; then
6772 for x
in $rpathdirs; do
6773 if test "X$x" = "X$dir"; then
6778 if test -z "$haveit"; then
6779 rpathdirs
="$rpathdirs $dir"
6782 for x
in $ltrpathdirs; do
6783 if test "X$x" = "X$dir"; then
6788 if test -z "$haveit"; then
6789 ltrpathdirs
="$ltrpathdirs $dir"
6794 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6797 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6800 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
6801 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6807 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
6808 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6814 if test "X$rpathdirs" != "X"; then
6815 if test -n "$acl_hardcode_libdir_separator"; then
6817 for found_dir
in $rpathdirs; do
6818 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6820 acl_save_libdir
="$libdir"
6822 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
6823 libdir
="$acl_save_libdir"
6824 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
6826 for found_dir
in $rpathdirs; do
6827 acl_save_libdir
="$libdir"
6829 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
6830 libdir
="$acl_save_libdir"
6831 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
6835 if test "X$ltrpathdirs" != "X"; then
6836 for found_dir
in $ltrpathdirs; do
6837 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6847 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6848 if eval \
${$gt_func_gnugettext_libintl+:} false
; then :
6849 $as_echo_n "(cached) " >&6
6851 gt_save_CPPFLAGS
="$CPPFLAGS"
6852 CPPFLAGS
="$CPPFLAGS $INCINTL"
6853 gt_save_LIBS
="$LIBS"
6854 LIBS
="$LIBS $LIBINTL"
6855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 #include <libintl.h>
6858 $gt_revision_test_code
6859 extern int _nl_msg_cat_cntr;
6864 const char *_nl_expand_alias (const char *);
6868 bindtextdomain ("", "");
6869 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6874 if ac_fn_c_try_link
"$LINENO"; then :
6875 eval "$gt_func_gnugettext_libintl=yes"
6877 eval "$gt_func_gnugettext_libintl=no"
6879 rm -f core conftest.err conftest.
$ac_objext \
6880 conftest
$ac_exeext conftest.
$ac_ext
6881 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6882 LIBS
="$LIBS $LIBICONV"
6883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6885 #include <libintl.h>
6886 $gt_revision_test_code
6887 extern int _nl_msg_cat_cntr;
6892 const char *_nl_expand_alias (const char *);
6896 bindtextdomain ("", "");
6897 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6902 if ac_fn_c_try_link
"$LINENO"; then :
6903 LIBINTL
="$LIBINTL $LIBICONV"
6904 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
6905 eval "$gt_func_gnugettext_libintl=yes"
6908 rm -f core conftest.err conftest.
$ac_objext \
6909 conftest
$ac_exeext conftest.
$ac_ext
6911 CPPFLAGS
="$gt_save_CPPFLAGS"
6912 LIBS
="$gt_save_LIBS"
6914 eval ac_res
=\$
$gt_func_gnugettext_libintl
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6916 $as_echo "$ac_res" >&6; }
6919 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6920 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6921 && test "$PACKAGE" != gettext-runtime \
6922 && test "$PACKAGE" != gettext-tools
; }; then
6923 gt_use_preinstalled_gnugettext
=yes
6932 if test -n "$INTL_MACOSX_LIBS"; then
6933 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6934 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
6935 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
6936 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
6940 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6941 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
6943 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6951 $as_echo_n "checking whether to use NLS... " >&6; }
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6953 $as_echo "$USE_NLS" >&6; }
6954 if test "$USE_NLS" = "yes"; then
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6956 $as_echo_n "checking where the gettext function comes from... " >&6; }
6957 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6958 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6959 gt_source
="external libintl"
6964 gt_source
="included intl directory"
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6967 $as_echo "$gt_source" >&6; }
6970 if test "$USE_NLS" = "yes"; then
6972 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6973 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6975 $as_echo_n "checking how to link with libintl... " >&6; }
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6977 $as_echo "$LIBINTL" >&6; }
6979 for element
in $INCINTL; do
6981 for x
in $CPPFLAGS; do
6983 acl_save_prefix
="$prefix"
6984 prefix
="$acl_final_prefix"
6985 acl_save_exec_prefix
="$exec_prefix"
6986 exec_prefix
="$acl_final_exec_prefix"
6988 exec_prefix
="$acl_save_exec_prefix"
6989 prefix
="$acl_save_prefix"
6991 if test "X$x" = "X$element"; then
6996 if test -z "$haveit"; then
6997 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7004 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7007 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7025 # Checks for programs.
7026 for ac_prog
in gawk mawk nawk
awk
7028 # Extract the first word of "$ac_prog", so it can be a program name with args.
7029 set dummy
$ac_prog; ac_word
=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if ${ac_cv_prog_AWK+:} false
; then :
7033 $as_echo_n "(cached) " >&6
7035 if test -n "$AWK"; then
7036 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7042 test -z "$as_dir" && as_dir
=.
7043 for ac_exec_ext
in '' $ac_executable_extensions; do
7044 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7045 ac_cv_prog_AWK
="$ac_prog"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 if test -n "$AWK"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7058 $as_echo "$AWK" >&6; }
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7065 test -n "$AWK" && break
7069 ac_cpp
='$CPP $CPPFLAGS'
7070 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7071 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7072 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7073 if test -n "$ac_tool_prefix"; then
7074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7075 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077 $as_echo_n "checking for $ac_word... " >&6; }
7078 if ${ac_cv_prog_CC+:} false
; then :
7079 $as_echo_n "(cached) " >&6
7081 if test -n "$CC"; then
7082 ac_cv_prog_CC
="$CC" # Let the user override the test.
7084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7088 test -z "$as_dir" && as_dir
=.
7089 for ac_exec_ext
in '' $ac_executable_extensions; do
7090 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7091 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
7092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 if test -n "$CC"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7104 $as_echo "$CC" >&6; }
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7112 if test -z "$ac_cv_prog_CC"; then
7114 # Extract the first word of "gcc", so it can be a program name with args.
7115 set dummy gcc
; ac_word
=$2
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117 $as_echo_n "checking for $ac_word... " >&6; }
7118 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
7119 $as_echo_n "(cached) " >&6
7121 if test -n "$ac_ct_CC"; then
7122 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
7124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7128 test -z "$as_dir" && as_dir
=.
7129 for ac_exec_ext
in '' $ac_executable_extensions; do
7130 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7131 ac_cv_prog_ac_ct_CC
="gcc"
7132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
7142 if test -n "$ac_ct_CC"; then
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7144 $as_echo "$ac_ct_CC" >&6; }
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7150 if test "x$ac_ct_CC" = x
; then
7153 case $cross_compiling:$ac_tool_warned in
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7157 ac_tool_warned
=yes ;;
7165 if test -z "$CC"; then
7166 if test -n "$ac_tool_prefix"; then
7167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7168 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170 $as_echo_n "checking for $ac_word... " >&6; }
7171 if ${ac_cv_prog_CC+:} false
; then :
7172 $as_echo_n "(cached) " >&6
7174 if test -n "$CC"; then
7175 ac_cv_prog_CC
="$CC" # Let the user override the test.
7177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7181 test -z "$as_dir" && as_dir
=.
7182 for ac_exec_ext
in '' $ac_executable_extensions; do
7183 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7184 ac_cv_prog_CC
="${ac_tool_prefix}cc"
7185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 if test -n "$CC"; then
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7197 $as_echo "$CC" >&6; }
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200 $as_echo "no" >&6; }
7206 if test -z "$CC"; then
7207 # Extract the first word of "cc", so it can be a program name with args.
7208 set dummy cc
; ac_word
=$2
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210 $as_echo_n "checking for $ac_word... " >&6; }
7211 if ${ac_cv_prog_CC+:} false
; then :
7212 $as_echo_n "(cached) " >&6
7214 if test -n "$CC"; then
7215 ac_cv_prog_CC
="$CC" # Let the user override the test.
7218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7222 test -z "$as_dir" && as_dir
=.
7223 for ac_exec_ext
in '' $ac_executable_extensions; do
7224 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7226 ac_prog_rejected
=yes
7230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 if test $ac_prog_rejected = yes; then
7238 # We found a bogon in the path, so make sure we never use it.
7239 set dummy
$ac_cv_prog_CC
7241 if test $# != 0; then
7242 # We chose a different compiler from the bogus one.
7243 # However, it has the same basename, so the bogon will be chosen
7244 # first if we set CC to just the basename; use the full file name.
7246 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
7252 if test -n "$CC"; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7254 $as_echo "$CC" >&6; }
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7262 if test -z "$CC"; then
7263 if test -n "$ac_tool_prefix"; then
7264 for ac_prog
in cl.exe
7266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7267 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269 $as_echo_n "checking for $ac_word... " >&6; }
7270 if ${ac_cv_prog_CC+:} false
; then :
7271 $as_echo_n "(cached) " >&6
7273 if test -n "$CC"; then
7274 ac_cv_prog_CC
="$CC" # Let the user override the test.
7276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7280 test -z "$as_dir" && as_dir
=.
7281 for ac_exec_ext
in '' $ac_executable_extensions; do
7282 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7283 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
7284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 if test -n "$CC"; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7296 $as_echo "$CC" >&6; }
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 $as_echo "no" >&6; }
7303 test -n "$CC" && break
7306 if test -z "$CC"; then
7308 for ac_prog
in cl.exe
7310 # Extract the first word of "$ac_prog", so it can be a program name with args.
7311 set dummy
$ac_prog; ac_word
=$2
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 $as_echo_n "checking for $ac_word... " >&6; }
7314 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
7315 $as_echo_n "(cached) " >&6
7317 if test -n "$ac_ct_CC"; then
7318 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
7320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7324 test -z "$as_dir" && as_dir
=.
7325 for ac_exec_ext
in '' $ac_executable_extensions; do
7326 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7327 ac_cv_prog_ac_ct_CC
="$ac_prog"
7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
7338 if test -n "$ac_ct_CC"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7340 $as_echo "$ac_ct_CC" >&6; }
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7347 test -n "$ac_ct_CC" && break
7350 if test "x$ac_ct_CC" = x
; then
7353 case $cross_compiling:$ac_tool_warned in
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7357 ac_tool_warned
=yes ;;
7366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7368 as_fn_error $?
"no acceptable C compiler found in \$PATH
7369 See \`config.log' for more details" "$LINENO" 5; }
7371 # Provide some information about the compiler.
7372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7375 for ac_option
in --version -v -V -qversion; do
7376 { { ac_try
="$ac_compiler $ac_option >&5"
7378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7379 *) ac_try_echo=$ac_try;;
7381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7382 $as_echo "$ac_try_echo"; } >&5
7383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7385 if test -s conftest.err; then
7387 ... rest of stderr output deleted ...
7388 10q' conftest.err >conftest.er1
7389 cat conftest.er1 >&5
7391 rm -f conftest.er1 conftest.err
7392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393 test $ac_status = 0; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7397 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7398 if ${ac_cv_c_compiler_gnu+:} false; then :
7399 $as_echo_n "(cached) " >&6
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7415 if ac_fn_c_try_compile "$LINENO"; then :
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7425 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7426 if test $ac_compiler_gnu = yes; then
7431 ac_test_CFLAGS=${CFLAGS+set}
7432 ac_save_CFLAGS=$CFLAGS
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7434 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7435 if ${ac_cv_prog_cc_g+:} false; then :
7436 $as_echo_n "(cached) " >&6
7438 ac_save_c_werror_flag=$ac_c_werror_flag
7439 ac_c_werror_flag=yes
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7453 if ac_fn_c_try_compile "$LINENO"; then :
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7468 if ac_fn_c_try_compile "$LINENO"; then :
7471 ac_c_werror_flag=$ac_save_c_werror_flag
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7484 if ac_fn_c_try_compile "$LINENO"; then :
7487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492 ac_c_werror_flag=$ac_save_c_werror_flag
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7495 $as_echo "$ac_cv_prog_cc_g" >&6; }
7496 if test "$ac_test_CFLAGS" = set; then
7497 CFLAGS=$ac_save_CFLAGS
7498 elif test $ac_cv_prog_cc_g = yes; then
7499 if test "$GCC" = yes; then
7505 if test "$GCC" = yes; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7512 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7513 if ${ac_cv_prog_cc_c89+:} false; then :
7514 $as_echo_n "(cached) " >&6
7516 ac_cv_prog_cc_c89=no
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7523 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7524 struct buf { int x; };
7525 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7526 static char *e (p, i)
7532 static char *f (char * (*g) (char **, int), char **p, ...)
7537 s = g (p, va_arg (v,int));
7542 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7543 function prototypes and stuff, but not '\xHH' hex character constants.
7544 These don't provoke an error unfortunately, instead are silently treated
7545 as 'x'. The following induces an error, until -std is added to get
7546 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7547 array size at least. It's necessary to write '\x00'==0 to get something
7548 that's true only with -std. */
7549 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7551 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7552 inside strings and character constants. */
7554 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7556 int test (int i, double x);
7557 struct s1 {int (*f) (int a);};
7558 struct s2 {int (*f) (double a);};
7559 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7565 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7570 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7571 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7573 CC="$ac_save_CC $ac_arg"
7574 if ac_fn_c_try_compile "$LINENO"; then :
7575 ac_cv_prog_cc_c89=$ac_arg
7577 rm -f core conftest.err conftest.$ac_objext
7578 test "x$ac_cv_prog_cc_c89" != "xno" && break
7580 rm -f conftest.$ac_ext
7585 case "x$ac_cv_prog_cc_c89" in
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7588 $as_echo "none needed" >&6; } ;;
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7591 $as_echo "unsupported" >&6; } ;;
7593 CC="$CC $ac_cv_prog_cc_c89"
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7595 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7597 if test "x$ac_cv_prog_cc_c89" != xno; then :
7602 ac_cpp='$CPP $CPPFLAGS'
7603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7608 ac_cpp='$CPP $CPPFLAGS'
7609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7613 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7614 if ${am_cv_prog_cc_c_o+:} false; then :
7615 $as_echo_n "(cached) " >&6
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7628 # Make sure it works both with $CC and with simple cc.
7629 # Following AC_PROG_CC_C_O, we do the test twice because some
7630 # compilers refuse to overwrite an existing .o file with -o,
7631 # though they will create one.
7632 am_cv_prog_cc_c_o=yes
7634 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7635 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } \
7639 && test -f conftest2.$ac_objext; then
7642 am_cv_prog_cc_c_o=no
7646 rm -f core conftest*
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7650 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7651 if test "$am_cv_prog_cc_c_o" != yes; then
7652 # Losing compiler, so override with the script.
7653 # FIXME: It is wrong to rewrite CC.
7654 # But if we don't then we get into trouble of one sort or another.
7655 # A longer-term fix would be to have automake use am__CC in this case,
7656 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7657 CC="$am_aux_dir/compile $CC"
7660 ac_cpp='$CPP $CPPFLAGS'
7661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7666 depcc="$CC" am_compiler_list=
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7669 $as_echo_n "checking dependency style of $depcc... " >&6; }
7670 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7671 $as_echo_n "(cached) " >&6
7673 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7674 # We make a subdir and do the tests there. Otherwise we can end up
7675 # making bogus files that we don't know about and never remove. For
7676 # instance it was reported that on HP-UX the gcc test will end up
7677 # making a dummy file named 'D' -- because '-MD' means "put the output
7681 # Copy depcomp to subdir because otherwise we won't find it if we're
7682 # using a relative directory.
7683 cp "$am_depcomp" conftest.dir
7685 # We will build objects and dependencies in a subdirectory because
7686 # it helps to detect inapplicable dependency modes. For instance
7687 # both Tru64's cc and ICC support -MD to output dependencies as a
7688 # side effect of compilation, but ICC will put the dependencies in
7689 # the current directory while Tru64 will put them in the object
7693 am_cv_CC_dependencies_compiler_type=none
7694 if test "$am_compiler_list" = ""; then
7695 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
7698 case " $depcc " in #(
7699 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7702 for depmode in $am_compiler_list; do
7703 # Setup a source with many dependencies, because some compilers
7704 # like to wrap large dependency lists on column 80 (with \), and
7705 # we should not choose a depcomp mode which is confused by this.
7707 # We need to recreate these files for each test, as the compiler may
7708 # overwrite some of them when testing with obscure command lines.
7709 # This happens at least with the AIX C compiler.
7711 for i in 1 2 3 4 5 6; do
7712 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7713 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7714 # Solaris 10 /bin/sh.
7715 echo '/* dummy */' > sub/conftst$i.h
7717 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7719 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7720 # mode. It turns out that the SunPro C++ compiler does not properly
7721 # handle '-M -o', and we need to detect this. Also, some Intel
7722 # versions had trouble with output in subdirs.
7723 am__obj=sub/conftest.${OBJEXT-o}
7724 am__minus_obj="-o $am__obj"
7727 # This depmode causes a compiler race in universal mode.
7728 test "$am__universal" = false || continue
7731 # After this tag, mechanisms are not by side-effect, so they'll
7732 # only be used when explicitly requested.
7733 if test "x$enable_dependency_tracking" = xyes; then
7739 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7740 # This compiler won't grok '-c -o', but also, the minuso test has
7741 # not run yet. These depmodes are late enough in the game, and
7742 # so weak that their functioning should not be impacted.
7743 am__obj=conftest.${OBJEXT-o}
7748 if depmode=$depmode \
7749 source=sub/conftest.c object=$am__obj \
7750 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7751 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7752 >/dev/null 2>conftest.err &&
7753 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7754 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7755 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7756 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7757 # icc doesn't choke on unknown options, it will just issue warnings
7758 # or remarks (even with -Werror). So we grep stderr for any message
7759 # that says an option was ignored or not supported.
7760 # When given -MP, icc 7.0 and 7.1 complain thusly:
7761 # icc: Command line warning: ignoring option '-M'; no argument required
7762 # The diagnosis changed in icc 8.0:
7763 # icc: Command line remark: option '-MP' not supported
7764 if (grep 'ignoring option' conftest.err ||
7765 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7766 am_cv_CC_dependencies_compiler_type=$depmode
7775 am_cv_CC_dependencies_compiler_type=none
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7780 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7781 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7784 test "x$enable_dependency_tracking" != xno \
7785 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7787 am__fastdepCC_FALSE='#'
7789 am__fastdepCC_TRUE='#'
7790 am__fastdepCC_FALSE=
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7797 $as_echo_n "checking whether ln -s works... " >&6; }
7799 if test "$LN_S" = "ln -s"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7801 $as_echo "yes" >&6; }
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7804 $as_echo "no, using $LN_S" >&6; }
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7808 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7810 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7811 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7812 $as_echo_n "(cached) " >&6
7814 cat >conftest.make <<\_ACEOF
7817 @echo '@@@%%%=$(MAKE)=@@@%%%'
7819 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7820 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
7822 eval ac_cv_prog_make_${ac_make}_set=yes;;
7824 eval ac_cv_prog_make_${ac_make}_set=no;;
7828 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7830 $as_echo "yes" >&6; }
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7835 SET_MAKE="MAKE=${MAKE-make}"
7839 # Default string definitions
7841 cat >>confdefs.h <<_ACEOF
7842 #define OS_URL "http://sourceforge.net/projects/minidlna/"
7846 cat >>confdefs.h <<_ACEOF
7847 #define ROOTDEV_MANUFACTURER "Justin Maggard"
7851 cat >>confdefs.h <<_ACEOF
7852 #define ROOTDEV_MANUFACTURERURL "http://www.netgear.com/"
7856 cat >>confdefs.h <<_ACEOF
7857 #define ROOTDEV_MODELNAME "Windows Media Connect compatible (MiniDLNA)"
7861 cat >>confdefs.h <<_ACEOF
7862 #define ROOTDEV_MODELDESCRIPTION "MiniDLNA on " OS_NAME
7866 cat >>confdefs.h <<_ACEOF
7867 #define ROOTDEV_MODELURL OS_URL
7872 ################################################################################################################
7873 # Checks for typedefs, structures, and compiler characteristics.
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7875 $as_echo_n "checking for inline... " >&6; }
7876 if ${ac_cv_c_inline+:} false; then :
7877 $as_echo_n "(cached) " >&6
7880 for ac_kw in inline __inline__ __inline; do
7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7885 static $ac_kw foo_t static_foo () {return 0; }
7886 $ac_kw foo_t foo () {return 0; }
7890 if ac_fn_c_try_compile "$LINENO"; then :
7891 ac_cv_c_inline=$ac_kw
7893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 test "$ac_cv_c_inline" != no && break
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7899 $as_echo "$ac_cv_c_inline" >&6; }
7901 case $ac_cv_c_inline in
7904 case $ac_cv_c_inline in
7906 *) ac_val=$ac_cv_c_inline;;
7908 cat >>confdefs.h <<_ACEOF
7910 #define inline $ac_val
7916 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7917 if test "x$ac_cv_type_mode_t" = xyes; then :
7921 cat >>confdefs.h <<_ACEOF
7927 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7928 if test "x$ac_cv_type_off_t" = xyes; then :
7932 cat >>confdefs.h <<_ACEOF
7933 #define off_t long int
7938 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7939 if test "x$ac_cv_type_pid_t" = xyes; then :
7943 cat >>confdefs.h <<_ACEOF
7949 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7950 if test "x$ac_cv_type_size_t" = xyes; then :
7954 cat >>confdefs.h <<_ACEOF
7955 #define size_t unsigned int
7960 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
7961 case $ac_cv_c_uint8_t in #(
7965 $as_echo "#define _UINT8_T 1" >>confdefs.h
7968 cat >>confdefs.h <<_ACEOF
7969 #define uint8_t $ac_cv_c_uint8_t
7974 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7975 case $ac_cv_c_int32_t in #(
7979 cat >>confdefs.h <<_ACEOF
7980 #define int32_t $ac_cv_c_int32_t
7985 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7986 case $ac_cv_c_uint32_t in #(
7990 $as_echo "#define _UINT32_T 1" >>confdefs.h
7993 cat >>confdefs.h <<_ACEOF
7994 #define uint32_t $ac_cv_c_uint32_t
7999 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
8000 case $ac_cv_c_uint64_t in #(
8004 $as_echo "#define _UINT64_T 1" >>confdefs.h
8007 cat >>confdefs.h <<_ACEOF
8008 #define uint64_t $ac_cv_c_uint64_t
8013 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8014 if test "x$ac_cv_type_ssize_t" = xyes; then :
8018 cat >>confdefs.h <<_ACEOF
8025 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8026 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8028 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8029 if eval \${$as_ac_Header+:} false; then :
8030 $as_echo_n "(cached) " >&6
8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h. */
8034 #include <sys/types.h>
8046 if ac_fn_c_try_compile "$LINENO"; then :
8047 eval "$as_ac_Header=yes"
8049 eval "$as_ac_Header=no"
8051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 eval ac_res=\$$as_ac_Header
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8055 $as_echo "$ac_res" >&6; }
8056 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8057 cat >>confdefs.h <<_ACEOF
8058 #define `$as_echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
8061 ac_header_dirent=$ac_hdr; break
8065 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8066 if test $ac_header_dirent = dirent.h; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8068 $as_echo_n "checking for library containing opendir... " >&6; }
8069 if ${ac_cv_search_opendir+:} false; then :
8070 $as_echo_n "(cached) " >&6
8072 ac_func_search_save_LIBS=$LIBS
8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8076 /* Override any GCC internal prototype to avoid an error.
8077 Use char because int might match the return type of a GCC
8078 builtin and then its argument prototype would still apply. */
8091 for ac_lib in '' dir; do
8092 if test -z "$ac_lib"; then
8093 ac_res="none required"
8096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8098 if ac_fn_c_try_link "$LINENO"; then :
8099 ac_cv_search_opendir=$ac_res
8101 rm -f core conftest.err conftest.$ac_objext \
8103 if ${ac_cv_search_opendir+:} false; then :
8107 if ${ac_cv_search_opendir+:} false; then :
8110 ac_cv_search_opendir=no
8113 LIBS=$ac_func_search_save_LIBS
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8116 $as_echo "$ac_cv_search_opendir" >&6; }
8117 ac_res=$ac_cv_search_opendir
8118 if test "$ac_res" != no; then :
8119 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8125 $as_echo_n "checking for library containing opendir... " >&6; }
8126 if ${ac_cv_search_opendir+:} false; then :
8127 $as_echo_n "(cached) " >&6
8129 ac_func_search_save_LIBS=$LIBS
8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8131 /* end confdefs.h. */
8133 /* Override any GCC internal prototype to avoid an error.
8134 Use char because int might match the return type of a GCC
8135 builtin and then its argument prototype would still apply. */
8148 for ac_lib in '' x; do
8149 if test -z "$ac_lib"; then
8150 ac_res="none required"
8153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8155 if ac_fn_c_try_link "$LINENO"; then :
8156 ac_cv_search_opendir=$ac_res
8158 rm -f core conftest.err conftest.$ac_objext \
8160 if ${ac_cv_search_opendir+:} false; then :
8164 if ${ac_cv_search_opendir+:} false; then :
8167 ac_cv_search_opendir=no
8170 LIBS=$ac_func_search_save_LIBS
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8173 $as_echo "$ac_cv_search_opendir" >&6; }
8174 ac_res=$ac_cv_search_opendir
8175 if test "$ac_res" != no; then :
8176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8184 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
8185 #include <sys/types.h>
8186 #ifdef HAVE_DIRENT_H
8187 # include <dirent.h>
8189 # define dirent direct
8190 # ifdef HAVE_SYS_NDIR_H
8191 # include <sys/ndir.h>
8193 # ifdef HAVE_SYS_DIR_H
8194 # include <sys/dir.h>
8202 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
8204 cat >>confdefs.h <<_ACEOF
8205 #define HAVE_STRUCT_DIRENT_D_TYPE 1
8212 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8213 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8215 cat >>confdefs.h <<_ACEOF
8216 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8220 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8223 case " $LIBOBJS " in
8224 *" fileblocks.$ac_objext "* ) ;;
8225 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8233 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8234 if ${ac_cv_header_stdbool_h+:} false; then :
8235 $as_echo_n "(cached) " >&6
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8240 #include <stdbool.h>
8242 "error: bool is not defined"
8245 "error: false is not defined"
8248 "error: false is not 0"
8251 "error: true is not defined"
8254 "error: true is not 1"
8256 #ifndef __bool_true_false_are_defined
8257 "error: __bool_true_false_are_defined is not defined"
8260 struct s { _Bool s: 1; _Bool t; } s;
8262 char a[true == 1 ? 1 : -1];
8263 char b[false == 0 ? 1 : -1];
8264 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8265 char d[(bool) 0.5 == true ? 1 : -1];
8266 /* See body of main program for 'e'. */
8267 char f[(_Bool) 0.0 == false ? 1 : -1];
8269 char h[sizeof (_Bool)];
8271 enum { j = false, k = true, l = false * true, m = true * 256 };
8272 /* The following fails for
8273 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
8275 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8276 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8277 /* Catch a bug in an HP-UX C compiler. See
8278 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8279 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8291 /* Refer to every declared value, to avoid compiler optimizations. */
8292 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8293 + !m + !n + !o + !p + !q + !pq);
8299 if ac_fn_c_try_compile "$LINENO"; then :
8300 ac_cv_header_stdbool_h=yes
8302 ac_cv_header_stdbool_h=no
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8307 $as_echo "$ac_cv_header_stdbool_h" >&6; }
8308 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
8309 if test "x$ac_cv_type__Bool" = xyes; then :
8311 cat >>confdefs.h <<_ACEOF
8312 #define HAVE__BOOL 1
8319 if test $ac_cv_header_stdbool_h = yes; then
8321 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8326 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8327 if ${ac_cv_c_bigendian+:} false; then :
8328 $as_echo_n "(cached) " >&6
8330 ac_cv_c_bigendian=unknown
8331 # See if we're dealing with a universal compiler.
8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333 /* end confdefs.h. */
8334 #ifndef __APPLE_CC__
8335 not a universal capable compiler
8340 if ac_fn_c_try_compile "$LINENO"; then :
8342 # Check for potential -arch flags. It is not universal unless
8343 # there are at least two -arch flags with different values.
8346 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8347 if test -n "$ac_prev"; then
8349 i?86 | x86_64 | ppc | ppc64)
8350 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8353 ac_cv_c_bigendian=universal
8359 elif test "x$ac_word" = "x-arch"; then
8364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8365 if test $ac_cv_c_bigendian = unknown; then
8366 # See if sys/param.h defines the BYTE_ORDER macro.
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8369 #include <sys/types.h>
8370 #include <sys/param.h>
8375 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8376 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8385 if ac_fn_c_try_compile "$LINENO"; then :
8386 # It does; now see whether it defined to BIG_ENDIAN or not.
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h. */
8389 #include <sys/types.h>
8390 #include <sys/param.h>
8395 #if BYTE_ORDER != BIG_ENDIAN
8403 if ac_fn_c_try_compile "$LINENO"; then :
8404 ac_cv_c_bigendian=yes
8406 ac_cv_c_bigendian=no
8408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8412 if test $ac_cv_c_bigendian = unknown; then
8413 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h. */
8421 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8429 if ac_fn_c_try_compile "$LINENO"; then :
8430 # It does; now see whether it defined to _BIG_ENDIAN or not.
8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8446 if ac_fn_c_try_compile "$LINENO"; then :
8447 ac_cv_c_bigendian=yes
8449 ac_cv_c_bigendian=no
8451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8455 if test $ac_cv_c_bigendian = unknown; then
8456 # Compile a test program.
8457 if test "$cross_compiling" = yes; then :
8458 # Try to guess by grepping values from an object file.
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8461 short int ascii_mm[] =
8462 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8463 short int ascii_ii[] =
8464 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8465 int use_ascii (int i) {
8466 return ascii_mm[i] + ascii_ii[i];
8468 short int ebcdic_ii[] =
8469 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8470 short int ebcdic_mm[] =
8471 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8472 int use_ebcdic (int i) {
8473 return ebcdic_mm[i] + ebcdic_ii[i];
8480 return use_ascii (foo) == use_ebcdic (foo);
8485 if ac_fn_c_try_compile "$LINENO"; then :
8486 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8487 ac_cv_c_bigendian=yes
8489 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8490 if test "$ac_cv_c_bigendian" = unknown; then
8491 ac_cv_c_bigendian=no
8493 # finding both strings is unlikely to happen, but who knows?
8494 ac_cv_c_bigendian=unknown
8498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8502 $ac_includes_default
8507 /* Are we little or big endian? From Harbison&Steele. */
8511 char c[sizeof (long int)];
8514 return u.c[sizeof (long int) - 1] == 1;
8520 if ac_fn_c_try_run "$LINENO"; then :
8521 ac_cv_c_bigendian=no
8523 ac_cv_c_bigendian=yes
8525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8526 conftest.$ac_objext conftest.beam conftest.$ac_ext
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8532 $as_echo "$ac_cv_c_bigendian" >&6; }
8533 case $ac_cv_c_bigendian in #(
8535 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8541 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8545 as_fn_error $? "unknown endianness
8546 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8550 # Checks for library functions.
8551 for ac_header in vfork.h
8553 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8554 if test "x$ac_cv_header_vfork_h" = xyes; then :
8555 cat >>confdefs.h <<_ACEOF
8556 #define HAVE_VFORK_H 1
8563 for ac_func in fork vfork
8565 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
8566 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8567 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8568 cat >>confdefs.h <<_ACEOF
8569 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
8575 if test "x$ac_cv_func_fork" = xyes; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8577 $as_echo_n "checking for working fork... " >&6; }
8578 if ${ac_cv_func_fork_works+:} false; then :
8579 $as_echo_n "(cached) " >&6
8581 if test "$cross_compiling" = yes; then :
8582 ac_cv_func_fork_works=cross
8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8586 $ac_includes_default
8591 /* By Ruediger Kuhlmann. */
8598 if ac_fn_c_try_run "$LINENO"; then :
8599 ac_cv_func_fork_works=yes
8601 ac_cv_func_fork_works=no
8603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8604 conftest.$ac_objext conftest.beam conftest.$ac_ext
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8609 $as_echo "$ac_cv_func_fork_works" >&6; }
8612 ac_cv_func_fork_works=$ac_cv_func_fork
8614 if test "x$ac_cv_func_fork_works" = xcross; then
8616 *-*-amigaos* | *-*-msdosdjgpp*)
8617 # Override, as these systems have only a dummy fork() stub
8618 ac_cv_func_fork_works=no
8621 ac_cv_func_fork_works=yes
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8625 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8627 ac_cv_func_vfork_works=$ac_cv_func_vfork
8628 if test "x$ac_cv_func_vfork" = xyes; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8630 $as_echo_n "checking for working vfork... " >&6; }
8631 if ${ac_cv_func_vfork_works+:} false; then :
8632 $as_echo_n "(cached) " >&6
8634 if test "$cross_compiling" = yes; then :
8635 ac_cv_func_vfork_works=cross
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8639 /* Thanks to Paul Eggert for this test. */
8640 $ac_includes_default
8641 #include <sys/wait.h>
8645 /* On some sparc systems, changes by the child to local and incoming
8646 argument registers are propagated back to the parent. The compiler
8647 is told about this with #include <vfork.h>, but some compilers
8648 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8649 static variable whose address is put into a register that is
8650 clobbered by the vfork. */
8653 sparc_address_test (int arg)
8655 sparc_address_test (arg) int arg;
8676 pid_t parent = getpid ();
8679 sparc_address_test (0);
8684 /* Here is another test for sparc vfork register problems. This
8685 test uses lots of local variables, at least as many local
8686 variables as main has allocated so far including compiler
8687 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8688 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8689 reuse the register of parent for one of the local variables,
8690 since it will think that parent can't possibly be used any more
8691 in this routine. Assigning to the local variable will thus
8692 munge parent in the parent process. */
8694 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8695 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8696 /* Convince the compiler that p..p7 are live; otherwise, it might
8697 use the same hardware register for all 8 local variables. */
8698 if (p != p1 || p != p2 || p != p3 || p != p4
8699 || p != p5 || p != p6 || p != p7)
8702 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8703 from child file descriptors. If the child closes a descriptor
8704 before it execs or exits, this munges the parent's descriptor
8705 as well. Test for this by closing stdout in the child. */
8706 _exit(close(fileno(stdout)) != 0);
8711 while (wait(&status) != child)
8714 /* Was there some problem with vforking? */
8717 /* Did the child fail? (This shouldn't happen.) */
8720 /* Did the vfork/compiler bug occur? */
8721 || parent != getpid()
8723 /* Did the file descriptor bug occur? */
8724 || fstat(fileno(stdout), &st) != 0
8729 if ac_fn_c_try_run "$LINENO"; then :
8730 ac_cv_func_vfork_works=yes
8732 ac_cv_func_vfork_works=no
8734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8735 conftest.$ac_objext conftest.beam conftest.$ac_ext
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8740 $as_echo "$ac_cv_func_vfork_works" >&6; }
8743 if test "x$ac_cv_func_fork_works" = xcross; then
8744 ac_cv_func_vfork_works=$ac_cv_func_vfork
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8746 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8749 if test "x$ac_cv_func_vfork_works" = xyes; then
8751 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8755 $as_echo "#define vfork fork" >>confdefs.h
8758 if test "x$ac_cv_func_fork_works" = xyes; then
8760 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
8765 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
8766 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
8767 $as_echo_n "(cached) " >&6
8769 rm -f conftest.sym conftest.file
8771 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8772 if test "$cross_compiling" = yes; then :
8773 ac_cv_func_lstat_dereferences_slashed_symlink=no
8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8776 /* end confdefs.h. */
8777 $ac_includes_default
8782 /* Linux will dereference the symlink and fail, as required by POSIX.
8783 That is better in the sense that it means we will not
8784 have to compile and use the lstat wrapper. */
8785 return lstat ("conftest.sym/", &sbuf) == 0;
8790 if ac_fn_c_try_run "$LINENO"; then :
8791 ac_cv_func_lstat_dereferences_slashed_symlink=yes
8793 ac_cv_func_lstat_dereferences_slashed_symlink=no
8795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8796 conftest.$ac_objext conftest.beam conftest.$ac_ext
8800 # If the `ln -s' command failed, then we probably don't even
8801 # have an lstat function.
8802 ac_cv_func_lstat_dereferences_slashed_symlink
=no
8804 rm -f conftest.sym conftest.
file
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8808 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8810 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8812 cat >>confdefs.h
<<_ACEOF
8813 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8817 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
8818 case " $LIBOBJS " in
8819 *" lstat.$ac_objext "* ) ;;
8820 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
8826 for ac_func
in gethostname getifaddrs gettimeofday inet_ntoa memmove memset mkdir realpath
select sendfile setlocale socket strcasecmp strchr strdup strerror strncasecmp strpbrk strrchr strstr strtol strtoul
8828 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8829 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8830 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8831 cat >>confdefs.h
<<_ACEOF
8832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8840 # Check for struct ip_mreqn
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreqn" >&5
8843 $as_echo_n "checking for struct ip_mreqn... " >&6; }
8844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8845 /* end confdefs.h. */
8846 #include <netinet/in.h>
8851 struct ip_mreqn mreq;
8852 mreq.imr_address.s_addr = 0;
8858 if ac_fn_c_try_compile
"$LINENO"; then :
8860 # Yes, we have it...
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8862 $as_echo "yes" >&6; }
8864 $as_echo "#define HAVE_STRUCT_IP_MREQN /**/" >>confdefs.h
8869 # We'll just have to try and use struct ip_mreq
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871 $as_echo "no" >&6; }
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreq" >&5
8873 $as_echo_n "checking for struct ip_mreq... " >&6; }
8874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8876 #include <netinet/in.h>
8881 struct ip_mreq mreq;
8882 mreq.imr_interface.s_addr = 0;
8888 if ac_fn_c_try_compile
"$LINENO"; then :
8890 # Yes, we have it...
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8892 $as_echo "yes" >&6; }
8894 $as_echo "#define HAVE_STRUCT_IP_MREQ /**/" >>confdefs.h
8899 # No multicast support
8900 as_fn_error $?
"No multicast support" "$LINENO" 5
8903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8908 ################################################################################################################
8909 # Special include directories
8913 SEARCH_DIR
="/opt/local"
8914 INCLUDE_DIR
="$SEARCH_DIR/include"
8918 $as_echo "#define SOLARIS 1" >>confdefs.h
8931 if test -f /etc
/redhat-release
; then
8932 INCLUDE_DIR
="/usr/include/ffmpeg"
8937 for ac_header
in syscall.h sys
/syscall.h mach
/mach_time.h
8939 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8940 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8941 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8942 cat >>confdefs.h
<<_ACEOF
8943 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __NR_clock_gettime syscall" >&5
8951 $as_echo_n "checking for __NR_clock_gettime syscall... " >&6; }
8952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8955 #include <asm/unistd.h>
8961 #ifndef __NR_clock_gettime
8970 if ac_fn_c_try_compile
"$LINENO"; then :
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8973 $as_echo "yes" >&6; }
8975 $as_echo "#define HAVE_CLOCK_GETTIME_SYSCALL 1" >>confdefs.h
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8981 $as_echo "no" >&6; }
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
8983 $as_echo_n "checking for library containing clock_gettime... " >&6; }
8984 if ${ac_cv_search_clock_gettime+:} false
; then :
8985 $as_echo_n "(cached) " >&6
8987 ac_func_search_save_LIBS
=$LIBS
8988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8991 /* Override any GCC internal prototype to avoid an error.
8992 Use char because int might match the return type of a GCC
8993 builtin and then its argument prototype would still apply. */
8997 char clock_gettime ();
9001 return clock_gettime ();
9006 for ac_lib
in '' rt
; do
9007 if test -z "$ac_lib"; then
9008 ac_res
="none required"
9011 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9013 if ac_fn_c_try_link
"$LINENO"; then :
9014 ac_cv_search_clock_gettime
=$ac_res
9016 rm -f core conftest.err conftest.
$ac_objext \
9018 if ${ac_cv_search_clock_gettime+:} false
; then :
9022 if ${ac_cv_search_clock_gettime+:} false
; then :
9025 ac_cv_search_clock_gettime
=no
9028 LIBS
=$ac_func_search_save_LIBS
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
9031 $as_echo "$ac_cv_search_clock_gettime" >&6; }
9032 ac_res
=$ac_cv_search_clock_gettime
9033 if test "$ac_res" != no
; then :
9034 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9036 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
9042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9044 ac_fn_c_check_header_compile
"$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "#include <sys/socket.h>
9046 if test "x$ac_cv_header_linux_netlink_h" = xyes
; then :
9048 $as_echo "#define HAVE_NETLINK 1" >>confdefs.h
9054 ################################################################################################################
9057 CPPFLAGS_SAVE
="$CPPFLAGS"
9058 for dir
in "" /usr
/local $INCLUDE_DIR; do
9059 if test -n "$dir"; then
9060 CPPFLAGS
="$CPPFLAGS_SAVE -I$dir"
9062 for ac_header
in libavutil
/avutil.h ffmpeg
/libavutil
/avutil.h libav
/libavutil
/avutil.h avutil.h ffmpeg
/avutil.h libav
/avutil.h
9064 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9065 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9066 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9067 cat >>confdefs.h
<<_ACEOF
9068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9075 if test -z "$HAVE_LIBAVUTIL"; then
9076 unset ac_cv_header_avutil_h
9077 unset ac_cv_header_libavutil_avutil_h
9078 unset ac_cv_header_ffmpeg_avutil_h
9079 unset ac_cv_header_ffmpeg_libavutil_avutil_h
9080 unset ac_cv_header_libav_avutil_h
9081 unset ac_cv_header_libav_libavutil_avutil_h
9086 if test -z "$HAVE_LIBAVUTIL"; then
9087 as_fn_error $?
"libavutil headers not found or not usable" "$LINENO" 5
9090 CPPFLAGS_SAVE
="$CPPFLAGS"
9091 for dir
in "" /usr
/local $INCLUDE_DIR; do
9092 if test -n "$dir"; then
9093 CPPFLAGS
="$CPPFLAGS_SAVE -I$dir"
9095 for ac_header
in libavcodec
/avcodec.h ffmpeg
/libavcodec
/avcodec.h libav
/libavcodec
/avcodec.h avcodec.h ffmpeg
/avcodec.h libav
/avcodec.h
9097 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9098 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9099 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9100 cat >>confdefs.h
<<_ACEOF
9101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9108 if test -z "$HAVE_LIBAVCODEC"; then
9109 unset ac_cv_header_avcodec_h
9110 unset ac_cv_header_libavcodec_avcodec_h
9111 unset ac_cv_header_ffmpeg_avcodec_h
9112 unset ac_cv_header_ffmpeg_libavcodec_avcodec_h
9113 unset ac_cv_header_libav_avcodec_h
9114 unset ac_cv_header_libav_libavcodec_avcodec_h
9119 if test -z "$HAVE_LIBAVCODEC"; then
9120 as_fn_error $?
"libavcodec headers not found or not usable" "$LINENO" 5
9123 CPPFLAGS_SAVE
="$CPPFLAGS"
9124 for dir
in "" /usr
/local $INCLUDE_DIR; do
9125 if test -n "$dir"; then
9126 CPPFLAGS
="$CPPFLAGS_SAVE -I$dir"
9128 for ac_header
in libavformat
/avformat.h ffmpeg
/libavformat
/avformat.h libav
/libavformat
/avformat.h avformat.h ffmpeg
/avformat.h libav
/avformat.h
9130 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9131 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9132 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9133 cat >>confdefs.h
<<_ACEOF
9134 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9141 if test -z "$HAVE_LIBAVFORMAT"; then
9142 unset ac_cv_header_avformat_h
9143 unset ac_cv_header_libavformat_avformat_h
9144 unset ac_cv_header_ffmpeg_avformat_h
9145 unset ac_cv_header_ffmpeg_libavformat_avformat_h
9146 unset ac_cv_header_libav_avformat_h
9147 unset ac_cv_header_libav_libavformat_avformat_h
9152 if test -z "$HAVE_LIBAVFORMAT"; then
9153 as_fn_error $?
"libavformat headers not found or not usable" "$LINENO" 5
9156 CPPFLAGS_SAVE
="$CPPFLAGS"
9157 for dir
in "" /usr
/local $INCLUDE_DIR; do
9158 if test -n "$dir"; then
9159 CPPFLAGS
="$CPPFLAGS -I$dir"
9161 for ac_header
in jpeglib.h sqlite3.h libexif
/exif-loader.h id3tag.h ogg
/ogg.h vorbis
/codec.h FLAC
/metadata.h
9163 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9164 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9165 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9166 cat >>confdefs.h
<<_ACEOF
9167 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9171 unset $as_ac_Header; break
9176 if test x
"$ac_cv_header_jpeglib_h" != x
"yes"; then
9177 CPPFLAGS
="$CPPFLAGS_SAVE"
9179 elif test x
"$ac_cv_header_sqlite3_h" != x
"yes"; then
9180 CPPFLAGS
="$CPPFLAGS_SAVE"
9182 elif test x
"$ac_cv_header_libexif_exif_loader_h" != x
"yes"; then
9183 CPPFLAGS
="$CPPFLAGS_SAVE"
9185 elif test x
"$ac_cv_header_id3tag_h" != x
"yes"; then
9186 CPPFLAGS
="$CPPFLAGS_SAVE"
9188 elif test x
"$ac_cv_header_ogg_ogg_h" != x
"yes"; then
9189 CPPFLAGS
="$CPPFLAGS_SAVE"
9191 elif test x
"$ac_cv_header_vorbis_codec_h" != x
"yes"; then
9192 CPPFLAGS
="$CPPFLAGS_SAVE"
9194 elif test x
"$ac_cv_header_FLAC_metadata_h" != x
"yes"; then
9195 CPPFLAGS
="$CPPFLAGS_SAVE"
9201 test x
"$ac_cv_header_jpeglib_h" != x
"yes" && as_fn_error $?
"libjpeg headers not found or not usable" "$LINENO" 5
9202 test x
"$ac_cv_header_sqlite3_h" != x
"yes" && as_fn_error $?
"libsqlite3 headers not found or not usable" "$LINENO" 5
9203 test x
"$ac_cv_header_libexif_exif_loader_h" != x
"yes" && as_fn_error $?
"libexif headers not found or not usable" "$LINENO" 5
9204 test x
"$ac_cv_header_id3tag_h" != x
"yes" && as_fn_error $?
"libid3tag headers not found or not usable" "$LINENO" 5
9205 test x
"$ac_cv_header_ogg_ogg_h" != x
"yes" && as_fn_error $?
"libogg headers not found or not usable" "$LINENO" 5
9206 test x
"$ac_cv_header_vorbis_codec_h" != x
"yes" && as_fn_error $?
"libvorbis headers not found or not usable" "$LINENO" 5
9207 test x
"$ac_cv_header_FLAC_metadata_h" != x
"yes" && as_fn_error $?
"libFLAC headers not found or not usable" "$LINENO" 5
9209 CFLAGS_SAVE
="$CFLAGS"
9210 CFLAGS
="$CFLAGS -Wall -Werror"
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the daemon() libc function" >&5
9212 $as_echo_n "checking if we should use the daemon() libc function... " >&6; }
9213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h. */
9223 return daemon(0, 0);
9230 if ac_fn_c_try_compile
"$LINENO"; then :
9233 $as_echo "#define USE_DAEMON 1" >>confdefs.h
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9236 $as_echo "yes" >&6; }
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241 $as_echo "no" >&6; }
9244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scandir declaration requires const char cast" >&5
9247 $as_echo_n "checking if scandir declaration requires const char cast... " >&6; }
9248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9252 #include <sys/types.h>
9259 int filter(struct dirent *d);
9260 struct dirent **ptr = NULL;
9262 (void)scandir(name, &ptr, filter, alphasort);
9269 if ac_fn_c_try_compile
"$LINENO"; then :
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272 $as_echo "no" >&6; }
9277 $as_echo "#define SCANDIR_CONST 1" >>confdefs.h
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9281 $as_echo "yes" >&6; }
9284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linux sendfile support" >&5
9287 $as_echo_n "checking for linux sendfile support... " >&6; }
9288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9291 #include <sys/types.h>
9292 #include <sys/sendfile.h>
9298 int tofd = 0, fromfd = 0;
9301 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
9309 if ac_fn_c_try_compile
"$LINENO"; then :
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9312 $as_echo "yes" >&6; }
9314 $as_echo "#define HAVE_LINUX_SENDFILE_API 1" >>confdefs.h
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320 $as_echo "no" >&6; }
9323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for darwin sendfile support" >&5
9326 $as_echo_n "checking for darwin sendfile support... " >&6; }
9327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9328 /* end confdefs.h. */
9331 #include <sys/types.h>
9332 #include <sys/socket.h>
9333 #include <sys/uio.h>
9340 off_t offset = 0, len;
9341 struct sf_hdtr *hdtr = NULL;
9344 ret = sendfile(fd, s, offset, &len, hdtr, flags);
9352 if ac_fn_c_try_compile
"$LINENO"; then :
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9355 $as_echo "yes" >&6; }
9357 $as_echo "#define HAVE_DARWIN_SENDFILE_API 1" >>confdefs.h
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363 $as_echo "no" >&6; }
9366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freebsd sendfile support" >&5
9369 $as_echo_n "checking for freebsd sendfile support... " >&6; }
9370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h. */
9374 #include <sys/types.h>
9375 #include <sys/socket.h>
9376 #include <sys/uio.h>
9382 int fromfd=0, tofd=0, ret, total=0;
9383 off_t offset=0, nwritten;
9386 hdr.headers = &hdtrl;
9388 hdr.trailers = NULL;
9390 hdtrl.iov_base = NULL;
9392 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
9399 if ac_fn_c_try_compile
"$LINENO"; then :
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9402 $as_echo "yes" >&6; }
9404 $as_echo "#define HAVE_FREEBSD_SENDFILE_API 1" >>confdefs.h
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410 $as_echo "no" >&6; }
9413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9414 CFLAGS
="$CFLAGS_SAVE"
9416 LDFLAGS_SAVE
="$LDFLAGS"
9417 for dir
in "" /usr
/local $SEARCH_DIR; do
9418 if test -n "$dir"; then
9419 LDFLAGS
="$LDFLAGS -L$dir/lib"
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_set_defaults in -ljpeg" >&5
9422 $as_echo_n "checking for jpeg_set_defaults in -ljpeg... " >&6; }
9423 if ${ac_cv_lib_jpeg_jpeg_set_defaults+:} false
; then :
9424 $as_echo_n "(cached) " >&6
9426 ac_check_lib_save_LIBS
=$LIBS
9428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9431 /* Override any GCC internal prototype to avoid an error.
9432 Use char because int might match the return type of a GCC
9433 builtin and then its argument prototype would still apply. */
9437 char jpeg_set_defaults ();
9441 return jpeg_set_defaults ();
9446 if ac_fn_c_try_link
"$LINENO"; then :
9447 ac_cv_lib_jpeg_jpeg_set_defaults
=yes
9449 ac_cv_lib_jpeg_jpeg_set_defaults
=no
9451 rm -f core conftest.err conftest.
$ac_objext \
9452 conftest
$ac_exeext conftest.
$ac_ext
9453 LIBS
=$ac_check_lib_save_LIBS
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_set_defaults" >&5
9456 $as_echo "$ac_cv_lib_jpeg_jpeg_set_defaults" >&6; }
9457 if test "x$ac_cv_lib_jpeg_jpeg_set_defaults" = xyes
; then :
9458 LIBJPEG_LIBS
="-ljpeg"
9460 unset ac_cv_lib_jpeg_jpeg_set_defaults
; LDFLAGS
="$LDFLAGS_SAVE"; continue
9465 test x
"$ac_cv_lib_jpeg_jpeg_set_defaults" = x
"yes" || as_fn_error $?
"Could not find libjpeg" "$LINENO" 5
9468 LDFLAGS_SAVE
="$LDFLAGS"
9469 for dir
in "" /usr
/local $SEARCH_DIR; do
9470 if test -n "$dir"; then
9471 LDFLAGS
="$LDFLAGS -L$dir/lib"
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exif_data_new_from_file in -lexif" >&5
9474 $as_echo_n "checking for exif_data_new_from_file in -lexif... " >&6; }
9475 if ${ac_cv_lib_exif_exif_data_new_from_file+:} false
; then :
9476 $as_echo_n "(cached) " >&6
9478 ac_check_lib_save_LIBS
=$LIBS
9480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9483 /* Override any GCC internal prototype to avoid an error.
9484 Use char because int might match the return type of a GCC
9485 builtin and then its argument prototype would still apply. */
9489 char exif_data_new_from_file ();
9493 return exif_data_new_from_file ();
9498 if ac_fn_c_try_link
"$LINENO"; then :
9499 ac_cv_lib_exif_exif_data_new_from_file
=yes
9501 ac_cv_lib_exif_exif_data_new_from_file
=no
9503 rm -f core conftest.err conftest.
$ac_objext \
9504 conftest
$ac_exeext conftest.
$ac_ext
9505 LIBS
=$ac_check_lib_save_LIBS
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_exif_exif_data_new_from_file" >&5
9508 $as_echo "$ac_cv_lib_exif_exif_data_new_from_file" >&6; }
9509 if test "x$ac_cv_lib_exif_exif_data_new_from_file" = xyes
; then :
9510 LIBEXIF_LIBS
="-lexif"
9512 unset ac_cv_lib_exif_exif_data_new_from_file
; LDFLAGS
="$LDFLAGS_SAVE"; continue
9517 test x
"$ac_cv_lib_jpeg_jpeg_set_defaults" = x
"yes" || as_fn_error $?
"Could not find libexif" "$LINENO" 5
9520 LDFLAGS_SAVE
="$LDFLAGS"
9521 for dir
in "" /usr
/local $SEARCH_DIR; do
9522 if test -n "$dir"; then
9523 LDFLAGS
="$LDFLAGS -L$dir/lib"
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for id3_file_open in -lid3tag" >&5
9526 $as_echo_n "checking for id3_file_open in -lid3tag... " >&6; }
9527 if ${ac_cv_lib_id3tag_id3_file_open+:} false
; then :
9528 $as_echo_n "(cached) " >&6
9530 ac_check_lib_save_LIBS
=$LIBS
9531 LIBS
="-lid3tag $LIBS"
9532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9535 /* Override any GCC internal prototype to avoid an error.
9536 Use char because int might match the return type of a GCC
9537 builtin and then its argument prototype would still apply. */
9541 char id3_file_open ();
9545 return id3_file_open ();
9550 if ac_fn_c_try_link
"$LINENO"; then :
9551 ac_cv_lib_id3tag_id3_file_open
=yes
9553 ac_cv_lib_id3tag_id3_file_open
=no
9555 rm -f core conftest.err conftest.
$ac_objext \
9556 conftest
$ac_exeext conftest.
$ac_ext
9557 LIBS
=$ac_check_lib_save_LIBS
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_id3tag_id3_file_open" >&5
9560 $as_echo "$ac_cv_lib_id3tag_id3_file_open" >&6; }
9561 if test "x$ac_cv_lib_id3tag_id3_file_open" = xyes
; then :
9562 LIBID3TAG_LIBS
="-lid3tag"
9564 unset ac_cv_lib_id3tag_id3_file_open
; LDFLAGS
="$LDFLAGS_SAVE"; continue
9569 test x
"$ac_cv_lib_id3tag_id3_file_open" = x
"yes" || as_fn_error $?
"Could not find libid3tag" "$LINENO" 5
9572 LDFLAGS_SAVE
="$LDFLAGS"
9573 for dir
in "" /usr
/local $SEARCH_DIR; do
9574 if test -n "$dir"; then
9575 LDFLAGS
="$LDFLAGS -L$dir/lib"
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
9578 $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
9579 if ${ac_cv_lib_sqlite3_sqlite3_open+:} false
; then :
9580 $as_echo_n "(cached) " >&6
9582 ac_check_lib_save_LIBS
=$LIBS
9583 LIBS
="-lsqlite3 $LIBS"
9584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9587 /* Override any GCC internal prototype to avoid an error.
9588 Use char because int might match the return type of a GCC
9589 builtin and then its argument prototype would still apply. */
9593 char sqlite3_open ();
9597 return sqlite3_open ();
9602 if ac_fn_c_try_link
"$LINENO"; then :
9603 ac_cv_lib_sqlite3_sqlite3_open
=yes
9605 ac_cv_lib_sqlite3_sqlite3_open
=no
9607 rm -f core conftest.err conftest.
$ac_objext \
9608 conftest
$ac_exeext conftest.
$ac_ext
9609 LIBS
=$ac_check_lib_save_LIBS
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
9612 $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
9613 if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes
; then :
9614 LIBSQLITE3_LIBS
="-lsqlite3"
9616 unset ac_cv_lib_sqlite3_sqlite3_open
; LDFLAGS
="$LDFLAGS_SAVE"; continue
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_malloc in -lsqlite3" >&5
9620 $as_echo_n "checking for sqlite3_malloc in -lsqlite3... " >&6; }
9621 if ${ac_cv_lib_sqlite3_sqlite3_malloc+:} false
; then :
9622 $as_echo_n "(cached) " >&6
9624 ac_check_lib_save_LIBS
=$LIBS
9625 LIBS
="-lsqlite3 $LIBS"
9626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9629 /* Override any GCC internal prototype to avoid an error.
9630 Use char because int might match the return type of a GCC
9631 builtin and then its argument prototype would still apply. */
9635 char sqlite3_malloc ();
9639 return sqlite3_malloc ();
9644 if ac_fn_c_try_link
"$LINENO"; then :
9645 ac_cv_lib_sqlite3_sqlite3_malloc
=yes
9647 ac_cv_lib_sqlite3_sqlite3_malloc
=no
9649 rm -f core conftest.err conftest.
$ac_objext \
9650 conftest
$ac_exeext conftest.
$ac_ext
9651 LIBS
=$ac_check_lib_save_LIBS
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_malloc" >&5
9654 $as_echo "$ac_cv_lib_sqlite3_sqlite3_malloc" >&6; }
9655 if test "x$ac_cv_lib_sqlite3_sqlite3_malloc" = xyes
; then :
9657 $as_echo "#define HAVE_SQLITE3_MALLOC 1" >>confdefs.h
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_prepare_v2 in -lsqlite3" >&5
9662 $as_echo_n "checking for sqlite3_prepare_v2 in -lsqlite3... " >&6; }
9663 if ${ac_cv_lib_sqlite3_sqlite3_prepare_v2+:} false
; then :
9664 $as_echo_n "(cached) " >&6
9666 ac_check_lib_save_LIBS
=$LIBS
9667 LIBS
="-lsqlite3 $LIBS"
9668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9669 /* end confdefs.h. */
9671 /* Override any GCC internal prototype to avoid an error.
9672 Use char because int might match the return type of a GCC
9673 builtin and then its argument prototype would still apply. */
9677 char sqlite3_prepare_v2 ();
9681 return sqlite3_prepare_v2 ();
9686 if ac_fn_c_try_link
"$LINENO"; then :
9687 ac_cv_lib_sqlite3_sqlite3_prepare_v2
=yes
9689 ac_cv_lib_sqlite3_sqlite3_prepare_v2
=no
9691 rm -f core conftest.err conftest.
$ac_objext \
9692 conftest
$ac_exeext conftest.
$ac_ext
9693 LIBS
=$ac_check_lib_save_LIBS
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&5
9696 $as_echo "$ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&6; }
9697 if test "x$ac_cv_lib_sqlite3_sqlite3_prepare_v2" = xyes
; then :
9699 $as_echo "#define HAVE_SQLITE3_PREPARE_V2 1" >>confdefs.h
9705 test x
"$ac_cv_lib_sqlite3_sqlite3_open" = x
"yes" || as_fn_error $?
"Could not find libsqlite3" "$LINENO" 5
9708 LDFLAGS_SAVE
="$LDFLAGS"
9709 for dir
in "" /usr
/local $SEARCH_DIR; do
9710 if test -n "$dir"; then
9711 LDFLAGS
="$LDFLAGS -L$dir/lib"
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_open_input_file in -lavformat" >&5
9714 $as_echo_n "checking for av_open_input_file in -lavformat... " >&6; }
9715 if ${ac_cv_lib_avformat_av_open_input_file+:} false
; then :
9716 $as_echo_n "(cached) " >&6
9718 ac_check_lib_save_LIBS
=$LIBS
9719 LIBS
="-lavformat $LIBS"
9720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9723 /* Override any GCC internal prototype to avoid an error.
9724 Use char because int might match the return type of a GCC
9725 builtin and then its argument prototype would still apply. */
9729 char av_open_input_file ();
9733 return av_open_input_file ();
9738 if ac_fn_c_try_link
"$LINENO"; then :
9739 ac_cv_lib_avformat_av_open_input_file
=yes
9741 ac_cv_lib_avformat_av_open_input_file
=no
9743 rm -f core conftest.err conftest.
$ac_objext \
9744 conftest
$ac_exeext conftest.
$ac_ext
9745 LIBS
=$ac_check_lib_save_LIBS
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_open_input_file" >&5
9748 $as_echo "$ac_cv_lib_avformat_av_open_input_file" >&6; }
9749 if test "x$ac_cv_lib_avformat_av_open_input_file" = xyes
; then :
9750 LIBAVFORMAT_LIBS
="-lavformat"
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avformat_open_input in -lavformat" >&5
9753 $as_echo_n "checking for avformat_open_input in -lavformat... " >&6; }
9754 if ${ac_cv_lib_avformat_avformat_open_input+:} false
; then :
9755 $as_echo_n "(cached) " >&6
9757 ac_check_lib_save_LIBS
=$LIBS
9758 LIBS
="-lavformat $LIBS"
9759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9762 /* Override any GCC internal prototype to avoid an error.
9763 Use char because int might match the return type of a GCC
9764 builtin and then its argument prototype would still apply. */
9768 char avformat_open_input ();
9772 return avformat_open_input ();
9777 if ac_fn_c_try_link
"$LINENO"; then :
9778 ac_cv_lib_avformat_avformat_open_input
=yes
9780 ac_cv_lib_avformat_avformat_open_input
=no
9782 rm -f core conftest.err conftest.
$ac_objext \
9783 conftest
$ac_exeext conftest.
$ac_ext
9784 LIBS
=$ac_check_lib_save_LIBS
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_avformat_open_input" >&5
9787 $as_echo "$ac_cv_lib_avformat_avformat_open_input" >&6; }
9788 if test "x$ac_cv_lib_avformat_avformat_open_input" = xyes
; then :
9789 LIBAVFORMAT_LIBS
="-lavformat"
9791 unset ac_cv_lib_avformat_av_open_input_file
; unset ac_cv_lib_avformat_avformat_open_input
; LDFLAGS
="$LDFLAGS_SAVE"; continue
9798 if test x
"$ac_cv_lib_avformat_av_open_input_file" != x
"yes" &&
9799 test x
"$ac_cv_lib_avformat_avformat_open_input" != x
"yes"; then
9800 as_fn_error $?
"Could not find libavformat - part of ffmpeg" "$LINENO" 5
9804 as_ac_Lib
=`$as_echo "ac_cv_lib_avutil ''_av_rescale_q" | $as_tr_sh`
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_rescale_q in -lavutil " >&5
9806 $as_echo_n "checking for av_rescale_q in -lavutil ... " >&6; }
9807 if eval \
${$as_ac_Lib+:} false
; then :
9808 $as_echo_n "(cached) " >&6
9810 ac_check_lib_save_LIBS
=$LIBS
9811 LIBS
="-lavutil $LIBS"
9812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9815 /* Override any GCC internal prototype to avoid an error.
9816 Use char because int might match the return type of a GCC
9817 builtin and then its argument prototype would still apply. */
9821 char av_rescale_q ();
9825 return av_rescale_q ();
9830 if ac_fn_c_try_link
"$LINENO"; then :
9831 eval "$as_ac_Lib=yes"
9833 eval "$as_ac_Lib=no"
9835 rm -f core conftest.err conftest.
$ac_objext \
9836 conftest
$ac_exeext conftest.
$ac_ext
9837 LIBS
=$ac_check_lib_save_LIBS
9839 eval ac_res
=\$
$as_ac_Lib
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9841 $as_echo "$ac_res" >&6; }
9842 if eval test \"x\$
"$as_ac_Lib"\" = x
"yes"; then :
9843 LIBAVUTIL_LIBS
="-lavutil"
9845 as_fn_error $?
"Could not find libavutil - part of ffmpeg" "$LINENO" 5
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
9851 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
9852 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
9853 $as_echo_n "(cached) " >&6
9855 ac_check_lib_save_LIBS
=$LIBS
9856 LIBS
="-lpthread $LIBS"
9857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9858 /* end confdefs.h. */
9860 /* Override any GCC internal prototype to avoid an error.
9861 Use char because int might match the return type of a GCC
9862 builtin and then its argument prototype would still apply. */
9866 char pthread_create ();
9870 return pthread_create ();
9875 if ac_fn_c_try_link
"$LINENO"; then :
9876 ac_cv_lib_pthread_pthread_create
=yes
9878 ac_cv_lib_pthread_pthread_create
=no
9880 rm -f core conftest.err conftest.
$ac_objext \
9881 conftest
$ac_exeext conftest.
$ac_ext
9882 LIBS
=$ac_check_lib_save_LIBS
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
9885 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
9886 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
9887 cat >>confdefs.h
<<_ACEOF
9888 #define HAVE_LIBPTHREAD 1
9891 LIBS
="-lpthread $LIBS"
9896 # test if we have vorbisfile
9897 # prior versions had ov_open_callbacks in libvorbis, test that, too.
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ov_open_callbacks in -lvorbisfile" >&5
9899 $as_echo_n "checking for ov_open_callbacks in -lvorbisfile... " >&6; }
9900 if ${ac_cv_lib_vorbisfile_ov_open_callbacks+:} false
; then :
9901 $as_echo_n "(cached) " >&6
9903 ac_check_lib_save_LIBS
=$LIBS
9904 LIBS
="-lvorbisfile -lvorbis -logg $LIBS"
9905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9906 /* end confdefs.h. */
9908 /* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
9914 char ov_open_callbacks ();
9918 return ov_open_callbacks ();
9923 if ac_fn_c_try_link
"$LINENO"; then :
9924 ac_cv_lib_vorbisfile_ov_open_callbacks
=yes
9926 ac_cv_lib_vorbisfile_ov_open_callbacks
=no
9928 rm -f core conftest.err conftest.
$ac_objext \
9929 conftest
$ac_exeext conftest.
$ac_ext
9930 LIBS
=$ac_check_lib_save_LIBS
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisfile_ov_open_callbacks" >&5
9933 $as_echo "$ac_cv_lib_vorbisfile_ov_open_callbacks" >&6; }
9934 if test "x$ac_cv_lib_vorbisfile_ov_open_callbacks" = xyes
; then :
9935 for ac_header
in vorbis
/vorbisfile.h
9937 ac_fn_c_check_header_mongrel
"$LINENO" "vorbis/vorbisfile.h" "ac_cv_header_vorbis_vorbisfile_h" "$ac_includes_default"
9938 if test "x$ac_cv_header_vorbis_vorbisfile_h" = xyes
; then :
9939 cat >>confdefs.h
<<_ACEOF
9940 #define HAVE_VORBIS_VORBISFILE_H 1
9943 HAVE_VORBISFILE_TRUE
=
9944 HAVE_VORBISFILE_FALSE
='#'
9946 HAVE_VORBISFILE_TRUE
='#'
9947 HAVE_VORBISFILE_FALSE
=
9951 $as_echo "#define HAVE_VORBISFILE 1" >>confdefs.h
9955 HAVE_VORBISFILE_TRUE
=
9956 HAVE_VORBISFILE_FALSE
='#'
9958 HAVE_VORBISFILE_TRUE
='#'
9959 HAVE_VORBISFILE_FALSE
=
9963 $as_echo "#define HAVE_VORBISFILE 0" >>confdefs.h
9971 HAVE_VORBISFILE_TRUE
=
9972 HAVE_VORBISFILE_FALSE
='#'
9974 HAVE_VORBISFILE_TRUE
='#'
9975 HAVE_VORBISFILE_FALSE
=
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLAC__stream_decoder_init_stream in -lFLAC" >&5
9981 $as_echo_n "checking for FLAC__stream_decoder_init_stream in -lFLAC... " >&6; }
9982 if ${ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream+:} false
; then :
9983 $as_echo_n "(cached) " >&6
9985 ac_check_lib_save_LIBS
=$LIBS
9986 LIBS
="-lFLAC -logg $LIBS"
9987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9990 /* Override any GCC internal prototype to avoid an error.
9991 Use char because int might match the return type of a GCC
9992 builtin and then its argument prototype would still apply. */
9996 char FLAC__stream_decoder_init_stream ();
10000 return FLAC__stream_decoder_init_stream ();
10005 if ac_fn_c_try_link
"$LINENO"; then :
10006 ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream
=yes
10008 ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream
=no
10010 rm -f core conftest.err conftest.
$ac_objext \
10011 conftest
$ac_exeext conftest.
$ac_ext
10012 LIBS
=$ac_check_lib_save_LIBS
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream" >&5
10015 $as_echo "$ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream" >&6; }
10016 if test "x$ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream" = xyes
; then :
10017 for ac_header
in FLAC
/all.h
10019 ac_fn_c_check_header_mongrel
"$LINENO" "FLAC/all.h" "ac_cv_header_FLAC_all_h" "$ac_includes_default"
10020 if test "x$ac_cv_header_FLAC_all_h" = xyes
; then :
10021 cat >>confdefs.h
<<_ACEOF
10022 #define HAVE_FLAC_ALL_H 1
10026 HAVE_FLAC_FALSE
='#'
10033 $as_echo "#define HAVE_FLAC 1" >>confdefs.h
10038 HAVE_FLAC_FALSE
='#'
10051 HAVE_FLAC_FALSE
='#'
10059 # test without -logg to see whether we really need it (libflac can be without)
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLAC__stream_decoder_init_ogg_stream in -lFLAC" >&5
10061 $as_echo_n "checking for FLAC__stream_decoder_init_ogg_stream in -lFLAC... " >&6; }
10062 if ${ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream+:} false
; then :
10063 $as_echo_n "(cached) " >&6
10065 ac_check_lib_save_LIBS
=$LIBS
10066 LIBS
="-lFLAC $LIBS"
10067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10070 /* Override any GCC internal prototype to avoid an error.
10071 Use char because int might match the return type of a GCC
10072 builtin and then its argument prototype would still apply. */
10076 char FLAC__stream_decoder_init_ogg_stream ();
10080 return FLAC__stream_decoder_init_ogg_stream ();
10085 if ac_fn_c_try_link
"$LINENO"; then :
10086 ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream
=yes
10088 ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream
=no
10090 rm -f core conftest.err conftest.
$ac_objext \
10091 conftest
$ac_exeext conftest.
$ac_ext
10092 LIBS
=$ac_check_lib_save_LIBS
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream" >&5
10095 $as_echo "$ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream" >&6; }
10096 if test "x$ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream" = xyes
; then :
10099 HAVE_FLAC_FALSE
='#'
10106 $as_echo "#define HAVE_FLAC 1" >>confdefs.h
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis_comment_query in -lvorbisfile" >&5
10128 $as_echo_n "checking for vorbis_comment_query in -lvorbisfile... " >&6; }
10129 if ${ac_cv_lib_vorbisfile_vorbis_comment_query+:} false
; then :
10130 $as_echo_n "(cached) " >&6
10132 ac_check_lib_save_LIBS
=$LIBS
10133 LIBS
="-lvorbisfile -logg $LIBS"
10134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10137 /* Override any GCC internal prototype to avoid an error.
10138 Use char because int might match the return type of a GCC
10139 builtin and then its argument prototype would still apply. */
10143 char vorbis_comment_query ();
10147 return vorbis_comment_query ();
10152 if ac_fn_c_try_link
"$LINENO"; then :
10153 ac_cv_lib_vorbisfile_vorbis_comment_query
=yes
10155 ac_cv_lib_vorbisfile_vorbis_comment_query
=no
10157 rm -f core conftest.err conftest.
$ac_objext \
10158 conftest
$ac_exeext conftest.
$ac_ext
10159 LIBS
=$ac_check_lib_save_LIBS
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisfile_vorbis_comment_query" >&5
10162 $as_echo "$ac_cv_lib_vorbisfile_vorbis_comment_query" >&6; }
10163 if test "x$ac_cv_lib_vorbisfile_vorbis_comment_query" = xyes
; then :
10166 NEED_VORBIS_FALSE
='#'
10168 NEED_VORBIS_TRUE
='#'
10175 NEED_VORBIS_FALSE
='#'
10177 NEED_VORBIS_TRUE
='#'
10184 ################################################################################################################
10187 for ac_header
in arpa
/inet.h asm
/unistd.h endian.h machine
/endian.h fcntl.h libintl.h locale.h netdb.h netinet
/in.h stddef.h stdlib.h string.h sys
/file.h sys
/inotify.h sys
/ioctl.h sys
/param.h sys
/socket.h sys
/time.h unistd.h
10189 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10190 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10191 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10192 cat >>confdefs.h
<<_ACEOF
10193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10201 for ac_func
in inotify_init
10203 ac_fn_c_check_func
"$LINENO" "inotify_init" "ac_cv_func_inotify_init"
10204 if test "x$ac_cv_func_inotify_init" = xyes
; then :
10205 cat >>confdefs.h
<<_ACEOF
10206 #define HAVE_INOTIFY_INIT 1
10209 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __NR_inotify_init syscall" >&5
10214 $as_echo_n "checking for __NR_inotify_init syscall... " >&6; }
10215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10216 /* end confdefs.h. */
10218 #include <asm/unistd.h>
10224 #ifndef __NR_inotify_init
10233 if ac_fn_c_try_compile
"$LINENO"; then :
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10236 $as_echo "yes" >&6; }
10238 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10244 $as_echo "no" >&6; }
10247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10253 ################################################################################################################
10257 # Check whether --with-log-path was given.
10258 if test "${with_log_path+set}" = set; then :
10259 withval
=$with_log_path; with_logpath
="$withval"
10261 with_logpath
="/var/log"
10265 cat >>confdefs.h
<<_ACEOF
10266 #define DEFAULT_LOG_PATH "${with_logpath}"
10272 # Check whether --with-db-path was given.
10273 if test "${with_db_path+set}" = set; then :
10274 withval
=$with_db_path; with_dbpath
="$withval"
10276 with_dbpath
="/var/cache/minidlna"
10280 cat >>confdefs.h
<<_ACEOF
10281 #define DEFAULT_DB_PATH "${with_dbpath}"
10286 # Check whether --with-os-name was given.
10287 if test "${with_os_name+set}" = set; then :
10288 withval
=$with_os_name; with_osname
="$withval"
10290 with_osname
="$(uname -s)"
10294 cat >>confdefs.h
<<_ACEOF
10295 #define OS_NAME "${with_osname}"
10300 # Check whether --with-os-version was given.
10301 if test "${with_os_version+set}" = set; then :
10302 withval
=$with_os_version; with_osver
="$withval"
10304 with_osver
="$(uname -r)"
10308 cat >>confdefs.h
<<_ACEOF
10309 #define OS_VERSION "${with_osver}"
10314 # Check whether --with-os-url was given.
10315 if test "${with_os_url+set}" = set; then :
10316 withval
=$with_os_url; with_osurl
="$withval"
10318 with_osurl
="http://www.netgear.com"
10322 cat >>confdefs.h
<<_ACEOF
10323 #define OS_URL "${with_osurl}"
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TiVo support" >&5
10329 $as_echo_n "checking whether to enable TiVo support... " >&6; }
10330 # Check whether --enable-tivo was given.
10331 if test "${enable_tivo+set}" = set; then :
10332 enableval
=$enable_tivo;
10333 if test "$enableval" = "yes"; then
10335 $as_echo "#define TIVO_SUPPORT 1" >>confdefs.h
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10338 $as_echo "yes" >&6; }
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341 $as_echo "no" >&6; }
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347 $as_echo "no" >&6; }
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generic NETGEAR device support" >&5
10354 $as_echo_n "checking whether to enable generic NETGEAR device support... " >&6; }
10355 # Check whether --enable-netgear was given.
10356 if test "${enable_netgear+set}" = set; then :
10357 enableval
=$enable_netgear;
10358 if test "$enableval" = "yes"; then
10360 $as_echo "#define NETGEAR 1" >>confdefs.h
10362 cat >>confdefs.h
<<_ACEOF
10363 #define OS_URL "http://www.netgear.com/"
10366 cat >>confdefs.h
<<_ACEOF
10367 #define ROOTDEV_MANUFACTURERURL "http://www.netgear.com/"
10370 cat >>confdefs.h
<<_ACEOF
10371 #define ROOTDEV_MANUFACTURER "NETGEAR"
10374 cat >>confdefs.h
<<_ACEOF
10375 #define ROOTDEV_MODELNAME "Windows Media Connect compatible (ReadyDLNA)"
10378 cat >>confdefs.h
<<_ACEOF
10379 #define ROOTDEV_MODELDESCRIPTION "ReadyDLNA"
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10383 $as_echo "yes" >&6; }
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392 $as_echo "no" >&6; }
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NETGEAR ReadyNAS support" >&5
10399 $as_echo_n "checking whether to enable NETGEAR ReadyNAS support... " >&6; }
10400 # Check whether --enable-readynas was given.
10401 if test "${enable_readynas+set}" = set; then :
10402 enableval
=$enable_readynas;
10403 if test "$enableval" = "yes"; then
10405 $as_echo "#define NETGEAR 1" >>confdefs.h
10408 $as_echo "#define READYNAS 1" >>confdefs.h
10411 $as_echo "#define TIVO_SUPPORT 1" >>confdefs.h
10414 $as_echo "#define PNPX 5" >>confdefs.h
10416 cat >>confdefs.h
<<_ACEOF
10417 #define OS_URL "http://www.readynas.com/"
10420 cat >>confdefs.h
<<_ACEOF
10421 #define ROOTDEV_MANUFACTURERURL "http://www.netgear.com/"
10424 cat >>confdefs.h
<<_ACEOF
10425 #define ROOTDEV_MANUFACTURER "NETGEAR"
10428 cat >>confdefs.h
<<_ACEOF
10429 #define ROOTDEV_MODELNAME "Windows Media Connect compatible (ReadyDLNA)"
10432 cat >>confdefs.h
<<_ACEOF
10433 #define ROOTDEV_MODELDESCRIPTION "ReadyDLNA"
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10437 $as_echo "yes" >&6; }
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10440 $as_echo "no" >&6; }
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10446 $as_echo "no" >&6; }
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build a static binary executable" >&5
10453 $as_echo_n "checking whether to build a static binary executable... " >&6; }
10454 # Check whether --enable-static was given.
10455 if test "${enable_static+set}" = set; then :
10456 enableval
=$enable_static;
10457 if test "$enableval" = "yes"; then
10458 STATIC_CFLAGS
="-DSTATIC"
10460 STATIC_LDFLAGS
="-Wl,-Bstatic"
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10463 $as_echo "yes" >&6; }
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10466 $as_echo "no" >&6; }
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472 $as_echo "no" >&6; }
10479 case "$target_os" in
10483 VER
=`grep '#define __FreeBSD_version' /usr/include/sys/param.h | awk '{print $3}'`
10484 OS_URL
=http
://www.freebsd.org
/
10488 $as_echo "#define USE_IPF 1" >>confdefs.h
10491 $as_echo "#define LOG_PERROR 0" >>confdefs.h
10494 $as_echo "#define SOLARIS_KSTATS 1" >>confdefs.h
10498 OS_URL
=http
://www.debian.org
/
10503 OS_URL
=http
://www.openbsd.org
/
10506 echo "Unknown OS : $target_os"
10511 ac_config_files
="$ac_config_files po/Makefile.in Makefile"
10513 cat >confcache
<<\_ACEOF
10514 # This file is a shell script that caches the results of configure
10515 # tests run on this system so they can be shared between configure
10516 # scripts and configure runs, see configure's option --config-cache.
10517 # It is not useful on other systems. If it contains results you don't
10518 # want to keep, you may remove or edit it.
10520 # config.status only pays attention to the cache file if you give it
10521 # the --recheck option to rerun configure.
10523 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10524 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10525 # following values.
10529 # The following way of writing the cache mishandles newlines in values,
10530 # but we know of no workaround that is simple, portable, and efficient.
10531 # So, we kill variables containing newlines.
10532 # Ultrix sh set writes to stderr and can't be redirected directly,
10533 # and sets the high bit in the cache file unless we assign to the vars.
10535 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10536 eval ac_val
=\$
$ac_var
10540 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10541 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10544 _ | IFS | as_nl
) ;; #(
10545 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10546 *) { eval $ac_var=; unset $ac_var;} ;;
10552 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10553 *${as_nl}ac_space
=\
*)
10554 # `set' does not quote correctly, so add quotes: double-quote
10555 # substitution turns \\\\ into \\, and sed turns \\ into \.
10558 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10561 # `set' quotes correctly as required by POSIX, so do not add quotes.
10562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10571 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10573 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10575 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10576 if test -w "$cache_file"; then
10577 if test "x$cache_file" != "x/dev/null"; then
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10579 $as_echo "$as_me: updating cache $cache_file" >&6;}
10580 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10581 cat confcache
>"$cache_file"
10583 case $cache_file in #(
10585 mv -f confcache
"$cache_file"$$
&&
10586 mv -f "$cache_file"$$
"$cache_file" ;; #(
10588 mv -f confcache
"$cache_file" ;;
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10594 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10599 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10600 # Let make expand exec_prefix.
10601 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10603 DEFS
=-DHAVE_CONFIG_H
10608 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10609 # 1. Remove the extension, and $U if already installed.
10610 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10611 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10612 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10613 # will be set to the directory where LIBOBJS objects are built.
10614 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10615 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10617 LIBOBJS
=$ac_libobjs
10619 LTLIBOBJS
=$ac_ltlibobjs
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10623 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10624 if test -n "$am_sleep_pid"; then
10625 # Hide warnings about reused PIDs.
10626 wait $am_sleep_pid 2>/dev
/null
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10629 $as_echo "done" >&6; }
10630 if test -n "$EXEEXT"; then
10632 am__EXEEXT_FALSE
='#'
10634 am__EXEEXT_TRUE
='#'
10638 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10639 as_fn_error $?
"conditional \"AMDEP\" was never defined.
10640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10642 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10643 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
10644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10646 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10647 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
10648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10651 if test -z "${HAVE_VORBISFILE_TRUE}" && test -z "${HAVE_VORBISFILE_FALSE}"; then
10652 as_fn_error $?
"conditional \"HAVE_VORBISFILE\" was never defined.
10653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10655 if test -z "${HAVE_VORBISFILE_TRUE}" && test -z "${HAVE_VORBISFILE_FALSE}"; then
10656 as_fn_error $?
"conditional \"HAVE_VORBISFILE\" was never defined.
10657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10659 if test -z "${HAVE_VORBISFILE_TRUE}" && test -z "${HAVE_VORBISFILE_FALSE}"; then
10660 as_fn_error $?
"conditional \"HAVE_VORBISFILE\" was never defined.
10661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10663 if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
10664 as_fn_error $?
"conditional \"HAVE_FLAC\" was never defined.
10665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10667 if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
10668 as_fn_error $?
"conditional \"HAVE_FLAC\" was never defined.
10669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10671 if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
10672 as_fn_error $?
"conditional \"HAVE_FLAC\" was never defined.
10673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10675 if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
10676 as_fn_error $?
"conditional \"HAVE_FLAC\" was never defined.
10677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10679 if test -z "${NEED_OGG_TRUE}" && test -z "${NEED_OGG_FALSE}"; then
10680 as_fn_error $?
"conditional \"NEED_OGG\" was never defined.
10681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10683 if test -z "${NEED_OGG_TRUE}" && test -z "${NEED_OGG_FALSE}"; then
10684 as_fn_error $?
"conditional \"NEED_OGG\" was never defined.
10685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10687 if test -z "${NEED_VORBIS_TRUE}" && test -z "${NEED_VORBIS_FALSE}"; then
10688 as_fn_error $?
"conditional \"NEED_VORBIS\" was never defined.
10689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10691 if test -z "${NEED_VORBIS_TRUE}" && test -z "${NEED_VORBIS_FALSE}"; then
10692 as_fn_error $?
"conditional \"NEED_VORBIS\" was never defined.
10693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10696 : "${CONFIG_STATUS=./config.status}"
10698 ac_clean_files_save
=$ac_clean_files
10699 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10701 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10703 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10705 # Generated by $as_me.
10706 # Run this file to recreate the current configuration.
10707 # Compiler output produced by configure, useful for debugging
10708 # configure, is in config.log if it exists.
10711 ac_cs_recheck=false
10714 SHELL=\${CONFIG_SHELL-$SHELL}
10717 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10718 ## -------------------- ##
10719 ## M4sh Initialization. ##
10720 ## -------------------- ##
10722 # Be more Bourne compatible
10723 DUALCASE
=1; export DUALCASE
# for MKS sh
10724 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10727 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10728 # is contrary to our usage. Disable this feature.
10729 alias -g '${1+"$@"}'='"$@"'
10730 setopt NO_GLOB_SUBST
10732 case `(set -o) 2>/dev/null` in #(
10744 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10745 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10746 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10747 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10748 # Prefer a ksh shell builtin over an external printf program on Solaris,
10749 # but without wasting forks for bash or zsh.
10750 if test -z "$BASH_VERSION$ZSH_VERSION" \
10751 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10752 as_echo='print
-r --'
10753 as_echo_n='print
-rn --'
10754 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10755 as_echo='printf %s
\n'
10756 as_echo_n='printf %s
'
10758 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10759 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10760 as_echo_n='/usr
/ucb
/echo -n'
10762 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10763 as_echo_n_body='eval
10767 expr "X$arg" : "X\\(.*\\)$as_nl";
10768 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10770 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10772 export as_echo_n_body
10773 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10775 export as_echo_body
10776 as_echo='sh
-c $as_echo_body as_echo
'
10779 # The user is always right.
10780 if test "${PATH_SEPARATOR+set}" != set; then
10782 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10783 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10790 # We need space, tab and new line, in precisely that order. Quoting is
10791 # there to prevent editors from complaining about space-tab.
10792 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10793 # splitting by setting IFS to empty value.)
10796 # Find who we are. Look in the path if we contain no directory separator.
10799 *[\\/]* ) as_myself=$0 ;;
10800 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in $PATH
10804 test -z "$as_dir" && as_dir=.
10805 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10811 # We did not find ourselves, most probably we were run as `sh COMMAND'
10812 # in which case we are not to be found in the path.
10813 if test "x$as_myself" = x
; then
10816 if test ! -f "$as_myself"; then
10817 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10821 # Unset variables that we do not need and which cause bugs (e.g. in
10822 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10823 # suppresses any "Segmentation fault" message there. '((' could
10824 # trigger a bug in pdksh 5.2.14.
10825 for as_var
in BASH_ENV ENV MAIL MAILPATH
10826 do eval test x\
${$as_var+set} = xset \
10827 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10840 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10843 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10844 # ----------------------------------------
10845 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10846 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10847 # script with STATUS, using 1 if that was 0.
10850 as_status
=$1; test $as_status -eq 0 && as_status
=1
10852 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10853 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10855 $as_echo "$as_me: error: $2" >&2
10856 as_fn_exit
$as_status
10860 # as_fn_set_status STATUS
10861 # -----------------------
10862 # Set $? to STATUS, without forking.
10863 as_fn_set_status
()
10866 } # as_fn_set_status
10868 # as_fn_exit STATUS
10869 # -----------------
10870 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10874 as_fn_set_status
$1
10880 # Portably unset VAR.
10883 { eval $1=; unset $1;}
10885 as_unset
=as_fn_unset
10886 # as_fn_append VAR VALUE
10887 # ----------------------
10888 # Append the text in VALUE to the end of the definition contained in VAR. Take
10889 # advantage of any shell optimizations that allow amortized linear growth over
10890 # repeated appends, instead of the typical quadratic growth present in naive
10892 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10893 eval 'as_fn_append ()
10904 # as_fn_arith ARG...
10905 # ------------------
10906 # Perform arithmetic evaluation on the ARGs, and store the result in the
10907 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10908 # must be portable across $(()) and expr.
10909 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10910 eval 'as_fn_arith ()
10917 as_val
=`expr "$@" || test $? -eq 1`
10922 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10923 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10929 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10930 as_basename
=basename
10935 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10941 as_me
=`$as_basename -- "$0" ||
10942 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10943 X"$0" : 'X\(//\)$' \| \
10944 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10946 sed '/^.*\/\([^/][^/]*\)\/*$/{
10960 # Avoid depending upon Character Ranges.
10961 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10962 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10963 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10964 as_cr_digits
='0123456789'
10965 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10967 ECHO_C
= ECHO_N
= ECHO_T
=
10968 case `echo -n x` in #(((((
10970 case `echo 'xy\c'` in
10971 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10973 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10980 rm -f conf$$ conf$$.exe conf$$.
file
10981 if test -d conf$$.dir
; then
10982 rm -f conf$$.dir
/conf$$.
file
10985 mkdir conf$$.dir
2>/dev
/null
10987 if (echo >conf$$.
file) 2>/dev
/null
; then
10988 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10990 # ... but there are two gotchas:
10991 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10992 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10993 # In both cases, we have to default to `cp -pR'.
10994 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10996 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11004 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11005 rmdir conf$$.dir
2>/dev
/null
11010 # Create "$as_dir" as a directory, including parents if necessary.
11015 -*) as_dir
=.
/$as_dir;;
11017 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11021 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11022 *) as_qdir
=$as_dir;;
11024 as_dirs
="'$as_qdir' $as_dirs"
11025 as_dir
=`$as_dirname -- "$as_dir" ||
11026 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11027 X"$as_dir" : 'X\(//\)[^/]' \| \
11028 X"$as_dir" : 'X\(//\)$' \| \
11029 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11030 $as_echo X"$as_dir" |
11031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11035 /^X\(\/\/\)[^/].*/{
11048 test -d "$as_dir" && break
11050 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11051 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11055 if mkdir
-p .
2>/dev
/null
; then
11056 as_mkdir_p
='mkdir -p "$as_dir"'
11058 test -d .
/-p && rmdir .
/-p
11063 # as_fn_executable_p FILE
11064 # -----------------------
11065 # Test if FILE is an executable regular file.
11066 as_fn_executable_p
()
11068 test -f "$1" && test -x "$1"
11069 } # as_fn_executable_p
11070 as_test_x
='test -x'
11071 as_executable_p
=as_fn_executable_p
11073 # Sed expression to map a string onto a valid CPP name.
11074 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11076 # Sed expression to map a string onto a valid variable name.
11077 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11081 ## ----------------------------------- ##
11082 ## Main body of $CONFIG_STATUS script. ##
11083 ## ----------------------------------- ##
11085 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11088 # Save the log message, to keep $0 and so on meaningful, and to
11089 # report actual input values of CONFIG_FILES etc. instead of their
11090 # values after options handling.
11092 This file was extended by MiniDLNA $as_me 1.1.3, which was
11093 generated by GNU Autoconf 2.69. Invocation command line was
11095 CONFIG_FILES = $CONFIG_FILES
11096 CONFIG_HEADERS = $CONFIG_HEADERS
11097 CONFIG_LINKS = $CONFIG_LINKS
11098 CONFIG_COMMANDS = $CONFIG_COMMANDS
11101 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11106 case $ac_config_files in *"
11107 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11110 case $ac_config_headers in *"
11111 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11116 # Files that config.status was made for.
11117 config_files="$ac_config_files"
11118 config_headers="$ac_config_headers"
11119 config_commands="$ac_config_commands"
11123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11125 \`$as_me' instantiates files and other configuration actions
11126 from templates according to the current configuration. Unless the files
11127 and actions are specified as TAGs, all are instantiated by default.
11129 Usage: $0 [OPTION]... [TAG]...
11131 -h, --help print this help, then exit
11132 -V, --version print version number and configuration settings, then exit
11133 --config print configuration, then exit
11134 -q, --quiet, --silent
11135 do not print progress messages
11136 -d, --debug don't remove temporary files
11137 --recheck update $as_me by reconfiguring in the same conditions
11138 --file=FILE[:TEMPLATE]
11139 instantiate the configuration file FILE
11140 --header=FILE[:TEMPLATE]
11141 instantiate the configuration header FILE
11143 Configuration files:
11146 Configuration headers:
11149 Configuration commands:
11152 Report bugs to the package provider."
11155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11156 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11158 MiniDLNA config.status 1.1.3
11159 configured by $0, generated by GNU Autoconf 2.69,
11160 with options \\"\$ac_cs_config\\"
11162 Copyright (C) 2012 Free Software Foundation, Inc.
11163 This config.status script is free software; the Free Software Foundation
11164 gives unlimited permission to copy, distribute and modify it."
11171 test -n "\$AWK" || AWK=awk
11174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11175 # The default lists apply if the user does not specify any file.
11181 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11182 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11186 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11198 # Handling of the options.
11199 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11201 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11202 $as_echo "$ac_cs_version"; exit ;;
11203 --config |
--confi |
--conf |
--con |
--co |
--c )
11204 $as_echo "$ac_cs_config"; exit ;;
11205 --debug |
--debu |
--deb |
--de |
--d |
-d )
11207 --file |
--fil |
--fi |
--f )
11210 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11211 '') as_fn_error $?
"missing file argument" ;;
11213 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11214 ac_need_defaults
=false
;;
11215 --header |
--heade |
--head |
--hea )
11218 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11220 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11221 ac_need_defaults
=false
;;
11223 # Conflict between --help and --header
11224 as_fn_error $?
"ambiguous option: \`$1'
11225 Try \`$0 --help' for more information.";;
11226 --help |
--hel |
-h )
11227 $as_echo "$ac_cs_usage"; exit ;;
11228 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11229 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11232 # This is an error.
11233 -*) as_fn_error $?
"unrecognized option: \`$1'
11234 Try \`$0 --help' for more information." ;;
11236 *) as_fn_append ac_config_targets
" $1"
11237 ac_need_defaults
=false
;;
11243 ac_configure_extra_args
=
11245 if $ac_cs_silent; then
11247 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11252 if \$ac_cs_recheck; then
11253 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11255 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11256 CONFIG_SHELL='$SHELL'
11257 export CONFIG_SHELL
11262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11266 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11267 ## Running $as_me. ##
11273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11277 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11278 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11279 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11280 # from automake < 1.5.
11281 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11282 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11283 LINGUAS="${LINGUAS-%UNSET%}"
11288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11290 # Handling of arguments.
11291 for ac_config_target
in $ac_config_targets
11293 case $ac_config_target in
11294 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
11295 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
11296 "po-directories") CONFIG_COMMANDS
="$CONFIG_COMMANDS po-directories" ;;
11297 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
11298 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11300 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11305 # If the user did not use the arguments to specify the items to instantiate,
11306 # then the envvar interface is used. Set only those that are not.
11307 # We use the long form for the default assignment because of an extremely
11308 # bizarre bug on SunOS 4.1.3.
11309 if $ac_need_defaults; then
11310 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11311 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11312 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11315 # Have a temporary directory for convenience. Make it in the build tree
11316 # simply because there is no reason against having it here, and in addition,
11317 # creating and moving files from /tmp can sometimes cause problems.
11318 # Hook for its removal unless debugging.
11319 # Note that there is a small window in which the directory will not be cleaned:
11320 # after its creation but before its name has been assigned to `$tmp'.
11324 trap 'exit_status=$?
11325 : "${ac_tmp:=$tmp}"
11326 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11328 trap 'as_fn_exit 1' 1 2 13 15
11330 # Create a (secure) tmp directory for tmp files.
11333 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11337 tmp
=.
/conf$$
-$RANDOM
11338 (umask 077 && mkdir
"$tmp")
11339 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11342 # Set up the scripts for CONFIG_FILES section.
11343 # No need to generate them if there are no CONFIG_FILES.
11344 # This happens for instance with `./config.status config.h'.
11345 if test -n "$CONFIG_FILES"; then
11348 ac_cr
=`echo X | tr X '\015'`
11349 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11350 # But we know of no other shell where ac_cr would be empty at this
11351 # point, so we can use a bashism as a fallback.
11352 if test "x$ac_cr" = x
; then
11353 eval ac_cr
=\$
\'\\r
\'
11355 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11356 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11359 ac_cs_awk_cr
=$ac_cr
11362 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11367 echo "cat >conf$$subs.awk <<_ACEOF" &&
11368 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11370 } >conf$$subs.sh ||
11371 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11372 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11374 for ac_last_try in false false false false false :; do
11375 . ./conf$$subs.sh ||
11376 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11378 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11379 if test $ac_delim_n = $ac_delim_num; then
11381 elif $ac_last_try; then
11382 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11384 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11387 rm -f conf$$subs.sh
11389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11390 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11394 s/^/S["/; s
/!.
*/"]=/
11404 s/\(.\{148\}\)..*/\1/
11406 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11411 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11418 s/\(.\{148\}\)..*/\1/
11420 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11424 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11429 ' <conf$$subs.awk | sed '
11434 ' >>$CONFIG_STATUS || ac_write_fail=1
11435 rm -f conf$$subs.awk
11436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11438 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11439 for (key in S) S_is_set[key] = 1
11445 nfields = split(line, field, "@
")
11447 len = length(field[1])
11448 for (i = 2; i < nfields; i++) {
11450 keylen = length(key)
11451 if (S_is_set[key]) {
11453 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11454 len += length(value) + length(field[++i])
11465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11466 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11467 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11470 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11471 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11474 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11475 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11476 # trailing colons and then remove the whole line if VPATH becomes empty
11477 # (actually we leave an empty line to preserve line numbers).
11478 if test "x
$srcdir" = x.; then
11479 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11498 fi # test -n "$CONFIG_FILES"
11500 # Set up the scripts for CONFIG_HEADERS section.
11501 # No need to generate them if there are no CONFIG_HEADERS.
11502 # This happens for instance with `./config.status Makefile'.
11503 if test -n "$CONFIG_HEADERS"; then
11504 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11508 # Transform confdefs.h into an awk script `defines.awk', embedded as
11509 # here-document in config.status, that substitutes the proper values into
11510 # config.h.in to produce config.h.
11512 # Create a delimiter string that does not exist in confdefs.h, to ease
11513 # handling of long lines.
11515 for ac_last_try in false false :; do
11516 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11517 if test -z "$ac_tt"; then
11519 elif $ac_last_try; then
11520 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11522 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11526 # For the awk script, D is an array of macro values keyed by name,
11527 # likewise P contains macro parameters if any. Preserve backslash
11528 # newline sequences.
11530 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11532 s/.\{148\}/&'"$ac_delim"'/g
11535 s/^[ ]*#[ ]*define[ ][ ]*/ /
11542 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11544 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11548 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11549 D["\
1"]=" \
3\\\\\\n
"\\/p
11551 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11556 s/.\{148\}/&'"$ac_delim"'/g
11561 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11564 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11566 ' <confdefs.h | sed '
11567 s/'"$ac_delim"'/"\\\
11568 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11571 for (key in D) D_is_set[key] = 1
11574 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11576 split(line, arg, " ")
11577 if (arg[1] == "#") {
11581 defundef
= substr
(arg
[1], 2)
11584 split(mac1
, mac2
, "(") #)
11586 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11587 if (D_is_set
[macro
]) {
11588 # Preserve the white space surrounding the "#".
11589 print prefix
"define", macro P
[macro
] D
[macro
]
11592 # Replace #undef with comments. This is necessary, for example,
11593 # in the case of _POSIX_SOURCE, which is predefined and required
11594 # on some systems where configure will not decide to define it.
11595 if (defundef
== "undef") {
11596 print
"/*", prefix defundef
, macro
, "*/"
11604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11605 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11606 fi # test -n "$CONFIG_HEADERS"
11609 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11614 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11616 case $ac_mode$ac_tag in
11618 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11619 :[FH
]-) ac_tag
=-:-;;
11620 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11637 -) ac_f
="$ac_tmp/stdin";;
11638 *) # Look for the file first in the build tree, then in the source tree
11639 # (if the path is not absolute). The absolute path cannot be DOS-style,
11640 # because $ac_f cannot contain `:'.
11644 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11646 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11648 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11649 as_fn_append ac_file_inputs
" '$ac_f'"
11652 # Let's still pretend it is `configure' which instantiates (i.e., don't
11653 # use $as_me), people would be surprised to read:
11654 # /* config.h. Generated by config.status. */
11655 configure_input
='Generated from '`
11656 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11658 if test x
"$ac_file" != x-
; then
11659 configure_input
="$ac_file. $configure_input"
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11661 $as_echo "$as_me: creating $ac_file" >&6;}
11663 # Neutralize special characters interpreted by sed in replacement strings.
11664 case $configure_input in #(
11665 *\
&* |
*\|
* |
*\\* )
11666 ac_sed_conf_input
=`$as_echo "$configure_input" |
11667 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11668 *) ac_sed_conf_input
=$configure_input;;
11672 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11673 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11678 ac_dir
=`$as_dirname -- "$ac_file" ||
11679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11680 X"$ac_file" : 'X\(//\)[^/]' \| \
11681 X"$ac_file" : 'X\(//\)$' \| \
11682 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11683 $as_echo X"$ac_file" |
11684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11688 /^X\(\/\/\)[^/].*/{
11701 as_dir
="$ac_dir"; as_fn_mkdir_p
11705 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11707 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11708 # A ".." for each directory in $ac_dir_suffix.
11709 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11710 case $ac_top_builddir_sub in
11711 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11712 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11715 ac_abs_top_builddir
=$ac_pwd
11716 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11717 # for backward compatibility:
11718 ac_top_builddir
=$ac_top_build_prefix
11721 .
) # We are building in place.
11723 ac_top_srcdir
=$ac_top_builddir_sub
11724 ac_abs_top_srcdir
=$ac_pwd ;;
11725 [\\/]* | ?
:[\\/]* ) # Absolute name.
11726 ac_srcdir
=$srcdir$ac_dir_suffix;
11727 ac_top_srcdir
=$srcdir
11728 ac_abs_top_srcdir
=$srcdir ;;
11729 *) # Relative name.
11730 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11731 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11732 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11734 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11744 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11745 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11747 ac_MKDIR_P
=$MKDIR_P
11749 [\\/$
]* | ?
:[\\/]* ) ;;
11750 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
11754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11755 # If the template does not know about datarootdir, expand it.
11756 # FIXME: This hack should be removed a few years after 2.60.
11757 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11768 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11769 *datarootdir
*) ac_datarootdir_seen
=yes;;
11770 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11772 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11775 ac_datarootdir_hack='
11776 s&@datadir@&$datadir&g
11777 s&@docdir@&$docdir&g
11778 s&@infodir@&$infodir&g
11779 s&@localedir@&$localedir&g
11780 s&@mandir@&$mandir&g
11781 s&\\\${datarootdir}&$datarootdir&g' ;;
11785 # Neutralize VPATH when `$srcdir' = `.'.
11786 # Shell code in configure.ac might set extrasub.
11787 # FIXME: do we really want to maintain this feature?
11788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11789 ac_sed_extra="$ac_vpsub
11792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11794 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11795 s|@configure_input@|
$ac_sed_conf_input|
;t t
11796 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11797 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11798 s
&@srcdir@
&$ac_srcdir&;t t
11799 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11800 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11801 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11802 s
&@builddir@
&$ac_builddir&;t t
11803 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11804 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11805 s
&@INSTALL@
&$ac_INSTALL&;t t
11806 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
11807 $ac_datarootdir_hack
11809 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11810 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11812 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11813 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11814 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11815 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11817 which seems to be undefined. Please make sure it is defined" >&5
11818 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11819 which seems to be undefined. Please make sure it is defined" >&2;}
11821 rm -f "$ac_tmp/stdin"
11823 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11824 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11826 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11832 if test x"$ac_file" != x-; then
11834 $as_echo "/* $configure_input */" \
11835 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11836 } >"$ac_tmp/config.h" \
11837 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11838 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11840 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11843 mv "$ac_tmp/config.h" "$ac_file" \
11844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11847 $as_echo "/* $configure_input */" \
11848 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11849 || as_fn_error $? "could not create -" "$LINENO" 5
11851 # Compute "$ac_file"'s index
in $config_headers.
11854 for _am_header
in $config_headers :; do
11855 case $_am_header in
11856 $_am_arg |
$_am_arg:* )
11859 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
11862 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11863 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11864 X"$_am_arg" : 'X\(//\)[^/]' \| \
11865 X"$_am_arg" : 'X\(//\)$' \| \
11866 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11867 $as_echo X"$_am_arg" |
11868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11872 /^X\(\/\/\)[^/].*/{
11884 s/.*/./; q'`/stamp-h
$_am_stamp_count
11887 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11888 $as_echo "$as_me: executing $ac_file commands" >&6;}
11893 case $ac_file$ac_mode in
11894 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
11895 # Older Autoconf quotes --file arguments for eval, but not when files
11896 # are listed without --file. Let's play safe and only enable the eval
11897 # if we detect the quoting.
11898 case $CONFIG_FILES in
11899 *\'*) eval set x
"$CONFIG_FILES" ;;
11900 *) set x
$CONFIG_FILES ;;
11905 # Strip MF so we end up with the name of the file.
11906 mf
=`echo "$mf" | sed -e 's/:.*$//'`
11907 # Check whether this is an Automake generated Makefile or not.
11908 # We used to match only the files named 'Makefile.in', but
11909 # some people rename them; so instead we look at the file content.
11910 # Grep'ing the first line is not enough: some people post-process
11911 # each Makefile.in and add a new line on top of each file to say so.
11912 # Grep'ing the whole file is not good either: AIX grep has a line
11913 # limit of 2048, but all sed's we know have understand at least 4000.
11914 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
11915 dirpart
=`$as_dirname -- "$mf" ||
11916 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11917 X"$mf" : 'X\(//\)[^/]' \| \
11918 X"$mf" : 'X\(//\)$' \| \
11919 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11925 /^X\(\/\/\)[^/].*/{
11941 # Extract the definition of DEPDIR, am__include, and am__quote
11942 # from the Makefile without running 'make'.
11943 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
11944 test -z "$DEPDIR" && continue
11945 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
11946 test -z "$am__include" && continue
11947 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
11948 # Find all dependency output files, they are included files with
11949 # $(DEPDIR) in their names. We invoke sed twice because it is the
11950 # simplest approach to changing $(DEPDIR) to its actual value in the
11952 for file in `sed -n "
11953 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11954 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
11955 # Make sure the directory exists.
11956 test -f "$dirpart/$file" && continue
11957 fdir
=`$as_dirname -- "$file" ||
11958 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11959 X"$file" : 'X\(//\)[^/]' \| \
11960 X"$file" : 'X\(//\)$' \| \
11961 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11962 $as_echo X"$file" |
11963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11967 /^X\(\/\/\)[^/].*/{
11980 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
11981 # echo "creating $dirpart/$file"
11982 echo '# dummy' > "$dirpart/$file"
11987 "po-directories":C
)
11988 for ac_file
in $CONFIG_FILES; do
11989 # Support "outfile[:infile[:infile...]]"
11991 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11993 # PO directories have a Makefile.in generated from Makefile.in.in.
11994 case "$ac_file" in */Makefile.
in)
11995 # Adjust a relative srcdir.
11996 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11997 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
11998 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11999 # In autoconf-2.13 it is called $ac_given_srcdir.
12000 # In autoconf-2.50 it is called $srcdir.
12001 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
12002 case "$ac_given_srcdir" in
12003 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
12004 /*) top_srcdir
="$ac_given_srcdir" ;;
12005 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
12007 # Treat a directory as a PO directory if and only if it has a
12008 # POTFILES.in file. This allows packages to have multiple PO
12009 # directories under different names or in different locations.
12010 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12011 rm -f "$ac_dir/POTFILES"
12012 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
12013 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12014 POMAKEFILEDEPS
="POTFILES.in"
12015 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12016 # on $ac_dir but don't depend on user-specified configuration
12018 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12019 # The LINGUAS file contains the set of available languages.
12020 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12021 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
12023 ALL_LINGUAS_
=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12024 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12025 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12026 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
12028 # The set of available languages was given in configure.in.
12029 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12030 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12033 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12034 # Compute UPDATEPOFILES
12035 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12036 # Compute DUMMYPOFILES
12037 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12039 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12040 case "$ac_given_srcdir" in
12042 *) srcdirpre
='$(srcdir)/' ;;
12048 for lang
in $ALL_LINGUAS; do
12049 POFILES
="$POFILES $srcdirpre$lang.po"
12050 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
12051 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
12052 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
12054 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12055 # environment variable.
12057 if test -n "$ALL_LINGUAS"; then
12058 for presentlang
in $ALL_LINGUAS; do
12060 if test "%UNSET%" != "$LINGUAS"; then
12061 desiredlanguages
="$LINGUAS"
12063 desiredlanguages
="$ALL_LINGUAS"
12065 for desiredlang
in $desiredlanguages; do
12066 # Use the presentlang catalog if desiredlang is
12067 # a. equal to presentlang, or
12068 # b. a variant of presentlang (because in this case,
12069 # presentlang can be used as a fallback for messages
12070 # which are not translated in the desiredlang catalog).
12071 case "$desiredlang" in
12072 "$presentlang"*) useit
=yes;;
12075 if test $useit = yes; then
12076 INST_LINGUAS
="$INST_LINGUAS $presentlang"
12081 if test -n "$INST_LINGUAS"; then
12082 for lang
in $INST_LINGUAS; do
12083 CATALOGS
="$CATALOGS $lang.gmo"
12086 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
12087 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"
12088 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
12089 if test -f "$f"; then
12091 *.orig |
*.bak |
*~
) ;;
12092 *) cat "$f" >> "$ac_dir/Makefile" ;;
12107 ac_clean_files
=$ac_clean_files_save
12109 test $ac_write_fail = 0 ||
12110 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
12113 # configure is writing to config.log, and then calls config.status.
12114 # config.status does its own redirection, appending to config.log.
12115 # Unfortunately, on DOS this fails, as config.log is still kept open
12116 # by configure, so config.status won't be able to write to it; its
12117 # output is simply discarded. So we exec the FD to /dev/null,
12118 # effectively closing config.log, so it can be properly (re)opened and
12119 # appended to by config.status. When coming back to configure, we
12120 # need to make the FD available again.
12121 if test "$no_create" != yes; then
12123 ac_config_status_args
=
12124 test "$silent" = yes &&
12125 ac_config_status_args
="$ac_config_status_args --quiet"
12127 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12129 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12130 # would make configure fail if this is the last instruction.
12131 $ac_cs_success || as_fn_exit
1
12133 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12135 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}