2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ptask 0.0.x.
5 # Report bugs to <jeanfi@gmail.com>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and jeanfi@gmail.com
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
582 PACKAGE_TARNAME='ptask'
583 PACKAGE_VERSION='0.0.x'
584 PACKAGE_STRING='ptask 0.0.x'
585 PACKAGE_BUGREPORT='jeanfi@gmail.com'
586 PACKAGE_URL='http://wpitchoune.net/ptask'
588 ac_unique_file="src/main.c"
590 ac_subst_vars='am__EXEEXT_FALSE
626 XGETTEXT_EXTRA_OPTIONS
634 GETTEXT_MACRO_VERSION
663 INSTALL_STRIP_PROGRAM
705 program_transform_name
718 enable_option_checking
719 enable_dependency_tracking
727 ac_precious_vars='build_alias
750 # Initialize some variables set by options.
752 ac_init_version=false
753 ac_unrecognized_opts=
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
764 program_transform_name=s,x,x,
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
810 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
815 # Accept the important Cygnus configure options, so we can diagnose typos.
817 case $ac_dashdash$ac_option in
821 -bindir | --bindir | --bindi | --bind | --bin | --bi)
823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826 -build | --build | --buil | --bui | --bu)
827 ac_prev=build_alias ;;
828 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829 build_alias=$ac_optarg ;;
831 -cache-file | --cache-file | --cache-fil | --cache-fi \
832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833 ac_prev=cache_file ;;
834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836 cache_file=$ac_optarg ;;
839 cache_file=config.cache ;;
841 -datadir | --datadir | --datadi | --datad)
843 -datadir=* | --datadir=* | --datadi=* | --datad=*)
844 datadir=$ac_optarg ;;
846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847 | --dataroo | --dataro | --datar)
848 ac_prev=datarootdir ;;
849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851 datarootdir=$ac_optarg ;;
853 -disable-* | --disable-*)
854 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857 as_fn_error $? "invalid feature name: $ac_useropt"
858 ac_useropt_orig=$ac_useropt
859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865 ac_unrecognized_sep=', ';;
867 eval enable_$ac_useropt=no ;;
869 -docdir | --docdir | --docdi | --doc | --do)
871 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
874 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
876 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
879 -enable-* | --enable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error $? "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
893 eval enable_$ac_useropt=\$ac_optarg ;;
895 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
896 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
897 | --exec | --exe | --ex)
898 ac_prev=exec_prefix ;;
899 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
900 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
901 | --exec=* | --exe=* | --ex=*)
902 exec_prefix=$ac_optarg ;;
904 -gas | --gas | --ga | --g)
905 # Obsolete; use --with-gas.
908 -help | --help | --hel | --he | -h)
910 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
911 ac_init_help=recursive ;;
912 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
913 ac_init_help=short ;;
915 -host | --host | --hos | --ho)
916 ac_prev=host_alias ;;
917 -host=* | --host=* | --hos=* | --ho=*)
918 host_alias=$ac_optarg ;;
920 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
922 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
924 htmldir=$ac_optarg ;;
926 -includedir | --includedir | --includedi | --included | --include \
927 | --includ | --inclu | --incl | --inc)
928 ac_prev=includedir ;;
929 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
930 | --includ=* | --inclu=* | --incl=* | --inc=*)
931 includedir=$ac_optarg ;;
933 -infodir | --infodir | --infodi | --infod | --info | --inf)
935 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
936 infodir=$ac_optarg ;;
938 -libdir | --libdir | --libdi | --libd)
940 -libdir=* | --libdir=* | --libdi=* | --libd=*)
943 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
944 | --libexe | --libex | --libe)
945 ac_prev=libexecdir ;;
946 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
947 | --libexe=* | --libex=* | --libe=*)
948 libexecdir=$ac_optarg ;;
950 -localedir | --localedir | --localedi | --localed | --locale)
952 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
953 localedir=$ac_optarg ;;
955 -localstatedir | --localstatedir | --localstatedi | --localstated \
956 | --localstate | --localstat | --localsta | --localst | --locals)
957 ac_prev=localstatedir ;;
958 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
959 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
960 localstatedir=$ac_optarg ;;
962 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
964 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
968 # Obsolete; use --without-fp.
971 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
972 | --no-cr | --no-c | -n)
975 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
976 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
980 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
981 | --oldin | --oldi | --old | --ol | --o)
982 ac_prev=oldincludedir ;;
983 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
984 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
985 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
986 oldincludedir=$ac_optarg ;;
988 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
990 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993 -program-prefix | --program-prefix | --program-prefi | --program-pref \
994 | --program-pre | --program-pr | --program-p)
995 ac_prev=program_prefix ;;
996 -program-prefix=* | --program-prefix=* | --program-prefi=* \
997 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
998 program_prefix=$ac_optarg ;;
1000 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1001 | --program-suf | --program-su | --program-s)
1002 ac_prev=program_suffix ;;
1003 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1004 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1005 program_suffix=$ac_optarg ;;
1007 -program-transform-name | --program-transform-name \
1008 | --program-transform-nam | --program-transform-na \
1009 | --program-transform-n | --program-transform- \
1010 | --program-transform | --program-transfor \
1011 | --program-transfo | --program-transf \
1012 | --program-trans | --program-tran \
1013 | --progr-tra | --program-tr | --program-t)
1014 ac_prev=program_transform_name ;;
1015 -program-transform-name=* | --program-transform-name=* \
1016 | --program-transform-nam=* | --program-transform-na=* \
1017 | --program-transform-n=* | --program-transform-=* \
1018 | --program-transform=* | --program-transfor=* \
1019 | --program-transfo=* | --program-transf=* \
1020 | --program-trans=* | --program-tran=* \
1021 | --progr-tra=* | --program-tr=* | --program-t=*)
1022 program_transform_name=$ac_optarg ;;
1024 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1026 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1027 pdfdir=$ac_optarg ;;
1029 -psdir | --psdir | --psdi | --psd | --ps)
1031 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035 | -silent | --silent | --silen | --sile | --sil)
1038 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1040 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1042 sbindir=$ac_optarg ;;
1044 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1045 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1046 | --sharedst | --shareds | --shared | --share | --shar \
1048 ac_prev=sharedstatedir ;;
1049 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1050 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1051 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1053 sharedstatedir=$ac_optarg ;;
1055 -site | --site | --sit)
1057 -site=* | --site=* | --sit=*)
1060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1063 srcdir=$ac_optarg ;;
1065 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1066 | --syscon | --sysco | --sysc | --sys | --sy)
1067 ac_prev=sysconfdir ;;
1068 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1069 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1070 sysconfdir=$ac_optarg ;;
1072 -target | --target | --targe | --targ | --tar | --ta | --t)
1073 ac_prev=target_alias ;;
1074 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1075 target_alias=$ac_optarg ;;
1077 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080 -version | --version | --versio | --versi | --vers | -V)
1081 ac_init_version=: ;;
1084 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error $? "invalid package name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1097 eval with_$ac_useropt=\$ac_optarg ;;
1099 -without-* | --without-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error $? "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1113 eval with_$ac_useropt=no ;;
1116 # Obsolete; use --with-x.
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1133 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1134 Try \`$0 --help' for more information"
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 case $ac_envvar in #(
1141 '' | [0-9]* | *[!_$as_cr_alnum]* )
1142 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1144 eval $ac_envvar=\$ac_optarg
1145 export $ac_envvar ;;
1148 # FIXME: should be removed in autoconf 3.0.
1149 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1158 if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 as_fn_error $? "missing argument to $ac_option"
1163 if test -n "$ac_unrecognized_opts"; then
1164 case $enable_option_checking in
1166 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1167 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1171 # Check all directory arguments for consistency.
1172 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir
1177 eval ac_val=\$$ac_var
1178 # Remove trailing slashes.
1181 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182 eval $ac_var=\$ac_val;;
1184 # Be sure to have absolute directory names.
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1192 # There might be people who depend on the old broken behavior: `$host'
1193 # used to hold the argument of --host etc.
1194 # FIXME: To remove some day.
1197 target=$target_alias
1199 # FIXME: To remove some day.
1200 if test "x$host_alias" != x; then
1201 if test "x$build_alias" = x; then
1202 cross_compiling=maybe
1203 elif test "x$build_alias" != "x$host_alias"; then
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211 test "$silent" = yes && exec 6>/dev/null
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217 as_fn_error $? "working directory cannot be determined"
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 as_fn_error $? "pwd does not report name of working directory"
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224 ac_srcdir_defaulted=yes
1225 # Try the directory containing this script, then the parent directory.
1226 ac_confdir=`$as_dirname -- "$as_myself" ||
1227 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228 X"$as_myself" : 'X\(//\)[^/]' \| \
1229 X"$as_myself" : 'X\(//\)$' \| \
1230 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1231 $as_echo X"$as_myself" |
1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1254 ac_srcdir_defaulted=no
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1260 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1264 # When building in place, set srcdir=.
1265 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 # Remove unnecessary trailing slashes from srcdir.
1269 # Double slashes in file names in object file debugging info
1270 # mess up M-x gdb in Emacs.
1272 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274 for ac_var in $ac_precious_vars; do
1275 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1276 eval ac_env_${ac_var}_value=\$${ac_var}
1277 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282 # Report the --help message.
1284 if test "$ac_init_help" = "long"; then
1285 # Omit some internal or obsolete options to make the list less imposing.
1286 # This message is too long to be a string in the A/UX 3.1 sh.
1288 \`configure' configures ptask 0.0.x to adapt to many kinds of systems.
1290 Usage: $0 [OPTION]... [VAR=VALUE]...
1292 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293 VAR=VALUE. See below for descriptions of some of the useful variables.
1295 Defaults for the options are specified in brackets.
1298 -h, --help display this help and exit
1299 --help=short display options specific to this package
1300 --help=recursive display the short help of all the included packages
1301 -V, --version display version information and exit
1302 -q, --quiet, --silent do not print \`checking ...' messages
1303 --cache-file=FILE cache test results in FILE [disabled]
1304 -C, --config-cache alias for \`--cache-file=config.cache'
1305 -n, --no-create do not create output files
1306 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1308 Installation directories:
1309 --prefix=PREFIX install architecture-independent files in PREFIX
1310 [$ac_default_prefix]
1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 By default, \`make install' will install all the files in
1315 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1316 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1317 for instance \`--prefix=\$HOME'.
1319 For better control, use the options below.
1321 Fine tuning of the installation directories:
1322 --bindir=DIR user executables [EPREFIX/bin]
1323 --sbindir=DIR system admin executables [EPREFIX/sbin]
1324 --libexecdir=DIR program executables [EPREFIX/libexec]
1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1328 --libdir=DIR object code libraries [EPREFIX/lib]
1329 --includedir=DIR C header files [PREFIX/include]
1330 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1333 --infodir=DIR info documentation [DATAROOTDIR/info]
1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1335 --mandir=DIR man documentation [DATAROOTDIR/man]
1336 --docdir=DIR documentation root [DATAROOTDIR/doc/ptask]
1337 --htmldir=DIR html documentation [DOCDIR]
1338 --dvidir=DIR dvi documentation [DOCDIR]
1339 --pdfdir=DIR pdf documentation [DOCDIR]
1340 --psdir=DIR ps documentation [DOCDIR]
1346 --program-prefix=PREFIX prepend PREFIX to installed program names
1347 --program-suffix=SUFFIX append SUFFIX to installed program names
1348 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1351 --x-includes=DIR X include files are in DIR
1352 --x-libraries=DIR X library files are in DIR
1355 --build=BUILD configure for building on BUILD [guessed]
1356 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1360 if test -n "$ac_init_help"; then
1361 case $ac_init_help in
1362 short | recursive ) echo "Configuration of ptask 0.0.x:";;
1367 --disable-option-checking ignore unrecognized --enable/--with options
1368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1370 --disable-dependency-tracking speeds up one-time build
1371 --enable-dependency-tracking do not reject slow dependency extractors
1372 --disable-nls do not use Native Language Support
1373 --disable-rpath do not hardcode runtime library paths
1376 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1377 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1378 --with-x use the X Window System
1379 --with-gnu-ld assume the C compiler uses GNU ld default=no
1380 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1381 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1382 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1383 --without-libintl-prefix don't search for libintl in includedir and libdir
1385 Some influential environment variables:
1386 CC C compiler command
1387 CFLAGS C compiler flags
1388 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1389 nonstandard directory <lib dir>
1390 LIBS libraries to pass to the linker, e.g. -l<library>
1391 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1392 you have headers in a nonstandard directory <include dir>
1393 XMKMF Path to xmkmf, Makefile generator for X Window System
1395 PKG_CONFIG path to pkg-config utility
1397 directories to add to pkg-config's search path
1399 path overriding pkg-config's built-in search path
1400 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1401 X11_LIBS linker flags for X11, overriding pkg-config
1402 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1403 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1404 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1405 GTK_LIBS linker flags for GTK, overriding pkg-config
1406 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1407 JSON_LIBS linker flags for JSON, overriding pkg-config
1409 Use these variables to override the choices made by `configure' or to help
1410 it to find libraries and programs with nonstandard names/locations.
1412 Report bugs to <jeanfi@gmail.com>.
1413 ptask home page: <http://wpitchoune.net/ptask>.
1418 if test "$ac_init_help" = "recursive"; then
1419 # If there are subdirs, report their specific --help.
1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1421 test -d "$ac_dir" ||
1422 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 ac_abs_top_builddir=$ac_pwd
1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439 # for backward compatibility:
1440 ac_top_builddir=$ac_top_build_prefix
1443 .) # We are building in place.
1445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
1448 ac_srcdir=$srcdir$ac_dir_suffix;
1449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for guested configure.
1460 if test -f "$ac_srcdir/configure.gnu"; then
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463 elif test -f "$ac_srcdir/configure"; then
1465 $SHELL "$ac_srcdir/configure" --help=recursive
1467 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469 cd "$ac_pwd" || { ac_status=$?; break; }
1473 test -n "$ac_init_help" && exit $ac_status
1474 if $ac_init_version; then
1476 ptask configure 0.0.x
1477 generated by GNU Autoconf 2.69
1479 Copyright (C) 2012 Free Software Foundation, Inc.
1480 This configure script is free software; the Free Software Foundation
1481 gives unlimited permission to copy, distribute and modify it.
1486 ## ------------------------ ##
1487 ## Autoconf initialization. ##
1488 ## ------------------------ ##
1490 # ac_fn_c_try_compile LINENO
1491 # --------------------------
1492 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1493 ac_fn_c_try_compile ()
1495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1496 rm -f conftest.$ac_objext
1497 if { { ac_try="$ac_compile"
1499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500 *) ac_try_echo=$ac_try;;
1502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503 $as_echo "$ac_try_echo"; } >&5
1504 (eval "$ac_compile") 2>conftest.err
1506 if test -s conftest.err; then
1507 grep -v '^ *+' conftest.err >conftest.er1
1508 cat conftest.er1 >&5
1509 mv -f conftest.er1 conftest.err
1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512 test $ac_status = 0; } && {
1513 test -z "$ac_c_werror_flag" ||
1514 test ! -s conftest.err
1515 } && test -s conftest.$ac_objext; then :
1518 $as_echo "$as_me: failed program was:" >&5
1519 sed 's/^/| /' conftest.$ac_ext >&5
1523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1524 as_fn_set_status $ac_retval
1526 } # ac_fn_c_try_compile
1528 # ac_fn_c_try_cpp LINENO
1529 # ----------------------
1530 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 if { { ac_try="$ac_cpp conftest.$ac_ext"
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } > conftest.i && {
1550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 as_fn_set_status $ac_retval
1565 # ac_fn_c_try_link LINENO
1566 # -----------------------
1567 # Try to link conftest.$ac_ext, and return whether this succeeded.
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 rm -f conftest.$ac_objext conftest$ac_exeext
1572 if { { ac_try="$ac_link"
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_link") 2>conftest.err
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && {
1588 test -z "$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 } && test -s conftest$ac_exeext && {
1591 test "$cross_compiling" = yes ||
1592 test -x conftest$ac_exeext
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1601 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1602 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1603 # interfere with the next link command; also delete a directory that is
1604 # left behind by Apple's compiler. We do this before executing the actions.
1605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1609 } # ac_fn_c_try_link
1611 # ac_fn_c_try_run LINENO
1612 # ----------------------
1613 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1614 # that executables *can* be run.
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 if { { ac_try="$ac_link"
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_link") 2>&5
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1629 { { case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_try") 2>&5
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; }; }; then :
1641 $as_echo "$as_me: program exited with status $ac_status" >&5
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1645 ac_retval=$ac_status
1647 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1652 cat >config.log <<_ACEOF
1653 This file contains any messages produced by compilers while
1654 running configure, to aid debugging if configure makes a mistake.
1656 It was created by ptask $as_me 0.0.x, which was
1657 generated by GNU Autoconf 2.69. Invocation command line was
1669 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1670 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1671 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1672 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1673 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1675 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1676 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1678 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1679 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1680 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1681 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1682 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1683 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1684 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 test -z "$as_dir" && as_dir=.
1693 $as_echo "PATH: $as_dir"
1709 # Keep a trace of the command line.
1710 # Strip out --no-create and --no-recursion so they do not pile up.
1711 # Strip out --silent because we don't want to record it for future runs.
1712 # Also quote any args containing shell meta-characters.
1713 # Make two passes to allow for proper duplicate-argument suppression.
1717 ac_must_keep_next=false
1723 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1724 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1725 | -silent | --silent | --silen | --sile | --sil)
1728 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1731 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1733 as_fn_append ac_configure_args1 " '$ac_arg'"
1734 if test $ac_must_keep_next = true; then
1735 ac_must_keep_next=false # Got value, back to normal.
1738 *=* | --config-cache | -C | -disable-* | --disable-* \
1739 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1740 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1741 | -with-* | --with-* | -without-* | --without-* | --x)
1742 case "$ac_configure_args0 " in
1743 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1746 -* ) ac_must_keep_next=true ;;
1749 as_fn_append ac_configure_args " '$ac_arg'"
1754 { ac_configure_args0=; unset ac_configure_args0;}
1755 { ac_configure_args1=; unset ac_configure_args1;}
1757 # When interrupted or exit'd, cleanup temporary files, and complete
1758 # config.log. We remove comments because anyway the quotes in there
1759 # would cause problems or look ugly.
1760 # WARNING: Use '\'' to represent an apostrophe within the trap.
1761 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1762 trap 'exit_status=$?
1763 # Save into config.log some information that might help in debugging.
1767 $as_echo "## ---------------- ##
1768 ## Cache variables. ##
1769 ## ---------------- ##"
1771 # The following way of writing the cache mishandles newlines in values,
1773 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1774 eval ac_val=\$$ac_var
1778 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1779 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1782 _ | IFS | as_nl) ;; #(
1783 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1784 *) { eval $ac_var=; unset $ac_var;} ;;
1789 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1790 *${as_nl}ac_space=\ *)
1792 "s/'\''/'\''\\\\'\'''\''/g;
1793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1796 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1803 $as_echo "## ----------------- ##
1804 ## Output variables. ##
1805 ## ----------------- ##"
1807 for ac_var in $ac_subst_vars
1809 eval ac_val=\$$ac_var
1811 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813 $as_echo "$ac_var='\''$ac_val'\''"
1817 if test -n "$ac_subst_files"; then
1818 $as_echo "## ------------------- ##
1819 ## File substitutions. ##
1820 ## ------------------- ##"
1822 for ac_var in $ac_subst_files
1824 eval ac_val=\$$ac_var
1826 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828 $as_echo "$ac_var='\''$ac_val'\''"
1833 if test -s confdefs.h; then
1834 $as_echo "## ----------- ##
1841 test "$ac_signal" != 0 &&
1842 $as_echo "$as_me: caught signal $ac_signal"
1843 $as_echo "$as_me: exit $exit_status"
1845 rm -f core *.core core.conftest.* &&
1846 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1849 for ac_signal in 1 2 13 15; do
1850 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1854 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1855 rm -f -r conftest* confdefs.h
1857 $as_echo "/* confdefs.h */" > confdefs.h
1859 # Predefined preprocessor variables.
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_NAME "$PACKAGE_NAME"
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_STRING "$PACKAGE_STRING"
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_URL "$PACKAGE_URL"
1886 # Let the site file select an alternate cache file if it wants to.
1887 # Prefer an explicitly selected file to automatically selected ones.
1890 if test -n "$CONFIG_SITE"; then
1891 # We do not want a PATH search for config.site.
1892 case $CONFIG_SITE in #((
1893 -*) ac_site_file1=./$CONFIG_SITE;;
1894 */*) ac_site_file1=$CONFIG_SITE;;
1895 *) ac_site_file1=./$CONFIG_SITE;;
1897 elif test "x$prefix" != xNONE; then
1898 ac_site_file1=$prefix/share/config.site
1899 ac_site_file2=$prefix/etc/config.site
1901 ac_site_file1=$ac_default_prefix/share/config.site
1902 ac_site_file2=$ac_default_prefix/etc/config.site
1904 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1906 test "x$ac_site_file" = xNONE && continue
1907 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1909 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1910 sed 's/^/| /' "$ac_site_file" >&5
1912 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1914 as_fn_error $? "failed to load site script $ac_site_file
1915 See \`config.log' for more details" "$LINENO" 5; }
1919 if test -r "$cache_file"; then
1920 # Some versions of bash will fail to source /dev/null (special files
1921 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1922 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1924 $as_echo "$as_me: loading cache $cache_file" >&6;}
1926 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1927 *) . "./$cache_file";;
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1932 $as_echo "$as_me: creating cache $cache_file" >&6;}
1936 gt_needs="$gt_needs "
1937 # Check that the precious variables saved in the cache have kept the same
1939 ac_cache_corrupted=false
1940 for ac_var in $ac_precious_vars; do
1941 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1942 eval ac_new_set=\$ac_env_${ac_var}_set
1943 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1944 eval ac_new_val=\$ac_env_${ac_var}_value
1945 case $ac_old_set,$ac_new_set in
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1948 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1949 ac_cache_corrupted=: ;;
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1952 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1953 ac_cache_corrupted=: ;;
1956 if test "x$ac_old_val" != "x$ac_new_val"; then
1957 # differences in whitespace do not lead to failure.
1958 ac_old_val_w=`echo x $ac_old_val`
1959 ac_new_val_w=`echo x $ac_new_val`
1960 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1962 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1963 ac_cache_corrupted=:
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1966 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1967 eval $ac_var=\$ac_old_val
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1970 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1972 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1975 # Pass precious variables to config.status.
1976 if test "$ac_new_set" = set; then
1978 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1979 *) ac_arg=$ac_var=$ac_new_val ;;
1981 case " $ac_configure_args " in
1982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1983 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1987 if $ac_cache_corrupted; then
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1991 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1992 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1994 ## -------------------- ##
1995 ## Main body of script. ##
1996 ## -------------------- ##
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2006 am__api_version='1.11'
2009 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2010 if test -f "$ac_dir/install-sh"; then
2012 ac_install_sh="$ac_aux_dir/install-sh -c"
2014 elif test -f "$ac_dir/install.sh"; then
2016 ac_install_sh="$ac_aux_dir/install.sh -c"
2018 elif test -f "$ac_dir/shtool"; then
2020 ac_install_sh="$ac_aux_dir/shtool install -c"
2024 if test -z "$ac_aux_dir"; then
2025 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2028 # These three variables are undocumented and unsupported,
2029 # and are intended to be withdrawn in a future Autoconf release.
2030 # They can cause serious problems if a builder's source tree is in a directory
2031 # whose full name contains unusual characters.
2032 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2033 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2034 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2037 # Find a good install program. We prefer a C program (faster),
2038 # so one script is as good as another. But avoid the broken or
2039 # incompatible versions:
2040 # SysV /etc/install, /usr/sbin/install
2041 # SunOS /usr/etc/install
2042 # IRIX /sbin/install
2044 # AmigaOS /C/install, which installs bootblocks on floppy discs
2045 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2046 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2047 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2048 # OS/2's system install, which has a completely different semantic
2049 # ./install, which can be erroneously created by make from ./install.sh.
2050 # Reject install programs that cannot install multiple files.
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2052 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2053 if test -z "$INSTALL"; then
2054 if ${ac_cv_path_install+:} false; then :
2055 $as_echo_n "(cached) " >&6
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 test -z "$as_dir" && as_dir=.
2062 # Account for people who put trailing slashes in PATH elements.
2063 case $as_dir/ in #((
2064 ./ | .// | /[cC]/* | \
2065 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2066 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2069 # OSF1 and SCO ODT 3.0 have their own names for install.
2070 # Don't use installbsd from OSF since it installs stuff as root
2072 for ac_prog in ginstall scoinst install; do
2073 for ac_exec_ext in '' $ac_executable_extensions; do
2074 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2075 if test $ac_prog = install &&
2076 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2077 # AIX install. It has an incompatible calling convention.
2079 elif test $ac_prog = install &&
2080 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2081 # program-specific install script used by HP pwplus--don't use.
2084 rm -rf conftest.one conftest.two conftest.dir
2085 echo one > conftest.one
2086 echo two > conftest.two
2088 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2089 test -s conftest.one && test -s conftest.two &&
2090 test -s conftest.dir/conftest.one &&
2091 test -s conftest.dir/conftest.two
2093 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2106 rm -rf conftest.one conftest.two conftest.dir
2109 if test "${ac_cv_path_install+set}" = set; then
2110 INSTALL=$ac_cv_path_install
2112 # As a last resort, use the slow shell script. Don't cache a
2113 # value for INSTALL within a source directory, because that will
2114 # break other packages using the cache if that directory is
2115 # removed, or if the value is a relative name.
2116 INSTALL=$ac_install_sh
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2120 $as_echo "$INSTALL" >&6; }
2122 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2123 # It thinks the first close brace ends the variable substitution.
2124 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2126 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2128 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2131 $as_echo_n "checking whether build environment is sane... " >&6; }
2134 echo timestamp > conftest.file
2135 # Reject unsafe characters in $srcdir or the absolute working directory
2136 # name. Accept space and tab only in the latter.
2140 *[\\\"\#\$\&\'\`$am_lf]*)
2141 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2144 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2145 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2148 # Do `set' in a subshell so we don't clobber the current shell's
2149 # arguments. Must try -L first in case configure is actually a
2150 # symlink; some systems play weird games with the mod time of symlinks
2151 # (eg FreeBSD returns the mod time of the symlink's containing
2154 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2155 if test "$*" = "X"; then
2157 set X `ls -t "$srcdir/configure" conftest.file`
2160 if test "$*" != "X $srcdir/configure conftest.file" \
2161 && test "$*" != "X conftest.file $srcdir/configure"; then
2163 # If neither matched, then we have a broken ls. This can happen
2164 # if, for instance, CONFIG_SHELL is bash and it inherits a
2165 # broken ls alias from the environment. This has actually
2166 # happened. Such a system could not be considered "sane".
2167 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2168 alias in your environment" "$LINENO" 5
2171 test "$2" = conftest.file
2177 as_fn_error $? "newly created file is older than distributed files!
2178 Check your system clock" "$LINENO" 5
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2181 $as_echo "yes" >&6; }
2182 test "$program_prefix" != NONE &&
2183 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2184 # Use a double $ so make ignores it.
2185 test "$program_suffix" != NONE &&
2186 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2187 # Double any \ or $.
2188 # By default was `s,x,x', remove it if useless.
2189 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2190 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2192 # expand $ac_aux_dir to an absolute path
2193 am_aux_dir=`cd $ac_aux_dir && pwd`
2195 if test x"${MISSING+set}" != xset; then
2198 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2200 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2203 # Use eval to expand $SHELL
2204 if eval "$MISSING --run true"; then
2205 am_missing_run="$MISSING --run "
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2209 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2212 if test x"${install_sh}" != xset; then
2215 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2217 install_sh="\${SHELL} $am_aux_dir/install-sh"
2221 # Installed binaries are usually stripped using `strip' when the user
2222 # run `make install-strip'. However `strip' might not be the right
2223 # tool to use in cross-compilation environments, therefore Automake
2224 # will honor the `STRIP' environment variable to overrule this program.
2225 if test "$cross_compiling" != no; then
2226 if test -n "$ac_tool_prefix"; then
2227 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2228 set dummy ${ac_tool_prefix}strip; ac_word=$2
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2230 $as_echo_n "checking for $ac_word... " >&6; }
2231 if ${ac_cv_prog_STRIP+:} false; then :
2232 $as_echo_n "(cached) " >&6
2234 if test -n "$STRIP"; then
2235 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 STRIP=$ac_cv_prog_STRIP
2255 if test -n "$STRIP"; then
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2257 $as_echo "$STRIP" >&6; }
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2260 $as_echo "no" >&6; }
2265 if test -z "$ac_cv_prog_STRIP"; then
2267 # Extract the first word of "strip", so it can be a program name with args.
2268 set dummy strip; ac_word=$2
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2270 $as_echo_n "checking for $ac_word... " >&6; }
2271 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2272 $as_echo_n "(cached) " >&6
2274 if test -n "$ac_ct_STRIP"; then
2275 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284 ac_cv_prog_ac_ct_STRIP="strip"
2285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2295 if test -n "$ac_ct_STRIP"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2297 $as_echo "$ac_ct_STRIP" >&6; }
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2300 $as_echo "no" >&6; }
2303 if test "x$ac_ct_STRIP" = x; then
2306 case $cross_compiling:$ac_tool_warned in
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2310 ac_tool_warned=yes ;;
2315 STRIP="$ac_cv_prog_STRIP"
2319 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2322 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2323 if test -z "$MKDIR_P"; then
2324 if ${ac_cv_path_mkdir+:} false; then :
2325 $as_echo_n "(cached) " >&6
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2331 test -z "$as_dir" && as_dir=.
2332 for ac_prog in mkdir gmkdir; do
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2335 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2336 'mkdir (GNU coreutils) '* | \
2337 'mkdir (coreutils) '* | \
2338 'mkdir (fileutils) '4.1*)
2339 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2349 test -d ./--version && rmdir ./--version
2350 if test "${ac_cv_path_mkdir+set}" = set; then
2351 MKDIR_P="$ac_cv_path_mkdir -p"
2353 # As a last resort, use the slow shell script. Don't cache a
2354 # value for MKDIR_P within a source directory, because that will
2355 # break other packages using the cache if that directory is
2356 # removed, or if the value is a relative name.
2357 MKDIR_P="$ac_install_sh -d"
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2361 $as_echo "$MKDIR_P" >&6; }
2365 [\\/$]* | ?:[\\/]*) ;;
2366 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2369 for ac_prog in gawk mawk nawk awk
2371 # Extract the first word of "$ac_prog", so it can be a program name with args.
2372 set dummy $ac_prog; ac_word=$2
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2374 $as_echo_n "checking for $ac_word... " >&6; }
2375 if ${ac_cv_prog_AWK+:} false; then :
2376 $as_echo_n "(cached) " >&6
2378 if test -n "$AWK"; then
2379 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2388 ac_cv_prog_AWK="$ac_prog"
2389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2399 if test -n "$AWK"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2401 $as_echo "$AWK" >&6; }
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2404 $as_echo "no" >&6; }
2408 test -n "$AWK" && break
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2412 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2414 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2415 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2416 $as_echo_n "(cached) " >&6
2418 cat >conftest.make <<\_ACEOF
2421 @echo '@@@%%%=$(MAKE)=@@@%%%'
2423 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2424 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2426 eval ac_cv_prog_make_${ac_make}_set=yes;;
2428 eval ac_cv_prog_make_${ac_make}_set=no;;
2432 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2434 $as_echo "yes" >&6; }
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2438 $as_echo "no" >&6; }
2439 SET_MAKE="MAKE=${MAKE-make}"
2442 rm -rf .tst 2>/dev/null
2443 mkdir .tst 2>/dev/null
2444 if test -d .tst; then
2449 rmdir .tst 2>/dev/null
2451 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2452 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2453 # is not polluted with repeated "-I."
2454 am__isrc=' -I$(srcdir)'
2455 # test to see if srcdir already configured
2456 if test -f $srcdir/config.status; then
2457 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2461 # test whether we have cygpath
2462 if test -z "$CYGPATH_W"; then
2463 if (cygpath --version) >/dev/null 2>/dev/null; then
2464 CYGPATH_W='cygpath -w'
2471 # Define the identity of the package.
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE "$PACKAGE"
2481 cat >>confdefs.h <<_ACEOF
2482 #define VERSION "$VERSION"
2485 # Some tools Automake needs.
2487 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2490 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2493 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2496 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2499 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2501 # We need awk for the "check" target. The system "awk" is bad on
2503 # Always define AMTAR for backward compatibility. Yes, it's still used
2504 # in the wild :-( We should find a proper way to deprecate it ...
2507 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2515 ac_config_headers="$ac_config_headers config.h"
2518 # Checks for programs.
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524 if test -n "$ac_tool_prefix"; then
2525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528 $as_echo_n "checking for $ac_word... " >&6; }
2529 if ${ac_cv_prog_CC+:} false; then :
2530 $as_echo_n "(cached) " >&6
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 if test -n "$CC"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2555 $as_echo "$CC" >&6; }
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558 $as_echo "no" >&6; }
2563 if test -z "$ac_cv_prog_CC"; then
2565 # Extract the first word of "gcc", so it can be a program name with args.
2566 set dummy gcc; ac_word=$2
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2570 $as_echo_n "(cached) " >&6
2572 if test -n "$ac_ct_CC"; then
2573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582 ac_cv_prog_ac_ct_CC="gcc"
2583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2593 if test -n "$ac_ct_CC"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2595 $as_echo "$ac_ct_CC" >&6; }
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598 $as_echo "no" >&6; }
2601 if test "x$ac_ct_CC" = x; then
2604 case $cross_compiling:$ac_tool_warned in
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2608 ac_tool_warned=yes ;;
2616 if test -z "$CC"; then
2617 if test -n "$ac_tool_prefix"; then
2618 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2619 set dummy ${ac_tool_prefix}cc; ac_word=$2
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621 $as_echo_n "checking for $ac_word... " >&6; }
2622 if ${ac_cv_prog_CC+:} false; then :
2623 $as_echo_n "(cached) " >&6
2625 if test -n "$CC"; then
2626 ac_cv_prog_CC="$CC" # Let the user override the test.
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635 ac_cv_prog_CC="${ac_tool_prefix}cc"
2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 if test -n "$CC"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2648 $as_echo "$CC" >&6; }
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651 $as_echo "no" >&6; }
2657 if test -z "$CC"; then
2658 # Extract the first word of "cc", so it can be a program name with args.
2659 set dummy cc; ac_word=$2
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661 $as_echo_n "checking for $ac_word... " >&6; }
2662 if ${ac_cv_prog_CC+:} false; then :
2663 $as_echo_n "(cached) " >&6
2665 if test -n "$CC"; then
2666 ac_cv_prog_CC="$CC" # Let the user override the test.
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2677 ac_prog_rejected=yes
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 if test $ac_prog_rejected = yes; then
2689 # We found a bogon in the path, so make sure we never use it.
2690 set dummy $ac_cv_prog_CC
2692 if test $# != 0; then
2693 # We chose a different compiler from the bogus one.
2694 # However, it has the same basename, so the bogon will be chosen
2695 # first if we set CC to just the basename; use the full file name.
2697 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2703 if test -n "$CC"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2705 $as_echo "$CC" >&6; }
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2713 if test -z "$CC"; then
2714 if test -n "$ac_tool_prefix"; then
2715 for ac_prog in cl.exe
2717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if ${ac_cv_prog_CC+:} false; then :
2722 $as_echo_n "(cached) " >&6
2724 if test -n "$CC"; then
2725 ac_cv_prog_CC="$CC" # Let the user override the test.
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 if test -n "$CC"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2747 $as_echo "$CC" >&6; }
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2754 test -n "$CC" && break
2757 if test -z "$CC"; then
2759 for ac_prog in cl.exe
2761 # Extract the first word of "$ac_prog", so it can be a program name with args.
2762 set dummy $ac_prog; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2766 $as_echo_n "(cached) " >&6
2768 if test -n "$ac_ct_CC"; then
2769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_ac_ct_CC="$ac_prog"
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2791 $as_echo "$ac_ct_CC" >&6; }
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2798 test -n "$ac_ct_CC" && break
2801 if test "x$ac_ct_CC" = x; then
2804 case $cross_compiling:$ac_tool_warned in
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2808 ac_tool_warned=yes ;;
2817 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819 as_fn_error $? "no acceptable C compiler found in \$PATH
2820 See \`config.log' for more details" "$LINENO" 5; }
2822 # Provide some information about the compiler.
2823 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2826 for ac_option in --version -v -V -qversion; do
2827 { { ac_try="$ac_compiler $ac_option >&5"
2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830 *) ac_try_echo=$ac_try;;
2832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2833 $as_echo "$ac_try_echo"; } >&5
2834 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2836 if test -s conftest.err; then
2838 ... rest of stderr output deleted ...
2839 10q' conftest.err >conftest.er1
2840 cat conftest.er1 >&5
2842 rm -f conftest.er1 conftest.err
2843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2844 test $ac_status = 0; }
2847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848 /* end confdefs.h. */
2858 ac_clean_files_save=$ac_clean_files
2859 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2860 # Try to create an executable without -o first, disregard a.out.
2861 # It will help us diagnose broken compilers, and finding out an intuition
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2864 $as_echo_n "checking whether the C compiler works... " >&6; }
2865 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2867 # The possible output files:
2868 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2871 for ac_file in $ac_files
2874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2875 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2880 if { { ac_try="$ac_link_default"
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2886 $as_echo "$ac_try_echo"; } >&5
2887 (eval "$ac_link_default") 2>&5
2889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2890 test $ac_status = 0; }; then :
2891 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2892 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2893 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2894 # so that the user can short-circuit this test for compilers unknown to
2896 for ac_file in $ac_files ''
2898 test -f "$ac_file" || continue
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2903 # We found the default executable, but exeext='' is most
2907 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2909 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2911 # We set ac_cv_exeext here because the later test for it is not
2912 # safe: cross compilers may not add the suffix if given an `-o'
2913 # argument, so we may need to know it at that point already.
2914 # Even if this section looks crufty: it has the advantage of
2921 test "$ac_cv_exeext" = no && ac_cv_exeext=
2926 if test -z "$ac_file"; then :
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 $as_echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934 as_fn_error 77 "C compiler cannot create executables
2935 See \`config.log' for more details" "$LINENO" 5; }
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2938 $as_echo "yes" >&6; }
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2941 $as_echo_n "checking for C compiler default output file name... " >&6; }
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2943 $as_echo "$ac_file" >&6; }
2944 ac_exeext=$ac_cv_exeext
2946 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2947 ac_clean_files=$ac_clean_files_save
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2949 $as_echo_n "checking for suffix of executables... " >&6; }
2950 if { { ac_try="$ac_link"
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2956 $as_echo "$ac_try_echo"; } >&5
2957 (eval "$ac_link") 2>&5
2959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2960 test $ac_status = 0; }; then :
2961 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2962 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2963 # work properly (i.e., refer to `conftest.exe'), while it won't with
2965 for ac_file in conftest.exe conftest conftest.*; do
2966 test -f "$ac_file" || continue
2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2969 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2978 See \`config.log' for more details" "$LINENO" 5; }
2980 rm -f conftest conftest$ac_cv_exeext
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2982 $as_echo "$ac_cv_exeext" >&6; }
2984 rm -f conftest.$ac_ext
2985 EXEEXT=$ac_cv_exeext
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h. */
2993 FILE *f = fopen ("conftest.out", "w");
2994 return ferror (f) || fclose (f) != 0;
3000 ac_clean_files="$ac_clean_files conftest.out"
3001 # Check that the compiler produces executables we can run. If not, either
3002 # the compiler is broken, or we cross compile.
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3004 $as_echo_n "checking whether we are cross compiling... " >&6; }
3005 if test "$cross_compiling" != yes; then
3006 { { ac_try="$ac_link"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012 $as_echo "$ac_try_echo"; } >&5
3013 (eval "$ac_link") 2>&5
3015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016 test $ac_status = 0; }
3017 if { ac_try='./conftest$ac_cv_exeext'
3018 { { case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_try") 2>&5
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 test $ac_status = 0; }; }; then
3030 if test "$cross_compiling" = maybe; then
3033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035 as_fn_error $? "cannot run C compiled programs.
3036 If you meant to cross compile, use \`--host'.
3037 See \`config.log' for more details" "$LINENO" 5; }
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3042 $as_echo "$cross_compiling" >&6; }
3044 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3045 ac_clean_files=$ac_clean_files_save
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3047 $as_echo_n "checking for suffix of object files... " >&6; }
3048 if ${ac_cv_objext+:} false; then :
3049 $as_echo_n "(cached) " >&6
3051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3052 /* end confdefs.h. */
3062 rm -f conftest.o conftest.obj
3063 if { { ac_try="$ac_compile"
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069 $as_echo "$ac_try_echo"; } >&5
3070 (eval "$ac_compile") 2>&5
3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073 test $ac_status = 0; }; then :
3074 for ac_file in conftest.o conftest.obj conftest.*; do
3075 test -f "$ac_file" || continue;
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3078 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3083 $as_echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088 as_fn_error $? "cannot compute suffix of object files: cannot compile
3089 See \`config.log' for more details" "$LINENO" 5; }
3091 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3094 $as_echo "$ac_cv_objext" >&6; }
3095 OBJEXT=$ac_cv_objext
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3098 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3099 if ${ac_cv_c_compiler_gnu+:} false; then :
3100 $as_echo_n "(cached) " >&6
3102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103 /* end confdefs.h. */
3116 if ac_fn_c_try_compile "$LINENO"; then :
3121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3126 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3127 if test $ac_compiler_gnu = yes; then
3132 ac_test_CFLAGS=${CFLAGS+set}
3133 ac_save_CFLAGS=$CFLAGS
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3135 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3136 if ${ac_cv_prog_cc_g+:} false; then :
3137 $as_echo_n "(cached) " >&6
3139 ac_save_c_werror_flag=$ac_c_werror_flag
3140 ac_c_werror_flag=yes
3143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3144 /* end confdefs.h. */
3154 if ac_fn_c_try_compile "$LINENO"; then :
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3169 if ac_fn_c_try_compile "$LINENO"; then :
3172 ac_c_werror_flag=$ac_save_c_werror_flag
3174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h. */
3185 if ac_fn_c_try_compile "$LINENO"; then :
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 ac_c_werror_flag=$ac_save_c_werror_flag
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3196 $as_echo "$ac_cv_prog_cc_g" >&6; }
3197 if test "$ac_test_CFLAGS" = set; then
3198 CFLAGS=$ac_save_CFLAGS
3199 elif test $ac_cv_prog_cc_g = yes; then
3200 if test "$GCC" = yes; then
3206 if test "$GCC" = yes; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3213 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3214 if ${ac_cv_prog_cc_c89+:} false; then :
3215 $as_echo_n "(cached) " >&6
3217 ac_cv_prog_cc_c89=no
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h. */
3224 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3225 struct buf { int x; };
3226 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3227 static char *e (p, i)
3233 static char *f (char * (*g) (char **, int), char **p, ...)
3238 s = g (p, va_arg (v,int));
3243 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3244 function prototypes and stuff, but not '\xHH' hex character constants.
3245 These don't provoke an error unfortunately, instead are silently treated
3246 as 'x'. The following induces an error, until -std is added to get
3247 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3248 array size at least. It's necessary to write '\x00'==0 to get something
3249 that's true only with -std. */
3250 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3252 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3253 inside strings and character constants. */
3255 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3257 int test (int i, double x);
3258 struct s1 {int (*f) (int a);};
3259 struct s2 {int (*f) (double a);};
3260 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3266 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3271 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3272 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3274 CC="$ac_save_CC $ac_arg"
3275 if ac_fn_c_try_compile "$LINENO"; then :
3276 ac_cv_prog_cc_c89=$ac_arg
3278 rm -f core conftest.err conftest.$ac_objext
3279 test "x$ac_cv_prog_cc_c89" != "xno" && break
3281 rm -f conftest.$ac_ext
3286 case "x$ac_cv_prog_cc_c89" in
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3289 $as_echo "none needed" >&6; } ;;
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3292 $as_echo "unsupported" >&6; } ;;
3294 CC="$CC $ac_cv_prog_cc_c89"
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3296 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3298 if test "x$ac_cv_prog_cc_c89" != xno; then :
3303 ac_cpp='$CPP $CPPFLAGS'
3304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3307 DEPDIR="${am__leading_dot}deps"
3309 ac_config_commands="$ac_config_commands depfiles"
3312 am_make=${MAKE-make}
3313 cat > confinc << 'END'
3315 @echo this is the am__doit target
3318 # If we don't find an include directive, just comment out the code.
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3320 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3324 # First try GNU make style include.
3325 echo "include confinc" > confmf
3326 # Ignore all kinds of additional output from `make'.
3327 case `$am_make -s -f confmf 2> /dev/null` in #(
3328 *the\ am__doit\ target*)
3334 # Now try BSD make style include.
3335 if test "$am__include" = "#"; then
3336 echo '.include "confinc"' > confmf
3337 case `$am_make -s -f confmf 2> /dev/null` in #(
3338 *the\ am__doit\ target*)
3339 am__include=.include
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3348 $as_echo "$_am_result" >&6; }
3349 rm -f confinc confmf
3351 # Check whether --enable-dependency-tracking was given.
3352 if test "${enable_dependency_tracking+set}" = set; then :
3353 enableval=$enable_dependency_tracking;
3356 if test "x$enable_dependency_tracking" != xno; then
3357 am_depcomp="$ac_aux_dir/depcomp"
3361 if test "x$enable_dependency_tracking" != xno; then
3371 depcc="$CC" am_compiler_list=
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3374 $as_echo_n "checking dependency style of $depcc... " >&6; }
3375 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3376 $as_echo_n "(cached) " >&6
3378 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3379 # We make a subdir and do the tests there. Otherwise we can end up
3380 # making bogus files that we don't know about and never remove. For
3381 # instance it was reported that on HP-UX the gcc test will end up
3382 # making a dummy file named `D' -- because `-MD' means `put the output
3386 # Copy depcomp to subdir because otherwise we won't find it if we're
3387 # using a relative directory.
3388 cp "$am_depcomp" conftest.dir
3390 # We will build objects and dependencies in a subdirectory because
3391 # it helps to detect inapplicable dependency modes. For instance
3392 # both Tru64's cc and ICC support -MD to output dependencies as a
3393 # side effect of compilation, but ICC will put the dependencies in
3394 # the current directory while Tru64 will put them in the object
3398 am_cv_CC_dependencies_compiler_type=none
3399 if test "$am_compiler_list" = ""; then
3400 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3403 case " $depcc " in #(
3404 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3407 for depmode in $am_compiler_list; do
3408 # Setup a source with many dependencies, because some compilers
3409 # like to wrap large dependency lists on column 80 (with \), and
3410 # we should not choose a depcomp mode which is confused by this.
3412 # We need to recreate these files for each test, as the compiler may
3413 # overwrite some of them when testing with obscure command lines.
3414 # This happens at least with the AIX C compiler.
3416 for i in 1 2 3 4 5 6; do
3417 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3418 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3419 # Solaris 8's {/usr,}/bin/sh.
3420 touch sub/conftst$i.h
3422 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3424 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3425 # mode. It turns out that the SunPro C++ compiler does not properly
3426 # handle `-M -o', and we need to detect this. Also, some Intel
3427 # versions had trouble with output in subdirs
3428 am__obj=sub/conftest.${OBJEXT-o}
3429 am__minus_obj="-o $am__obj"
3432 # This depmode causes a compiler race in universal mode.
3433 test "$am__universal" = false || continue
3436 # after this tag, mechanisms are not by side-effect, so they'll
3437 # only be used when explicitly requested
3438 if test "x$enable_dependency_tracking" = xyes; then
3444 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3445 # This compiler won't grok `-c -o', but also, the minuso test has
3446 # not run yet. These depmodes are late enough in the game, and
3447 # so weak that their functioning should not be impacted.
3448 am__obj=conftest.${OBJEXT-o}
3453 if depmode=$depmode \
3454 source=sub/conftest.c object=$am__obj \
3455 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3456 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3457 >/dev/null 2>conftest.err &&
3458 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3459 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3460 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3461 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3462 # icc doesn't choke on unknown options, it will just issue warnings
3463 # or remarks (even with -Werror). So we grep stderr for any message
3464 # that says an option was ignored or not supported.
3465 # When given -MP, icc 7.0 and 7.1 complain thusly:
3466 # icc: Command line warning: ignoring option '-M'; no argument required
3467 # The diagnosis changed in icc 8.0:
3468 # icc: Command line remark: option '-MP' not supported
3469 if (grep 'ignoring option' conftest.err ||
3470 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3471 am_cv_CC_dependencies_compiler_type=$depmode
3480 am_cv_CC_dependencies_compiler_type=none
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3485 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3486 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3489 test "x$enable_dependency_tracking" != xno \
3490 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3492 am__fastdepCC_FALSE='#'
3494 am__fastdepCC_TRUE='#'
3495 am__fastdepCC_FALSE=
3499 if test "x$CC" != xcc; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3501 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3504 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3506 set dummy $CC; ac_cc=`$as_echo "$2" |
3507 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3508 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3509 $as_echo_n "(cached) " >&6
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3522 # Make sure it works both with $CC and with simple cc.
3523 # We do the test twice because some compilers refuse to overwrite an
3524 # existing .o file with -o, though they will create one.
3525 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3527 if { { case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_try") 2>&5
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; } &&
3537 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543 (eval "$ac_try") 2>&5
3545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546 test $ac_status = 0; };
3548 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3549 if test "x$CC" != xcc; then
3550 # Test first that cc exists at all.
3551 if { ac_try='cc -c conftest.$ac_ext >&5'
3552 { { case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557 $as_echo "$ac_try_echo"; } >&5
3558 (eval "$ac_try") 2>&5
3560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }; }; then
3562 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3564 if { { case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_try") 2>&5
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; } &&
3574 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580 (eval "$ac_try") 2>&5
3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583 test $ac_status = 0; };
3588 # cc exists but doesn't like -o.
3589 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3594 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3596 rm -f core conftest*
3599 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3601 $as_echo "yes" >&6; }
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 $as_echo "no" >&6; }
3606 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3610 # FIXME: we rely on the cache variable name because
3611 # there is no other way.
3613 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3614 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3615 if test "$am_t" != yes; then
3616 # Losing compiler, so override with the script.
3617 # FIXME: It is wrong to rewrite CC.
3618 # But if we don't then we get into trouble of one sort or another.
3619 # A longer-term fix would be to have automake use am__CC in this case,
3620 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3621 CC="$am_aux_dir/compile $CC"
3626 # Checks for header files.
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3634 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3635 # On Suns, sometimes $CPP names a directory.
3636 if test -n "$CPP" && test -d "$CPP"; then
3639 if test -z "$CPP"; then
3640 if ${ac_cv_prog_CPP+:} false; then :
3641 $as_echo_n "(cached) " >&6
3643 # Double quotes because CPP needs to be expanded
3644 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3647 for ac_c_preproc_warn_flag in '' yes
3649 # Use a header file that comes with gcc, so configuring glibc
3650 # with a fresh cross-compiler works.
3651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3652 # <limits.h> exists even on freestanding compilers.
3653 # On the NeXT, cc -E runs the code through the compiler's parser,
3654 # not just through cpp. "Syntax error" is here to catch this case.
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3658 # include <limits.h>
3660 # include <assert.h>
3664 if ac_fn_c_try_cpp "$LINENO"; then :
3667 # Broken: fails on valid input.
3670 rm -f conftest.err conftest.i conftest.$ac_ext
3672 # OK, works on sane cases. Now check whether nonexistent headers
3673 # can be detected and how.
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3676 #include <ac_nonexistent.h>
3678 if ac_fn_c_try_cpp "$LINENO"; then :
3679 # Broken: success on invalid input.
3682 # Passes both tests.
3686 rm -f conftest.err conftest.i conftest.$ac_ext
3689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3690 rm -f conftest.i conftest.err conftest.$ac_ext
3691 if $ac_preproc_ok; then :
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3704 $as_echo "$CPP" >&6; }
3706 for ac_c_preproc_warn_flag in '' yes
3708 # Use a header file that comes with gcc, so configuring glibc
3709 # with a fresh cross-compiler works.
3710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3711 # <limits.h> exists even on freestanding compilers.
3712 # On the NeXT, cc -E runs the code through the compiler's parser,
3713 # not just through cpp. "Syntax error" is here to catch this case.
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3717 # include <limits.h>
3719 # include <assert.h>
3723 if ac_fn_c_try_cpp "$LINENO"; then :
3726 # Broken: fails on valid input.
3729 rm -f conftest.err conftest.i conftest.$ac_ext
3731 # OK, works on sane cases. Now check whether nonexistent headers
3732 # can be detected and how.
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3735 #include <ac_nonexistent.h>
3737 if ac_fn_c_try_cpp "$LINENO"; then :
3738 # Broken: success on invalid input.
3741 # Passes both tests.
3745 rm -f conftest.err conftest.i conftest.$ac_ext
3748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3749 rm -f conftest.i conftest.err conftest.$ac_ext
3750 if $ac_preproc_ok; then :
3753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3756 See \`config.log' for more details" "$LINENO" 5; }
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
3767 $as_echo_n "checking for X... " >&6; }
3770 # Check whether --with-x was given.
3771 if test "${with_x+set}" = set; then :
3775 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3776 if test "x$with_x" = xno; then
3777 # The user explicitly disabled X.
3780 case $x_includes,$x_libraries in #(
3781 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
3782 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
3783 $as_echo_n "(cached) " >&6
3785 # One or both of the vars are not set, and there is no cached value.
3786 ac_x_includes=no ac_x_libraries=no
3787 rm -f -r conftest.dir
3788 if mkdir conftest.dir; then
3790 cat >Imakefile <<'_ACEOF'
3792 @echo incroot='${INCROOT}'
3794 @echo usrlibdir='${USRLIBDIR}'
3796 @echo libdir='${LIBDIR}'
3798 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3799 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3800 for ac_var in incroot usrlibdir libdir; do
3801 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3803 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3804 for ac_extension in a so sl dylib la dll; do
3805 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3806 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3807 ac_im_usrlibdir=$ac_im_libdir; break
3810 # Screen out bogus values from the imake configuration. They are
3811 # bogus both because they are the default anyway, and because
3812 # using them would break gcc on systems where it needs fixed includes.
3813 case $ac_im_incroot in
3814 /usr/include) ac_x_includes= ;;
3815 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3817 case $ac_im_usrlibdir in
3818 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
3819 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3823 rm -f -r conftest.dir
3826 # Standard set of common directories for X headers.
3827 # Check X11 before X11Rn because it is often a symlink to the current release.
3841 /usr/local/X11/include
3842 /usr/local/X11R7/include
3843 /usr/local/X11R6/include
3844 /usr/local/X11R5/include
3845 /usr/local/X11R4/include
3847 /usr/local/include/X11
3848 /usr/local/include/X11R7
3849 /usr/local/include/X11R6
3850 /usr/local/include/X11R5
3851 /usr/local/include/X11R4
3855 /usr/XFree86/include/X11
3859 /usr/unsupported/include
3861 /usr/local/x11r5/include
3862 /usr/lpp/Xamples/include
3864 /usr/openwin/include
3865 /usr/openwin/share/include'
3867 if test "$ac_x_includes" = no; then
3868 # Guess where to find include files, by looking for Xlib.h.
3869 # First, try using that file with no special directory specified.
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3872 #include <X11/Xlib.h>
3874 if ac_fn_c_try_cpp "$LINENO"; then :
3875 # We can compile using X headers with no special include directory.
3878 for ac_dir in $ac_x_header_dirs; do
3879 if test -r "$ac_dir/X11/Xlib.h"; then
3880 ac_x_includes=$ac_dir
3885 rm -f conftest.err conftest.i conftest.$ac_ext
3886 fi # $ac_x_includes = no
3888 if test "$ac_x_libraries" = no; then
3889 # Check for the libraries.
3890 # See if we find them without any special options.
3891 # Don't add to $LIBS permanently.
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896 #include <X11/Xlib.h>
3905 if ac_fn_c_try_link "$LINENO"; then :
3907 # We can link X programs with no special library path.
3911 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3913 # Don't even attempt the hair of trying to link an X program!
3914 for ac_extension in a so sl dylib la dll; do
3915 if test -r "$ac_dir/libX11.$ac_extension"; then
3916 ac_x_libraries=$ac_dir
3922 rm -f core conftest.err conftest.$ac_objext \
3923 conftest$ac_exeext conftest.$ac_ext
3924 fi # $ac_x_libraries = no
3926 case $ac_x_includes,$ac_x_libraries in #(
3928 # Didn't find X, or a directory has "'" in its name.
3929 ac_cv_have_x="have_x=no";; #(
3931 # Record where we found X for the cache.
3932 ac_cv_have_x="have_x=yes\
3933 ac_x_includes='$ac_x_includes'\
3934 ac_x_libraries='$ac_x_libraries'"
3940 eval "$ac_cv_have_x"
3943 if test "$have_x" != yes; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
3945 $as_echo "$have_x" >&6; }
3948 # If each of the values was on the command line, it overrides each guess.
3949 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3950 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3951 # Update the cache value to reflect the command line values.
3952 ac_cv_have_x="have_x=yes\
3953 ac_x_includes='$x_includes'\
3954 ac_x_libraries='$x_libraries'"
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
3956 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3963 $as_echo_n "checking whether NLS is requested... " >&6; }
3964 # Check whether --enable-nls was given.
3965 if test "${enable_nls+set}" = set; then :
3966 enableval=$enable_nls; USE_NLS=$enableval
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3972 $as_echo "$USE_NLS" >&6; }
3977 GETTEXT_MACRO_VERSION=0.18
3982 # Prepare PATH_SEPARATOR.
3983 # The user is always right.
3984 if test "${PATH_SEPARATOR+set}" != set; then
3985 echo "#! /bin/sh" >conf$$.sh
3986 echo "exit 0" >>conf$$.sh
3988 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3996 # Find out how to test for executable files. Don't use a zero-byte file,
3997 # as systems may use methods other than mode bits to determine executability.
3998 cat >conf$$.file <<_ASEOF
4002 chmod +x conf$$.file
4003 if test -x conf$$.file >/dev/null 2>&1; then
4004 ac_executable_p="test -x"
4006 ac_executable_p="test -f"
4010 # Extract the first word of "msgfmt", so it can be a program name with args.
4011 set dummy msgfmt; ac_word=$2
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4013 $as_echo_n "checking for $ac_word... " >&6; }
4014 if ${ac_cv_path_MSGFMT+:} false; then :
4015 $as_echo_n "(cached) " >&6
4019 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4022 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4023 for ac_dir in $PATH; do
4025 test -z "$ac_dir" && ac_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4028 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4029 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4030 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4031 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4038 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4042 MSGFMT="$ac_cv_path_MSGFMT"
4043 if test "$MSGFMT" != ":"; then
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4045 $as_echo "$MSGFMT" >&6; }
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 $as_echo "no" >&6; }
4051 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4052 set dummy gmsgfmt; ac_word=$2
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054 $as_echo_n "checking for $ac_word... " >&6; }
4055 if ${ac_cv_path_GMSGFMT+:} false; then :
4056 $as_echo_n "(cached) " >&6
4060 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4082 GMSGFMT=$ac_cv_path_GMSGFMT
4083 if test -n "$GMSGFMT"; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4085 $as_echo "$GMSGFMT" >&6; }
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4093 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4094 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4095 *) MSGFMT_015=$MSGFMT ;;
4098 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4099 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4100 *) GMSGFMT_015=$GMSGFMT ;;
4105 # Prepare PATH_SEPARATOR.
4106 # The user is always right.
4107 if test "${PATH_SEPARATOR+set}" != set; then
4108 echo "#! /bin/sh" >conf$$.sh
4109 echo "exit 0" >>conf$$.sh
4111 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4119 # Find out how to test for executable files. Don't use a zero-byte file,
4120 # as systems may use methods other than mode bits to determine executability.
4121 cat >conf$$.file <<_ASEOF
4125 chmod +x conf$$.file
4126 if test -x conf$$.file >/dev/null 2>&1; then
4127 ac_executable_p="test -x"
4129 ac_executable_p="test -f"
4133 # Extract the first word of "xgettext", so it can be a program name with args.
4134 set dummy xgettext; ac_word=$2
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136 $as_echo_n "checking for $ac_word... " >&6; }
4137 if ${ac_cv_path_XGETTEXT+:} false; then :
4138 $as_echo_n "(cached) " >&6
4142 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4145 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4146 for ac_dir in $PATH; do
4148 test -z "$ac_dir" && ac_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4151 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4152 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4153 (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
4154 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4161 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4165 XGETTEXT="$ac_cv_path_XGETTEXT"
4166 if test "$XGETTEXT" != ":"; then
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4168 $as_echo "$XGETTEXT" >&6; }
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 $as_echo "no" >&6; }
4176 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4177 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4178 *) XGETTEXT_015=$XGETTEXT ;;
4183 # Prepare PATH_SEPARATOR.
4184 # The user is always right.
4185 if test "${PATH_SEPARATOR+set}" != set; then
4186 echo "#! /bin/sh" >conf$$.sh
4187 echo "exit 0" >>conf$$.sh
4189 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4197 # Find out how to test for executable files. Don't use a zero-byte file,
4198 # as systems may use methods other than mode bits to determine executability.
4199 cat >conf$$.file <<_ASEOF
4203 chmod +x conf$$.file
4204 if test -x conf$$.file >/dev/null 2>&1; then
4205 ac_executable_p="test -x"
4207 ac_executable_p="test -f"
4211 # Extract the first word of "msgmerge", so it can be a program name with args.
4212 set dummy msgmerge; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_path_MSGMERGE+:} false; then :
4216 $as_echo_n "(cached) " >&6
4220 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4223 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4224 for ac_dir in $PATH; do
4226 test -z "$ac_dir" && ac_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4229 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4230 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4231 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4238 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4242 MSGMERGE="$ac_cv_path_MSGMERGE"
4243 if test "$MSGMERGE" != ":"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4245 $as_echo "$MSGMERGE" >&6; }
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4252 test -n "$localedir" || localedir='${datadir}/locale'
4255 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4258 ac_config_commands="$ac_config_commands po-directories"
4262 if test "X$prefix" = "XNONE"; then
4263 acl_final_prefix="$ac_default_prefix"
4265 acl_final_prefix="$prefix"
4267 if test "X$exec_prefix" = "XNONE"; then
4268 acl_final_exec_prefix='${prefix}'
4270 acl_final_exec_prefix="$exec_prefix"
4272 acl_save_prefix="$prefix"
4273 prefix="$acl_final_prefix"
4274 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4275 prefix="$acl_save_prefix"
4277 # Make sure we can run config.sub.
4278 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4279 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4282 $as_echo_n "checking build system type... " >&6; }
4283 if ${ac_cv_build+:} false; then :
4284 $as_echo_n "(cached) " >&6
4286 ac_build_alias=$build_alias
4287 test "x$ac_build_alias" = x &&
4288 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4289 test "x$ac_build_alias" = x &&
4290 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4291 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4292 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4296 $as_echo "$ac_cv_build" >&6; }
4297 case $ac_cv_build in
4299 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4302 ac_save_IFS=$IFS; IFS='-'
4308 # Remember, the first character of IFS is used to create $*,
4309 # except with old shells:
4312 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4316 $as_echo_n "checking host system type... " >&6; }
4317 if ${ac_cv_host+:} false; then :
4318 $as_echo_n "(cached) " >&6
4320 if test "x$host_alias" = x; then
4321 ac_cv_host=$ac_cv_build
4323 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4324 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4329 $as_echo "$ac_cv_host" >&6; }
4332 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4335 ac_save_IFS=$IFS; IFS='-'
4341 # Remember, the first character of IFS is used to create $*,
4342 # except with old shells:
4345 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4349 # Check whether --with-gnu-ld was given.
4350 if test "${with_gnu_ld+set}" = set; then :
4351 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4356 # Prepare PATH_SEPARATOR.
4357 # The user is always right.
4358 if test "${PATH_SEPARATOR+set}" != set; then
4359 echo "#! /bin/sh" >conf$$.sh
4360 echo "exit 0" >>conf$$.sh
4362 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4370 if test "$GCC" = yes; then
4371 # Check if gcc -print-prog-name=ld gives a path.
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4373 $as_echo_n "checking for ld used by GCC... " >&6; }
4376 # gcc leaves a trailing carriage return which upsets mingw
4377 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4379 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4382 # Accept absolute paths.
4383 [\\/]* | [A-Za-z]:[\\/]*)
4384 re_direlt='/[^/][^/]*/\.\./'
4385 # Canonicalize the path of ld
4386 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4387 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4388 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4390 test -z "$LD" && LD="$ac_prog"
4393 # If it fails, then pretend we aren't using GCC.
4397 # If it is relative, then search for the first ld in PATH.
4401 elif test "$with_gnu_ld" = yes; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4403 $as_echo_n "checking for GNU ld... " >&6; }
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4406 $as_echo_n "checking for non-GNU ld... " >&6; }
4408 if ${acl_cv_path_LD+:} false; then :
4409 $as_echo_n "(cached) " >&6
4411 if test -z "$LD"; then
4412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4413 for ac_dir in $PATH; do
4414 test -z "$ac_dir" && ac_dir=.
4415 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4416 acl_cv_path_LD="$ac_dir/$ac_prog"
4417 # Check to see if the program is GNU ld. I'd rather use --version,
4418 # but apparently some GNU ld's only accept -v.
4419 # Break only if it was the GNU/non-GNU ld that we prefer.
4420 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4421 *GNU* | *'with BFD'*)
4422 test "$with_gnu_ld" != no && break ;;
4424 test "$with_gnu_ld" != yes && break ;;
4430 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4434 LD="$acl_cv_path_LD"
4435 if test -n "$LD"; then
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4437 $as_echo "$LD" >&6; }
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440 $as_echo "no" >&6; }
4442 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4444 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4445 if ${acl_cv_prog_gnu_ld+:} false; then :
4446 $as_echo_n "(cached) " >&6
4448 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4449 case `$LD -v 2>&1 </dev/null` in
4450 *GNU* | *'with BFD'*)
4451 acl_cv_prog_gnu_ld=yes ;;
4453 acl_cv_prog_gnu_ld=no ;;
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4457 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4458 with_gnu_ld=$acl_cv_prog_gnu_ld
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4464 $as_echo_n "checking for shared library run path origin... " >&6; }
4465 if ${acl_cv_rpath+:} false; then :
4466 $as_echo_n "(cached) " >&6
4469 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4470 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4477 $as_echo "$acl_cv_rpath" >&6; }
4479 acl_libext="$acl_cv_libext"
4480 acl_shlibext="$acl_cv_shlibext"
4481 acl_libname_spec="$acl_cv_libname_spec"
4482 acl_library_names_spec="$acl_cv_library_names_spec"
4483 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4484 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4485 acl_hardcode_direct="$acl_cv_hardcode_direct"
4486 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4487 # Check whether --enable-rpath was given.
4488 if test "${enable_rpath+set}" = set; then :
4489 enableval=$enable_rpath; :
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4496 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4497 if ${ac_cv_path_GREP+:} false; then :
4498 $as_echo_n "(cached) " >&6
4500 if test -z "$GREP"; then
4501 ac_path_GREP_found=false
4502 # Loop through the user's path and test for each of PROGNAME-LIST
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4507 test -z "$as_dir" && as_dir=.
4508 for ac_prog in grep ggrep; do
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4511 as_fn_executable_p "$ac_path_GREP" || continue
4512 # Check for GNU ac_path_GREP and select it if it is found.
4513 # Check for GNU $ac_path_GREP
4514 case `"$ac_path_GREP" --version 2>&1` in
4516 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4519 $as_echo_n 0123456789 >"conftest.in"
4522 cat "conftest.in" "conftest.in" >"conftest.tmp"
4523 mv "conftest.tmp" "conftest.in"
4524 cp "conftest.in" "conftest.nl"
4525 $as_echo 'GREP' >> "conftest.nl"
4526 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4527 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4528 as_fn_arith $ac_count + 1 && ac_count=$as_val
4529 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4530 # Best one so far, save it but keep looking for a better one
4531 ac_cv_path_GREP="$ac_path_GREP"
4532 ac_path_GREP_max=$ac_count
4534 # 10*(2^10) chars as input seems more than enough
4535 test $ac_count -gt 10 && break
4537 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4540 $ac_path_GREP_found && break 3
4545 if test -z "$ac_cv_path_GREP"; then
4546 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4549 ac_cv_path_GREP=$GREP
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4554 $as_echo "$ac_cv_path_GREP" >&6; }
4555 GREP="$ac_cv_path_GREP"
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4559 $as_echo_n "checking for egrep... " >&6; }
4560 if ${ac_cv_path_EGREP+:} false; then :
4561 $as_echo_n "(cached) " >&6
4563 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4564 then ac_cv_path_EGREP="$GREP -E"
4566 if test -z "$EGREP"; then
4567 ac_path_EGREP_found=false
4568 # Loop through the user's path and test for each of PROGNAME-LIST
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4573 test -z "$as_dir" && as_dir=.
4574 for ac_prog in egrep; do
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4577 as_fn_executable_p "$ac_path_EGREP" || continue
4578 # Check for GNU ac_path_EGREP and select it if it is found.
4579 # Check for GNU $ac_path_EGREP
4580 case `"$ac_path_EGREP" --version 2>&1` in
4582 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4585 $as_echo_n 0123456789 >"conftest.in"
4588 cat "conftest.in" "conftest.in" >"conftest.tmp"
4589 mv "conftest.tmp" "conftest.in"
4590 cp "conftest.in" "conftest.nl"
4591 $as_echo 'EGREP' >> "conftest.nl"
4592 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4594 as_fn_arith $ac_count + 1 && ac_count=$as_val
4595 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4596 # Best one so far, save it but keep looking for a better one
4597 ac_cv_path_EGREP="$ac_path_EGREP"
4598 ac_path_EGREP_max=$ac_count
4600 # 10*(2^10) chars as input seems more than enough
4601 test $ac_count -gt 10 && break
4603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606 $ac_path_EGREP_found && break 3
4611 if test -z "$ac_cv_path_EGREP"; then
4612 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4615 ac_cv_path_EGREP=$EGREP
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4621 $as_echo "$ac_cv_path_EGREP" >&6; }
4622 EGREP="$ac_cv_path_EGREP"
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4632 $as_echo_n "checking for 64-bit host... " >&6; }
4633 if ${gl_cv_solaris_64bit+:} false; then :
4634 $as_echo_n "(cached) " >&6
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
4646 gl_cv_solaris_64bit=yes
4648 gl_cv_solaris_64bit=no
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4655 $as_echo "$gl_cv_solaris_64bit" >&6; }
4656 if test $gl_cv_solaris_64bit = yes; then
4657 acl_libdirstem=lib/64
4659 sparc*) acl_libdirstem2=lib/sparcv9 ;;
4660 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4665 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4666 if test -n "$searchpath"; then
4667 acl_save_IFS="${IFS= }"; IFS=":"
4668 for searchdir in $searchpath; do
4669 if test -d "$searchdir"; then
4670 case "$searchdir" in
4671 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4673 # Better ignore directories of this form. They are misleading.
4675 *) searchdir=`cd "$searchdir" && pwd`
4676 case "$searchdir" in
4677 */lib64 ) acl_libdirstem=lib64 ;;
4686 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4701 acl_save_prefix="$prefix"
4702 prefix="$acl_final_prefix"
4703 acl_save_exec_prefix="$exec_prefix"
4704 exec_prefix="$acl_final_exec_prefix"
4706 eval additional_includedir=\"$includedir\"
4707 eval additional_libdir=\"$libdir\"
4709 exec_prefix="$acl_save_exec_prefix"
4710 prefix="$acl_save_prefix"
4713 # Check whether --with-libiconv-prefix was given.
4714 if test "${with_libiconv_prefix+set}" = set; then :
4715 withval=$with_libiconv_prefix;
4716 if test "X$withval" = "Xno"; then
4719 if test "X$withval" = "X"; then
4721 acl_save_prefix="$prefix"
4722 prefix="$acl_final_prefix"
4723 acl_save_exec_prefix="$exec_prefix"
4724 exec_prefix="$acl_final_exec_prefix"
4726 eval additional_includedir=\"$includedir\"
4727 eval additional_libdir=\"$libdir\"
4729 exec_prefix="$acl_save_exec_prefix"
4730 prefix="$acl_save_prefix"
4733 additional_includedir="$withval/include"
4734 additional_libdir="$withval/$acl_libdirstem"
4735 if test "$acl_libdirstem2" != "$acl_libdirstem" \
4736 && ! test -d "$withval/$acl_libdirstem"; then
4737 additional_libdir="$withval/$acl_libdirstem2"
4751 names_already_handled=
4752 names_next_round='iconv '
4753 while test -n "$names_next_round"; do
4754 names_this_round="$names_next_round"
4756 for name in $names_this_round; do
4758 for n in $names_already_handled; do
4759 if test "$n" = "$name"; then
4764 if test -z "$already_handled"; then
4765 names_already_handled="$names_already_handled $name"
4766 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4767 eval value=\"\$HAVE_LIB$uppername\"
4768 if test -n "$value"; then
4769 if test "$value" = yes; then
4770 eval value=\"\$LIB$uppername\"
4771 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4772 eval value=\"\$LTLIB$uppername\"
4773 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4782 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
4783 if test -n "$acl_shlibext"; then
4784 shrext=".$acl_shlibext" # typically: shrext=.so
4788 if test $use_additional = yes; then
4789 dir="$additional_libdir"
4790 if test -n "$acl_shlibext"; then
4791 if test -f "$dir/$libname$shrext"; then
4793 found_so="$dir/$libname$shrext"
4795 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4796 ver=`(cd "$dir" && \
4797 for f in "$libname$shrext".*; do echo "$f"; done \
4798 | sed -e "s,^$libname$shrext\\\\.,," \
4799 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4800 | sed 1q ) 2>/dev/null`
4801 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4803 found_so="$dir/$libname$shrext.$ver"
4806 eval library_names=\"$acl_library_names_spec\"
4807 for f in $library_names; do
4808 if test -f "$dir/$f"; then
4817 if test "X$found_dir" = "X"; then
4818 if test -f "$dir/$libname.$acl_libext"; then
4820 found_a="$dir/$libname.$acl_libext"
4823 if test "X$found_dir" != "X"; then
4824 if test -f "$dir/$libname.la"; then
4825 found_la="$dir/$libname.la"
4829 if test "X$found_dir" = "X"; then
4830 for x in $LDFLAGS $LTLIBICONV; do
4832 acl_save_prefix="$prefix"
4833 prefix="$acl_final_prefix"
4834 acl_save_exec_prefix="$exec_prefix"
4835 exec_prefix="$acl_final_exec_prefix"
4837 exec_prefix="$acl_save_exec_prefix"
4838 prefix="$acl_save_prefix"
4842 dir=`echo "X$x" | sed -e 's/^X-L//'`
4843 if test -n "$acl_shlibext"; then
4844 if test -f "$dir/$libname$shrext"; then
4846 found_so="$dir/$libname$shrext"
4848 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4849 ver=`(cd "$dir" && \
4850 for f in "$libname$shrext".*; do echo "$f"; done \
4851 | sed -e "s,^$libname$shrext\\\\.,," \
4852 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4853 | sed 1q ) 2>/dev/null`
4854 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4856 found_so="$dir/$libname$shrext.$ver"
4859 eval library_names=\"$acl_library_names_spec\"
4860 for f in $library_names; do
4861 if test -f "$dir/$f"; then
4870 if test "X$found_dir" = "X"; then
4871 if test -f "$dir/$libname.$acl_libext"; then
4873 found_a="$dir/$libname.$acl_libext"
4876 if test "X$found_dir" != "X"; then
4877 if test -f "$dir/$libname.la"; then
4878 found_la="$dir/$libname.la"
4883 if test "X$found_dir" != "X"; then
4888 if test "X$found_dir" != "X"; then
4889 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4890 if test "X$found_so" != "X"; then
4891 if test "$enable_rpath" = no \
4892 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
4893 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
4894 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4897 for x in $ltrpathdirs; do
4898 if test "X$x" = "X$found_dir"; then
4903 if test -z "$haveit"; then
4904 ltrpathdirs="$ltrpathdirs $found_dir"
4906 if test "$acl_hardcode_direct" = yes; then
4907 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4909 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4910 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4912 for x in $rpathdirs; do
4913 if test "X$x" = "X$found_dir"; then
4918 if test -z "$haveit"; then
4919 rpathdirs="$rpathdirs $found_dir"
4923 for x in $LDFLAGS $LIBICONV; do
4925 acl_save_prefix="$prefix"
4926 prefix="$acl_final_prefix"
4927 acl_save_exec_prefix="$exec_prefix"
4928 exec_prefix="$acl_final_exec_prefix"
4930 exec_prefix="$acl_save_exec_prefix"
4931 prefix="$acl_save_prefix"
4933 if test "X$x" = "X-L$found_dir"; then
4938 if test -z "$haveit"; then
4939 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4941 if test "$acl_hardcode_minus_L" != no; then
4942 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4944 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4950 if test "X$found_a" != "X"; then
4951 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4953 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4956 additional_includedir=
4957 case "$found_dir" in
4958 */$acl_libdirstem | */$acl_libdirstem/)
4959 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4960 if test "$name" = 'iconv'; then
4961 LIBICONV_PREFIX="$basedir"
4963 additional_includedir="$basedir/include"
4965 */$acl_libdirstem2 | */$acl_libdirstem2/)
4966 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
4967 if test "$name" = 'iconv'; then
4968 LIBICONV_PREFIX="$basedir"
4970 additional_includedir="$basedir/include"
4973 if test "X$additional_includedir" != "X"; then
4974 if test "X$additional_includedir" != "X/usr/include"; then
4976 if test "X$additional_includedir" = "X/usr/local/include"; then
4977 if test -n "$GCC"; then
4979 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4983 if test -z "$haveit"; then
4984 for x in $CPPFLAGS $INCICONV; do
4986 acl_save_prefix="$prefix"
4987 prefix="$acl_final_prefix"
4988 acl_save_exec_prefix="$exec_prefix"
4989 exec_prefix="$acl_final_exec_prefix"
4991 exec_prefix="$acl_save_exec_prefix"
4992 prefix="$acl_save_prefix"
4994 if test "X$x" = "X-I$additional_includedir"; then
4999 if test -z "$haveit"; then
5000 if test -d "$additional_includedir"; then
5001 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5007 if test -n "$found_la"; then
5008 save_libdir="$libdir"
5010 */* | *\\*) . "$found_la" ;;
5011 *) . "./$found_la" ;;
5013 libdir="$save_libdir"
5014 for dep in $dependency_libs; do
5017 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5018 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5019 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5021 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5022 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5023 if test -n "$GCC"; then
5025 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5029 if test -z "$haveit"; then
5031 for x in $LDFLAGS $LIBICONV; do
5033 acl_save_prefix="$prefix"
5034 prefix="$acl_final_prefix"
5035 acl_save_exec_prefix="$exec_prefix"
5036 exec_prefix="$acl_final_exec_prefix"
5038 exec_prefix="$acl_save_exec_prefix"
5039 prefix="$acl_save_prefix"
5041 if test "X$x" = "X-L$additional_libdir"; then
5046 if test -z "$haveit"; then
5047 if test -d "$additional_libdir"; then
5048 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5052 for x in $LDFLAGS $LTLIBICONV; do
5054 acl_save_prefix="$prefix"
5055 prefix="$acl_final_prefix"
5056 acl_save_exec_prefix="$exec_prefix"
5057 exec_prefix="$acl_final_exec_prefix"
5059 exec_prefix="$acl_save_exec_prefix"
5060 prefix="$acl_save_prefix"
5062 if test "X$x" = "X-L$additional_libdir"; then
5067 if test -z "$haveit"; then
5068 if test -d "$additional_libdir"; then
5069 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5076 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5077 if test "$enable_rpath" != no; then
5079 for x in $rpathdirs; do
5080 if test "X$x" = "X$dir"; then
5085 if test -z "$haveit"; then
5086 rpathdirs="$rpathdirs $dir"
5089 for x in $ltrpathdirs; do
5090 if test "X$x" = "X$dir"; then
5095 if test -z "$haveit"; then
5096 ltrpathdirs="$ltrpathdirs $dir"
5101 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5104 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5107 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5108 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5114 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5115 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5121 if test "X$rpathdirs" != "X"; then
5122 if test -n "$acl_hardcode_libdir_separator"; then
5124 for found_dir in $rpathdirs; do
5125 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5127 acl_save_libdir="$libdir"
5129 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5130 libdir="$acl_save_libdir"
5131 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5133 for found_dir in $rpathdirs; do
5134 acl_save_libdir="$libdir"
5136 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5137 libdir="$acl_save_libdir"
5138 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5142 if test "X$ltrpathdirs" != "X"; then
5143 for found_dir in $ltrpathdirs; do
5144 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5179 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5180 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5181 $as_echo_n "(cached) " >&6
5183 gt_save_LIBS="$LIBS"
5184 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5187 #include <CoreFoundation/CFPreferences.h>
5191 CFPreferencesCopyAppValue(NULL, NULL)
5196 if ac_fn_c_try_link "$LINENO"; then :
5197 gt_cv_func_CFPreferencesCopyAppValue=yes
5199 gt_cv_func_CFPreferencesCopyAppValue=no
5201 rm -f core conftest.err conftest.$ac_objext \
5202 conftest$ac_exeext conftest.$ac_ext
5203 LIBS="$gt_save_LIBS"
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5206 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5207 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5209 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5213 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5214 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5215 $as_echo_n "(cached) " >&6
5217 gt_save_LIBS="$LIBS"
5218 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221 #include <CoreFoundation/CFLocale.h>
5225 CFLocaleCopyCurrent();
5230 if ac_fn_c_try_link "$LINENO"; then :
5231 gt_cv_func_CFLocaleCopyCurrent=yes
5233 gt_cv_func_CFLocaleCopyCurrent=no
5235 rm -f core conftest.err conftest.$ac_objext \
5236 conftest$ac_exeext conftest.$ac_ext
5237 LIBS="$gt_save_LIBS"
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5240 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5241 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5243 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5247 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5248 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5260 case " $gt_needs " in
5261 *" need-formatstring-macros "*) gt_api_version=3 ;;
5262 *" need-ngettext "*) gt_api_version=2 ;;
5263 *) gt_api_version=1 ;;
5265 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5266 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5268 if test "$USE_NLS" = "yes"; then
5269 gt_use_preinstalled_gnugettext=no
5272 if test $gt_api_version -ge 3; then
5273 gt_revision_test_code='
5274 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5275 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5277 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5280 gt_revision_test_code=
5282 if test $gt_api_version -ge 2; then
5283 gt_expression_test_code=' + * ngettext ("", "", 0)'
5285 gt_expression_test_code=
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5289 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5290 if eval \${$gt_func_gnugettext_libc+:} false; then :
5291 $as_echo_n "(cached) " >&6
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5295 #include <libintl.h>
5296 $gt_revision_test_code
5297 extern int _nl_msg_cat_cntr;
5298 extern int *_nl_domain_bindings;
5302 bindtextdomain ("", "");
5303 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5308 if ac_fn_c_try_link "$LINENO"; then :
5309 eval "$gt_func_gnugettext_libc=yes"
5311 eval "$gt_func_gnugettext_libc=no"
5313 rm -f core conftest.err conftest.$ac_objext \
5314 conftest$ac_exeext conftest.$ac_ext
5316 eval ac_res=\$$gt_func_gnugettext_libc
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5318 $as_echo "$ac_res" >&6; }
5320 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5326 am_save_CPPFLAGS="$CPPFLAGS"
5328 for element in $INCICONV; do
5330 for x in $CPPFLAGS; do
5332 acl_save_prefix="$prefix"
5333 prefix="$acl_final_prefix"
5334 acl_save_exec_prefix="$exec_prefix"
5335 exec_prefix="$acl_final_exec_prefix"
5337 exec_prefix="$acl_save_exec_prefix"
5338 prefix="$acl_save_prefix"
5340 if test "X$x" = "X$element"; then
5345 if test -z "$haveit"; then
5346 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5352 $as_echo_n "checking for iconv... " >&6; }
5353 if ${am_cv_func_iconv+:} false; then :
5354 $as_echo_n "(cached) " >&6
5357 am_cv_func_iconv="no, consider installing GNU libiconv"
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5366 iconv_t cd = iconv_open("","");
5367 iconv(cd,NULL,NULL,NULL,NULL);
5373 if ac_fn_c_try_link "$LINENO"; then :
5374 am_cv_func_iconv=yes
5376 rm -f core conftest.err conftest.$ac_objext \
5377 conftest$ac_exeext conftest.$ac_ext
5378 if test "$am_cv_func_iconv" != yes; then
5379 am_save_LIBS="$LIBS"
5380 LIBS="$LIBS $LIBICONV"
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5388 iconv_t cd = iconv_open("","");
5389 iconv(cd,NULL,NULL,NULL,NULL);
5395 if ac_fn_c_try_link "$LINENO"; then :
5397 am_cv_func_iconv=yes
5399 rm -f core conftest.err conftest.$ac_objext \
5400 conftest$ac_exeext conftest.$ac_ext
5401 LIBS="$am_save_LIBS"
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5406 $as_echo "$am_cv_func_iconv" >&6; }
5407 if test "$am_cv_func_iconv" = yes; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5409 $as_echo_n "checking for working iconv... " >&6; }
5410 if ${am_cv_func_iconv_works+:} false; then :
5411 $as_echo_n "(cached) " >&6
5414 am_save_LIBS="$LIBS"
5415 if test $am_cv_lib_iconv = yes; then
5416 LIBS="$LIBS $LIBICONV"
5418 if test "$cross_compiling" = yes; then :
5420 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5421 *) am_cv_func_iconv_works="guessing yes" ;;
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5431 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5434 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5435 if (cd_utf8_to_88591 != (iconv_t)(-1))
5437 static const char input[] = "\342\202\254"; /* EURO SIGN */
5439 const char *inptr = input;
5440 size_t inbytesleft = strlen (input);
5442 size_t outbytesleft = sizeof (buf);
5443 size_t res = iconv (cd_utf8_to_88591,
5444 (char **) &inptr, &inbytesleft,
5445 &outptr, &outbytesleft);
5450 /* Test against Solaris 10 bug: Failures are not distinguishable from
5451 successful returns. */
5453 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5454 if (cd_ascii_to_88591 != (iconv_t)(-1))
5456 static const char input[] = "\263";
5458 const char *inptr = input;
5459 size_t inbytesleft = strlen (input);
5461 size_t outbytesleft = sizeof (buf);
5462 size_t res = iconv (cd_ascii_to_88591,
5463 (char **) &inptr, &inbytesleft,
5464 &outptr, &outbytesleft);
5469 #if 0 /* This bug could be worked around by the caller. */
5470 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5472 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5473 if (cd_88591_to_utf8 != (iconv_t)(-1))
5475 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5477 const char *inptr = input;
5478 size_t inbytesleft = strlen (input);
5480 size_t outbytesleft = sizeof (buf);
5481 size_t res = iconv (cd_88591_to_utf8,
5482 (char **) &inptr, &inbytesleft,
5483 &outptr, &outbytesleft);
5489 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5491 if (/* Try standardized names. */
5492 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5493 /* Try IRIX, OSF/1 names. */
5494 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5495 /* Try AIX names. */
5496 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5497 /* Try HP-UX names. */
5498 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5503 if ac_fn_c_try_run "$LINENO"; then :
5504 am_cv_func_iconv_works=yes
5506 am_cv_func_iconv_works=no
5508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5509 conftest.$ac_objext conftest.beam conftest.$ac_ext
5512 LIBS="$am_save_LIBS"
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5516 $as_echo "$am_cv_func_iconv_works" >&6; }
5517 case "$am_cv_func_iconv_works" in
5518 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5519 *) am_func_iconv=yes ;;
5522 am_func_iconv=no am_cv_lib_iconv=no
5524 if test "$am_func_iconv" = yes; then
5526 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5529 if test "$am_cv_lib_iconv" = yes; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5531 $as_echo_n "checking how to link with libiconv... " >&6; }
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5533 $as_echo "$LIBICONV" >&6; }
5535 CPPFLAGS="$am_save_CPPFLAGS"
5552 acl_save_prefix="$prefix"
5553 prefix="$acl_final_prefix"
5554 acl_save_exec_prefix="$exec_prefix"
5555 exec_prefix="$acl_final_exec_prefix"
5557 eval additional_includedir=\"$includedir\"
5558 eval additional_libdir=\"$libdir\"
5560 exec_prefix="$acl_save_exec_prefix"
5561 prefix="$acl_save_prefix"
5564 # Check whether --with-libintl-prefix was given.
5565 if test "${with_libintl_prefix+set}" = set; then :
5566 withval=$with_libintl_prefix;
5567 if test "X$withval" = "Xno"; then
5570 if test "X$withval" = "X"; then
5572 acl_save_prefix="$prefix"
5573 prefix="$acl_final_prefix"
5574 acl_save_exec_prefix="$exec_prefix"
5575 exec_prefix="$acl_final_exec_prefix"
5577 eval additional_includedir=\"$includedir\"
5578 eval additional_libdir=\"$libdir\"
5580 exec_prefix="$acl_save_exec_prefix"
5581 prefix="$acl_save_prefix"
5584 additional_includedir="$withval/include"
5585 additional_libdir="$withval/$acl_libdirstem"
5586 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5587 && ! test -d "$withval/$acl_libdirstem"; then
5588 additional_libdir="$withval/$acl_libdirstem2"
5602 names_already_handled=
5603 names_next_round='intl '
5604 while test -n "$names_next_round"; do
5605 names_this_round="$names_next_round"
5607 for name in $names_this_round; do
5609 for n in $names_already_handled; do
5610 if test "$n" = "$name"; then
5615 if test -z "$already_handled"; then
5616 names_already_handled="$names_already_handled $name"
5617 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5618 eval value=\"\$HAVE_LIB$uppername\"
5619 if test -n "$value"; then
5620 if test "$value" = yes; then
5621 eval value=\"\$LIB$uppername\"
5622 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5623 eval value=\"\$LTLIB$uppername\"
5624 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5633 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5634 if test -n "$acl_shlibext"; then
5635 shrext=".$acl_shlibext" # typically: shrext=.so
5639 if test $use_additional = yes; then
5640 dir="$additional_libdir"
5641 if test -n "$acl_shlibext"; then
5642 if test -f "$dir/$libname$shrext"; then
5644 found_so="$dir/$libname$shrext"
5646 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5647 ver=`(cd "$dir" && \
5648 for f in "$libname$shrext".*; do echo "$f"; done \
5649 | sed -e "s,^$libname$shrext\\\\.,," \
5650 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5651 | sed 1q ) 2>/dev/null`
5652 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5654 found_so="$dir/$libname$shrext.$ver"
5657 eval library_names=\"$acl_library_names_spec\"
5658 for f in $library_names; do
5659 if test -f "$dir/$f"; then
5668 if test "X$found_dir" = "X"; then
5669 if test -f "$dir/$libname.$acl_libext"; then
5671 found_a="$dir/$libname.$acl_libext"
5674 if test "X$found_dir" != "X"; then
5675 if test -f "$dir/$libname.la"; then
5676 found_la="$dir/$libname.la"
5680 if test "X$found_dir" = "X"; then
5681 for x in $LDFLAGS $LTLIBINTL; do
5683 acl_save_prefix="$prefix"
5684 prefix="$acl_final_prefix"
5685 acl_save_exec_prefix="$exec_prefix"
5686 exec_prefix="$acl_final_exec_prefix"
5688 exec_prefix="$acl_save_exec_prefix"
5689 prefix="$acl_save_prefix"
5693 dir=`echo "X$x" | sed -e 's/^X-L//'`
5694 if test -n "$acl_shlibext"; then
5695 if test -f "$dir/$libname$shrext"; then
5697 found_so="$dir/$libname$shrext"
5699 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5700 ver=`(cd "$dir" && \
5701 for f in "$libname$shrext".*; do echo "$f"; done \
5702 | sed -e "s,^$libname$shrext\\\\.,," \
5703 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5704 | sed 1q ) 2>/dev/null`
5705 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5707 found_so="$dir/$libname$shrext.$ver"
5710 eval library_names=\"$acl_library_names_spec\"
5711 for f in $library_names; do
5712 if test -f "$dir/$f"; then
5721 if test "X$found_dir" = "X"; then
5722 if test -f "$dir/$libname.$acl_libext"; then
5724 found_a="$dir/$libname.$acl_libext"
5727 if test "X$found_dir" != "X"; then
5728 if test -f "$dir/$libname.la"; then
5729 found_la="$dir/$libname.la"
5734 if test "X$found_dir" != "X"; then
5739 if test "X$found_dir" != "X"; then
5740 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5741 if test "X$found_so" != "X"; then
5742 if test "$enable_rpath" = no \
5743 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5744 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5745 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5748 for x in $ltrpathdirs; do
5749 if test "X$x" = "X$found_dir"; then
5754 if test -z "$haveit"; then
5755 ltrpathdirs="$ltrpathdirs $found_dir"
5757 if test "$acl_hardcode_direct" = yes; then
5758 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5760 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5761 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5763 for x in $rpathdirs; do
5764 if test "X$x" = "X$found_dir"; then
5769 if test -z "$haveit"; then
5770 rpathdirs="$rpathdirs $found_dir"
5774 for x in $LDFLAGS $LIBINTL; do
5776 acl_save_prefix="$prefix"
5777 prefix="$acl_final_prefix"
5778 acl_save_exec_prefix="$exec_prefix"
5779 exec_prefix="$acl_final_exec_prefix"
5781 exec_prefix="$acl_save_exec_prefix"
5782 prefix="$acl_save_prefix"
5784 if test "X$x" = "X-L$found_dir"; then
5789 if test -z "$haveit"; then
5790 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5792 if test "$acl_hardcode_minus_L" != no; then
5793 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5795 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5801 if test "X$found_a" != "X"; then
5802 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5804 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5807 additional_includedir=
5808 case "$found_dir" in
5809 */$acl_libdirstem | */$acl_libdirstem/)
5810 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5811 if test "$name" = 'intl'; then
5812 LIBINTL_PREFIX="$basedir"
5814 additional_includedir="$basedir/include"
5816 */$acl_libdirstem2 | */$acl_libdirstem2/)
5817 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5818 if test "$name" = 'intl'; then
5819 LIBINTL_PREFIX="$basedir"
5821 additional_includedir="$basedir/include"
5824 if test "X$additional_includedir" != "X"; then
5825 if test "X$additional_includedir" != "X/usr/include"; then
5827 if test "X$additional_includedir" = "X/usr/local/include"; then
5828 if test -n "$GCC"; then
5830 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5834 if test -z "$haveit"; then
5835 for x in $CPPFLAGS $INCINTL; do
5837 acl_save_prefix="$prefix"
5838 prefix="$acl_final_prefix"
5839 acl_save_exec_prefix="$exec_prefix"
5840 exec_prefix="$acl_final_exec_prefix"
5842 exec_prefix="$acl_save_exec_prefix"
5843 prefix="$acl_save_prefix"
5845 if test "X$x" = "X-I$additional_includedir"; then
5850 if test -z "$haveit"; then
5851 if test -d "$additional_includedir"; then
5852 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5858 if test -n "$found_la"; then
5859 save_libdir="$libdir"
5861 */* | *\\*) . "$found_la" ;;
5862 *) . "./$found_la" ;;
5864 libdir="$save_libdir"
5865 for dep in $dependency_libs; do
5868 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5869 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5870 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5872 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5873 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5874 if test -n "$GCC"; then
5876 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5880 if test -z "$haveit"; then
5882 for x in $LDFLAGS $LIBINTL; do
5884 acl_save_prefix="$prefix"
5885 prefix="$acl_final_prefix"
5886 acl_save_exec_prefix="$exec_prefix"
5887 exec_prefix="$acl_final_exec_prefix"
5889 exec_prefix="$acl_save_exec_prefix"
5890 prefix="$acl_save_prefix"
5892 if test "X$x" = "X-L$additional_libdir"; then
5897 if test -z "$haveit"; then
5898 if test -d "$additional_libdir"; then
5899 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5903 for x in $LDFLAGS $LTLIBINTL; do
5905 acl_save_prefix="$prefix"
5906 prefix="$acl_final_prefix"
5907 acl_save_exec_prefix="$exec_prefix"
5908 exec_prefix="$acl_final_exec_prefix"
5910 exec_prefix="$acl_save_exec_prefix"
5911 prefix="$acl_save_prefix"
5913 if test "X$x" = "X-L$additional_libdir"; then
5918 if test -z "$haveit"; then
5919 if test -d "$additional_libdir"; then
5920 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5927 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5928 if test "$enable_rpath" != no; then
5930 for x in $rpathdirs; do
5931 if test "X$x" = "X$dir"; then
5936 if test -z "$haveit"; then
5937 rpathdirs="$rpathdirs $dir"
5940 for x in $ltrpathdirs; do
5941 if test "X$x" = "X$dir"; then
5946 if test -z "$haveit"; then
5947 ltrpathdirs="$ltrpathdirs $dir"
5952 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5955 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5958 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5959 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5965 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5966 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5972 if test "X$rpathdirs" != "X"; then
5973 if test -n "$acl_hardcode_libdir_separator"; then
5975 for found_dir in $rpathdirs; do
5976 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5978 acl_save_libdir="$libdir"
5980 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5981 libdir="$acl_save_libdir"
5982 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5984 for found_dir in $rpathdirs; do
5985 acl_save_libdir="$libdir"
5987 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5988 libdir="$acl_save_libdir"
5989 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5993 if test "X$ltrpathdirs" != "X"; then
5994 for found_dir in $ltrpathdirs; do
5995 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6005 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6006 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6007 $as_echo_n "(cached) " >&6
6009 gt_save_CPPFLAGS="$CPPFLAGS"
6010 CPPFLAGS="$CPPFLAGS $INCINTL"
6011 gt_save_LIBS="$LIBS"
6012 LIBS="$LIBS $LIBINTL"
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6015 #include <libintl.h>
6016 $gt_revision_test_code
6017 extern int _nl_msg_cat_cntr;
6022 const char *_nl_expand_alias (const char *);
6026 bindtextdomain ("", "");
6027 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6032 if ac_fn_c_try_link "$LINENO"; then :
6033 eval "$gt_func_gnugettext_libintl=yes"
6035 eval "$gt_func_gnugettext_libintl=no"
6037 rm -f core conftest.err conftest.$ac_objext \
6038 conftest$ac_exeext conftest.$ac_ext
6039 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6040 LIBS="$LIBS $LIBICONV"
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6043 #include <libintl.h>
6044 $gt_revision_test_code
6045 extern int _nl_msg_cat_cntr;
6050 const char *_nl_expand_alias (const char *);
6054 bindtextdomain ("", "");
6055 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6060 if ac_fn_c_try_link "$LINENO"; then :
6061 LIBINTL="$LIBINTL $LIBICONV"
6062 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6063 eval "$gt_func_gnugettext_libintl=yes"
6066 rm -f core conftest.err conftest.$ac_objext \
6067 conftest$ac_exeext conftest.$ac_ext
6069 CPPFLAGS="$gt_save_CPPFLAGS"
6070 LIBS="$gt_save_LIBS"
6072 eval ac_res=\$$gt_func_gnugettext_libintl
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6074 $as_echo "$ac_res" >&6; }
6077 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6078 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6079 && test "$PACKAGE" != gettext-runtime \
6080 && test "$PACKAGE" != gettext-tools; }; then
6081 gt_use_preinstalled_gnugettext=yes
6090 if test -n "$INTL_MACOSX_LIBS"; then
6091 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6092 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6093 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6094 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6098 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6099 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6101 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6109 $as_echo_n "checking whether to use NLS... " >&6; }
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6111 $as_echo "$USE_NLS" >&6; }
6112 if test "$USE_NLS" = "yes"; then
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6114 $as_echo_n "checking where the gettext function comes from... " >&6; }
6115 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6116 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6117 gt_source="external libintl"
6122 gt_source="included intl directory"
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6125 $as_echo "$gt_source" >&6; }
6128 if test "$USE_NLS" = "yes"; then
6130 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6131 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6133 $as_echo_n "checking how to link with libintl... " >&6; }
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6135 $as_echo "$LIBINTL" >&6; }
6137 for element in $INCINTL; do
6139 for x in $CPPFLAGS; do
6141 acl_save_prefix="$prefix"
6142 prefix="$acl_final_prefix"
6143 acl_save_exec_prefix="$exec_prefix"
6144 exec_prefix="$acl_final_exec_prefix"
6146 exec_prefix="$acl_save_exec_prefix"
6147 prefix="$acl_save_prefix"
6149 if test "X$x" = "X$element"; then
6154 if test -z "$haveit"; then
6155 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6162 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6165 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6182 ############### common
6191 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6198 $as_echo_n "(cached) " >&6
6202 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6224 if test -n "$PKG_CONFIG"; then
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6226 $as_echo "$PKG_CONFIG" >&6; }
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229 $as_echo "no" >&6; }
6234 if test -z "$ac_cv_path_PKG_CONFIG"; then
6235 ac_pt_PKG_CONFIG=$PKG_CONFIG
6236 # Extract the first word of "pkg-config", so it can be a program name with args.
6237 set dummy pkg-config; ac_word=$2
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6239 $as_echo_n "checking for $ac_word... " >&6; }
6240 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6241 $as_echo_n "(cached) " >&6
6243 case $ac_pt_PKG_CONFIG in
6245 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6255 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6267 if test -n "$ac_pt_PKG_CONFIG"; then
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6269 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272 $as_echo "no" >&6; }
6275 if test "x$ac_pt_PKG_CONFIG" = x; then
6278 case $cross_compiling:$ac_tool_warned in
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6282 ac_tool_warned=yes ;;
6284 PKG_CONFIG=$ac_pt_PKG_CONFIG
6287 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6291 if test -n "$PKG_CONFIG"; then
6292 _pkg_min_version=0.9.0
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6294 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6295 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6297 $as_echo "yes" >&6; }
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
6307 $as_echo_n "checking for X11... " >&6; }
6309 if test -n "$X11_CFLAGS"; then
6310 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
6311 elif test -n "$PKG_CONFIG"; then
6312 if test -n "$PKG_CONFIG" && \
6313 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6314 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
6316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6317 test $ac_status = 0; }; then
6318 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
6319 test "x$?" != "x0" && pkg_failed=yes
6326 if test -n "$X11_LIBS"; then
6327 pkg_cv_X11_LIBS="$X11_LIBS"
6328 elif test -n "$PKG_CONFIG"; then
6329 if test -n "$PKG_CONFIG" && \
6330 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6331 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
6333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6334 test $ac_status = 0; }; then
6335 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
6336 test "x$?" != "x0" && pkg_failed=yes
6346 if test $pkg_failed = yes; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6350 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6351 _pkg_short_errors_supported=yes
6353 _pkg_short_errors_supported=no
6355 if test $_pkg_short_errors_supported = yes; then
6356 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
6358 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
6360 # Put the nasty error message in config.log where it belongs
6361 echo "$X11_PKG_ERRORS" >&5
6363 as_fn_error $? "Package requirements (x11) were not met:
6367 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6368 installed software in a non-standard prefix.
6370 Alternatively, you may set the environment variables X11_CFLAGS
6371 and X11_LIBS to avoid the need to call pkg-config.
6372 See the pkg-config man page for more details." "$LINENO" 5
6373 elif test $pkg_failed = untried; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6378 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6379 is in your PATH or set the PKG_CONFIG environment variable to the full
6382 Alternatively, you may set the environment variables X11_CFLAGS
6383 and X11_LIBS to avoid the need to call pkg-config.
6384 See the pkg-config man page for more details.
6386 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6387 See \`config.log' for more details" "$LINENO" 5; }
6389 X11_CFLAGS=$pkg_cv_X11_CFLAGS
6390 X11_LIBS=$pkg_cv_X11_LIBS
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6392 $as_echo "yes" >&6; }
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
6401 $as_echo_n "checking for XEXT... " >&6; }
6403 if test -n "$XEXT_CFLAGS"; then
6404 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
6405 elif test -n "$PKG_CONFIG"; then
6406 if test -n "$PKG_CONFIG" && \
6407 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
6408 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
6410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411 test $ac_status = 0; }; then
6412 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
6413 test "x$?" != "x0" && pkg_failed=yes
6420 if test -n "$XEXT_LIBS"; then
6421 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
6422 elif test -n "$PKG_CONFIG"; then
6423 if test -n "$PKG_CONFIG" && \
6424 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
6425 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
6427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6428 test $ac_status = 0; }; then
6429 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
6430 test "x$?" != "x0" && pkg_failed=yes
6440 if test $pkg_failed = yes; then
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 $as_echo "no" >&6; }
6444 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6445 _pkg_short_errors_supported=yes
6447 _pkg_short_errors_supported=no
6449 if test $_pkg_short_errors_supported = yes; then
6450 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
6452 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
6454 # Put the nasty error message in config.log where it belongs
6455 echo "$XEXT_PKG_ERRORS" >&5
6457 as_fn_error $? "Package requirements (xext) were not met:
6461 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6462 installed software in a non-standard prefix.
6464 Alternatively, you may set the environment variables XEXT_CFLAGS
6465 and XEXT_LIBS to avoid the need to call pkg-config.
6466 See the pkg-config man page for more details." "$LINENO" 5
6467 elif test $pkg_failed = untried; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6472 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6473 is in your PATH or set the PKG_CONFIG environment variable to the full
6476 Alternatively, you may set the environment variables XEXT_CFLAGS
6477 and XEXT_LIBS to avoid the need to call pkg-config.
6478 See the pkg-config man page for more details.
6480 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6481 See \`config.log' for more details" "$LINENO" 5; }
6483 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
6484 XEXT_LIBS=$pkg_cv_XEXT_LIBS
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6486 $as_echo "yes" >&6; }
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
6496 $as_echo_n "checking for GTK... " >&6; }
6498 if test -n "$GTK_CFLAGS"; then
6499 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
6500 elif test -n "$PKG_CONFIG"; then
6501 if test -n "$PKG_CONFIG" && \
6502 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
6503 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
6505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6506 test $ac_status = 0; }; then
6507 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
6508 test "x$?" != "x0" && pkg_failed=yes
6515 if test -n "$GTK_LIBS"; then
6516 pkg_cv_GTK_LIBS="$GTK_LIBS"
6517 elif test -n "$PKG_CONFIG"; then
6518 if test -n "$PKG_CONFIG" && \
6519 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
6520 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
6522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6523 test $ac_status = 0; }; then
6524 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
6525 test "x$?" != "x0" && pkg_failed=yes
6535 if test $pkg_failed = yes; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6539 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6540 _pkg_short_errors_supported=yes
6542 _pkg_short_errors_supported=no
6544 if test $_pkg_short_errors_supported = yes; then
6545 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
6547 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
6549 # Put the nasty error message in config.log where it belongs
6550 echo "$GTK_PKG_ERRORS" >&5
6552 as_fn_error $? "Package requirements (gtk+-3.0) were not met:
6556 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6557 installed software in a non-standard prefix.
6559 Alternatively, you may set the environment variables GTK_CFLAGS
6560 and GTK_LIBS to avoid the need to call pkg-config.
6561 See the pkg-config man page for more details." "$LINENO" 5
6562 elif test $pkg_failed = untried; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6567 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6568 is in your PATH or set the PKG_CONFIG environment variable to the full
6571 Alternatively, you may set the environment variables GTK_CFLAGS
6572 and GTK_LIBS to avoid the need to call pkg-config.
6573 See the pkg-config man page for more details.
6575 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6576 See \`config.log' for more details" "$LINENO" 5; }
6578 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
6579 GTK_LIBS=$pkg_cv_GTK_LIBS
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6581 $as_echo "yes" >&6; }
6584 # ensure that only allowed headers are included
6585 GTK_CFLAGS+=" -DGTK_DISABLE_SINGLE_INCLUDES "
6586 # ensure that no gtk deprecated symbols are used
6587 GTK_CFLAGS+=" -DGDK_DISABLE_DEPRECATED "
6588 GTK_CFLAGS+=" -DGTK_DISABLE_DEPRECATED "
6589 # ensure use of accessors
6590 GTK_CFLAGS+=" -DGSEAL_ENABLE "
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
6599 $as_echo_n "checking for JSON... " >&6; }
6601 if test -n "$JSON_CFLAGS"; then
6602 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
6603 elif test -n "$PKG_CONFIG"; then
6604 if test -n "$PKG_CONFIG" && \
6605 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
6606 ($PKG_CONFIG --exists --print-errors "json") 2>&5
6608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609 test $ac_status = 0; }; then
6610 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
6611 test "x$?" != "x0" && pkg_failed=yes
6618 if test -n "$JSON_LIBS"; then
6619 pkg_cv_JSON_LIBS="$JSON_LIBS"
6620 elif test -n "$PKG_CONFIG"; then
6621 if test -n "$PKG_CONFIG" && \
6622 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
6623 ($PKG_CONFIG --exists --print-errors "json") 2>&5
6625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6626 test $ac_status = 0; }; then
6627 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
6628 test "x$?" != "x0" && pkg_failed=yes
6638 if test $pkg_failed = yes; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 $as_echo "no" >&6; }
6642 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6643 _pkg_short_errors_supported=yes
6645 _pkg_short_errors_supported=no
6647 if test $_pkg_short_errors_supported = yes; then
6648 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
6650 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
6652 # Put the nasty error message in config.log where it belongs
6653 echo "$JSON_PKG_ERRORS" >&5
6655 as_fn_error $? "Package requirements (json) were not met:
6659 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6660 installed software in a non-standard prefix.
6662 Alternatively, you may set the environment variables JSON_CFLAGS
6663 and JSON_LIBS to avoid the need to call pkg-config.
6664 See the pkg-config man page for more details." "$LINENO" 5
6665 elif test $pkg_failed = untried; then
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6670 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6671 is in your PATH or set the PKG_CONFIG environment variable to the full
6674 Alternatively, you may set the environment variables JSON_CFLAGS
6675 and JSON_LIBS to avoid the need to call pkg-config.
6676 See the pkg-config man page for more details.
6678 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6679 See \`config.log' for more details" "$LINENO" 5; }
6681 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
6682 JSON_LIBS=$pkg_cv_JSON_LIBS
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6684 $as_echo "yes" >&6; }
6690 ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile src/glade/Makefile tests/Makefile"
6693 for ac_prog in help2man
6695 # Extract the first word of "$ac_prog", so it can be a program name with args.
6696 set dummy $ac_prog; ac_word=$2
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if ${ac_cv_prog_HELP2MAN+:} false; then :
6700 $as_echo_n "(cached) " >&6
6702 if test -n "$HELP2MAN"; then
6703 ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_HELP2MAN="$ac_prog"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 HELP2MAN=$ac_cv_prog_HELP2MAN
6723 if test -n "$HELP2MAN"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
6725 $as_echo "$HELP2MAN" >&6; }
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6732 test -n "$HELP2MAN" && break
6736 # Extract the first word of "cppcheck", so it can be a program name with args.
6737 set dummy cppcheck; ac_word=$2
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6739 $as_echo_n "checking for $ac_word... " >&6; }
6740 if ${ac_cv_prog_HAVE_CPPCHECK+:} false; then :
6741 $as_echo_n "(cached) " >&6
6743 if test -n "$HAVE_CPPCHECK"; then
6744 ac_cv_prog_HAVE_CPPCHECK="$HAVE_CPPCHECK" # Let the user override the test.
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6753 ac_cv_prog_HAVE_CPPCHECK="yes"
6754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 HAVE_CPPCHECK=$ac_cv_prog_HAVE_CPPCHECK
6764 if test -n "$HAVE_CPPCHECK"; then
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CPPCHECK" >&5
6766 $as_echo "$HAVE_CPPCHECK" >&6; }
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769 $as_echo "no" >&6; }
6773 if test -n "$HAVE_CPPCHECK"; then
6782 cat >confcache <<\_ACEOF
6783 # This file is a shell script that caches the results of configure
6784 # tests run on this system so they can be shared between configure
6785 # scripts and configure runs, see configure's option --config-cache.
6786 # It is not useful on other systems. If it contains results you don't
6787 # want to keep, you may remove or edit it.
6789 # config.status only pays attention to the cache file if you give it
6790 # the --recheck option to rerun configure.
6792 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6793 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6798 # The following way of writing the cache mishandles newlines in values,
6799 # but we know of no workaround that is simple, portable, and efficient.
6800 # So, we kill variables containing newlines.
6801 # Ultrix sh set writes to stderr and can't be redirected directly,
6802 # and sets the high bit in the cache file unless we assign to the vars.
6804 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6805 eval ac_val=\$$ac_var
6809 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6810 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6813 _ | IFS | as_nl) ;; #(
6814 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6815 *) { eval $ac_var=; unset $ac_var;} ;;
6821 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6822 *${as_nl}ac_space=\ *)
6823 # `set' does not quote correctly, so add quotes: double-quote
6824 # substitution turns \\\\ into \\, and sed turns \\ into \.
6827 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6830 # `set' quotes correctly as required by POSIX, so do not add quotes.
6831 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6840 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6842 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6844 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6845 if test -w "$cache_file"; then
6846 if test "x$cache_file" != "x/dev/null"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6848 $as_echo "$as_me: updating cache $cache_file" >&6;}
6849 if test ! -f "$cache_file" || test -h "$cache_file"; then
6850 cat confcache >"$cache_file"
6852 case $cache_file in #(
6854 mv -f confcache "$cache_file"$$ &&
6855 mv -f "$cache_file"$$ "$cache_file" ;; #(
6857 mv -f confcache "$cache_file" ;;
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6863 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6868 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6869 # Let make expand exec_prefix.
6870 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6872 DEFS=-DHAVE_CONFIG_H
6877 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6878 # 1. Remove the extension, and $U if already installed.
6879 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6880 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6881 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6882 # will be set to the directory where LIBOBJS objects are built.
6883 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6884 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6888 LTLIBOBJS=$ac_ltlibobjs
6891 if test -n "$EXEEXT"; then
6893 am__EXEEXT_FALSE='#'
6899 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6900 as_fn_error $? "conditional \"AMDEP\" was never defined.
6901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6903 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6904 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6907 if test -z "${CPPCHECK_TRUE}" && test -z "${CPPCHECK_FALSE}"; then
6908 as_fn_error $? "conditional \"CPPCHECK\" was never defined.
6909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6912 : "${CONFIG_STATUS=./config.status}"
6914 ac_clean_files_save=$ac_clean_files
6915 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6917 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6919 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6921 # Generated by $as_me.
6922 # Run this file to recreate the current configuration.
6923 # Compiler output produced by configure, useful for debugging
6924 # configure, is in config.log if it exists.
6930 SHELL=\${CONFIG_SHELL-$SHELL}
6933 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6934 ## -------------------- ##
6935 ## M4sh Initialization. ##
6936 ## -------------------- ##
6938 # Be more Bourne compatible
6939 DUALCASE=1; export DUALCASE # for MKS sh
6940 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6943 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6944 # is contrary to our usage. Disable this feature.
6945 alias -g '${1+"$@"}'='"$@"'
6946 setopt NO_GLOB_SUBST
6948 case `(set -o) 2>/dev/null` in #(
6960 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6961 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6962 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6963 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6964 # Prefer a ksh shell builtin over an external printf program on Solaris,
6965 # but without wasting forks for bash or zsh.
6966 if test -z "$BASH_VERSION$ZSH_VERSION" \
6967 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6968 as_echo='print -r --'
6969 as_echo_n='print -rn --'
6970 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6971 as_echo='printf %s\n'
6972 as_echo_n='printf %s'
6974 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6975 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6976 as_echo_n='/usr/ucb/echo -n'
6978 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6979 as_echo_n_body='eval
6983 expr "X$arg" : "X\\(.*\\)$as_nl";
6984 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6986 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6988 export as_echo_n_body
6989 as_echo_n='sh -c $as_echo_n_body as_echo'
6992 as_echo='sh -c $as_echo_body as_echo'
6995 # The user is always right.
6996 if test "${PATH_SEPARATOR+set}" != set; then
6998 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6999 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7006 # We need space, tab and new line, in precisely that order. Quoting is
7007 # there to prevent editors from complaining about space-tab.
7008 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7009 # splitting by setting IFS to empty value.)
7012 # Find who we are. Look in the path if we contain no directory separator.
7015 *[\\/]* ) as_myself=$0 ;;
7016 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 test -z "$as_dir" && as_dir=.
7021 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7027 # We did not find ourselves, most probably we were run as `sh COMMAND'
7028 # in which case we are not to be found in the path.
7029 if test "x$as_myself" = x; then
7032 if test ! -f "$as_myself"; then
7033 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7037 # Unset variables that we do not need and which cause bugs (e.g. in
7038 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7039 # suppresses any "Segmentation fault" message there. '((' could
7040 # trigger a bug in pdksh 5.2.14.
7041 for as_var in BASH_ENV ENV MAIL MAILPATH
7042 do eval test x\${$as_var+set} = xset \
7043 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7056 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7059 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7060 # ----------------------------------------
7061 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7062 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7063 # script with STATUS, using 1 if that was 0.
7066 as_status=$1; test $as_status -eq 0 && as_status=1
7068 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7069 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7071 $as_echo "$as_me: error: $2" >&2
7072 as_fn_exit $as_status
7076 # as_fn_set_status STATUS
7077 # -----------------------
7078 # Set $? to STATUS, without forking.
7082 } # as_fn_set_status
7086 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7096 # Portably unset VAR.
7099 { eval $1=; unset $1;}
7101 as_unset=as_fn_unset
7102 # as_fn_append VAR VALUE
7103 # ----------------------
7104 # Append the text in VALUE to the end of the definition contained in VAR. Take
7105 # advantage of any shell optimizations that allow amortized linear growth over
7106 # repeated appends, instead of the typical quadratic growth present in naive
7108 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7109 eval 'as_fn_append ()
7120 # as_fn_arith ARG...
7121 # ------------------
7122 # Perform arithmetic evaluation on the ARGs, and store the result in the
7123 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7124 # must be portable across $(()) and expr.
7125 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7126 eval 'as_fn_arith ()
7133 as_val=`expr "$@" || test $? -eq 1`
7138 if expr a : '\(a\)' >/dev/null 2>&1 &&
7139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7146 as_basename=basename
7151 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7157 as_me=`$as_basename -- "$0" ||
7158 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7159 X"$0" : 'X\(//\)$' \| \
7160 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7162 sed '/^.*\/\([^/][^/]*\)\/*$/{
7176 # Avoid depending upon Character Ranges.
7177 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7178 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7179 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7180 as_cr_digits='0123456789'
7181 as_cr_alnum=$as_cr_Letters$as_cr_digits
7183 ECHO_C= ECHO_N= ECHO_T=
7184 case `echo -n x` in #(((((
7186 case `echo 'xy\c'` in
7187 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7189 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7196 rm -f conf$$ conf$$.exe conf$$.file
7197 if test -d conf$$.dir; then
7198 rm -f conf$$.dir/conf$$.file
7201 mkdir conf$$.dir 2>/dev/null
7203 if (echo >conf$$.file) 2>/dev/null; then
7204 if ln -s conf$$.file conf$$ 2>/dev/null; then
7206 # ... but there are two gotchas:
7207 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7208 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7209 # In both cases, we have to default to `cp -pR'.
7210 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7212 elif ln conf$$.file conf$$ 2>/dev/null; then
7220 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7221 rmdir conf$$.dir 2>/dev/null
7226 # Create "$as_dir" as a directory, including parents if necessary.
7231 -*) as_dir=./$as_dir;;
7233 test -d "$as_dir" || eval $as_mkdir_p || {
7237 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7238 *) as_qdir=$as_dir;;
7240 as_dirs="'$as_qdir' $as_dirs"
7241 as_dir=`$as_dirname -- "$as_dir" ||
7242 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7243 X"$as_dir" : 'X\(//\)[^/]' \| \
7244 X"$as_dir" : 'X\(//\)$' \| \
7245 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7246 $as_echo X"$as_dir" |
7247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7264 test -d "$as_dir" && break
7266 test -z "$as_dirs" || eval "mkdir $as_dirs"
7267 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7271 if mkdir -p . 2>/dev/null; then
7272 as_mkdir_p='mkdir -p "$as_dir"'
7274 test -d ./-p && rmdir ./-p
7279 # as_fn_executable_p FILE
7280 # -----------------------
7281 # Test if FILE is an executable regular file.
7282 as_fn_executable_p ()
7284 test -f "$1" && test -x "$1"
7285 } # as_fn_executable_p
7287 as_executable_p=as_fn_executable_p
7289 # Sed expression to map a string onto a valid CPP name.
7290 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7292 # Sed expression to map a string onto a valid variable name.
7293 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7297 ## ----------------------------------- ##
7298 ## Main body of $CONFIG_STATUS script. ##
7299 ## ----------------------------------- ##
7301 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7304 # Save the log message, to keep $0 and so on meaningful, and to
7305 # report actual input values of CONFIG_FILES etc. instead of their
7306 # values after options handling.
7308 This file was extended by ptask $as_me 0.0.x, which was
7309 generated by GNU Autoconf 2.69. Invocation command line was
7311 CONFIG_FILES = $CONFIG_FILES
7312 CONFIG_HEADERS = $CONFIG_HEADERS
7313 CONFIG_LINKS = $CONFIG_LINKS
7314 CONFIG_COMMANDS = $CONFIG_COMMANDS
7317 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7322 case $ac_config_files in *"
7323 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7326 case $ac_config_headers in *"
7327 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7332 # Files that config.status was made for.
7333 config_files="$ac_config_files"
7334 config_headers="$ac_config_headers"
7335 config_commands="$ac_config_commands"
7339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7341 \`$as_me' instantiates files and other configuration actions
7342 from templates according to the current configuration. Unless the files
7343 and actions are specified as TAGs, all are instantiated by default.
7345 Usage: $0 [OPTION]... [TAG]...
7347 -h, --help print this help, then exit
7348 -V, --version print version number and configuration settings, then exit
7349 --config print configuration, then exit
7350 -q, --quiet, --silent
7351 do not print progress messages
7352 -d, --debug don't remove temporary files
7353 --recheck update $as_me by reconfiguring in the same conditions
7354 --file=FILE[:TEMPLATE]
7355 instantiate the configuration file FILE
7356 --header=FILE[:TEMPLATE]
7357 instantiate the configuration header FILE
7359 Configuration files:
7362 Configuration headers:
7365 Configuration commands:
7368 Report bugs to <jeanfi@gmail.com>.
7369 ptask home page: <http://wpitchoune.net/ptask>."
7372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7373 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7375 ptask config.status 0.0.x
7376 configured by $0, generated by GNU Autoconf 2.69,
7377 with options \\"\$ac_cs_config\\"
7379 Copyright (C) 2012 Free Software Foundation, Inc.
7380 This config.status script is free software; the Free Software Foundation
7381 gives unlimited permission to copy, distribute and modify it."
7388 test -n "\$AWK" || AWK=awk
7391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7392 # The default lists apply if the user does not specify any file.
7398 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7399 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7403 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7415 # Handling of the options.
7416 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7418 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7419 $as_echo "$ac_cs_version"; exit ;;
7420 --config | --confi | --conf | --con | --co | --c )
7421 $as_echo "$ac_cs_config"; exit ;;
7422 --debug | --debu | --deb | --de | --d | -d )
7424 --file | --fil | --fi | --f )
7427 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7428 '') as_fn_error $? "missing file argument" ;;
7430 as_fn_append CONFIG_FILES " '$ac_optarg'"
7431 ac_need_defaults=false;;
7432 --header | --heade | --head | --hea )
7435 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7437 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7438 ac_need_defaults=false;;
7440 # Conflict between --help and --header
7441 as_fn_error $? "ambiguous option: \`$1'
7442 Try \`$0 --help' for more information.";;
7443 --help | --hel | -h )
7444 $as_echo "$ac_cs_usage"; exit ;;
7445 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7446 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7450 -*) as_fn_error $? "unrecognized option: \`$1'
7451 Try \`$0 --help' for more information." ;;
7453 *) as_fn_append ac_config_targets " $1"
7454 ac_need_defaults=false ;;
7460 ac_configure_extra_args=
7462 if $ac_cs_silent; then
7464 ac_configure_extra_args="$ac_configure_extra_args --silent"
7468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7469 if \$ac_cs_recheck; then
7470 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7472 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7473 CONFIG_SHELL='$SHELL'
7479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7483 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7484 ## Running $as_me. ##
7490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7494 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7495 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
7496 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
7497 # from automake < 1.5.
7498 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
7499 # Capture the value of LINGUAS because we need it to compute CATALOGS.
7500 LINGUAS="${LINGUAS-%UNSET%}"
7505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7507 # Handling of arguments.
7508 for ac_config_target in $ac_config_targets
7510 case $ac_config_target in
7511 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7512 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7513 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
7514 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7515 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
7516 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7517 "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
7518 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
7520 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7525 # If the user did not use the arguments to specify the items to instantiate,
7526 # then the envvar interface is used. Set only those that are not.
7527 # We use the long form for the default assignment because of an extremely
7528 # bizarre bug on SunOS 4.1.3.
7529 if $ac_need_defaults; then
7530 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7531 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7532 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7535 # Have a temporary directory for convenience. Make it in the build tree
7536 # simply because there is no reason against having it here, and in addition,
7537 # creating and moving files from /tmp can sometimes cause problems.
7538 # Hook for its removal unless debugging.
7539 # Note that there is a small window in which the directory will not be cleaned:
7540 # after its creation but before its name has been assigned to `$tmp'.
7544 trap 'exit_status=$?
7546 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7548 trap 'as_fn_exit 1' 1 2 13 15
7550 # Create a (secure) tmp directory for tmp files.
7553 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7557 tmp=./conf$$-$RANDOM
7558 (umask 077 && mkdir "$tmp")
7559 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7562 # Set up the scripts for CONFIG_FILES section.
7563 # No need to generate them if there are no CONFIG_FILES.
7564 # This happens for instance with `./config.status config.h'.
7565 if test -n "$CONFIG_FILES"; then
7568 ac_cr=`echo X | tr X '\015'`
7569 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7570 # But we know of no other shell where ac_cr would be empty at this
7571 # point, so we can use a bashism as a fallback.
7572 if test "x$ac_cr" = x; then
7573 eval ac_cr=\$\'\\r\'
7575 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7576 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7582 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7587 echo "cat >conf$$subs.awk <<_ACEOF" &&
7588 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7591 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7592 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7594 for ac_last_try in false false false false false :; do
7595 . ./conf$$subs.sh ||
7596 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7598 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7599 if test $ac_delim_n = $ac_delim_num; then
7601 elif $ac_last_try; then
7602 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7604 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7610 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7614 s/^/S["/; s/!.*/"]=/
7624 s/\(.\{148\}\)..*/\1/
7626 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7631 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7638 s/\(.\{148\}\)..*/\1/
7640 s/["\\]/\\&/g; s/^/"/; s/$/"/
7644 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7649 ' <conf$$subs.awk | sed '
7654 ' >>$CONFIG_STATUS || ac_write_fail=1
7655 rm -f conf$$subs.awk
7656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7658 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7659 for (key in S) S_is_set[key] = 1
7665 nfields = split(line, field, "@")
7667 len = length(field[1])
7668 for (i = 2; i < nfields; i++) {
7670 keylen = length(key)
7671 if (S_is_set[key]) {
7673 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7674 len += length(value) + length(field[++i])
7685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7686 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7687 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7690 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7691 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7694 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7695 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7696 # trailing colons and then remove the whole line if VPATH becomes empty
7697 # (actually we leave an empty line to preserve line numbers).
7698 if test "x$srcdir" = x.; then
7699 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7718 fi # test -n "$CONFIG_FILES"
7720 # Set up the scripts for CONFIG_HEADERS section.
7721 # No need to generate them if there are no CONFIG_HEADERS.
7722 # This happens for instance with `./config.status Makefile'.
7723 if test -n "$CONFIG_HEADERS"; then
7724 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7728 # Transform confdefs.h into an awk script `defines.awk', embedded as
7729 # here-document in config.status, that substitutes the proper values into
7730 # config.h.in to produce config.h.
7732 # Create a delimiter string that does not exist in confdefs.h, to ease
7733 # handling of long lines.
7735 for ac_last_try in false false :; do
7736 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7737 if test -z "$ac_tt"; then
7739 elif $ac_last_try; then
7740 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7742 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7746 # For the awk script, D is an array of macro values keyed by name,
7747 # likewise P contains macro parameters if any. Preserve backslash
7748 # newline sequences.
7750 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7752 s/.\{148\}/&'"$ac_delim"'/g
7755 s/^[ ]*#[ ]*define[ ][ ]*/ /
7762 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7764 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7768 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7769 D["\1"]=" \3\\\\\\n"\\/p
7771 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7776 s/.\{148\}/&'"$ac_delim"'/g
7781 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7784 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7786 ' <confdefs.h | sed '
7787 s/'"$ac_delim"'/"\\\
7788 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7791 for (key in D) D_is_set[key] = 1
7794 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7796 split(line, arg, " ")
7797 if (arg[1] == "#") {
7801 defundef = substr(arg[1], 2)
7804 split(mac1, mac2, "(") #)
7806 prefix = substr(line, 1, index(line, defundef) - 1)
7807 if (D_is_set[macro]) {
7808 # Preserve the white space surrounding the "#".
7809 print prefix "define", macro P[macro] D[macro]
7812 # Replace #undef with comments. This is necessary, for example,
7813 # in the case of _POSIX_SOURCE, which is predefined and required
7814 # on some systems where configure will not decide to define it.
7815 if (defundef == "undef") {
7816 print "/*", prefix defundef, macro, "*/"
7824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7825 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7826 fi # test -n "$CONFIG_HEADERS"
7829 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7834 :[FHLC]) ac_mode=$ac_tag; continue;;
7836 case $ac_mode$ac_tag in
7838 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7839 :[FH]-) ac_tag=-:-;;
7840 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7857 -) ac_f="$ac_tmp/stdin";;
7858 *) # Look for the file first in the build tree, then in the source tree
7859 # (if the path is not absolute). The absolute path cannot be DOS-style,
7860 # because $ac_f cannot contain `:'.
7864 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7866 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7868 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7869 as_fn_append ac_file_inputs " '$ac_f'"
7872 # Let's still pretend it is `configure' which instantiates (i.e., don't
7873 # use $as_me), people would be surprised to read:
7874 # /* config.h. Generated by config.status. */
7875 configure_input='Generated from '`
7876 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7878 if test x"$ac_file" != x-; then
7879 configure_input="$ac_file. $configure_input"
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7881 $as_echo "$as_me: creating $ac_file" >&6;}
7883 # Neutralize special characters interpreted by sed in replacement strings.
7884 case $configure_input in #(
7885 *\&* | *\|* | *\\* )
7886 ac_sed_conf_input=`$as_echo "$configure_input" |
7887 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7888 *) ac_sed_conf_input=$configure_input;;
7892 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7893 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7898 ac_dir=`$as_dirname -- "$ac_file" ||
7899 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7900 X"$ac_file" : 'X\(//\)[^/]' \| \
7901 X"$ac_file" : 'X\(//\)$' \| \
7902 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7903 $as_echo X"$ac_file" |
7904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7921 as_dir="$ac_dir"; as_fn_mkdir_p
7925 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7927 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7928 # A ".." for each directory in $ac_dir_suffix.
7929 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7930 case $ac_top_builddir_sub in
7931 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7932 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7935 ac_abs_top_builddir=$ac_pwd
7936 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7937 # for backward compatibility:
7938 ac_top_builddir=$ac_top_build_prefix
7941 .) # We are building in place.
7943 ac_top_srcdir=$ac_top_builddir_sub
7944 ac_abs_top_srcdir=$ac_pwd ;;
7945 [\\/]* | ?:[\\/]* ) # Absolute name.
7946 ac_srcdir=$srcdir$ac_dir_suffix;
7947 ac_top_srcdir=$srcdir
7948 ac_abs_top_srcdir=$srcdir ;;
7950 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7951 ac_top_srcdir=$ac_top_build_prefix$srcdir
7952 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7954 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7964 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7965 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7969 [\\/$]* | ?:[\\/]* ) ;;
7970 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7975 # If the template does not know about datarootdir, expand it.
7976 # FIXME: This hack should be removed a few years after 2.60.
7977 ac_datarootdir_hack=; ac_datarootdir_seen=
7988 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7989 *datarootdir*) ac_datarootdir_seen=yes;;
7990 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7992 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7995 ac_datarootdir_hack='
7996 s&@datadir@&$datadir&g
7997 s&@docdir@&$docdir&g
7998 s&@infodir@&$infodir&g
7999 s&@localedir@&$localedir&g
8000 s&@mandir@&$mandir&g
8001 s&\\\${datarootdir}&$datarootdir&g' ;;
8005 # Neutralize VPATH when `$srcdir' = `.'.
8006 # Shell code in configure.ac might set extrasub.
8007 # FIXME: do we really want to maintain this feature?
8008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8009 ac_sed_extra="$ac_vpsub
8012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8014 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8015 s|@configure_input@|$ac_sed_conf_input|;t t
8016 s&@top_builddir@&$ac_top_builddir_sub&;t t
8017 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8018 s&@srcdir@&$ac_srcdir&;t t
8019 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8020 s&@top_srcdir@&$ac_top_srcdir&;t t
8021 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8022 s&@builddir@&$ac_builddir&;t t
8023 s&@abs_builddir@&$ac_abs_builddir&;t t
8024 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8025 s&@INSTALL@&$ac_INSTALL&;t t
8026 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8027 $ac_datarootdir_hack
8029 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8030 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8032 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8033 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8034 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8035 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8037 which seems to be undefined. Please make sure it is defined" >&5
8038 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8039 which seems to be undefined. Please make sure it is defined" >&2;}
8041 rm -f "$ac_tmp/stdin"
8043 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8044 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8046 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8052 if test x"$ac_file" != x-; then
8054 $as_echo "/* $configure_input */" \
8055 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8056 } >"$ac_tmp/config.h" \
8057 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8058 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8060 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8063 mv "$ac_tmp/config.h" "$ac_file" \
8064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8067 $as_echo "/* $configure_input */" \
8068 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8069 || as_fn_error $? "could not create -" "$LINENO" 5
8071 # Compute "$ac_file"'s index in $config_headers.
8074 for _am_header in $config_headers :; do
8076 $_am_arg | $_am_arg:* )
8079 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8082 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8083 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8084 X"$_am_arg" : 'X\(//\)[^/]' \| \
8085 X"$_am_arg" : 'X\(//\)$' \| \
8086 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8087 $as_echo X"$_am_arg" |
8088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8104 s/.*/./; q'`/stamp-h$_am_stamp_count
8107 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8108 $as_echo "$as_me: executing $ac_file commands" >&6;}
8113 case $ac_file$ac_mode in
8114 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8115 # Autoconf 2.62 quotes --file arguments for eval, but not when files
8116 # are listed without --file. Let's play safe and only enable the eval
8117 # if we detect the quoting.
8118 case $CONFIG_FILES in
8119 *\'*) eval set x "$CONFIG_FILES" ;;
8120 *) set x $CONFIG_FILES ;;
8125 # Strip MF so we end up with the name of the file.
8126 mf=`echo "$mf" | sed -e 's/:.*$//'`
8127 # Check whether this is an Automake generated Makefile or not.
8128 # We used to match only the files named `Makefile.in', but
8129 # some people rename them; so instead we look at the file content.
8130 # Grep'ing the first line is not enough: some people post-process
8131 # each Makefile.in and add a new line on top of each file to say so.
8132 # Grep'ing the whole file is not good either: AIX grep has a line
8133 # limit of 2048, but all sed's we know have understand at least 4000.
8134 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8135 dirpart=`$as_dirname -- "$mf" ||
8136 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8137 X"$mf" : 'X\(//\)[^/]' \| \
8138 X"$mf" : 'X\(//\)$' \| \
8139 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8161 # Extract the definition of DEPDIR, am__include, and am__quote
8162 # from the Makefile without running `make'.
8163 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8164 test -z "$DEPDIR" && continue
8165 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8166 test -z "am__include" && continue
8167 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8168 # When using ansi2knr, U may be empty or an underscore; expand it
8169 U=`sed -n 's/^U = //p' < "$mf"`
8170 # Find all dependency output files, they are included files with
8171 # $(DEPDIR) in their names. We invoke sed twice because it is the
8172 # simplest approach to changing $(DEPDIR) to its actual value in the
8174 for file in `sed -n "
8175 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8176 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8177 # Make sure the directory exists.
8178 test -f "$dirpart/$file" && continue
8179 fdir=`$as_dirname -- "$file" ||
8180 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8181 X"$file" : 'X\(//\)[^/]' \| \
8182 X"$file" : 'X\(//\)$' \| \
8183 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8202 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8203 # echo "creating $dirpart/$file"
8204 echo '# dummy' > "$dirpart/$file"
8210 for ac_file in $CONFIG_FILES; do
8211 # Support "outfile[:infile[:infile...]]"
8213 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8215 # PO directories have a Makefile.in generated from Makefile.in.in.
8216 case "$ac_file" in */Makefile.in)
8217 # Adjust a relative srcdir.
8218 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8219 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8220 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8221 # In autoconf-2.13 it is called $ac_given_srcdir.
8222 # In autoconf-2.50 it is called $srcdir.
8223 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8224 case "$ac_given_srcdir" in
8225 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8226 /*) top_srcdir="$ac_given_srcdir" ;;
8227 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8229 # Treat a directory as a PO directory if and only if it has a
8230 # POTFILES.in file. This allows packages to have multiple PO
8231 # directories under different names or in different locations.
8232 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8233 rm -f "$ac_dir/POTFILES"
8234 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8235 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8236 POMAKEFILEDEPS="POTFILES.in"
8237 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
8238 # on $ac_dir but don't depend on user-specified configuration
8240 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8241 # The LINGUAS file contains the set of available languages.
8242 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8243 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
8245 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8246 # Hide the ALL_LINGUAS assigment from automake < 1.5.
8247 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8248 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8250 # The set of available languages was given in configure.in.
8251 # Hide the ALL_LINGUAS assigment from automake < 1.5.
8252 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8255 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
8256 # Compute UPDATEPOFILES
8257 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
8258 # Compute DUMMYPOFILES
8259 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
8261 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
8262 case "$ac_given_srcdir" in
8264 *) srcdirpre='$(srcdir)/' ;;
8270 for lang in $ALL_LINGUAS; do
8271 POFILES="$POFILES $srcdirpre$lang.po"
8272 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8273 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8274 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8276 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8277 # environment variable.
8279 if test -n "$ALL_LINGUAS"; then
8280 for presentlang in $ALL_LINGUAS; do
8282 if test "%UNSET%" != "$LINGUAS"; then
8283 desiredlanguages="$LINGUAS"
8285 desiredlanguages="$ALL_LINGUAS"
8287 for desiredlang in $desiredlanguages; do
8288 # Use the presentlang catalog if desiredlang is
8289 # a. equal to presentlang, or
8290 # b. a variant of presentlang (because in this case,
8291 # presentlang can be used as a fallback for messages
8292 # which are not translated in the desiredlang catalog).
8293 case "$desiredlang" in
8294 "$presentlang"*) useit=yes;;
8297 if test $useit = yes; then
8298 INST_LINGUAS="$INST_LINGUAS $presentlang"
8303 if test -n "$INST_LINGUAS"; then
8304 for lang in $INST_LINGUAS; do
8305 CATALOGS="$CATALOGS $lang.gmo"
8308 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8309 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"
8310 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
8311 if test -f "$f"; then
8313 *.orig | *.bak | *~) ;;
8314 *) cat "$f" >> "$ac_dir/Makefile" ;;
8329 ac_clean_files=$ac_clean_files_save
8331 test $ac_write_fail = 0 ||
8332 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8335 # configure is writing to config.log, and then calls config.status.
8336 # config.status does its own redirection, appending to config.log.
8337 # Unfortunately, on DOS this fails, as config.log is still kept open
8338 # by configure, so config.status won't be able to write to it; its
8339 # output is simply discarded. So we exec the FD to /dev/null,
8340 # effectively closing config.log, so it can be properly (re)opened and
8341 # appended to by config.status. When coming back to configure, we
8342 # need to make the FD available again.
8343 if test "$no_create" != yes; then
8345 ac_config_status_args=
8346 test "$silent" = yes &&
8347 ac_config_status_args="$ac_config_status_args --quiet"
8349 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8351 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8352 # would make configure fail if this is the last instruction.
8353 $ac_cs_success || as_fn_exit 1
8355 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8357 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}