2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for psensor 1.1.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.
581 PACKAGE_NAME='psensor'
582 PACKAGE_TARNAME='psensor'
583 PACKAGE_VERSION='1.1.5'
584 PACKAGE_STRING='psensor 1.1.5'
585 PACKAGE_BUGREPORT='jeanfi@gmail.com'
586 PACKAGE_URL='http://wpitchoune.net/psensor'
588 ac_unique_file="src/ui.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
626 ac_subst_vars='am__EXEEXT_FALSE
701 GSETTINGS_DISABLE_SCHEMAS_COMPILE
717 XGETTEXT_EXTRA_OPTIONS
725 GETTEXT_MACRO_VERSION
764 INSTALL_STRIP_PROGRAM
807 program_transform_name
820 enable_option_checking
822 enable_dependency_tracking
830 enable_schemas_compile
834 ac_precious_vars='build_alias
873 # Initialize some variables set by options.
875 ac_init_version=false
876 ac_unrecognized_opts=
878 # The variables have the same names as the options, with
879 # dashes changed to underlines.
887 program_transform_name=s,x,x,
895 # Installation directory options.
896 # These are left unexpanded so users can "make install exec_prefix=/foo"
897 # and all the variables that are supposed to be based on exec_prefix
898 # by default will actually change.
899 # Use braces instead of parens because sh, perl, etc. also accept them.
900 # (The list follows the same order as the GNU Coding Standards.)
901 bindir='${exec_prefix}/bin'
902 sbindir='${exec_prefix}/sbin'
903 libexecdir='${exec_prefix}/libexec'
904 datarootdir='${prefix}/share'
905 datadir='${datarootdir}'
906 sysconfdir='${prefix}/etc'
907 sharedstatedir='${prefix}/com'
908 localstatedir='${prefix}/var'
909 runstatedir='${localstatedir}/run'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
913 infodir='${datarootdir}/info'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
926 # If the previous option needs an argument, assign it.
927 if test -n "$ac_prev"; then
928 eval $ac_prev=\$ac_option
934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939 # Accept the important Cygnus configure options, so we can diagnose typos.
941 case $ac_dashdash$ac_option in
945 -bindir | --bindir | --bindi | --bind | --bin | --bi)
947 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950 -build | --build | --buil | --bui | --bu)
951 ac_prev=build_alias ;;
952 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953 build_alias=$ac_optarg ;;
955 -cache-file | --cache-file | --cache-fil | --cache-fi \
956 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957 ac_prev=cache_file ;;
958 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960 cache_file=$ac_optarg ;;
963 cache_file=config.cache ;;
965 -datadir | --datadir | --datadi | --datad)
967 -datadir=* | --datadir=* | --datadi=* | --datad=*)
968 datadir=$ac_optarg ;;
970 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971 | --dataroo | --dataro | --datar)
972 ac_prev=datarootdir ;;
973 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975 datarootdir=$ac_optarg ;;
977 -disable-* | --disable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error $? "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
991 eval enable_$ac_useropt=no ;;
993 -docdir | --docdir | --docdi | --doc | --do)
995 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001 dvidir=$ac_optarg ;;
1003 -enable-* | --enable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 as_fn_error $? "invalid feature name: $ac_useropt"
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1012 "enable_$ac_useropt"
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1017 eval enable_$ac_useropt=\$ac_optarg ;;
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
1026 exec_prefix=$ac_optarg ;;
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
1039 -host | --host | --hos | --ho)
1040 ac_prev=host_alias ;;
1041 -host=* | --host=* | --hos=* | --ho=*)
1042 host_alias=$ac_optarg ;;
1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048 htmldir=$ac_optarg ;;
1050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
1055 includedir=$ac_optarg ;;
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060 infodir=$ac_optarg ;;
1062 -libdir | --libdir | --libdi | --libd)
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065 libdir=$ac_optarg ;;
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
1072 libexecdir=$ac_optarg ;;
1074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1079 -localstatedir | --localstatedir | --localstatedi | --localstated \
1080 | --localstate | --localstat | --localsta | --localst | --locals)
1081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084 localstatedir=$ac_optarg ;;
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089 mandir=$ac_optarg ;;
1091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096 | --no-cr | --no-c | -n)
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110 oldincludedir=$ac_optarg ;;
1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115 prefix=$ac_optarg ;;
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122 program_prefix=$ac_optarg ;;
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129 program_suffix=$ac_optarg ;;
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
1146 program_transform_name=$ac_optarg ;;
1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1153 -psdir | --psdir | --psdi | --psd | --ps)
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1162 -runstatedir | --runstatedir | --runstatedi | --runstated \
1163 | --runstate | --runstat | --runsta | --runst | --runs \
1164 | --run | --ru | --r)
1165 ac_prev=runstatedir ;;
1166 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1167 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1168 | --run=* | --ru=* | --r=*)
1169 runstatedir=$ac_optarg ;;
1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175 sbindir=$ac_optarg ;;
1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179 | --sharedst | --shareds | --shared | --share | --shar \
1181 ac_prev=sharedstatedir ;;
1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186 sharedstatedir=$ac_optarg ;;
1188 -site | --site | --sit)
1190 -site=* | --site=* | --sit=*)
1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196 srcdir=$ac_optarg ;;
1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199 | --syscon | --sysco | --sysc | --sys | --sy)
1200 ac_prev=sysconfdir ;;
1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203 sysconfdir=$ac_optarg ;;
1205 -target | --target | --targe | --targ | --tar | --ta | --t)
1206 ac_prev=target_alias ;;
1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208 target_alias=$ac_optarg ;;
1210 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 -version | --version | --versio | --versi | --vers | -V)
1214 ac_init_version=: ;;
1217 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1230 eval with_$ac_useropt=\$ac_optarg ;;
1232 -without-* | --without-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error $? "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1246 eval with_$ac_useropt=no ;;
1249 # Obsolete; use --with-x.
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257 x_includes=$ac_optarg ;;
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264 x_libraries=$ac_optarg ;;
1266 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1267 Try \`$0 --help' for more information"
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 case $ac_envvar in #(
1274 '' | [0-9]* | *[!_$as_cr_alnum]* )
1275 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1277 eval $ac_envvar=\$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1291 if test -n "$ac_prev"; then
1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293 as_fn_error $? "missing argument to $ac_option"
1296 if test -n "$ac_unrecognized_opts"; then
1297 case $enable_option_checking in
1299 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1300 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304 # Check all directory arguments for consistency.
1305 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir runstatedir
1310 eval ac_val=\$$ac_var
1311 # Remove trailing slashes.
1314 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315 eval $ac_var=\$ac_val;;
1317 # Be sure to have absolute directory names.
1319 [\\/$]* | ?:[\\/]* ) continue;;
1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1325 # There might be people who depend on the old broken behavior: `$host'
1326 # used to hold the argument of --host etc.
1327 # FIXME: To remove some day.
1330 target=$target_alias
1332 # FIXME: To remove some day.
1333 if test "x$host_alias" != x; then
1334 if test "x$build_alias" = x; then
1335 cross_compiling=maybe
1336 elif test "x$build_alias" != "x$host_alias"; then
1342 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1344 test "$silent" = yes && exec 6>/dev/null
1347 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1348 ac_ls_di=`ls -di .` &&
1349 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1350 as_fn_error $? "working directory cannot be determined"
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 as_fn_error $? "pwd does not report name of working directory"
1355 # Find the source files, if location was not specified.
1356 if test -z "$srcdir"; then
1357 ac_srcdir_defaulted=yes
1358 # Try the directory containing this script, then the parent directory.
1359 ac_confdir=`$as_dirname -- "$as_myself" ||
1360 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361 X"$as_myself" : 'X\(//\)[^/]' \| \
1362 X"$as_myself" : 'X\(//\)$' \| \
1363 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1364 $as_echo X"$as_myself" |
1365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1387 ac_srcdir_defaulted=no
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1391 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1393 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1397 # When building in place, set srcdir=.
1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401 # Remove unnecessary trailing slashes from srcdir.
1402 # Double slashes in file names in object file debugging info
1403 # mess up M-x gdb in Emacs.
1405 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407 for ac_var in $ac_precious_vars; do
1408 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_env_${ac_var}_value=\$${ac_var}
1410 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 # Report the --help message.
1417 if test "$ac_init_help" = "long"; then
1418 # Omit some internal or obsolete options to make the list less imposing.
1419 # This message is too long to be a string in the A/UX 3.1 sh.
1421 \`configure' configures psensor 1.1.5 to adapt to many kinds of systems.
1423 Usage: $0 [OPTION]... [VAR=VALUE]...
1425 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426 VAR=VALUE. See below for descriptions of some of the useful variables.
1428 Defaults for the options are specified in brackets.
1431 -h, --help display this help and exit
1432 --help=short display options specific to this package
1433 --help=recursive display the short help of all the included packages
1434 -V, --version display version information and exit
1435 -q, --quiet, --silent do not print \`checking ...' messages
1436 --cache-file=FILE cache test results in FILE [disabled]
1437 -C, --config-cache alias for \`--cache-file=config.cache'
1438 -n, --no-create do not create output files
1439 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1441 Installation directories:
1442 --prefix=PREFIX install architecture-independent files in PREFIX
1443 [$ac_default_prefix]
1444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1447 By default, \`make install' will install all the files in
1448 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1449 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450 for instance \`--prefix=\$HOME'.
1452 For better control, use the options below.
1454 Fine tuning of the installation directories:
1455 --bindir=DIR user executables [EPREFIX/bin]
1456 --sbindir=DIR system admin executables [EPREFIX/sbin]
1457 --libexecdir=DIR program executables [EPREFIX/libexec]
1458 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1459 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1460 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1461 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1462 --libdir=DIR object code libraries [EPREFIX/lib]
1463 --includedir=DIR C header files [PREFIX/include]
1464 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1465 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1466 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1467 --infodir=DIR info documentation [DATAROOTDIR/info]
1468 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1469 --mandir=DIR man documentation [DATAROOTDIR/man]
1470 --docdir=DIR documentation root [DATAROOTDIR/doc/psensor]
1471 --htmldir=DIR html documentation [DOCDIR]
1472 --dvidir=DIR dvi documentation [DOCDIR]
1473 --pdfdir=DIR pdf documentation [DOCDIR]
1474 --psdir=DIR ps documentation [DOCDIR]
1480 --program-prefix=PREFIX prepend PREFIX to installed program names
1481 --program-suffix=SUFFIX append SUFFIX to installed program names
1482 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485 --x-includes=DIR X include files are in DIR
1486 --x-libraries=DIR X library files are in DIR
1489 --build=BUILD configure for building on BUILD [guessed]
1490 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1494 if test -n "$ac_init_help"; then
1495 case $ac_init_help in
1496 short | recursive ) echo "Configuration of psensor 1.1.5:";;
1501 --disable-option-checking ignore unrecognized --enable/--with options
1502 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1503 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1504 --enable-silent-rules less verbose build output (undo: "make V=1")
1505 --disable-silent-rules verbose build output (undo: "make V=0")
1506 --enable-dependency-tracking
1507 do not reject slow dependency extractors
1508 --disable-dependency-tracking
1509 speeds up one-time build
1510 --disable-largefile omit support for large files
1511 --disable-nls do not use Native Language Support
1512 --disable-rpath do not hardcode runtime library paths
1513 --disable-schemas-compile
1514 Disable regeneration of gschemas.compiled on install
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519 --with-x use the X Window System
1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1521 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1522 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1523 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1524 --without-libintl-prefix don't search for libintl in includedir and libdir
1525 --with-libatiadl=DIR use libatiadlxx in DIR
1526 --with-gtop=yes|no use gtop
1528 Some influential environment variables:
1529 CC C compiler command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1532 nonstandard directory <lib dir>
1533 LIBS libraries to pass to the linker, e.g. -l<library>
1534 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1535 you have headers in a nonstandard directory <include dir>
1536 XMKMF Path to xmkmf, Makefile generator for X Window System
1538 PKG_CONFIG path to pkg-config utility
1540 directories to add to pkg-config's search path
1542 path overriding pkg-config's built-in search path
1543 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1544 X11_LIBS linker flags for X11, overriding pkg-config
1545 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1546 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1547 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1548 GTK_LIBS linker flags for GTK, overriding pkg-config
1550 C compiler flags for LIBUDISKS2, overriding pkg-config
1552 linker flags for LIBUDISKS2, overriding pkg-config
1554 C compiler flags for ATASMART, overriding pkg-config
1556 linker flags for ATASMART, overriding pkg-config
1558 C compiler flags for LIBNOTIFY, overriding pkg-config
1560 linker flags for LIBNOTIFY, overriding pkg-config
1562 C compiler flags for APPINDICATOR, overriding pkg-config
1564 linker flags for APPINDICATOR, overriding pkg-config
1565 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1566 CURL_LIBS linker flags for CURL, overriding pkg-config
1567 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1568 JSON_LIBS linker flags for JSON, overriding pkg-config
1570 C compiler flags for UNITY, overriding pkg-config
1571 UNITY_LIBS linker flags for UNITY, overriding pkg-config
1572 LIBMICROHTTPD_CFLAGS
1573 C compiler flags for LIBMICROHTTPD, overriding pkg-config
1575 linker flags for LIBMICROHTTPD, overriding pkg-config
1576 GTOP_CFLAGS C compiler flags for GTOP, overriding pkg-config
1577 GTOP_LIBS linker flags for GTOP, overriding pkg-config
1579 Use these variables to override the choices made by `configure' or to help
1580 it to find libraries and programs with nonstandard names/locations.
1582 Report bugs to <jeanfi@gmail.com>.
1583 psensor home page: <http://wpitchoune.net/psensor>.
1588 if test "$ac_init_help" = "recursive"; then
1589 # If there are subdirs, report their specific --help.
1590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1591 test -d "$ac_dir" ||
1592 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1597 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1600 # A ".." for each directory in $ac_dir_suffix.
1601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1602 case $ac_top_builddir_sub in
1603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1607 ac_abs_top_builddir=$ac_pwd
1608 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609 # for backward compatibility:
1610 ac_top_builddir=$ac_top_build_prefix
1613 .) # We are building in place.
1615 ac_top_srcdir=$ac_top_builddir_sub
1616 ac_abs_top_srcdir=$ac_pwd ;;
1617 [\\/]* | ?:[\\/]* ) # Absolute name.
1618 ac_srcdir=$srcdir$ac_dir_suffix;
1619 ac_top_srcdir=$srcdir
1620 ac_abs_top_srcdir=$srcdir ;;
1622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623 ac_top_srcdir=$ac_top_build_prefix$srcdir
1624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1626 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1628 cd "$ac_dir" || { ac_status=$?; continue; }
1629 # Check for guested configure.
1630 if test -f "$ac_srcdir/configure.gnu"; then
1632 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633 elif test -f "$ac_srcdir/configure"; then
1635 $SHELL "$ac_srcdir/configure" --help=recursive
1637 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639 cd "$ac_pwd" || { ac_status=$?; break; }
1643 test -n "$ac_init_help" && exit $ac_status
1644 if $ac_init_version; then
1646 psensor configure 1.1.5
1647 generated by GNU Autoconf 2.69
1649 Copyright (C) 2012 Free Software Foundation, Inc.
1650 This configure script is free software; the Free Software Foundation
1651 gives unlimited permission to copy, distribute and modify it.
1656 ## ------------------------ ##
1657 ## Autoconf initialization. ##
1658 ## ------------------------ ##
1660 # ac_fn_c_try_compile LINENO
1661 # --------------------------
1662 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_compile ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext
1667 if { { ac_try="$ac_compile"
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_compile") 2>conftest.err
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest.$ac_objext; then :
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
1696 } # ac_fn_c_try_compile
1698 # ac_fn_c_try_cpp LINENO
1699 # ----------------------
1700 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if { { ac_try="$ac_cpp conftest.$ac_ext"
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } > conftest.i && {
1720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1735 # ac_fn_c_try_link LINENO
1736 # -----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded.
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext conftest$ac_exeext
1742 if { { ac_try="$ac_link"
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>conftest.err
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest$ac_exeext && {
1761 test "$cross_compiling" = yes ||
1762 test -x conftest$ac_exeext
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1771 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1772 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1773 # interfere with the next link command; also delete a directory that is
1774 # left behind by Apple's compiler. We do this before executing the actions.
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status $ac_retval
1779 } # ac_fn_c_try_link
1781 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1782 # -------------------------------------------------------
1783 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1784 # the include files in INCLUDES and setting the cache variable VAR
1786 ac_fn_c_check_header_mongrel ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if eval \${$3+:} false; then :
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval \${$3+:} false; then :
1793 $as_echo_n "(cached) " >&6
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1799 # Is the header compilable?
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1801 $as_echo_n "checking $2 usability... " >&6; }
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1807 if ac_fn_c_try_compile "$LINENO"; then :
1808 ac_header_compiler=yes
1810 ac_header_compiler=no
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1814 $as_echo "$ac_header_compiler" >&6; }
1816 # Is the header present?
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1818 $as_echo_n "checking $2 presence... " >&6; }
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1823 if ac_fn_c_try_cpp "$LINENO"; then :
1824 ac_header_preproc=yes
1826 ac_header_preproc=no
1828 rm -f conftest.err conftest.i conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1830 $as_echo "$ac_header_preproc" >&6; }
1832 # So? What about this header?
1833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1836 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1842 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1844 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1846 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1848 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1851 ( $as_echo "## ------------------------------- ##
1852 ## Report this to jeanfi@gmail.com ##
1853 ## ------------------------------- ##"
1854 ) | sed "s/^/$as_me: WARNING: /" >&2
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1862 eval "$3=\$ac_header_compiler"
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 } # ac_fn_c_check_header_mongrel
1872 # ac_fn_c_try_run LINENO
1873 # ----------------------
1874 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1875 # that executables *can* be run.
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 if { { ac_try="$ac_link"
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_link") 2>&5
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1890 { { case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_try") 2>&5
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; }; }; then :
1902 $as_echo "$as_me: program exited with status $ac_status" >&5
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1906 ac_retval=$ac_status
1908 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 as_fn_set_status $ac_retval
1914 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1915 # -------------------------------------------------------
1916 # Tests whether HEADER exists and can be compiled using the include files in
1917 # INCLUDES, setting the cache variable VAR accordingly.
1918 ac_fn_c_check_header_compile ()
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if eval \${$3+:} false; then :
1924 $as_echo_n "(cached) " >&6
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1931 if ac_fn_c_try_compile "$LINENO"; then :
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 } # ac_fn_c_check_header_compile
1944 cat >config.log <<_ACEOF
1945 This file contains any messages produced by compilers while
1946 running configure, to aid debugging if configure makes a mistake.
1948 It was created by psensor $as_me 1.1.5, which was
1949 generated by GNU Autoconf 2.69. Invocation command line was
1961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1973 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir=.
1985 $as_echo "PATH: $as_dir"
2001 # Keep a trace of the command line.
2002 # Strip out --no-create and --no-recursion so they do not pile up.
2003 # Strip out --silent because we don't want to record it for future runs.
2004 # Also quote any args containing shell meta-characters.
2005 # Make two passes to allow for proper duplicate-argument suppression.
2009 ac_must_keep_next=false
2015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2017 | -silent | --silent | --silen | --sile | --sil)
2020 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2023 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2025 as_fn_append ac_configure_args1 " '$ac_arg'"
2026 if test $ac_must_keep_next = true; then
2027 ac_must_keep_next=false # Got value, back to normal.
2030 *=* | --config-cache | -C | -disable-* | --disable-* \
2031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2033 | -with-* | --with-* | -without-* | --without-* | --x)
2034 case "$ac_configure_args0 " in
2035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2038 -* ) ac_must_keep_next=true ;;
2041 as_fn_append ac_configure_args " '$ac_arg'"
2046 { ac_configure_args0=; unset ac_configure_args0;}
2047 { ac_configure_args1=; unset ac_configure_args1;}
2049 # When interrupted or exit'd, cleanup temporary files, and complete
2050 # config.log. We remove comments because anyway the quotes in there
2051 # would cause problems or look ugly.
2052 # WARNING: Use '\'' to represent an apostrophe within the trap.
2053 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2054 trap 'exit_status=$?
2055 # Save into config.log some information that might help in debugging.
2059 $as_echo "## ---------------- ##
2060 ## Cache variables. ##
2061 ## ---------------- ##"
2063 # The following way of writing the cache mishandles newlines in values,
2065 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2066 eval ac_val=\$$ac_var
2070 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2071 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2074 _ | IFS | as_nl) ;; #(
2075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2076 *) { eval $ac_var=; unset $ac_var;} ;;
2081 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2082 *${as_nl}ac_space=\ *)
2084 "s/'\''/'\''\\\\'\'''\''/g;
2085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2095 $as_echo "## ----------------- ##
2096 ## Output variables. ##
2097 ## ----------------- ##"
2099 for ac_var in $ac_subst_vars
2101 eval ac_val=\$$ac_var
2103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2105 $as_echo "$ac_var='\''$ac_val'\''"
2109 if test -n "$ac_subst_files"; then
2110 $as_echo "## ------------------- ##
2111 ## File substitutions. ##
2112 ## ------------------- ##"
2114 for ac_var in $ac_subst_files
2116 eval ac_val=\$$ac_var
2118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2120 $as_echo "$ac_var='\''$ac_val'\''"
2125 if test -s confdefs.h; then
2126 $as_echo "## ----------- ##
2133 test "$ac_signal" != 0 &&
2134 $as_echo "$as_me: caught signal $ac_signal"
2135 $as_echo "$as_me: exit $exit_status"
2137 rm -f core *.core core.conftest.* &&
2138 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2141 for ac_signal in 1 2 13 15; do
2142 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2147 rm -f -r conftest* confdefs.h
2149 $as_echo "/* confdefs.h */" > confdefs.h
2151 # Predefined preprocessor variables.
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_NAME "$PACKAGE_NAME"
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_STRING "$PACKAGE_STRING"
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_URL "$PACKAGE_URL"
2178 # Let the site file select an alternate cache file if it wants to.
2179 # Prefer an explicitly selected file to automatically selected ones.
2182 if test -n "$CONFIG_SITE"; then
2183 # We do not want a PATH search for config.site.
2184 case $CONFIG_SITE in #((
2185 -*) ac_site_file1=./$CONFIG_SITE;;
2186 */*) ac_site_file1=$CONFIG_SITE;;
2187 *) ac_site_file1=./$CONFIG_SITE;;
2189 elif test "x$prefix" != xNONE; then
2190 ac_site_file1=$prefix/share/config.site
2191 ac_site_file2=$prefix/etc/config.site
2193 ac_site_file1=$ac_default_prefix/share/config.site
2194 ac_site_file2=$ac_default_prefix/etc/config.site
2196 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2198 test "x$ac_site_file" = xNONE && continue
2199 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2201 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2202 sed 's/^/| /' "$ac_site_file" >&5
2204 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206 as_fn_error $? "failed to load site script $ac_site_file
2207 See \`config.log' for more details" "$LINENO" 5; }
2211 if test -r "$cache_file"; then
2212 # Some versions of bash will fail to source /dev/null (special files
2213 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2214 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2216 $as_echo "$as_me: loading cache $cache_file" >&6;}
2218 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2219 *) . "./$cache_file";;
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2224 $as_echo "$as_me: creating cache $cache_file" >&6;}
2228 gt_needs="$gt_needs "
2229 # Check that the precious variables saved in the cache have kept the same
2231 ac_cache_corrupted=false
2232 for ac_var in $ac_precious_vars; do
2233 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2234 eval ac_new_set=\$ac_env_${ac_var}_set
2235 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2236 eval ac_new_val=\$ac_env_${ac_var}_value
2237 case $ac_old_set,$ac_new_set in
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2240 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2241 ac_cache_corrupted=: ;;
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2244 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2245 ac_cache_corrupted=: ;;
2248 if test "x$ac_old_val" != "x$ac_new_val"; then
2249 # differences in whitespace do not lead to failure.
2250 ac_old_val_w=`echo x $ac_old_val`
2251 ac_new_val_w=`echo x $ac_new_val`
2252 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2254 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2255 ac_cache_corrupted=:
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2258 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2259 eval $ac_var=\$ac_old_val
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2262 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2264 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2267 # Pass precious variables to config.status.
2268 if test "$ac_new_set" = set; then
2270 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2271 *) ac_arg=$ac_var=$ac_new_val ;;
2273 case " $ac_configure_args " in
2274 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2275 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2279 if $ac_cache_corrupted; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2283 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2284 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2286 ## -------------------- ##
2287 ## Main body of script. ##
2288 ## -------------------- ##
2291 ac_cpp='$CPP $CPPFLAGS'
2292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298 am__api_version='1.15'
2301 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2302 if test -f "$ac_dir/install-sh"; then
2304 ac_install_sh="$ac_aux_dir/install-sh -c"
2306 elif test -f "$ac_dir/install.sh"; then
2308 ac_install_sh="$ac_aux_dir/install.sh -c"
2310 elif test -f "$ac_dir/shtool"; then
2312 ac_install_sh="$ac_aux_dir/shtool install -c"
2316 if test -z "$ac_aux_dir"; then
2317 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2320 # These three variables are undocumented and unsupported,
2321 # and are intended to be withdrawn in a future Autoconf release.
2322 # They can cause serious problems if a builder's source tree is in a directory
2323 # whose full name contains unusual characters.
2324 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2325 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2326 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2329 # Find a good install program. We prefer a C program (faster),
2330 # so one script is as good as another. But avoid the broken or
2331 # incompatible versions:
2332 # SysV /etc/install, /usr/sbin/install
2333 # SunOS /usr/etc/install
2334 # IRIX /sbin/install
2336 # AmigaOS /C/install, which installs bootblocks on floppy discs
2337 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2340 # OS/2's system install, which has a completely different semantic
2341 # ./install, which can be erroneously created by make from ./install.sh.
2342 # Reject install programs that cannot install multiple files.
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2344 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2345 if test -z "$INSTALL"; then
2346 if ${ac_cv_path_install+:} false; then :
2347 $as_echo_n "(cached) " >&6
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 test -z "$as_dir" && as_dir=.
2354 # Account for people who put trailing slashes in PATH elements.
2355 case $as_dir/ in #((
2356 ./ | .// | /[cC]/* | \
2357 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2358 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2361 # OSF1 and SCO ODT 3.0 have their own names for install.
2362 # Don't use installbsd from OSF since it installs stuff as root
2364 for ac_prog in ginstall scoinst install; do
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2367 if test $ac_prog = install &&
2368 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2369 # AIX install. It has an incompatible calling convention.
2371 elif test $ac_prog = install &&
2372 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2373 # program-specific install script used by HP pwplus--don't use.
2376 rm -rf conftest.one conftest.two conftest.dir
2377 echo one > conftest.one
2378 echo two > conftest.two
2380 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2381 test -s conftest.one && test -s conftest.two &&
2382 test -s conftest.dir/conftest.one &&
2383 test -s conftest.dir/conftest.two
2385 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2398 rm -rf conftest.one conftest.two conftest.dir
2401 if test "${ac_cv_path_install+set}" = set; then
2402 INSTALL=$ac_cv_path_install
2404 # As a last resort, use the slow shell script. Don't cache a
2405 # value for INSTALL within a source directory, because that will
2406 # break other packages using the cache if that directory is
2407 # removed, or if the value is a relative name.
2408 INSTALL=$ac_install_sh
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2412 $as_echo "$INSTALL" >&6; }
2414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2415 # It thinks the first close brace ends the variable substitution.
2416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2423 $as_echo_n "checking whether build environment is sane... " >&6; }
2424 # Reject unsafe characters in $srcdir or the absolute working directory
2425 # name. Accept space and tab only in the latter.
2429 *[\\\"\#\$\&\'\`$am_lf]*)
2430 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2433 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2434 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2437 # Do 'set' in a subshell so we don't clobber the current shell's
2438 # arguments. Must try -L first in case configure is actually a
2439 # symlink; some systems play weird games with the mod time of symlinks
2440 # (eg FreeBSD returns the mod time of the symlink's containing
2444 for am_try in 1 2; do
2445 echo "timestamp, slept: $am_has_slept" > conftest.file
2446 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2447 if test "$*" = "X"; then
2449 set X `ls -t "$srcdir/configure" conftest.file`
2451 if test "$*" != "X $srcdir/configure conftest.file" \
2452 && test "$*" != "X conftest.file $srcdir/configure"; then
2454 # If neither matched, then we have a broken ls. This can happen
2455 # if, for instance, CONFIG_SHELL is bash and it inherits a
2456 # broken ls alias from the environment. This has actually
2457 # happened. Such a system could not be considered "sane".
2458 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2459 alias in your environment" "$LINENO" 5
2461 if test "$2" = conftest.file || test $am_try -eq 2; then
2468 test "$2" = conftest.file
2474 as_fn_error $? "newly created file is older than distributed files!
2475 Check your system clock" "$LINENO" 5
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2478 $as_echo "yes" >&6; }
2479 # If we didn't sleep, we still need to ensure time stamps of config.status and
2480 # generated files are strictly newer.
2482 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2489 test "$program_prefix" != NONE &&
2490 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2491 # Use a double $ so make ignores it.
2492 test "$program_suffix" != NONE &&
2493 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2494 # Double any \ or $.
2495 # By default was `s,x,x', remove it if useless.
2496 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2497 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2499 # Expand $ac_aux_dir to an absolute path.
2500 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2502 if test x"${MISSING+set}" != xset; then
2505 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2507 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2510 # Use eval to expand $SHELL
2511 if eval "$MISSING --is-lightweight"; then
2512 am_missing_run="$MISSING "
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2516 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2519 if test x"${install_sh+set}" != xset; then
2522 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2524 install_sh="\${SHELL} $am_aux_dir/install-sh"
2528 # Installed binaries are usually stripped using 'strip' when the user
2529 # run "make install-strip". However 'strip' might not be the right
2530 # tool to use in cross-compilation environments, therefore Automake
2531 # will honor the 'STRIP' environment variable to overrule this program.
2532 if test "$cross_compiling" != no; then
2533 if test -n "$ac_tool_prefix"; then
2534 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2535 set dummy ${ac_tool_prefix}strip; ac_word=$2
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2537 $as_echo_n "checking for $ac_word... " >&6; }
2538 if ${ac_cv_prog_STRIP+:} false; then :
2539 $as_echo_n "(cached) " >&6
2541 if test -n "$STRIP"; then
2542 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 test -z "$as_dir" && as_dir=.
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2551 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 STRIP=$ac_cv_prog_STRIP
2562 if test -n "$STRIP"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2564 $as_echo "$STRIP" >&6; }
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2567 $as_echo "no" >&6; }
2572 if test -z "$ac_cv_prog_STRIP"; then
2574 # Extract the first word of "strip", so it can be a program name with args.
2575 set dummy strip; ac_word=$2
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2577 $as_echo_n "checking for $ac_word... " >&6; }
2578 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2579 $as_echo_n "(cached) " >&6
2581 if test -n "$ac_ct_STRIP"; then
2582 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2591 ac_cv_prog_ac_ct_STRIP="strip"
2592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2602 if test -n "$ac_ct_STRIP"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2604 $as_echo "$ac_ct_STRIP" >&6; }
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607 $as_echo "no" >&6; }
2610 if test "x$ac_ct_STRIP" = x; then
2613 case $cross_compiling:$ac_tool_warned in
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2617 ac_tool_warned=yes ;;
2622 STRIP="$ac_cv_prog_STRIP"
2626 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2629 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2630 if test -z "$MKDIR_P"; then
2631 if ${ac_cv_path_mkdir+:} false; then :
2632 $as_echo_n "(cached) " >&6
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2638 test -z "$as_dir" && as_dir=.
2639 for ac_prog in mkdir gmkdir; do
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2642 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2643 'mkdir (GNU coreutils) '* | \
2644 'mkdir (coreutils) '* | \
2645 'mkdir (fileutils) '4.1*)
2646 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2656 test -d ./--version && rmdir ./--version
2657 if test "${ac_cv_path_mkdir+set}" = set; then
2658 MKDIR_P="$ac_cv_path_mkdir -p"
2660 # As a last resort, use the slow shell script. Don't cache a
2661 # value for MKDIR_P within a source directory, because that will
2662 # break other packages using the cache if that directory is
2663 # removed, or if the value is a relative name.
2664 MKDIR_P="$ac_install_sh -d"
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2668 $as_echo "$MKDIR_P" >&6; }
2670 for ac_prog in gawk mawk nawk awk
2672 # Extract the first word of "$ac_prog", so it can be a program name with args.
2673 set dummy $ac_prog; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_AWK+:} false; then :
2677 $as_echo_n "(cached) " >&6
2679 if test -n "$AWK"; then
2680 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689 ac_cv_prog_AWK="$ac_prog"
2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 if test -n "$AWK"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2702 $as_echo "$AWK" >&6; }
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2709 test -n "$AWK" && break
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2713 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2715 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2716 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2717 $as_echo_n "(cached) " >&6
2719 cat >conftest.make <<\_ACEOF
2722 @echo '@@@%%%=$(MAKE)=@@@%%%'
2724 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2725 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2727 eval ac_cv_prog_make_${ac_make}_set=yes;;
2729 eval ac_cv_prog_make_${ac_make}_set=no;;
2733 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2735 $as_echo "yes" >&6; }
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739 $as_echo "no" >&6; }
2740 SET_MAKE="MAKE=${MAKE-make}"
2743 rm -rf .tst 2>/dev/null
2744 mkdir .tst 2>/dev/null
2745 if test -d .tst; then
2750 rmdir .tst 2>/dev/null
2752 # Check whether --enable-silent-rules was given.
2753 if test "${enable_silent_rules+set}" = set; then :
2754 enableval=$enable_silent_rules;
2757 case $enable_silent_rules in # (((
2758 yes) AM_DEFAULT_VERBOSITY=0;;
2759 no) AM_DEFAULT_VERBOSITY=1;;
2760 *) AM_DEFAULT_VERBOSITY=1;;
2762 am_make=${MAKE-make}
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2764 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2765 if ${am_cv_make_support_nested_variables+:} false; then :
2766 $as_echo_n "(cached) " >&6
2768 if $as_echo 'TRUE=$(BAR$(V))
2774 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2775 am_cv_make_support_nested_variables=yes
2777 am_cv_make_support_nested_variables=no
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2781 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2782 if test $am_cv_make_support_nested_variables = yes; then
2784 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2786 AM_V=$AM_DEFAULT_VERBOSITY
2787 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2791 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2792 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2793 # is not polluted with repeated "-I."
2794 am__isrc=' -I$(srcdir)'
2795 # test to see if srcdir already configured
2796 if test -f $srcdir/config.status; then
2797 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2801 # test whether we have cygpath
2802 if test -z "$CYGPATH_W"; then
2803 if (cygpath --version) >/dev/null 2>/dev/null; then
2804 CYGPATH_W='cygpath -w'
2811 # Define the identity of the package.
2816 cat >>confdefs.h <<_ACEOF
2817 #define PACKAGE "$PACKAGE"
2821 cat >>confdefs.h <<_ACEOF
2822 #define VERSION "$VERSION"
2825 # Some tools Automake needs.
2827 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2830 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2833 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2836 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2839 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2841 # For better backward compatibility. To be removed once Automake 1.9.x
2842 # dies out for good. For more background, see:
2843 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2844 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2845 mkdir_p='$(MKDIR_P)'
2847 # We need awk for the "check" target (and possibly the TAP driver). The
2848 # system "awk" is bad on some platforms.
2849 # Always define AMTAR for backward compatibility. Yes, it's still used
2850 # in the wild :-( We should find a proper way to deprecate it ...
2854 # We'll loop over all known methods to create a tar archive until one works.
2855 _am_tools='gnutar pax cpio none'
2857 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2864 # POSIX will say in a future version that running "rm -f" with no argument
2865 # is OK; and we want to be able to make that assumption in our Makefile
2866 # recipes. So use an aggressive probe to check that the usage we want is
2867 # actually supported "in the wild" to an acceptable degree.
2868 # See automake bug#10828.
2869 # To make any issue more visible, cause the running configure to be aborted
2870 # by default if the 'rm' program in use doesn't match our expectations; the
2871 # user can still override this though.
2872 if rm -f && rm -fr && rm -rf; then : OK; else
2876 Your 'rm' program seems unable to run without file operands specified
2877 on the command line, even when the '-f' option is present. This is contrary
2878 to the behaviour of most rm programs out there, and not conforming with
2879 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2881 Please tell bug-automake@gnu.org about your system, including the value
2882 of your $PATH and any error possibly output before this message. This
2883 can help us improve future automake versions.
2886 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2887 echo 'Configuration will proceed anyway, since you have set the' >&2
2888 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2892 Aborting the configuration process, to ensure you take notice of the issue.
2894 You can download and install GNU coreutils to get an 'rm' implementation
2895 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2897 If you want to complete the configuration process using your problematic
2898 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2899 to "yes", and re-run configure.
2902 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2908 ac_config_headers="$ac_config_headers config.h"
2914 # Checks for programs.
2916 ac_cpp='$CPP $CPPFLAGS'
2917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920 if test -n "$ac_tool_prefix"; then
2921 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2922 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_CC+:} false; then :
2926 $as_echo_n "(cached) " >&6
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 if test -n "$CC"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951 $as_echo "$CC" >&6; }
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2959 if test -z "$ac_cv_prog_CC"; then
2961 # Extract the first word of "gcc", so it can be a program name with args.
2962 set dummy gcc; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2966 $as_echo_n "(cached) " >&6
2968 if test -n "$ac_ct_CC"; then
2969 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2978 ac_cv_prog_ac_ct_CC="gcc"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2989 if test -n "$ac_ct_CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2991 $as_echo "$ac_ct_CC" >&6; }
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2997 if test "x$ac_ct_CC" = x; then
3000 case $cross_compiling:$ac_tool_warned in
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3004 ac_tool_warned=yes ;;
3012 if test -z "$CC"; then
3013 if test -n "$ac_tool_prefix"; then
3014 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3015 set dummy ${ac_tool_prefix}cc; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if ${ac_cv_prog_CC+:} false; then :
3019 $as_echo_n "(cached) " >&6
3021 if test -n "$CC"; then
3022 ac_cv_prog_CC="$CC" # Let the user override the test.
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3031 ac_cv_prog_CC="${ac_tool_prefix}cc"
3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 if test -n "$CC"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3044 $as_echo "$CC" >&6; }
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3053 if test -z "$CC"; then
3054 # Extract the first word of "cc", so it can be a program name with args.
3055 set dummy cc; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if ${ac_cv_prog_CC+:} false; then :
3059 $as_echo_n "(cached) " >&6
3061 if test -n "$CC"; then
3062 ac_cv_prog_CC="$CC" # Let the user override the test.
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3073 ac_prog_rejected=yes
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 if test $ac_prog_rejected = yes; then
3085 # We found a bogon in the path, so make sure we never use it.
3086 set dummy $ac_cv_prog_CC
3088 if test $# != 0; then
3089 # We chose a different compiler from the bogus one.
3090 # However, it has the same basename, so the bogon will be chosen
3091 # first if we set CC to just the basename; use the full file name.
3093 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3099 if test -n "$CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3109 if test -z "$CC"; then
3110 if test -n "$ac_tool_prefix"; then
3111 for ac_prog in cl.exe
3113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if ${ac_cv_prog_CC+:} false; then :
3118 $as_echo_n "(cached) " >&6
3120 if test -n "$CC"; then
3121 ac_cv_prog_CC="$CC" # Let the user override the test.
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 if test -n "$CC"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143 $as_echo "$CC" >&6; }
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3150 test -n "$CC" && break
3153 if test -z "$CC"; then
3155 for ac_prog in cl.exe
3157 # Extract the first word of "$ac_prog", so it can be a program name with args.
3158 set dummy $ac_prog; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3162 $as_echo_n "(cached) " >&6
3164 if test -n "$ac_ct_CC"; then
3165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174 ac_cv_prog_ac_ct_CC="$ac_prog"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3185 if test -n "$ac_ct_CC"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3187 $as_echo "$ac_ct_CC" >&6; }
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3194 test -n "$ac_ct_CC" && break
3197 if test "x$ac_ct_CC" = x; then
3200 case $cross_compiling:$ac_tool_warned in
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3204 ac_tool_warned=yes ;;
3213 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215 as_fn_error $? "no acceptable C compiler found in \$PATH
3216 See \`config.log' for more details" "$LINENO" 5; }
3218 # Provide some information about the compiler.
3219 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3222 for ac_option in --version -v -V -qversion; do
3223 { { ac_try="$ac_compiler $ac_option >&5"
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 $as_echo "$ac_try_echo"; } >&5
3230 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3232 if test -s conftest.err; then
3234 ... rest of stderr output deleted ...
3235 10q' conftest.err >conftest.er1
3236 cat conftest.er1 >&5
3238 rm -f conftest.er1 conftest.err
3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }
3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244 /* end confdefs.h. */
3254 ac_clean_files_save=$ac_clean_files
3255 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3256 # Try to create an executable without -o first, disregard a.out.
3257 # It will help us diagnose broken compilers, and finding out an intuition
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3260 $as_echo_n "checking whether the C compiler works... " >&6; }
3261 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3263 # The possible output files:
3264 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3267 for ac_file in $ac_files
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3271 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3276 if { { ac_try="$ac_link_default"
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283 (eval "$ac_link_default") 2>&5
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }; then :
3287 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3288 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3289 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3290 # so that the user can short-circuit this test for compilers unknown to
3292 for ac_file in $ac_files ''
3294 test -f "$ac_file" || continue
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3299 # We found the default executable, but exeext='' is most
3303 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3305 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3307 # We set ac_cv_exeext here because the later test for it is not
3308 # safe: cross compilers may not add the suffix if given an `-o'
3309 # argument, so we may need to know it at that point already.
3310 # Even if this section looks crufty: it has the advantage of
3317 test "$ac_cv_exeext" = no && ac_cv_exeext=
3322 if test -z "$ac_file"; then :
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 $as_echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3330 as_fn_error 77 "C compiler cannot create executables
3331 See \`config.log' for more details" "$LINENO" 5; }
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3334 $as_echo "yes" >&6; }
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3337 $as_echo_n "checking for C compiler default output file name... " >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3339 $as_echo "$ac_file" >&6; }
3340 ac_exeext=$ac_cv_exeext
3342 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3343 ac_clean_files=$ac_clean_files_save
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3345 $as_echo_n "checking for suffix of executables... " >&6; }
3346 if { { ac_try="$ac_link"
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 $as_echo "$ac_try_echo"; } >&5
3353 (eval "$ac_link") 2>&5
3355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 test $ac_status = 0; }; then :
3357 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3358 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3359 # work properly (i.e., refer to `conftest.exe'), while it won't with
3361 for ac_file in conftest.exe conftest conftest.*; do
3362 test -f "$ac_file" || continue
3364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3374 See \`config.log' for more details" "$LINENO" 5; }
3376 rm -f conftest conftest$ac_cv_exeext
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3378 $as_echo "$ac_cv_exeext" >&6; }
3380 rm -f conftest.$ac_ext
3381 EXEEXT=$ac_cv_exeext
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3389 FILE *f = fopen ("conftest.out", "w");
3390 return ferror (f) || fclose (f) != 0;
3396 ac_clean_files="$ac_clean_files conftest.out"
3397 # Check that the compiler produces executables we can run. If not, either
3398 # the compiler is broken, or we cross compile.
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3400 $as_echo_n "checking whether we are cross compiling... " >&6; }
3401 if test "$cross_compiling" != yes; then
3402 { { ac_try="$ac_link"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_link") 2>&5
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }
3413 if { ac_try='./conftest$ac_cv_exeext'
3414 { { case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419 $as_echo "$ac_try_echo"; } >&5
3420 (eval "$ac_try") 2>&5
3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423 test $ac_status = 0; }; }; then
3426 if test "$cross_compiling" = maybe; then
3429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $? "cannot run C compiled programs.
3432 If you meant to cross compile, use \`--host'.
3433 See \`config.log' for more details" "$LINENO" 5; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3438 $as_echo "$cross_compiling" >&6; }
3440 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3441 ac_clean_files=$ac_clean_files_save
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3443 $as_echo_n "checking for suffix of object files... " >&6; }
3444 if ${ac_cv_objext+:} false; then :
3445 $as_echo_n "(cached) " >&6
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3458 rm -f conftest.o conftest.obj
3459 if { { ac_try="$ac_compile"
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 $as_echo "$ac_try_echo"; } >&5
3466 (eval "$ac_compile") 2>&5
3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }; then :
3470 for ac_file in conftest.o conftest.obj conftest.*; do
3471 test -f "$ac_file" || continue;
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3479 $as_echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error $? "cannot compute suffix of object files: cannot compile
3485 See \`config.log' for more details" "$LINENO" 5; }
3487 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3490 $as_echo "$ac_cv_objext" >&6; }
3491 OBJEXT=$ac_cv_objext
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3494 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3495 if ${ac_cv_c_compiler_gnu+:} false; then :
3496 $as_echo_n "(cached) " >&6
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3512 if ac_fn_c_try_compile "$LINENO"; then :
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3522 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3523 if test $ac_compiler_gnu = yes; then
3528 ac_test_CFLAGS=${CFLAGS+set}
3529 ac_save_CFLAGS=$CFLAGS
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3531 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3532 if ${ac_cv_prog_cc_g+:} false; then :
3533 $as_echo_n "(cached) " >&6
3535 ac_save_c_werror_flag=$ac_c_werror_flag
3536 ac_c_werror_flag=yes
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3550 if ac_fn_c_try_compile "$LINENO"; then :
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3565 if ac_fn_c_try_compile "$LINENO"; then :
3568 ac_c_werror_flag=$ac_save_c_werror_flag
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3581 if ac_fn_c_try_compile "$LINENO"; then :
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 ac_c_werror_flag=$ac_save_c_werror_flag
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3592 $as_echo "$ac_cv_prog_cc_g" >&6; }
3593 if test "$ac_test_CFLAGS" = set; then
3594 CFLAGS=$ac_save_CFLAGS
3595 elif test $ac_cv_prog_cc_g = yes; then
3596 if test "$GCC" = yes; then
3602 if test "$GCC" = yes; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3609 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3610 if ${ac_cv_prog_cc_c89+:} false; then :
3611 $as_echo_n "(cached) " >&6
3613 ac_cv_prog_cc_c89=no
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3620 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3621 struct buf { int x; };
3622 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3623 static char *e (p, i)
3629 static char *f (char * (*g) (char **, int), char **p, ...)
3634 s = g (p, va_arg (v,int));
3639 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3640 function prototypes and stuff, but not '\xHH' hex character constants.
3641 These don't provoke an error unfortunately, instead are silently treated
3642 as 'x'. The following induces an error, until -std is added to get
3643 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3644 array size at least. It's necessary to write '\x00'==0 to get something
3645 that's true only with -std. */
3646 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3648 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3649 inside strings and character constants. */
3651 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3653 int test (int i, double x);
3654 struct s1 {int (*f) (int a);};
3655 struct s2 {int (*f) (double a);};
3656 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3662 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3667 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3668 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3670 CC="$ac_save_CC $ac_arg"
3671 if ac_fn_c_try_compile "$LINENO"; then :
3672 ac_cv_prog_cc_c89=$ac_arg
3674 rm -f core conftest.err conftest.$ac_objext
3675 test "x$ac_cv_prog_cc_c89" != "xno" && break
3677 rm -f conftest.$ac_ext
3682 case "x$ac_cv_prog_cc_c89" in
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3685 $as_echo "none needed" >&6; } ;;
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3688 $as_echo "unsupported" >&6; } ;;
3690 CC="$CC $ac_cv_prog_cc_c89"
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3692 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3694 if test "x$ac_cv_prog_cc_c89" != xno; then :
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3710 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3711 if ${am_cv_prog_cc_c_o+:} false; then :
3712 $as_echo_n "(cached) " >&6
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3725 # Make sure it works both with $CC and with simple cc.
3726 # Following AC_PROG_CC_C_O, we do the test twice because some
3727 # compilers refuse to overwrite an existing .o file with -o,
3728 # though they will create one.
3729 am_cv_prog_cc_c_o=yes
3731 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3732 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } \
3736 && test -f conftest2.$ac_objext; then
3739 am_cv_prog_cc_c_o=no
3743 rm -f core conftest*
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3747 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3748 if test "$am_cv_prog_cc_c_o" != yes; then
3749 # Losing compiler, so override with the script.
3750 # FIXME: It is wrong to rewrite CC.
3751 # But if we don't then we get into trouble of one sort or another.
3752 # A longer-term fix would be to have automake use am__CC in this case,
3753 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3754 CC="$am_aux_dir/compile $CC"
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762 DEPDIR="${am__leading_dot}deps"
3764 ac_config_commands="$ac_config_commands depfiles"
3767 am_make=${MAKE-make}
3768 cat > confinc << 'END'
3770 @echo this is the am__doit target
3773 # If we don't find an include directive, just comment out the code.
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3775 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3779 # First try GNU make style include.
3780 echo "include confinc" > confmf
3781 # Ignore all kinds of additional output from 'make'.
3782 case `$am_make -s -f confmf 2> /dev/null` in #(
3783 *the\ am__doit\ target*)
3789 # Now try BSD make style include.
3790 if test "$am__include" = "#"; then
3791 echo '.include "confinc"' > confmf
3792 case `$am_make -s -f confmf 2> /dev/null` in #(
3793 *the\ am__doit\ target*)
3794 am__include=.include
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3803 $as_echo "$_am_result" >&6; }
3804 rm -f confinc confmf
3806 # Check whether --enable-dependency-tracking was given.
3807 if test "${enable_dependency_tracking+set}" = set; then :
3808 enableval=$enable_dependency_tracking;
3811 if test "x$enable_dependency_tracking" != xno; then
3812 am_depcomp="$ac_aux_dir/depcomp"
3816 if test "x$enable_dependency_tracking" != xno; then
3826 depcc="$CC" am_compiler_list=
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3829 $as_echo_n "checking dependency style of $depcc... " >&6; }
3830 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3831 $as_echo_n "(cached) " >&6
3833 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3834 # We make a subdir and do the tests there. Otherwise we can end up
3835 # making bogus files that we don't know about and never remove. For
3836 # instance it was reported that on HP-UX the gcc test will end up
3837 # making a dummy file named 'D' -- because '-MD' means "put the output
3841 # Copy depcomp to subdir because otherwise we won't find it if we're
3842 # using a relative directory.
3843 cp "$am_depcomp" conftest.dir
3845 # We will build objects and dependencies in a subdirectory because
3846 # it helps to detect inapplicable dependency modes. For instance
3847 # both Tru64's cc and ICC support -MD to output dependencies as a
3848 # side effect of compilation, but ICC will put the dependencies in
3849 # the current directory while Tru64 will put them in the object
3853 am_cv_CC_dependencies_compiler_type=none
3854 if test "$am_compiler_list" = ""; then
3855 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3858 case " $depcc " in #(
3859 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3862 for depmode in $am_compiler_list; do
3863 # Setup a source with many dependencies, because some compilers
3864 # like to wrap large dependency lists on column 80 (with \), and
3865 # we should not choose a depcomp mode which is confused by this.
3867 # We need to recreate these files for each test, as the compiler may
3868 # overwrite some of them when testing with obscure command lines.
3869 # This happens at least with the AIX C compiler.
3871 for i in 1 2 3 4 5 6; do
3872 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3873 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3874 # Solaris 10 /bin/sh.
3875 echo '/* dummy */' > sub/conftst$i.h
3877 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3879 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3880 # mode. It turns out that the SunPro C++ compiler does not properly
3881 # handle '-M -o', and we need to detect this. Also, some Intel
3882 # versions had trouble with output in subdirs.
3883 am__obj=sub/conftest.${OBJEXT-o}
3884 am__minus_obj="-o $am__obj"
3887 # This depmode causes a compiler race in universal mode.
3888 test "$am__universal" = false || continue
3891 # After this tag, mechanisms are not by side-effect, so they'll
3892 # only be used when explicitly requested.
3893 if test "x$enable_dependency_tracking" = xyes; then
3899 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3900 # This compiler won't grok '-c -o', but also, the minuso test has
3901 # not run yet. These depmodes are late enough in the game, and
3902 # so weak that their functioning should not be impacted.
3903 am__obj=conftest.${OBJEXT-o}
3908 if depmode=$depmode \
3909 source=sub/conftest.c object=$am__obj \
3910 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3911 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3912 >/dev/null 2>conftest.err &&
3913 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3914 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3915 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3916 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3917 # icc doesn't choke on unknown options, it will just issue warnings
3918 # or remarks (even with -Werror). So we grep stderr for any message
3919 # that says an option was ignored or not supported.
3920 # When given -MP, icc 7.0 and 7.1 complain thusly:
3921 # icc: Command line warning: ignoring option '-M'; no argument required
3922 # The diagnosis changed in icc 8.0:
3923 # icc: Command line remark: option '-MP' not supported
3924 if (grep 'ignoring option' conftest.err ||
3925 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3926 am_cv_CC_dependencies_compiler_type=$depmode
3935 am_cv_CC_dependencies_compiler_type=none
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3940 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3941 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3944 test "x$enable_dependency_tracking" != xno \
3945 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3947 am__fastdepCC_FALSE='#'
3949 am__fastdepCC_TRUE='#'
3950 am__fastdepCC_FALSE=
3957 # Check whether --enable-largefile was given.
3958 if test "${enable_largefile+set}" = set; then :
3959 enableval=$enable_largefile;
3962 if test "$enable_largefile" != no; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3965 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3966 if ${ac_cv_sys_largefile_CC+:} false; then :
3967 $as_echo_n "(cached) " >&6
3969 ac_cv_sys_largefile_CC=no
3970 if test "$GCC" != yes; then
3973 # IRIX 6.2 and later do not support large files by default,
3974 # so use the C compiler's -n32 option if that helps.
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3977 #include <sys/types.h>
3978 /* Check that off_t can represent 2**63 - 1 correctly.
3979 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3980 since some C++ compilers masquerading as C compilers
3981 incorrectly reject 9223372036854775807. */
3982 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
3983 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3984 && LARGE_OFF_T % 2147483647 == 1)
3994 if ac_fn_c_try_compile "$LINENO"; then :
3997 rm -f core conftest.err conftest.$ac_objext
3999 if ac_fn_c_try_compile "$LINENO"; then :
4000 ac_cv_sys_largefile_CC=' -n32'; break
4002 rm -f core conftest.err conftest.$ac_objext
4006 rm -f conftest.$ac_ext
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4010 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4011 if test "$ac_cv_sys_largefile_CC" != no; then
4012 CC=$CC$ac_cv_sys_largefile_CC
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4016 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4017 if ${ac_cv_sys_file_offset_bits+:} false; then :
4018 $as_echo_n "(cached) " >&6
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 #include <sys/types.h>
4024 /* Check that off_t can represent 2**63 - 1 correctly.
4025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4026 since some C++ compilers masquerading as C compilers
4027 incorrectly reject 9223372036854775807. */
4028 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4030 && LARGE_OFF_T % 2147483647 == 1)
4040 if ac_fn_c_try_compile "$LINENO"; then :
4041 ac_cv_sys_file_offset_bits=no; break
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046 #define _FILE_OFFSET_BITS 64
4047 #include <sys/types.h>
4048 /* Check that off_t can represent 2**63 - 1 correctly.
4049 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4050 since some C++ compilers masquerading as C compilers
4051 incorrectly reject 9223372036854775807. */
4052 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4053 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4054 && LARGE_OFF_T % 2147483647 == 1)
4064 if ac_fn_c_try_compile "$LINENO"; then :
4065 ac_cv_sys_file_offset_bits=64; break
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 ac_cv_sys_file_offset_bits=unknown
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4073 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4074 case $ac_cv_sys_file_offset_bits in #(
4077 cat >>confdefs.h <<_ACEOF
4078 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4083 if test $ac_cv_sys_file_offset_bits = unknown; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4085 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4086 if ${ac_cv_sys_large_files+:} false; then :
4087 $as_echo_n "(cached) " >&6
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092 #include <sys/types.h>
4093 /* Check that off_t can represent 2**63 - 1 correctly.
4094 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4095 since some C++ compilers masquerading as C compilers
4096 incorrectly reject 9223372036854775807. */
4097 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4098 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4099 && LARGE_OFF_T % 2147483647 == 1)
4109 if ac_fn_c_try_compile "$LINENO"; then :
4110 ac_cv_sys_large_files=no; break
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115 #define _LARGE_FILES 1
4116 #include <sys/types.h>
4117 /* Check that off_t can represent 2**63 - 1 correctly.
4118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4119 since some C++ compilers masquerading as C compilers
4120 incorrectly reject 9223372036854775807. */
4121 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4123 && LARGE_OFF_T % 2147483647 == 1)
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 ac_cv_sys_large_files=1; break
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_cv_sys_large_files=unknown
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4142 $as_echo "$ac_cv_sys_large_files" >&6; }
4143 case $ac_cv_sys_large_files in #(
4146 cat >>confdefs.h <<_ACEOF
4147 #define _LARGE_FILES $ac_cv_sys_large_files
4159 if test -n "$ac_tool_prefix"; then
4160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4161 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if ${ac_cv_prog_RANLIB+:} false; then :
4165 $as_echo_n "(cached) " >&6
4167 if test -n "$RANLIB"; then
4168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 RANLIB=$ac_cv_prog_RANLIB
4188 if test -n "$RANLIB"; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4190 $as_echo "$RANLIB" >&6; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4198 if test -z "$ac_cv_prog_RANLIB"; then
4199 ac_ct_RANLIB=$RANLIB
4200 # Extract the first word of "ranlib", so it can be a program name with args.
4201 set dummy ranlib; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4205 $as_echo_n "(cached) " >&6
4207 if test -n "$ac_ct_RANLIB"; then
4208 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217 ac_cv_prog_ac_ct_RANLIB="ranlib"
4218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4228 if test -n "$ac_ct_RANLIB"; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4230 $as_echo "$ac_ct_RANLIB" >&6; }
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4236 if test "x$ac_ct_RANLIB" = x; then
4239 case $cross_compiling:$ac_tool_warned in
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4243 ac_tool_warned=yes ;;
4245 RANLIB=$ac_ct_RANLIB
4248 RANLIB="$ac_cv_prog_RANLIB"
4251 if test -n "$ac_tool_prefix"; then
4252 for ac_prog in ar lib "link -lib"
4254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4255 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257 $as_echo_n "checking for $ac_word... " >&6; }
4258 if ${ac_cv_prog_AR+:} false; then :
4259 $as_echo_n "(cached) " >&6
4261 if test -n "$AR"; then
4262 ac_cv_prog_AR="$AR" # Let the user override the test.
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 test -z "$as_dir" && as_dir=.
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4271 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 if test -n "$AR"; then
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4284 $as_echo "$AR" >&6; }
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287 $as_echo "no" >&6; }
4291 test -n "$AR" && break
4294 if test -z "$AR"; then
4296 for ac_prog in ar lib "link -lib"
4298 # Extract the first word of "$ac_prog", so it can be a program name with args.
4299 set dummy $ac_prog; ac_word=$2
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301 $as_echo_n "checking for $ac_word... " >&6; }
4302 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4303 $as_echo_n "(cached) " >&6
4305 if test -n "$ac_ct_AR"; then
4306 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 test -z "$as_dir" && as_dir=.
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4315 ac_cv_prog_ac_ct_AR="$ac_prog"
4316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4326 if test -n "$ac_ct_AR"; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4328 $as_echo "$ac_ct_AR" >&6; }
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331 $as_echo "no" >&6; }
4335 test -n "$ac_ct_AR" && break
4338 if test "x$ac_ct_AR" = x; then
4341 case $cross_compiling:$ac_tool_warned in
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4345 ac_tool_warned=yes ;;
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4354 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4355 if ${am_cv_ar_interface+:} false; then :
4356 $as_echo_n "(cached) " >&6
4359 ac_cpp='$CPP $CPPFLAGS'
4360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4364 am_cv_ar_interface=ar
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367 int some_variable = 0;
4369 if ac_fn_c_try_compile "$LINENO"; then :
4370 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4372 (eval $am_ar_try) 2>&5
4374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4375 test $ac_status = 0; }
4376 if test "$ac_status" -eq 0; then
4377 am_cv_ar_interface=ar
4379 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4381 (eval $am_ar_try) 2>&5
4383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4384 test $ac_status = 0; }
4385 if test "$ac_status" -eq 0; then
4386 am_cv_ar_interface=lib
4388 am_cv_ar_interface=unknown
4391 rm -f conftest.lib libconftest.a
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 ac_cpp='$CPP $CPPFLAGS'
4397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4403 $as_echo "$am_cv_ar_interface" >&6; }
4405 case $am_cv_ar_interface in
4409 # Microsoft lib, so override with the ar-lib wrapper script.
4410 # FIXME: It is wrong to rewrite AR.
4411 # But if we don't then we get into trouble of one sort or another.
4412 # A longer-term fix would be to have automake use am__AR in this case,
4413 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4415 AR="$am_aux_dir/ar-lib $AR"
4418 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4423 # Checks for header files.
4425 ac_cpp='$CPP $CPPFLAGS'
4426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4430 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4431 # On Suns, sometimes $CPP names a directory.
4432 if test -n "$CPP" && test -d "$CPP"; then
4435 if test -z "$CPP"; then
4436 if ${ac_cv_prog_CPP+:} false; then :
4437 $as_echo_n "(cached) " >&6
4439 # Double quotes because CPP needs to be expanded
4440 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4443 for ac_c_preproc_warn_flag in '' yes
4445 # Use a header file that comes with gcc, so configuring glibc
4446 # with a fresh cross-compiler works.
4447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4448 # <limits.h> exists even on freestanding compilers.
4449 # On the NeXT, cc -E runs the code through the compiler's parser,
4450 # not just through cpp. "Syntax error" is here to catch this case.
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4454 # include <limits.h>
4456 # include <assert.h>
4460 if ac_fn_c_try_cpp "$LINENO"; then :
4463 # Broken: fails on valid input.
4466 rm -f conftest.err conftest.i conftest.$ac_ext
4468 # OK, works on sane cases. Now check whether nonexistent headers
4469 # can be detected and how.
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4472 #include <ac_nonexistent.h>
4474 if ac_fn_c_try_cpp "$LINENO"; then :
4475 # Broken: success on invalid input.
4478 # Passes both tests.
4482 rm -f conftest.err conftest.i conftest.$ac_ext
4485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4486 rm -f conftest.i conftest.err conftest.$ac_ext
4487 if $ac_preproc_ok; then :
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4500 $as_echo "$CPP" >&6; }
4502 for ac_c_preproc_warn_flag in '' yes
4504 # Use a header file that comes with gcc, so configuring glibc
4505 # with a fresh cross-compiler works.
4506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4507 # <limits.h> exists even on freestanding compilers.
4508 # On the NeXT, cc -E runs the code through the compiler's parser,
4509 # not just through cpp. "Syntax error" is here to catch this case.
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4513 # include <limits.h>
4515 # include <assert.h>
4519 if ac_fn_c_try_cpp "$LINENO"; then :
4522 # Broken: fails on valid input.
4525 rm -f conftest.err conftest.i conftest.$ac_ext
4527 # OK, works on sane cases. Now check whether nonexistent headers
4528 # can be detected and how.
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531 #include <ac_nonexistent.h>
4533 if ac_fn_c_try_cpp "$LINENO"; then :
4534 # Broken: success on invalid input.
4537 # Passes both tests.
4541 rm -f conftest.err conftest.i conftest.$ac_ext
4544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4545 rm -f conftest.i conftest.err conftest.$ac_ext
4546 if $ac_preproc_ok; then :
4549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4551 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4552 See \`config.log' for more details" "$LINENO" 5; }
4556 ac_cpp='$CPP $CPPFLAGS'
4557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4563 $as_echo_n "checking for X... " >&6; }
4566 # Check whether --with-x was given.
4567 if test "${with_x+set}" = set; then :
4571 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4572 if test "x$with_x" = xno; then
4573 # The user explicitly disabled X.
4576 case $x_includes,$x_libraries in #(
4577 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4578 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4579 $as_echo_n "(cached) " >&6
4581 # One or both of the vars are not set, and there is no cached value.
4582 ac_x_includes=no ac_x_libraries=no
4583 rm -f -r conftest.dir
4584 if mkdir conftest.dir; then
4586 cat >Imakefile <<'_ACEOF'
4588 @echo incroot='${INCROOT}'
4590 @echo usrlibdir='${USRLIBDIR}'
4592 @echo libdir='${LIBDIR}'
4594 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4595 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4596 for ac_var in incroot usrlibdir libdir; do
4597 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4599 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4600 for ac_extension in a so sl dylib la dll; do
4601 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4602 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4603 ac_im_usrlibdir=$ac_im_libdir; break
4606 # Screen out bogus values from the imake configuration. They are
4607 # bogus both because they are the default anyway, and because
4608 # using them would break gcc on systems where it needs fixed includes.
4609 case $ac_im_incroot in
4610 /usr/include) ac_x_includes= ;;
4611 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4613 case $ac_im_usrlibdir in
4614 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4615 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4619 rm -f -r conftest.dir
4622 # Standard set of common directories for X headers.
4623 # Check X11 before X11Rn because it is often a symlink to the current release.
4637 /usr/local/X11/include
4638 /usr/local/X11R7/include
4639 /usr/local/X11R6/include
4640 /usr/local/X11R5/include
4641 /usr/local/X11R4/include
4643 /usr/local/include/X11
4644 /usr/local/include/X11R7
4645 /usr/local/include/X11R6
4646 /usr/local/include/X11R5
4647 /usr/local/include/X11R4
4651 /usr/XFree86/include/X11
4655 /usr/unsupported/include
4657 /usr/local/x11r5/include
4658 /usr/lpp/Xamples/include
4660 /usr/openwin/include
4661 /usr/openwin/share/include'
4663 if test "$ac_x_includes" = no; then
4664 # Guess where to find include files, by looking for Xlib.h.
4665 # First, try using that file with no special directory specified.
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668 #include <X11/Xlib.h>
4670 if ac_fn_c_try_cpp "$LINENO"; then :
4671 # We can compile using X headers with no special include directory.
4674 for ac_dir in $ac_x_header_dirs; do
4675 if test -r "$ac_dir/X11/Xlib.h"; then
4676 ac_x_includes=$ac_dir
4681 rm -f conftest.err conftest.i conftest.$ac_ext
4682 fi # $ac_x_includes = no
4684 if test "$ac_x_libraries" = no; then
4685 # Check for the libraries.
4686 # See if we find them without any special options.
4687 # Don't add to $LIBS permanently.
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4692 #include <X11/Xlib.h>
4701 if ac_fn_c_try_link "$LINENO"; then :
4703 # We can link X programs with no special library path.
4707 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4709 # Don't even attempt the hair of trying to link an X program!
4710 for ac_extension in a so sl dylib la dll; do
4711 if test -r "$ac_dir/libX11.$ac_extension"; then
4712 ac_x_libraries=$ac_dir
4718 rm -f core conftest.err conftest.$ac_objext \
4719 conftest$ac_exeext conftest.$ac_ext
4720 fi # $ac_x_libraries = no
4722 case $ac_x_includes,$ac_x_libraries in #(
4724 # Didn't find X, or a directory has "'" in its name.
4725 ac_cv_have_x="have_x=no";; #(
4727 # Record where we found X for the cache.
4728 ac_cv_have_x="have_x=yes\
4729 ac_x_includes='$ac_x_includes'\
4730 ac_x_libraries='$ac_x_libraries'"
4736 eval "$ac_cv_have_x"
4739 if test "$have_x" != yes; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4741 $as_echo "$have_x" >&6; }
4744 # If each of the values was on the command line, it overrides each guess.
4745 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4746 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4747 # Update the cache value to reflect the command line values.
4748 ac_cv_have_x="have_x=yes\
4749 ac_x_includes='$x_includes'\
4750 ac_x_libraries='$x_libraries'"
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4752 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4756 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4757 if ${ac_cv_path_GREP+:} false; then :
4758 $as_echo_n "(cached) " >&6
4760 if test -z "$GREP"; then
4761 ac_path_GREP_found=false
4762 # Loop through the user's path and test for each of PROGNAME-LIST
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4767 test -z "$as_dir" && as_dir=.
4768 for ac_prog in grep ggrep; do
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4771 as_fn_executable_p "$ac_path_GREP" || continue
4772 # Check for GNU ac_path_GREP and select it if it is found.
4773 # Check for GNU $ac_path_GREP
4774 case `"$ac_path_GREP" --version 2>&1` in
4776 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4779 $as_echo_n 0123456789 >"conftest.in"
4782 cat "conftest.in" "conftest.in" >"conftest.tmp"
4783 mv "conftest.tmp" "conftest.in"
4784 cp "conftest.in" "conftest.nl"
4785 $as_echo 'GREP' >> "conftest.nl"
4786 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4788 as_fn_arith $ac_count + 1 && ac_count=$as_val
4789 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4790 # Best one so far, save it but keep looking for a better one
4791 ac_cv_path_GREP="$ac_path_GREP"
4792 ac_path_GREP_max=$ac_count
4794 # 10*(2^10) chars as input seems more than enough
4795 test $ac_count -gt 10 && break
4797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4800 $ac_path_GREP_found && break 3
4805 if test -z "$ac_cv_path_GREP"; then
4806 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4809 ac_cv_path_GREP=$GREP
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4814 $as_echo "$ac_cv_path_GREP" >&6; }
4815 GREP="$ac_cv_path_GREP"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4819 $as_echo_n "checking for egrep... " >&6; }
4820 if ${ac_cv_path_EGREP+:} false; then :
4821 $as_echo_n "(cached) " >&6
4823 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4824 then ac_cv_path_EGREP="$GREP -E"
4826 if test -z "$EGREP"; then
4827 ac_path_EGREP_found=false
4828 # Loop through the user's path and test for each of PROGNAME-LIST
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4833 test -z "$as_dir" && as_dir=.
4834 for ac_prog in egrep; do
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4837 as_fn_executable_p "$ac_path_EGREP" || continue
4838 # Check for GNU ac_path_EGREP and select it if it is found.
4839 # Check for GNU $ac_path_EGREP
4840 case `"$ac_path_EGREP" --version 2>&1` in
4842 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4845 $as_echo_n 0123456789 >"conftest.in"
4848 cat "conftest.in" "conftest.in" >"conftest.tmp"
4849 mv "conftest.tmp" "conftest.in"
4850 cp "conftest.in" "conftest.nl"
4851 $as_echo 'EGREP' >> "conftest.nl"
4852 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4854 as_fn_arith $ac_count + 1 && ac_count=$as_val
4855 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4856 # Best one so far, save it but keep looking for a better one
4857 ac_cv_path_EGREP="$ac_path_EGREP"
4858 ac_path_EGREP_max=$ac_count
4860 # 10*(2^10) chars as input seems more than enough
4861 test $ac_count -gt 10 && break
4863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4866 $ac_path_EGREP_found && break 3
4871 if test -z "$ac_cv_path_EGREP"; then
4872 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4875 ac_cv_path_EGREP=$EGREP
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4881 $as_echo "$ac_cv_path_EGREP" >&6; }
4882 EGREP="$ac_cv_path_EGREP"
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4886 $as_echo_n "checking for ANSI C header files... " >&6; }
4887 if ${ac_cv_header_stdc+:} false; then :
4888 $as_echo_n "(cached) " >&6
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4905 if ac_fn_c_try_compile "$LINENO"; then :
4906 ac_cv_header_stdc=yes
4908 ac_cv_header_stdc=no
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912 if test $ac_cv_header_stdc = yes; then
4913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4920 $EGREP "memchr" >/dev/null 2>&1; then :
4923 ac_cv_header_stdc=no
4929 if test $ac_cv_header_stdc = yes; then
4930 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4937 $EGREP "free" >/dev/null 2>&1; then :
4940 ac_cv_header_stdc=no
4946 if test $ac_cv_header_stdc = yes; then
4947 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4948 if test "$cross_compiling" = yes; then :
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4955 #if ((' ' & 0x0FF) == 0x020)
4956 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4957 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4959 # define ISLOWER(c) \
4960 (('a' <= (c) && (c) <= 'i') \
4961 || ('j' <= (c) && (c) <= 'r') \
4962 || ('s' <= (c) && (c) <= 'z'))
4963 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4971 for (i = 0; i < 256; i++)
4972 if (XOR (islower (i), ISLOWER (i))
4973 || toupper (i) != TOUPPER (i))
4978 if ac_fn_c_try_run "$LINENO"; then :
4981 ac_cv_header_stdc=no
4983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4984 conftest.$ac_objext conftest.beam conftest.$ac_ext
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4990 $as_echo "$ac_cv_header_stdc" >&6; }
4991 if test $ac_cv_header_stdc = yes; then
4993 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4997 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4998 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4999 inttypes.h stdint.h unistd.h
5001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5002 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5004 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5005 cat >>confdefs.h <<_ACEOF
5006 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5014 for ac_header in stdbool.h
5016 ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
5017 if test "x$ac_cv_header_stdbool_h" = xyes; then :
5018 cat >>confdefs.h <<_ACEOF
5019 #define HAVE_STDBOOL_H 1
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5029 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5030 if ${ac_cv_path_SED+:} false; then :
5031 $as_echo_n "(cached) " >&6
5033 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5034 for ac_i in 1 2 3 4 5 6 7; do
5035 ac_script="$ac_script$as_nl$ac_script"
5037 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5038 { ac_script=; unset ac_script;}
5039 if test -z "$SED"; then
5040 ac_path_SED_found=false
5041 # Loop through the user's path and test for each of PROGNAME-LIST
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir=.
5047 for ac_prog in sed gsed; do
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5050 as_fn_executable_p "$ac_path_SED" || continue
5051 # Check for GNU ac_path_SED and select it if it is found.
5052 # Check for GNU $ac_path_SED
5053 case `"$ac_path_SED" --version 2>&1` in
5055 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5058 $as_echo_n 0123456789 >"conftest.in"
5061 cat "conftest.in" "conftest.in" >"conftest.tmp"
5062 mv "conftest.tmp" "conftest.in"
5063 cp "conftest.in" "conftest.nl"
5064 $as_echo '' >> "conftest.nl"
5065 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5067 as_fn_arith $ac_count + 1 && ac_count=$as_val
5068 if test $ac_count -gt ${ac_path_SED_max-0}; then
5069 # Best one so far, save it but keep looking for a better one
5070 ac_cv_path_SED="$ac_path_SED"
5071 ac_path_SED_max=$ac_count
5073 # 10*(2^10) chars as input seems more than enough
5074 test $ac_count -gt 10 && break
5076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5079 $ac_path_SED_found && break 3
5084 if test -z "$ac_cv_path_SED"; then
5085 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5093 $as_echo "$ac_cv_path_SED" >&6; }
5094 SED="$ac_cv_path_SED"
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5099 $as_echo_n "checking whether NLS is requested... " >&6; }
5100 # Check whether --enable-nls was given.
5101 if test "${enable_nls+set}" = set; then :
5102 enableval=$enable_nls; USE_NLS=$enableval
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5108 $as_echo "$USE_NLS" >&6; }
5113 GETTEXT_MACRO_VERSION=0.19
5118 # Prepare PATH_SEPARATOR.
5119 # The user is always right.
5120 if test "${PATH_SEPARATOR+set}" != set; then
5121 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5122 # contains only /bin. Note that ksh looks also at the FPATH variable,
5123 # so we have to set that as well for the test.
5125 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5126 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5127 || PATH_SEPARATOR=';'
5131 # Find out how to test for executable files. Don't use a zero-byte file,
5132 # as systems may use methods other than mode bits to determine executability.
5133 cat >conf$$.file <<_ASEOF
5137 chmod +x conf$$.file
5138 if test -x conf$$.file >/dev/null 2>&1; then
5139 ac_executable_p="test -x"
5141 ac_executable_p="test -f"
5145 # Extract the first word of "msgfmt", so it can be a program name with args.
5146 set dummy msgfmt; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if ${ac_cv_path_MSGFMT+:} false; then :
5150 $as_echo_n "(cached) " >&6
5154 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5157 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5158 for ac_dir in $PATH; do
5160 test -z "$ac_dir" && ac_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5163 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5164 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5165 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5166 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5173 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5177 MSGFMT="$ac_cv_path_MSGFMT"
5178 if test "$MSGFMT" != ":"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5180 $as_echo "$MSGFMT" >&6; }
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5186 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5187 set dummy gmsgfmt; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_path_GMSGFMT+:} false; then :
5191 $as_echo_n "(cached) " >&6
5195 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5217 GMSGFMT=$ac_cv_path_GMSGFMT
5218 if test -n "$GMSGFMT"; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5220 $as_echo "$GMSGFMT" >&6; }
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 $as_echo "no" >&6; }
5228 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5229 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5230 *) MSGFMT_015=$MSGFMT ;;
5233 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5234 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5235 *) GMSGFMT_015=$GMSGFMT ;;
5240 # Prepare PATH_SEPARATOR.
5241 # The user is always right.
5242 if test "${PATH_SEPARATOR+set}" != set; then
5243 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5244 # contains only /bin. Note that ksh looks also at the FPATH variable,
5245 # so we have to set that as well for the test.
5247 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5248 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5249 || PATH_SEPARATOR=';'
5253 # Find out how to test for executable files. Don't use a zero-byte file,
5254 # as systems may use methods other than mode bits to determine executability.
5255 cat >conf$$.file <<_ASEOF
5259 chmod +x conf$$.file
5260 if test -x conf$$.file >/dev/null 2>&1; then
5261 ac_executable_p="test -x"
5263 ac_executable_p="test -f"
5267 # Extract the first word of "xgettext", so it can be a program name with args.
5268 set dummy xgettext; ac_word=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if ${ac_cv_path_XGETTEXT+:} false; then :
5272 $as_echo_n "(cached) " >&6
5276 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5279 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5280 for ac_dir in $PATH; do
5282 test -z "$ac_dir" && ac_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5285 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5286 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5287 (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
5288 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5295 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5299 XGETTEXT="$ac_cv_path_XGETTEXT"
5300 if test "$XGETTEXT" != ":"; then
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5302 $as_echo "$XGETTEXT" >&6; }
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305 $as_echo "no" >&6; }
5310 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5311 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5312 *) XGETTEXT_015=$XGETTEXT ;;
5317 # Prepare PATH_SEPARATOR.
5318 # The user is always right.
5319 if test "${PATH_SEPARATOR+set}" != set; then
5320 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5321 # contains only /bin. Note that ksh looks also at the FPATH variable,
5322 # so we have to set that as well for the test.
5324 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5325 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5326 || PATH_SEPARATOR=';'
5330 # Find out how to test for executable files. Don't use a zero-byte file,
5331 # as systems may use methods other than mode bits to determine executability.
5332 cat >conf$$.file <<_ASEOF
5336 chmod +x conf$$.file
5337 if test -x conf$$.file >/dev/null 2>&1; then
5338 ac_executable_p="test -x"
5340 ac_executable_p="test -f"
5344 # Extract the first word of "msgmerge", so it can be a program name with args.
5345 set dummy msgmerge; ac_word=$2
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347 $as_echo_n "checking for $ac_word... " >&6; }
5348 if ${ac_cv_path_MSGMERGE+:} false; then :
5349 $as_echo_n "(cached) " >&6
5353 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5356 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5357 for ac_dir in $PATH; do
5359 test -z "$ac_dir" && ac_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5362 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5363 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5364 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5371 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5375 MSGMERGE="$ac_cv_path_MSGMERGE"
5376 if test "$MSGMERGE" != ":"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5378 $as_echo "$MSGMERGE" >&6; }
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5385 test -n "$localedir" || localedir='${datadir}/locale'
5388 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5391 ac_config_commands="$ac_config_commands po-directories"
5395 if test "X$prefix" = "XNONE"; then
5396 acl_final_prefix="$ac_default_prefix"
5398 acl_final_prefix="$prefix"
5400 if test "X$exec_prefix" = "XNONE"; then
5401 acl_final_exec_prefix='${prefix}'
5403 acl_final_exec_prefix="$exec_prefix"
5405 acl_save_prefix="$prefix"
5406 prefix="$acl_final_prefix"
5407 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5408 prefix="$acl_save_prefix"
5410 # Make sure we can run config.sub.
5411 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5412 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5415 $as_echo_n "checking build system type... " >&6; }
5416 if ${ac_cv_build+:} false; then :
5417 $as_echo_n "(cached) " >&6
5419 ac_build_alias=$build_alias
5420 test "x$ac_build_alias" = x &&
5421 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5422 test "x$ac_build_alias" = x &&
5423 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5424 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5425 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5429 $as_echo "$ac_cv_build" >&6; }
5430 case $ac_cv_build in
5432 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5435 ac_save_IFS=$IFS; IFS='-'
5441 # Remember, the first character of IFS is used to create $*,
5442 # except with old shells:
5445 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5449 $as_echo_n "checking host system type... " >&6; }
5450 if ${ac_cv_host+:} false; then :
5451 $as_echo_n "(cached) " >&6
5453 if test "x$host_alias" = x; then
5454 ac_cv_host=$ac_cv_build
5456 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5457 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5462 $as_echo "$ac_cv_host" >&6; }
5465 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5468 ac_save_IFS=$IFS; IFS='-'
5474 # Remember, the first character of IFS is used to create $*,
5475 # except with old shells:
5478 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5483 # Check whether --with-gnu-ld was given.
5484 if test "${with_gnu_ld+set}" = set; then :
5485 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5490 # Prepare PATH_SEPARATOR.
5491 # The user is always right.
5492 if test "${PATH_SEPARATOR+set}" != set; then
5493 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5494 # contains only /bin. Note that ksh looks also at the FPATH variable,
5495 # so we have to set that as well for the test.
5497 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5498 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5499 || PATH_SEPARATOR=';'
5504 if test "$GCC" = yes; then
5505 # Check if gcc -print-prog-name=ld gives a path.
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5507 $as_echo_n "checking for ld used by $CC... " >&6; }
5510 # gcc leaves a trailing carriage return which upsets mingw
5511 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5513 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5516 # Accept absolute paths.
5518 re_direlt='/[^/][^/]*/\.\./'
5519 # Canonicalize the pathname of ld
5520 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
5521 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
5522 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5524 test -z "$LD" && LD="$ac_prog"
5527 # If it fails, then pretend we aren't using GCC.
5531 # If it is relative, then search for the first ld in PATH.
5535 elif test "$with_gnu_ld" = yes; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5537 $as_echo_n "checking for GNU ld... " >&6; }
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5540 $as_echo_n "checking for non-GNU ld... " >&6; }
5542 if ${acl_cv_path_LD+:} false; then :
5543 $as_echo_n "(cached) " >&6
5545 if test -z "$LD"; then
5546 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5547 for ac_dir in $PATH; do
5549 test -z "$ac_dir" && ac_dir=.
5550 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5551 acl_cv_path_LD="$ac_dir/$ac_prog"
5552 # Check to see if the program is GNU ld. I'd rather use --version,
5553 # but apparently some variants of GNU ld only accept -v.
5554 # Break only if it was the GNU/non-GNU ld that we prefer.
5555 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5556 *GNU* | *'with BFD'*)
5557 test "$with_gnu_ld" != no && break
5560 test "$with_gnu_ld" != yes && break
5567 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5571 LD="$acl_cv_path_LD"
5572 if test -n "$LD"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5574 $as_echo "$LD" >&6; }
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5579 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5581 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5582 if ${acl_cv_prog_gnu_ld+:} false; then :
5583 $as_echo_n "(cached) " >&6
5585 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5586 case `$LD -v 2>&1 </dev/null` in
5587 *GNU* | *'with BFD'*)
5588 acl_cv_prog_gnu_ld=yes
5591 acl_cv_prog_gnu_ld=no
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5596 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5597 with_gnu_ld=$acl_cv_prog_gnu_ld
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5603 $as_echo_n "checking for shared library run path origin... " >&6; }
5604 if ${acl_cv_rpath+:} false; then :
5605 $as_echo_n "(cached) " >&6
5608 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5609 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5616 $as_echo "$acl_cv_rpath" >&6; }
5618 acl_libext="$acl_cv_libext"
5619 acl_shlibext="$acl_cv_shlibext"
5620 acl_libname_spec="$acl_cv_libname_spec"
5621 acl_library_names_spec="$acl_cv_library_names_spec"
5622 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5623 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5624 acl_hardcode_direct="$acl_cv_hardcode_direct"
5625 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5626 # Check whether --enable-rpath was given.
5627 if test "${enable_rpath+set}" = set; then :
5628 enableval=$enable_rpath; :
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5641 $as_echo_n "checking for 64-bit host... " >&6; }
5642 if ${gl_cv_solaris_64bit+:} false; then :
5643 $as_echo_n "(cached) " >&6
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5654 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5655 gl_cv_solaris_64bit=yes
5657 gl_cv_solaris_64bit=no
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5664 $as_echo "$gl_cv_solaris_64bit" >&6; }
5665 if test $gl_cv_solaris_64bit = yes; then
5666 acl_libdirstem=lib/64
5668 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5669 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5674 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5675 if test -n "$searchpath"; then
5676 acl_save_IFS="${IFS= }"; IFS=":"
5677 for searchdir in $searchpath; do
5678 if test -d "$searchdir"; then
5679 case "$searchdir" in
5680 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5682 # Better ignore directories of this form. They are misleading.
5684 *) searchdir=`cd "$searchdir" && pwd`
5685 case "$searchdir" in
5686 */lib64 ) acl_libdirstem=lib64 ;;
5695 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5710 acl_save_prefix="$prefix"
5711 prefix="$acl_final_prefix"
5712 acl_save_exec_prefix="$exec_prefix"
5713 exec_prefix="$acl_final_exec_prefix"
5715 eval additional_includedir=\"$includedir\"
5716 eval additional_libdir=\"$libdir\"
5718 exec_prefix="$acl_save_exec_prefix"
5719 prefix="$acl_save_prefix"
5722 # Check whether --with-libiconv-prefix was given.
5723 if test "${with_libiconv_prefix+set}" = set; then :
5724 withval=$with_libiconv_prefix;
5725 if test "X$withval" = "Xno"; then
5728 if test "X$withval" = "X"; then
5730 acl_save_prefix="$prefix"
5731 prefix="$acl_final_prefix"
5732 acl_save_exec_prefix="$exec_prefix"
5733 exec_prefix="$acl_final_exec_prefix"
5735 eval additional_includedir=\"$includedir\"
5736 eval additional_libdir=\"$libdir\"
5738 exec_prefix="$acl_save_exec_prefix"
5739 prefix="$acl_save_prefix"
5742 additional_includedir="$withval/include"
5743 additional_libdir="$withval/$acl_libdirstem"
5744 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5745 && ! test -d "$withval/$acl_libdirstem"; then
5746 additional_libdir="$withval/$acl_libdirstem2"
5760 names_already_handled=
5761 names_next_round='iconv '
5762 while test -n "$names_next_round"; do
5763 names_this_round="$names_next_round"
5765 for name in $names_this_round; do
5767 for n in $names_already_handled; do
5768 if test "$n" = "$name"; then
5773 if test -z "$already_handled"; then
5774 names_already_handled="$names_already_handled $name"
5775 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5776 eval value=\"\$HAVE_LIB$uppername\"
5777 if test -n "$value"; then
5778 if test "$value" = yes; then
5779 eval value=\"\$LIB$uppername\"
5780 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5781 eval value=\"\$LTLIB$uppername\"
5782 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5791 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5792 if test -n "$acl_shlibext"; then
5793 shrext=".$acl_shlibext" # typically: shrext=.so
5797 if test $use_additional = yes; then
5798 dir="$additional_libdir"
5799 if test -n "$acl_shlibext"; then
5800 if test -f "$dir/$libname$shrext"; then
5802 found_so="$dir/$libname$shrext"
5804 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5805 ver=`(cd "$dir" && \
5806 for f in "$libname$shrext".*; do echo "$f"; done \
5807 | sed -e "s,^$libname$shrext\\\\.,," \
5808 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5809 | sed 1q ) 2>/dev/null`
5810 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5812 found_so="$dir/$libname$shrext.$ver"
5815 eval library_names=\"$acl_library_names_spec\"
5816 for f in $library_names; do
5817 if test -f "$dir/$f"; then
5826 if test "X$found_dir" = "X"; then
5827 if test -f "$dir/$libname.$acl_libext"; then
5829 found_a="$dir/$libname.$acl_libext"
5832 if test "X$found_dir" != "X"; then
5833 if test -f "$dir/$libname.la"; then
5834 found_la="$dir/$libname.la"
5838 if test "X$found_dir" = "X"; then
5839 for x in $LDFLAGS $LTLIBICONV; do
5841 acl_save_prefix="$prefix"
5842 prefix="$acl_final_prefix"
5843 acl_save_exec_prefix="$exec_prefix"
5844 exec_prefix="$acl_final_exec_prefix"
5846 exec_prefix="$acl_save_exec_prefix"
5847 prefix="$acl_save_prefix"
5851 dir=`echo "X$x" | sed -e 's/^X-L//'`
5852 if test -n "$acl_shlibext"; then
5853 if test -f "$dir/$libname$shrext"; then
5855 found_so="$dir/$libname$shrext"
5857 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5858 ver=`(cd "$dir" && \
5859 for f in "$libname$shrext".*; do echo "$f"; done \
5860 | sed -e "s,^$libname$shrext\\\\.,," \
5861 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5862 | sed 1q ) 2>/dev/null`
5863 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5865 found_so="$dir/$libname$shrext.$ver"
5868 eval library_names=\"$acl_library_names_spec\"
5869 for f in $library_names; do
5870 if test -f "$dir/$f"; then
5879 if test "X$found_dir" = "X"; then
5880 if test -f "$dir/$libname.$acl_libext"; then
5882 found_a="$dir/$libname.$acl_libext"
5885 if test "X$found_dir" != "X"; then
5886 if test -f "$dir/$libname.la"; then
5887 found_la="$dir/$libname.la"
5892 if test "X$found_dir" != "X"; then
5897 if test "X$found_dir" != "X"; then
5898 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5899 if test "X$found_so" != "X"; then
5900 if test "$enable_rpath" = no \
5901 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5902 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5903 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5906 for x in $ltrpathdirs; do
5907 if test "X$x" = "X$found_dir"; then
5912 if test -z "$haveit"; then
5913 ltrpathdirs="$ltrpathdirs $found_dir"
5915 if test "$acl_hardcode_direct" = yes; then
5916 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5918 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5919 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5921 for x in $rpathdirs; do
5922 if test "X$x" = "X$found_dir"; then
5927 if test -z "$haveit"; then
5928 rpathdirs="$rpathdirs $found_dir"
5932 for x in $LDFLAGS $LIBICONV; do
5934 acl_save_prefix="$prefix"
5935 prefix="$acl_final_prefix"
5936 acl_save_exec_prefix="$exec_prefix"
5937 exec_prefix="$acl_final_exec_prefix"
5939 exec_prefix="$acl_save_exec_prefix"
5940 prefix="$acl_save_prefix"
5942 if test "X$x" = "X-L$found_dir"; then
5947 if test -z "$haveit"; then
5948 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5950 if test "$acl_hardcode_minus_L" != no; then
5951 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5953 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5959 if test "X$found_a" != "X"; then
5960 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5962 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5965 additional_includedir=
5966 case "$found_dir" in
5967 */$acl_libdirstem | */$acl_libdirstem/)
5968 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5969 if test "$name" = 'iconv'; then
5970 LIBICONV_PREFIX="$basedir"
5972 additional_includedir="$basedir/include"
5974 */$acl_libdirstem2 | */$acl_libdirstem2/)
5975 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5976 if test "$name" = 'iconv'; then
5977 LIBICONV_PREFIX="$basedir"
5979 additional_includedir="$basedir/include"
5982 if test "X$additional_includedir" != "X"; then
5983 if test "X$additional_includedir" != "X/usr/include"; then
5985 if test "X$additional_includedir" = "X/usr/local/include"; then
5986 if test -n "$GCC"; then
5988 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5992 if test -z "$haveit"; then
5993 for x in $CPPFLAGS $INCICONV; do
5995 acl_save_prefix="$prefix"
5996 prefix="$acl_final_prefix"
5997 acl_save_exec_prefix="$exec_prefix"
5998 exec_prefix="$acl_final_exec_prefix"
6000 exec_prefix="$acl_save_exec_prefix"
6001 prefix="$acl_save_prefix"
6003 if test "X$x" = "X-I$additional_includedir"; then
6008 if test -z "$haveit"; then
6009 if test -d "$additional_includedir"; then
6010 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6016 if test -n "$found_la"; then
6017 save_libdir="$libdir"
6019 */* | *\\*) . "$found_la" ;;
6020 *) . "./$found_la" ;;
6022 libdir="$save_libdir"
6023 for dep in $dependency_libs; do
6026 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6027 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6028 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6030 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6031 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6032 if test -n "$GCC"; then
6034 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6038 if test -z "$haveit"; then
6040 for x in $LDFLAGS $LIBICONV; do
6042 acl_save_prefix="$prefix"
6043 prefix="$acl_final_prefix"
6044 acl_save_exec_prefix="$exec_prefix"
6045 exec_prefix="$acl_final_exec_prefix"
6047 exec_prefix="$acl_save_exec_prefix"
6048 prefix="$acl_save_prefix"
6050 if test "X$x" = "X-L$additional_libdir"; then
6055 if test -z "$haveit"; then
6056 if test -d "$additional_libdir"; then
6057 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6061 for x in $LDFLAGS $LTLIBICONV; do
6063 acl_save_prefix="$prefix"
6064 prefix="$acl_final_prefix"
6065 acl_save_exec_prefix="$exec_prefix"
6066 exec_prefix="$acl_final_exec_prefix"
6068 exec_prefix="$acl_save_exec_prefix"
6069 prefix="$acl_save_prefix"
6071 if test "X$x" = "X-L$additional_libdir"; then
6076 if test -z "$haveit"; then
6077 if test -d "$additional_libdir"; then
6078 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6085 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6086 if test "$enable_rpath" != no; then
6088 for x in $rpathdirs; do
6089 if test "X$x" = "X$dir"; then
6094 if test -z "$haveit"; then
6095 rpathdirs="$rpathdirs $dir"
6098 for x in $ltrpathdirs; do
6099 if test "X$x" = "X$dir"; then
6104 if test -z "$haveit"; then
6105 ltrpathdirs="$ltrpathdirs $dir"
6110 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6113 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6116 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6117 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6123 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6124 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6130 if test "X$rpathdirs" != "X"; then
6131 if test -n "$acl_hardcode_libdir_separator"; then
6133 for found_dir in $rpathdirs; do
6134 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6136 acl_save_libdir="$libdir"
6138 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6139 libdir="$acl_save_libdir"
6140 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6142 for found_dir in $rpathdirs; do
6143 acl_save_libdir="$libdir"
6145 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6146 libdir="$acl_save_libdir"
6147 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6151 if test "X$ltrpathdirs" != "X"; then
6152 for found_dir in $ltrpathdirs; do
6153 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6188 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6189 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6190 $as_echo_n "(cached) " >&6
6192 gt_save_LIBS="$LIBS"
6193 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h. */
6196 #include <CoreFoundation/CFPreferences.h>
6200 CFPreferencesCopyAppValue(NULL, NULL)
6205 if ac_fn_c_try_link "$LINENO"; then :
6206 gt_cv_func_CFPreferencesCopyAppValue=yes
6208 gt_cv_func_CFPreferencesCopyAppValue=no
6210 rm -f core conftest.err conftest.$ac_objext \
6211 conftest$ac_exeext conftest.$ac_ext
6212 LIBS="$gt_save_LIBS"
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6215 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6216 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6218 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6222 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6223 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6224 $as_echo_n "(cached) " >&6
6226 gt_save_LIBS="$LIBS"
6227 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6230 #include <CoreFoundation/CFLocale.h>
6234 CFLocaleCopyCurrent();
6239 if ac_fn_c_try_link "$LINENO"; then :
6240 gt_cv_func_CFLocaleCopyCurrent=yes
6242 gt_cv_func_CFLocaleCopyCurrent=no
6244 rm -f core conftest.err conftest.$ac_objext \
6245 conftest$ac_exeext conftest.$ac_ext
6246 LIBS="$gt_save_LIBS"
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6249 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6250 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6252 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6256 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6257 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6269 case " $gt_needs " in
6270 *" need-formatstring-macros "*) gt_api_version=3 ;;
6271 *" need-ngettext "*) gt_api_version=2 ;;
6272 *) gt_api_version=1 ;;
6274 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6275 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6277 if test "$USE_NLS" = "yes"; then
6278 gt_use_preinstalled_gnugettext=no
6281 if test $gt_api_version -ge 3; then
6282 gt_revision_test_code='
6283 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6284 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6286 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6289 gt_revision_test_code=
6291 if test $gt_api_version -ge 2; then
6292 gt_expression_test_code=' + * ngettext ("", "", 0)'
6294 gt_expression_test_code=
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6298 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6299 if eval \${$gt_func_gnugettext_libc+:} false; then :
6300 $as_echo_n "(cached) " >&6
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6305 #include <libintl.h>
6306 $gt_revision_test_code
6307 extern int _nl_msg_cat_cntr;
6308 extern int *_nl_domain_bindings;
6314 bindtextdomain ("", "");
6315 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6321 if ac_fn_c_try_link "$LINENO"; then :
6322 eval "$gt_func_gnugettext_libc=yes"
6324 eval "$gt_func_gnugettext_libc=no"
6326 rm -f core conftest.err conftest.$ac_objext \
6327 conftest$ac_exeext conftest.$ac_ext
6329 eval ac_res=\$$gt_func_gnugettext_libc
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6331 $as_echo "$ac_res" >&6; }
6333 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6339 am_save_CPPFLAGS="$CPPFLAGS"
6341 for element in $INCICONV; do
6343 for x in $CPPFLAGS; do
6345 acl_save_prefix="$prefix"
6346 prefix="$acl_final_prefix"
6347 acl_save_exec_prefix="$exec_prefix"
6348 exec_prefix="$acl_final_exec_prefix"
6350 exec_prefix="$acl_save_exec_prefix"
6351 prefix="$acl_save_prefix"
6353 if test "X$x" = "X$element"; then
6358 if test -z "$haveit"; then
6359 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6365 $as_echo_n "checking for iconv... " >&6; }
6366 if ${am_cv_func_iconv+:} false; then :
6367 $as_echo_n "(cached) " >&6
6370 am_cv_func_iconv="no, consider installing GNU libiconv"
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6381 iconv_t cd = iconv_open("","");
6382 iconv(cd,NULL,NULL,NULL,NULL);
6388 if ac_fn_c_try_link "$LINENO"; then :
6389 am_cv_func_iconv=yes
6391 rm -f core conftest.err conftest.$ac_objext \
6392 conftest$ac_exeext conftest.$ac_ext
6393 if test "$am_cv_func_iconv" != yes; then
6394 am_save_LIBS="$LIBS"
6395 LIBS="$LIBS $LIBICONV"
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6405 iconv_t cd = iconv_open("","");
6406 iconv(cd,NULL,NULL,NULL,NULL);
6412 if ac_fn_c_try_link "$LINENO"; then :
6414 am_cv_func_iconv=yes
6416 rm -f core conftest.err conftest.$ac_objext \
6417 conftest$ac_exeext conftest.$ac_ext
6418 LIBS="$am_save_LIBS"
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6423 $as_echo "$am_cv_func_iconv" >&6; }
6424 if test "$am_cv_func_iconv" = yes; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6426 $as_echo_n "checking for working iconv... " >&6; }
6427 if ${am_cv_func_iconv_works+:} false; then :
6428 $as_echo_n "(cached) " >&6
6431 am_save_LIBS="$LIBS"
6432 if test $am_cv_lib_iconv = yes; then
6433 LIBS="$LIBS $LIBICONV"
6435 am_cv_func_iconv_works=no
6436 for ac_iconv_const in '' 'const'; do
6437 if test "$cross_compiling" = yes; then :
6439 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6440 *) am_cv_func_iconv_works="guessing yes" ;;
6443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h. */
6450 # define ICONV_CONST $ac_iconv_const
6457 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6460 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6461 if (cd_utf8_to_88591 != (iconv_t)(-1))
6463 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
6465 ICONV_CONST char *inptr = input;
6466 size_t inbytesleft = strlen (input);
6468 size_t outbytesleft = sizeof (buf);
6469 size_t res = iconv (cd_utf8_to_88591,
6470 &inptr, &inbytesleft,
6471 &outptr, &outbytesleft);
6474 iconv_close (cd_utf8_to_88591);
6477 /* Test against Solaris 10 bug: Failures are not distinguishable from
6478 successful returns. */
6480 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6481 if (cd_ascii_to_88591 != (iconv_t)(-1))
6483 static ICONV_CONST char input[] = "\263";
6485 ICONV_CONST char *inptr = input;
6486 size_t inbytesleft = strlen (input);
6488 size_t outbytesleft = sizeof (buf);
6489 size_t res = iconv (cd_ascii_to_88591,
6490 &inptr, &inbytesleft,
6491 &outptr, &outbytesleft);
6494 iconv_close (cd_ascii_to_88591);
6497 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
6499 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
6500 if (cd_88591_to_utf8 != (iconv_t)(-1))
6502 static ICONV_CONST char input[] = "\304";
6503 static char buf[2] = { (char)0xDE, (char)0xAD };
6504 ICONV_CONST char *inptr = input;
6505 size_t inbytesleft = 1;
6507 size_t outbytesleft = 1;
6508 size_t res = iconv (cd_88591_to_utf8,
6509 &inptr, &inbytesleft,
6510 &outptr, &outbytesleft);
6511 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
6513 iconv_close (cd_88591_to_utf8);
6516 #if 0 /* This bug could be worked around by the caller. */
6517 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6519 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6520 if (cd_88591_to_utf8 != (iconv_t)(-1))
6522 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6524 ICONV_CONST char *inptr = input;
6525 size_t inbytesleft = strlen (input);
6527 size_t outbytesleft = sizeof (buf);
6528 size_t res = iconv (cd_88591_to_utf8,
6529 &inptr, &inbytesleft,
6530 &outptr, &outbytesleft);
6533 iconv_close (cd_88591_to_utf8);
6537 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6539 if (/* Try standardized names. */
6540 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6541 /* Try IRIX, OSF/1 names. */
6542 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6543 /* Try AIX names. */
6544 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6545 /* Try HP-UX names. */
6546 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6554 if ac_fn_c_try_run "$LINENO"; then :
6555 am_cv_func_iconv_works=yes
6557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6558 conftest.$ac_objext conftest.beam conftest.$ac_ext
6561 test "$am_cv_func_iconv_works" = no || break
6563 LIBS="$am_save_LIBS"
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6567 $as_echo "$am_cv_func_iconv_works" >&6; }
6568 case "$am_cv_func_iconv_works" in
6569 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6570 *) am_func_iconv=yes ;;
6573 am_func_iconv=no am_cv_lib_iconv=no
6575 if test "$am_func_iconv" = yes; then
6577 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6580 if test "$am_cv_lib_iconv" = yes; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6582 $as_echo_n "checking how to link with libiconv... " >&6; }
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6584 $as_echo "$LIBICONV" >&6; }
6586 CPPFLAGS="$am_save_CPPFLAGS"
6603 acl_save_prefix="$prefix"
6604 prefix="$acl_final_prefix"
6605 acl_save_exec_prefix="$exec_prefix"
6606 exec_prefix="$acl_final_exec_prefix"
6608 eval additional_includedir=\"$includedir\"
6609 eval additional_libdir=\"$libdir\"
6611 exec_prefix="$acl_save_exec_prefix"
6612 prefix="$acl_save_prefix"
6615 # Check whether --with-libintl-prefix was given.
6616 if test "${with_libintl_prefix+set}" = set; then :
6617 withval=$with_libintl_prefix;
6618 if test "X$withval" = "Xno"; then
6621 if test "X$withval" = "X"; then
6623 acl_save_prefix="$prefix"
6624 prefix="$acl_final_prefix"
6625 acl_save_exec_prefix="$exec_prefix"
6626 exec_prefix="$acl_final_exec_prefix"
6628 eval additional_includedir=\"$includedir\"
6629 eval additional_libdir=\"$libdir\"
6631 exec_prefix="$acl_save_exec_prefix"
6632 prefix="$acl_save_prefix"
6635 additional_includedir="$withval/include"
6636 additional_libdir="$withval/$acl_libdirstem"
6637 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6638 && ! test -d "$withval/$acl_libdirstem"; then
6639 additional_libdir="$withval/$acl_libdirstem2"
6653 names_already_handled=
6654 names_next_round='intl '
6655 while test -n "$names_next_round"; do
6656 names_this_round="$names_next_round"
6658 for name in $names_this_round; do
6660 for n in $names_already_handled; do
6661 if test "$n" = "$name"; then
6666 if test -z "$already_handled"; then
6667 names_already_handled="$names_already_handled $name"
6668 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6669 eval value=\"\$HAVE_LIB$uppername\"
6670 if test -n "$value"; then
6671 if test "$value" = yes; then
6672 eval value=\"\$LIB$uppername\"
6673 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6674 eval value=\"\$LTLIB$uppername\"
6675 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6684 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6685 if test -n "$acl_shlibext"; then
6686 shrext=".$acl_shlibext" # typically: shrext=.so
6690 if test $use_additional = yes; then
6691 dir="$additional_libdir"
6692 if test -n "$acl_shlibext"; then
6693 if test -f "$dir/$libname$shrext"; then
6695 found_so="$dir/$libname$shrext"
6697 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6698 ver=`(cd "$dir" && \
6699 for f in "$libname$shrext".*; do echo "$f"; done \
6700 | sed -e "s,^$libname$shrext\\\\.,," \
6701 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6702 | sed 1q ) 2>/dev/null`
6703 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6705 found_so="$dir/$libname$shrext.$ver"
6708 eval library_names=\"$acl_library_names_spec\"
6709 for f in $library_names; do
6710 if test -f "$dir/$f"; then
6719 if test "X$found_dir" = "X"; then
6720 if test -f "$dir/$libname.$acl_libext"; then
6722 found_a="$dir/$libname.$acl_libext"
6725 if test "X$found_dir" != "X"; then
6726 if test -f "$dir/$libname.la"; then
6727 found_la="$dir/$libname.la"
6731 if test "X$found_dir" = "X"; then
6732 for x in $LDFLAGS $LTLIBINTL; do
6734 acl_save_prefix="$prefix"
6735 prefix="$acl_final_prefix"
6736 acl_save_exec_prefix="$exec_prefix"
6737 exec_prefix="$acl_final_exec_prefix"
6739 exec_prefix="$acl_save_exec_prefix"
6740 prefix="$acl_save_prefix"
6744 dir=`echo "X$x" | sed -e 's/^X-L//'`
6745 if test -n "$acl_shlibext"; then
6746 if test -f "$dir/$libname$shrext"; then
6748 found_so="$dir/$libname$shrext"
6750 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6751 ver=`(cd "$dir" && \
6752 for f in "$libname$shrext".*; do echo "$f"; done \
6753 | sed -e "s,^$libname$shrext\\\\.,," \
6754 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6755 | sed 1q ) 2>/dev/null`
6756 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6758 found_so="$dir/$libname$shrext.$ver"
6761 eval library_names=\"$acl_library_names_spec\"
6762 for f in $library_names; do
6763 if test -f "$dir/$f"; then
6772 if test "X$found_dir" = "X"; then
6773 if test -f "$dir/$libname.$acl_libext"; then
6775 found_a="$dir/$libname.$acl_libext"
6778 if test "X$found_dir" != "X"; then
6779 if test -f "$dir/$libname.la"; then
6780 found_la="$dir/$libname.la"
6785 if test "X$found_dir" != "X"; then
6790 if test "X$found_dir" != "X"; then
6791 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6792 if test "X$found_so" != "X"; then
6793 if test "$enable_rpath" = no \
6794 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6795 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6796 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6799 for x in $ltrpathdirs; do
6800 if test "X$x" = "X$found_dir"; then
6805 if test -z "$haveit"; then
6806 ltrpathdirs="$ltrpathdirs $found_dir"
6808 if test "$acl_hardcode_direct" = yes; then
6809 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6811 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6812 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6814 for x in $rpathdirs; do
6815 if test "X$x" = "X$found_dir"; then
6820 if test -z "$haveit"; then
6821 rpathdirs="$rpathdirs $found_dir"
6825 for x in $LDFLAGS $LIBINTL; do
6827 acl_save_prefix="$prefix"
6828 prefix="$acl_final_prefix"
6829 acl_save_exec_prefix="$exec_prefix"
6830 exec_prefix="$acl_final_exec_prefix"
6832 exec_prefix="$acl_save_exec_prefix"
6833 prefix="$acl_save_prefix"
6835 if test "X$x" = "X-L$found_dir"; then
6840 if test -z "$haveit"; then
6841 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6843 if test "$acl_hardcode_minus_L" != no; then
6844 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6846 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6852 if test "X$found_a" != "X"; then
6853 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6855 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6858 additional_includedir=
6859 case "$found_dir" in
6860 */$acl_libdirstem | */$acl_libdirstem/)
6861 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6862 if test "$name" = 'intl'; then
6863 LIBINTL_PREFIX="$basedir"
6865 additional_includedir="$basedir/include"
6867 */$acl_libdirstem2 | */$acl_libdirstem2/)
6868 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6869 if test "$name" = 'intl'; then
6870 LIBINTL_PREFIX="$basedir"
6872 additional_includedir="$basedir/include"
6875 if test "X$additional_includedir" != "X"; then
6876 if test "X$additional_includedir" != "X/usr/include"; then
6878 if test "X$additional_includedir" = "X/usr/local/include"; then
6879 if test -n "$GCC"; then
6881 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6885 if test -z "$haveit"; then
6886 for x in $CPPFLAGS $INCINTL; do
6888 acl_save_prefix="$prefix"
6889 prefix="$acl_final_prefix"
6890 acl_save_exec_prefix="$exec_prefix"
6891 exec_prefix="$acl_final_exec_prefix"
6893 exec_prefix="$acl_save_exec_prefix"
6894 prefix="$acl_save_prefix"
6896 if test "X$x" = "X-I$additional_includedir"; then
6901 if test -z "$haveit"; then
6902 if test -d "$additional_includedir"; then
6903 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6909 if test -n "$found_la"; then
6910 save_libdir="$libdir"
6912 */* | *\\*) . "$found_la" ;;
6913 *) . "./$found_la" ;;
6915 libdir="$save_libdir"
6916 for dep in $dependency_libs; do
6919 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6920 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6921 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6923 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6924 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6925 if test -n "$GCC"; then
6927 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6931 if test -z "$haveit"; then
6933 for x in $LDFLAGS $LIBINTL; do
6935 acl_save_prefix="$prefix"
6936 prefix="$acl_final_prefix"
6937 acl_save_exec_prefix="$exec_prefix"
6938 exec_prefix="$acl_final_exec_prefix"
6940 exec_prefix="$acl_save_exec_prefix"
6941 prefix="$acl_save_prefix"
6943 if test "X$x" = "X-L$additional_libdir"; then
6948 if test -z "$haveit"; then
6949 if test -d "$additional_libdir"; then
6950 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6954 for x in $LDFLAGS $LTLIBINTL; do
6956 acl_save_prefix="$prefix"
6957 prefix="$acl_final_prefix"
6958 acl_save_exec_prefix="$exec_prefix"
6959 exec_prefix="$acl_final_exec_prefix"
6961 exec_prefix="$acl_save_exec_prefix"
6962 prefix="$acl_save_prefix"
6964 if test "X$x" = "X-L$additional_libdir"; then
6969 if test -z "$haveit"; then
6970 if test -d "$additional_libdir"; then
6971 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6978 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6979 if test "$enable_rpath" != no; then
6981 for x in $rpathdirs; do
6982 if test "X$x" = "X$dir"; then
6987 if test -z "$haveit"; then
6988 rpathdirs="$rpathdirs $dir"
6991 for x in $ltrpathdirs; do
6992 if test "X$x" = "X$dir"; then
6997 if test -z "$haveit"; then
6998 ltrpathdirs="$ltrpathdirs $dir"
7003 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7006 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7009 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7010 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7016 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7017 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7023 if test "X$rpathdirs" != "X"; then
7024 if test -n "$acl_hardcode_libdir_separator"; then
7026 for found_dir in $rpathdirs; do
7027 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7029 acl_save_libdir="$libdir"
7031 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7032 libdir="$acl_save_libdir"
7033 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7035 for found_dir in $rpathdirs; do
7036 acl_save_libdir="$libdir"
7038 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7039 libdir="$acl_save_libdir"
7040 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7044 if test "X$ltrpathdirs" != "X"; then
7045 for found_dir in $ltrpathdirs; do
7046 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7056 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7057 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7058 $as_echo_n "(cached) " >&6
7060 gt_save_CPPFLAGS="$CPPFLAGS"
7061 CPPFLAGS="$CPPFLAGS $INCINTL"
7062 gt_save_LIBS="$LIBS"
7063 LIBS="$LIBS $LIBINTL"
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7067 #include <libintl.h>
7068 $gt_revision_test_code
7069 extern int _nl_msg_cat_cntr;
7074 const char *_nl_expand_alias (const char *);
7080 bindtextdomain ("", "");
7081 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7087 if ac_fn_c_try_link "$LINENO"; then :
7088 eval "$gt_func_gnugettext_libintl=yes"
7090 eval "$gt_func_gnugettext_libintl=no"
7092 rm -f core conftest.err conftest.$ac_objext \
7093 conftest$ac_exeext conftest.$ac_ext
7094 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7095 LIBS="$LIBS $LIBICONV"
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7099 #include <libintl.h>
7100 $gt_revision_test_code
7101 extern int _nl_msg_cat_cntr;
7106 const char *_nl_expand_alias (const char *);
7112 bindtextdomain ("", "");
7113 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7119 if ac_fn_c_try_link "$LINENO"; then :
7120 LIBINTL="$LIBINTL $LIBICONV"
7121 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7122 eval "$gt_func_gnugettext_libintl=yes"
7125 rm -f core conftest.err conftest.$ac_objext \
7126 conftest$ac_exeext conftest.$ac_ext
7128 CPPFLAGS="$gt_save_CPPFLAGS"
7129 LIBS="$gt_save_LIBS"
7131 eval ac_res=\$$gt_func_gnugettext_libintl
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7133 $as_echo "$ac_res" >&6; }
7136 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7137 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7138 && test "$PACKAGE" != gettext-runtime \
7139 && test "$PACKAGE" != gettext-tools; }; then
7140 gt_use_preinstalled_gnugettext=yes
7149 if test -n "$INTL_MACOSX_LIBS"; then
7150 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7151 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7152 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7153 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7157 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7158 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7160 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7168 $as_echo_n "checking whether to use NLS... " >&6; }
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7170 $as_echo "$USE_NLS" >&6; }
7171 if test "$USE_NLS" = "yes"; then
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7173 $as_echo_n "checking where the gettext function comes from... " >&6; }
7174 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7175 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7176 gt_source="external libintl"
7181 gt_source="included intl directory"
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7184 $as_echo "$gt_source" >&6; }
7187 if test "$USE_NLS" = "yes"; then
7189 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7190 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7192 $as_echo_n "checking how to link with libintl... " >&6; }
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7194 $as_echo "$LIBINTL" >&6; }
7196 for element in $INCINTL; do
7198 for x in $CPPFLAGS; do
7200 acl_save_prefix="$prefix"
7201 prefix="$acl_final_prefix"
7202 acl_save_exec_prefix="$exec_prefix"
7203 exec_prefix="$acl_final_exec_prefix"
7205 exec_prefix="$acl_save_exec_prefix"
7206 prefix="$acl_save_prefix"
7208 if test "X$x" = "X$element"; then
7213 if test -z "$haveit"; then
7214 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7221 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7224 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7244 # Check whether --enable-schemas-compile was given.
7245 if test "${enable_schemas_compile+set}" = set; then :
7246 enableval=$enable_schemas_compile; case ${enableval} in
7247 yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
7248 no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
7249 *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;;
7261 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7262 if test -n "$ac_tool_prefix"; then
7263 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7264 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7268 $as_echo_n "(cached) " >&6
7272 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7282 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7293 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7294 if test -n "$PKG_CONFIG"; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7296 $as_echo "$PKG_CONFIG" >&6; }
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 $as_echo "no" >&6; }
7304 if test -z "$ac_cv_path_PKG_CONFIG"; then
7305 ac_pt_PKG_CONFIG=$PKG_CONFIG
7306 # Extract the first word of "pkg-config", so it can be a program name with args.
7307 set dummy pkg-config; ac_word=$2
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309 $as_echo_n "checking for $ac_word... " >&6; }
7310 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7311 $as_echo_n "(cached) " >&6
7313 case $ac_pt_PKG_CONFIG in
7315 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7325 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7337 if test -n "$ac_pt_PKG_CONFIG"; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7339 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7345 if test "x$ac_pt_PKG_CONFIG" = x; then
7348 case $cross_compiling:$ac_tool_warned in
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7352 ac_tool_warned=yes ;;
7354 PKG_CONFIG=$ac_pt_PKG_CONFIG
7357 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7361 if test -n "$PKG_CONFIG"; then
7362 _pkg_min_version=0.16
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7364 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7365 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7367 $as_echo "yes" >&6; }
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7374 gsettingsschemadir=${datadir}/glib-2.0/schemas
7376 if test x$cross_compiling != xyes; then
7377 GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
7379 # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
7380 set dummy glib-compile-schemas; ac_word=$2
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then :
7384 $as_echo_n "(cached) " >&6
7386 case $GLIB_COMPILE_SCHEMAS in
7388 ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7398 ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext"
7399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
7410 if test -n "$GLIB_COMPILE_SCHEMAS"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
7412 $as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7421 if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
7422 as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5
7428 .PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
7430 mostlyclean-am: clean-gsettings-schemas
7432 gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
7434 %.gschema.valid: %.gschema.xml $(gsettings__enum_file)
7435 $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p $(@D) && touch $@
7437 all-am: $(gsettings_SCHEMAS:.xml=.valid)
7438 uninstall-am: uninstall-gsettings-schemas
7439 install-data-am: install-gsettings-schemas
7441 .SECONDARY: $(gsettings_SCHEMAS)
7443 install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
7445 if test -n "$^"; then \
7446 test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
7447 $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
7448 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
7451 uninstall-gsettings-schemas:
7452 @$(NORMAL_UNINSTALL)
7453 @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
7454 files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
7455 test -n "$$files" || exit 0; \
7456 echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
7457 cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
7458 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
7460 clean-gsettings-schemas:
7461 rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
7463 ifdef gsettings_ENUM_NAMESPACE
7464 $(gsettings__enum_file): $(gsettings_ENUM_FILES)
7465 $(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 $@
7475 ############### common
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7479 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7480 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7481 $as_echo_n "(cached) " >&6
7483 ac_check_lib_save_LIBS=$LIBS
7484 LIBS="-lpthread $LIBS"
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7488 /* Override any GCC internal prototype to avoid an error.
7489 Use char because int might match the return type of a GCC
7490 builtin and then its argument prototype would still apply. */
7494 char pthread_create ();
7498 return pthread_create ();
7503 if ac_fn_c_try_link "$LINENO"; then :
7504 ac_cv_lib_pthread_pthread_create=yes
7506 ac_cv_lib_pthread_pthread_create=no
7508 rm -f core conftest.err conftest.$ac_objext \
7509 conftest$ac_exeext conftest.$ac_ext
7510 LIBS=$ac_check_lib_save_LIBS
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7513 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7514 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7515 cat >>confdefs.h <<_ACEOF
7516 #define HAVE_LIBPTHREAD 1
7519 LIBS="-lpthread $LIBS"
7523 PTHREAD_LIBS=-pthread
7526 # Checks sensors, required by psensor and psensor-server
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
7528 $as_echo_n "checking for sensors_init in -lsensors... " >&6; }
7529 if ${ac_cv_lib_sensors_sensors_init+:} false; then :
7530 $as_echo_n "(cached) " >&6
7532 ac_check_lib_save_LIBS=$LIBS
7533 LIBS="-lsensors $LIBS"
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7537 /* Override any GCC internal prototype to avoid an error.
7538 Use char because int might match the return type of a GCC
7539 builtin and then its argument prototype would still apply. */
7543 char sensors_init ();
7547 return sensors_init ();
7552 if ac_fn_c_try_link "$LINENO"; then :
7553 ac_cv_lib_sensors_sensors_init=yes
7555 ac_cv_lib_sensors_sensors_init=no
7557 rm -f core conftest.err conftest.$ac_objext \
7558 conftest$ac_exeext conftest.$ac_ext
7559 LIBS=$ac_check_lib_save_LIBS
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
7562 $as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
7563 if test "x$ac_cv_lib_sensors_sensors_init" = xyes; then :
7564 cat >>confdefs.h <<_ACEOF
7565 #define HAVE_LIBSENSORS 1
7568 LIBS="-lsensors $LIBS"
7572 for ac_header in sensors/sensors.h sensors/error.h
7574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7575 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7576 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7577 cat >>confdefs.h <<_ACEOF
7578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7585 SENSORS_LIBS=-lsensors
7588 ############### psensor
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7595 $as_echo_n "checking for X11... " >&6; }
7597 if test -n "$X11_CFLAGS"; then
7598 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7599 elif test -n "$PKG_CONFIG"; then
7600 if test -n "$PKG_CONFIG" && \
7601 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7602 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7605 test $ac_status = 0; }; then
7606 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
7607 test "x$?" != "x0" && pkg_failed=yes
7614 if test -n "$X11_LIBS"; then
7615 pkg_cv_X11_LIBS="$X11_LIBS"
7616 elif test -n "$PKG_CONFIG"; then
7617 if test -n "$PKG_CONFIG" && \
7618 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7619 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7622 test $ac_status = 0; }; then
7623 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
7624 test "x$?" != "x0" && pkg_failed=yes
7634 if test $pkg_failed = yes; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7638 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7639 _pkg_short_errors_supported=yes
7641 _pkg_short_errors_supported=no
7643 if test $_pkg_short_errors_supported = yes; then
7644 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
7646 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
7648 # Put the nasty error message in config.log where it belongs
7649 echo "$X11_PKG_ERRORS" >&5
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"x11 missing psensor will not be built\"" >&5
7652 $as_echo "$as_me: WARNING: \"x11 missing psensor will not be built\"" >&2;}
7653 elif test $pkg_failed = untried; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655 $as_echo "no" >&6; }
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"x11 missing psensor will not be built\"" >&5
7657 $as_echo "$as_me: WARNING: \"x11 missing psensor will not be built\"" >&2;}
7659 X11_CFLAGS=$pkg_cv_X11_CFLAGS
7660 X11_LIBS=$pkg_cv_X11_LIBS
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7662 $as_echo "yes" >&6; }
7665 if test -n "$X11_LIBS"; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
7679 $as_echo_n "checking for XEXT... " >&6; }
7681 if test -n "$XEXT_CFLAGS"; then
7682 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
7683 elif test -n "$PKG_CONFIG"; then
7684 if test -n "$PKG_CONFIG" && \
7685 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7686 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7689 test $ac_status = 0; }; then
7690 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
7691 test "x$?" != "x0" && pkg_failed=yes
7698 if test -n "$XEXT_LIBS"; then
7699 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
7700 elif test -n "$PKG_CONFIG"; then
7701 if test -n "$PKG_CONFIG" && \
7702 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7703 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7706 test $ac_status = 0; }; then
7707 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
7708 test "x$?" != "x0" && pkg_failed=yes
7718 if test $pkg_failed = yes; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 $as_echo "no" >&6; }
7722 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7723 _pkg_short_errors_supported=yes
7725 _pkg_short_errors_supported=no
7727 if test $_pkg_short_errors_supported = yes; then
7728 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
7730 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
7732 # Put the nasty error message in config.log where it belongs
7733 echo "$XEXT_PKG_ERRORS" >&5
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"xext missing psensor will not be built\"" >&5
7736 $as_echo "$as_me: WARNING: \"xext missing psensor will not be built\"" >&2;}
7737 elif test $pkg_failed = untried; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"xext missing psensor will not be built\"" >&5
7741 $as_echo "$as_me: WARNING: \"xext missing psensor will not be built\"" >&2;}
7743 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
7744 XEXT_LIBS=$pkg_cv_XEXT_LIBS
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7746 $as_echo "yes" >&6; }
7749 if test -n "$XEXT_LIBS"; then
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7764 $as_echo_n "checking for GTK... " >&6; }
7766 if test -n "$GTK_CFLAGS"; then
7767 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7768 elif test -n "$PKG_CONFIG"; then
7769 if test -n "$PKG_CONFIG" && \
7770 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.4\""; } >&5
7771 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.4") 2>&5
7773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7774 test $ac_status = 0; }; then
7775 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.4" 2>/dev/null`
7776 test "x$?" != "x0" && pkg_failed=yes
7783 if test -n "$GTK_LIBS"; then
7784 pkg_cv_GTK_LIBS="$GTK_LIBS"
7785 elif test -n "$PKG_CONFIG"; then
7786 if test -n "$PKG_CONFIG" && \
7787 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.4\""; } >&5
7788 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.4") 2>&5
7790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7791 test $ac_status = 0; }; then
7792 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.4" 2>/dev/null`
7793 test "x$?" != "x0" && pkg_failed=yes
7803 if test $pkg_failed = yes; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7807 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7808 _pkg_short_errors_supported=yes
7810 _pkg_short_errors_supported=no
7812 if test $_pkg_short_errors_supported = yes; then
7813 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.4" 2>&1`
7815 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.4" 2>&1`
7817 # Put the nasty error message in config.log where it belongs
7818 echo "$GTK_PKG_ERRORS" >&5
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtk missing psensor will not be built\"" >&5
7821 $as_echo "$as_me: WARNING: \"gtk missing psensor will not be built\"" >&2;}
7822 elif test $pkg_failed = untried; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtk missing psensor will not be built\"" >&5
7826 $as_echo "$as_me: WARNING: \"gtk missing psensor will not be built\"" >&2;}
7828 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7829 GTK_LIBS=$pkg_cv_GTK_LIBS
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7831 $as_echo "yes" >&6; }
7834 if test -n "$GTK_LIBS"; then
7842 # ensure that only allowed headers are included
7843 GTK_CFLAGS+=" -DGTK_DISABLE_SINGLE_INCLUDES "
7844 # ensure that no gtk/dk deprecated symbols are used
7845 GTK_CFLAGS+=" -DGDK_DISABLE_DEPRECATED "
7846 # do not enable flag because GtkStatusIcon is deprecated
7847 #GTK_CFLAGS+=" -DGTK_DISABLE_DEPRECATED "
7848 # ensure use of accessors
7849 GTK_CFLAGS+=" -DGSEAL_ENABLE "
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDISKS2" >&5
7857 $as_echo_n "checking for LIBUDISKS2... " >&6; }
7859 if test -n "$LIBUDISKS2_CFLAGS"; then
7860 pkg_cv_LIBUDISKS2_CFLAGS="$LIBUDISKS2_CFLAGS"
7861 elif test -n "$PKG_CONFIG"; then
7862 if test -n "$PKG_CONFIG" && \
7863 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udisks2\""; } >&5
7864 ($PKG_CONFIG --exists --print-errors "udisks2") 2>&5
7866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7867 test $ac_status = 0; }; then
7868 pkg_cv_LIBUDISKS2_CFLAGS=`$PKG_CONFIG --cflags "udisks2" 2>/dev/null`
7869 test "x$?" != "x0" && pkg_failed=yes
7876 if test -n "$LIBUDISKS2_LIBS"; then
7877 pkg_cv_LIBUDISKS2_LIBS="$LIBUDISKS2_LIBS"
7878 elif test -n "$PKG_CONFIG"; then
7879 if test -n "$PKG_CONFIG" && \
7880 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udisks2\""; } >&5
7881 ($PKG_CONFIG --exists --print-errors "udisks2") 2>&5
7883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7884 test $ac_status = 0; }; then
7885 pkg_cv_LIBUDISKS2_LIBS=`$PKG_CONFIG --libs "udisks2" 2>/dev/null`
7886 test "x$?" != "x0" && pkg_failed=yes
7896 if test $pkg_failed = yes; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7900 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7901 _pkg_short_errors_supported=yes
7903 _pkg_short_errors_supported=no
7905 if test $_pkg_short_errors_supported = yes; then
7906 LIBUDISKS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udisks2" 2>&1`
7908 LIBUDISKS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udisks2" 2>&1`
7910 # Put the nasty error message in config.log where it belongs
7911 echo "$LIBUDISKS2_PKG_ERRORS" >&5
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library udisks2 not present\"" >&5
7914 $as_echo "$as_me: WARNING: \"Library udisks2 not present\"" >&2;}
7915 elif test $pkg_failed = untried; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library udisks2 not present\"" >&5
7919 $as_echo "$as_me: WARNING: \"Library udisks2 not present\"" >&2;}
7921 LIBUDISKS2_CFLAGS=$pkg_cv_LIBUDISKS2_CFLAGS
7922 LIBUDISKS2_LIBS=$pkg_cv_LIBUDISKS2_LIBS
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7924 $as_echo "yes" >&6; }
7926 $as_echo "#define HAVE_LIBUDISKS2 1" >>confdefs.h
7929 if test -n "$LIBUDISKS2_LIBS"; then
7931 LIBUDISKS2_FALSE='#'
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATASMART" >&5
7944 $as_echo_n "checking for ATASMART... " >&6; }
7946 if test -n "$ATASMART_CFLAGS"; then
7947 pkg_cv_ATASMART_CFLAGS="$ATASMART_CFLAGS"
7948 elif test -n "$PKG_CONFIG"; then
7949 if test -n "$PKG_CONFIG" && \
7950 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
7951 ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
7953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7954 test $ac_status = 0; }; then
7955 pkg_cv_ATASMART_CFLAGS=`$PKG_CONFIG --cflags "libatasmart" 2>/dev/null`
7956 test "x$?" != "x0" && pkg_failed=yes
7963 if test -n "$ATASMART_LIBS"; then
7964 pkg_cv_ATASMART_LIBS="$ATASMART_LIBS"
7965 elif test -n "$PKG_CONFIG"; then
7966 if test -n "$PKG_CONFIG" && \
7967 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
7968 ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
7970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7971 test $ac_status = 0; }; then
7972 pkg_cv_ATASMART_LIBS=`$PKG_CONFIG --libs "libatasmart" 2>/dev/null`
7973 test "x$?" != "x0" && pkg_failed=yes
7983 if test $pkg_failed = yes; then
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985 $as_echo "no" >&6; }
7987 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7988 _pkg_short_errors_supported=yes
7990 _pkg_short_errors_supported=no
7992 if test $_pkg_short_errors_supported = yes; then
7993 ATASMART_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libatasmart" 2>&1`
7995 ATASMART_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libatasmart" 2>&1`
7997 # Put the nasty error message in config.log where it belongs
7998 echo "$ATASMART_PKG_ERRORS" >&5
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
8001 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
8002 elif test $pkg_failed = untried; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
8006 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
8008 ATASMART_CFLAGS=$pkg_cv_ATASMART_CFLAGS
8009 ATASMART_LIBS=$pkg_cv_ATASMART_LIBS
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8011 $as_echo "yes" >&6; }
8013 $as_echo "#define HAVE_ATASMART 1" >>confdefs.h
8017 if test -n "$ATASMART_LIBS"; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
8033 $as_echo_n "checking for LIBNOTIFY... " >&6; }
8035 if test -n "$LIBNOTIFY_CFLAGS"; then
8036 pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
8037 elif test -n "$PKG_CONFIG"; then
8038 if test -n "$PKG_CONFIG" && \
8039 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
8040 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
8042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8043 test $ac_status = 0; }; then
8044 pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
8045 test "x$?" != "x0" && pkg_failed=yes
8052 if test -n "$LIBNOTIFY_LIBS"; then
8053 pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
8054 elif test -n "$PKG_CONFIG"; then
8055 if test -n "$PKG_CONFIG" && \
8056 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
8057 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
8059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8060 test $ac_status = 0; }; then
8061 pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
8062 test "x$?" != "x0" && pkg_failed=yes
8072 if test $pkg_failed = yes; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074 $as_echo "no" >&6; }
8076 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8077 _pkg_short_errors_supported=yes
8079 _pkg_short_errors_supported=no
8081 if test $_pkg_short_errors_supported = yes; then
8082 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify" 2>&1`
8084 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify" 2>&1`
8086 # Put the nasty error message in config.log where it belongs
8087 echo "$LIBNOTIFY_PKG_ERRORS" >&5
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
8090 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
8091 elif test $pkg_failed = untried; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
8095 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
8097 LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
8098 LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8100 $as_echo "yes" >&6; }
8102 $as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h
8105 if test -n "$LIBNOTIFY_LIBS"; then
8116 # Checks AppIndicator
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8122 $as_echo_n "checking for APPINDICATOR... " >&6; }
8124 if test -n "$APPINDICATOR_CFLAGS"; then
8125 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8126 elif test -n "$PKG_CONFIG"; then
8127 if test -n "$PKG_CONFIG" && \
8128 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
8129 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
8131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8132 test $ac_status = 0; }; then
8133 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator3-0.1" 2>/dev/null`
8134 test "x$?" != "x0" && pkg_failed=yes
8141 if test -n "$APPINDICATOR_LIBS"; then
8142 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8143 elif test -n "$PKG_CONFIG"; then
8144 if test -n "$PKG_CONFIG" && \
8145 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
8146 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
8148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8149 test $ac_status = 0; }; then
8150 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator3-0.1" 2>/dev/null`
8151 test "x$?" != "x0" && pkg_failed=yes
8161 if test $pkg_failed = yes; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8165 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8166 _pkg_short_errors_supported=yes
8168 _pkg_short_errors_supported=no
8170 if test $_pkg_short_errors_supported = yes; then
8171 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
8173 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
8175 # Put the nasty error message in config.log where it belongs
8176 echo "$APPINDICATOR_PKG_ERRORS" >&5
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
8179 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
8180 elif test $pkg_failed = untried; then
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
8184 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
8186 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8187 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8189 $as_echo "yes" >&6; }
8191 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8195 if test "$APPINDICATOR_LIBS" == ""; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8199 $as_echo_n "checking for APPINDICATOR... " >&6; }
8201 if test -n "$APPINDICATOR_CFLAGS"; then
8202 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8203 elif test -n "$PKG_CONFIG"; then
8204 if test -n "$PKG_CONFIG" && \
8205 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
8206 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
8208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8209 test $ac_status = 0; }; then
8210 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
8211 test "x$?" != "x0" && pkg_failed=yes
8218 if test -n "$APPINDICATOR_LIBS"; then
8219 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8220 elif test -n "$PKG_CONFIG"; then
8221 if test -n "$PKG_CONFIG" && \
8222 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
8223 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
8225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8226 test $ac_status = 0; }; then
8227 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
8228 test "x$?" != "x0" && pkg_failed=yes
8238 if test $pkg_failed = yes; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8242 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8243 _pkg_short_errors_supported=yes
8245 _pkg_short_errors_supported=no
8247 if test $_pkg_short_errors_supported = yes; then
8248 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
8250 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
8252 # Put the nasty error message in config.log where it belongs
8253 echo "$APPINDICATOR_PKG_ERRORS" >&5
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
8256 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
8257 elif test $pkg_failed = untried; then
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 $as_echo "no" >&6; }
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
8261 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
8263 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8264 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8266 $as_echo "yes" >&6; }
8268 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8271 $as_echo "#define HAVE_APPINDICATOR_029 1" >>confdefs.h
8277 if test "$APPINDICATOR_LIBS" == ""; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8281 $as_echo_n "checking for APPINDICATOR... " >&6; }
8283 if test -n "$APPINDICATOR_CFLAGS"; then
8284 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8285 elif test -n "$PKG_CONFIG"; then
8286 if test -n "$PKG_CONFIG" && \
8287 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8288 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8291 test $ac_status = 0; }; then
8292 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 > 0.2.9" 2>/dev/null`
8293 test "x$?" != "x0" && pkg_failed=yes
8300 if test -n "$APPINDICATOR_LIBS"; then
8301 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8302 elif test -n "$PKG_CONFIG"; then
8303 if test -n "$PKG_CONFIG" && \
8304 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8305 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8308 test $ac_status = 0; }; then
8309 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 > 0.2.9" 2>/dev/null`
8310 test "x$?" != "x0" && pkg_failed=yes
8320 if test $pkg_failed = yes; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8324 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8325 _pkg_short_errors_supported=yes
8327 _pkg_short_errors_supported=no
8329 if test $_pkg_short_errors_supported = yes; then
8330 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8332 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8334 # Put the nasty error message in config.log where it belongs
8335 echo "$APPINDICATOR_PKG_ERRORS" >&5
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8338 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8339 elif test $pkg_failed = untried; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8343 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8345 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8346 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8348 $as_echo "yes" >&6; }
8350 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8354 if test -n "$APPINDICATOR_LIBS"; then
8356 APPINDICATOR_FALSE='#'
8358 APPINDICATOR_TRUE='#'
8365 # Check CURL, needed for remote monitoring
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
8370 $as_echo_n "checking for CURL... " >&6; }
8372 if test -n "$CURL_CFLAGS"; then
8373 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
8374 elif test -n "$PKG_CONFIG"; then
8375 if test -n "$PKG_CONFIG" && \
8376 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8377 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8380 test $ac_status = 0; }; then
8381 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
8382 test "x$?" != "x0" && pkg_failed=yes
8389 if test -n "$CURL_LIBS"; then
8390 pkg_cv_CURL_LIBS="$CURL_LIBS"
8391 elif test -n "$PKG_CONFIG"; then
8392 if test -n "$PKG_CONFIG" && \
8393 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8394 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8397 test $ac_status = 0; }; then
8398 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
8399 test "x$?" != "x0" && pkg_failed=yes
8409 if test $pkg_failed = yes; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 $as_echo "no" >&6; }
8413 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8414 _pkg_short_errors_supported=yes
8416 _pkg_short_errors_supported=no
8418 if test $_pkg_short_errors_supported = yes; then
8419 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
8421 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
8423 # Put the nasty error message in config.log where it belongs
8424 echo "$CURL_PKG_ERRORS" >&5
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8427 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8428 elif test $pkg_failed = untried; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8432 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8434 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
8435 CURL_LIBS=$pkg_cv_CURL_LIBS
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8437 $as_echo "yes" >&6; }
8439 $as_echo "#define HAVE_CURL 1" >>confdefs.h
8442 if test -n "$CURL_LIBS"; then
8453 # Check JSON, needed for remote monitoring
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8458 $as_echo_n "checking for JSON... " >&6; }
8460 if test -n "$JSON_CFLAGS"; then
8461 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8462 elif test -n "$PKG_CONFIG"; then
8463 if test -n "$PKG_CONFIG" && \
8464 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11.99\""; } >&5
8465 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11.99") 2>&5
8467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8468 test $ac_status = 0; }; then
8469 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11.99" 2>/dev/null`
8470 test "x$?" != "x0" && pkg_failed=yes
8477 if test -n "$JSON_LIBS"; then
8478 pkg_cv_JSON_LIBS="$JSON_LIBS"
8479 elif test -n "$PKG_CONFIG"; then
8480 if test -n "$PKG_CONFIG" && \
8481 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11.99\""; } >&5
8482 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11.99") 2>&5
8484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8485 test $ac_status = 0; }; then
8486 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11.99" 2>/dev/null`
8487 test "x$?" != "x0" && pkg_failed=yes
8497 if test $pkg_failed = yes; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499 $as_echo "no" >&6; }
8501 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8502 _pkg_short_errors_supported=yes
8504 _pkg_short_errors_supported=no
8506 if test $_pkg_short_errors_supported = yes; then
8507 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11.99" 2>&1`
8509 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11.99" 2>&1`
8511 # Put the nasty error message in config.log where it belongs
8512 echo "$JSON_PKG_ERRORS" >&5
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
8515 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
8516 elif test $pkg_failed = untried; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
8520 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
8522 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8523 JSON_LIBS=$pkg_cv_JSON_LIBS
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8525 $as_echo "yes" >&6; }
8527 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8531 if test "$JSON_LIBS" == ""; then
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8535 $as_echo_n "checking for JSON... " >&6; }
8537 if test -n "$JSON_CFLAGS"; then
8538 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8539 elif test -n "$PKG_CONFIG"; then
8540 if test -n "$PKG_CONFIG" && \
8541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json >= 0.11.99\""; } >&5
8542 ($PKG_CONFIG --exists --print-errors "json >= 0.11.99") 2>&5
8544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8545 test $ac_status = 0; }; then
8546 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json >= 0.11.99" 2>/dev/null`
8547 test "x$?" != "x0" && pkg_failed=yes
8554 if test -n "$JSON_LIBS"; then
8555 pkg_cv_JSON_LIBS="$JSON_LIBS"
8556 elif test -n "$PKG_CONFIG"; then
8557 if test -n "$PKG_CONFIG" && \
8558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json >= 0.11.99\""; } >&5
8559 ($PKG_CONFIG --exists --print-errors "json >= 0.11.99") 2>&5
8561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8562 test $ac_status = 0; }; then
8563 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json >= 0.11.99" 2>/dev/null`
8564 test "x$?" != "x0" && pkg_failed=yes
8574 if test $pkg_failed = yes; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8578 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8579 _pkg_short_errors_supported=yes
8581 _pkg_short_errors_supported=no
8583 if test $_pkg_short_errors_supported = yes; then
8584 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json >= 0.11.99" 2>&1`
8586 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json >= 0.11.99" 2>&1`
8588 # Put the nasty error message in config.log where it belongs
8589 echo "$JSON_PKG_ERRORS" >&5
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
8592 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
8593 elif test $pkg_failed = untried; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8595 $as_echo "no" >&6; }
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
8597 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
8599 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8600 JSON_LIBS=$pkg_cv_JSON_LIBS
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8602 $as_echo "yes" >&6; }
8604 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8607 $as_echo "#define HAVE_JSON_0 1" >>confdefs.h
8612 if test -n "$JSON_LIBS"; then
8623 # Enables remote monitoring if JSON and CURL is present
8624 if test -n "$JSON_LIBS"; then
8625 if test -n "$CURL_LIBS"; then
8627 $as_echo "#define HAVE_REMOTE_SUPPORT 1" >>confdefs.h
8633 # following code from sensors-applet
8634 # sensors-applet.sourceforge.net/
8635 for ac_header in NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h
8637 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8638 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8639 #include <X11/Xlib.h>
8642 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8643 cat >>confdefs.h <<_ACEOF
8644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8651 if test -n "${X11_LIBS}"; then
8652 LIBS="${LIBS} -lX11 -lXext"
8654 if test "${HAVE_NVIDIA}" = "true"; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryExtension in -lXNVCtrl" >&5
8656 $as_echo_n "checking for XNVCTRLQueryExtension in -lXNVCtrl... " >&6; }
8657 if ${ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension+:} false; then :
8658 $as_echo_n "(cached) " >&6
8660 ac_check_lib_save_LIBS=$LIBS
8661 LIBS="-lXNVCtrl $LIBS"
8662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8665 /* Override any GCC internal prototype to avoid an error.
8666 Use char because int might match the return type of a GCC
8667 builtin and then its argument prototype would still apply. */
8671 char XNVCTRLQueryExtension ();
8675 return XNVCTRLQueryExtension ();
8680 if ac_fn_c_try_link "$LINENO"; then :
8681 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=yes
8683 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=no
8685 rm -f core conftest.err conftest.$ac_objext \
8686 conftest$ac_exeext conftest.$ac_ext
8687 LIBS=$ac_check_lib_save_LIBS
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&5
8690 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&6; }
8691 if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" = xyes; then :
8692 NVIDIA_LIBS="-lXNVCtrl -lX11 -lXext"
8694 $as_echo "#define HAVE_NVIDIA 1" >>confdefs.h
8701 if test -n "$NVIDIA_LIBS"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNITY" >&5
8716 $as_echo_n "checking for UNITY... " >&6; }
8718 if test -n "$UNITY_CFLAGS"; then
8719 pkg_cv_UNITY_CFLAGS="$UNITY_CFLAGS"
8720 elif test -n "$PKG_CONFIG"; then
8721 if test -n "$PKG_CONFIG" && \
8722 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8723 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8726 test $ac_status = 0; }; then
8727 pkg_cv_UNITY_CFLAGS=`$PKG_CONFIG --cflags "unity >= 3.4.2" 2>/dev/null`
8728 test "x$?" != "x0" && pkg_failed=yes
8735 if test -n "$UNITY_LIBS"; then
8736 pkg_cv_UNITY_LIBS="$UNITY_LIBS"
8737 elif test -n "$PKG_CONFIG"; then
8738 if test -n "$PKG_CONFIG" && \
8739 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8740 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8743 test $ac_status = 0; }; then
8744 pkg_cv_UNITY_LIBS=`$PKG_CONFIG --libs "unity >= 3.4.2" 2>/dev/null`
8745 test "x$?" != "x0" && pkg_failed=yes
8755 if test $pkg_failed = yes; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757 $as_echo "no" >&6; }
8759 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8760 _pkg_short_errors_supported=yes
8762 _pkg_short_errors_supported=no
8764 if test $_pkg_short_errors_supported = yes; then
8765 UNITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8767 UNITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8769 # Put the nasty error message in config.log where it belongs
8770 echo "$UNITY_PKG_ERRORS" >&5
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8773 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8774 elif test $pkg_failed = untried; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776 $as_echo "no" >&6; }
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8778 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8780 UNITY_CFLAGS=$pkg_cv_UNITY_CFLAGS
8781 UNITY_LIBS=$pkg_cv_UNITY_LIBS
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8783 $as_echo "yes" >&6; }
8785 $as_echo "#define HAVE_UNITY 1" >>confdefs.h
8790 if test -n "$UNITY_LIBS"; then
8801 # Check whether --with-libatiadl was given.
8802 if test "${with_libatiadl+set}" = set; then :
8803 withval=$with_libatiadl;
8804 ATIADL_DIR=${withval}
8805 CPPFLAGS="${CPPFLAGS} -I${ATIADL_DIR}/include"
8806 LIBS="$LIBS -L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst"
8812 for ac_header in adl_defines.h
8814 ac_fn_c_check_header_mongrel "$LINENO" "adl_defines.h" "ac_cv_header_adl_defines_h" "$ac_includes_default"
8815 if test "x$ac_cv_header_adl_defines_h" = xyes; then :
8816 cat >>confdefs.h <<_ACEOF
8817 #define HAVE_ADL_DEFINES_H 1
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ADL_Main_Control_Refresh in -latiadlxx" >&5
8820 $as_echo_n "checking for ADL_Main_Control_Refresh in -latiadlxx... " >&6; }
8821 if ${ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh+:} false; then :
8822 $as_echo_n "(cached) " >&6
8824 ac_check_lib_save_LIBS=$LIBS
8825 LIBS="-latiadlxx $LIBS"
8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8827 /* end confdefs.h. */
8829 /* Override any GCC internal prototype to avoid an error.
8830 Use char because int might match the return type of a GCC
8831 builtin and then its argument prototype would still apply. */
8835 char ADL_Main_Control_Refresh ();
8839 return ADL_Main_Control_Refresh ();
8844 if ac_fn_c_try_link "$LINENO"; then :
8845 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=yes
8847 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=no
8849 rm -f core conftest.err conftest.$ac_objext \
8850 conftest$ac_exeext conftest.$ac_ext
8851 LIBS=$ac_check_lib_save_LIBS
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&5
8854 $as_echo "$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&6; }
8855 if test "x$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" = xyes; then :
8858 $as_echo "#define HAVE_LIBATIADL 1" >>confdefs.h
8860 LIBATIADL_CFLAGS="-I${ATIADL_DIR}/include"
8861 LIBATIADL_LIBS="-L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst -latiadlxx -ldl"
8870 if test -n "$LIBATIADL_LIBS"; then
8881 ############### psensor-server
8883 # Check libmicrohttpd, mandatory for psensor-server
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMICROHTTPD" >&5
8888 $as_echo_n "checking for LIBMICROHTTPD... " >&6; }
8890 if test -n "$LIBMICROHTTPD_CFLAGS"; then
8891 pkg_cv_LIBMICROHTTPD_CFLAGS="$LIBMICROHTTPD_CFLAGS"
8892 elif test -n "$PKG_CONFIG"; then
8893 if test -n "$PKG_CONFIG" && \
8894 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8895 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8898 test $ac_status = 0; }; then
8899 pkg_cv_LIBMICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null`
8900 test "x$?" != "x0" && pkg_failed=yes
8907 if test -n "$LIBMICROHTTPD_LIBS"; then
8908 pkg_cv_LIBMICROHTTPD_LIBS="$LIBMICROHTTPD_LIBS"
8909 elif test -n "$PKG_CONFIG"; then
8910 if test -n "$PKG_CONFIG" && \
8911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8912 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8915 test $ac_status = 0; }; then
8916 pkg_cv_LIBMICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null`
8917 test "x$?" != "x0" && pkg_failed=yes
8927 if test $pkg_failed = yes; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8931 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8932 _pkg_short_errors_supported=yes
8934 _pkg_short_errors_supported=no
8936 if test $_pkg_short_errors_supported = yes; then
8937 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8939 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8941 # Put the nasty error message in config.log where it belongs
8942 echo "$LIBMICROHTTPD_PKG_ERRORS" >&5
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8945 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8946 elif test $pkg_failed = untried; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948 $as_echo "no" >&6; }
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8950 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8952 LIBMICROHTTPD_CFLAGS=$pkg_cv_LIBMICROHTTPD_CFLAGS
8953 LIBMICROHTTPD_LIBS=$pkg_cv_LIBMICROHTTPD_LIBS
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8955 $as_echo "yes" >&6; }
8957 $as_echo "#define HAVE_LIBMICROHTTPD 1" >>confdefs.h
8960 if test -n "$LIBMICROHTTPD_LIBS"; then
8962 LIBMICROHTTPD_FALSE='#'
8964 LIBMICROHTTPD_TRUE='#'
8965 LIBMICROHTTPD_FALSE=
8971 # Check gtop2, optional
8973 # Check whether --with-gtop was given.
8974 if test "${with_gtop+set}" = set; then :
8985 if test "$with_gtop" = "yes"; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTOP" >&5
8989 $as_echo_n "checking for GTOP... " >&6; }
8991 if test -n "$GTOP_CFLAGS"; then
8992 pkg_cv_GTOP_CFLAGS="$GTOP_CFLAGS"
8993 elif test -n "$PKG_CONFIG"; then
8994 if test -n "$PKG_CONFIG" && \
8995 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8996 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8999 test $ac_status = 0; }; then
9000 pkg_cv_GTOP_CFLAGS=`$PKG_CONFIG --cflags "libgtop-2.0" 2>/dev/null`
9001 test "x$?" != "x0" && pkg_failed=yes
9008 if test -n "$GTOP_LIBS"; then
9009 pkg_cv_GTOP_LIBS="$GTOP_LIBS"
9010 elif test -n "$PKG_CONFIG"; then
9011 if test -n "$PKG_CONFIG" && \
9012 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
9013 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
9015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9016 test $ac_status = 0; }; then
9017 pkg_cv_GTOP_LIBS=`$PKG_CONFIG --libs "libgtop-2.0" 2>/dev/null`
9018 test "x$?" != "x0" && pkg_failed=yes
9028 if test $pkg_failed = yes; then
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030 $as_echo "no" >&6; }
9032 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9033 _pkg_short_errors_supported=yes
9035 _pkg_short_errors_supported=no
9037 if test $_pkg_short_errors_supported = yes; then
9038 GTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgtop-2.0" 2>&1`
9040 GTOP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgtop-2.0" 2>&1`
9042 # Put the nasty error message in config.log where it belongs
9043 echo "$GTOP_PKG_ERRORS" >&5
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
9046 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
9047 elif test $pkg_failed = untried; then
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
9051 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
9053 GTOP_CFLAGS=$pkg_cv_GTOP_CFLAGS
9054 GTOP_LIBS=$pkg_cv_GTOP_LIBS
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9056 $as_echo "yes" >&6; }
9058 $as_echo "#define HAVE_GTOP 1" >>confdefs.h
9062 if test -n "$GTOP_LIBS"; then
9073 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/glade/Makefile src/lib/Makefile src/server/Makefile icons/hicolor/scalable/Makefile icons/hicolor/14x14/Makefile icons/hicolor/16x16/Makefile icons/hicolor/22x22/Makefile icons/hicolor/24x24/Makefile icons/hicolor/32x32/Makefile icons/hicolor/48x48/Makefile icons/hicolor/64x64/Makefile icons/ubuntu-mono-dark/status/22/Makefile icons/ubuntu-mono-light/status/22/Makefile icons/ubuntu-mono-dark/apps/22/Makefile www/Makefile po/Makefile.in tests/Makefile"
9076 for ac_prog in help2man
9078 # Extract the first word of "$ac_prog", so it can be a program name with args.
9079 set dummy $ac_prog; ac_word=$2
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9081 $as_echo_n "checking for $ac_word... " >&6; }
9082 if ${ac_cv_prog_HELP2MAN+:} false; then :
9083 $as_echo_n "(cached) " >&6
9085 if test -n "$HELP2MAN"; then
9086 ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
9088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092 test -z "$as_dir" && as_dir=.
9093 for ac_exec_ext in '' $ac_executable_extensions; do
9094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9095 ac_cv_prog_HELP2MAN="$ac_prog"
9096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9105 HELP2MAN=$ac_cv_prog_HELP2MAN
9106 if test -n "$HELP2MAN"; then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
9108 $as_echo "$HELP2MAN" >&6; }
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111 $as_echo "no" >&6; }
9115 test -n "$HELP2MAN" && break
9119 # Extract the first word of "asciidoc", so it can be a program name with args.
9120 set dummy asciidoc; ac_word=$2
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9122 $as_echo_n "checking for $ac_word... " >&6; }
9123 if ${ac_cv_prog_ASCIIDOC+:} false; then :
9124 $as_echo_n "(cached) " >&6
9126 if test -n "$ASCIIDOC"; then
9127 ac_cv_prog_ASCIIDOC="$ASCIIDOC" # Let the user override the test.
9129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
9135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9136 ac_cv_prog_ASCIIDOC="yes"
9137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9146 ASCIIDOC=$ac_cv_prog_ASCIIDOC
9147 if test -n "$ASCIIDOC"; then
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
9149 $as_echo "$ASCIIDOC" >&6; }
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9152 $as_echo "no" >&6; }
9156 if test -n "$ASCIIDOC"; then
9165 # Extract the first word of "cppcheck", so it can be a program name with args.
9166 set dummy cppcheck; ac_word=$2
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9168 $as_echo_n "checking for $ac_word... " >&6; }
9169 if ${ac_cv_prog_HAVE_CPPCHECK+:} false; then :
9170 $as_echo_n "(cached) " >&6
9172 if test -n "$HAVE_CPPCHECK"; then
9173 ac_cv_prog_HAVE_CPPCHECK="$HAVE_CPPCHECK" # Let the user override the test.
9175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9179 test -z "$as_dir" && as_dir=.
9180 for ac_exec_ext in '' $ac_executable_extensions; do
9181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9182 ac_cv_prog_HAVE_CPPCHECK="yes"
9183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9192 HAVE_CPPCHECK=$ac_cv_prog_HAVE_CPPCHECK
9193 if test -n "$HAVE_CPPCHECK"; then
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CPPCHECK" >&5
9195 $as_echo "$HAVE_CPPCHECK" >&6; }
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9198 $as_echo "no" >&6; }
9202 if test -n "$HAVE_CPPCHECK"; then
9211 cat >confcache <<\_ACEOF
9212 # This file is a shell script that caches the results of configure
9213 # tests run on this system so they can be shared between configure
9214 # scripts and configure runs, see configure's option --config-cache.
9215 # It is not useful on other systems. If it contains results you don't
9216 # want to keep, you may remove or edit it.
9218 # config.status only pays attention to the cache file if you give it
9219 # the --recheck option to rerun configure.
9221 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9222 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9227 # The following way of writing the cache mishandles newlines in values,
9228 # but we know of no workaround that is simple, portable, and efficient.
9229 # So, we kill variables containing newlines.
9230 # Ultrix sh set writes to stderr and can't be redirected directly,
9231 # and sets the high bit in the cache file unless we assign to the vars.
9233 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9234 eval ac_val=\$$ac_var
9238 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9239 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9242 _ | IFS | as_nl) ;; #(
9243 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9244 *) { eval $ac_var=; unset $ac_var;} ;;
9250 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9251 *${as_nl}ac_space=\ *)
9252 # `set' does not quote correctly, so add quotes: double-quote
9253 # substitution turns \\\\ into \\, and sed turns \\ into \.
9256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9259 # `set' quotes correctly as required by POSIX, so do not add quotes.
9260 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9269 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9271 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9273 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9274 if test -w "$cache_file"; then
9275 if test "x$cache_file" != "x/dev/null"; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9277 $as_echo "$as_me: updating cache $cache_file" >&6;}
9278 if test ! -f "$cache_file" || test -h "$cache_file"; then
9279 cat confcache >"$cache_file"
9281 case $cache_file in #(
9283 mv -f confcache "$cache_file"$$ &&
9284 mv -f "$cache_file"$$ "$cache_file" ;; #(
9286 mv -f confcache "$cache_file" ;;
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9292 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9297 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9298 # Let make expand exec_prefix.
9299 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9301 DEFS=-DHAVE_CONFIG_H
9306 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9307 # 1. Remove the extension, and $U if already installed.
9308 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9309 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9310 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9311 # will be set to the directory where LIBOBJS objects are built.
9312 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9313 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9317 LTLIBOBJS=$ac_ltlibobjs
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
9321 $as_echo_n "checking that generated files are newer than configure... " >&6; }
9322 if test -n "$am_sleep_pid"; then
9323 # Hide warnings about reused PIDs.
9324 wait $am_sleep_pid 2>/dev/null
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
9327 $as_echo "done" >&6; }
9328 if test -n "$EXEEXT"; then
9330 am__EXEEXT_FALSE='#'
9336 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9337 as_fn_error $? "conditional \"AMDEP\" was never defined.
9338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9340 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9341 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9344 if test -z "${X11_TRUE}" && test -z "${X11_FALSE}"; then
9345 as_fn_error $? "conditional \"X11\" was never defined.
9346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9348 if test -z "${XEXT_TRUE}" && test -z "${XEXT_FALSE}"; then
9349 as_fn_error $? "conditional \"XEXT\" was never defined.
9350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9352 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
9353 as_fn_error $? "conditional \"GTK\" was never defined.
9354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9356 if test -z "${LIBUDISKS2_TRUE}" && test -z "${LIBUDISKS2_FALSE}"; then
9357 as_fn_error $? "conditional \"LIBUDISKS2\" was never defined.
9358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9360 if test -z "${ATASMART_TRUE}" && test -z "${ATASMART_FALSE}"; then
9361 as_fn_error $? "conditional \"ATASMART\" was never defined.
9362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9364 if test -z "${LIBNOTIFY_TRUE}" && test -z "${LIBNOTIFY_FALSE}"; then
9365 as_fn_error $? "conditional \"LIBNOTIFY\" was never defined.
9366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9368 if test -z "${APPINDICATOR_TRUE}" && test -z "${APPINDICATOR_FALSE}"; then
9369 as_fn_error $? "conditional \"APPINDICATOR\" was never defined.
9370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9372 if test -z "${CURL_TRUE}" && test -z "${CURL_FALSE}"; then
9373 as_fn_error $? "conditional \"CURL\" was never defined.
9374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9376 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
9377 as_fn_error $? "conditional \"JSON\" was never defined.
9378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9380 if test -z "${NVIDIA_TRUE}" && test -z "${NVIDIA_FALSE}"; then
9381 as_fn_error $? "conditional \"NVIDIA\" was never defined.
9382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9384 if test -z "${UNITY_TRUE}" && test -z "${UNITY_FALSE}"; then
9385 as_fn_error $? "conditional \"UNITY\" was never defined.
9386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9388 if test -z "${LIBATIADL_TRUE}" && test -z "${LIBATIADL_FALSE}"; then
9389 as_fn_error $? "conditional \"LIBATIADL\" was never defined.
9390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9392 if test -z "${LIBMICROHTTPD_TRUE}" && test -z "${LIBMICROHTTPD_FALSE}"; then
9393 as_fn_error $? "conditional \"LIBMICROHTTPD\" was never defined.
9394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9396 if test -z "${GTOP_TRUE}" && test -z "${GTOP_FALSE}"; then
9397 as_fn_error $? "conditional \"GTOP\" was never defined.
9398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9400 if test -z "${ASCIIDOC_TRUE}" && test -z "${ASCIIDOC_FALSE}"; then
9401 as_fn_error $? "conditional \"ASCIIDOC\" was never defined.
9402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9404 if test -z "${CPPCHECK_TRUE}" && test -z "${CPPCHECK_FALSE}"; then
9405 as_fn_error $? "conditional \"CPPCHECK\" was never defined.
9406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9409 : "${CONFIG_STATUS=./config.status}"
9411 ac_clean_files_save=$ac_clean_files
9412 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9414 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9416 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9418 # Generated by $as_me.
9419 # Run this file to recreate the current configuration.
9420 # Compiler output produced by configure, useful for debugging
9421 # configure, is in config.log if it exists.
9427 SHELL=\${CONFIG_SHELL-$SHELL}
9430 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9431 ## -------------------- ##
9432 ## M4sh Initialization. ##
9433 ## -------------------- ##
9435 # Be more Bourne compatible
9436 DUALCASE=1; export DUALCASE # for MKS sh
9437 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9440 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9441 # is contrary to our usage. Disable this feature.
9442 alias -g '${1+"$@"}'='"$@"'
9443 setopt NO_GLOB_SUBST
9445 case `(set -o) 2>/dev/null` in #(
9457 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9458 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9460 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9461 # Prefer a ksh shell builtin over an external printf program on Solaris,
9462 # but without wasting forks for bash or zsh.
9463 if test -z "$BASH_VERSION$ZSH_VERSION" \
9464 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9465 as_echo='print -r --'
9466 as_echo_n='print -rn --'
9467 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9468 as_echo='printf %s\n'
9469 as_echo_n='printf %s'
9471 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9472 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9473 as_echo_n='/usr/ucb/echo -n'
9475 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9476 as_echo_n_body='eval
9480 expr "X$arg" : "X\\(.*\\)$as_nl";
9481 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9483 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9485 export as_echo_n_body
9486 as_echo_n='sh -c $as_echo_n_body as_echo'
9489 as_echo='sh -c $as_echo_body as_echo'
9492 # The user is always right.
9493 if test "${PATH_SEPARATOR+set}" != set; then
9495 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9496 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9503 # We need space, tab and new line, in precisely that order. Quoting is
9504 # there to prevent editors from complaining about space-tab.
9505 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9506 # splitting by setting IFS to empty value.)
9509 # Find who we are. Look in the path if we contain no directory separator.
9512 *[\\/]* ) as_myself=$0 ;;
9513 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517 test -z "$as_dir" && as_dir=.
9518 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9524 # We did not find ourselves, most probably we were run as `sh COMMAND'
9525 # in which case we are not to be found in the path.
9526 if test "x$as_myself" = x; then
9529 if test ! -f "$as_myself"; then
9530 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9534 # Unset variables that we do not need and which cause bugs (e.g. in
9535 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9536 # suppresses any "Segmentation fault" message there. '((' could
9537 # trigger a bug in pdksh 5.2.14.
9538 for as_var in BASH_ENV ENV MAIL MAILPATH
9539 do eval test x\${$as_var+set} = xset \
9540 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9553 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9556 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9557 # ----------------------------------------
9558 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9559 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9560 # script with STATUS, using 1 if that was 0.
9563 as_status=$1; test $as_status -eq 0 && as_status=1
9565 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9566 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9568 $as_echo "$as_me: error: $2" >&2
9569 as_fn_exit $as_status
9573 # as_fn_set_status STATUS
9574 # -----------------------
9575 # Set $? to STATUS, without forking.
9579 } # as_fn_set_status
9583 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9593 # Portably unset VAR.
9596 { eval $1=; unset $1;}
9598 as_unset=as_fn_unset
9599 # as_fn_append VAR VALUE
9600 # ----------------------
9601 # Append the text in VALUE to the end of the definition contained in VAR. Take
9602 # advantage of any shell optimizations that allow amortized linear growth over
9603 # repeated appends, instead of the typical quadratic growth present in naive
9605 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9606 eval 'as_fn_append ()
9617 # as_fn_arith ARG...
9618 # ------------------
9619 # Perform arithmetic evaluation on the ARGs, and store the result in the
9620 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9621 # must be portable across $(()) and expr.
9622 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9623 eval 'as_fn_arith ()
9630 as_val=`expr "$@" || test $? -eq 1`
9635 if expr a : '\(a\)' >/dev/null 2>&1 &&
9636 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9642 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9643 as_basename=basename
9648 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9654 as_me=`$as_basename -- "$0" ||
9655 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9656 X"$0" : 'X\(//\)$' \| \
9657 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9659 sed '/^.*\/\([^/][^/]*\)\/*$/{
9673 # Avoid depending upon Character Ranges.
9674 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9675 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9676 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9677 as_cr_digits='0123456789'
9678 as_cr_alnum=$as_cr_Letters$as_cr_digits
9680 ECHO_C= ECHO_N= ECHO_T=
9681 case `echo -n x` in #(((((
9683 case `echo 'xy\c'` in
9684 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9686 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9693 rm -f conf$$ conf$$.exe conf$$.file
9694 if test -d conf$$.dir; then
9695 rm -f conf$$.dir/conf$$.file
9698 mkdir conf$$.dir 2>/dev/null
9700 if (echo >conf$$.file) 2>/dev/null; then
9701 if ln -s conf$$.file conf$$ 2>/dev/null; then
9703 # ... but there are two gotchas:
9704 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9705 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9706 # In both cases, we have to default to `cp -pR'.
9707 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9709 elif ln conf$$.file conf$$ 2>/dev/null; then
9717 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9718 rmdir conf$$.dir 2>/dev/null
9723 # Create "$as_dir" as a directory, including parents if necessary.
9728 -*) as_dir=./$as_dir;;
9730 test -d "$as_dir" || eval $as_mkdir_p || {
9734 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9735 *) as_qdir=$as_dir;;
9737 as_dirs="'$as_qdir' $as_dirs"
9738 as_dir=`$as_dirname -- "$as_dir" ||
9739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9740 X"$as_dir" : 'X\(//\)[^/]' \| \
9741 X"$as_dir" : 'X\(//\)$' \| \
9742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9743 $as_echo X"$as_dir" |
9744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9761 test -d "$as_dir" && break
9763 test -z "$as_dirs" || eval "mkdir $as_dirs"
9764 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9768 if mkdir -p . 2>/dev/null; then
9769 as_mkdir_p='mkdir -p "$as_dir"'
9771 test -d ./-p && rmdir ./-p
9776 # as_fn_executable_p FILE
9777 # -----------------------
9778 # Test if FILE is an executable regular file.
9779 as_fn_executable_p ()
9781 test -f "$1" && test -x "$1"
9782 } # as_fn_executable_p
9784 as_executable_p=as_fn_executable_p
9786 # Sed expression to map a string onto a valid CPP name.
9787 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9789 # Sed expression to map a string onto a valid variable name.
9790 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9794 ## ----------------------------------- ##
9795 ## Main body of $CONFIG_STATUS script. ##
9796 ## ----------------------------------- ##
9798 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9801 # Save the log message, to keep $0 and so on meaningful, and to
9802 # report actual input values of CONFIG_FILES etc. instead of their
9803 # values after options handling.
9805 This file was extended by psensor $as_me 1.1.5, which was
9806 generated by GNU Autoconf 2.69. Invocation command line was
9808 CONFIG_FILES = $CONFIG_FILES
9809 CONFIG_HEADERS = $CONFIG_HEADERS
9810 CONFIG_LINKS = $CONFIG_LINKS
9811 CONFIG_COMMANDS = $CONFIG_COMMANDS
9814 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9819 case $ac_config_files in *"
9820 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9823 case $ac_config_headers in *"
9824 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9829 # Files that config.status was made for.
9830 config_files="$ac_config_files"
9831 config_headers="$ac_config_headers"
9832 config_commands="$ac_config_commands"
9836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9838 \`$as_me' instantiates files and other configuration actions
9839 from templates according to the current configuration. Unless the files
9840 and actions are specified as TAGs, all are instantiated by default.
9842 Usage: $0 [OPTION]... [TAG]...
9844 -h, --help print this help, then exit
9845 -V, --version print version number and configuration settings, then exit
9846 --config print configuration, then exit
9847 -q, --quiet, --silent
9848 do not print progress messages
9849 -d, --debug don't remove temporary files
9850 --recheck update $as_me by reconfiguring in the same conditions
9851 --file=FILE[:TEMPLATE]
9852 instantiate the configuration file FILE
9853 --header=FILE[:TEMPLATE]
9854 instantiate the configuration header FILE
9856 Configuration files:
9859 Configuration headers:
9862 Configuration commands:
9865 Report bugs to <jeanfi@gmail.com>.
9866 psensor home page: <http://wpitchoune.net/psensor>."
9869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9870 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9872 psensor config.status 1.1.5
9873 configured by $0, generated by GNU Autoconf 2.69,
9874 with options \\"\$ac_cs_config\\"
9876 Copyright (C) 2012 Free Software Foundation, Inc.
9877 This config.status script is free software; the Free Software Foundation
9878 gives unlimited permission to copy, distribute and modify it."
9885 test -n "\$AWK" || AWK=awk
9888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9889 # The default lists apply if the user does not specify any file.
9895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9900 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9912 # Handling of the options.
9913 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9915 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9916 $as_echo "$ac_cs_version"; exit ;;
9917 --config | --confi | --conf | --con | --co | --c )
9918 $as_echo "$ac_cs_config"; exit ;;
9919 --debug | --debu | --deb | --de | --d | -d )
9921 --file | --fil | --fi | --f )
9924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9925 '') as_fn_error $? "missing file argument" ;;
9927 as_fn_append CONFIG_FILES " '$ac_optarg'"
9928 ac_need_defaults=false;;
9929 --header | --heade | --head | --hea )
9932 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9934 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9935 ac_need_defaults=false;;
9937 # Conflict between --help and --header
9938 as_fn_error $? "ambiguous option: \`$1'
9939 Try \`$0 --help' for more information.";;
9940 --help | --hel | -h )
9941 $as_echo "$ac_cs_usage"; exit ;;
9942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9943 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9947 -*) as_fn_error $? "unrecognized option: \`$1'
9948 Try \`$0 --help' for more information." ;;
9950 *) as_fn_append ac_config_targets " $1"
9951 ac_need_defaults=false ;;
9957 ac_configure_extra_args=
9959 if $ac_cs_silent; then
9961 ac_configure_extra_args="$ac_configure_extra_args --silent"
9965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9966 if \$ac_cs_recheck; then
9967 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9969 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9970 CONFIG_SHELL='$SHELL'
9976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9980 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9981 ## Running $as_me. ##
9987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9991 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9992 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9993 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9994 # from automake < 1.5.
9995 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9996 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9997 LINGUAS="${LINGUAS-%UNSET%}"
10002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10004 # Handling of arguments.
10005 for ac_config_target in $ac_config_targets
10007 case $ac_config_target in
10008 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10009 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10010 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
10011 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10012 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10013 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10014 "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
10015 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
10016 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
10017 "icons/hicolor/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/scalable/Makefile" ;;
10018 "icons/hicolor/14x14/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/14x14/Makefile" ;;
10019 "icons/hicolor/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/16x16/Makefile" ;;
10020 "icons/hicolor/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/22x22/Makefile" ;;
10021 "icons/hicolor/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/24x24/Makefile" ;;
10022 "icons/hicolor/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/32x32/Makefile" ;;
10023 "icons/hicolor/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/48x48/Makefile" ;;
10024 "icons/hicolor/64x64/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/64x64/Makefile" ;;
10025 "icons/ubuntu-mono-dark/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/status/22/Makefile" ;;
10026 "icons/ubuntu-mono-light/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-light/status/22/Makefile" ;;
10027 "icons/ubuntu-mono-dark/apps/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/apps/22/Makefile" ;;
10028 "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
10029 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10030 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
10032 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10037 # If the user did not use the arguments to specify the items to instantiate,
10038 # then the envvar interface is used. Set only those that are not.
10039 # We use the long form for the default assignment because of an extremely
10040 # bizarre bug on SunOS 4.1.3.
10041 if $ac_need_defaults; then
10042 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10043 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10044 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10047 # Have a temporary directory for convenience. Make it in the build tree
10048 # simply because there is no reason against having it here, and in addition,
10049 # creating and moving files from /tmp can sometimes cause problems.
10050 # Hook for its removal unless debugging.
10051 # Note that there is a small window in which the directory will not be cleaned:
10052 # after its creation but before its name has been assigned to `$tmp'.
10056 trap 'exit_status=$?
10057 : "${ac_tmp:=$tmp}"
10058 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10060 trap 'as_fn_exit 1' 1 2 13 15
10062 # Create a (secure) tmp directory for tmp files.
10065 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10069 tmp=./conf$$-$RANDOM
10070 (umask 077 && mkdir "$tmp")
10071 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10074 # Set up the scripts for CONFIG_FILES section.
10075 # No need to generate them if there are no CONFIG_FILES.
10076 # This happens for instance with `./config.status config.h'.
10077 if test -n "$CONFIG_FILES"; then
10080 ac_cr=`echo X | tr X '\015'`
10081 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10082 # But we know of no other shell where ac_cr would be empty at this
10083 # point, so we can use a bashism as a fallback.
10084 if test "x$ac_cr" = x; then
10085 eval ac_cr=\$\'\\r\'
10087 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10088 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10091 ac_cs_awk_cr=$ac_cr
10094 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10099 echo "cat >conf$$subs.awk <<_ACEOF" &&
10100 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10102 } >conf$$subs.sh ||
10103 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10104 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10106 for ac_last_try in false false false false false :; do
10107 . ./conf$$subs.sh ||
10108 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10110 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10111 if test $ac_delim_n = $ac_delim_num; then
10113 elif $ac_last_try; then
10114 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10116 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10119 rm -f conf$$subs.sh
10121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10122 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10126 s/^/S["/; s/!.*/"]=/
10136 s/\(.\{148\}\)..*/\1/
10138 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10143 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10150 s/\(.\{148\}\)..*/\1/
10152 s/["\\]/\\&/g; s/^/"/; s/$/"/
10156 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10161 ' <conf$$subs.awk | sed '
10166 ' >>$CONFIG_STATUS || ac_write_fail=1
10167 rm -f conf$$subs.awk
10168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10170 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10171 for (key in S) S_is_set[key] = 1
10177 nfields = split(line, field, "@")
10179 len = length(field[1])
10180 for (i = 2; i < nfields; i++) {
10182 keylen = length(key)
10183 if (S_is_set[key]) {
10185 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10186 len += length(value) + length(field[++i])
10197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10198 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10199 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10202 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10203 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10206 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10207 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10208 # trailing colons and then remove the whole line if VPATH becomes empty
10209 # (actually we leave an empty line to preserve line numbers).
10210 if test "x$srcdir" = x.; then
10211 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10230 fi # test -n "$CONFIG_FILES"
10232 # Set up the scripts for CONFIG_HEADERS section.
10233 # No need to generate them if there are no CONFIG_HEADERS.
10234 # This happens for instance with `./config.status Makefile'.
10235 if test -n "$CONFIG_HEADERS"; then
10236 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10240 # Transform confdefs.h into an awk script `defines.awk', embedded as
10241 # here-document in config.status, that substitutes the proper values into
10242 # config.h.in to produce config.h.
10244 # Create a delimiter string that does not exist in confdefs.h, to ease
10245 # handling of long lines.
10247 for ac_last_try in false false :; do
10248 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10249 if test -z "$ac_tt"; then
10251 elif $ac_last_try; then
10252 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10254 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10258 # For the awk script, D is an array of macro values keyed by name,
10259 # likewise P contains macro parameters if any. Preserve backslash
10260 # newline sequences.
10262 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10264 s/.\{148\}/&'"$ac_delim"'/g
10267 s/^[ ]*#[ ]*define[ ][ ]*/ /
10274 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10276 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10280 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10281 D["\1"]=" \3\\\\\\n"\\/p
10283 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10288 s/.\{148\}/&'"$ac_delim"'/g
10293 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10296 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10298 ' <confdefs.h | sed '
10299 s/'"$ac_delim"'/"\\\
10300 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10303 for (key in D) D_is_set[key] = 1
10306 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10308 split(line, arg, " ")
10309 if (arg[1] == "#") {
10313 defundef = substr(arg[1], 2)
10316 split(mac1, mac2, "(") #)
10318 prefix = substr(line, 1, index(line, defundef) - 1)
10319 if (D_is_set[macro]) {
10320 # Preserve the white space surrounding the "#".
10321 print prefix "define", macro P[macro] D[macro]
10324 # Replace #undef with comments. This is necessary, for example,
10325 # in the case of _POSIX_SOURCE, which is predefined and required
10326 # on some systems where configure will not decide to define it.
10327 if (defundef == "undef") {
10328 print "/*", prefix defundef, macro, "*/"
10336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10337 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10338 fi # test -n "$CONFIG_HEADERS"
10341 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10346 :[FHLC]) ac_mode=$ac_tag; continue;;
10348 case $ac_mode$ac_tag in
10350 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10351 :[FH]-) ac_tag=-:-;;
10352 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10369 -) ac_f="$ac_tmp/stdin";;
10370 *) # Look for the file first in the build tree, then in the source tree
10371 # (if the path is not absolute). The absolute path cannot be DOS-style,
10372 # because $ac_f cannot contain `:'.
10376 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10378 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10380 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10381 as_fn_append ac_file_inputs " '$ac_f'"
10384 # Let's still pretend it is `configure' which instantiates (i.e., don't
10385 # use $as_me), people would be surprised to read:
10386 # /* config.h. Generated by config.status. */
10387 configure_input='Generated from '`
10388 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10390 if test x"$ac_file" != x-; then
10391 configure_input="$ac_file. $configure_input"
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10393 $as_echo "$as_me: creating $ac_file" >&6;}
10395 # Neutralize special characters interpreted by sed in replacement strings.
10396 case $configure_input in #(
10397 *\&* | *\|* | *\\* )
10398 ac_sed_conf_input=`$as_echo "$configure_input" |
10399 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10400 *) ac_sed_conf_input=$configure_input;;
10404 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10405 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10410 ac_dir=`$as_dirname -- "$ac_file" ||
10411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10412 X"$ac_file" : 'X\(//\)[^/]' \| \
10413 X"$ac_file" : 'X\(//\)$' \| \
10414 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10415 $as_echo X"$ac_file" |
10416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10420 /^X\(\/\/\)[^/].*/{
10433 as_dir="$ac_dir"; as_fn_mkdir_p
10437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10440 # A ".." for each directory in $ac_dir_suffix.
10441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10442 case $ac_top_builddir_sub in
10443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10447 ac_abs_top_builddir=$ac_pwd
10448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10449 # for backward compatibility:
10450 ac_top_builddir=$ac_top_build_prefix
10453 .) # We are building in place.
10455 ac_top_srcdir=$ac_top_builddir_sub
10456 ac_abs_top_srcdir=$ac_pwd ;;
10457 [\\/]* | ?:[\\/]* ) # Absolute name.
10458 ac_srcdir=$srcdir$ac_dir_suffix;
10459 ac_top_srcdir=$srcdir
10460 ac_abs_top_srcdir=$srcdir ;;
10461 *) # Relative name.
10462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10463 ac_top_srcdir=$ac_top_build_prefix$srcdir
10464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10476 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10477 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10479 ac_MKDIR_P=$MKDIR_P
10481 [\\/$]* | ?:[\\/]* ) ;;
10482 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10487 # If the template does not know about datarootdir, expand it.
10488 # FIXME: This hack should be removed a few years after 2.60.
10489 ac_datarootdir_hack=; ac_datarootdir_seen=
10500 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10501 *datarootdir*) ac_datarootdir_seen=yes;;
10502 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10504 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10507 ac_datarootdir_hack='
10508 s&@datadir@&$datadir&g
10509 s&@docdir@&$docdir&g
10510 s&@infodir@&$infodir&g
10511 s&@localedir@&$localedir&g
10512 s&@mandir@&$mandir&g
10513 s&\\\${datarootdir}&$datarootdir&g' ;;
10517 # Neutralize VPATH when `$srcdir' = `.'.
10518 # Shell code in configure.ac might set extrasub.
10519 # FIXME: do we really want to maintain this feature?
10520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10521 ac_sed_extra="$ac_vpsub
10524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10527 s|@configure_input@|$ac_sed_conf_input|;t t
10528 s&@top_builddir@&$ac_top_builddir_sub&;t t
10529 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10530 s&@srcdir@&$ac_srcdir&;t t
10531 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10532 s&@top_srcdir@&$ac_top_srcdir&;t t
10533 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10534 s&@builddir@&$ac_builddir&;t t
10535 s&@abs_builddir@&$ac_abs_builddir&;t t
10536 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10537 s&@INSTALL@&$ac_INSTALL&;t t
10538 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10539 $ac_datarootdir_hack
10541 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10542 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10544 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10545 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10546 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10547 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10549 which seems to be undefined. Please make sure it is defined" >&5
10550 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10551 which seems to be undefined. Please make sure it is defined" >&2;}
10553 rm -f "$ac_tmp/stdin"
10555 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10556 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10558 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10564 if test x"$ac_file" != x-; then
10566 $as_echo "/* $configure_input */" \
10567 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10568 } >"$ac_tmp/config.h" \
10569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10570 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10572 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10575 mv "$ac_tmp/config.h" "$ac_file" \
10576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10579 $as_echo "/* $configure_input */" \
10580 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10581 || as_fn_error $? "could not create -" "$LINENO" 5
10583 # Compute "$ac_file"'s index in $config_headers.
10586 for _am_header in $config_headers :; do
10587 case $_am_header in
10588 $_am_arg | $_am_arg:* )
10591 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10594 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10595 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10596 X"$_am_arg" : 'X\(//\)[^/]' \| \
10597 X"$_am_arg" : 'X\(//\)$' \| \
10598 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10599 $as_echo X"$_am_arg" |
10600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10604 /^X\(\/\/\)[^/].*/{
10616 s/.*/./; q'`/stamp-h$_am_stamp_count
10619 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10620 $as_echo "$as_me: executing $ac_file commands" >&6;}
10625 case $ac_file$ac_mode in
10626 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10627 # Older Autoconf quotes --file arguments for eval, but not when files
10628 # are listed without --file. Let's play safe and only enable the eval
10629 # if we detect the quoting.
10630 case $CONFIG_FILES in
10631 *\'*) eval set x "$CONFIG_FILES" ;;
10632 *) set x $CONFIG_FILES ;;
10637 # Strip MF so we end up with the name of the file.
10638 mf=`echo "$mf" | sed -e 's/:.*$//'`
10639 # Check whether this is an Automake generated Makefile or not.
10640 # We used to match only the files named 'Makefile.in', but
10641 # some people rename them; so instead we look at the file content.
10642 # Grep'ing the first line is not enough: some people post-process
10643 # each Makefile.in and add a new line on top of each file to say so.
10644 # Grep'ing the whole file is not good either: AIX grep has a line
10645 # limit of 2048, but all sed's we know have understand at least 4000.
10646 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10647 dirpart=`$as_dirname -- "$mf" ||
10648 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10649 X"$mf" : 'X\(//\)[^/]' \| \
10650 X"$mf" : 'X\(//\)$' \| \
10651 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10657 /^X\(\/\/\)[^/].*/{
10673 # Extract the definition of DEPDIR, am__include, and am__quote
10674 # from the Makefile without running 'make'.
10675 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10676 test -z "$DEPDIR" && continue
10677 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10678 test -z "$am__include" && continue
10679 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10680 # Find all dependency output files, they are included files with
10681 # $(DEPDIR) in their names. We invoke sed twice because it is the
10682 # simplest approach to changing $(DEPDIR) to its actual value in the
10684 for file in `sed -n "
10685 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10686 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
10687 # Make sure the directory exists.
10688 test -f "$dirpart/$file" && continue
10689 fdir=`$as_dirname -- "$file" ||
10690 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10691 X"$file" : 'X\(//\)[^/]' \| \
10692 X"$file" : 'X\(//\)$' \| \
10693 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10694 $as_echo X"$file" |
10695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10699 /^X\(\/\/\)[^/].*/{
10712 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10713 # echo "creating $dirpart/$file"
10714 echo '# dummy' > "$dirpart/$file"
10719 "po-directories":C)
10720 for ac_file in $CONFIG_FILES; do
10721 # Support "outfile[:infile[:infile...]]"
10723 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10725 # PO directories have a Makefile.in generated from Makefile.in.in.
10726 case "$ac_file" in */Makefile.in)
10727 # Adjust a relative srcdir.
10728 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10729 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
10730 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10731 # In autoconf-2.13 it is called $ac_given_srcdir.
10732 # In autoconf-2.50 it is called $srcdir.
10733 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10734 case "$ac_given_srcdir" in
10735 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10736 /*) top_srcdir="$ac_given_srcdir" ;;
10737 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10739 # Treat a directory as a PO directory if and only if it has a
10740 # POTFILES.in file. This allows packages to have multiple PO
10741 # directories under different names or in different locations.
10742 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10743 rm -f "$ac_dir/POTFILES"
10744 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10745 gt_tab=`printf '\t'`
10746 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10747 POMAKEFILEDEPS="POTFILES.in"
10748 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10749 # on $ac_dir but don't depend on user-specified configuration
10751 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10752 # The LINGUAS file contains the set of available languages.
10753 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10754 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10756 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10757 # Hide the ALL_LINGUAS assignment from automake < 1.5.
10758 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10759 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10761 # The set of available languages was given in configure.in.
10762 # Hide the ALL_LINGUAS assignment from automake < 1.5.
10763 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10766 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10767 # Compute UPDATEPOFILES
10768 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10769 # Compute DUMMYPOFILES
10770 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10772 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10773 case "$ac_given_srcdir" in
10775 *) srcdirpre='$(srcdir)/' ;;
10781 for lang in $ALL_LINGUAS; do
10782 POFILES="$POFILES $srcdirpre$lang.po"
10783 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10784 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10785 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10787 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10788 # environment variable.
10790 if test -n "$ALL_LINGUAS"; then
10791 for presentlang in $ALL_LINGUAS; do
10793 if test "%UNSET%" != "$LINGUAS"; then
10794 desiredlanguages="$LINGUAS"
10796 desiredlanguages="$ALL_LINGUAS"
10798 for desiredlang in $desiredlanguages; do
10799 # Use the presentlang catalog if desiredlang is
10800 # a. equal to presentlang, or
10801 # b. a variant of presentlang (because in this case,
10802 # presentlang can be used as a fallback for messages
10803 # which are not translated in the desiredlang catalog).
10804 case "$desiredlang" in
10805 "$presentlang"*) useit=yes;;
10808 if test $useit = yes; then
10809 INST_LINGUAS="$INST_LINGUAS $presentlang"
10814 if test -n "$INST_LINGUAS"; then
10815 for lang in $INST_LINGUAS; do
10816 CATALOGS="$CATALOGS $lang.gmo"
10819 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10820 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"
10821 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10822 if test -f "$f"; then
10824 *.orig | *.bak | *~) ;;
10825 *) cat "$f" >> "$ac_dir/Makefile" ;;
10840 ac_clean_files=$ac_clean_files_save
10842 test $ac_write_fail = 0 ||
10843 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10846 # configure is writing to config.log, and then calls config.status.
10847 # config.status does its own redirection, appending to config.log.
10848 # Unfortunately, on DOS this fails, as config.log is still kept open
10849 # by configure, so config.status won't be able to write to it; its
10850 # output is simply discarded. So we exec the FD to /dev/null,
10851 # effectively closing config.log, so it can be properly (re)opened and
10852 # appended to by config.status. When coming back to configure, we
10853 # need to make the FD available again.
10854 if test "$no_create" != yes; then
10856 ac_config_status_args=
10857 test "$silent" = yes &&
10858 ac_config_status_args="$ac_config_status_args --quiet"
10860 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10862 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10863 # would make configure fail if this is the last instruction.
10864 $ac_cs_success || as_fn_exit 1
10866 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10868 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}