2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ptask 0.0.5.
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.5'
584 PACKAGE_STRING='ptask 0.0.5'
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
601 GSETTINGS_DISABLE_SCHEMAS_COMPILE
632 XGETTEXT_EXTRA_OPTIONS
640 GETTEXT_MACRO_VERSION
673 INSTALL_STRIP_PROGRAM
715 program_transform_name
728 enable_option_checking
730 enable_dependency_tracking
737 enable_schemas_compile
739 ac_precious_vars='build_alias
762 # Initialize some variables set by options.
764 ac_init_version=false
765 ac_unrecognized_opts=
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
776 program_transform_name=s,x,x,
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
801 infodir='${datarootdir}/info'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
814 # If the previous option needs an argument, assign it.
815 if test -n "$ac_prev"; then
816 eval $ac_prev=\$ac_option
822 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827 # Accept the important Cygnus configure options, so we can diagnose typos.
829 case $ac_dashdash$ac_option in
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
851 cache_file=config.cache ;;
853 -datadir | --datadir | --datadi | --datad)
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error $? "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
879 eval enable_$ac_useropt=no ;;
881 -docdir | --docdir | --docdi | --doc | --do)
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
905 eval enable_$ac_useropt=\$ac_optarg ;;
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
920 -help | --help | --hel | --he | -h)
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936 htmldir=$ac_optarg ;;
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
950 -libdir | --libdir | --libdi | --libd)
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
962 -localedir | --localedir | --localedi | --localed | --locale)
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
980 # Obsolete; use --without-fp.
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1041 -psdir | --psdir | --psdi | --psd | --ps)
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054 sbindir=$ac_optarg ;;
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065 sharedstatedir=$ac_optarg ;;
1067 -site | --site | --sit)
1069 -site=* | --site=* | --sit=*)
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error $? "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1109 eval with_$ac_useropt=\$ac_optarg ;;
1111 -without-* | --without-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1125 eval with_$ac_useropt=no ;;
1128 # Obsolete; use --with-x.
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1145 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1146 Try \`$0 --help' for more information"
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1160 # FIXME: should be removed in autoconf 3.0.
1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1170 if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 as_fn_error $? "missing argument to $ac_option"
1175 if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1178 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1183 # Check all directory arguments for consistency.
1184 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1196 # Be sure to have absolute directory names.
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1201 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1209 target=$target_alias
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 elif test "x$build_alias" != "x$host_alias"; then
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223 test "$silent" = yes && exec 6>/dev/null
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229 as_fn_error $? "working directory cannot be determined"
1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231 as_fn_error $? "pwd does not report name of working directory"
1234 # Find the source files, if location was not specified.
1235 if test -z "$srcdir"; then
1236 ac_srcdir_defaulted=yes
1237 # Try the directory containing this script, then the parent directory.
1238 ac_confdir=`$as_dirname -- "$as_myself" ||
1239 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1240 X"$as_myself" : 'X\(//\)[^/]' \| \
1241 X"$as_myself" : 'X\(//\)$' \| \
1242 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1243 $as_echo X"$as_myself" |
1244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1266 ac_srcdir_defaulted=no
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1270 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1272 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1274 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1276 # When building in place, set srcdir=.
1277 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 # Remove unnecessary trailing slashes from srcdir.
1281 # Double slashes in file names in object file debugging info
1282 # mess up M-x gdb in Emacs.
1284 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286 for ac_var in $ac_precious_vars; do
1287 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_env_${ac_var}_value=\$${ac_var}
1289 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294 # Report the --help message.
1296 if test "$ac_init_help" = "long"; then
1297 # Omit some internal or obsolete options to make the list less imposing.
1298 # This message is too long to be a string in the A/UX 3.1 sh.
1300 \`configure' configures ptask 0.0.5 to adapt to many kinds of systems.
1302 Usage: $0 [OPTION]... [VAR=VALUE]...
1304 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305 VAR=VALUE. See below for descriptions of some of the useful variables.
1307 Defaults for the options are specified in brackets.
1310 -h, --help display this help and exit
1311 --help=short display options specific to this package
1312 --help=recursive display the short help of all the included packages
1313 -V, --version display version information and exit
1314 -q, --quiet, --silent do not print \`checking ...' messages
1315 --cache-file=FILE cache test results in FILE [disabled]
1316 -C, --config-cache alias for \`--cache-file=config.cache'
1317 -n, --no-create do not create output files
1318 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1320 Installation directories:
1321 --prefix=PREFIX install architecture-independent files in PREFIX
1322 [$ac_default_prefix]
1323 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 By default, \`make install' will install all the files in
1327 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1328 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329 for instance \`--prefix=\$HOME'.
1331 For better control, use the options below.
1333 Fine tuning of the installation directories:
1334 --bindir=DIR user executables [EPREFIX/bin]
1335 --sbindir=DIR system admin executables [EPREFIX/sbin]
1336 --libexecdir=DIR program executables [EPREFIX/libexec]
1337 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1338 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1339 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1340 --libdir=DIR object code libraries [EPREFIX/lib]
1341 --includedir=DIR C header files [PREFIX/include]
1342 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1343 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1344 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1345 --infodir=DIR info documentation [DATAROOTDIR/info]
1346 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1347 --mandir=DIR man documentation [DATAROOTDIR/man]
1348 --docdir=DIR documentation root [DATAROOTDIR/doc/ptask]
1349 --htmldir=DIR html documentation [DOCDIR]
1350 --dvidir=DIR dvi documentation [DOCDIR]
1351 --pdfdir=DIR pdf documentation [DOCDIR]
1352 --psdir=DIR ps documentation [DOCDIR]
1358 --program-prefix=PREFIX prepend PREFIX to installed program names
1359 --program-suffix=SUFFIX append SUFFIX to installed program names
1360 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1363 --x-includes=DIR X include files are in DIR
1364 --x-libraries=DIR X library files are in DIR
1367 --build=BUILD configure for building on BUILD [guessed]
1368 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1372 if test -n "$ac_init_help"; then
1373 case $ac_init_help in
1374 short | recursive ) echo "Configuration of ptask 0.0.5:";;
1379 --disable-option-checking ignore unrecognized --enable/--with options
1380 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1381 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1382 --enable-silent-rules less verbose build output (undo: "make V=1")
1383 --disable-silent-rules verbose build output (undo: "make V=0")
1384 --enable-dependency-tracking
1385 do not reject slow dependency extractors
1386 --disable-dependency-tracking
1387 speeds up one-time build
1388 --disable-nls do not use Native Language Support
1389 --disable-rpath do not hardcode runtime library paths
1390 --disable-schemas-compile
1391 Disable regeneration of gschemas.compiled on install
1394 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1395 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1396 --with-x use the X Window System
1397 --with-gnu-ld assume the C compiler uses GNU ld default=no
1398 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1399 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1400 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1401 --without-libintl-prefix don't search for libintl in includedir and libdir
1403 Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
1408 LIBS libraries to pass to the linker, e.g. -l<library>
1409 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
1411 XMKMF Path to xmkmf, Makefile generator for X Window System
1413 PKG_CONFIG path to pkg-config utility
1415 directories to add to pkg-config's search path
1417 path overriding pkg-config's built-in search path
1418 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1419 X11_LIBS linker flags for X11, overriding pkg-config
1420 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1421 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1422 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1423 GTK_LIBS linker flags for GTK, overriding pkg-config
1424 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1425 JSON_LIBS linker flags for JSON, overriding pkg-config
1427 Use these variables to override the choices made by `configure' or to help
1428 it to find libraries and programs with nonstandard names/locations.
1430 Report bugs to <jeanfi@gmail.com>.
1431 ptask home page: <http://wpitchoune.net/ptask>.
1436 if test "$ac_init_help" = "recursive"; then
1437 # If there are subdirs, report their specific --help.
1438 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1439 test -d "$ac_dir" ||
1440 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1448 # A ".." for each directory in $ac_dir_suffix.
1449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1450 case $ac_top_builddir_sub in
1451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455 ac_abs_top_builddir=$ac_pwd
1456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457 # for backward compatibility:
1458 ac_top_builddir=$ac_top_build_prefix
1461 .) # We are building in place.
1463 ac_top_srcdir=$ac_top_builddir_sub
1464 ac_abs_top_srcdir=$ac_pwd ;;
1465 [\\/]* | ?:[\\/]* ) # Absolute name.
1466 ac_srcdir=$srcdir$ac_dir_suffix;
1467 ac_top_srcdir=$srcdir
1468 ac_abs_top_srcdir=$srcdir ;;
1470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471 ac_top_srcdir=$ac_top_build_prefix$srcdir
1472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476 cd "$ac_dir" || { ac_status=$?; continue; }
1477 # Check for guested configure.
1478 if test -f "$ac_srcdir/configure.gnu"; then
1480 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1481 elif test -f "$ac_srcdir/configure"; then
1483 $SHELL "$ac_srcdir/configure" --help=recursive
1485 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487 cd "$ac_pwd" || { ac_status=$?; break; }
1491 test -n "$ac_init_help" && exit $ac_status
1492 if $ac_init_version; then
1494 ptask configure 0.0.5
1495 generated by GNU Autoconf 2.69
1497 Copyright (C) 2012 Free Software Foundation, Inc.
1498 This configure script is free software; the Free Software Foundation
1499 gives unlimited permission to copy, distribute and modify it.
1504 ## ------------------------ ##
1505 ## Autoconf initialization. ##
1506 ## ------------------------ ##
1508 # ac_fn_c_try_compile LINENO
1509 # --------------------------
1510 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1511 ac_fn_c_try_compile ()
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 rm -f conftest.$ac_objext
1515 if { { ac_try="$ac_compile"
1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518 *) ac_try_echo=$ac_try;;
1520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521 $as_echo "$ac_try_echo"; } >&5
1522 (eval "$ac_compile") 2>conftest.err
1524 if test -s conftest.err; then
1525 grep -v '^ *+' conftest.err >conftest.er1
1526 cat conftest.er1 >&5
1527 mv -f conftest.er1 conftest.err
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } && {
1531 test -z "$ac_c_werror_flag" ||
1532 test ! -s conftest.err
1533 } && test -s conftest.$ac_objext; then :
1536 $as_echo "$as_me: failed program was:" >&5
1537 sed 's/^/| /' conftest.$ac_ext >&5
1541 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1542 as_fn_set_status $ac_retval
1544 } # ac_fn_c_try_compile
1546 # ac_fn_c_try_cpp LINENO
1547 # ----------------------
1548 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 if { { ac_try="$ac_cpp conftest.$ac_ext"
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } > conftest.i && {
1568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1569 test ! -s conftest.err
1573 $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579 as_fn_set_status $ac_retval
1583 # ac_fn_c_try_link LINENO
1584 # -----------------------
1585 # Try to link conftest.$ac_ext, and return whether this succeeded.
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 rm -f conftest.$ac_objext conftest$ac_exeext
1590 if { { ac_try="$ac_link"
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_link") 2>conftest.err
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && {
1606 test -z "$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 } && test -s conftest$ac_exeext && {
1609 test "$cross_compiling" = yes ||
1610 test -x conftest$ac_exeext
1614 $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1619 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1620 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1621 # interfere with the next link command; also delete a directory that is
1622 # left behind by Apple's compiler. We do this before executing the actions.
1623 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1627 } # ac_fn_c_try_link
1629 # ac_fn_c_try_run LINENO
1630 # ----------------------
1631 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1632 # that executables *can* be run.
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if { { ac_try="$ac_link"
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_link") 2>&5
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1647 { { case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_try") 2>&5
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; }; }; then :
1659 $as_echo "$as_me: program exited with status $ac_status" >&5
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1663 ac_retval=$ac_status
1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1670 cat >config.log <<_ACEOF
1671 This file contains any messages produced by compilers while
1672 running configure, to aid debugging if configure makes a mistake.
1674 It was created by ptask $as_me 0.0.5, which was
1675 generated by GNU Autoconf 2.69. Invocation command line was
1687 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1688 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1689 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1690 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1691 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1693 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1694 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1696 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1697 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1698 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1699 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1700 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1701 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1702 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 test -z "$as_dir" && as_dir=.
1711 $as_echo "PATH: $as_dir"
1727 # Keep a trace of the command line.
1728 # Strip out --no-create and --no-recursion so they do not pile up.
1729 # Strip out --silent because we don't want to record it for future runs.
1730 # Also quote any args containing shell meta-characters.
1731 # Make two passes to allow for proper duplicate-argument suppression.
1735 ac_must_keep_next=false
1741 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1743 | -silent | --silent | --silen | --sile | --sil)
1746 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1749 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1751 as_fn_append ac_configure_args1 " '$ac_arg'"
1752 if test $ac_must_keep_next = true; then
1753 ac_must_keep_next=false # Got value, back to normal.
1756 *=* | --config-cache | -C | -disable-* | --disable-* \
1757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1759 | -with-* | --with-* | -without-* | --without-* | --x)
1760 case "$ac_configure_args0 " in
1761 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1764 -* ) ac_must_keep_next=true ;;
1767 as_fn_append ac_configure_args " '$ac_arg'"
1772 { ac_configure_args0=; unset ac_configure_args0;}
1773 { ac_configure_args1=; unset ac_configure_args1;}
1775 # When interrupted or exit'd, cleanup temporary files, and complete
1776 # config.log. We remove comments because anyway the quotes in there
1777 # would cause problems or look ugly.
1778 # WARNING: Use '\'' to represent an apostrophe within the trap.
1779 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1780 trap 'exit_status=$?
1781 # Save into config.log some information that might help in debugging.
1785 $as_echo "## ---------------- ##
1786 ## Cache variables. ##
1787 ## ---------------- ##"
1789 # The following way of writing the cache mishandles newlines in values,
1791 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1792 eval ac_val=\$$ac_var
1796 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1797 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1800 _ | IFS | as_nl) ;; #(
1801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1802 *) { eval $ac_var=; unset $ac_var;} ;;
1807 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1808 *${as_nl}ac_space=\ *)
1810 "s/'\''/'\''\\\\'\'''\''/g;
1811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1814 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1821 $as_echo "## ----------------- ##
1822 ## Output variables. ##
1823 ## ----------------- ##"
1825 for ac_var in $ac_subst_vars
1827 eval ac_val=\$$ac_var
1829 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1831 $as_echo "$ac_var='\''$ac_val'\''"
1835 if test -n "$ac_subst_files"; then
1836 $as_echo "## ------------------- ##
1837 ## File substitutions. ##
1838 ## ------------------- ##"
1840 for ac_var in $ac_subst_files
1842 eval ac_val=\$$ac_var
1844 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846 $as_echo "$ac_var='\''$ac_val'\''"
1851 if test -s confdefs.h; then
1852 $as_echo "## ----------- ##
1859 test "$ac_signal" != 0 &&
1860 $as_echo "$as_me: caught signal $ac_signal"
1861 $as_echo "$as_me: exit $exit_status"
1863 rm -f core *.core core.conftest.* &&
1864 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1867 for ac_signal in 1 2 13 15; do
1868 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1872 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1873 rm -f -r conftest* confdefs.h
1875 $as_echo "/* confdefs.h */" > confdefs.h
1877 # Predefined preprocessor variables.
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_NAME "$PACKAGE_NAME"
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_STRING "$PACKAGE_STRING"
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_URL "$PACKAGE_URL"
1904 # Let the site file select an alternate cache file if it wants to.
1905 # Prefer an explicitly selected file to automatically selected ones.
1908 if test -n "$CONFIG_SITE"; then
1909 # We do not want a PATH search for config.site.
1910 case $CONFIG_SITE in #((
1911 -*) ac_site_file1=./$CONFIG_SITE;;
1912 */*) ac_site_file1=$CONFIG_SITE;;
1913 *) ac_site_file1=./$CONFIG_SITE;;
1915 elif test "x$prefix" != xNONE; then
1916 ac_site_file1=$prefix/share/config.site
1917 ac_site_file2=$prefix/etc/config.site
1919 ac_site_file1=$ac_default_prefix/share/config.site
1920 ac_site_file2=$ac_default_prefix/etc/config.site
1922 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1924 test "x$ac_site_file" = xNONE && continue
1925 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1927 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1928 sed 's/^/| /' "$ac_site_file" >&5
1930 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1932 as_fn_error $? "failed to load site script $ac_site_file
1933 See \`config.log' for more details" "$LINENO" 5; }
1937 if test -r "$cache_file"; then
1938 # Some versions of bash will fail to source /dev/null (special files
1939 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1940 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1942 $as_echo "$as_me: loading cache $cache_file" >&6;}
1944 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1945 *) . "./$cache_file";;
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1950 $as_echo "$as_me: creating cache $cache_file" >&6;}
1954 gt_needs="$gt_needs "
1955 # Check that the precious variables saved in the cache have kept the same
1957 ac_cache_corrupted=false
1958 for ac_var in $ac_precious_vars; do
1959 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960 eval ac_new_set=\$ac_env_${ac_var}_set
1961 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962 eval ac_new_val=\$ac_env_${ac_var}_value
1963 case $ac_old_set,$ac_new_set in
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1970 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971 ac_cache_corrupted=: ;;
1974 if test "x$ac_old_val" != "x$ac_new_val"; then
1975 # differences in whitespace do not lead to failure.
1976 ac_old_val_w=`echo x $ac_old_val`
1977 ac_new_val_w=`echo x $ac_new_val`
1978 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1980 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1981 ac_cache_corrupted=:
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1984 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1985 eval $ac_var=\$ac_old_val
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1988 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1990 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1993 # Pass precious variables to config.status.
1994 if test "$ac_new_set" = set; then
1996 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1997 *) ac_arg=$ac_var=$ac_new_val ;;
1999 case " $ac_configure_args " in
2000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2001 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2005 if $ac_cache_corrupted; then
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2009 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2010 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2012 ## -------------------- ##
2013 ## Main body of script. ##
2014 ## -------------------- ##
2017 ac_cpp='$CPP $CPPFLAGS'
2018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2024 am__api_version='1.13'
2027 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2028 if test -f "$ac_dir/install-sh"; then
2030 ac_install_sh="$ac_aux_dir/install-sh -c"
2032 elif test -f "$ac_dir/install.sh"; then
2034 ac_install_sh="$ac_aux_dir/install.sh -c"
2036 elif test -f "$ac_dir/shtool"; then
2038 ac_install_sh="$ac_aux_dir/shtool install -c"
2042 if test -z "$ac_aux_dir"; then
2043 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2046 # These three variables are undocumented and unsupported,
2047 # and are intended to be withdrawn in a future Autoconf release.
2048 # They can cause serious problems if a builder's source tree is in a directory
2049 # whose full name contains unusual characters.
2050 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2051 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2052 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2055 # Find a good install program. We prefer a C program (faster),
2056 # so one script is as good as another. But avoid the broken or
2057 # incompatible versions:
2058 # SysV /etc/install, /usr/sbin/install
2059 # SunOS /usr/etc/install
2060 # IRIX /sbin/install
2062 # AmigaOS /C/install, which installs bootblocks on floppy discs
2063 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2064 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2065 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2066 # OS/2's system install, which has a completely different semantic
2067 # ./install, which can be erroneously created by make from ./install.sh.
2068 # Reject install programs that cannot install multiple files.
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2070 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2071 if test -z "$INSTALL"; then
2072 if ${ac_cv_path_install+:} false; then :
2073 $as_echo_n "(cached) " >&6
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 test -z "$as_dir" && as_dir=.
2080 # Account for people who put trailing slashes in PATH elements.
2081 case $as_dir/ in #((
2082 ./ | .// | /[cC]/* | \
2083 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2084 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2087 # OSF1 and SCO ODT 3.0 have their own names for install.
2088 # Don't use installbsd from OSF since it installs stuff as root
2090 for ac_prog in ginstall scoinst install; do
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2093 if test $ac_prog = install &&
2094 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2095 # AIX install. It has an incompatible calling convention.
2097 elif test $ac_prog = install &&
2098 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2099 # program-specific install script used by HP pwplus--don't use.
2102 rm -rf conftest.one conftest.two conftest.dir
2103 echo one > conftest.one
2104 echo two > conftest.two
2106 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2107 test -s conftest.one && test -s conftest.two &&
2108 test -s conftest.dir/conftest.one &&
2109 test -s conftest.dir/conftest.two
2111 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2124 rm -rf conftest.one conftest.two conftest.dir
2127 if test "${ac_cv_path_install+set}" = set; then
2128 INSTALL=$ac_cv_path_install
2130 # As a last resort, use the slow shell script. Don't cache a
2131 # value for INSTALL within a source directory, because that will
2132 # break other packages using the cache if that directory is
2133 # removed, or if the value is a relative name.
2134 INSTALL=$ac_install_sh
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2138 $as_echo "$INSTALL" >&6; }
2140 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2141 # It thinks the first close brace ends the variable substitution.
2142 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2144 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2146 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2149 $as_echo_n "checking whether build environment is sane... " >&6; }
2150 # Reject unsafe characters in $srcdir or the absolute working directory
2151 # name. Accept space and tab only in the latter.
2155 *[\\\"\#\$\&\'\`$am_lf]*)
2156 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2159 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2160 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2163 # Do 'set' in a subshell so we don't clobber the current shell's
2164 # arguments. Must try -L first in case configure is actually a
2165 # symlink; some systems play weird games with the mod time of symlinks
2166 # (eg FreeBSD returns the mod time of the symlink's containing
2170 for am_try in 1 2; do
2171 echo "timestamp, slept: $am_has_slept" > conftest.file
2172 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2173 if test "$*" = "X"; then
2175 set X `ls -t "$srcdir/configure" conftest.file`
2177 if test "$*" != "X $srcdir/configure conftest.file" \
2178 && test "$*" != "X conftest.file $srcdir/configure"; then
2180 # If neither matched, then we have a broken ls. This can happen
2181 # if, for instance, CONFIG_SHELL is bash and it inherits a
2182 # broken ls alias from the environment. This has actually
2183 # happened. Such a system could not be considered "sane".
2184 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2185 alias in your environment" "$LINENO" 5
2187 if test "$2" = conftest.file || test $am_try -eq 2; then
2194 test "$2" = conftest.file
2200 as_fn_error $? "newly created file is older than distributed files!
2201 Check your system clock" "$LINENO" 5
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2204 $as_echo "yes" >&6; }
2205 # If we didn't sleep, we still need to ensure time stamps of config.status and
2206 # generated files are strictly newer.
2208 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2215 test "$program_prefix" != NONE &&
2216 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2217 # Use a double $ so make ignores it.
2218 test "$program_suffix" != NONE &&
2219 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2220 # Double any \ or $.
2221 # By default was `s,x,x', remove it if useless.
2222 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2223 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2225 # expand $ac_aux_dir to an absolute path
2226 am_aux_dir=`cd $ac_aux_dir && pwd`
2228 if test x"${MISSING+set}" != xset; then
2231 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2233 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2236 # Use eval to expand $SHELL
2237 if eval "$MISSING --is-lightweight"; then
2238 am_missing_run="$MISSING "
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2242 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2245 if test x"${install_sh}" != xset; then
2248 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2250 install_sh="\${SHELL} $am_aux_dir/install-sh"
2254 # Installed binaries are usually stripped using 'strip' when the user
2255 # run "make install-strip". However 'strip' might not be the right
2256 # tool to use in cross-compilation environments, therefore Automake
2257 # will honor the 'STRIP' environment variable to overrule this program.
2258 if test "$cross_compiling" != no; then
2259 if test -n "$ac_tool_prefix"; then
2260 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2261 set dummy ${ac_tool_prefix}strip; ac_word=$2
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2263 $as_echo_n "checking for $ac_word... " >&6; }
2264 if ${ac_cv_prog_STRIP+:} false; then :
2265 $as_echo_n "(cached) " >&6
2267 if test -n "$STRIP"; then
2268 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 test -z "$as_dir" && as_dir=.
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 STRIP=$ac_cv_prog_STRIP
2288 if test -n "$STRIP"; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2290 $as_echo "$STRIP" >&6; }
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2293 $as_echo "no" >&6; }
2298 if test -z "$ac_cv_prog_STRIP"; then
2300 # Extract the first word of "strip", so it can be a program name with args.
2301 set dummy strip; ac_word=$2
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2303 $as_echo_n "checking for $ac_word... " >&6; }
2304 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2305 $as_echo_n "(cached) " >&6
2307 if test -n "$ac_ct_STRIP"; then
2308 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 test -z "$as_dir" && as_dir=.
2315 for ac_exec_ext in '' $ac_executable_extensions; do
2316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2317 ac_cv_prog_ac_ct_STRIP="strip"
2318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2328 if test -n "$ac_ct_STRIP"; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2330 $as_echo "$ac_ct_STRIP" >&6; }
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2333 $as_echo "no" >&6; }
2336 if test "x$ac_ct_STRIP" = x; then
2339 case $cross_compiling:$ac_tool_warned in
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2343 ac_tool_warned=yes ;;
2348 STRIP="$ac_cv_prog_STRIP"
2352 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2355 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2356 if test -z "$MKDIR_P"; then
2357 if ${ac_cv_path_mkdir+:} false; then :
2358 $as_echo_n "(cached) " >&6
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2364 test -z "$as_dir" && as_dir=.
2365 for ac_prog in mkdir gmkdir; do
2366 for ac_exec_ext in '' $ac_executable_extensions; do
2367 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2368 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2369 'mkdir (GNU coreutils) '* | \
2370 'mkdir (coreutils) '* | \
2371 'mkdir (fileutils) '4.1*)
2372 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2382 test -d ./--version && rmdir ./--version
2383 if test "${ac_cv_path_mkdir+set}" = set; then
2384 MKDIR_P="$ac_cv_path_mkdir -p"
2386 # As a last resort, use the slow shell script. Don't cache a
2387 # value for MKDIR_P within a source directory, because that will
2388 # break other packages using the cache if that directory is
2389 # removed, or if the value is a relative name.
2390 MKDIR_P="$ac_install_sh -d"
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2394 $as_echo "$MKDIR_P" >&6; }
2396 for ac_prog in gawk mawk nawk awk
2398 # Extract the first word of "$ac_prog", so it can be a program name with args.
2399 set dummy $ac_prog; ac_word=$2
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2401 $as_echo_n "checking for $ac_word... " >&6; }
2402 if ${ac_cv_prog_AWK+:} false; then :
2403 $as_echo_n "(cached) " >&6
2405 if test -n "$AWK"; then
2406 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2415 ac_cv_prog_AWK="$ac_prog"
2416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 if test -n "$AWK"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2428 $as_echo "$AWK" >&6; }
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2431 $as_echo "no" >&6; }
2435 test -n "$AWK" && break
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2439 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2441 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2442 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2443 $as_echo_n "(cached) " >&6
2445 cat >conftest.make <<\_ACEOF
2448 @echo '@@@%%%=$(MAKE)=@@@%%%'
2450 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2451 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2453 eval ac_cv_prog_make_${ac_make}_set=yes;;
2455 eval ac_cv_prog_make_${ac_make}_set=no;;
2459 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2461 $as_echo "yes" >&6; }
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2465 $as_echo "no" >&6; }
2466 SET_MAKE="MAKE=${MAKE-make}"
2469 rm -rf .tst 2>/dev/null
2470 mkdir .tst 2>/dev/null
2471 if test -d .tst; then
2476 rmdir .tst 2>/dev/null
2478 # Check whether --enable-silent-rules was given.
2479 if test "${enable_silent_rules+set}" = set; then :
2480 enableval=$enable_silent_rules;
2483 case $enable_silent_rules in # (((
2484 yes) AM_DEFAULT_VERBOSITY=0;;
2485 no) AM_DEFAULT_VERBOSITY=1;;
2486 *) AM_DEFAULT_VERBOSITY=1;;
2488 am_make=${MAKE-make}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2490 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2491 if ${am_cv_make_support_nested_variables+:} false; then :
2492 $as_echo_n "(cached) " >&6
2494 if $as_echo 'TRUE=$(BAR$(V))
2500 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2501 am_cv_make_support_nested_variables=yes
2503 am_cv_make_support_nested_variables=no
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2507 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2508 if test $am_cv_make_support_nested_variables = yes; then
2510 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2512 AM_V=$AM_DEFAULT_VERBOSITY
2513 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2517 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2518 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2519 # is not polluted with repeated "-I."
2520 am__isrc=' -I$(srcdir)'
2521 # test to see if srcdir already configured
2522 if test -f $srcdir/config.status; then
2523 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2527 # test whether we have cygpath
2528 if test -z "$CYGPATH_W"; then
2529 if (cygpath --version) >/dev/null 2>/dev/null; then
2530 CYGPATH_W='cygpath -w'
2537 # Define the identity of the package.
2542 cat >>confdefs.h <<_ACEOF
2543 #define PACKAGE "$PACKAGE"
2547 cat >>confdefs.h <<_ACEOF
2548 #define VERSION "$VERSION"
2551 # Some tools Automake needs.
2553 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2556 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2559 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2562 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2565 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2567 # For better backward compatibility. To be removed once Automake 1.9.x
2568 # dies out for good. For more background, see:
2569 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2570 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2571 mkdir_p='$(MKDIR_P)'
2573 # We need awk for the "check" target. The system "awk" is bad on
2575 # Always define AMTAR for backward compatibility. Yes, it's still used
2576 # in the wild :-( We should find a proper way to deprecate it ...
2580 # We'll loop over all known methods to create a tar archive until one works.
2581 _am_tools='gnutar pax cpio none'
2583 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2592 ac_config_headers="$ac_config_headers config.h"
2595 # Checks for programs.
2597 ac_cpp='$CPP $CPPFLAGS'
2598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601 if test -n "$ac_tool_prefix"; then
2602 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2603 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if ${ac_cv_prog_CC+:} false; then :
2607 $as_echo_n "(cached) " >&6
2609 if test -n "$CC"; then
2610 ac_cv_prog_CC="$CC" # Let the user override the test.
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 if test -n "$CC"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2632 $as_echo "$CC" >&6; }
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2640 if test -z "$ac_cv_prog_CC"; then
2642 # Extract the first word of "gcc", so it can be a program name with args.
2643 set dummy gcc; ac_word=$2
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2647 $as_echo_n "(cached) " >&6
2649 if test -n "$ac_ct_CC"; then
2650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659 ac_cv_prog_ac_ct_CC="gcc"
2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2670 if test -n "$ac_ct_CC"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2672 $as_echo "$ac_ct_CC" >&6; }
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675 $as_echo "no" >&6; }
2678 if test "x$ac_ct_CC" = x; then
2681 case $cross_compiling:$ac_tool_warned in
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2685 ac_tool_warned=yes ;;
2693 if test -z "$CC"; then
2694 if test -n "$ac_tool_prefix"; then
2695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2696 set dummy ${ac_tool_prefix}cc; ac_word=$2
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if ${ac_cv_prog_CC+:} false; then :
2700 $as_echo_n "(cached) " >&6
2702 if test -n "$CC"; then
2703 ac_cv_prog_CC="$CC" # Let the user override the test.
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712 ac_cv_prog_CC="${ac_tool_prefix}cc"
2713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 if test -n "$CC"; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2725 $as_echo "$CC" >&6; }
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2734 if test -z "$CC"; then
2735 # Extract the first word of "cc", so it can be a program name with args.
2736 set dummy cc; ac_word=$2
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if ${ac_cv_prog_CC+:} false; then :
2740 $as_echo_n "(cached) " >&6
2742 if test -n "$CC"; then
2743 ac_cv_prog_CC="$CC" # Let the user override the test.
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2754 ac_prog_rejected=yes
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 if test $ac_prog_rejected = yes; then
2766 # We found a bogon in the path, so make sure we never use it.
2767 set dummy $ac_cv_prog_CC
2769 if test $# != 0; then
2770 # We chose a different compiler from the bogus one.
2771 # However, it has the same basename, so the bogon will be chosen
2772 # first if we set CC to just the basename; use the full file name.
2774 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2780 if test -n "$CC"; then
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2782 $as_echo "$CC" >&6; }
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785 $as_echo "no" >&6; }
2790 if test -z "$CC"; then
2791 if test -n "$ac_tool_prefix"; then
2792 for ac_prog in cl.exe
2794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2795 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if ${ac_cv_prog_CC+:} false; then :
2799 $as_echo_n "(cached) " >&6
2801 if test -n "$CC"; then
2802 ac_cv_prog_CC="$CC" # Let the user override the test.
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 if test -n "$CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824 $as_echo "$CC" >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2831 test -n "$CC" && break
2834 if test -z "$CC"; then
2836 for ac_prog in cl.exe
2838 # Extract the first word of "$ac_prog", so it can be a program name with args.
2839 set dummy $ac_prog; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2843 $as_echo_n "(cached) " >&6
2845 if test -n "$ac_ct_CC"; then
2846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855 ac_cv_prog_ac_ct_CC="$ac_prog"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2866 if test -n "$ac_ct_CC"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2868 $as_echo "$ac_ct_CC" >&6; }
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2875 test -n "$ac_ct_CC" && break
2878 if test "x$ac_ct_CC" = x; then
2881 case $cross_compiling:$ac_tool_warned in
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2885 ac_tool_warned=yes ;;
2894 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896 as_fn_error $? "no acceptable C compiler found in \$PATH
2897 See \`config.log' for more details" "$LINENO" 5; }
2899 # Provide some information about the compiler.
2900 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2903 for ac_option in --version -v -V -qversion; do
2904 { { ac_try="$ac_compiler $ac_option >&5"
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2910 $as_echo "$ac_try_echo"; } >&5
2911 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2913 if test -s conftest.err; then
2915 ... rest of stderr output deleted ...
2916 10q' conftest.err >conftest.er1
2917 cat conftest.er1 >&5
2919 rm -f conftest.er1 conftest.err
2920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2921 test $ac_status = 0; }
2924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2925 /* end confdefs.h. */
2935 ac_clean_files_save=$ac_clean_files
2936 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2937 # Try to create an executable without -o first, disregard a.out.
2938 # It will help us diagnose broken compilers, and finding out an intuition
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2941 $as_echo_n "checking whether the C compiler works... " >&6; }
2942 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2944 # The possible output files:
2945 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2948 for ac_file in $ac_files
2951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2952 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2957 if { { ac_try="$ac_link_default"
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2963 $as_echo "$ac_try_echo"; } >&5
2964 (eval "$ac_link_default") 2>&5
2966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2967 test $ac_status = 0; }; then :
2968 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2969 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2970 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2971 # so that the user can short-circuit this test for compilers unknown to
2973 for ac_file in $ac_files ''
2975 test -f "$ac_file" || continue
2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2980 # We found the default executable, but exeext='' is most
2984 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2986 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2988 # We set ac_cv_exeext here because the later test for it is not
2989 # safe: cross compilers may not add the suffix if given an `-o'
2990 # argument, so we may need to know it at that point already.
2991 # Even if this section looks crufty: it has the advantage of
2998 test "$ac_cv_exeext" = no && ac_cv_exeext=
3003 if test -z "$ac_file"; then :
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3006 $as_echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3011 as_fn_error 77 "C compiler cannot create executables
3012 See \`config.log' for more details" "$LINENO" 5; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3015 $as_echo "yes" >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3018 $as_echo_n "checking for C compiler default output file name... " >&6; }
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3020 $as_echo "$ac_file" >&6; }
3021 ac_exeext=$ac_cv_exeext
3023 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3024 ac_clean_files=$ac_clean_files_save
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3026 $as_echo_n "checking for suffix of executables... " >&6; }
3027 if { { ac_try="$ac_link"
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_link") 2>&5
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }; then :
3038 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3039 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3040 # work properly (i.e., refer to `conftest.exe'), while it won't with
3042 for ac_file in conftest.exe conftest conftest.*; do
3043 test -f "$ac_file" || continue
3045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3046 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3054 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3055 See \`config.log' for more details" "$LINENO" 5; }
3057 rm -f conftest conftest$ac_cv_exeext
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3059 $as_echo "$ac_cv_exeext" >&6; }
3061 rm -f conftest.$ac_ext
3062 EXEEXT=$ac_cv_exeext
3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3070 FILE *f = fopen ("conftest.out", "w");
3071 return ferror (f) || fclose (f) != 0;
3077 ac_clean_files="$ac_clean_files conftest.out"
3078 # Check that the compiler produces executables we can run. If not, either
3079 # the compiler is broken, or we cross compile.
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3081 $as_echo_n "checking whether we are cross compiling... " >&6; }
3082 if test "$cross_compiling" != yes; then
3083 { { ac_try="$ac_link"
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089 $as_echo "$ac_try_echo"; } >&5
3090 (eval "$ac_link") 2>&5
3092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3093 test $ac_status = 0; }
3094 if { ac_try='./conftest$ac_cv_exeext'
3095 { { case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100 $as_echo "$ac_try_echo"; } >&5
3101 (eval "$ac_try") 2>&5
3103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104 test $ac_status = 0; }; }; then
3107 if test "$cross_compiling" = maybe; then
3110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3112 as_fn_error $? "cannot run C compiled programs.
3113 If you meant to cross compile, use \`--host'.
3114 See \`config.log' for more details" "$LINENO" 5; }
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3119 $as_echo "$cross_compiling" >&6; }
3121 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3122 ac_clean_files=$ac_clean_files_save
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3124 $as_echo_n "checking for suffix of object files... " >&6; }
3125 if ${ac_cv_objext+:} false; then :
3126 $as_echo_n "(cached) " >&6
3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h. */
3139 rm -f conftest.o conftest.obj
3140 if { { ac_try="$ac_compile"
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3146 $as_echo "$ac_try_echo"; } >&5
3147 (eval "$ac_compile") 2>&5
3149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150 test $ac_status = 0; }; then :
3151 for ac_file in conftest.o conftest.obj conftest.*; do
3152 test -f "$ac_file" || continue;
3154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3155 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3160 $as_echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 as_fn_error $? "cannot compute suffix of object files: cannot compile
3166 See \`config.log' for more details" "$LINENO" 5; }
3168 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3171 $as_echo "$ac_cv_objext" >&6; }
3172 OBJEXT=$ac_cv_objext
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3175 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3176 if ${ac_cv_c_compiler_gnu+:} false; then :
3177 $as_echo_n "(cached) " >&6
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h. */
3193 if ac_fn_c_try_compile "$LINENO"; then :
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3203 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3204 if test $ac_compiler_gnu = yes; then
3209 ac_test_CFLAGS=${CFLAGS+set}
3210 ac_save_CFLAGS=$CFLAGS
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3212 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3213 if ${ac_cv_prog_cc_g+:} false; then :
3214 $as_echo_n "(cached) " >&6
3216 ac_save_c_werror_flag=$ac_c_werror_flag
3217 ac_c_werror_flag=yes
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3231 if ac_fn_c_try_compile "$LINENO"; then :
3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236 /* end confdefs.h. */
3246 if ac_fn_c_try_compile "$LINENO"; then :
3249 ac_c_werror_flag=$ac_save_c_werror_flag
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3262 if ac_fn_c_try_compile "$LINENO"; then :
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 ac_c_werror_flag=$ac_save_c_werror_flag
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3273 $as_echo "$ac_cv_prog_cc_g" >&6; }
3274 if test "$ac_test_CFLAGS" = set; then
3275 CFLAGS=$ac_save_CFLAGS
3276 elif test $ac_cv_prog_cc_g = yes; then
3277 if test "$GCC" = yes; then
3283 if test "$GCC" = yes; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3290 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3291 if ${ac_cv_prog_cc_c89+:} false; then :
3292 $as_echo_n "(cached) " >&6
3294 ac_cv_prog_cc_c89=no
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3301 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3302 struct buf { int x; };
3303 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3304 static char *e (p, i)
3310 static char *f (char * (*g) (char **, int), char **p, ...)
3315 s = g (p, va_arg (v,int));
3320 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3321 function prototypes and stuff, but not '\xHH' hex character constants.
3322 These don't provoke an error unfortunately, instead are silently treated
3323 as 'x'. The following induces an error, until -std is added to get
3324 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3325 array size at least. It's necessary to write '\x00'==0 to get something
3326 that's true only with -std. */
3327 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3329 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3330 inside strings and character constants. */
3332 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3334 int test (int i, double x);
3335 struct s1 {int (*f) (int a);};
3336 struct s2 {int (*f) (double a);};
3337 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3343 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3348 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3349 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3351 CC="$ac_save_CC $ac_arg"
3352 if ac_fn_c_try_compile "$LINENO"; then :
3353 ac_cv_prog_cc_c89=$ac_arg
3355 rm -f core conftest.err conftest.$ac_objext
3356 test "x$ac_cv_prog_cc_c89" != "xno" && break
3358 rm -f conftest.$ac_ext
3363 case "x$ac_cv_prog_cc_c89" in
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3366 $as_echo "none needed" >&6; } ;;
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3369 $as_echo "unsupported" >&6; } ;;
3371 CC="$CC $ac_cv_prog_cc_c89"
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3373 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3375 if test "x$ac_cv_prog_cc_c89" != xno; then :
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384 DEPDIR="${am__leading_dot}deps"
3386 ac_config_commands="$ac_config_commands depfiles"
3389 am_make=${MAKE-make}
3390 cat > confinc << 'END'
3392 @echo this is the am__doit target
3395 # If we don't find an include directive, just comment out the code.
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3397 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3401 # First try GNU make style include.
3402 echo "include confinc" > confmf
3403 # Ignore all kinds of additional output from 'make'.
3404 case `$am_make -s -f confmf 2> /dev/null` in #(
3405 *the\ am__doit\ target*)
3411 # Now try BSD make style include.
3412 if test "$am__include" = "#"; then
3413 echo '.include "confinc"' > confmf
3414 case `$am_make -s -f confmf 2> /dev/null` in #(
3415 *the\ am__doit\ target*)
3416 am__include=.include
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3425 $as_echo "$_am_result" >&6; }
3426 rm -f confinc confmf
3428 # Check whether --enable-dependency-tracking was given.
3429 if test "${enable_dependency_tracking+set}" = set; then :
3430 enableval=$enable_dependency_tracking;
3433 if test "x$enable_dependency_tracking" != xno; then
3434 am_depcomp="$ac_aux_dir/depcomp"
3438 if test "x$enable_dependency_tracking" != xno; then
3448 depcc="$CC" am_compiler_list=
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3451 $as_echo_n "checking dependency style of $depcc... " >&6; }
3452 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3453 $as_echo_n "(cached) " >&6
3455 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3456 # We make a subdir and do the tests there. Otherwise we can end up
3457 # making bogus files that we don't know about and never remove. For
3458 # instance it was reported that on HP-UX the gcc test will end up
3459 # making a dummy file named 'D' -- because '-MD' means "put the output
3463 # Copy depcomp to subdir because otherwise we won't find it if we're
3464 # using a relative directory.
3465 cp "$am_depcomp" conftest.dir
3467 # We will build objects and dependencies in a subdirectory because
3468 # it helps to detect inapplicable dependency modes. For instance
3469 # both Tru64's cc and ICC support -MD to output dependencies as a
3470 # side effect of compilation, but ICC will put the dependencies in
3471 # the current directory while Tru64 will put them in the object
3475 am_cv_CC_dependencies_compiler_type=none
3476 if test "$am_compiler_list" = ""; then
3477 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3480 case " $depcc " in #(
3481 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3484 for depmode in $am_compiler_list; do
3485 # Setup a source with many dependencies, because some compilers
3486 # like to wrap large dependency lists on column 80 (with \), and
3487 # we should not choose a depcomp mode which is confused by this.
3489 # We need to recreate these files for each test, as the compiler may
3490 # overwrite some of them when testing with obscure command lines.
3491 # This happens at least with the AIX C compiler.
3493 for i in 1 2 3 4 5 6; do
3494 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3495 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3496 # Solaris 10 /bin/sh.
3497 echo '/* dummy */' > sub/conftst$i.h
3499 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3501 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3502 # mode. It turns out that the SunPro C++ compiler does not properly
3503 # handle '-M -o', and we need to detect this. Also, some Intel
3504 # versions had trouble with output in subdirs.
3505 am__obj=sub/conftest.${OBJEXT-o}
3506 am__minus_obj="-o $am__obj"
3509 # This depmode causes a compiler race in universal mode.
3510 test "$am__universal" = false || continue
3513 # After this tag, mechanisms are not by side-effect, so they'll
3514 # only be used when explicitly requested.
3515 if test "x$enable_dependency_tracking" = xyes; then
3521 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3522 # This compiler won't grok '-c -o', but also, the minuso test has
3523 # not run yet. These depmodes are late enough in the game, and
3524 # so weak that their functioning should not be impacted.
3525 am__obj=conftest.${OBJEXT-o}
3530 if depmode=$depmode \
3531 source=sub/conftest.c object=$am__obj \
3532 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3533 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3534 >/dev/null 2>conftest.err &&
3535 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3536 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3537 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3538 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3539 # icc doesn't choke on unknown options, it will just issue warnings
3540 # or remarks (even with -Werror). So we grep stderr for any message
3541 # that says an option was ignored or not supported.
3542 # When given -MP, icc 7.0 and 7.1 complain thusly:
3543 # icc: Command line warning: ignoring option '-M'; no argument required
3544 # The diagnosis changed in icc 8.0:
3545 # icc: Command line remark: option '-MP' not supported
3546 if (grep 'ignoring option' conftest.err ||
3547 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3548 am_cv_CC_dependencies_compiler_type=$depmode
3557 am_cv_CC_dependencies_compiler_type=none
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3562 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3563 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3566 test "x$enable_dependency_tracking" != xno \
3567 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3569 am__fastdepCC_FALSE='#'
3571 am__fastdepCC_TRUE='#'
3572 am__fastdepCC_FALSE=
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3577 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3578 if ${ac_cv_prog_cc_c99+:} false; then :
3579 $as_echo_n "(cached) " >&6
3581 ac_cv_prog_cc_c99=no
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3586 #include <stdbool.h>
3591 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3592 #define debug(...) fprintf (stderr, __VA_ARGS__)
3593 #define showlist(...) puts (#__VA_ARGS__)
3594 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3596 test_varargs_macros (void)
3601 debug ("X = %d\n", x);
3602 showlist (The first, second, and third items.);
3603 report (x>y, "x is %d but y is %d", x, y);
3606 // Check long long types.
3607 #define BIG64 18446744073709551615ull
3608 #define BIG32 4294967295ul
3609 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3611 your preprocessor is broken;
3615 your preprocessor is broken;
3617 static long long int bignum = -9223372036854775807LL;
3618 static unsigned long long int ubignum = BIG64;
3620 struct incomplete_array
3628 const wchar_t *name;
3632 typedef const char *ccp;
3635 test_restrict (ccp restrict text)
3637 // See if C++-style comments work.
3638 // Iterate through items via the restricted pointer.
3639 // Also check for declarations in for loops.
3640 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3645 // Check varargs and va_copy.
3647 test_varargs (const char *format, ...)
3650 va_start (args, format);
3652 va_copy (args_copy, args);
3663 str = va_arg (args_copy, const char *);
3666 number = va_arg (args_copy, int);
3669 fnumber = va_arg (args_copy, double);
3684 _Bool success = false;
3687 if (test_restrict ("String literal") == 0)
3689 char *restrict newvar = "Another string";
3692 test_varargs ("s, d' f .", "string", 65, 34.234);
3693 test_varargs_macros ();
3695 // Check flexible array members.
3696 struct incomplete_array *ia =
3697 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3699 for (int i = 0; i < ia->datasize; ++i)
3700 ia->data[i] = i * 1.234;
3702 // Check named initializers.
3703 struct named_init ni = {
3705 .name = L"Test wide string",
3706 .average = 543.34343,
3711 int dynamic_array[ni.number];
3712 dynamic_array[ni.number - 1] = 543;
3714 // work around unused variable warnings
3715 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3716 || dynamic_array[ni.number - 1] != 543);
3722 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3724 CC="$ac_save_CC $ac_arg"
3725 if ac_fn_c_try_compile "$LINENO"; then :
3726 ac_cv_prog_cc_c99=$ac_arg
3728 rm -f core conftest.err conftest.$ac_objext
3729 test "x$ac_cv_prog_cc_c99" != "xno" && break
3731 rm -f conftest.$ac_ext
3736 case "x$ac_cv_prog_cc_c99" in
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3739 $as_echo "none needed" >&6; } ;;
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3742 $as_echo "unsupported" >&6; } ;;
3744 CC="$CC $ac_cv_prog_cc_c99"
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3746 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3748 if test "x$ac_cv_prog_cc_c99" != xno; then :
3753 if test "x$CC" != xcc; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3755 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3758 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3760 set dummy $CC; ac_cc=`$as_echo "$2" |
3761 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3762 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3763 $as_echo_n "(cached) " >&6
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3776 # Make sure it works both with $CC and with simple cc.
3777 # We do the test twice because some compilers refuse to overwrite an
3778 # existing .o file with -o, though they will create one.
3779 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3781 if { { case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_try") 2>&5
3789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790 test $ac_status = 0; } &&
3791 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797 (eval "$ac_try") 2>&5
3799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800 test $ac_status = 0; };
3802 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3803 if test "x$CC" != xcc; then
3804 # Test first that cc exists at all.
3805 if { ac_try='cc -c conftest.$ac_ext >&5'
3806 { { case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_try") 2>&5
3814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815 test $ac_status = 0; }; }; then
3816 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3818 if { { case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_try") 2>&5
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; } &&
3828 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833 $as_echo "$ac_try_echo"; } >&5
3834 (eval "$ac_try") 2>&5
3836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; };
3842 # cc exists but doesn't like -o.
3843 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3848 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3850 rm -f core conftest*
3853 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3855 $as_echo "yes" >&6; }
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3860 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3864 # FIXME: we rely on the cache variable name because
3865 # there is no other way.
3867 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3868 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3869 if test "$am_t" != yes; then
3870 # Losing compiler, so override with the script.
3871 # FIXME: It is wrong to rewrite CC.
3872 # But if we don't then we get into trouble of one sort or another.
3873 # A longer-term fix would be to have automake use am__CC in this case,
3874 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3875 CC="$am_aux_dir/compile $CC"
3880 # Checks for header files.
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3888 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3889 # On Suns, sometimes $CPP names a directory.
3890 if test -n "$CPP" && test -d "$CPP"; then
3893 if test -z "$CPP"; then
3894 if ${ac_cv_prog_CPP+:} false; then :
3895 $as_echo_n "(cached) " >&6
3897 # Double quotes because CPP needs to be expanded
3898 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3901 for ac_c_preproc_warn_flag in '' yes
3903 # Use a header file that comes with gcc, so configuring glibc
3904 # with a fresh cross-compiler works.
3905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3906 # <limits.h> exists even on freestanding compilers.
3907 # On the NeXT, cc -E runs the code through the compiler's parser,
3908 # not just through cpp. "Syntax error" is here to catch this case.
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3912 # include <limits.h>
3914 # include <assert.h>
3918 if ac_fn_c_try_cpp "$LINENO"; then :
3921 # Broken: fails on valid input.
3924 rm -f conftest.err conftest.i conftest.$ac_ext
3926 # OK, works on sane cases. Now check whether nonexistent headers
3927 # can be detected and how.
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3930 #include <ac_nonexistent.h>
3932 if ac_fn_c_try_cpp "$LINENO"; then :
3933 # Broken: success on invalid input.
3936 # Passes both tests.
3940 rm -f conftest.err conftest.i conftest.$ac_ext
3943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3944 rm -f conftest.i conftest.err conftest.$ac_ext
3945 if $ac_preproc_ok; then :
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3958 $as_echo "$CPP" >&6; }
3960 for ac_c_preproc_warn_flag in '' yes
3962 # Use a header file that comes with gcc, so configuring glibc
3963 # with a fresh cross-compiler works.
3964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3965 # <limits.h> exists even on freestanding compilers.
3966 # On the NeXT, cc -E runs the code through the compiler's parser,
3967 # not just through cpp. "Syntax error" is here to catch this case.
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3971 # include <limits.h>
3973 # include <assert.h>
3977 if ac_fn_c_try_cpp "$LINENO"; then :
3980 # Broken: fails on valid input.
3983 rm -f conftest.err conftest.i conftest.$ac_ext
3985 # OK, works on sane cases. Now check whether nonexistent headers
3986 # can be detected and how.
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3989 #include <ac_nonexistent.h>
3991 if ac_fn_c_try_cpp "$LINENO"; then :
3992 # Broken: success on invalid input.
3995 # Passes both tests.
3999 rm -f conftest.err conftest.i conftest.$ac_ext
4002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4003 rm -f conftest.i conftest.err conftest.$ac_ext
4004 if $ac_preproc_ok; then :
4007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4009 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4010 See \`config.log' for more details" "$LINENO" 5; }
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4021 $as_echo_n "checking for X... " >&6; }
4024 # Check whether --with-x was given.
4025 if test "${with_x+set}" = set; then :
4029 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4030 if test "x$with_x" = xno; then
4031 # The user explicitly disabled X.
4034 case $x_includes,$x_libraries in #(
4035 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4036 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4037 $as_echo_n "(cached) " >&6
4039 # One or both of the vars are not set, and there is no cached value.
4040 ac_x_includes=no ac_x_libraries=no
4041 rm -f -r conftest.dir
4042 if mkdir conftest.dir; then
4044 cat >Imakefile <<'_ACEOF'
4046 @echo incroot='${INCROOT}'
4048 @echo usrlibdir='${USRLIBDIR}'
4050 @echo libdir='${LIBDIR}'
4052 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4053 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4054 for ac_var in incroot usrlibdir libdir; do
4055 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4057 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4058 for ac_extension in a so sl dylib la dll; do
4059 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4060 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4061 ac_im_usrlibdir=$ac_im_libdir; break
4064 # Screen out bogus values from the imake configuration. They are
4065 # bogus both because they are the default anyway, and because
4066 # using them would break gcc on systems where it needs fixed includes.
4067 case $ac_im_incroot in
4068 /usr/include) ac_x_includes= ;;
4069 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4071 case $ac_im_usrlibdir in
4072 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4073 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4077 rm -f -r conftest.dir
4080 # Standard set of common directories for X headers.
4081 # Check X11 before X11Rn because it is often a symlink to the current release.
4095 /usr/local/X11/include
4096 /usr/local/X11R7/include
4097 /usr/local/X11R6/include
4098 /usr/local/X11R5/include
4099 /usr/local/X11R4/include
4101 /usr/local/include/X11
4102 /usr/local/include/X11R7
4103 /usr/local/include/X11R6
4104 /usr/local/include/X11R5
4105 /usr/local/include/X11R4
4109 /usr/XFree86/include/X11
4113 /usr/unsupported/include
4115 /usr/local/x11r5/include
4116 /usr/lpp/Xamples/include
4118 /usr/openwin/include
4119 /usr/openwin/share/include'
4121 if test "$ac_x_includes" = no; then
4122 # Guess where to find include files, by looking for Xlib.h.
4123 # First, try using that file with no special directory specified.
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126 #include <X11/Xlib.h>
4128 if ac_fn_c_try_cpp "$LINENO"; then :
4129 # We can compile using X headers with no special include directory.
4132 for ac_dir in $ac_x_header_dirs; do
4133 if test -r "$ac_dir/X11/Xlib.h"; then
4134 ac_x_includes=$ac_dir
4139 rm -f conftest.err conftest.i conftest.$ac_ext
4140 fi # $ac_x_includes = no
4142 if test "$ac_x_libraries" = no; then
4143 # Check for the libraries.
4144 # See if we find them without any special options.
4145 # Don't add to $LIBS permanently.
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4150 #include <X11/Xlib.h>
4159 if ac_fn_c_try_link "$LINENO"; then :
4161 # We can link X programs with no special library path.
4165 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4167 # Don't even attempt the hair of trying to link an X program!
4168 for ac_extension in a so sl dylib la dll; do
4169 if test -r "$ac_dir/libX11.$ac_extension"; then
4170 ac_x_libraries=$ac_dir
4176 rm -f core conftest.err conftest.$ac_objext \
4177 conftest$ac_exeext conftest.$ac_ext
4178 fi # $ac_x_libraries = no
4180 case $ac_x_includes,$ac_x_libraries in #(
4182 # Didn't find X, or a directory has "'" in its name.
4183 ac_cv_have_x="have_x=no";; #(
4185 # Record where we found X for the cache.
4186 ac_cv_have_x="have_x=yes\
4187 ac_x_includes='$ac_x_includes'\
4188 ac_x_libraries='$ac_x_libraries'"
4194 eval "$ac_cv_have_x"
4197 if test "$have_x" != yes; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4199 $as_echo "$have_x" >&6; }
4202 # If each of the values was on the command line, it overrides each guess.
4203 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4204 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4205 # Update the cache value to reflect the command line values.
4206 ac_cv_have_x="have_x=yes\
4207 ac_x_includes='$x_includes'\
4208 ac_x_libraries='$x_libraries'"
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4210 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4218 [\\/$]* | ?:[\\/]*) ;;
4219 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4224 $as_echo_n "checking whether NLS is requested... " >&6; }
4225 # Check whether --enable-nls was given.
4226 if test "${enable_nls+set}" = set; then :
4227 enableval=$enable_nls; USE_NLS=$enableval
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4233 $as_echo "$USE_NLS" >&6; }
4238 GETTEXT_MACRO_VERSION=0.18
4243 # Prepare PATH_SEPARATOR.
4244 # The user is always right.
4245 if test "${PATH_SEPARATOR+set}" != set; then
4246 echo "#! /bin/sh" >conf$$.sh
4247 echo "exit 0" >>conf$$.sh
4249 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4257 # Find out how to test for executable files. Don't use a zero-byte file,
4258 # as systems may use methods other than mode bits to determine executability.
4259 cat >conf$$.file <<_ASEOF
4263 chmod +x conf$$.file
4264 if test -x conf$$.file >/dev/null 2>&1; then
4265 ac_executable_p="test -x"
4267 ac_executable_p="test -f"
4271 # Extract the first word of "msgfmt", so it can be a program name with args.
4272 set dummy msgfmt; ac_word=$2
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 $as_echo_n "checking for $ac_word... " >&6; }
4275 if ${ac_cv_path_MSGFMT+:} false; then :
4276 $as_echo_n "(cached) " >&6
4280 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4283 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4284 for ac_dir in $PATH; do
4286 test -z "$ac_dir" && ac_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4289 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4290 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4291 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4292 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4299 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4303 MSGFMT="$ac_cv_path_MSGFMT"
4304 if test "$MSGFMT" != ":"; then
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4306 $as_echo "$MSGFMT" >&6; }
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309 $as_echo "no" >&6; }
4312 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4313 set dummy gmsgfmt; ac_word=$2
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 $as_echo_n "checking for $ac_word... " >&6; }
4316 if ${ac_cv_path_GMSGFMT+:} false; then :
4317 $as_echo_n "(cached) " >&6
4321 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4343 GMSGFMT=$ac_cv_path_GMSGFMT
4344 if test -n "$GMSGFMT"; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4346 $as_echo "$GMSGFMT" >&6; }
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 $as_echo "no" >&6; }
4354 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4355 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4356 *) MSGFMT_015=$MSGFMT ;;
4359 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4360 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4361 *) GMSGFMT_015=$GMSGFMT ;;
4366 # Prepare PATH_SEPARATOR.
4367 # The user is always right.
4368 if test "${PATH_SEPARATOR+set}" != set; then
4369 echo "#! /bin/sh" >conf$$.sh
4370 echo "exit 0" >>conf$$.sh
4372 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4380 # Find out how to test for executable files. Don't use a zero-byte file,
4381 # as systems may use methods other than mode bits to determine executability.
4382 cat >conf$$.file <<_ASEOF
4386 chmod +x conf$$.file
4387 if test -x conf$$.file >/dev/null 2>&1; then
4388 ac_executable_p="test -x"
4390 ac_executable_p="test -f"
4394 # Extract the first word of "xgettext", so it can be a program name with args.
4395 set dummy xgettext; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_path_XGETTEXT+:} false; then :
4399 $as_echo_n "(cached) " >&6
4403 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4406 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4407 for ac_dir in $PATH; do
4409 test -z "$ac_dir" && ac_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4412 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4413 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4414 (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
4415 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4422 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4426 XGETTEXT="$ac_cv_path_XGETTEXT"
4427 if test "$XGETTEXT" != ":"; then
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4429 $as_echo "$XGETTEXT" >&6; }
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 $as_echo "no" >&6; }
4437 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4438 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4439 *) XGETTEXT_015=$XGETTEXT ;;
4444 # Prepare PATH_SEPARATOR.
4445 # The user is always right.
4446 if test "${PATH_SEPARATOR+set}" != set; then
4447 echo "#! /bin/sh" >conf$$.sh
4448 echo "exit 0" >>conf$$.sh
4450 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4458 # Find out how to test for executable files. Don't use a zero-byte file,
4459 # as systems may use methods other than mode bits to determine executability.
4460 cat >conf$$.file <<_ASEOF
4464 chmod +x conf$$.file
4465 if test -x conf$$.file >/dev/null 2>&1; then
4466 ac_executable_p="test -x"
4468 ac_executable_p="test -f"
4472 # Extract the first word of "msgmerge", so it can be a program name with args.
4473 set dummy msgmerge; ac_word=$2
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475 $as_echo_n "checking for $ac_word... " >&6; }
4476 if ${ac_cv_path_MSGMERGE+:} false; then :
4477 $as_echo_n "(cached) " >&6
4481 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4484 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4485 for ac_dir in $PATH; do
4487 test -z "$ac_dir" && ac_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4490 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4491 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4492 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4499 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4503 MSGMERGE="$ac_cv_path_MSGMERGE"
4504 if test "$MSGMERGE" != ":"; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4506 $as_echo "$MSGMERGE" >&6; }
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 $as_echo "no" >&6; }
4513 test -n "$localedir" || localedir='${datadir}/locale'
4516 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4519 ac_config_commands="$ac_config_commands po-directories"
4523 if test "X$prefix" = "XNONE"; then
4524 acl_final_prefix="$ac_default_prefix"
4526 acl_final_prefix="$prefix"
4528 if test "X$exec_prefix" = "XNONE"; then
4529 acl_final_exec_prefix='${prefix}'
4531 acl_final_exec_prefix="$exec_prefix"
4533 acl_save_prefix="$prefix"
4534 prefix="$acl_final_prefix"
4535 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4536 prefix="$acl_save_prefix"
4538 # Make sure we can run config.sub.
4539 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4540 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4543 $as_echo_n "checking build system type... " >&6; }
4544 if ${ac_cv_build+:} false; then :
4545 $as_echo_n "(cached) " >&6
4547 ac_build_alias=$build_alias
4548 test "x$ac_build_alias" = x &&
4549 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4550 test "x$ac_build_alias" = x &&
4551 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4552 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4553 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4557 $as_echo "$ac_cv_build" >&6; }
4558 case $ac_cv_build in
4560 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4563 ac_save_IFS=$IFS; IFS='-'
4569 # Remember, the first character of IFS is used to create $*,
4570 # except with old shells:
4573 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4577 $as_echo_n "checking host system type... " >&6; }
4578 if ${ac_cv_host+:} false; then :
4579 $as_echo_n "(cached) " >&6
4581 if test "x$host_alias" = x; then
4582 ac_cv_host=$ac_cv_build
4584 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4585 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4590 $as_echo "$ac_cv_host" >&6; }
4593 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4596 ac_save_IFS=$IFS; IFS='-'
4602 # Remember, the first character of IFS is used to create $*,
4603 # except with old shells:
4606 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4610 # Check whether --with-gnu-ld was given.
4611 if test "${with_gnu_ld+set}" = set; then :
4612 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4617 # Prepare PATH_SEPARATOR.
4618 # The user is always right.
4619 if test "${PATH_SEPARATOR+set}" != set; then
4620 echo "#! /bin/sh" >conf$$.sh
4621 echo "exit 0" >>conf$$.sh
4623 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4631 if test "$GCC" = yes; then
4632 # Check if gcc -print-prog-name=ld gives a path.
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4634 $as_echo_n "checking for ld used by GCC... " >&6; }
4637 # gcc leaves a trailing carriage return which upsets mingw
4638 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4640 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4643 # Accept absolute paths.
4644 [\\/]* | [A-Za-z]:[\\/]*)
4645 re_direlt='/[^/][^/]*/\.\./'
4646 # Canonicalize the path of ld
4647 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4648 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4649 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4651 test -z "$LD" && LD="$ac_prog"
4654 # If it fails, then pretend we aren't using GCC.
4658 # If it is relative, then search for the first ld in PATH.
4662 elif test "$with_gnu_ld" = yes; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4664 $as_echo_n "checking for GNU ld... " >&6; }
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4667 $as_echo_n "checking for non-GNU ld... " >&6; }
4669 if ${acl_cv_path_LD+:} false; then :
4670 $as_echo_n "(cached) " >&6
4672 if test -z "$LD"; then
4673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4674 for ac_dir in $PATH; do
4675 test -z "$ac_dir" && ac_dir=.
4676 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4677 acl_cv_path_LD="$ac_dir/$ac_prog"
4678 # Check to see if the program is GNU ld. I'd rather use --version,
4679 # but apparently some GNU ld's only accept -v.
4680 # Break only if it was the GNU/non-GNU ld that we prefer.
4681 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4682 *GNU* | *'with BFD'*)
4683 test "$with_gnu_ld" != no && break ;;
4685 test "$with_gnu_ld" != yes && break ;;
4691 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4695 LD="$acl_cv_path_LD"
4696 if test -n "$LD"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4698 $as_echo "$LD" >&6; }
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4703 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4705 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4706 if ${acl_cv_prog_gnu_ld+:} false; then :
4707 $as_echo_n "(cached) " >&6
4709 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4710 case `$LD -v 2>&1 </dev/null` in
4711 *GNU* | *'with BFD'*)
4712 acl_cv_prog_gnu_ld=yes ;;
4714 acl_cv_prog_gnu_ld=no ;;
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4718 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4719 with_gnu_ld=$acl_cv_prog_gnu_ld
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4725 $as_echo_n "checking for shared library run path origin... " >&6; }
4726 if ${acl_cv_rpath+:} false; then :
4727 $as_echo_n "(cached) " >&6
4730 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4731 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4738 $as_echo "$acl_cv_rpath" >&6; }
4740 acl_libext="$acl_cv_libext"
4741 acl_shlibext="$acl_cv_shlibext"
4742 acl_libname_spec="$acl_cv_libname_spec"
4743 acl_library_names_spec="$acl_cv_library_names_spec"
4744 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4745 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4746 acl_hardcode_direct="$acl_cv_hardcode_direct"
4747 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4748 # Check whether --enable-rpath was given.
4749 if test "${enable_rpath+set}" = set; then :
4750 enableval=$enable_rpath; :
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4757 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4758 if ${ac_cv_path_GREP+:} false; then :
4759 $as_echo_n "(cached) " >&6
4761 if test -z "$GREP"; then
4762 ac_path_GREP_found=false
4763 # Loop through the user's path and test for each of PROGNAME-LIST
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4768 test -z "$as_dir" && as_dir=.
4769 for ac_prog in grep ggrep; do
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4772 as_fn_executable_p "$ac_path_GREP" || continue
4773 # Check for GNU ac_path_GREP and select it if it is found.
4774 # Check for GNU $ac_path_GREP
4775 case `"$ac_path_GREP" --version 2>&1` in
4777 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4780 $as_echo_n 0123456789 >"conftest.in"
4783 cat "conftest.in" "conftest.in" >"conftest.tmp"
4784 mv "conftest.tmp" "conftest.in"
4785 cp "conftest.in" "conftest.nl"
4786 $as_echo 'GREP' >> "conftest.nl"
4787 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4789 as_fn_arith $ac_count + 1 && ac_count=$as_val
4790 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4791 # Best one so far, save it but keep looking for a better one
4792 ac_cv_path_GREP="$ac_path_GREP"
4793 ac_path_GREP_max=$ac_count
4795 # 10*(2^10) chars as input seems more than enough
4796 test $ac_count -gt 10 && break
4798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4801 $ac_path_GREP_found && break 3
4806 if test -z "$ac_cv_path_GREP"; then
4807 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4810 ac_cv_path_GREP=$GREP
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4815 $as_echo "$ac_cv_path_GREP" >&6; }
4816 GREP="$ac_cv_path_GREP"
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4820 $as_echo_n "checking for egrep... " >&6; }
4821 if ${ac_cv_path_EGREP+:} false; then :
4822 $as_echo_n "(cached) " >&6
4824 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4825 then ac_cv_path_EGREP="$GREP -E"
4827 if test -z "$EGREP"; then
4828 ac_path_EGREP_found=false
4829 # Loop through the user's path and test for each of PROGNAME-LIST
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4834 test -z "$as_dir" && as_dir=.
4835 for ac_prog in egrep; do
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4838 as_fn_executable_p "$ac_path_EGREP" || continue
4839 # Check for GNU ac_path_EGREP and select it if it is found.
4840 # Check for GNU $ac_path_EGREP
4841 case `"$ac_path_EGREP" --version 2>&1` in
4843 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4846 $as_echo_n 0123456789 >"conftest.in"
4849 cat "conftest.in" "conftest.in" >"conftest.tmp"
4850 mv "conftest.tmp" "conftest.in"
4851 cp "conftest.in" "conftest.nl"
4852 $as_echo 'EGREP' >> "conftest.nl"
4853 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4855 as_fn_arith $ac_count + 1 && ac_count=$as_val
4856 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4857 # Best one so far, save it but keep looking for a better one
4858 ac_cv_path_EGREP="$ac_path_EGREP"
4859 ac_path_EGREP_max=$ac_count
4861 # 10*(2^10) chars as input seems more than enough
4862 test $ac_count -gt 10 && break
4864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4867 $ac_path_EGREP_found && break 3
4872 if test -z "$ac_cv_path_EGREP"; then
4873 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4876 ac_cv_path_EGREP=$EGREP
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4882 $as_echo "$ac_cv_path_EGREP" >&6; }
4883 EGREP="$ac_cv_path_EGREP"
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4893 $as_echo_n "checking for 64-bit host... " >&6; }
4894 if ${gl_cv_solaris_64bit+:} false; then :
4895 $as_echo_n "(cached) " >&6
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4906 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
4907 gl_cv_solaris_64bit=yes
4909 gl_cv_solaris_64bit=no
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4916 $as_echo "$gl_cv_solaris_64bit" >&6; }
4917 if test $gl_cv_solaris_64bit = yes; then
4918 acl_libdirstem=lib/64
4920 sparc*) acl_libdirstem2=lib/sparcv9 ;;
4921 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4926 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4927 if test -n "$searchpath"; then
4928 acl_save_IFS="${IFS= }"; IFS=":"
4929 for searchdir in $searchpath; do
4930 if test -d "$searchdir"; then
4931 case "$searchdir" in
4932 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4934 # Better ignore directories of this form. They are misleading.
4936 *) searchdir=`cd "$searchdir" && pwd`
4937 case "$searchdir" in
4938 */lib64 ) acl_libdirstem=lib64 ;;
4947 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4962 acl_save_prefix="$prefix"
4963 prefix="$acl_final_prefix"
4964 acl_save_exec_prefix="$exec_prefix"
4965 exec_prefix="$acl_final_exec_prefix"
4967 eval additional_includedir=\"$includedir\"
4968 eval additional_libdir=\"$libdir\"
4970 exec_prefix="$acl_save_exec_prefix"
4971 prefix="$acl_save_prefix"
4974 # Check whether --with-libiconv-prefix was given.
4975 if test "${with_libiconv_prefix+set}" = set; then :
4976 withval=$with_libiconv_prefix;
4977 if test "X$withval" = "Xno"; then
4980 if test "X$withval" = "X"; then
4982 acl_save_prefix="$prefix"
4983 prefix="$acl_final_prefix"
4984 acl_save_exec_prefix="$exec_prefix"
4985 exec_prefix="$acl_final_exec_prefix"
4987 eval additional_includedir=\"$includedir\"
4988 eval additional_libdir=\"$libdir\"
4990 exec_prefix="$acl_save_exec_prefix"
4991 prefix="$acl_save_prefix"
4994 additional_includedir="$withval/include"
4995 additional_libdir="$withval/$acl_libdirstem"
4996 if test "$acl_libdirstem2" != "$acl_libdirstem" \
4997 && ! test -d "$withval/$acl_libdirstem"; then
4998 additional_libdir="$withval/$acl_libdirstem2"
5012 names_already_handled=
5013 names_next_round='iconv '
5014 while test -n "$names_next_round"; do
5015 names_this_round="$names_next_round"
5017 for name in $names_this_round; do
5019 for n in $names_already_handled; do
5020 if test "$n" = "$name"; then
5025 if test -z "$already_handled"; then
5026 names_already_handled="$names_already_handled $name"
5027 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5028 eval value=\"\$HAVE_LIB$uppername\"
5029 if test -n "$value"; then
5030 if test "$value" = yes; then
5031 eval value=\"\$LIB$uppername\"
5032 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5033 eval value=\"\$LTLIB$uppername\"
5034 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5043 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5044 if test -n "$acl_shlibext"; then
5045 shrext=".$acl_shlibext" # typically: shrext=.so
5049 if test $use_additional = yes; then
5050 dir="$additional_libdir"
5051 if test -n "$acl_shlibext"; then
5052 if test -f "$dir/$libname$shrext"; then
5054 found_so="$dir/$libname$shrext"
5056 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5057 ver=`(cd "$dir" && \
5058 for f in "$libname$shrext".*; do echo "$f"; done \
5059 | sed -e "s,^$libname$shrext\\\\.,," \
5060 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5061 | sed 1q ) 2>/dev/null`
5062 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5064 found_so="$dir/$libname$shrext.$ver"
5067 eval library_names=\"$acl_library_names_spec\"
5068 for f in $library_names; do
5069 if test -f "$dir/$f"; then
5078 if test "X$found_dir" = "X"; then
5079 if test -f "$dir/$libname.$acl_libext"; then
5081 found_a="$dir/$libname.$acl_libext"
5084 if test "X$found_dir" != "X"; then
5085 if test -f "$dir/$libname.la"; then
5086 found_la="$dir/$libname.la"
5090 if test "X$found_dir" = "X"; then
5091 for x in $LDFLAGS $LTLIBICONV; do
5093 acl_save_prefix="$prefix"
5094 prefix="$acl_final_prefix"
5095 acl_save_exec_prefix="$exec_prefix"
5096 exec_prefix="$acl_final_exec_prefix"
5098 exec_prefix="$acl_save_exec_prefix"
5099 prefix="$acl_save_prefix"
5103 dir=`echo "X$x" | sed -e 's/^X-L//'`
5104 if test -n "$acl_shlibext"; then
5105 if test -f "$dir/$libname$shrext"; then
5107 found_so="$dir/$libname$shrext"
5109 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5110 ver=`(cd "$dir" && \
5111 for f in "$libname$shrext".*; do echo "$f"; done \
5112 | sed -e "s,^$libname$shrext\\\\.,," \
5113 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5114 | sed 1q ) 2>/dev/null`
5115 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5117 found_so="$dir/$libname$shrext.$ver"
5120 eval library_names=\"$acl_library_names_spec\"
5121 for f in $library_names; do
5122 if test -f "$dir/$f"; then
5131 if test "X$found_dir" = "X"; then
5132 if test -f "$dir/$libname.$acl_libext"; then
5134 found_a="$dir/$libname.$acl_libext"
5137 if test "X$found_dir" != "X"; then
5138 if test -f "$dir/$libname.la"; then
5139 found_la="$dir/$libname.la"
5144 if test "X$found_dir" != "X"; then
5149 if test "X$found_dir" != "X"; then
5150 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5151 if test "X$found_so" != "X"; then
5152 if test "$enable_rpath" = no \
5153 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5154 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5155 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5158 for x in $ltrpathdirs; do
5159 if test "X$x" = "X$found_dir"; then
5164 if test -z "$haveit"; then
5165 ltrpathdirs="$ltrpathdirs $found_dir"
5167 if test "$acl_hardcode_direct" = yes; then
5168 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5170 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5171 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5173 for x in $rpathdirs; do
5174 if test "X$x" = "X$found_dir"; then
5179 if test -z "$haveit"; then
5180 rpathdirs="$rpathdirs $found_dir"
5184 for x in $LDFLAGS $LIBICONV; do
5186 acl_save_prefix="$prefix"
5187 prefix="$acl_final_prefix"
5188 acl_save_exec_prefix="$exec_prefix"
5189 exec_prefix="$acl_final_exec_prefix"
5191 exec_prefix="$acl_save_exec_prefix"
5192 prefix="$acl_save_prefix"
5194 if test "X$x" = "X-L$found_dir"; then
5199 if test -z "$haveit"; then
5200 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5202 if test "$acl_hardcode_minus_L" != no; then
5203 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5205 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5211 if test "X$found_a" != "X"; then
5212 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5214 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5217 additional_includedir=
5218 case "$found_dir" in
5219 */$acl_libdirstem | */$acl_libdirstem/)
5220 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5221 if test "$name" = 'iconv'; then
5222 LIBICONV_PREFIX="$basedir"
5224 additional_includedir="$basedir/include"
5226 */$acl_libdirstem2 | */$acl_libdirstem2/)
5227 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5228 if test "$name" = 'iconv'; then
5229 LIBICONV_PREFIX="$basedir"
5231 additional_includedir="$basedir/include"
5234 if test "X$additional_includedir" != "X"; then
5235 if test "X$additional_includedir" != "X/usr/include"; then
5237 if test "X$additional_includedir" = "X/usr/local/include"; then
5238 if test -n "$GCC"; then
5240 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5244 if test -z "$haveit"; then
5245 for x in $CPPFLAGS $INCICONV; do
5247 acl_save_prefix="$prefix"
5248 prefix="$acl_final_prefix"
5249 acl_save_exec_prefix="$exec_prefix"
5250 exec_prefix="$acl_final_exec_prefix"
5252 exec_prefix="$acl_save_exec_prefix"
5253 prefix="$acl_save_prefix"
5255 if test "X$x" = "X-I$additional_includedir"; then
5260 if test -z "$haveit"; then
5261 if test -d "$additional_includedir"; then
5262 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5268 if test -n "$found_la"; then
5269 save_libdir="$libdir"
5271 */* | *\\*) . "$found_la" ;;
5272 *) . "./$found_la" ;;
5274 libdir="$save_libdir"
5275 for dep in $dependency_libs; do
5278 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5279 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5280 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5282 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5283 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5284 if test -n "$GCC"; then
5286 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5290 if test -z "$haveit"; then
5292 for x in $LDFLAGS $LIBICONV; do
5294 acl_save_prefix="$prefix"
5295 prefix="$acl_final_prefix"
5296 acl_save_exec_prefix="$exec_prefix"
5297 exec_prefix="$acl_final_exec_prefix"
5299 exec_prefix="$acl_save_exec_prefix"
5300 prefix="$acl_save_prefix"
5302 if test "X$x" = "X-L$additional_libdir"; then
5307 if test -z "$haveit"; then
5308 if test -d "$additional_libdir"; then
5309 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5313 for x in $LDFLAGS $LTLIBICONV; do
5315 acl_save_prefix="$prefix"
5316 prefix="$acl_final_prefix"
5317 acl_save_exec_prefix="$exec_prefix"
5318 exec_prefix="$acl_final_exec_prefix"
5320 exec_prefix="$acl_save_exec_prefix"
5321 prefix="$acl_save_prefix"
5323 if test "X$x" = "X-L$additional_libdir"; then
5328 if test -z "$haveit"; then
5329 if test -d "$additional_libdir"; then
5330 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5337 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5338 if test "$enable_rpath" != no; then
5340 for x in $rpathdirs; do
5341 if test "X$x" = "X$dir"; then
5346 if test -z "$haveit"; then
5347 rpathdirs="$rpathdirs $dir"
5350 for x in $ltrpathdirs; do
5351 if test "X$x" = "X$dir"; then
5356 if test -z "$haveit"; then
5357 ltrpathdirs="$ltrpathdirs $dir"
5362 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5365 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5368 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5369 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5375 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5376 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5382 if test "X$rpathdirs" != "X"; then
5383 if test -n "$acl_hardcode_libdir_separator"; then
5385 for found_dir in $rpathdirs; do
5386 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5388 acl_save_libdir="$libdir"
5390 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5391 libdir="$acl_save_libdir"
5392 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5394 for found_dir in $rpathdirs; do
5395 acl_save_libdir="$libdir"
5397 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5398 libdir="$acl_save_libdir"
5399 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5403 if test "X$ltrpathdirs" != "X"; then
5404 for found_dir in $ltrpathdirs; do
5405 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5440 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5441 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5442 $as_echo_n "(cached) " >&6
5444 gt_save_LIBS="$LIBS"
5445 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 #include <CoreFoundation/CFPreferences.h>
5452 CFPreferencesCopyAppValue(NULL, NULL)
5457 if ac_fn_c_try_link "$LINENO"; then :
5458 gt_cv_func_CFPreferencesCopyAppValue=yes
5460 gt_cv_func_CFPreferencesCopyAppValue=no
5462 rm -f core conftest.err conftest.$ac_objext \
5463 conftest$ac_exeext conftest.$ac_ext
5464 LIBS="$gt_save_LIBS"
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5467 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5468 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5470 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5474 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5475 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5476 $as_echo_n "(cached) " >&6
5478 gt_save_LIBS="$LIBS"
5479 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5482 #include <CoreFoundation/CFLocale.h>
5486 CFLocaleCopyCurrent();
5491 if ac_fn_c_try_link "$LINENO"; then :
5492 gt_cv_func_CFLocaleCopyCurrent=yes
5494 gt_cv_func_CFLocaleCopyCurrent=no
5496 rm -f core conftest.err conftest.$ac_objext \
5497 conftest$ac_exeext conftest.$ac_ext
5498 LIBS="$gt_save_LIBS"
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5501 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5502 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5504 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5508 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5509 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5521 case " $gt_needs " in
5522 *" need-formatstring-macros "*) gt_api_version=3 ;;
5523 *" need-ngettext "*) gt_api_version=2 ;;
5524 *) gt_api_version=1 ;;
5526 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5527 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5529 if test "$USE_NLS" = "yes"; then
5530 gt_use_preinstalled_gnugettext=no
5533 if test $gt_api_version -ge 3; then
5534 gt_revision_test_code='
5535 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5536 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5538 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5541 gt_revision_test_code=
5543 if test $gt_api_version -ge 2; then
5544 gt_expression_test_code=' + * ngettext ("", "", 0)'
5546 gt_expression_test_code=
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5550 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5551 if eval \${$gt_func_gnugettext_libc+:} false; then :
5552 $as_echo_n "(cached) " >&6
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 #include <libintl.h>
5557 $gt_revision_test_code
5558 extern int _nl_msg_cat_cntr;
5559 extern int *_nl_domain_bindings;
5563 bindtextdomain ("", "");
5564 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5569 if ac_fn_c_try_link "$LINENO"; then :
5570 eval "$gt_func_gnugettext_libc=yes"
5572 eval "$gt_func_gnugettext_libc=no"
5574 rm -f core conftest.err conftest.$ac_objext \
5575 conftest$ac_exeext conftest.$ac_ext
5577 eval ac_res=\$$gt_func_gnugettext_libc
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5579 $as_echo "$ac_res" >&6; }
5581 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5587 am_save_CPPFLAGS="$CPPFLAGS"
5589 for element in $INCICONV; do
5591 for x in $CPPFLAGS; do
5593 acl_save_prefix="$prefix"
5594 prefix="$acl_final_prefix"
5595 acl_save_exec_prefix="$exec_prefix"
5596 exec_prefix="$acl_final_exec_prefix"
5598 exec_prefix="$acl_save_exec_prefix"
5599 prefix="$acl_save_prefix"
5601 if test "X$x" = "X$element"; then
5606 if test -z "$haveit"; then
5607 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5613 $as_echo_n "checking for iconv... " >&6; }
5614 if ${am_cv_func_iconv+:} false; then :
5615 $as_echo_n "(cached) " >&6
5618 am_cv_func_iconv="no, consider installing GNU libiconv"
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5627 iconv_t cd = iconv_open("","");
5628 iconv(cd,NULL,NULL,NULL,NULL);
5634 if ac_fn_c_try_link "$LINENO"; then :
5635 am_cv_func_iconv=yes
5637 rm -f core conftest.err conftest.$ac_objext \
5638 conftest$ac_exeext conftest.$ac_ext
5639 if test "$am_cv_func_iconv" != yes; then
5640 am_save_LIBS="$LIBS"
5641 LIBS="$LIBS $LIBICONV"
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5649 iconv_t cd = iconv_open("","");
5650 iconv(cd,NULL,NULL,NULL,NULL);
5656 if ac_fn_c_try_link "$LINENO"; then :
5658 am_cv_func_iconv=yes
5660 rm -f core conftest.err conftest.$ac_objext \
5661 conftest$ac_exeext conftest.$ac_ext
5662 LIBS="$am_save_LIBS"
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5667 $as_echo "$am_cv_func_iconv" >&6; }
5668 if test "$am_cv_func_iconv" = yes; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5670 $as_echo_n "checking for working iconv... " >&6; }
5671 if ${am_cv_func_iconv_works+:} false; then :
5672 $as_echo_n "(cached) " >&6
5675 am_save_LIBS="$LIBS"
5676 if test $am_cv_lib_iconv = yes; then
5677 LIBS="$LIBS $LIBICONV"
5679 if test "$cross_compiling" = yes; then :
5681 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5682 *) am_cv_func_iconv_works="guessing yes" ;;
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5692 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5695 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5696 if (cd_utf8_to_88591 != (iconv_t)(-1))
5698 static const char input[] = "\342\202\254"; /* EURO SIGN */
5700 const char *inptr = input;
5701 size_t inbytesleft = strlen (input);
5703 size_t outbytesleft = sizeof (buf);
5704 size_t res = iconv (cd_utf8_to_88591,
5705 (char **) &inptr, &inbytesleft,
5706 &outptr, &outbytesleft);
5711 /* Test against Solaris 10 bug: Failures are not distinguishable from
5712 successful returns. */
5714 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5715 if (cd_ascii_to_88591 != (iconv_t)(-1))
5717 static const char input[] = "\263";
5719 const char *inptr = input;
5720 size_t inbytesleft = strlen (input);
5722 size_t outbytesleft = sizeof (buf);
5723 size_t res = iconv (cd_ascii_to_88591,
5724 (char **) &inptr, &inbytesleft,
5725 &outptr, &outbytesleft);
5730 #if 0 /* This bug could be worked around by the caller. */
5731 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5733 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5734 if (cd_88591_to_utf8 != (iconv_t)(-1))
5736 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5738 const char *inptr = input;
5739 size_t inbytesleft = strlen (input);
5741 size_t outbytesleft = sizeof (buf);
5742 size_t res = iconv (cd_88591_to_utf8,
5743 (char **) &inptr, &inbytesleft,
5744 &outptr, &outbytesleft);
5750 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5752 if (/* Try standardized names. */
5753 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5754 /* Try IRIX, OSF/1 names. */
5755 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5756 /* Try AIX names. */
5757 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5758 /* Try HP-UX names. */
5759 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5764 if ac_fn_c_try_run "$LINENO"; then :
5765 am_cv_func_iconv_works=yes
5767 am_cv_func_iconv_works=no
5769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5770 conftest.$ac_objext conftest.beam conftest.$ac_ext
5773 LIBS="$am_save_LIBS"
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5777 $as_echo "$am_cv_func_iconv_works" >&6; }
5778 case "$am_cv_func_iconv_works" in
5779 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5780 *) am_func_iconv=yes ;;
5783 am_func_iconv=no am_cv_lib_iconv=no
5785 if test "$am_func_iconv" = yes; then
5787 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5790 if test "$am_cv_lib_iconv" = yes; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5792 $as_echo_n "checking how to link with libiconv... " >&6; }
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5794 $as_echo "$LIBICONV" >&6; }
5796 CPPFLAGS="$am_save_CPPFLAGS"
5813 acl_save_prefix="$prefix"
5814 prefix="$acl_final_prefix"
5815 acl_save_exec_prefix="$exec_prefix"
5816 exec_prefix="$acl_final_exec_prefix"
5818 eval additional_includedir=\"$includedir\"
5819 eval additional_libdir=\"$libdir\"
5821 exec_prefix="$acl_save_exec_prefix"
5822 prefix="$acl_save_prefix"
5825 # Check whether --with-libintl-prefix was given.
5826 if test "${with_libintl_prefix+set}" = set; then :
5827 withval=$with_libintl_prefix;
5828 if test "X$withval" = "Xno"; then
5831 if test "X$withval" = "X"; then
5833 acl_save_prefix="$prefix"
5834 prefix="$acl_final_prefix"
5835 acl_save_exec_prefix="$exec_prefix"
5836 exec_prefix="$acl_final_exec_prefix"
5838 eval additional_includedir=\"$includedir\"
5839 eval additional_libdir=\"$libdir\"
5841 exec_prefix="$acl_save_exec_prefix"
5842 prefix="$acl_save_prefix"
5845 additional_includedir="$withval/include"
5846 additional_libdir="$withval/$acl_libdirstem"
5847 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5848 && ! test -d "$withval/$acl_libdirstem"; then
5849 additional_libdir="$withval/$acl_libdirstem2"
5863 names_already_handled=
5864 names_next_round='intl '
5865 while test -n "$names_next_round"; do
5866 names_this_round="$names_next_round"
5868 for name in $names_this_round; do
5870 for n in $names_already_handled; do
5871 if test "$n" = "$name"; then
5876 if test -z "$already_handled"; then
5877 names_already_handled="$names_already_handled $name"
5878 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5879 eval value=\"\$HAVE_LIB$uppername\"
5880 if test -n "$value"; then
5881 if test "$value" = yes; then
5882 eval value=\"\$LIB$uppername\"
5883 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5884 eval value=\"\$LTLIB$uppername\"
5885 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5894 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5895 if test -n "$acl_shlibext"; then
5896 shrext=".$acl_shlibext" # typically: shrext=.so
5900 if test $use_additional = yes; then
5901 dir="$additional_libdir"
5902 if test -n "$acl_shlibext"; then
5903 if test -f "$dir/$libname$shrext"; then
5905 found_so="$dir/$libname$shrext"
5907 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5908 ver=`(cd "$dir" && \
5909 for f in "$libname$shrext".*; do echo "$f"; done \
5910 | sed -e "s,^$libname$shrext\\\\.,," \
5911 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5912 | sed 1q ) 2>/dev/null`
5913 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5915 found_so="$dir/$libname$shrext.$ver"
5918 eval library_names=\"$acl_library_names_spec\"
5919 for f in $library_names; do
5920 if test -f "$dir/$f"; then
5929 if test "X$found_dir" = "X"; then
5930 if test -f "$dir/$libname.$acl_libext"; then
5932 found_a="$dir/$libname.$acl_libext"
5935 if test "X$found_dir" != "X"; then
5936 if test -f "$dir/$libname.la"; then
5937 found_la="$dir/$libname.la"
5941 if test "X$found_dir" = "X"; then
5942 for x in $LDFLAGS $LTLIBINTL; do
5944 acl_save_prefix="$prefix"
5945 prefix="$acl_final_prefix"
5946 acl_save_exec_prefix="$exec_prefix"
5947 exec_prefix="$acl_final_exec_prefix"
5949 exec_prefix="$acl_save_exec_prefix"
5950 prefix="$acl_save_prefix"
5954 dir=`echo "X$x" | sed -e 's/^X-L//'`
5955 if test -n "$acl_shlibext"; then
5956 if test -f "$dir/$libname$shrext"; then
5958 found_so="$dir/$libname$shrext"
5960 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5961 ver=`(cd "$dir" && \
5962 for f in "$libname$shrext".*; do echo "$f"; done \
5963 | sed -e "s,^$libname$shrext\\\\.,," \
5964 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5965 | sed 1q ) 2>/dev/null`
5966 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5968 found_so="$dir/$libname$shrext.$ver"
5971 eval library_names=\"$acl_library_names_spec\"
5972 for f in $library_names; do
5973 if test -f "$dir/$f"; then
5982 if test "X$found_dir" = "X"; then
5983 if test -f "$dir/$libname.$acl_libext"; then
5985 found_a="$dir/$libname.$acl_libext"
5988 if test "X$found_dir" != "X"; then
5989 if test -f "$dir/$libname.la"; then
5990 found_la="$dir/$libname.la"
5995 if test "X$found_dir" != "X"; then
6000 if test "X$found_dir" != "X"; then
6001 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6002 if test "X$found_so" != "X"; then
6003 if test "$enable_rpath" = no \
6004 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6005 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6006 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6009 for x in $ltrpathdirs; do
6010 if test "X$x" = "X$found_dir"; then
6015 if test -z "$haveit"; then
6016 ltrpathdirs="$ltrpathdirs $found_dir"
6018 if test "$acl_hardcode_direct" = yes; then
6019 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6021 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6022 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6024 for x in $rpathdirs; do
6025 if test "X$x" = "X$found_dir"; then
6030 if test -z "$haveit"; then
6031 rpathdirs="$rpathdirs $found_dir"
6035 for x in $LDFLAGS $LIBINTL; do
6037 acl_save_prefix="$prefix"
6038 prefix="$acl_final_prefix"
6039 acl_save_exec_prefix="$exec_prefix"
6040 exec_prefix="$acl_final_exec_prefix"
6042 exec_prefix="$acl_save_exec_prefix"
6043 prefix="$acl_save_prefix"
6045 if test "X$x" = "X-L$found_dir"; then
6050 if test -z "$haveit"; then
6051 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6053 if test "$acl_hardcode_minus_L" != no; then
6054 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6056 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6062 if test "X$found_a" != "X"; then
6063 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6065 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6068 additional_includedir=
6069 case "$found_dir" in
6070 */$acl_libdirstem | */$acl_libdirstem/)
6071 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6072 if test "$name" = 'intl'; then
6073 LIBINTL_PREFIX="$basedir"
6075 additional_includedir="$basedir/include"
6077 */$acl_libdirstem2 | */$acl_libdirstem2/)
6078 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6079 if test "$name" = 'intl'; then
6080 LIBINTL_PREFIX="$basedir"
6082 additional_includedir="$basedir/include"
6085 if test "X$additional_includedir" != "X"; then
6086 if test "X$additional_includedir" != "X/usr/include"; then
6088 if test "X$additional_includedir" = "X/usr/local/include"; then
6089 if test -n "$GCC"; then
6091 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6095 if test -z "$haveit"; then
6096 for x in $CPPFLAGS $INCINTL; do
6098 acl_save_prefix="$prefix"
6099 prefix="$acl_final_prefix"
6100 acl_save_exec_prefix="$exec_prefix"
6101 exec_prefix="$acl_final_exec_prefix"
6103 exec_prefix="$acl_save_exec_prefix"
6104 prefix="$acl_save_prefix"
6106 if test "X$x" = "X-I$additional_includedir"; then
6111 if test -z "$haveit"; then
6112 if test -d "$additional_includedir"; then
6113 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6119 if test -n "$found_la"; then
6120 save_libdir="$libdir"
6122 */* | *\\*) . "$found_la" ;;
6123 *) . "./$found_la" ;;
6125 libdir="$save_libdir"
6126 for dep in $dependency_libs; do
6129 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6130 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6131 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6133 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6134 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6135 if test -n "$GCC"; then
6137 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6141 if test -z "$haveit"; then
6143 for x in $LDFLAGS $LIBINTL; do
6145 acl_save_prefix="$prefix"
6146 prefix="$acl_final_prefix"
6147 acl_save_exec_prefix="$exec_prefix"
6148 exec_prefix="$acl_final_exec_prefix"
6150 exec_prefix="$acl_save_exec_prefix"
6151 prefix="$acl_save_prefix"
6153 if test "X$x" = "X-L$additional_libdir"; then
6158 if test -z "$haveit"; then
6159 if test -d "$additional_libdir"; then
6160 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6164 for x in $LDFLAGS $LTLIBINTL; do
6166 acl_save_prefix="$prefix"
6167 prefix="$acl_final_prefix"
6168 acl_save_exec_prefix="$exec_prefix"
6169 exec_prefix="$acl_final_exec_prefix"
6171 exec_prefix="$acl_save_exec_prefix"
6172 prefix="$acl_save_prefix"
6174 if test "X$x" = "X-L$additional_libdir"; then
6179 if test -z "$haveit"; then
6180 if test -d "$additional_libdir"; then
6181 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6188 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6189 if test "$enable_rpath" != no; then
6191 for x in $rpathdirs; do
6192 if test "X$x" = "X$dir"; then
6197 if test -z "$haveit"; then
6198 rpathdirs="$rpathdirs $dir"
6201 for x in $ltrpathdirs; do
6202 if test "X$x" = "X$dir"; then
6207 if test -z "$haveit"; then
6208 ltrpathdirs="$ltrpathdirs $dir"
6213 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6216 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6219 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6220 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6226 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6227 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6233 if test "X$rpathdirs" != "X"; then
6234 if test -n "$acl_hardcode_libdir_separator"; then
6236 for found_dir in $rpathdirs; do
6237 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6239 acl_save_libdir="$libdir"
6241 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6242 libdir="$acl_save_libdir"
6243 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6245 for found_dir in $rpathdirs; do
6246 acl_save_libdir="$libdir"
6248 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6249 libdir="$acl_save_libdir"
6250 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6254 if test "X$ltrpathdirs" != "X"; then
6255 for found_dir in $ltrpathdirs; do
6256 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6266 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6267 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6268 $as_echo_n "(cached) " >&6
6270 gt_save_CPPFLAGS="$CPPFLAGS"
6271 CPPFLAGS="$CPPFLAGS $INCINTL"
6272 gt_save_LIBS="$LIBS"
6273 LIBS="$LIBS $LIBINTL"
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276 #include <libintl.h>
6277 $gt_revision_test_code
6278 extern int _nl_msg_cat_cntr;
6283 const char *_nl_expand_alias (const char *);
6287 bindtextdomain ("", "");
6288 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6293 if ac_fn_c_try_link "$LINENO"; then :
6294 eval "$gt_func_gnugettext_libintl=yes"
6296 eval "$gt_func_gnugettext_libintl=no"
6298 rm -f core conftest.err conftest.$ac_objext \
6299 conftest$ac_exeext conftest.$ac_ext
6300 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6301 LIBS="$LIBS $LIBICONV"
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304 #include <libintl.h>
6305 $gt_revision_test_code
6306 extern int _nl_msg_cat_cntr;
6311 const char *_nl_expand_alias (const char *);
6315 bindtextdomain ("", "");
6316 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6321 if ac_fn_c_try_link "$LINENO"; then :
6322 LIBINTL="$LIBINTL $LIBICONV"
6323 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6324 eval "$gt_func_gnugettext_libintl=yes"
6327 rm -f core conftest.err conftest.$ac_objext \
6328 conftest$ac_exeext conftest.$ac_ext
6330 CPPFLAGS="$gt_save_CPPFLAGS"
6331 LIBS="$gt_save_LIBS"
6333 eval ac_res=\$$gt_func_gnugettext_libintl
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6335 $as_echo "$ac_res" >&6; }
6338 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6339 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6340 && test "$PACKAGE" != gettext-runtime \
6341 && test "$PACKAGE" != gettext-tools; }; then
6342 gt_use_preinstalled_gnugettext=yes
6351 if test -n "$INTL_MACOSX_LIBS"; then
6352 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6353 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6354 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6355 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6359 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6360 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6362 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6370 $as_echo_n "checking whether to use NLS... " >&6; }
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6372 $as_echo "$USE_NLS" >&6; }
6373 if test "$USE_NLS" = "yes"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6375 $as_echo_n "checking where the gettext function comes from... " >&6; }
6376 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6377 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6378 gt_source="external libintl"
6383 gt_source="included intl directory"
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6386 $as_echo "$gt_source" >&6; }
6389 if test "$USE_NLS" = "yes"; then
6391 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6392 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6394 $as_echo_n "checking how to link with libintl... " >&6; }
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6396 $as_echo "$LIBINTL" >&6; }
6398 for element in $INCINTL; do
6400 for x in $CPPFLAGS; do
6402 acl_save_prefix="$prefix"
6403 prefix="$acl_final_prefix"
6404 acl_save_exec_prefix="$exec_prefix"
6405 exec_prefix="$acl_final_exec_prefix"
6407 exec_prefix="$acl_save_exec_prefix"
6408 prefix="$acl_save_prefix"
6410 if test "X$x" = "X$element"; then
6415 if test -z "$haveit"; then
6416 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6423 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6426 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6443 ############### common
6452 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6453 if test -n "$ac_tool_prefix"; then
6454 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6459 $as_echo_n "(cached) " >&6
6463 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6485 if test -n "$PKG_CONFIG"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6487 $as_echo "$PKG_CONFIG" >&6; }
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6495 if test -z "$ac_cv_path_PKG_CONFIG"; then
6496 ac_pt_PKG_CONFIG=$PKG_CONFIG
6497 # Extract the first word of "pkg-config", so it can be a program name with args.
6498 set dummy pkg-config; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6502 $as_echo_n "(cached) " >&6
6504 case $ac_pt_PKG_CONFIG in
6506 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6516 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6528 if test -n "$ac_pt_PKG_CONFIG"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6530 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6536 if test "x$ac_pt_PKG_CONFIG" = x; then
6539 case $cross_compiling:$ac_tool_warned in
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6543 ac_tool_warned=yes ;;
6545 PKG_CONFIG=$ac_pt_PKG_CONFIG
6548 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6552 if test -n "$PKG_CONFIG"; then
6553 _pkg_min_version=0.9.0
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6555 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6556 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6558 $as_echo "yes" >&6; }
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
6568 $as_echo_n "checking for X11... " >&6; }
6570 if test -n "$X11_CFLAGS"; then
6571 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
6572 elif test -n "$PKG_CONFIG"; then
6573 if test -n "$PKG_CONFIG" && \
6574 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6575 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
6577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6578 test $ac_status = 0; }; then
6579 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
6580 test "x$?" != "x0" && pkg_failed=yes
6587 if test -n "$X11_LIBS"; then
6588 pkg_cv_X11_LIBS="$X11_LIBS"
6589 elif test -n "$PKG_CONFIG"; then
6590 if test -n "$PKG_CONFIG" && \
6591 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6592 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
6594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6595 test $ac_status = 0; }; then
6596 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
6597 test "x$?" != "x0" && pkg_failed=yes
6607 if test $pkg_failed = yes; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609 $as_echo "no" >&6; }
6611 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6612 _pkg_short_errors_supported=yes
6614 _pkg_short_errors_supported=no
6616 if test $_pkg_short_errors_supported = yes; then
6617 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
6619 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
6621 # Put the nasty error message in config.log where it belongs
6622 echo "$X11_PKG_ERRORS" >&5
6624 as_fn_error $? "Package requirements (x11) were not met:
6628 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6629 installed software in a non-standard prefix.
6631 Alternatively, you may set the environment variables X11_CFLAGS
6632 and X11_LIBS to avoid the need to call pkg-config.
6633 See the pkg-config man page for more details." "$LINENO" 5
6634 elif test $pkg_failed = untried; then
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6639 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6640 is in your PATH or set the PKG_CONFIG environment variable to the full
6643 Alternatively, you may set the environment variables X11_CFLAGS
6644 and X11_LIBS to avoid the need to call pkg-config.
6645 See the pkg-config man page for more details.
6647 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6648 See \`config.log' for more details" "$LINENO" 5; }
6650 X11_CFLAGS=$pkg_cv_X11_CFLAGS
6651 X11_LIBS=$pkg_cv_X11_LIBS
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6653 $as_echo "yes" >&6; }
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
6662 $as_echo_n "checking for XEXT... " >&6; }
6664 if test -n "$XEXT_CFLAGS"; then
6665 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
6666 elif test -n "$PKG_CONFIG"; then
6667 if test -n "$PKG_CONFIG" && \
6668 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
6669 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
6671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6672 test $ac_status = 0; }; then
6673 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
6674 test "x$?" != "x0" && pkg_failed=yes
6681 if test -n "$XEXT_LIBS"; then
6682 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
6683 elif test -n "$PKG_CONFIG"; then
6684 if test -n "$PKG_CONFIG" && \
6685 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
6686 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
6688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6689 test $ac_status = 0; }; then
6690 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
6691 test "x$?" != "x0" && pkg_failed=yes
6701 if test $pkg_failed = yes; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6705 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6706 _pkg_short_errors_supported=yes
6708 _pkg_short_errors_supported=no
6710 if test $_pkg_short_errors_supported = yes; then
6711 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
6713 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
6715 # Put the nasty error message in config.log where it belongs
6716 echo "$XEXT_PKG_ERRORS" >&5
6718 as_fn_error $? "Package requirements (xext) were not met:
6722 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6723 installed software in a non-standard prefix.
6725 Alternatively, you may set the environment variables XEXT_CFLAGS
6726 and XEXT_LIBS to avoid the need to call pkg-config.
6727 See the pkg-config man page for more details." "$LINENO" 5
6728 elif test $pkg_failed = untried; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6733 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6734 is in your PATH or set the PKG_CONFIG environment variable to the full
6737 Alternatively, you may set the environment variables XEXT_CFLAGS
6738 and XEXT_LIBS to avoid the need to call pkg-config.
6739 See the pkg-config man page for more details.
6741 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6742 See \`config.log' for more details" "$LINENO" 5; }
6744 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
6745 XEXT_LIBS=$pkg_cv_XEXT_LIBS
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6747 $as_echo "yes" >&6; }
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
6757 $as_echo_n "checking for GTK... " >&6; }
6759 if test -n "$GTK_CFLAGS"; then
6760 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
6761 elif test -n "$PKG_CONFIG"; then
6762 if test -n "$PKG_CONFIG" && \
6763 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
6764 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
6766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6767 test $ac_status = 0; }; then
6768 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
6769 test "x$?" != "x0" && pkg_failed=yes
6776 if test -n "$GTK_LIBS"; then
6777 pkg_cv_GTK_LIBS="$GTK_LIBS"
6778 elif test -n "$PKG_CONFIG"; then
6779 if test -n "$PKG_CONFIG" && \
6780 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
6781 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
6783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6784 test $ac_status = 0; }; then
6785 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
6786 test "x$?" != "x0" && pkg_failed=yes
6796 if test $pkg_failed = yes; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6800 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6801 _pkg_short_errors_supported=yes
6803 _pkg_short_errors_supported=no
6805 if test $_pkg_short_errors_supported = yes; then
6806 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
6808 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
6810 # Put the nasty error message in config.log where it belongs
6811 echo "$GTK_PKG_ERRORS" >&5
6813 as_fn_error $? "Package requirements (gtk+-3.0) were not met:
6817 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6818 installed software in a non-standard prefix.
6820 Alternatively, you may set the environment variables GTK_CFLAGS
6821 and GTK_LIBS to avoid the need to call pkg-config.
6822 See the pkg-config man page for more details." "$LINENO" 5
6823 elif test $pkg_failed = untried; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6828 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6829 is in your PATH or set the PKG_CONFIG environment variable to the full
6832 Alternatively, you may set the environment variables GTK_CFLAGS
6833 and GTK_LIBS to avoid the need to call pkg-config.
6834 See the pkg-config man page for more details.
6836 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6837 See \`config.log' for more details" "$LINENO" 5; }
6839 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
6840 GTK_LIBS=$pkg_cv_GTK_LIBS
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6842 $as_echo "yes" >&6; }
6845 # ensure that only allowed headers are included
6846 GTK_CFLAGS+=" -DGTK_DISABLE_SINGLE_INCLUDES "
6847 # ensure that no gtk deprecated symbols are used
6848 GTK_CFLAGS+=" -DGDK_DISABLE_DEPRECATED "
6849 # GTK_CFLAGS+=" -DGTK_DISABLE_DEPRECATED "
6850 # ensure use of accessors
6851 GTK_CFLAGS+=" -DGSEAL_ENABLE "
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
6860 $as_echo_n "checking for JSON... " >&6; }
6862 if test -n "$JSON_CFLAGS"; then
6863 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
6864 elif test -n "$PKG_CONFIG"; then
6865 if test -n "$PKG_CONFIG" && \
6866 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
6867 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
6869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6870 test $ac_status = 0; }; then
6871 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
6872 test "x$?" != "x0" && pkg_failed=yes
6879 if test -n "$JSON_LIBS"; then
6880 pkg_cv_JSON_LIBS="$JSON_LIBS"
6881 elif test -n "$PKG_CONFIG"; then
6882 if test -n "$PKG_CONFIG" && \
6883 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
6884 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
6886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6887 test $ac_status = 0; }; then
6888 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
6889 test "x$?" != "x0" && pkg_failed=yes
6899 if test $pkg_failed = yes; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901 $as_echo "no" >&6; }
6903 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6904 _pkg_short_errors_supported=yes
6906 _pkg_short_errors_supported=no
6908 if test $_pkg_short_errors_supported = yes; then
6909 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
6911 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
6913 # Put the nasty error message in config.log where it belongs
6914 echo "$JSON_PKG_ERRORS" >&5
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
6917 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
6918 elif test $pkg_failed = untried; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 $as_echo "no" >&6; }
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
6922 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
6924 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
6925 JSON_LIBS=$pkg_cv_JSON_LIBS
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6927 $as_echo "yes" >&6; }
6929 $as_echo "#define HAVE_JSON 1" >>confdefs.h
6933 if test "$JSON_LIBS" == ""; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
6937 $as_echo_n "checking for JSON... " >&6; }
6939 if test -n "$JSON_CFLAGS"; then
6940 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
6941 elif test -n "$PKG_CONFIG"; then
6942 if test -n "$PKG_CONFIG" && \
6943 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
6944 ($PKG_CONFIG --exists --print-errors "json") 2>&5
6946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6947 test $ac_status = 0; }; then
6948 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
6949 test "x$?" != "x0" && pkg_failed=yes
6956 if test -n "$JSON_LIBS"; then
6957 pkg_cv_JSON_LIBS="$JSON_LIBS"
6958 elif test -n "$PKG_CONFIG"; then
6959 if test -n "$PKG_CONFIG" && \
6960 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
6961 ($PKG_CONFIG --exists --print-errors "json") 2>&5
6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964 test $ac_status = 0; }; then
6965 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
6966 test "x$?" != "x0" && pkg_failed=yes
6976 if test $pkg_failed = yes; then
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6978 $as_echo "no" >&6; }
6980 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6981 _pkg_short_errors_supported=yes
6983 _pkg_short_errors_supported=no
6985 if test $_pkg_short_errors_supported = yes; then
6986 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
6988 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
6990 # Put the nasty error message in config.log where it belongs
6991 echo "$JSON_PKG_ERRORS" >&5
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
6994 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
6995 elif test $pkg_failed = untried; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
6999 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
7001 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
7002 JSON_LIBS=$pkg_cv_JSON_LIBS
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7004 $as_echo "yes" >&6; }
7006 $as_echo "#define HAVE_JSON 1" >>confdefs.h
7009 $as_echo "#define HAVE_JSON_0 1" >>confdefs.h
7014 if test -n "$JSON_LIBS"; then
7028 # Check whether --enable-schemas-compile was given.
7029 if test "${enable_schemas_compile+set}" = set; then :
7030 enableval=$enable_schemas_compile; case ${enableval} in
7031 yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
7032 no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
7033 *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;;
7045 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7046 if test -n "$ac_tool_prefix"; then
7047 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7048 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050 $as_echo_n "checking for $ac_word... " >&6; }
7051 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7052 $as_echo_n "(cached) " >&6
7056 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7066 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7078 if test -n "$PKG_CONFIG"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7080 $as_echo "$PKG_CONFIG" >&6; }
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7088 if test -z "$ac_cv_path_PKG_CONFIG"; then
7089 ac_pt_PKG_CONFIG=$PKG_CONFIG
7090 # Extract the first word of "pkg-config", so it can be a program name with args.
7091 set dummy pkg-config; ac_word=$2
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 $as_echo_n "checking for $ac_word... " >&6; }
7094 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7095 $as_echo_n "(cached) " >&6
7097 case $ac_pt_PKG_CONFIG in
7099 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7121 if test -n "$ac_pt_PKG_CONFIG"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7123 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7129 if test "x$ac_pt_PKG_CONFIG" = x; then
7132 case $cross_compiling:$ac_tool_warned in
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7136 ac_tool_warned=yes ;;
7138 PKG_CONFIG=$ac_pt_PKG_CONFIG
7141 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7145 if test -n "$PKG_CONFIG"; then
7146 _pkg_min_version=0.16
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7148 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7149 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7151 $as_echo "yes" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7158 gsettingsschemadir=${datadir}/glib-2.0/schemas
7160 if test x$cross_compiling != xyes; then
7161 GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
7163 # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
7164 set dummy glib-compile-schemas; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then :
7168 $as_echo_n "(cached) " >&6
7170 case $GLIB_COMPILE_SCHEMAS in
7172 ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7182 ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext"
7183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
7194 if test -n "$GLIB_COMPILE_SCHEMAS"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
7196 $as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7205 if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
7206 as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5
7212 .PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
7214 mostlyclean-am: clean-gsettings-schemas
7216 gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
7218 %.gschema.valid: %.gschema.xml $(gsettings__enum_file)
7219 $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch $@
7221 all-am: $(gsettings_SCHEMAS:.xml=.valid)
7222 uninstall-am: uninstall-gsettings-schemas
7223 install-data-am: install-gsettings-schemas
7225 .SECONDARY: $(gsettings_SCHEMAS)
7227 install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
7229 if test -n "$^"; then \
7230 test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
7231 $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
7232 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
7235 uninstall-gsettings-schemas:
7236 @$(NORMAL_UNINSTALL)
7237 @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
7238 files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
7239 test -n "$$files" || exit 0; \
7240 echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
7241 cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
7242 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
7244 clean-gsettings-schemas:
7245 rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
7247 ifdef gsettings_ENUM_NAMESPACE
7248 $(gsettings__enum_file): $(gsettings_ENUM_FILES)
7249 $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" $^ > $@.tmp && mv $@.tmp $@
7259 ac_config_files="$ac_config_files Makefile icons/hicolor/scalable/Makefile po/Makefile.in src/Makefile src/glade/Makefile tests/Makefile"
7262 for ac_prog in help2man
7264 # Extract the first word of "$ac_prog", so it can be a program name with args.
7265 set dummy $ac_prog; ac_word=$2
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267 $as_echo_n "checking for $ac_word... " >&6; }
7268 if ${ac_cv_prog_HELP2MAN+:} false; then :
7269 $as_echo_n "(cached) " >&6
7271 if test -n "$HELP2MAN"; then
7272 ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281 ac_cv_prog_HELP2MAN="$ac_prog"
7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 HELP2MAN=$ac_cv_prog_HELP2MAN
7292 if test -n "$HELP2MAN"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
7294 $as_echo "$HELP2MAN" >&6; }
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7301 test -n "$HELP2MAN" && break
7305 # Extract the first word of "cppcheck", so it can be a program name with args.
7306 set dummy cppcheck; ac_word=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if ${ac_cv_prog_HAVE_CPPCHECK+:} false; then :
7310 $as_echo_n "(cached) " >&6
7312 if test -n "$HAVE_CPPCHECK"; then
7313 ac_cv_prog_HAVE_CPPCHECK="$HAVE_CPPCHECK" # Let the user override the test.
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_HAVE_CPPCHECK="yes"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 HAVE_CPPCHECK=$ac_cv_prog_HAVE_CPPCHECK
7333 if test -n "$HAVE_CPPCHECK"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CPPCHECK" >&5
7335 $as_echo "$HAVE_CPPCHECK" >&6; }
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7342 if test -n "$HAVE_CPPCHECK"; then
7351 cat >confcache <<\_ACEOF
7352 # This file is a shell script that caches the results of configure
7353 # tests run on this system so they can be shared between configure
7354 # scripts and configure runs, see configure's option --config-cache.
7355 # It is not useful on other systems. If it contains results you don't
7356 # want to keep, you may remove or edit it.
7358 # config.status only pays attention to the cache file if you give it
7359 # the --recheck option to rerun configure.
7361 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7362 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7367 # The following way of writing the cache mishandles newlines in values,
7368 # but we know of no workaround that is simple, portable, and efficient.
7369 # So, we kill variables containing newlines.
7370 # Ultrix sh set writes to stderr and can't be redirected directly,
7371 # and sets the high bit in the cache file unless we assign to the vars.
7373 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7374 eval ac_val=\$$ac_var
7378 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7379 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7382 _ | IFS | as_nl) ;; #(
7383 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7384 *) { eval $ac_var=; unset $ac_var;} ;;
7390 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7391 *${as_nl}ac_space=\ *)
7392 # `set' does not quote correctly, so add quotes: double-quote
7393 # substitution turns \\\\ into \\, and sed turns \\ into \.
7396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7399 # `set' quotes correctly as required by POSIX, so do not add quotes.
7400 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7409 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7411 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7413 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7414 if test -w "$cache_file"; then
7415 if test "x$cache_file" != "x/dev/null"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7417 $as_echo "$as_me: updating cache $cache_file" >&6;}
7418 if test ! -f "$cache_file" || test -h "$cache_file"; then
7419 cat confcache >"$cache_file"
7421 case $cache_file in #(
7423 mv -f confcache "$cache_file"$$ &&
7424 mv -f "$cache_file"$$ "$cache_file" ;; #(
7426 mv -f confcache "$cache_file" ;;
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7432 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7437 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7438 # Let make expand exec_prefix.
7439 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7441 DEFS=-DHAVE_CONFIG_H
7446 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7447 # 1. Remove the extension, and $U if already installed.
7448 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7449 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7450 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7451 # will be set to the directory where LIBOBJS objects are built.
7452 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7453 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7457 LTLIBOBJS=$ac_ltlibobjs
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7461 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7462 if test -n "$am_sleep_pid"; then
7463 # Hide warnings about reused PIDs.
7464 wait $am_sleep_pid 2>/dev/null
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7467 $as_echo "done" >&6; }
7468 if test -n "$EXEEXT"; then
7470 am__EXEEXT_FALSE='#'
7476 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7477 as_fn_error $? "conditional \"AMDEP\" was never defined.
7478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7480 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7481 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7484 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
7485 as_fn_error $? "conditional \"JSON\" was never defined.
7486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7488 if test -z "${CPPCHECK_TRUE}" && test -z "${CPPCHECK_FALSE}"; then
7489 as_fn_error $? "conditional \"CPPCHECK\" was never defined.
7490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7493 : "${CONFIG_STATUS=./config.status}"
7495 ac_clean_files_save=$ac_clean_files
7496 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7498 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7500 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7502 # Generated by $as_me.
7503 # Run this file to recreate the current configuration.
7504 # Compiler output produced by configure, useful for debugging
7505 # configure, is in config.log if it exists.
7511 SHELL=\${CONFIG_SHELL-$SHELL}
7514 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7515 ## -------------------- ##
7516 ## M4sh Initialization. ##
7517 ## -------------------- ##
7519 # Be more Bourne compatible
7520 DUALCASE=1; export DUALCASE # for MKS sh
7521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7524 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7525 # is contrary to our usage. Disable this feature.
7526 alias -g '${1+"$@"}'='"$@"'
7527 setopt NO_GLOB_SUBST
7529 case `(set -o) 2>/dev/null` in #(
7541 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7542 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7543 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7544 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7545 # Prefer a ksh shell builtin over an external printf program on Solaris,
7546 # but without wasting forks for bash or zsh.
7547 if test -z "$BASH_VERSION$ZSH_VERSION" \
7548 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7549 as_echo='print -r --'
7550 as_echo_n='print -rn --'
7551 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7552 as_echo='printf %s\n'
7553 as_echo_n='printf %s'
7555 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7556 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7557 as_echo_n='/usr/ucb/echo -n'
7559 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7560 as_echo_n_body='eval
7564 expr "X$arg" : "X\\(.*\\)$as_nl";
7565 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7567 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7569 export as_echo_n_body
7570 as_echo_n='sh -c $as_echo_n_body as_echo'
7573 as_echo='sh -c $as_echo_body as_echo'
7576 # The user is always right.
7577 if test "${PATH_SEPARATOR+set}" != set; then
7579 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7580 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7587 # We need space, tab and new line, in precisely that order. Quoting is
7588 # there to prevent editors from complaining about space-tab.
7589 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7590 # splitting by setting IFS to empty value.)
7593 # Find who we are. Look in the path if we contain no directory separator.
7596 *[\\/]* ) as_myself=$0 ;;
7597 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7608 # We did not find ourselves, most probably we were run as `sh COMMAND'
7609 # in which case we are not to be found in the path.
7610 if test "x$as_myself" = x; then
7613 if test ! -f "$as_myself"; then
7614 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7618 # Unset variables that we do not need and which cause bugs (e.g. in
7619 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7620 # suppresses any "Segmentation fault" message there. '((' could
7621 # trigger a bug in pdksh 5.2.14.
7622 for as_var in BASH_ENV ENV MAIL MAILPATH
7623 do eval test x\${$as_var+set} = xset \
7624 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7637 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7640 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7641 # ----------------------------------------
7642 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7643 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7644 # script with STATUS, using 1 if that was 0.
7647 as_status=$1; test $as_status -eq 0 && as_status=1
7649 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7650 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7652 $as_echo "$as_me: error: $2" >&2
7653 as_fn_exit $as_status
7657 # as_fn_set_status STATUS
7658 # -----------------------
7659 # Set $? to STATUS, without forking.
7663 } # as_fn_set_status
7667 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7677 # Portably unset VAR.
7680 { eval $1=; unset $1;}
7682 as_unset=as_fn_unset
7683 # as_fn_append VAR VALUE
7684 # ----------------------
7685 # Append the text in VALUE to the end of the definition contained in VAR. Take
7686 # advantage of any shell optimizations that allow amortized linear growth over
7687 # repeated appends, instead of the typical quadratic growth present in naive
7689 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7690 eval 'as_fn_append ()
7701 # as_fn_arith ARG...
7702 # ------------------
7703 # Perform arithmetic evaluation on the ARGs, and store the result in the
7704 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7705 # must be portable across $(()) and expr.
7706 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7707 eval 'as_fn_arith ()
7714 as_val=`expr "$@" || test $? -eq 1`
7719 if expr a : '\(a\)' >/dev/null 2>&1 &&
7720 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7726 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7727 as_basename=basename
7732 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7738 as_me=`$as_basename -- "$0" ||
7739 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7740 X"$0" : 'X\(//\)$' \| \
7741 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7743 sed '/^.*\/\([^/][^/]*\)\/*$/{
7757 # Avoid depending upon Character Ranges.
7758 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7759 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7760 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7761 as_cr_digits='0123456789'
7762 as_cr_alnum=$as_cr_Letters$as_cr_digits
7764 ECHO_C= ECHO_N= ECHO_T=
7765 case `echo -n x` in #(((((
7767 case `echo 'xy\c'` in
7768 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7770 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7777 rm -f conf$$ conf$$.exe conf$$.file
7778 if test -d conf$$.dir; then
7779 rm -f conf$$.dir/conf$$.file
7782 mkdir conf$$.dir 2>/dev/null
7784 if (echo >conf$$.file) 2>/dev/null; then
7785 if ln -s conf$$.file conf$$ 2>/dev/null; then
7787 # ... but there are two gotchas:
7788 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7789 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7790 # In both cases, we have to default to `cp -pR'.
7791 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7793 elif ln conf$$.file conf$$ 2>/dev/null; then
7801 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7802 rmdir conf$$.dir 2>/dev/null
7807 # Create "$as_dir" as a directory, including parents if necessary.
7812 -*) as_dir=./$as_dir;;
7814 test -d "$as_dir" || eval $as_mkdir_p || {
7818 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7819 *) as_qdir=$as_dir;;
7821 as_dirs="'$as_qdir' $as_dirs"
7822 as_dir=`$as_dirname -- "$as_dir" ||
7823 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7824 X"$as_dir" : 'X\(//\)[^/]' \| \
7825 X"$as_dir" : 'X\(//\)$' \| \
7826 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7827 $as_echo X"$as_dir" |
7828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7845 test -d "$as_dir" && break
7847 test -z "$as_dirs" || eval "mkdir $as_dirs"
7848 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7852 if mkdir -p . 2>/dev/null; then
7853 as_mkdir_p='mkdir -p "$as_dir"'
7855 test -d ./-p && rmdir ./-p
7860 # as_fn_executable_p FILE
7861 # -----------------------
7862 # Test if FILE is an executable regular file.
7863 as_fn_executable_p ()
7865 test -f "$1" && test -x "$1"
7866 } # as_fn_executable_p
7868 as_executable_p=as_fn_executable_p
7870 # Sed expression to map a string onto a valid CPP name.
7871 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7873 # Sed expression to map a string onto a valid variable name.
7874 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7878 ## ----------------------------------- ##
7879 ## Main body of $CONFIG_STATUS script. ##
7880 ## ----------------------------------- ##
7882 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7885 # Save the log message, to keep $0 and so on meaningful, and to
7886 # report actual input values of CONFIG_FILES etc. instead of their
7887 # values after options handling.
7889 This file was extended by ptask $as_me 0.0.5, which was
7890 generated by GNU Autoconf 2.69. Invocation command line was
7892 CONFIG_FILES = $CONFIG_FILES
7893 CONFIG_HEADERS = $CONFIG_HEADERS
7894 CONFIG_LINKS = $CONFIG_LINKS
7895 CONFIG_COMMANDS = $CONFIG_COMMANDS
7898 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7903 case $ac_config_files in *"
7904 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7907 case $ac_config_headers in *"
7908 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7913 # Files that config.status was made for.
7914 config_files="$ac_config_files"
7915 config_headers="$ac_config_headers"
7916 config_commands="$ac_config_commands"
7920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7922 \`$as_me' instantiates files and other configuration actions
7923 from templates according to the current configuration. Unless the files
7924 and actions are specified as TAGs, all are instantiated by default.
7926 Usage: $0 [OPTION]... [TAG]...
7928 -h, --help print this help, then exit
7929 -V, --version print version number and configuration settings, then exit
7930 --config print configuration, then exit
7931 -q, --quiet, --silent
7932 do not print progress messages
7933 -d, --debug don't remove temporary files
7934 --recheck update $as_me by reconfiguring in the same conditions
7935 --file=FILE[:TEMPLATE]
7936 instantiate the configuration file FILE
7937 --header=FILE[:TEMPLATE]
7938 instantiate the configuration header FILE
7940 Configuration files:
7943 Configuration headers:
7946 Configuration commands:
7949 Report bugs to <jeanfi@gmail.com>.
7950 ptask home page: <http://wpitchoune.net/ptask>."
7953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7954 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7956 ptask config.status 0.0.5
7957 configured by $0, generated by GNU Autoconf 2.69,
7958 with options \\"\$ac_cs_config\\"
7960 Copyright (C) 2012 Free Software Foundation, Inc.
7961 This config.status script is free software; the Free Software Foundation
7962 gives unlimited permission to copy, distribute and modify it."
7969 test -n "\$AWK" || AWK=awk
7972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7973 # The default lists apply if the user does not specify any file.
7979 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7980 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7984 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7996 # Handling of the options.
7997 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7999 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8000 $as_echo "$ac_cs_version"; exit ;;
8001 --config | --confi | --conf | --con | --co | --c )
8002 $as_echo "$ac_cs_config"; exit ;;
8003 --debug | --debu | --deb | --de | --d | -d )
8005 --file | --fil | --fi | --f )
8008 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8009 '') as_fn_error $? "missing file argument" ;;
8011 as_fn_append CONFIG_FILES " '$ac_optarg'"
8012 ac_need_defaults=false;;
8013 --header | --heade | --head | --hea )
8016 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8018 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8019 ac_need_defaults=false;;
8021 # Conflict between --help and --header
8022 as_fn_error $? "ambiguous option: \`$1'
8023 Try \`$0 --help' for more information.";;
8024 --help | --hel | -h )
8025 $as_echo "$ac_cs_usage"; exit ;;
8026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8027 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8031 -*) as_fn_error $? "unrecognized option: \`$1'
8032 Try \`$0 --help' for more information." ;;
8034 *) as_fn_append ac_config_targets " $1"
8035 ac_need_defaults=false ;;
8041 ac_configure_extra_args=
8043 if $ac_cs_silent; then
8045 ac_configure_extra_args="$ac_configure_extra_args --silent"
8049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8050 if \$ac_cs_recheck; then
8051 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8053 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8054 CONFIG_SHELL='$SHELL'
8060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8064 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8065 ## Running $as_me. ##
8071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8075 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8076 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8077 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8078 # from automake < 1.5.
8079 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8080 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8081 LINGUAS="${LINGUAS-%UNSET%}"
8086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8088 # Handling of arguments.
8089 for ac_config_target in $ac_config_targets
8091 case $ac_config_target in
8092 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8093 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8094 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
8095 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8096 "icons/hicolor/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/scalable/Makefile" ;;
8097 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8098 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8099 "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
8100 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
8102 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8107 # If the user did not use the arguments to specify the items to instantiate,
8108 # then the envvar interface is used. Set only those that are not.
8109 # We use the long form for the default assignment because of an extremely
8110 # bizarre bug on SunOS 4.1.3.
8111 if $ac_need_defaults; then
8112 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8113 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8114 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8117 # Have a temporary directory for convenience. Make it in the build tree
8118 # simply because there is no reason against having it here, and in addition,
8119 # creating and moving files from /tmp can sometimes cause problems.
8120 # Hook for its removal unless debugging.
8121 # Note that there is a small window in which the directory will not be cleaned:
8122 # after its creation but before its name has been assigned to `$tmp'.
8126 trap 'exit_status=$?
8128 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8130 trap 'as_fn_exit 1' 1 2 13 15
8132 # Create a (secure) tmp directory for tmp files.
8135 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8139 tmp=./conf$$-$RANDOM
8140 (umask 077 && mkdir "$tmp")
8141 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8144 # Set up the scripts for CONFIG_FILES section.
8145 # No need to generate them if there are no CONFIG_FILES.
8146 # This happens for instance with `./config.status config.h'.
8147 if test -n "$CONFIG_FILES"; then
8150 ac_cr=`echo X | tr X '\015'`
8151 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8152 # But we know of no other shell where ac_cr would be empty at this
8153 # point, so we can use a bashism as a fallback.
8154 if test "x$ac_cr" = x; then
8155 eval ac_cr=\$\'\\r\'
8157 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8158 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8164 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8169 echo "cat >conf$$subs.awk <<_ACEOF" &&
8170 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8174 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8176 for ac_last_try in false false false false false :; do
8177 . ./conf$$subs.sh ||
8178 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8180 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8181 if test $ac_delim_n = $ac_delim_num; then
8183 elif $ac_last_try; then
8184 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8186 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8192 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8196 s/^/S["/; s/!.*/"]=/
8206 s/\(.\{148\}\)..*/\1/
8208 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8213 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8220 s/\(.\{148\}\)..*/\1/
8222 s/["\\]/\\&/g; s/^/"/; s/$/"/
8226 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8231 ' <conf$$subs.awk | sed '
8236 ' >>$CONFIG_STATUS || ac_write_fail=1
8237 rm -f conf$$subs.awk
8238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8240 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8241 for (key in S) S_is_set[key] = 1
8247 nfields = split(line, field, "@")
8249 len = length(field[1])
8250 for (i = 2; i < nfields; i++) {
8252 keylen = length(key)
8253 if (S_is_set[key]) {
8255 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8256 len += length(value) + length(field[++i])
8267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8268 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8269 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8272 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8273 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8276 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8277 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8278 # trailing colons and then remove the whole line if VPATH becomes empty
8279 # (actually we leave an empty line to preserve line numbers).
8280 if test "x$srcdir" = x.; then
8281 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8300 fi # test -n "$CONFIG_FILES"
8302 # Set up the scripts for CONFIG_HEADERS section.
8303 # No need to generate them if there are no CONFIG_HEADERS.
8304 # This happens for instance with `./config.status Makefile'.
8305 if test -n "$CONFIG_HEADERS"; then
8306 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8310 # Transform confdefs.h into an awk script `defines.awk', embedded as
8311 # here-document in config.status, that substitutes the proper values into
8312 # config.h.in to produce config.h.
8314 # Create a delimiter string that does not exist in confdefs.h, to ease
8315 # handling of long lines.
8317 for ac_last_try in false false :; do
8318 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8319 if test -z "$ac_tt"; then
8321 elif $ac_last_try; then
8322 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8324 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8328 # For the awk script, D is an array of macro values keyed by name,
8329 # likewise P contains macro parameters if any. Preserve backslash
8330 # newline sequences.
8332 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8334 s/.\{148\}/&'"$ac_delim"'/g
8337 s/^[ ]*#[ ]*define[ ][ ]*/ /
8344 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8346 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8350 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8351 D["\1"]=" \3\\\\\\n"\\/p
8353 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8358 s/.\{148\}/&'"$ac_delim"'/g
8363 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8366 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8368 ' <confdefs.h | sed '
8369 s/'"$ac_delim"'/"\\\
8370 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8373 for (key in D) D_is_set[key] = 1
8376 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8378 split(line, arg, " ")
8379 if (arg[1] == "#") {
8383 defundef = substr(arg[1], 2)
8386 split(mac1, mac2, "(") #)
8388 prefix = substr(line, 1, index(line, defundef) - 1)
8389 if (D_is_set[macro]) {
8390 # Preserve the white space surrounding the "#".
8391 print prefix "define", macro P[macro] D[macro]
8394 # Replace #undef with comments. This is necessary, for example,
8395 # in the case of _POSIX_SOURCE, which is predefined and required
8396 # on some systems where configure will not decide to define it.
8397 if (defundef == "undef") {
8398 print "/*", prefix defundef, macro, "*/"
8406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8407 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8408 fi # test -n "$CONFIG_HEADERS"
8411 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8416 :[FHLC]) ac_mode=$ac_tag; continue;;
8418 case $ac_mode$ac_tag in
8420 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8421 :[FH]-) ac_tag=-:-;;
8422 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8439 -) ac_f="$ac_tmp/stdin";;
8440 *) # Look for the file first in the build tree, then in the source tree
8441 # (if the path is not absolute). The absolute path cannot be DOS-style,
8442 # because $ac_f cannot contain `:'.
8446 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8448 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8450 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8451 as_fn_append ac_file_inputs " '$ac_f'"
8454 # Let's still pretend it is `configure' which instantiates (i.e., don't
8455 # use $as_me), people would be surprised to read:
8456 # /* config.h. Generated by config.status. */
8457 configure_input='Generated from '`
8458 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8460 if test x"$ac_file" != x-; then
8461 configure_input="$ac_file. $configure_input"
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8463 $as_echo "$as_me: creating $ac_file" >&6;}
8465 # Neutralize special characters interpreted by sed in replacement strings.
8466 case $configure_input in #(
8467 *\&* | *\|* | *\\* )
8468 ac_sed_conf_input=`$as_echo "$configure_input" |
8469 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8470 *) ac_sed_conf_input=$configure_input;;
8474 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8475 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8480 ac_dir=`$as_dirname -- "$ac_file" ||
8481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8482 X"$ac_file" : 'X\(//\)[^/]' \| \
8483 X"$ac_file" : 'X\(//\)$' \| \
8484 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8485 $as_echo X"$ac_file" |
8486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8503 as_dir="$ac_dir"; as_fn_mkdir_p
8507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8510 # A ".." for each directory in $ac_dir_suffix.
8511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8512 case $ac_top_builddir_sub in
8513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8517 ac_abs_top_builddir=$ac_pwd
8518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8519 # for backward compatibility:
8520 ac_top_builddir=$ac_top_build_prefix
8523 .) # We are building in place.
8525 ac_top_srcdir=$ac_top_builddir_sub
8526 ac_abs_top_srcdir=$ac_pwd ;;
8527 [\\/]* | ?:[\\/]* ) # Absolute name.
8528 ac_srcdir=$srcdir$ac_dir_suffix;
8529 ac_top_srcdir=$srcdir
8530 ac_abs_top_srcdir=$srcdir ;;
8532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8533 ac_top_srcdir=$ac_top_build_prefix$srcdir
8534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8546 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8547 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8551 [\\/$]* | ?:[\\/]* ) ;;
8552 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8557 # If the template does not know about datarootdir, expand it.
8558 # FIXME: This hack should be removed a few years after 2.60.
8559 ac_datarootdir_hack=; ac_datarootdir_seen=
8570 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8571 *datarootdir*) ac_datarootdir_seen=yes;;
8572 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8574 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8577 ac_datarootdir_hack='
8578 s&@datadir@&$datadir&g
8579 s&@docdir@&$docdir&g
8580 s&@infodir@&$infodir&g
8581 s&@localedir@&$localedir&g
8582 s&@mandir@&$mandir&g
8583 s&\\\${datarootdir}&$datarootdir&g' ;;
8587 # Neutralize VPATH when `$srcdir' = `.'.
8588 # Shell code in configure.ac might set extrasub.
8589 # FIXME: do we really want to maintain this feature?
8590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8591 ac_sed_extra="$ac_vpsub
8594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8596 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8597 s|@configure_input@|$ac_sed_conf_input|;t t
8598 s&@top_builddir@&$ac_top_builddir_sub&;t t
8599 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8600 s&@srcdir@&$ac_srcdir&;t t
8601 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8602 s&@top_srcdir@&$ac_top_srcdir&;t t
8603 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8604 s&@builddir@&$ac_builddir&;t t
8605 s&@abs_builddir@&$ac_abs_builddir&;t t
8606 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8607 s&@INSTALL@&$ac_INSTALL&;t t
8608 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8609 $ac_datarootdir_hack
8611 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8612 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8614 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8615 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8616 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8617 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8619 which seems to be undefined. Please make sure it is defined" >&5
8620 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8621 which seems to be undefined. Please make sure it is defined" >&2;}
8623 rm -f "$ac_tmp/stdin"
8625 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8626 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8634 if test x"$ac_file" != x-; then
8636 $as_echo "/* $configure_input */" \
8637 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8638 } >"$ac_tmp/config.h" \
8639 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8640 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8642 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8645 mv "$ac_tmp/config.h" "$ac_file" \
8646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8649 $as_echo "/* $configure_input */" \
8650 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8651 || as_fn_error $? "could not create -" "$LINENO" 5
8653 # Compute "$ac_file"'s index in $config_headers.
8656 for _am_header in $config_headers :; do
8658 $_am_arg | $_am_arg:* )
8661 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8664 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8665 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8666 X"$_am_arg" : 'X\(//\)[^/]' \| \
8667 X"$_am_arg" : 'X\(//\)$' \| \
8668 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8669 $as_echo X"$_am_arg" |
8670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8686 s/.*/./; q'`/stamp-h$_am_stamp_count
8689 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8690 $as_echo "$as_me: executing $ac_file commands" >&6;}
8695 case $ac_file$ac_mode in
8696 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8697 # Older Autoconf quotes --file arguments for eval, but not when files
8698 # are listed without --file. Let's play safe and only enable the eval
8699 # if we detect the quoting.
8700 case $CONFIG_FILES in
8701 *\'*) eval set x "$CONFIG_FILES" ;;
8702 *) set x $CONFIG_FILES ;;
8707 # Strip MF so we end up with the name of the file.
8708 mf=`echo "$mf" | sed -e 's/:.*$//'`
8709 # Check whether this is an Automake generated Makefile or not.
8710 # We used to match only the files named 'Makefile.in', but
8711 # some people rename them; so instead we look at the file content.
8712 # Grep'ing the first line is not enough: some people post-process
8713 # each Makefile.in and add a new line on top of each file to say so.
8714 # Grep'ing the whole file is not good either: AIX grep has a line
8715 # limit of 2048, but all sed's we know have understand at least 4000.
8716 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8717 dirpart=`$as_dirname -- "$mf" ||
8718 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8719 X"$mf" : 'X\(//\)[^/]' \| \
8720 X"$mf" : 'X\(//\)$' \| \
8721 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8743 # Extract the definition of DEPDIR, am__include, and am__quote
8744 # from the Makefile without running 'make'.
8745 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8746 test -z "$DEPDIR" && continue
8747 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8748 test -z "$am__include" && continue
8749 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8750 # Find all dependency output files, they are included files with
8751 # $(DEPDIR) in their names. We invoke sed twice because it is the
8752 # simplest approach to changing $(DEPDIR) to its actual value in the
8754 for file in `sed -n "
8755 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8756 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8757 # Make sure the directory exists.
8758 test -f "$dirpart/$file" && continue
8759 fdir=`$as_dirname -- "$file" ||
8760 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8761 X"$file" : 'X\(//\)[^/]' \| \
8762 X"$file" : 'X\(//\)$' \| \
8763 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8782 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8783 # echo "creating $dirpart/$file"
8784 echo '# dummy' > "$dirpart/$file"
8790 for ac_file in $CONFIG_FILES; do
8791 # Support "outfile[:infile[:infile...]]"
8793 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8795 # PO directories have a Makefile.in generated from Makefile.in.in.
8796 case "$ac_file" in */Makefile.in)
8797 # Adjust a relative srcdir.
8798 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8799 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8800 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8801 # In autoconf-2.13 it is called $ac_given_srcdir.
8802 # In autoconf-2.50 it is called $srcdir.
8803 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8804 case "$ac_given_srcdir" in
8805 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8806 /*) top_srcdir="$ac_given_srcdir" ;;
8807 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8809 # Treat a directory as a PO directory if and only if it has a
8810 # POTFILES.in file. This allows packages to have multiple PO
8811 # directories under different names or in different locations.
8812 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8813 rm -f "$ac_dir/POTFILES"
8814 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8815 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8816 POMAKEFILEDEPS="POTFILES.in"
8817 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
8818 # on $ac_dir but don't depend on user-specified configuration
8820 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8821 # The LINGUAS file contains the set of available languages.
8822 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8823 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
8825 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8826 # Hide the ALL_LINGUAS assigment from automake < 1.5.
8827 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8828 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8830 # The set of available languages was given in configure.in.
8831 # Hide the ALL_LINGUAS assigment from automake < 1.5.
8832 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8835 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
8836 # Compute UPDATEPOFILES
8837 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
8838 # Compute DUMMYPOFILES
8839 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
8841 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
8842 case "$ac_given_srcdir" in
8844 *) srcdirpre='$(srcdir)/' ;;
8850 for lang in $ALL_LINGUAS; do
8851 POFILES="$POFILES $srcdirpre$lang.po"
8852 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8853 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8854 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8856 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8857 # environment variable.
8859 if test -n "$ALL_LINGUAS"; then
8860 for presentlang in $ALL_LINGUAS; do
8862 if test "%UNSET%" != "$LINGUAS"; then
8863 desiredlanguages="$LINGUAS"
8865 desiredlanguages="$ALL_LINGUAS"
8867 for desiredlang in $desiredlanguages; do
8868 # Use the presentlang catalog if desiredlang is
8869 # a. equal to presentlang, or
8870 # b. a variant of presentlang (because in this case,
8871 # presentlang can be used as a fallback for messages
8872 # which are not translated in the desiredlang catalog).
8873 case "$desiredlang" in
8874 "$presentlang"*) useit=yes;;
8877 if test $useit = yes; then
8878 INST_LINGUAS="$INST_LINGUAS $presentlang"
8883 if test -n "$INST_LINGUAS"; then
8884 for lang in $INST_LINGUAS; do
8885 CATALOGS="$CATALOGS $lang.gmo"
8888 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8889 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"
8890 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
8891 if test -f "$f"; then
8893 *.orig | *.bak | *~) ;;
8894 *) cat "$f" >> "$ac_dir/Makefile" ;;
8909 ac_clean_files=$ac_clean_files_save
8911 test $ac_write_fail = 0 ||
8912 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8915 # configure is writing to config.log, and then calls config.status.
8916 # config.status does its own redirection, appending to config.log.
8917 # Unfortunately, on DOS this fails, as config.log is still kept open
8918 # by configure, so config.status won't be able to write to it; its
8919 # output is simply discarded. So we exec the FD to /dev/null,
8920 # effectively closing config.log, so it can be properly (re)opened and
8921 # appended to by config.status. When coming back to configure, we
8922 # need to make the FD available again.
8923 if test "$no_create" != yes; then
8925 ac_config_status_args=
8926 test "$silent" = yes &&
8927 ac_config_status_args="$ac_config_status_args --quiet"
8929 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8931 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8932 # would make configure fail if this is the last instruction.
8933 $ac_cs_success || as_fn_exit 1
8935 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8937 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}