2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for psensor 1.1.1.
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.1'
584 PACKAGE_STRING='psensor 1.1.1'
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
696 GSETTINGS_DISABLE_SCHEMAS_COMPILE
757 INSTALL_STRIP_PROGRAM
799 program_transform_name
812 enable_option_checking
814 enable_dependency_tracking
822 enable_schemas_compile
826 ac_precious_vars='build_alias
863 # Initialize some variables set by options.
865 ac_init_version=false
866 ac_unrecognized_opts=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
877 program_transform_name=s,x,x,
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
923 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 # Accept the important Cygnus configure options, so we can diagnose typos.
930 case $ac_dashdash$ac_option in
934 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939 -build | --build | --buil | --bui | --bu)
940 ac_prev=build_alias ;;
941 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942 build_alias=$ac_optarg ;;
944 -cache-file | --cache-file | --cache-fil | --cache-fi \
945 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946 ac_prev=cache_file ;;
947 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949 cache_file=$ac_optarg ;;
952 cache_file=config.cache ;;
954 -datadir | --datadir | --datadi | --datad)
956 -datadir=* | --datadir=* | --datadi=* | --datad=*)
957 datadir=$ac_optarg ;;
959 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960 | --dataroo | --dataro | --datar)
961 ac_prev=datarootdir ;;
962 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964 datarootdir=$ac_optarg ;;
966 -disable-* | --disable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
980 eval enable_$ac_useropt=no ;;
982 -docdir | --docdir | --docdi | --doc | --do)
984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 -enable-* | --enable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1001 "enable_$ac_useropt"
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1006 eval enable_$ac_useropt=\$ac_optarg ;;
1008 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010 | --exec | --exe | --ex)
1011 ac_prev=exec_prefix ;;
1012 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014 | --exec=* | --exe=* | --ex=*)
1015 exec_prefix=$ac_optarg ;;
1017 -gas | --gas | --ga | --g)
1018 # Obsolete; use --with-gas.
1021 -help | --help | --hel | --he | -h)
1022 ac_init_help=long ;;
1023 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024 ac_init_help=recursive ;;
1025 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026 ac_init_help=short ;;
1028 -host | --host | --hos | --ho)
1029 ac_prev=host_alias ;;
1030 -host=* | --host=* | --hos=* | --ho=*)
1031 host_alias=$ac_optarg ;;
1033 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 htmldir=$ac_optarg ;;
1039 -includedir | --includedir | --includedi | --included | --include \
1040 | --includ | --inclu | --incl | --inc)
1041 ac_prev=includedir ;;
1042 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043 | --includ=* | --inclu=* | --incl=* | --inc=*)
1044 includedir=$ac_optarg ;;
1046 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049 infodir=$ac_optarg ;;
1051 -libdir | --libdir | --libdi | --libd)
1053 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054 libdir=$ac_optarg ;;
1056 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057 | --libexe | --libex | --libe)
1058 ac_prev=libexecdir ;;
1059 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060 | --libexe=* | --libex=* | --libe=*)
1061 libexecdir=$ac_optarg ;;
1063 -localedir | --localedir | --localedi | --localed | --locale)
1064 ac_prev=localedir ;;
1065 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066 localedir=$ac_optarg ;;
1068 -localstatedir | --localstatedir | --localstatedi | --localstated \
1069 | --localstate | --localstat | --localsta | --localst | --locals)
1070 ac_prev=localstatedir ;;
1071 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073 localstatedir=$ac_optarg ;;
1075 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078 mandir=$ac_optarg ;;
1080 -nfp | --nfp | --nf)
1081 # Obsolete; use --without-fp.
1084 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085 | --no-cr | --no-c | -n)
1088 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094 | --oldin | --oldi | --old | --ol | --o)
1095 ac_prev=oldincludedir ;;
1096 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099 oldincludedir=$ac_optarg ;;
1101 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104 prefix=$ac_optarg ;;
1106 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107 | --program-pre | --program-pr | --program-p)
1108 ac_prev=program_prefix ;;
1109 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111 program_prefix=$ac_optarg ;;
1113 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114 | --program-suf | --program-su | --program-s)
1115 ac_prev=program_suffix ;;
1116 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118 program_suffix=$ac_optarg ;;
1120 -program-transform-name | --program-transform-name \
1121 | --program-transform-nam | --program-transform-na \
1122 | --program-transform-n | --program-transform- \
1123 | --program-transform | --program-transfor \
1124 | --program-transfo | --program-transf \
1125 | --program-trans | --program-tran \
1126 | --progr-tra | --program-tr | --program-t)
1127 ac_prev=program_transform_name ;;
1128 -program-transform-name=* | --program-transform-name=* \
1129 | --program-transform-nam=* | --program-transform-na=* \
1130 | --program-transform-n=* | --program-transform-=* \
1131 | --program-transform=* | --program-transfor=* \
1132 | --program-transfo=* | --program-transf=* \
1133 | --program-trans=* | --program-tran=* \
1134 | --progr-tra=* | --program-tr=* | --program-t=*)
1135 program_transform_name=$ac_optarg ;;
1137 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140 pdfdir=$ac_optarg ;;
1142 -psdir | --psdir | --psdi | --psd | --ps)
1144 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148 | -silent | --silent | --silen | --sile | --sil)
1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 sbindir=$ac_optarg ;;
1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159 | --sharedst | --shareds | --shared | --share | --shar \
1161 ac_prev=sharedstatedir ;;
1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 sharedstatedir=$ac_optarg ;;
1168 -site | --site | --sit)
1170 -site=* | --site=* | --sit=*)
1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176 srcdir=$ac_optarg ;;
1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179 | --syscon | --sysco | --sysc | --sys | --sy)
1180 ac_prev=sysconfdir ;;
1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183 sysconfdir=$ac_optarg ;;
1185 -target | --target | --targe | --targ | --tar | --ta | --t)
1186 ac_prev=target_alias ;;
1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188 target_alias=$ac_optarg ;;
1190 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 -version | --version | --versio | --versi | --vers | -V)
1194 ac_init_version=: ;;
1197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1210 eval with_$ac_useropt=\$ac_optarg ;;
1212 -without-* | --without-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1226 eval with_$ac_useropt=no ;;
1229 # Obsolete; use --with-x.
1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233 | --x-incl | --x-inc | --x-in | --x-i)
1234 ac_prev=x_includes ;;
1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237 x_includes=$ac_optarg ;;
1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241 ac_prev=x_libraries ;;
1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244 x_libraries=$ac_optarg ;;
1246 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247 Try \`$0 --help' for more information"
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 case $ac_envvar in #(
1254 '' | [0-9]* | *[!_$as_cr_alnum]* )
1255 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257 eval $ac_envvar=\$ac_optarg
1258 export $ac_envvar ;;
1261 # FIXME: should be removed in autoconf 3.0.
1262 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1271 if test -n "$ac_prev"; then
1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273 as_fn_error $? "missing argument to $ac_option"
1276 if test -n "$ac_unrecognized_opts"; then
1277 case $enable_option_checking in
1279 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284 # Check all directory arguments for consistency.
1285 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286 datadir sysconfdir sharedstatedir localstatedir includedir \
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288 libdir localedir mandir
1290 eval ac_val=\$$ac_var
1291 # Remove trailing slashes.
1294 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295 eval $ac_var=\$ac_val;;
1297 # Be sure to have absolute directory names.
1299 [\\/$]* | ?:[\\/]* ) continue;;
1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1310 target=$target_alias
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314 if test "x$build_alias" = x; then
1315 cross_compiling=maybe
1316 elif test "x$build_alias" != "x$host_alias"; then
1322 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324 test "$silent" = yes && exec 6>/dev/null
1327 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328 ac_ls_di=`ls -di .` &&
1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330 as_fn_error $? "working directory cannot be determined"
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 as_fn_error $? "pwd does not report name of working directory"
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337 ac_srcdir_defaulted=yes
1338 # Try the directory containing this script, then the parent directory.
1339 ac_confdir=`$as_dirname -- "$as_myself" ||
1340 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341 X"$as_myself" : 'X\(//\)[^/]' \| \
1342 X"$as_myself" : 'X\(//\)$' \| \
1343 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1344 $as_echo X"$as_myself" |
1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1367 ac_srcdir_defaulted=no
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1377 # When building in place, set srcdir=.
1378 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381 # Remove unnecessary trailing slashes from srcdir.
1382 # Double slashes in file names in object file debugging info
1383 # mess up M-x gdb in Emacs.
1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 for ac_var in $ac_precious_vars; do
1388 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_env_${ac_var}_value=\$${ac_var}
1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 # Report the --help message.
1397 if test "$ac_init_help" = "long"; then
1398 # Omit some internal or obsolete options to make the list less imposing.
1399 # This message is too long to be a string in the A/UX 3.1 sh.
1401 \`configure' configures psensor 1.1.1 to adapt to many kinds of systems.
1403 Usage: $0 [OPTION]... [VAR=VALUE]...
1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406 VAR=VALUE. See below for descriptions of some of the useful variables.
1408 Defaults for the options are specified in brackets.
1411 -h, --help display this help and exit
1412 --help=short display options specific to this package
1413 --help=recursive display the short help of all the included packages
1414 -V, --version display version information and exit
1415 -q, --quiet, --silent do not print \`checking ...' messages
1416 --cache-file=FILE cache test results in FILE [disabled]
1417 -C, --config-cache alias for \`--cache-file=config.cache'
1418 -n, --no-create do not create output files
1419 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421 Installation directories:
1422 --prefix=PREFIX install architecture-independent files in PREFIX
1423 [$ac_default_prefix]
1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1427 By default, \`make install' will install all the files in
1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430 for instance \`--prefix=\$HOME'.
1432 For better control, use the options below.
1434 Fine tuning of the installation directories:
1435 --bindir=DIR user executables [EPREFIX/bin]
1436 --sbindir=DIR system admin executables [EPREFIX/sbin]
1437 --libexecdir=DIR program executables [EPREFIX/libexec]
1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1441 --libdir=DIR object code libraries [EPREFIX/lib]
1442 --includedir=DIR C header files [PREFIX/include]
1443 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1446 --infodir=DIR info documentation [DATAROOTDIR/info]
1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1448 --mandir=DIR man documentation [DATAROOTDIR/man]
1449 --docdir=DIR documentation root [DATAROOTDIR/doc/psensor]
1450 --htmldir=DIR html documentation [DOCDIR]
1451 --dvidir=DIR dvi documentation [DOCDIR]
1452 --pdfdir=DIR pdf documentation [DOCDIR]
1453 --psdir=DIR ps documentation [DOCDIR]
1459 --program-prefix=PREFIX prepend PREFIX to installed program names
1460 --program-suffix=SUFFIX append SUFFIX to installed program names
1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1464 --x-includes=DIR X include files are in DIR
1465 --x-libraries=DIR X library files are in DIR
1468 --build=BUILD configure for building on BUILD [guessed]
1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1473 if test -n "$ac_init_help"; then
1474 case $ac_init_help in
1475 short | recursive ) echo "Configuration of psensor 1.1.1:";;
1480 --disable-option-checking ignore unrecognized --enable/--with options
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --enable-silent-rules less verbose build output (undo: "make V=1")
1484 --disable-silent-rules verbose build output (undo: "make V=0")
1485 --enable-dependency-tracking
1486 do not reject slow dependency extractors
1487 --disable-dependency-tracking
1488 speeds up one-time build
1489 --disable-largefile omit support for large files
1490 --disable-nls do not use Native Language Support
1491 --disable-rpath do not hardcode runtime library paths
1492 --disable-schemas-compile
1493 Disable regeneration of gschemas.compiled on install
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-x use the X Window System
1499 --with-gnu-ld assume the C compiler uses GNU ld default=no
1500 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1501 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1502 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1503 --without-libintl-prefix don't search for libintl in includedir and libdir
1504 --with-libatiadl=DIR use libatiadlxx in DIR
1505 --with-gtop=yes|no use gtop
1507 Some influential environment variables:
1508 CC C compiler command
1509 CFLAGS C compiler flags
1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1511 nonstandard directory <lib dir>
1512 LIBS libraries to pass to the linker, e.g. -l<library>
1513 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1514 you have headers in a nonstandard directory <include dir>
1515 XMKMF Path to xmkmf, Makefile generator for X Window System
1517 PKG_CONFIG path to pkg-config utility
1519 directories to add to pkg-config's search path
1521 path overriding pkg-config's built-in search path
1522 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1523 X11_LIBS linker flags for X11, overriding pkg-config
1524 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1525 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1526 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1527 GTK_LIBS linker flags for GTK, overriding pkg-config
1529 C compiler flags for ATASMART, overriding pkg-config
1531 linker flags for ATASMART, overriding pkg-config
1533 C compiler flags for LIBNOTIFY, overriding pkg-config
1535 linker flags for LIBNOTIFY, overriding pkg-config
1537 C compiler flags for APPINDICATOR, overriding pkg-config
1539 linker flags for APPINDICATOR, overriding pkg-config
1540 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1541 CURL_LIBS linker flags for CURL, overriding pkg-config
1542 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1543 JSON_LIBS linker flags for JSON, overriding pkg-config
1545 C compiler flags for UNITY, overriding pkg-config
1546 UNITY_LIBS linker flags for UNITY, overriding pkg-config
1547 LIBMICROHTTPD_CFLAGS
1548 C compiler flags for LIBMICROHTTPD, overriding pkg-config
1550 linker flags for LIBMICROHTTPD, overriding pkg-config
1551 GTOP_CFLAGS C compiler flags for GTOP, overriding pkg-config
1552 GTOP_LIBS linker flags for GTOP, overriding pkg-config
1554 Use these variables to override the choices made by `configure' or to help
1555 it to find libraries and programs with nonstandard names/locations.
1557 Report bugs to <jeanfi@gmail.com>.
1558 psensor home page: <http://wpitchoune.net/psensor>.
1563 if test "$ac_init_help" = "recursive"; then
1564 # If there are subdirs, report their specific --help.
1565 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566 test -d "$ac_dir" ||
1567 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1575 # A ".." for each directory in $ac_dir_suffix.
1576 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1577 case $ac_top_builddir_sub in
1578 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1582 ac_abs_top_builddir=$ac_pwd
1583 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1584 # for backward compatibility:
1585 ac_top_builddir=$ac_top_build_prefix
1588 .) # We are building in place.
1590 ac_top_srcdir=$ac_top_builddir_sub
1591 ac_abs_top_srcdir=$ac_pwd ;;
1592 [\\/]* | ?:[\\/]* ) # Absolute name.
1593 ac_srcdir=$srcdir$ac_dir_suffix;
1594 ac_top_srcdir=$srcdir
1595 ac_abs_top_srcdir=$srcdir ;;
1597 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1598 ac_top_srcdir=$ac_top_build_prefix$srcdir
1599 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603 cd "$ac_dir" || { ac_status=$?; continue; }
1604 # Check for guested configure.
1605 if test -f "$ac_srcdir/configure.gnu"; then
1607 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1608 elif test -f "$ac_srcdir/configure"; then
1610 $SHELL "$ac_srcdir/configure" --help=recursive
1612 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614 cd "$ac_pwd" || { ac_status=$?; break; }
1618 test -n "$ac_init_help" && exit $ac_status
1619 if $ac_init_version; then
1621 psensor configure 1.1.1
1622 generated by GNU Autoconf 2.69
1624 Copyright (C) 2012 Free Software Foundation, Inc.
1625 This configure script is free software; the Free Software Foundation
1626 gives unlimited permission to copy, distribute and modify it.
1631 ## ------------------------ ##
1632 ## Autoconf initialization. ##
1633 ## ------------------------ ##
1635 # ac_fn_c_try_compile LINENO
1636 # --------------------------
1637 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_c_try_compile ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext
1642 if { { ac_try="$ac_compile"
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_compile") 2>conftest.err
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest.$ac_objext; then :
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1671 } # ac_fn_c_try_compile
1673 # ac_fn_c_try_cpp LINENO
1674 # ----------------------
1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } > conftest.i && {
1695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1710 # ac_fn_c_try_link LINENO
1711 # -----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded.
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext conftest$ac_exeext
1717 if { { ac_try="$ac_link"
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>conftest.err
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest$ac_exeext && {
1736 test "$cross_compiling" = yes ||
1737 test -x conftest$ac_exeext
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1746 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1747 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1748 # interfere with the next link command; also delete a directory that is
1749 # left behind by Apple's compiler. We do this before executing the actions.
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1754 } # ac_fn_c_try_link
1756 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1759 # the include files in INCLUDES and setting the cache variable VAR
1761 ac_fn_c_check_header_mongrel ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if eval \${$3+:} false; then :
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if eval \${$3+:} false; then :
1768 $as_echo_n "(cached) " >&6
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1774 # Is the header compilable?
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1776 $as_echo_n "checking $2 usability... " >&6; }
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1782 if ac_fn_c_try_compile "$LINENO"; then :
1783 ac_header_compiler=yes
1785 ac_header_compiler=no
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1789 $as_echo "$ac_header_compiler" >&6; }
1791 # Is the header present?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1793 $as_echo_n "checking $2 presence... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1798 if ac_fn_c_try_cpp "$LINENO"; then :
1799 ac_header_preproc=yes
1801 ac_header_preproc=no
1803 rm -f conftest.err conftest.i conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1805 $as_echo "$ac_header_preproc" >&6; }
1807 # So? What about this header?
1808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1811 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1813 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1817 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1819 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1821 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1823 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826 ( $as_echo "## ------------------------------- ##
1827 ## Report this to jeanfi@gmail.com ##
1828 ## ------------------------------- ##"
1829 ) | sed "s/^/$as_me: WARNING: /" >&2
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1837 eval "$3=\$ac_header_compiler"
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 } # ac_fn_c_check_header_mongrel
1847 # ac_fn_c_try_run LINENO
1848 # ----------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1850 # that executables *can* be run.
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { { ac_try="$ac_link"
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>&5
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1865 { { case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_try") 2>&5
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; }; }; then :
1877 $as_echo "$as_me: program exited with status $ac_status" >&5
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1881 ac_retval=$ac_status
1883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status $ac_retval
1889 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1890 # -------------------------------------------------------
1891 # Tests whether HEADER exists and can be compiled using the include files in
1892 # INCLUDES, setting the cache variable VAR accordingly.
1893 ac_fn_c_check_header_compile ()
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if eval \${$3+:} false; then :
1899 $as_echo_n "(cached) " >&6
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1906 if ac_fn_c_try_compile "$LINENO"; then :
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918 } # ac_fn_c_check_header_compile
1920 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1921 # -------------------------------------------
1922 # Tests whether TYPE exists after having included INCLUDES, setting cache
1923 # variable VAR accordingly.
1924 ac_fn_c_check_type ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval \${$3+:} false; then :
1930 $as_echo_n "(cached) " >&6
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1958 if ac_fn_c_try_compile "$LINENO"; then :
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 } # ac_fn_c_check_type
1974 # ac_fn_c_check_func LINENO FUNC VAR
1975 # ----------------------------------
1976 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1977 ac_fn_c_check_func ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1989 #define $2 innocuous_$2
1991 /* System header to define __stub macros and hopefully few prototypes,
1992 which can conflict with char $2 (); below.
1993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1994 <limits.h> exists even on freestanding compilers. */
1997 # include <limits.h>
1999 # include <assert.h>
2004 /* Override any GCC internal prototype to avoid an error.
2005 Use char because int might match the return type of a GCC
2006 builtin and then its argument prototype would still apply. */
2011 /* The GNU C library defines this for functions which it implements
2012 to always fail with ENOSYS. Some functions are actually named
2013 something starting with __ and the normal name is an alias. */
2014 #if defined __stub_$2 || defined __stub___$2
2026 if ac_fn_c_try_link "$LINENO"; then :
2031 rm -f core conftest.err conftest.$ac_objext \
2032 conftest$ac_exeext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 } # ac_fn_c_check_func
2040 cat >config.log <<_ACEOF
2041 This file contains any messages produced by compilers while
2042 running configure, to aid debugging if configure makes a mistake.
2044 It was created by psensor $as_me 1.1.1, which was
2045 generated by GNU Autoconf 2.69. Invocation command line was
2057 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2058 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2059 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2060 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2061 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2063 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2064 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2066 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2067 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2068 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2069 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2070 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2071 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2072 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 test -z "$as_dir" && as_dir=.
2081 $as_echo "PATH: $as_dir"
2097 # Keep a trace of the command line.
2098 # Strip out --no-create and --no-recursion so they do not pile up.
2099 # Strip out --silent because we don't want to record it for future runs.
2100 # Also quote any args containing shell meta-characters.
2101 # Make two passes to allow for proper duplicate-argument suppression.
2105 ac_must_keep_next=false
2111 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2113 | -silent | --silent | --silen | --sile | --sil)
2116 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2119 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2121 as_fn_append ac_configure_args1 " '$ac_arg'"
2122 if test $ac_must_keep_next = true; then
2123 ac_must_keep_next=false # Got value, back to normal.
2126 *=* | --config-cache | -C | -disable-* | --disable-* \
2127 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2128 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2129 | -with-* | --with-* | -without-* | --without-* | --x)
2130 case "$ac_configure_args0 " in
2131 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2134 -* ) ac_must_keep_next=true ;;
2137 as_fn_append ac_configure_args " '$ac_arg'"
2142 { ac_configure_args0=; unset ac_configure_args0;}
2143 { ac_configure_args1=; unset ac_configure_args1;}
2145 # When interrupted or exit'd, cleanup temporary files, and complete
2146 # config.log. We remove comments because anyway the quotes in there
2147 # would cause problems or look ugly.
2148 # WARNING: Use '\'' to represent an apostrophe within the trap.
2149 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2150 trap 'exit_status=$?
2151 # Save into config.log some information that might help in debugging.
2155 $as_echo "## ---------------- ##
2156 ## Cache variables. ##
2157 ## ---------------- ##"
2159 # The following way of writing the cache mishandles newlines in values,
2161 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2162 eval ac_val=\$$ac_var
2166 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2167 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2170 _ | IFS | as_nl) ;; #(
2171 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2172 *) { eval $ac_var=; unset $ac_var;} ;;
2177 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2178 *${as_nl}ac_space=\ *)
2180 "s/'\''/'\''\\\\'\'''\''/g;
2181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2184 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2191 $as_echo "## ----------------- ##
2192 ## Output variables. ##
2193 ## ----------------- ##"
2195 for ac_var in $ac_subst_vars
2197 eval ac_val=\$$ac_var
2199 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201 $as_echo "$ac_var='\''$ac_val'\''"
2205 if test -n "$ac_subst_files"; then
2206 $as_echo "## ------------------- ##
2207 ## File substitutions. ##
2208 ## ------------------- ##"
2210 for ac_var in $ac_subst_files
2212 eval ac_val=\$$ac_var
2214 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2216 $as_echo "$ac_var='\''$ac_val'\''"
2221 if test -s confdefs.h; then
2222 $as_echo "## ----------- ##
2229 test "$ac_signal" != 0 &&
2230 $as_echo "$as_me: caught signal $ac_signal"
2231 $as_echo "$as_me: exit $exit_status"
2233 rm -f core *.core core.conftest.* &&
2234 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2237 for ac_signal in 1 2 13 15; do
2238 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2242 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2243 rm -f -r conftest* confdefs.h
2245 $as_echo "/* confdefs.h */" > confdefs.h
2247 # Predefined preprocessor variables.
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_NAME "$PACKAGE_NAME"
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_STRING "$PACKAGE_STRING"
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_URL "$PACKAGE_URL"
2274 # Let the site file select an alternate cache file if it wants to.
2275 # Prefer an explicitly selected file to automatically selected ones.
2278 if test -n "$CONFIG_SITE"; then
2279 # We do not want a PATH search for config.site.
2280 case $CONFIG_SITE in #((
2281 -*) ac_site_file1=./$CONFIG_SITE;;
2282 */*) ac_site_file1=$CONFIG_SITE;;
2283 *) ac_site_file1=./$CONFIG_SITE;;
2285 elif test "x$prefix" != xNONE; then
2286 ac_site_file1=$prefix/share/config.site
2287 ac_site_file2=$prefix/etc/config.site
2289 ac_site_file1=$ac_default_prefix/share/config.site
2290 ac_site_file2=$ac_default_prefix/etc/config.site
2292 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2294 test "x$ac_site_file" = xNONE && continue
2295 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2297 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2298 sed 's/^/| /' "$ac_site_file" >&5
2300 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2302 as_fn_error $? "failed to load site script $ac_site_file
2303 See \`config.log' for more details" "$LINENO" 5; }
2307 if test -r "$cache_file"; then
2308 # Some versions of bash will fail to source /dev/null (special files
2309 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2310 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2312 $as_echo "$as_me: loading cache $cache_file" >&6;}
2314 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2315 *) . "./$cache_file";;
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2320 $as_echo "$as_me: creating cache $cache_file" >&6;}
2324 gt_needs="$gt_needs "
2325 # Check that the precious variables saved in the cache have kept the same
2327 ac_cache_corrupted=false
2328 for ac_var in $ac_precious_vars; do
2329 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2330 eval ac_new_set=\$ac_env_${ac_var}_set
2331 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2332 eval ac_new_val=\$ac_env_${ac_var}_value
2333 case $ac_old_set,$ac_new_set in
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2336 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2337 ac_cache_corrupted=: ;;
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2340 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2341 ac_cache_corrupted=: ;;
2344 if test "x$ac_old_val" != "x$ac_new_val"; then
2345 # differences in whitespace do not lead to failure.
2346 ac_old_val_w=`echo x $ac_old_val`
2347 ac_new_val_w=`echo x $ac_new_val`
2348 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2350 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2351 ac_cache_corrupted=:
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2354 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2355 eval $ac_var=\$ac_old_val
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2358 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2360 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2363 # Pass precious variables to config.status.
2364 if test "$ac_new_set" = set; then
2366 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2367 *) ac_arg=$ac_var=$ac_new_val ;;
2369 case " $ac_configure_args " in
2370 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2371 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2375 if $ac_cache_corrupted; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2379 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2380 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2382 ## -------------------- ##
2383 ## Main body of script. ##
2384 ## -------------------- ##
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394 am__api_version='1.14'
2397 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2398 if test -f "$ac_dir/install-sh"; then
2400 ac_install_sh="$ac_aux_dir/install-sh -c"
2402 elif test -f "$ac_dir/install.sh"; then
2404 ac_install_sh="$ac_aux_dir/install.sh -c"
2406 elif test -f "$ac_dir/shtool"; then
2408 ac_install_sh="$ac_aux_dir/shtool install -c"
2412 if test -z "$ac_aux_dir"; then
2413 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2416 # These three variables are undocumented and unsupported,
2417 # and are intended to be withdrawn in a future Autoconf release.
2418 # They can cause serious problems if a builder's source tree is in a directory
2419 # whose full name contains unusual characters.
2420 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2421 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2422 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2425 # Find a good install program. We prefer a C program (faster),
2426 # so one script is as good as another. But avoid the broken or
2427 # incompatible versions:
2428 # SysV /etc/install, /usr/sbin/install
2429 # SunOS /usr/etc/install
2430 # IRIX /sbin/install
2432 # AmigaOS /C/install, which installs bootblocks on floppy discs
2433 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2434 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2435 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2436 # OS/2's system install, which has a completely different semantic
2437 # ./install, which can be erroneously created by make from ./install.sh.
2438 # Reject install programs that cannot install multiple files.
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2440 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2441 if test -z "$INSTALL"; then
2442 if ${ac_cv_path_install+:} false; then :
2443 $as_echo_n "(cached) " >&6
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 # Account for people who put trailing slashes in PATH elements.
2451 case $as_dir/ in #((
2452 ./ | .// | /[cC]/* | \
2453 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2454 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2457 # OSF1 and SCO ODT 3.0 have their own names for install.
2458 # Don't use installbsd from OSF since it installs stuff as root
2460 for ac_prog in ginstall scoinst install; do
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2463 if test $ac_prog = install &&
2464 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465 # AIX install. It has an incompatible calling convention.
2467 elif test $ac_prog = install &&
2468 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2469 # program-specific install script used by HP pwplus--don't use.
2472 rm -rf conftest.one conftest.two conftest.dir
2473 echo one > conftest.one
2474 echo two > conftest.two
2476 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2477 test -s conftest.one && test -s conftest.two &&
2478 test -s conftest.dir/conftest.one &&
2479 test -s conftest.dir/conftest.two
2481 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2494 rm -rf conftest.one conftest.two conftest.dir
2497 if test "${ac_cv_path_install+set}" = set; then
2498 INSTALL=$ac_cv_path_install
2500 # As a last resort, use the slow shell script. Don't cache a
2501 # value for INSTALL within a source directory, because that will
2502 # break other packages using the cache if that directory is
2503 # removed, or if the value is a relative name.
2504 INSTALL=$ac_install_sh
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2508 $as_echo "$INSTALL" >&6; }
2510 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2511 # It thinks the first close brace ends the variable substitution.
2512 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2514 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2516 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2519 $as_echo_n "checking whether build environment is sane... " >&6; }
2520 # Reject unsafe characters in $srcdir or the absolute working directory
2521 # name. Accept space and tab only in the latter.
2525 *[\\\"\#\$\&\'\`$am_lf]*)
2526 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2529 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2530 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2533 # Do 'set' in a subshell so we don't clobber the current shell's
2534 # arguments. Must try -L first in case configure is actually a
2535 # symlink; some systems play weird games with the mod time of symlinks
2536 # (eg FreeBSD returns the mod time of the symlink's containing
2540 for am_try in 1 2; do
2541 echo "timestamp, slept: $am_has_slept" > conftest.file
2542 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2543 if test "$*" = "X"; then
2545 set X `ls -t "$srcdir/configure" conftest.file`
2547 if test "$*" != "X $srcdir/configure conftest.file" \
2548 && test "$*" != "X conftest.file $srcdir/configure"; then
2550 # If neither matched, then we have a broken ls. This can happen
2551 # if, for instance, CONFIG_SHELL is bash and it inherits a
2552 # broken ls alias from the environment. This has actually
2553 # happened. Such a system could not be considered "sane".
2554 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2555 alias in your environment" "$LINENO" 5
2557 if test "$2" = conftest.file || test $am_try -eq 2; then
2564 test "$2" = conftest.file
2570 as_fn_error $? "newly created file is older than distributed files!
2571 Check your system clock" "$LINENO" 5
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2574 $as_echo "yes" >&6; }
2575 # If we didn't sleep, we still need to ensure time stamps of config.status and
2576 # generated files are strictly newer.
2578 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2585 test "$program_prefix" != NONE &&
2586 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2587 # Use a double $ so make ignores it.
2588 test "$program_suffix" != NONE &&
2589 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2590 # Double any \ or $.
2591 # By default was `s,x,x', remove it if useless.
2592 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2593 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2595 # expand $ac_aux_dir to an absolute path
2596 am_aux_dir=`cd $ac_aux_dir && pwd`
2598 if test x"${MISSING+set}" != xset; then
2601 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2603 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2606 # Use eval to expand $SHELL
2607 if eval "$MISSING --is-lightweight"; then
2608 am_missing_run="$MISSING "
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2612 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2615 if test x"${install_sh}" != xset; then
2618 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2620 install_sh="\${SHELL} $am_aux_dir/install-sh"
2624 # Installed binaries are usually stripped using 'strip' when the user
2625 # run "make install-strip". However 'strip' might not be the right
2626 # tool to use in cross-compilation environments, therefore Automake
2627 # will honor the 'STRIP' environment variable to overrule this program.
2628 if test "$cross_compiling" != no; then
2629 if test -n "$ac_tool_prefix"; then
2630 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2631 set dummy ${ac_tool_prefix}strip; ac_word=$2
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if ${ac_cv_prog_STRIP+:} false; then :
2635 $as_echo_n "(cached) " >&6
2637 if test -n "$STRIP"; then
2638 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 STRIP=$ac_cv_prog_STRIP
2658 if test -n "$STRIP"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2660 $as_echo "$STRIP" >&6; }
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2668 if test -z "$ac_cv_prog_STRIP"; then
2670 # Extract the first word of "strip", so it can be a program name with args.
2671 set dummy strip; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2675 $as_echo_n "(cached) " >&6
2677 if test -n "$ac_ct_STRIP"; then
2678 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687 ac_cv_prog_ac_ct_STRIP="strip"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2698 if test -n "$ac_ct_STRIP"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2700 $as_echo "$ac_ct_STRIP" >&6; }
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2706 if test "x$ac_ct_STRIP" = x; then
2709 case $cross_compiling:$ac_tool_warned in
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2713 ac_tool_warned=yes ;;
2718 STRIP="$ac_cv_prog_STRIP"
2722 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2725 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2726 if test -z "$MKDIR_P"; then
2727 if ${ac_cv_path_mkdir+:} false; then :
2728 $as_echo_n "(cached) " >&6
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2734 test -z "$as_dir" && as_dir=.
2735 for ac_prog in mkdir gmkdir; do
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2738 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2739 'mkdir (GNU coreutils) '* | \
2740 'mkdir (coreutils) '* | \
2741 'mkdir (fileutils) '4.1*)
2742 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2752 test -d ./--version && rmdir ./--version
2753 if test "${ac_cv_path_mkdir+set}" = set; then
2754 MKDIR_P="$ac_cv_path_mkdir -p"
2756 # As a last resort, use the slow shell script. Don't cache a
2757 # value for MKDIR_P within a source directory, because that will
2758 # break other packages using the cache if that directory is
2759 # removed, or if the value is a relative name.
2760 MKDIR_P="$ac_install_sh -d"
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2764 $as_echo "$MKDIR_P" >&6; }
2766 for ac_prog in gawk mawk nawk awk
2768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2769 set dummy $ac_prog; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_AWK+:} false; then :
2773 $as_echo_n "(cached) " >&6
2775 if test -n "$AWK"; then
2776 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785 ac_cv_prog_AWK="$ac_prog"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 if test -n "$AWK"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2798 $as_echo "$AWK" >&6; }
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2805 test -n "$AWK" && break
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2809 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2811 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2812 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2813 $as_echo_n "(cached) " >&6
2815 cat >conftest.make <<\_ACEOF
2818 @echo '@@@%%%=$(MAKE)=@@@%%%'
2820 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2821 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2823 eval ac_cv_prog_make_${ac_make}_set=yes;;
2825 eval ac_cv_prog_make_${ac_make}_set=no;;
2829 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2831 $as_echo "yes" >&6; }
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2836 SET_MAKE="MAKE=${MAKE-make}"
2839 rm -rf .tst 2>/dev/null
2840 mkdir .tst 2>/dev/null
2841 if test -d .tst; then
2846 rmdir .tst 2>/dev/null
2848 # Check whether --enable-silent-rules was given.
2849 if test "${enable_silent_rules+set}" = set; then :
2850 enableval=$enable_silent_rules;
2853 case $enable_silent_rules in # (((
2854 yes) AM_DEFAULT_VERBOSITY=0;;
2855 no) AM_DEFAULT_VERBOSITY=1;;
2856 *) AM_DEFAULT_VERBOSITY=1;;
2858 am_make=${MAKE-make}
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2860 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2861 if ${am_cv_make_support_nested_variables+:} false; then :
2862 $as_echo_n "(cached) " >&6
2864 if $as_echo 'TRUE=$(BAR$(V))
2870 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2871 am_cv_make_support_nested_variables=yes
2873 am_cv_make_support_nested_variables=no
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2877 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2878 if test $am_cv_make_support_nested_variables = yes; then
2880 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2882 AM_V=$AM_DEFAULT_VERBOSITY
2883 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2887 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2888 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2889 # is not polluted with repeated "-I."
2890 am__isrc=' -I$(srcdir)'
2891 # test to see if srcdir already configured
2892 if test -f $srcdir/config.status; then
2893 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2897 # test whether we have cygpath
2898 if test -z "$CYGPATH_W"; then
2899 if (cygpath --version) >/dev/null 2>/dev/null; then
2900 CYGPATH_W='cygpath -w'
2907 # Define the identity of the package.
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE "$PACKAGE"
2917 cat >>confdefs.h <<_ACEOF
2918 #define VERSION "$VERSION"
2921 # Some tools Automake needs.
2923 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2926 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2929 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2932 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2935 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2937 # For better backward compatibility. To be removed once Automake 1.9.x
2938 # dies out for good. For more background, see:
2939 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2940 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2941 mkdir_p='$(MKDIR_P)'
2943 # We need awk for the "check" target. The system "awk" is bad on
2945 # Always define AMTAR for backward compatibility. Yes, it's still used
2946 # in the wild :-( We should find a proper way to deprecate it ...
2950 # We'll loop over all known methods to create a tar archive until one works.
2951 _am_tools='gnutar pax cpio none'
2953 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2960 # POSIX will say in a future version that running "rm -f" with no argument
2961 # is OK; and we want to be able to make that assumption in our Makefile
2962 # recipes. So use an aggressive probe to check that the usage we want is
2963 # actually supported "in the wild" to an acceptable degree.
2964 # See automake bug#10828.
2965 # To make any issue more visible, cause the running configure to be aborted
2966 # by default if the 'rm' program in use doesn't match our expectations; the
2967 # user can still override this though.
2968 if rm -f && rm -fr && rm -rf; then : OK; else
2972 Your 'rm' program seems unable to run without file operands specified
2973 on the command line, even when the '-f' option is present. This is contrary
2974 to the behaviour of most rm programs out there, and not conforming with
2975 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2977 Please tell bug-automake@gnu.org about your system, including the value
2978 of your $PATH and any error possibly output before this message. This
2979 can help us improve future automake versions.
2982 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2983 echo 'Configuration will proceed anyway, since you have set the' >&2
2984 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2988 Aborting the configuration process, to ensure you take notice of the issue.
2990 You can download and install GNU coreutils to get an 'rm' implementation
2991 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2993 If you want to complete the configuration process using your problematic
2994 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2995 to "yes", and re-run configure.
2998 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3003 ac_config_headers="$ac_config_headers config.h"
3009 # Checks for programs.
3011 ac_cpp='$CPP $CPPFLAGS'
3012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3015 if test -n "$ac_tool_prefix"; then
3016 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3017 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if ${ac_cv_prog_CC+:} false; then :
3021 $as_echo_n "(cached) " >&6
3023 if test -n "$CC"; then
3024 ac_cv_prog_CC="$CC" # Let the user override the test.
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 if test -n "$CC"; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3046 $as_echo "$CC" >&6; }
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3054 if test -z "$ac_cv_prog_CC"; then
3056 # Extract the first word of "gcc", so it can be a program name with args.
3057 set dummy gcc; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3061 $as_echo_n "(cached) " >&6
3063 if test -n "$ac_ct_CC"; then
3064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073 ac_cv_prog_ac_ct_CC="gcc"
3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3084 if test -n "$ac_ct_CC"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3086 $as_echo "$ac_ct_CC" >&6; }
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3092 if test "x$ac_ct_CC" = x; then
3095 case $cross_compiling:$ac_tool_warned in
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3099 ac_tool_warned=yes ;;
3107 if test -z "$CC"; then
3108 if test -n "$ac_tool_prefix"; then
3109 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3110 set dummy ${ac_tool_prefix}cc; ac_word=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if ${ac_cv_prog_CC+:} false; then :
3114 $as_echo_n "(cached) " >&6
3116 if test -n "$CC"; then
3117 ac_cv_prog_CC="$CC" # Let the user override the test.
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_CC="${ac_tool_prefix}cc"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 if test -n "$CC"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3139 $as_echo "$CC" >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3148 if test -z "$CC"; then
3149 # Extract the first word of "cc", so it can be a program name with args.
3150 set dummy cc; ac_word=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if ${ac_cv_prog_CC+:} false; then :
3154 $as_echo_n "(cached) " >&6
3156 if test -n "$CC"; then
3157 ac_cv_prog_CC="$CC" # Let the user override the test.
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3168 ac_prog_rejected=yes
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 if test $ac_prog_rejected = yes; then
3180 # We found a bogon in the path, so make sure we never use it.
3181 set dummy $ac_cv_prog_CC
3183 if test $# != 0; then
3184 # We chose a different compiler from the bogus one.
3185 # However, it has the same basename, so the bogon will be chosen
3186 # first if we set CC to just the basename; use the full file name.
3188 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3194 if test -n "$CC"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3196 $as_echo "$CC" >&6; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3204 if test -z "$CC"; then
3205 if test -n "$ac_tool_prefix"; then
3206 for ac_prog in cl.exe
3208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3209 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_prog_CC+:} false; then :
3213 $as_echo_n "(cached) " >&6
3215 if test -n "$CC"; then
3216 ac_cv_prog_CC="$CC" # Let the user override the test.
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 if test -n "$CC"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3238 $as_echo "$CC" >&6; }
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3245 test -n "$CC" && break
3248 if test -z "$CC"; then
3250 for ac_prog in cl.exe
3252 # Extract the first word of "$ac_prog", so it can be a program name with args.
3253 set dummy $ac_prog; ac_word=$2
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 $as_echo_n "checking for $ac_word... " >&6; }
3256 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3257 $as_echo_n "(cached) " >&6
3259 if test -n "$ac_ct_CC"; then
3260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 test -z "$as_dir" && as_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269 ac_cv_prog_ac_ct_CC="$ac_prog"
3270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3280 if test -n "$ac_ct_CC"; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3282 $as_echo "$ac_ct_CC" >&6; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3289 test -n "$ac_ct_CC" && break
3292 if test "x$ac_ct_CC" = x; then
3295 case $cross_compiling:$ac_tool_warned in
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3299 ac_tool_warned=yes ;;
3308 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310 as_fn_error $? "no acceptable C compiler found in \$PATH
3311 See \`config.log' for more details" "$LINENO" 5; }
3313 # Provide some information about the compiler.
3314 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3317 for ac_option in --version -v -V -qversion; do
3318 { { ac_try="$ac_compiler $ac_option >&5"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3327 if test -s conftest.err; then
3329 ... rest of stderr output deleted ...
3330 10q' conftest.err >conftest.er1
3331 cat conftest.er1 >&5
3333 rm -f conftest.er1 conftest.err
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3349 ac_clean_files_save=$ac_clean_files
3350 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3351 # Try to create an executable without -o first, disregard a.out.
3352 # It will help us diagnose broken compilers, and finding out an intuition
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3355 $as_echo_n "checking whether the C compiler works... " >&6; }
3356 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3358 # The possible output files:
3359 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3362 for ac_file in $ac_files
3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3366 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3371 if { { ac_try="$ac_link_default"
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_link_default") 2>&5
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }; then :
3382 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3383 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3384 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3385 # so that the user can short-circuit this test for compilers unknown to
3387 for ac_file in $ac_files ''
3389 test -f "$ac_file" || continue
3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3394 # We found the default executable, but exeext='' is most
3398 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3400 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3402 # We set ac_cv_exeext here because the later test for it is not
3403 # safe: cross compilers may not add the suffix if given an `-o'
3404 # argument, so we may need to know it at that point already.
3405 # Even if this section looks crufty: it has the advantage of
3412 test "$ac_cv_exeext" = no && ac_cv_exeext=
3417 if test -z "$ac_file"; then :
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3420 $as_echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425 as_fn_error 77 "C compiler cannot create executables
3426 See \`config.log' for more details" "$LINENO" 5; }
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3429 $as_echo "yes" >&6; }
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3432 $as_echo_n "checking for C compiler default output file name... " >&6; }
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3434 $as_echo "$ac_file" >&6; }
3435 ac_exeext=$ac_cv_exeext
3437 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3438 ac_clean_files=$ac_clean_files_save
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3440 $as_echo_n "checking for suffix of executables... " >&6; }
3441 if { { ac_try="$ac_link"
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_link") 2>&5
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }; then :
3452 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3453 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3454 # work properly (i.e., refer to `conftest.exe'), while it won't with
3456 for ac_file in conftest.exe conftest conftest.*; do
3457 test -f "$ac_file" || continue
3459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3460 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3468 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3469 See \`config.log' for more details" "$LINENO" 5; }
3471 rm -f conftest conftest$ac_cv_exeext
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3473 $as_echo "$ac_cv_exeext" >&6; }
3475 rm -f conftest.$ac_ext
3476 EXEEXT=$ac_cv_exeext
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3484 FILE *f = fopen ("conftest.out", "w");
3485 return ferror (f) || fclose (f) != 0;
3491 ac_clean_files="$ac_clean_files conftest.out"
3492 # Check that the compiler produces executables we can run. If not, either
3493 # the compiler is broken, or we cross compile.
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3495 $as_echo_n "checking whether we are cross compiling... " >&6; }
3496 if test "$cross_compiling" != yes; then
3497 { { ac_try="$ac_link"
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503 $as_echo "$ac_try_echo"; } >&5
3504 (eval "$ac_link") 2>&5
3506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507 test $ac_status = 0; }
3508 if { ac_try='./conftest$ac_cv_exeext'
3509 { { case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3514 $as_echo "$ac_try_echo"; } >&5
3515 (eval "$ac_try") 2>&5
3517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3518 test $ac_status = 0; }; }; then
3521 if test "$cross_compiling" = maybe; then
3524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526 as_fn_error $? "cannot run C compiled programs.
3527 If you meant to cross compile, use \`--host'.
3528 See \`config.log' for more details" "$LINENO" 5; }
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3533 $as_echo "$cross_compiling" >&6; }
3535 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3536 ac_clean_files=$ac_clean_files_save
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3538 $as_echo_n "checking for suffix of object files... " >&6; }
3539 if ${ac_cv_objext+:} false; then :
3540 $as_echo_n "(cached) " >&6
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3553 rm -f conftest.o conftest.obj
3554 if { { ac_try="$ac_compile"
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3560 $as_echo "$ac_try_echo"; } >&5
3561 (eval "$ac_compile") 2>&5
3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564 test $ac_status = 0; }; then :
3565 for ac_file in conftest.o conftest.obj conftest.*; do
3566 test -f "$ac_file" || continue;
3568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3569 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3574 $as_echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 as_fn_error $? "cannot compute suffix of object files: cannot compile
3580 See \`config.log' for more details" "$LINENO" 5; }
3582 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3585 $as_echo "$ac_cv_objext" >&6; }
3586 OBJEXT=$ac_cv_objext
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3589 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3590 if ${ac_cv_c_compiler_gnu+:} false; then :
3591 $as_echo_n "(cached) " >&6
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3607 if ac_fn_c_try_compile "$LINENO"; then :
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3617 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3618 if test $ac_compiler_gnu = yes; then
3623 ac_test_CFLAGS=${CFLAGS+set}
3624 ac_save_CFLAGS=$CFLAGS
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3626 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3627 if ${ac_cv_prog_cc_g+:} false; then :
3628 $as_echo_n "(cached) " >&6
3630 ac_save_c_werror_flag=$ac_c_werror_flag
3631 ac_c_werror_flag=yes
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3645 if ac_fn_c_try_compile "$LINENO"; then :
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3660 if ac_fn_c_try_compile "$LINENO"; then :
3663 ac_c_werror_flag=$ac_save_c_werror_flag
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3676 if ac_fn_c_try_compile "$LINENO"; then :
3679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 ac_c_werror_flag=$ac_save_c_werror_flag
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3687 $as_echo "$ac_cv_prog_cc_g" >&6; }
3688 if test "$ac_test_CFLAGS" = set; then
3689 CFLAGS=$ac_save_CFLAGS
3690 elif test $ac_cv_prog_cc_g = yes; then
3691 if test "$GCC" = yes; then
3697 if test "$GCC" = yes; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3704 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3705 if ${ac_cv_prog_cc_c89+:} false; then :
3706 $as_echo_n "(cached) " >&6
3708 ac_cv_prog_cc_c89=no
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3715 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3716 struct buf { int x; };
3717 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3718 static char *e (p, i)
3724 static char *f (char * (*g) (char **, int), char **p, ...)
3729 s = g (p, va_arg (v,int));
3734 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3735 function prototypes and stuff, but not '\xHH' hex character constants.
3736 These don't provoke an error unfortunately, instead are silently treated
3737 as 'x'. The following induces an error, until -std is added to get
3738 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3739 array size at least. It's necessary to write '\x00'==0 to get something
3740 that's true only with -std. */
3741 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3743 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3744 inside strings and character constants. */
3746 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3748 int test (int i, double x);
3749 struct s1 {int (*f) (int a);};
3750 struct s2 {int (*f) (double a);};
3751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3757 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3762 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3763 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3765 CC="$ac_save_CC $ac_arg"
3766 if ac_fn_c_try_compile "$LINENO"; then :
3767 ac_cv_prog_cc_c89=$ac_arg
3769 rm -f core conftest.err conftest.$ac_objext
3770 test "x$ac_cv_prog_cc_c89" != "xno" && break
3772 rm -f conftest.$ac_ext
3777 case "x$ac_cv_prog_cc_c89" in
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3780 $as_echo "none needed" >&6; } ;;
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3783 $as_echo "unsupported" >&6; } ;;
3785 CC="$CC $ac_cv_prog_cc_c89"
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3787 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3789 if test "x$ac_cv_prog_cc_c89" != xno; then :
3794 ac_cpp='$CPP $CPPFLAGS'
3795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800 ac_cpp='$CPP $CPPFLAGS'
3801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3805 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3806 if ${am_cv_prog_cc_c_o+:} false; then :
3807 $as_echo_n "(cached) " >&6
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3820 # Make sure it works both with $CC and with simple cc.
3821 # Following AC_PROG_CC_C_O, we do the test twice because some
3822 # compilers refuse to overwrite an existing .o file with -o,
3823 # though they will create one.
3824 am_cv_prog_cc_c_o=yes
3826 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3827 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } \
3831 && test -f conftest2.$ac_objext; then
3834 am_cv_prog_cc_c_o=no
3838 rm -f core conftest*
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3842 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3843 if test "$am_cv_prog_cc_c_o" != yes; then
3844 # Losing compiler, so override with the script.
3845 # FIXME: It is wrong to rewrite CC.
3846 # But if we don't then we get into trouble of one sort or another.
3847 # A longer-term fix would be to have automake use am__CC in this case,
3848 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3849 CC="$am_aux_dir/compile $CC"
3852 ac_cpp='$CPP $CPPFLAGS'
3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857 DEPDIR="${am__leading_dot}deps"
3859 ac_config_commands="$ac_config_commands depfiles"
3862 am_make=${MAKE-make}
3863 cat > confinc << 'END'
3865 @echo this is the am__doit target
3868 # If we don't find an include directive, just comment out the code.
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3870 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3874 # First try GNU make style include.
3875 echo "include confinc" > confmf
3876 # Ignore all kinds of additional output from 'make'.
3877 case `$am_make -s -f confmf 2> /dev/null` in #(
3878 *the\ am__doit\ target*)
3884 # Now try BSD make style include.
3885 if test "$am__include" = "#"; then
3886 echo '.include "confinc"' > confmf
3887 case `$am_make -s -f confmf 2> /dev/null` in #(
3888 *the\ am__doit\ target*)
3889 am__include=.include
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3898 $as_echo "$_am_result" >&6; }
3899 rm -f confinc confmf
3901 # Check whether --enable-dependency-tracking was given.
3902 if test "${enable_dependency_tracking+set}" = set; then :
3903 enableval=$enable_dependency_tracking;
3906 if test "x$enable_dependency_tracking" != xno; then
3907 am_depcomp="$ac_aux_dir/depcomp"
3911 if test "x$enable_dependency_tracking" != xno; then
3921 depcc="$CC" am_compiler_list=
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3924 $as_echo_n "checking dependency style of $depcc... " >&6; }
3925 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3926 $as_echo_n "(cached) " >&6
3928 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3929 # We make a subdir and do the tests there. Otherwise we can end up
3930 # making bogus files that we don't know about and never remove. For
3931 # instance it was reported that on HP-UX the gcc test will end up
3932 # making a dummy file named 'D' -- because '-MD' means "put the output
3936 # Copy depcomp to subdir because otherwise we won't find it if we're
3937 # using a relative directory.
3938 cp "$am_depcomp" conftest.dir
3940 # We will build objects and dependencies in a subdirectory because
3941 # it helps to detect inapplicable dependency modes. For instance
3942 # both Tru64's cc and ICC support -MD to output dependencies as a
3943 # side effect of compilation, but ICC will put the dependencies in
3944 # the current directory while Tru64 will put them in the object
3948 am_cv_CC_dependencies_compiler_type=none
3949 if test "$am_compiler_list" = ""; then
3950 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3953 case " $depcc " in #(
3954 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3957 for depmode in $am_compiler_list; do
3958 # Setup a source with many dependencies, because some compilers
3959 # like to wrap large dependency lists on column 80 (with \), and
3960 # we should not choose a depcomp mode which is confused by this.
3962 # We need to recreate these files for each test, as the compiler may
3963 # overwrite some of them when testing with obscure command lines.
3964 # This happens at least with the AIX C compiler.
3966 for i in 1 2 3 4 5 6; do
3967 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3968 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3969 # Solaris 10 /bin/sh.
3970 echo '/* dummy */' > sub/conftst$i.h
3972 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3974 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3975 # mode. It turns out that the SunPro C++ compiler does not properly
3976 # handle '-M -o', and we need to detect this. Also, some Intel
3977 # versions had trouble with output in subdirs.
3978 am__obj=sub/conftest.${OBJEXT-o}
3979 am__minus_obj="-o $am__obj"
3982 # This depmode causes a compiler race in universal mode.
3983 test "$am__universal" = false || continue
3986 # After this tag, mechanisms are not by side-effect, so they'll
3987 # only be used when explicitly requested.
3988 if test "x$enable_dependency_tracking" = xyes; then
3994 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3995 # This compiler won't grok '-c -o', but also, the minuso test has
3996 # not run yet. These depmodes are late enough in the game, and
3997 # so weak that their functioning should not be impacted.
3998 am__obj=conftest.${OBJEXT-o}
4003 if depmode=$depmode \
4004 source=sub/conftest.c object=$am__obj \
4005 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4006 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4007 >/dev/null 2>conftest.err &&
4008 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4009 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4010 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4011 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4012 # icc doesn't choke on unknown options, it will just issue warnings
4013 # or remarks (even with -Werror). So we grep stderr for any message
4014 # that says an option was ignored or not supported.
4015 # When given -MP, icc 7.0 and 7.1 complain thusly:
4016 # icc: Command line warning: ignoring option '-M'; no argument required
4017 # The diagnosis changed in icc 8.0:
4018 # icc: Command line remark: option '-MP' not supported
4019 if (grep 'ignoring option' conftest.err ||
4020 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4021 am_cv_CC_dependencies_compiler_type=$depmode
4030 am_cv_CC_dependencies_compiler_type=none
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4035 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4036 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4039 test "x$enable_dependency_tracking" != xno \
4040 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4042 am__fastdepCC_FALSE='#'
4044 am__fastdepCC_TRUE='#'
4045 am__fastdepCC_FALSE=
4052 # Check whether --enable-largefile was given.
4053 if test "${enable_largefile+set}" = set; then :
4054 enableval=$enable_largefile;
4057 if test "$enable_largefile" != no; then
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4060 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4061 if ${ac_cv_sys_largefile_CC+:} false; then :
4062 $as_echo_n "(cached) " >&6
4064 ac_cv_sys_largefile_CC=no
4065 if test "$GCC" != yes; then
4068 # IRIX 6.2 and later do not support large files by default,
4069 # so use the C compiler's -n32 option if that helps.
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4072 #include <sys/types.h>
4073 /* Check that off_t can represent 2**63 - 1 correctly.
4074 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4075 since some C++ compilers masquerading as C compilers
4076 incorrectly reject 9223372036854775807. */
4077 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4078 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4079 && LARGE_OFF_T % 2147483647 == 1)
4089 if ac_fn_c_try_compile "$LINENO"; then :
4092 rm -f core conftest.err conftest.$ac_objext
4094 if ac_fn_c_try_compile "$LINENO"; then :
4095 ac_cv_sys_largefile_CC=' -n32'; break
4097 rm -f core conftest.err conftest.$ac_objext
4101 rm -f conftest.$ac_ext
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4105 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4106 if test "$ac_cv_sys_largefile_CC" != no; then
4107 CC=$CC$ac_cv_sys_largefile_CC
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4111 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4112 if ${ac_cv_sys_file_offset_bits+:} false; then :
4113 $as_echo_n "(cached) " >&6
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4118 #include <sys/types.h>
4119 /* Check that off_t can represent 2**63 - 1 correctly.
4120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4121 since some C++ compilers masquerading as C compilers
4122 incorrectly reject 9223372036854775807. */
4123 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4125 && LARGE_OFF_T % 2147483647 == 1)
4135 if ac_fn_c_try_compile "$LINENO"; then :
4136 ac_cv_sys_file_offset_bits=no; break
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141 #define _FILE_OFFSET_BITS 64
4142 #include <sys/types.h>
4143 /* Check that off_t can represent 2**63 - 1 correctly.
4144 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4145 since some C++ compilers masquerading as C compilers
4146 incorrectly reject 9223372036854775807. */
4147 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4148 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4149 && LARGE_OFF_T % 2147483647 == 1)
4159 if ac_fn_c_try_compile "$LINENO"; then :
4160 ac_cv_sys_file_offset_bits=64; break
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 ac_cv_sys_file_offset_bits=unknown
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4168 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4169 case $ac_cv_sys_file_offset_bits in #(
4172 cat >>confdefs.h <<_ACEOF
4173 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4178 if test $ac_cv_sys_file_offset_bits = unknown; then
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4180 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4181 if ${ac_cv_sys_large_files+:} false; then :
4182 $as_echo_n "(cached) " >&6
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4187 #include <sys/types.h>
4188 /* Check that off_t can represent 2**63 - 1 correctly.
4189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4190 since some C++ compilers masquerading as C compilers
4191 incorrectly reject 9223372036854775807. */
4192 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4194 && LARGE_OFF_T % 2147483647 == 1)
4204 if ac_fn_c_try_compile "$LINENO"; then :
4205 ac_cv_sys_large_files=no; break
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 #define _LARGE_FILES 1
4211 #include <sys/types.h>
4212 /* Check that off_t can represent 2**63 - 1 correctly.
4213 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4214 since some C++ compilers masquerading as C compilers
4215 incorrectly reject 9223372036854775807. */
4216 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4217 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4218 && LARGE_OFF_T % 2147483647 == 1)
4228 if ac_fn_c_try_compile "$LINENO"; then :
4229 ac_cv_sys_large_files=1; break
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 ac_cv_sys_large_files=unknown
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4237 $as_echo "$ac_cv_sys_large_files" >&6; }
4238 case $ac_cv_sys_large_files in #(
4241 cat >>confdefs.h <<_ACEOF
4242 #define _LARGE_FILES $ac_cv_sys_large_files
4254 if test -n "$ac_tool_prefix"; then
4255 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4256 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258 $as_echo_n "checking for $ac_word... " >&6; }
4259 if ${ac_cv_prog_RANLIB+:} false; then :
4260 $as_echo_n "(cached) " >&6
4262 if test -n "$RANLIB"; then
4263 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 RANLIB=$ac_cv_prog_RANLIB
4283 if test -n "$RANLIB"; then
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4285 $as_echo "$RANLIB" >&6; }
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4293 if test -z "$ac_cv_prog_RANLIB"; then
4294 ac_ct_RANLIB=$RANLIB
4295 # Extract the first word of "ranlib", so it can be a program name with args.
4296 set dummy ranlib; ac_word=$2
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298 $as_echo_n "checking for $ac_word... " >&6; }
4299 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4300 $as_echo_n "(cached) " >&6
4302 if test -n "$ac_ct_RANLIB"; then
4303 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312 ac_cv_prog_ac_ct_RANLIB="ranlib"
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4323 if test -n "$ac_ct_RANLIB"; then
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4325 $as_echo "$ac_ct_RANLIB" >&6; }
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 $as_echo "no" >&6; }
4331 if test "x$ac_ct_RANLIB" = x; then
4334 case $cross_compiling:$ac_tool_warned in
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4338 ac_tool_warned=yes ;;
4340 RANLIB=$ac_ct_RANLIB
4343 RANLIB="$ac_cv_prog_RANLIB"
4346 if test -n "$ac_tool_prefix"; then
4347 for ac_prog in ar lib "link -lib"
4349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if ${ac_cv_prog_AR+:} false; then :
4354 $as_echo_n "(cached) " >&6
4356 if test -n "$AR"; then
4357 ac_cv_prog_AR="$AR" # Let the user override the test.
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 if test -n "$AR"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4379 $as_echo "$AR" >&6; }
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4386 test -n "$AR" && break
4389 if test -z "$AR"; then
4391 for ac_prog in ar lib "link -lib"
4393 # Extract the first word of "$ac_prog", so it can be a program name with args.
4394 set dummy $ac_prog; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4398 $as_echo_n "(cached) " >&6
4400 if test -n "$ac_ct_AR"; then
4401 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_ac_ct_AR="$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4421 if test -n "$ac_ct_AR"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4423 $as_echo "$ac_ct_AR" >&6; }
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4430 test -n "$ac_ct_AR" && break
4433 if test "x$ac_ct_AR" = x; then
4436 case $cross_compiling:$ac_tool_warned in
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4440 ac_tool_warned=yes ;;
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4449 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4450 if ${am_cv_ar_interface+:} false; then :
4451 $as_echo_n "(cached) " >&6
4454 ac_cpp='$CPP $CPPFLAGS'
4455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4459 am_cv_ar_interface=ar
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462 int some_variable = 0;
4464 if ac_fn_c_try_compile "$LINENO"; then :
4465 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4467 (eval $am_ar_try) 2>&5
4469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4470 test $ac_status = 0; }
4471 if test "$ac_status" -eq 0; then
4472 am_cv_ar_interface=ar
4474 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4476 (eval $am_ar_try) 2>&5
4478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479 test $ac_status = 0; }
4480 if test "$ac_status" -eq 0; then
4481 am_cv_ar_interface=lib
4483 am_cv_ar_interface=unknown
4486 rm -f conftest.lib libconftest.a
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491 ac_cpp='$CPP $CPPFLAGS'
4492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4498 $as_echo "$am_cv_ar_interface" >&6; }
4500 case $am_cv_ar_interface in
4504 # Microsoft lib, so override with the ar-lib wrapper script.
4505 # FIXME: It is wrong to rewrite AR.
4506 # But if we don't then we get into trouble of one sort or another.
4507 # A longer-term fix would be to have automake use am__AR in this case,
4508 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4510 AR="$am_aux_dir/ar-lib $AR"
4513 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4518 # Checks for header files.
4520 ac_cpp='$CPP $CPPFLAGS'
4521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4525 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4526 # On Suns, sometimes $CPP names a directory.
4527 if test -n "$CPP" && test -d "$CPP"; then
4530 if test -z "$CPP"; then
4531 if ${ac_cv_prog_CPP+:} false; then :
4532 $as_echo_n "(cached) " >&6
4534 # Double quotes because CPP needs to be expanded
4535 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4538 for ac_c_preproc_warn_flag in '' yes
4540 # Use a header file that comes with gcc, so configuring glibc
4541 # with a fresh cross-compiler works.
4542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4543 # <limits.h> exists even on freestanding compilers.
4544 # On the NeXT, cc -E runs the code through the compiler's parser,
4545 # not just through cpp. "Syntax error" is here to catch this case.
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4549 # include <limits.h>
4551 # include <assert.h>
4555 if ac_fn_c_try_cpp "$LINENO"; then :
4558 # Broken: fails on valid input.
4561 rm -f conftest.err conftest.i conftest.$ac_ext
4563 # OK, works on sane cases. Now check whether nonexistent headers
4564 # can be detected and how.
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567 #include <ac_nonexistent.h>
4569 if ac_fn_c_try_cpp "$LINENO"; then :
4570 # Broken: success on invalid input.
4573 # Passes both tests.
4577 rm -f conftest.err conftest.i conftest.$ac_ext
4580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4581 rm -f conftest.i conftest.err conftest.$ac_ext
4582 if $ac_preproc_ok; then :
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4595 $as_echo "$CPP" >&6; }
4597 for ac_c_preproc_warn_flag in '' yes
4599 # Use a header file that comes with gcc, so configuring glibc
4600 # with a fresh cross-compiler works.
4601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4602 # <limits.h> exists even on freestanding compilers.
4603 # On the NeXT, cc -E runs the code through the compiler's parser,
4604 # not just through cpp. "Syntax error" is here to catch this case.
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4608 # include <limits.h>
4610 # include <assert.h>
4614 if ac_fn_c_try_cpp "$LINENO"; then :
4617 # Broken: fails on valid input.
4620 rm -f conftest.err conftest.i conftest.$ac_ext
4622 # OK, works on sane cases. Now check whether nonexistent headers
4623 # can be detected and how.
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626 #include <ac_nonexistent.h>
4628 if ac_fn_c_try_cpp "$LINENO"; then :
4629 # Broken: success on invalid input.
4632 # Passes both tests.
4636 rm -f conftest.err conftest.i conftest.$ac_ext
4639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4640 rm -f conftest.i conftest.err conftest.$ac_ext
4641 if $ac_preproc_ok; then :
4644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4646 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4647 See \`config.log' for more details" "$LINENO" 5; }
4651 ac_cpp='$CPP $CPPFLAGS'
4652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4658 $as_echo_n "checking for X... " >&6; }
4661 # Check whether --with-x was given.
4662 if test "${with_x+set}" = set; then :
4666 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4667 if test "x$with_x" = xno; then
4668 # The user explicitly disabled X.
4671 case $x_includes,$x_libraries in #(
4672 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4673 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4674 $as_echo_n "(cached) " >&6
4676 # One or both of the vars are not set, and there is no cached value.
4677 ac_x_includes=no ac_x_libraries=no
4678 rm -f -r conftest.dir
4679 if mkdir conftest.dir; then
4681 cat >Imakefile <<'_ACEOF'
4683 @echo incroot='${INCROOT}'
4685 @echo usrlibdir='${USRLIBDIR}'
4687 @echo libdir='${LIBDIR}'
4689 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4690 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4691 for ac_var in incroot usrlibdir libdir; do
4692 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4694 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4695 for ac_extension in a so sl dylib la dll; do
4696 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4697 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4698 ac_im_usrlibdir=$ac_im_libdir; break
4701 # Screen out bogus values from the imake configuration. They are
4702 # bogus both because they are the default anyway, and because
4703 # using them would break gcc on systems where it needs fixed includes.
4704 case $ac_im_incroot in
4705 /usr/include) ac_x_includes= ;;
4706 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4708 case $ac_im_usrlibdir in
4709 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4710 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4714 rm -f -r conftest.dir
4717 # Standard set of common directories for X headers.
4718 # Check X11 before X11Rn because it is often a symlink to the current release.
4732 /usr/local/X11/include
4733 /usr/local/X11R7/include
4734 /usr/local/X11R6/include
4735 /usr/local/X11R5/include
4736 /usr/local/X11R4/include
4738 /usr/local/include/X11
4739 /usr/local/include/X11R7
4740 /usr/local/include/X11R6
4741 /usr/local/include/X11R5
4742 /usr/local/include/X11R4
4746 /usr/XFree86/include/X11
4750 /usr/unsupported/include
4752 /usr/local/x11r5/include
4753 /usr/lpp/Xamples/include
4755 /usr/openwin/include
4756 /usr/openwin/share/include'
4758 if test "$ac_x_includes" = no; then
4759 # Guess where to find include files, by looking for Xlib.h.
4760 # First, try using that file with no special directory specified.
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4763 #include <X11/Xlib.h>
4765 if ac_fn_c_try_cpp "$LINENO"; then :
4766 # We can compile using X headers with no special include directory.
4769 for ac_dir in $ac_x_header_dirs; do
4770 if test -r "$ac_dir/X11/Xlib.h"; then
4771 ac_x_includes=$ac_dir
4776 rm -f conftest.err conftest.i conftest.$ac_ext
4777 fi # $ac_x_includes = no
4779 if test "$ac_x_libraries" = no; then
4780 # Check for the libraries.
4781 # See if we find them without any special options.
4782 # Don't add to $LIBS permanently.
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4787 #include <X11/Xlib.h>
4796 if ac_fn_c_try_link "$LINENO"; then :
4798 # We can link X programs with no special library path.
4802 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4804 # Don't even attempt the hair of trying to link an X program!
4805 for ac_extension in a so sl dylib la dll; do
4806 if test -r "$ac_dir/libX11.$ac_extension"; then
4807 ac_x_libraries=$ac_dir
4813 rm -f core conftest.err conftest.$ac_objext \
4814 conftest$ac_exeext conftest.$ac_ext
4815 fi # $ac_x_libraries = no
4817 case $ac_x_includes,$ac_x_libraries in #(
4819 # Didn't find X, or a directory has "'" in its name.
4820 ac_cv_have_x="have_x=no";; #(
4822 # Record where we found X for the cache.
4823 ac_cv_have_x="have_x=yes\
4824 ac_x_includes='$ac_x_includes'\
4825 ac_x_libraries='$ac_x_libraries'"
4831 eval "$ac_cv_have_x"
4834 if test "$have_x" != yes; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4836 $as_echo "$have_x" >&6; }
4839 # If each of the values was on the command line, it overrides each guess.
4840 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4841 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4842 # Update the cache value to reflect the command line values.
4843 ac_cv_have_x="have_x=yes\
4844 ac_x_includes='$x_includes'\
4845 ac_x_libraries='$x_libraries'"
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4847 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4851 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4852 if ${ac_cv_path_GREP+:} false; then :
4853 $as_echo_n "(cached) " >&6
4855 if test -z "$GREP"; then
4856 ac_path_GREP_found=false
4857 # Loop through the user's path and test for each of PROGNAME-LIST
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4862 test -z "$as_dir" && as_dir=.
4863 for ac_prog in grep ggrep; do
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4866 as_fn_executable_p "$ac_path_GREP" || continue
4867 # Check for GNU ac_path_GREP and select it if it is found.
4868 # Check for GNU $ac_path_GREP
4869 case `"$ac_path_GREP" --version 2>&1` in
4871 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4874 $as_echo_n 0123456789 >"conftest.in"
4877 cat "conftest.in" "conftest.in" >"conftest.tmp"
4878 mv "conftest.tmp" "conftest.in"
4879 cp "conftest.in" "conftest.nl"
4880 $as_echo 'GREP' >> "conftest.nl"
4881 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4882 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4883 as_fn_arith $ac_count + 1 && ac_count=$as_val
4884 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4885 # Best one so far, save it but keep looking for a better one
4886 ac_cv_path_GREP="$ac_path_GREP"
4887 ac_path_GREP_max=$ac_count
4889 # 10*(2^10) chars as input seems more than enough
4890 test $ac_count -gt 10 && break
4892 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4895 $ac_path_GREP_found && break 3
4900 if test -z "$ac_cv_path_GREP"; then
4901 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4904 ac_cv_path_GREP=$GREP
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4909 $as_echo "$ac_cv_path_GREP" >&6; }
4910 GREP="$ac_cv_path_GREP"
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4914 $as_echo_n "checking for egrep... " >&6; }
4915 if ${ac_cv_path_EGREP+:} false; then :
4916 $as_echo_n "(cached) " >&6
4918 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4919 then ac_cv_path_EGREP="$GREP -E"
4921 if test -z "$EGREP"; then
4922 ac_path_EGREP_found=false
4923 # Loop through the user's path and test for each of PROGNAME-LIST
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4928 test -z "$as_dir" && as_dir=.
4929 for ac_prog in egrep; do
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4932 as_fn_executable_p "$ac_path_EGREP" || continue
4933 # Check for GNU ac_path_EGREP and select it if it is found.
4934 # Check for GNU $ac_path_EGREP
4935 case `"$ac_path_EGREP" --version 2>&1` in
4937 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4940 $as_echo_n 0123456789 >"conftest.in"
4943 cat "conftest.in" "conftest.in" >"conftest.tmp"
4944 mv "conftest.tmp" "conftest.in"
4945 cp "conftest.in" "conftest.nl"
4946 $as_echo 'EGREP' >> "conftest.nl"
4947 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4949 as_fn_arith $ac_count + 1 && ac_count=$as_val
4950 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4951 # Best one so far, save it but keep looking for a better one
4952 ac_cv_path_EGREP="$ac_path_EGREP"
4953 ac_path_EGREP_max=$ac_count
4955 # 10*(2^10) chars as input seems more than enough
4956 test $ac_count -gt 10 && break
4958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4961 $ac_path_EGREP_found && break 3
4966 if test -z "$ac_cv_path_EGREP"; then
4967 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4970 ac_cv_path_EGREP=$EGREP
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4976 $as_echo "$ac_cv_path_EGREP" >&6; }
4977 EGREP="$ac_cv_path_EGREP"
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4981 $as_echo_n "checking for ANSI C header files... " >&6; }
4982 if ${ac_cv_header_stdc+:} false; then :
4983 $as_echo_n "(cached) " >&6
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
5000 if ac_fn_c_try_compile "$LINENO"; then :
5001 ac_cv_header_stdc=yes
5003 ac_cv_header_stdc=no
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 if test $ac_cv_header_stdc = yes; then
5008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5015 $EGREP "memchr" >/dev/null 2>&1; then :
5018 ac_cv_header_stdc=no
5024 if test $ac_cv_header_stdc = yes; then
5025 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5032 $EGREP "free" >/dev/null 2>&1; then :
5035 ac_cv_header_stdc=no
5041 if test $ac_cv_header_stdc = yes; then
5042 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5043 if test "$cross_compiling" = yes; then :
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5050 #if ((' ' & 0x0FF) == 0x020)
5051 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5052 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5054 # define ISLOWER(c) \
5055 (('a' <= (c) && (c) <= 'i') \
5056 || ('j' <= (c) && (c) <= 'r') \
5057 || ('s' <= (c) && (c) <= 'z'))
5058 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5061 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5066 for (i = 0; i < 256; i++)
5067 if (XOR (islower (i), ISLOWER (i))
5068 || toupper (i) != TOUPPER (i))
5073 if ac_fn_c_try_run "$LINENO"; then :
5076 ac_cv_header_stdc=no
5078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5079 conftest.$ac_objext conftest.beam conftest.$ac_ext
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5085 $as_echo "$ac_cv_header_stdc" >&6; }
5086 if test $ac_cv_header_stdc = yes; then
5088 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5092 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5093 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5094 inttypes.h stdint.h unistd.h
5096 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5097 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5099 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5100 cat >>confdefs.h <<_ACEOF
5101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5109 for ac_header in stdbool.h
5111 ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
5112 if test "x$ac_cv_header_stdbool_h" = xyes; then :
5113 cat >>confdefs.h <<_ACEOF
5114 #define HAVE_STDBOOL_H 1
5122 # Checks for typedefs, structures, and compiler characteristics.
5123 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5124 if test "x$ac_cv_type_size_t" = xyes; then :
5128 cat >>confdefs.h <<_ACEOF
5129 #define size_t unsigned int
5134 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5135 if test "x$ac_cv_type_ssize_t" = xyes; then :
5139 cat >>confdefs.h <<_ACEOF
5146 # Checks for library functions.
5147 for ac_header in stdlib.h
5149 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5150 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5151 cat >>confdefs.h <<_ACEOF
5152 #define HAVE_STDLIB_H 1
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5160 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5161 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
5162 $as_echo_n "(cached) " >&6
5164 if test "$cross_compiling" = yes; then :
5165 ac_cv_func_malloc_0_nonnull=no
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5169 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5170 # include <stdlib.h>
5178 return ! malloc (0);
5183 if ac_fn_c_try_run "$LINENO"; then :
5184 ac_cv_func_malloc_0_nonnull=yes
5186 ac_cv_func_malloc_0_nonnull=no
5188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5189 conftest.$ac_objext conftest.beam conftest.$ac_ext
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5194 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5195 if test $ac_cv_func_malloc_0_nonnull = yes; then :
5197 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5200 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5202 case " $LIBOBJS " in
5203 *" malloc.$ac_objext "* ) ;;
5204 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5209 $as_echo "#define malloc rpl_malloc" >>confdefs.h
5214 for ac_header in stdlib.h
5216 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5217 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5218 cat >>confdefs.h <<_ACEOF
5219 #define HAVE_STDLIB_H 1
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
5227 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
5228 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
5229 $as_echo_n "(cached) " >&6
5231 if test "$cross_compiling" = yes; then :
5232 ac_cv_func_realloc_0_nonnull=no
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5236 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5237 # include <stdlib.h>
5245 return ! realloc (0, 0);
5250 if ac_fn_c_try_run "$LINENO"; then :
5251 ac_cv_func_realloc_0_nonnull=yes
5253 ac_cv_func_realloc_0_nonnull=no
5255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5256 conftest.$ac_objext conftest.beam conftest.$ac_ext
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
5261 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
5262 if test $ac_cv_func_realloc_0_nonnull = yes; then :
5264 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
5267 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
5269 case " $LIBOBJS " in
5270 *" realloc.$ac_objext "* ) ;;
5271 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
5276 $as_echo "#define realloc rpl_realloc" >>confdefs.h
5281 for ac_func in gettimeofday memmove socket strdup strtol
5283 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5284 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5285 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5286 cat >>confdefs.h <<_ACEOF
5287 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5298 [\\/$]* | ?:[\\/]*) ;;
5299 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5304 $as_echo_n "checking whether NLS is requested... " >&6; }
5305 # Check whether --enable-nls was given.
5306 if test "${enable_nls+set}" = set; then :
5307 enableval=$enable_nls; USE_NLS=$enableval
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5313 $as_echo "$USE_NLS" >&6; }
5320 # Prepare PATH_SEPARATOR.
5321 # The user is always right.
5322 if test "${PATH_SEPARATOR+set}" != set; then
5323 echo "#! /bin/sh" >conf$$.sh
5324 echo "exit 0" >>conf$$.sh
5326 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5334 # Find out how to test for executable files. Don't use a zero-byte file,
5335 # as systems may use methods other than mode bits to determine executability.
5336 cat >conf$$.file <<_ASEOF
5340 chmod +x conf$$.file
5341 if test -x conf$$.file >/dev/null 2>&1; then
5342 ac_executable_p="test -x"
5344 ac_executable_p="test -f"
5348 # Extract the first word of "msgfmt", so it can be a program name with args.
5349 set dummy msgfmt; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_path_MSGFMT+:} false; then :
5353 $as_echo_n "(cached) " >&6
5357 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5360 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5361 for ac_dir in $PATH; do
5363 test -z "$ac_dir" && ac_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5366 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5367 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5368 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5369 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5376 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5380 MSGFMT="$ac_cv_path_MSGFMT"
5381 if test "$MSGFMT" != ":"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5383 $as_echo "$MSGFMT" >&6; }
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5389 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5390 set dummy gmsgfmt; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_path_GMSGFMT+:} false; then :
5394 $as_echo_n "(cached) " >&6
5398 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5408 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5420 GMSGFMT=$ac_cv_path_GMSGFMT
5421 if test -n "$GMSGFMT"; then
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5423 $as_echo "$GMSGFMT" >&6; }
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5431 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5432 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5433 *) MSGFMT_015=$MSGFMT ;;
5436 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5437 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5438 *) GMSGFMT_015=$GMSGFMT ;;
5443 # Prepare PATH_SEPARATOR.
5444 # The user is always right.
5445 if test "${PATH_SEPARATOR+set}" != set; then
5446 echo "#! /bin/sh" >conf$$.sh
5447 echo "exit 0" >>conf$$.sh
5449 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5457 # Find out how to test for executable files. Don't use a zero-byte file,
5458 # as systems may use methods other than mode bits to determine executability.
5459 cat >conf$$.file <<_ASEOF
5463 chmod +x conf$$.file
5464 if test -x conf$$.file >/dev/null 2>&1; then
5465 ac_executable_p="test -x"
5467 ac_executable_p="test -f"
5471 # Extract the first word of "xgettext", so it can be a program name with args.
5472 set dummy xgettext; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_path_XGETTEXT+:} false; then :
5476 $as_echo_n "(cached) " >&6
5480 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5483 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5484 for ac_dir in $PATH; do
5486 test -z "$ac_dir" && ac_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5489 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5490 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5491 (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
5492 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5499 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5503 XGETTEXT="$ac_cv_path_XGETTEXT"
5504 if test "$XGETTEXT" != ":"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5506 $as_echo "$XGETTEXT" >&6; }
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5514 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5515 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5516 *) XGETTEXT_015=$XGETTEXT ;;
5521 # Prepare PATH_SEPARATOR.
5522 # The user is always right.
5523 if test "${PATH_SEPARATOR+set}" != set; then
5524 echo "#! /bin/sh" >conf$$.sh
5525 echo "exit 0" >>conf$$.sh
5527 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5535 # Find out how to test for executable files. Don't use a zero-byte file,
5536 # as systems may use methods other than mode bits to determine executability.
5537 cat >conf$$.file <<_ASEOF
5541 chmod +x conf$$.file
5542 if test -x conf$$.file >/dev/null 2>&1; then
5543 ac_executable_p="test -x"
5545 ac_executable_p="test -f"
5549 # Extract the first word of "msgmerge", so it can be a program name with args.
5550 set dummy msgmerge; ac_word=$2
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552 $as_echo_n "checking for $ac_word... " >&6; }
5553 if ${ac_cv_path_MSGMERGE+:} false; then :
5554 $as_echo_n "(cached) " >&6
5558 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5561 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5562 for ac_dir in $PATH; do
5564 test -z "$ac_dir" && ac_dir=.
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5567 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5568 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5569 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5576 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5580 MSGMERGE="$ac_cv_path_MSGMERGE"
5581 if test "$MSGMERGE" != ":"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5583 $as_echo "$MSGMERGE" >&6; }
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5590 test -n "$localedir" || localedir='${datadir}/locale'
5593 ac_config_commands="$ac_config_commands po-directories"
5597 if test "X$prefix" = "XNONE"; then
5598 acl_final_prefix="$ac_default_prefix"
5600 acl_final_prefix="$prefix"
5602 if test "X$exec_prefix" = "XNONE"; then
5603 acl_final_exec_prefix='${prefix}'
5605 acl_final_exec_prefix="$exec_prefix"
5607 acl_save_prefix="$prefix"
5608 prefix="$acl_final_prefix"
5609 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5610 prefix="$acl_save_prefix"
5612 # Make sure we can run config.sub.
5613 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5614 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5617 $as_echo_n "checking build system type... " >&6; }
5618 if ${ac_cv_build+:} false; then :
5619 $as_echo_n "(cached) " >&6
5621 ac_build_alias=$build_alias
5622 test "x$ac_build_alias" = x &&
5623 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5624 test "x$ac_build_alias" = x &&
5625 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5626 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5627 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5631 $as_echo "$ac_cv_build" >&6; }
5632 case $ac_cv_build in
5634 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5637 ac_save_IFS=$IFS; IFS='-'
5643 # Remember, the first character of IFS is used to create $*,
5644 # except with old shells:
5647 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5651 $as_echo_n "checking host system type... " >&6; }
5652 if ${ac_cv_host+:} false; then :
5653 $as_echo_n "(cached) " >&6
5655 if test "x$host_alias" = x; then
5656 ac_cv_host=$ac_cv_build
5658 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5659 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5664 $as_echo "$ac_cv_host" >&6; }
5667 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5670 ac_save_IFS=$IFS; IFS='-'
5676 # Remember, the first character of IFS is used to create $*,
5677 # except with old shells:
5680 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5684 # Check whether --with-gnu-ld was given.
5685 if test "${with_gnu_ld+set}" = set; then :
5686 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5691 # Prepare PATH_SEPARATOR.
5692 # The user is always right.
5693 if test "${PATH_SEPARATOR+set}" != set; then
5694 echo "#! /bin/sh" >conf$$.sh
5695 echo "exit 0" >>conf$$.sh
5697 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5705 if test "$GCC" = yes; then
5706 # Check if gcc -print-prog-name=ld gives a path.
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5708 $as_echo_n "checking for ld used by GCC... " >&6; }
5711 # gcc leaves a trailing carriage return which upsets mingw
5712 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5714 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5717 # Accept absolute paths.
5718 [\\/]* | [A-Za-z]:[\\/]*)
5719 re_direlt='/[^/][^/]*/\.\./'
5720 # Canonicalize the path of ld
5721 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5722 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5723 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5725 test -z "$LD" && LD="$ac_prog"
5728 # If it fails, then pretend we aren't using GCC.
5732 # If it is relative, then search for the first ld in PATH.
5736 elif test "$with_gnu_ld" = yes; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5738 $as_echo_n "checking for GNU ld... " >&6; }
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5741 $as_echo_n "checking for non-GNU ld... " >&6; }
5743 if ${acl_cv_path_LD+:} false; then :
5744 $as_echo_n "(cached) " >&6
5746 if test -z "$LD"; then
5747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5748 for ac_dir in $PATH; do
5749 test -z "$ac_dir" && ac_dir=.
5750 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5751 acl_cv_path_LD="$ac_dir/$ac_prog"
5752 # Check to see if the program is GNU ld. I'd rather use --version,
5753 # but apparently some GNU ld's only accept -v.
5754 # Break only if it was the GNU/non-GNU ld that we prefer.
5755 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5756 *GNU* | *'with BFD'*)
5757 test "$with_gnu_ld" != no && break ;;
5759 test "$with_gnu_ld" != yes && break ;;
5765 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5769 LD="$acl_cv_path_LD"
5770 if test -n "$LD"; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5772 $as_echo "$LD" >&6; }
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5777 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5779 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5780 if ${acl_cv_prog_gnu_ld+:} false; then :
5781 $as_echo_n "(cached) " >&6
5783 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5784 case `$LD -v 2>&1 </dev/null` in
5785 *GNU* | *'with BFD'*)
5786 acl_cv_prog_gnu_ld=yes ;;
5788 acl_cv_prog_gnu_ld=no ;;
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5792 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5793 with_gnu_ld=$acl_cv_prog_gnu_ld
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5799 $as_echo_n "checking for shared library run path origin... " >&6; }
5800 if ${acl_cv_rpath+:} false; then :
5801 $as_echo_n "(cached) " >&6
5804 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5805 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5812 $as_echo "$acl_cv_rpath" >&6; }
5814 libext="$acl_cv_libext"
5815 shlibext="$acl_cv_shlibext"
5816 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5817 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5818 hardcode_direct="$acl_cv_hardcode_direct"
5819 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5820 # Check whether --enable-rpath was given.
5821 if test "${enable_rpath+set}" = set; then :
5822 enableval=$enable_rpath; :
5830 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5831 if test -n "$searchpath"; then
5832 acl_save_IFS="${IFS= }"; IFS=":"
5833 for searchdir in $searchpath; do
5834 if test -d "$searchdir"; then
5835 case "$searchdir" in
5836 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5837 *) searchdir=`cd "$searchdir" && pwd`
5838 case "$searchdir" in
5839 */lib64 ) acl_libdirstem=lib64 ;;
5856 acl_save_prefix="$prefix"
5857 prefix="$acl_final_prefix"
5858 acl_save_exec_prefix="$exec_prefix"
5859 exec_prefix="$acl_final_exec_prefix"
5861 eval additional_includedir=\"$includedir\"
5862 eval additional_libdir=\"$libdir\"
5864 exec_prefix="$acl_save_exec_prefix"
5865 prefix="$acl_save_prefix"
5868 # Check whether --with-libiconv-prefix was given.
5869 if test "${with_libiconv_prefix+set}" = set; then :
5870 withval=$with_libiconv_prefix;
5871 if test "X$withval" = "Xno"; then
5874 if test "X$withval" = "X"; then
5876 acl_save_prefix="$prefix"
5877 prefix="$acl_final_prefix"
5878 acl_save_exec_prefix="$exec_prefix"
5879 exec_prefix="$acl_final_exec_prefix"
5881 eval additional_includedir=\"$includedir\"
5882 eval additional_libdir=\"$libdir\"
5884 exec_prefix="$acl_save_exec_prefix"
5885 prefix="$acl_save_prefix"
5888 additional_includedir="$withval/include"
5889 additional_libdir="$withval/$acl_libdirstem"
5900 names_already_handled=
5901 names_next_round='iconv '
5902 while test -n "$names_next_round"; do
5903 names_this_round="$names_next_round"
5905 for name in $names_this_round; do
5907 for n in $names_already_handled; do
5908 if test "$n" = "$name"; then
5913 if test -z "$already_handled"; then
5914 names_already_handled="$names_already_handled $name"
5915 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5916 eval value=\"\$HAVE_LIB$uppername\"
5917 if test -n "$value"; then
5918 if test "$value" = yes; then
5919 eval value=\"\$LIB$uppername\"
5920 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5921 eval value=\"\$LTLIB$uppername\"
5922 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5931 if test $use_additional = yes; then
5932 if test -n "$shlibext" \
5933 && { test -f "$additional_libdir/lib$name.$shlibext" \
5934 || { test "$shlibext" = dll \
5935 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
5936 found_dir="$additional_libdir"
5937 if test -f "$additional_libdir/lib$name.$shlibext"; then
5938 found_so="$additional_libdir/lib$name.$shlibext"
5940 found_so="$additional_libdir/lib$name.dll.a"
5942 if test -f "$additional_libdir/lib$name.la"; then
5943 found_la="$additional_libdir/lib$name.la"
5946 if test -f "$additional_libdir/lib$name.$libext"; then
5947 found_dir="$additional_libdir"
5948 found_a="$additional_libdir/lib$name.$libext"
5949 if test -f "$additional_libdir/lib$name.la"; then
5950 found_la="$additional_libdir/lib$name.la"
5955 if test "X$found_dir" = "X"; then
5956 for x in $LDFLAGS $LTLIBICONV; do
5958 acl_save_prefix="$prefix"
5959 prefix="$acl_final_prefix"
5960 acl_save_exec_prefix="$exec_prefix"
5961 exec_prefix="$acl_final_exec_prefix"
5963 exec_prefix="$acl_save_exec_prefix"
5964 prefix="$acl_save_prefix"
5968 dir=`echo "X$x" | sed -e 's/^X-L//'`
5969 if test -n "$shlibext" \
5970 && { test -f "$dir/lib$name.$shlibext" \
5971 || { test "$shlibext" = dll \
5972 && test -f "$dir/lib$name.dll.a"; }; }; then
5974 if test -f "$dir/lib$name.$shlibext"; then
5975 found_so="$dir/lib$name.$shlibext"
5977 found_so="$dir/lib$name.dll.a"
5979 if test -f "$dir/lib$name.la"; then
5980 found_la="$dir/lib$name.la"
5983 if test -f "$dir/lib$name.$libext"; then
5985 found_a="$dir/lib$name.$libext"
5986 if test -f "$dir/lib$name.la"; then
5987 found_la="$dir/lib$name.la"
5993 if test "X$found_dir" != "X"; then
5998 if test "X$found_dir" != "X"; then
5999 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6000 if test "X$found_so" != "X"; then
6001 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6002 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6005 for x in $ltrpathdirs; do
6006 if test "X$x" = "X$found_dir"; then
6011 if test -z "$haveit"; then
6012 ltrpathdirs="$ltrpathdirs $found_dir"
6014 if test "$hardcode_direct" = yes; then
6015 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6017 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6018 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6020 for x in $rpathdirs; do
6021 if test "X$x" = "X$found_dir"; then
6026 if test -z "$haveit"; then
6027 rpathdirs="$rpathdirs $found_dir"
6031 for x in $LDFLAGS $LIBICONV; do
6033 acl_save_prefix="$prefix"
6034 prefix="$acl_final_prefix"
6035 acl_save_exec_prefix="$exec_prefix"
6036 exec_prefix="$acl_final_exec_prefix"
6038 exec_prefix="$acl_save_exec_prefix"
6039 prefix="$acl_save_prefix"
6041 if test "X$x" = "X-L$found_dir"; then
6046 if test -z "$haveit"; then
6047 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6049 if test "$hardcode_minus_L" != no; then
6050 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6052 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6058 if test "X$found_a" != "X"; then
6059 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6061 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6064 additional_includedir=
6065 case "$found_dir" in
6066 */$acl_libdirstem | */$acl_libdirstem/)
6067 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6068 additional_includedir="$basedir/include"
6071 if test "X$additional_includedir" != "X"; then
6072 if test "X$additional_includedir" != "X/usr/include"; then
6074 if test "X$additional_includedir" = "X/usr/local/include"; then
6075 if test -n "$GCC"; then
6077 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6081 if test -z "$haveit"; then
6082 for x in $CPPFLAGS $INCICONV; do
6084 acl_save_prefix="$prefix"
6085 prefix="$acl_final_prefix"
6086 acl_save_exec_prefix="$exec_prefix"
6087 exec_prefix="$acl_final_exec_prefix"
6089 exec_prefix="$acl_save_exec_prefix"
6090 prefix="$acl_save_prefix"
6092 if test "X$x" = "X-I$additional_includedir"; then
6097 if test -z "$haveit"; then
6098 if test -d "$additional_includedir"; then
6099 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6105 if test -n "$found_la"; then
6106 save_libdir="$libdir"
6108 */* | *\\*) . "$found_la" ;;
6109 *) . "./$found_la" ;;
6111 libdir="$save_libdir"
6112 for dep in $dependency_libs; do
6115 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6116 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6118 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6119 if test -n "$GCC"; then
6121 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6125 if test -z "$haveit"; then
6127 for x in $LDFLAGS $LIBICONV; do
6129 acl_save_prefix="$prefix"
6130 prefix="$acl_final_prefix"
6131 acl_save_exec_prefix="$exec_prefix"
6132 exec_prefix="$acl_final_exec_prefix"
6134 exec_prefix="$acl_save_exec_prefix"
6135 prefix="$acl_save_prefix"
6137 if test "X$x" = "X-L$additional_libdir"; then
6142 if test -z "$haveit"; then
6143 if test -d "$additional_libdir"; then
6144 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6148 for x in $LDFLAGS $LTLIBICONV; do
6150 acl_save_prefix="$prefix"
6151 prefix="$acl_final_prefix"
6152 acl_save_exec_prefix="$exec_prefix"
6153 exec_prefix="$acl_final_exec_prefix"
6155 exec_prefix="$acl_save_exec_prefix"
6156 prefix="$acl_save_prefix"
6158 if test "X$x" = "X-L$additional_libdir"; then
6163 if test -z "$haveit"; then
6164 if test -d "$additional_libdir"; then
6165 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6172 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6173 if test "$enable_rpath" != no; then
6175 for x in $rpathdirs; do
6176 if test "X$x" = "X$dir"; then
6181 if test -z "$haveit"; then
6182 rpathdirs="$rpathdirs $dir"
6185 for x in $ltrpathdirs; do
6186 if test "X$x" = "X$dir"; then
6191 if test -z "$haveit"; then
6192 ltrpathdirs="$ltrpathdirs $dir"
6197 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6200 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6203 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6204 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6210 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6211 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6217 if test "X$rpathdirs" != "X"; then
6218 if test -n "$hardcode_libdir_separator"; then
6220 for found_dir in $rpathdirs; do
6221 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6223 acl_save_libdir="$libdir"
6225 eval flag=\"$hardcode_libdir_flag_spec\"
6226 libdir="$acl_save_libdir"
6227 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6229 for found_dir in $rpathdirs; do
6230 acl_save_libdir="$libdir"
6232 eval flag=\"$hardcode_libdir_flag_spec\"
6233 libdir="$acl_save_libdir"
6234 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6238 if test "X$ltrpathdirs" != "X"; then
6239 for found_dir in $ltrpathdirs; do
6240 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6269 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6270 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6271 $as_echo_n "(cached) " >&6
6273 gt_save_LIBS="$LIBS"
6274 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 #include <CoreFoundation/CFPreferences.h>
6281 CFPreferencesCopyAppValue(NULL, NULL)
6286 if ac_fn_c_try_link "$LINENO"; then :
6287 gt_cv_func_CFPreferencesCopyAppValue=yes
6289 gt_cv_func_CFPreferencesCopyAppValue=no
6291 rm -f core conftest.err conftest.$ac_objext \
6292 conftest$ac_exeext conftest.$ac_ext
6293 LIBS="$gt_save_LIBS"
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6296 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6297 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6299 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6303 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6304 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6305 $as_echo_n "(cached) " >&6
6307 gt_save_LIBS="$LIBS"
6308 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6311 #include <CoreFoundation/CFLocale.h>
6315 CFLocaleCopyCurrent();
6320 if ac_fn_c_try_link "$LINENO"; then :
6321 gt_cv_func_CFLocaleCopyCurrent=yes
6323 gt_cv_func_CFLocaleCopyCurrent=no
6325 rm -f core conftest.err conftest.$ac_objext \
6326 conftest$ac_exeext conftest.$ac_ext
6327 LIBS="$gt_save_LIBS"
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6330 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6331 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6333 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6337 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6338 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6350 case " $gt_needs " in
6351 *" need-formatstring-macros "*) gt_api_version=3 ;;
6352 *" need-ngettext "*) gt_api_version=2 ;;
6353 *) gt_api_version=1 ;;
6355 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6356 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6358 if test "$USE_NLS" = "yes"; then
6359 gt_use_preinstalled_gnugettext=no
6362 if test $gt_api_version -ge 3; then
6363 gt_revision_test_code='[
6364 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6365 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6367 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6370 gt_revision_test_code=
6372 if test $gt_api_version -ge 2; then
6373 gt_expression_test_code=' + * ngettext ("", "", 0)'
6375 gt_expression_test_code=
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6379 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6380 if eval \${$gt_func_gnugettext_libc+:} false; then :
6381 $as_echo_n "(cached) " >&6
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6385 #include <libintl.h>
6386 $gt_revision_test_code
6387 extern int _nl_msg_cat_cntr;
6388 extern int *_nl_domain_bindings;
6392 bindtextdomain ("", "");
6393 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6398 if ac_fn_c_try_link "$LINENO"; then :
6399 eval "$gt_func_gnugettext_libc=yes"
6401 eval "$gt_func_gnugettext_libc=no"
6403 rm -f core conftest.err conftest.$ac_objext \
6404 conftest$ac_exeext conftest.$ac_ext
6406 eval ac_res=\$$gt_func_gnugettext_libc
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6408 $as_echo "$ac_res" >&6; }
6410 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6416 am_save_CPPFLAGS="$CPPFLAGS"
6418 for element in $INCICONV; do
6420 for x in $CPPFLAGS; do
6422 acl_save_prefix="$prefix"
6423 prefix="$acl_final_prefix"
6424 acl_save_exec_prefix="$exec_prefix"
6425 exec_prefix="$acl_final_exec_prefix"
6427 exec_prefix="$acl_save_exec_prefix"
6428 prefix="$acl_save_prefix"
6430 if test "X$x" = "X$element"; then
6435 if test -z "$haveit"; then
6436 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6442 $as_echo_n "checking for iconv... " >&6; }
6443 if ${am_cv_func_iconv+:} false; then :
6444 $as_echo_n "(cached) " >&6
6447 am_cv_func_iconv="no, consider installing GNU libiconv"
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6456 iconv_t cd = iconv_open("","");
6457 iconv(cd,NULL,NULL,NULL,NULL);
6463 if ac_fn_c_try_link "$LINENO"; then :
6464 am_cv_func_iconv=yes
6466 rm -f core conftest.err conftest.$ac_objext \
6467 conftest$ac_exeext conftest.$ac_ext
6468 if test "$am_cv_func_iconv" != yes; then
6469 am_save_LIBS="$LIBS"
6470 LIBS="$LIBS $LIBICONV"
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6478 iconv_t cd = iconv_open("","");
6479 iconv(cd,NULL,NULL,NULL,NULL);
6485 if ac_fn_c_try_link "$LINENO"; then :
6487 am_cv_func_iconv=yes
6489 rm -f core conftest.err conftest.$ac_objext \
6490 conftest$ac_exeext conftest.$ac_ext
6491 LIBS="$am_save_LIBS"
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6496 $as_echo "$am_cv_func_iconv" >&6; }
6497 if test "$am_cv_func_iconv" = yes; then
6499 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6502 if test "$am_cv_lib_iconv" = yes; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6504 $as_echo_n "checking how to link with libiconv... " >&6; }
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6506 $as_echo "$LIBICONV" >&6; }
6508 CPPFLAGS="$am_save_CPPFLAGS"
6521 acl_save_prefix="$prefix"
6522 prefix="$acl_final_prefix"
6523 acl_save_exec_prefix="$exec_prefix"
6524 exec_prefix="$acl_final_exec_prefix"
6526 eval additional_includedir=\"$includedir\"
6527 eval additional_libdir=\"$libdir\"
6529 exec_prefix="$acl_save_exec_prefix"
6530 prefix="$acl_save_prefix"
6533 # Check whether --with-libintl-prefix was given.
6534 if test "${with_libintl_prefix+set}" = set; then :
6535 withval=$with_libintl_prefix;
6536 if test "X$withval" = "Xno"; then
6539 if test "X$withval" = "X"; then
6541 acl_save_prefix="$prefix"
6542 prefix="$acl_final_prefix"
6543 acl_save_exec_prefix="$exec_prefix"
6544 exec_prefix="$acl_final_exec_prefix"
6546 eval additional_includedir=\"$includedir\"
6547 eval additional_libdir=\"$libdir\"
6549 exec_prefix="$acl_save_exec_prefix"
6550 prefix="$acl_save_prefix"
6553 additional_includedir="$withval/include"
6554 additional_libdir="$withval/$acl_libdirstem"
6565 names_already_handled=
6566 names_next_round='intl '
6567 while test -n "$names_next_round"; do
6568 names_this_round="$names_next_round"
6570 for name in $names_this_round; do
6572 for n in $names_already_handled; do
6573 if test "$n" = "$name"; then
6578 if test -z "$already_handled"; then
6579 names_already_handled="$names_already_handled $name"
6580 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6581 eval value=\"\$HAVE_LIB$uppername\"
6582 if test -n "$value"; then
6583 if test "$value" = yes; then
6584 eval value=\"\$LIB$uppername\"
6585 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6586 eval value=\"\$LTLIB$uppername\"
6587 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6596 if test $use_additional = yes; then
6597 if test -n "$shlibext" \
6598 && { test -f "$additional_libdir/lib$name.$shlibext" \
6599 || { test "$shlibext" = dll \
6600 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
6601 found_dir="$additional_libdir"
6602 if test -f "$additional_libdir/lib$name.$shlibext"; then
6603 found_so="$additional_libdir/lib$name.$shlibext"
6605 found_so="$additional_libdir/lib$name.dll.a"
6607 if test -f "$additional_libdir/lib$name.la"; then
6608 found_la="$additional_libdir/lib$name.la"
6611 if test -f "$additional_libdir/lib$name.$libext"; then
6612 found_dir="$additional_libdir"
6613 found_a="$additional_libdir/lib$name.$libext"
6614 if test -f "$additional_libdir/lib$name.la"; then
6615 found_la="$additional_libdir/lib$name.la"
6620 if test "X$found_dir" = "X"; then
6621 for x in $LDFLAGS $LTLIBINTL; do
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 exec_prefix="$acl_save_exec_prefix"
6629 prefix="$acl_save_prefix"
6633 dir=`echo "X$x" | sed -e 's/^X-L//'`
6634 if test -n "$shlibext" \
6635 && { test -f "$dir/lib$name.$shlibext" \
6636 || { test "$shlibext" = dll \
6637 && test -f "$dir/lib$name.dll.a"; }; }; then
6639 if test -f "$dir/lib$name.$shlibext"; then
6640 found_so="$dir/lib$name.$shlibext"
6642 found_so="$dir/lib$name.dll.a"
6644 if test -f "$dir/lib$name.la"; then
6645 found_la="$dir/lib$name.la"
6648 if test -f "$dir/lib$name.$libext"; then
6650 found_a="$dir/lib$name.$libext"
6651 if test -f "$dir/lib$name.la"; then
6652 found_la="$dir/lib$name.la"
6658 if test "X$found_dir" != "X"; then
6663 if test "X$found_dir" != "X"; then
6664 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6665 if test "X$found_so" != "X"; then
6666 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6667 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6670 for x in $ltrpathdirs; do
6671 if test "X$x" = "X$found_dir"; then
6676 if test -z "$haveit"; then
6677 ltrpathdirs="$ltrpathdirs $found_dir"
6679 if test "$hardcode_direct" = yes; then
6680 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6682 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6683 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6685 for x in $rpathdirs; do
6686 if test "X$x" = "X$found_dir"; then
6691 if test -z "$haveit"; then
6692 rpathdirs="$rpathdirs $found_dir"
6696 for x in $LDFLAGS $LIBINTL; do
6698 acl_save_prefix="$prefix"
6699 prefix="$acl_final_prefix"
6700 acl_save_exec_prefix="$exec_prefix"
6701 exec_prefix="$acl_final_exec_prefix"
6703 exec_prefix="$acl_save_exec_prefix"
6704 prefix="$acl_save_prefix"
6706 if test "X$x" = "X-L$found_dir"; then
6711 if test -z "$haveit"; then
6712 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6714 if test "$hardcode_minus_L" != no; then
6715 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6717 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6723 if test "X$found_a" != "X"; then
6724 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6726 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6729 additional_includedir=
6730 case "$found_dir" in
6731 */$acl_libdirstem | */$acl_libdirstem/)
6732 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6733 additional_includedir="$basedir/include"
6736 if test "X$additional_includedir" != "X"; then
6737 if test "X$additional_includedir" != "X/usr/include"; then
6739 if test "X$additional_includedir" = "X/usr/local/include"; then
6740 if test -n "$GCC"; then
6742 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6746 if test -z "$haveit"; then
6747 for x in $CPPFLAGS $INCINTL; do
6749 acl_save_prefix="$prefix"
6750 prefix="$acl_final_prefix"
6751 acl_save_exec_prefix="$exec_prefix"
6752 exec_prefix="$acl_final_exec_prefix"
6754 exec_prefix="$acl_save_exec_prefix"
6755 prefix="$acl_save_prefix"
6757 if test "X$x" = "X-I$additional_includedir"; then
6762 if test -z "$haveit"; then
6763 if test -d "$additional_includedir"; then
6764 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6770 if test -n "$found_la"; then
6771 save_libdir="$libdir"
6773 */* | *\\*) . "$found_la" ;;
6774 *) . "./$found_la" ;;
6776 libdir="$save_libdir"
6777 for dep in $dependency_libs; do
6780 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6781 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6783 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6784 if test -n "$GCC"; then
6786 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6790 if test -z "$haveit"; then
6792 for x in $LDFLAGS $LIBINTL; do
6794 acl_save_prefix="$prefix"
6795 prefix="$acl_final_prefix"
6796 acl_save_exec_prefix="$exec_prefix"
6797 exec_prefix="$acl_final_exec_prefix"
6799 exec_prefix="$acl_save_exec_prefix"
6800 prefix="$acl_save_prefix"
6802 if test "X$x" = "X-L$additional_libdir"; then
6807 if test -z "$haveit"; then
6808 if test -d "$additional_libdir"; then
6809 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6813 for x in $LDFLAGS $LTLIBINTL; do
6815 acl_save_prefix="$prefix"
6816 prefix="$acl_final_prefix"
6817 acl_save_exec_prefix="$exec_prefix"
6818 exec_prefix="$acl_final_exec_prefix"
6820 exec_prefix="$acl_save_exec_prefix"
6821 prefix="$acl_save_prefix"
6823 if test "X$x" = "X-L$additional_libdir"; then
6828 if test -z "$haveit"; then
6829 if test -d "$additional_libdir"; then
6830 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6837 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6838 if test "$enable_rpath" != no; then
6840 for x in $rpathdirs; do
6841 if test "X$x" = "X$dir"; then
6846 if test -z "$haveit"; then
6847 rpathdirs="$rpathdirs $dir"
6850 for x in $ltrpathdirs; do
6851 if test "X$x" = "X$dir"; then
6856 if test -z "$haveit"; then
6857 ltrpathdirs="$ltrpathdirs $dir"
6862 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6865 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6868 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6869 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6875 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6876 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6882 if test "X$rpathdirs" != "X"; then
6883 if test -n "$hardcode_libdir_separator"; then
6885 for found_dir in $rpathdirs; do
6886 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6888 acl_save_libdir="$libdir"
6890 eval flag=\"$hardcode_libdir_flag_spec\"
6891 libdir="$acl_save_libdir"
6892 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6894 for found_dir in $rpathdirs; do
6895 acl_save_libdir="$libdir"
6897 eval flag=\"$hardcode_libdir_flag_spec\"
6898 libdir="$acl_save_libdir"
6899 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6903 if test "X$ltrpathdirs" != "X"; then
6904 for found_dir in $ltrpathdirs; do
6905 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6910 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6911 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6912 $as_echo_n "(cached) " >&6
6914 gt_save_CPPFLAGS="$CPPFLAGS"
6915 CPPFLAGS="$CPPFLAGS $INCINTL"
6916 gt_save_LIBS="$LIBS"
6917 LIBS="$LIBS $LIBINTL"
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6920 #include <libintl.h>
6921 $gt_revision_test_code
6922 extern int _nl_msg_cat_cntr;
6927 const char *_nl_expand_alias (const char *);
6931 bindtextdomain ("", "");
6932 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6937 if ac_fn_c_try_link "$LINENO"; then :
6938 eval "$gt_func_gnugettext_libintl=yes"
6940 eval "$gt_func_gnugettext_libintl=no"
6942 rm -f core conftest.err conftest.$ac_objext \
6943 conftest$ac_exeext conftest.$ac_ext
6944 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6945 LIBS="$LIBS $LIBICONV"
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h. */
6948 #include <libintl.h>
6949 $gt_revision_test_code
6950 extern int _nl_msg_cat_cntr;
6955 const char *_nl_expand_alias (const char *);
6959 bindtextdomain ("", "");
6960 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6965 if ac_fn_c_try_link "$LINENO"; then :
6966 LIBINTL="$LIBINTL $LIBICONV"
6967 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6968 eval "$gt_func_gnugettext_libintl=yes"
6971 rm -f core conftest.err conftest.$ac_objext \
6972 conftest$ac_exeext conftest.$ac_ext
6974 CPPFLAGS="$gt_save_CPPFLAGS"
6975 LIBS="$gt_save_LIBS"
6977 eval ac_res=\$$gt_func_gnugettext_libintl
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6979 $as_echo "$ac_res" >&6; }
6982 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6983 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6984 && test "$PACKAGE" != gettext-runtime \
6985 && test "$PACKAGE" != gettext-tools; }; then
6986 gt_use_preinstalled_gnugettext=yes
6995 if test -n "$INTL_MACOSX_LIBS"; then
6996 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6997 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6998 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6999 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7003 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7004 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7006 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7014 $as_echo_n "checking whether to use NLS... " >&6; }
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7016 $as_echo "$USE_NLS" >&6; }
7017 if test "$USE_NLS" = "yes"; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7019 $as_echo_n "checking where the gettext function comes from... " >&6; }
7020 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7021 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7022 gt_source="external libintl"
7027 gt_source="included intl directory"
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7030 $as_echo "$gt_source" >&6; }
7033 if test "$USE_NLS" = "yes"; then
7035 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7036 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7038 $as_echo_n "checking how to link with libintl... " >&6; }
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7040 $as_echo "$LIBINTL" >&6; }
7042 for element in $INCINTL; do
7044 for x in $CPPFLAGS; do
7046 acl_save_prefix="$prefix"
7047 prefix="$acl_final_prefix"
7048 acl_save_exec_prefix="$exec_prefix"
7049 exec_prefix="$acl_final_exec_prefix"
7051 exec_prefix="$acl_save_exec_prefix"
7052 prefix="$acl_save_prefix"
7054 if test "X$x" = "X$element"; then
7059 if test -z "$haveit"; then
7060 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7067 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7070 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7090 # Check whether --enable-schemas-compile was given.
7091 if test "${enable_schemas_compile+set}" = set; then :
7092 enableval=$enable_schemas_compile; case ${enableval} in
7093 yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
7094 no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
7095 *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;;
7107 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7108 if test -n "$ac_tool_prefix"; then
7109 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7110 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7114 $as_echo_n "(cached) " >&6
7118 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7128 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7140 if test -n "$PKG_CONFIG"; then
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7142 $as_echo "$PKG_CONFIG" >&6; }
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145 $as_echo "no" >&6; }
7150 if test -z "$ac_cv_path_PKG_CONFIG"; then
7151 ac_pt_PKG_CONFIG=$PKG_CONFIG
7152 # Extract the first word of "pkg-config", so it can be a program name with args.
7153 set dummy pkg-config; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7157 $as_echo_n "(cached) " >&6
7159 case $ac_pt_PKG_CONFIG in
7161 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7171 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7183 if test -n "$ac_pt_PKG_CONFIG"; then
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7185 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7191 if test "x$ac_pt_PKG_CONFIG" = x; then
7194 case $cross_compiling:$ac_tool_warned in
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7198 ac_tool_warned=yes ;;
7200 PKG_CONFIG=$ac_pt_PKG_CONFIG
7203 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7207 if test -n "$PKG_CONFIG"; then
7208 _pkg_min_version=0.16
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7210 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7211 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7213 $as_echo "yes" >&6; }
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216 $as_echo "no" >&6; }
7220 gsettingsschemadir=${datadir}/glib-2.0/schemas
7222 if test x$cross_compiling != xyes; then
7223 GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
7225 # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
7226 set dummy glib-compile-schemas; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then :
7230 $as_echo_n "(cached) " >&6
7232 case $GLIB_COMPILE_SCHEMAS in
7234 ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244 ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext"
7245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
7256 if test -n "$GLIB_COMPILE_SCHEMAS"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
7258 $as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7267 if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
7268 as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5
7274 .PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
7276 mostlyclean-am: clean-gsettings-schemas
7278 gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
7280 %.gschema.valid: %.gschema.xml $(gsettings__enum_file)
7281 $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p $(@D) && touch $@
7283 all-am: $(gsettings_SCHEMAS:.xml=.valid)
7284 uninstall-am: uninstall-gsettings-schemas
7285 install-data-am: install-gsettings-schemas
7287 .SECONDARY: $(gsettings_SCHEMAS)
7289 install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
7291 if test -n "$^"; then \
7292 test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
7293 $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
7294 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
7297 uninstall-gsettings-schemas:
7298 @$(NORMAL_UNINSTALL)
7299 @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
7300 files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
7301 test -n "$$files" || exit 0; \
7302 echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
7303 cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
7304 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
7306 clean-gsettings-schemas:
7307 rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
7309 ifdef gsettings_ENUM_NAMESPACE
7310 $(gsettings__enum_file): $(gsettings_ENUM_FILES)
7311 $(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 $@
7321 ############### common
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7325 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7326 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7327 $as_echo_n "(cached) " >&6
7329 ac_check_lib_save_LIBS=$LIBS
7330 LIBS="-lpthread $LIBS"
7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h. */
7334 /* Override any GCC internal prototype to avoid an error.
7335 Use char because int might match the return type of a GCC
7336 builtin and then its argument prototype would still apply. */
7340 char pthread_create ();
7344 return pthread_create ();
7349 if ac_fn_c_try_link "$LINENO"; then :
7350 ac_cv_lib_pthread_pthread_create=yes
7352 ac_cv_lib_pthread_pthread_create=no
7354 rm -f core conftest.err conftest.$ac_objext \
7355 conftest$ac_exeext conftest.$ac_ext
7356 LIBS=$ac_check_lib_save_LIBS
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7359 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7360 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7361 cat >>confdefs.h <<_ACEOF
7362 #define HAVE_LIBPTHREAD 1
7365 LIBS="-lpthread $LIBS"
7369 PTHREAD_LIBS=-pthread
7372 # Checks sensors, required by psensor and psensor-server
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
7374 $as_echo_n "checking for sensors_init in -lsensors... " >&6; }
7375 if ${ac_cv_lib_sensors_sensors_init+:} false; then :
7376 $as_echo_n "(cached) " >&6
7378 ac_check_lib_save_LIBS=$LIBS
7379 LIBS="-lsensors $LIBS"
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7383 /* Override any GCC internal prototype to avoid an error.
7384 Use char because int might match the return type of a GCC
7385 builtin and then its argument prototype would still apply. */
7389 char sensors_init ();
7393 return sensors_init ();
7398 if ac_fn_c_try_link "$LINENO"; then :
7399 ac_cv_lib_sensors_sensors_init=yes
7401 ac_cv_lib_sensors_sensors_init=no
7403 rm -f core conftest.err conftest.$ac_objext \
7404 conftest$ac_exeext conftest.$ac_ext
7405 LIBS=$ac_check_lib_save_LIBS
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
7408 $as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
7409 if test "x$ac_cv_lib_sensors_sensors_init" = xyes; then :
7410 cat >>confdefs.h <<_ACEOF
7411 #define HAVE_LIBSENSORS 1
7414 LIBS="-lsensors $LIBS"
7418 for ac_header in sensors/sensors.h sensors/error.h
7420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7421 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7423 cat >>confdefs.h <<_ACEOF
7424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7431 SENSORS_LIBS=-lsensors
7434 ############### psensor
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7441 $as_echo_n "checking for X11... " >&6; }
7443 if test -n "$X11_CFLAGS"; then
7444 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7445 elif test -n "$PKG_CONFIG"; then
7446 if test -n "$PKG_CONFIG" && \
7447 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7448 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7451 test $ac_status = 0; }; then
7452 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
7453 test "x$?" != "x0" && pkg_failed=yes
7460 if test -n "$X11_LIBS"; then
7461 pkg_cv_X11_LIBS="$X11_LIBS"
7462 elif test -n "$PKG_CONFIG"; then
7463 if test -n "$PKG_CONFIG" && \
7464 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7465 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7468 test $ac_status = 0; }; then
7469 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
7470 test "x$?" != "x0" && pkg_failed=yes
7480 if test $pkg_failed = yes; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7484 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7485 _pkg_short_errors_supported=yes
7487 _pkg_short_errors_supported=no
7489 if test $_pkg_short_errors_supported = yes; then
7490 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
7492 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
7494 # Put the nasty error message in config.log where it belongs
7495 echo "$X11_PKG_ERRORS" >&5
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"x11 missing psensor will not be built\"" >&5
7498 $as_echo "$as_me: WARNING: \"x11 missing psensor will not be built\"" >&2;}
7499 elif test $pkg_failed = untried; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"x11 missing psensor will not be built\"" >&5
7503 $as_echo "$as_me: WARNING: \"x11 missing psensor will not be built\"" >&2;}
7505 X11_CFLAGS=$pkg_cv_X11_CFLAGS
7506 X11_LIBS=$pkg_cv_X11_LIBS
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7508 $as_echo "yes" >&6; }
7511 if test -n "$X11_LIBS"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
7525 $as_echo_n "checking for XEXT... " >&6; }
7527 if test -n "$XEXT_CFLAGS"; then
7528 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
7529 elif test -n "$PKG_CONFIG"; then
7530 if test -n "$PKG_CONFIG" && \
7531 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7532 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7535 test $ac_status = 0; }; then
7536 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
7537 test "x$?" != "x0" && pkg_failed=yes
7544 if test -n "$XEXT_LIBS"; then
7545 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
7546 elif test -n "$PKG_CONFIG"; then
7547 if test -n "$PKG_CONFIG" && \
7548 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7549 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7552 test $ac_status = 0; }; then
7553 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
7554 test "x$?" != "x0" && pkg_failed=yes
7564 if test $pkg_failed = yes; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7568 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7569 _pkg_short_errors_supported=yes
7571 _pkg_short_errors_supported=no
7573 if test $_pkg_short_errors_supported = yes; then
7574 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
7576 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
7578 # Put the nasty error message in config.log where it belongs
7579 echo "$XEXT_PKG_ERRORS" >&5
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"xext missing psensor will not be built\"" >&5
7582 $as_echo "$as_me: WARNING: \"xext missing psensor will not be built\"" >&2;}
7583 elif test $pkg_failed = untried; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"xext missing psensor will not be built\"" >&5
7587 $as_echo "$as_me: WARNING: \"xext missing psensor will not be built\"" >&2;}
7589 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
7590 XEXT_LIBS=$pkg_cv_XEXT_LIBS
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7592 $as_echo "yes" >&6; }
7595 if test -n "$XEXT_LIBS"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7610 $as_echo_n "checking for GTK... " >&6; }
7612 if test -n "$GTK_CFLAGS"; then
7613 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7614 elif test -n "$PKG_CONFIG"; then
7615 if test -n "$PKG_CONFIG" && \
7616 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7617 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7620 test $ac_status = 0; }; then
7621 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
7622 test "x$?" != "x0" && pkg_failed=yes
7629 if test -n "$GTK_LIBS"; then
7630 pkg_cv_GTK_LIBS="$GTK_LIBS"
7631 elif test -n "$PKG_CONFIG"; then
7632 if test -n "$PKG_CONFIG" && \
7633 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7634 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7637 test $ac_status = 0; }; then
7638 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
7639 test "x$?" != "x0" && pkg_failed=yes
7649 if test $pkg_failed = yes; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 $as_echo "no" >&6; }
7653 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7654 _pkg_short_errors_supported=yes
7656 _pkg_short_errors_supported=no
7658 if test $_pkg_short_errors_supported = yes; then
7659 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
7661 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
7663 # Put the nasty error message in config.log where it belongs
7664 echo "$GTK_PKG_ERRORS" >&5
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtk missing psensor will not be built\"" >&5
7667 $as_echo "$as_me: WARNING: \"gtk missing psensor will not be built\"" >&2;}
7668 elif test $pkg_failed = untried; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtk missing psensor will not be built\"" >&5
7672 $as_echo "$as_me: WARNING: \"gtk missing psensor will not be built\"" >&2;}
7674 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7675 GTK_LIBS=$pkg_cv_GTK_LIBS
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7677 $as_echo "yes" >&6; }
7680 if test -n "$GTK_LIBS"; then
7688 # ensure that only allowed headers are included
7689 GTK_CFLAGS+=" -DGTK_DISABLE_SINGLE_INCLUDES "
7690 # ensure that no gtk deprecated symbols are used
7691 GTK_CFLAGS+=" -DGDK_DISABLE_DEPRECATED "
7692 GTK_CFLAGS+=" -DGTK_DISABLE_DEPRECATED "
7693 # ensure use of accessors
7694 GTK_CFLAGS+=" -DGSEAL_ENABLE "
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATASMART" >&5
7704 $as_echo_n "checking for ATASMART... " >&6; }
7706 if test -n "$ATASMART_CFLAGS"; then
7707 pkg_cv_ATASMART_CFLAGS="$ATASMART_CFLAGS"
7708 elif test -n "$PKG_CONFIG"; then
7709 if test -n "$PKG_CONFIG" && \
7710 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
7711 ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
7713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7714 test $ac_status = 0; }; then
7715 pkg_cv_ATASMART_CFLAGS=`$PKG_CONFIG --cflags "libatasmart" 2>/dev/null`
7716 test "x$?" != "x0" && pkg_failed=yes
7723 if test -n "$ATASMART_LIBS"; then
7724 pkg_cv_ATASMART_LIBS="$ATASMART_LIBS"
7725 elif test -n "$PKG_CONFIG"; then
7726 if test -n "$PKG_CONFIG" && \
7727 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
7728 ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
7730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7731 test $ac_status = 0; }; then
7732 pkg_cv_ATASMART_LIBS=`$PKG_CONFIG --libs "libatasmart" 2>/dev/null`
7733 test "x$?" != "x0" && pkg_failed=yes
7743 if test $pkg_failed = yes; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745 $as_echo "no" >&6; }
7747 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7748 _pkg_short_errors_supported=yes
7750 _pkg_short_errors_supported=no
7752 if test $_pkg_short_errors_supported = yes; then
7753 ATASMART_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libatasmart" 2>&1`
7755 ATASMART_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libatasmart" 2>&1`
7757 # Put the nasty error message in config.log where it belongs
7758 echo "$ATASMART_PKG_ERRORS" >&5
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
7761 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
7762 elif test $pkg_failed = untried; then
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
7766 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
7768 ATASMART_CFLAGS=$pkg_cv_ATASMART_CFLAGS
7769 ATASMART_LIBS=$pkg_cv_ATASMART_LIBS
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7771 $as_echo "yes" >&6; }
7773 $as_echo "#define HAVE_ATASMART 1" >>confdefs.h
7777 if test -n "$ATASMART_LIBS"; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
7793 $as_echo_n "checking for LIBNOTIFY... " >&6; }
7795 if test -n "$LIBNOTIFY_CFLAGS"; then
7796 pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
7797 elif test -n "$PKG_CONFIG"; then
7798 if test -n "$PKG_CONFIG" && \
7799 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7800 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803 test $ac_status = 0; }; then
7804 pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
7805 test "x$?" != "x0" && pkg_failed=yes
7812 if test -n "$LIBNOTIFY_LIBS"; then
7813 pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
7814 elif test -n "$PKG_CONFIG"; then
7815 if test -n "$PKG_CONFIG" && \
7816 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7817 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7820 test $ac_status = 0; }; then
7821 pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
7822 test "x$?" != "x0" && pkg_failed=yes
7832 if test $pkg_failed = yes; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7836 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7837 _pkg_short_errors_supported=yes
7839 _pkg_short_errors_supported=no
7841 if test $_pkg_short_errors_supported = yes; then
7842 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify" 2>&1`
7844 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify" 2>&1`
7846 # Put the nasty error message in config.log where it belongs
7847 echo "$LIBNOTIFY_PKG_ERRORS" >&5
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7850 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7851 elif test $pkg_failed = untried; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7855 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7857 LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
7858 LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7860 $as_echo "yes" >&6; }
7862 $as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h
7865 if test -n "$LIBNOTIFY_LIBS"; then
7876 # Checks AppIndicator
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7882 $as_echo_n "checking for APPINDICATOR... " >&6; }
7884 if test -n "$APPINDICATOR_CFLAGS"; then
7885 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7886 elif test -n "$PKG_CONFIG"; then
7887 if test -n "$PKG_CONFIG" && \
7888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
7889 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
7891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7892 test $ac_status = 0; }; then
7893 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator3-0.1" 2>/dev/null`
7894 test "x$?" != "x0" && pkg_failed=yes
7901 if test -n "$APPINDICATOR_LIBS"; then
7902 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7903 elif test -n "$PKG_CONFIG"; then
7904 if test -n "$PKG_CONFIG" && \
7905 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
7906 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
7908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7909 test $ac_status = 0; }; then
7910 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator3-0.1" 2>/dev/null`
7911 test "x$?" != "x0" && pkg_failed=yes
7921 if test $pkg_failed = yes; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923 $as_echo "no" >&6; }
7925 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7926 _pkg_short_errors_supported=yes
7928 _pkg_short_errors_supported=no
7930 if test $_pkg_short_errors_supported = yes; then
7931 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
7933 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
7935 # Put the nasty error message in config.log where it belongs
7936 echo "$APPINDICATOR_PKG_ERRORS" >&5
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
7939 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
7940 elif test $pkg_failed = untried; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
7944 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
7946 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7947 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7949 $as_echo "yes" >&6; }
7951 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7955 if test "$APPINDICATOR_LIBS" == ""; then
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7959 $as_echo_n "checking for APPINDICATOR... " >&6; }
7961 if test -n "$APPINDICATOR_CFLAGS"; then
7962 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7963 elif test -n "$PKG_CONFIG"; then
7964 if test -n "$PKG_CONFIG" && \
7965 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7966 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7969 test $ac_status = 0; }; then
7970 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7971 test "x$?" != "x0" && pkg_failed=yes
7978 if test -n "$APPINDICATOR_LIBS"; then
7979 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7980 elif test -n "$PKG_CONFIG"; then
7981 if test -n "$PKG_CONFIG" && \
7982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7983 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7986 test $ac_status = 0; }; then
7987 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7988 test "x$?" != "x0" && pkg_failed=yes
7998 if test $pkg_failed = yes; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8002 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8003 _pkg_short_errors_supported=yes
8005 _pkg_short_errors_supported=no
8007 if test $_pkg_short_errors_supported = yes; then
8008 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
8010 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
8012 # Put the nasty error message in config.log where it belongs
8013 echo "$APPINDICATOR_PKG_ERRORS" >&5
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
8016 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
8017 elif test $pkg_failed = untried; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019 $as_echo "no" >&6; }
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
8021 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
8023 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8024 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8026 $as_echo "yes" >&6; }
8028 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8031 $as_echo "#define HAVE_APPINDICATOR_029 1" >>confdefs.h
8037 if test "$APPINDICATOR_LIBS" == ""; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8041 $as_echo_n "checking for APPINDICATOR... " >&6; }
8043 if test -n "$APPINDICATOR_CFLAGS"; then
8044 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8045 elif test -n "$PKG_CONFIG"; then
8046 if test -n "$PKG_CONFIG" && \
8047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8048 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8051 test $ac_status = 0; }; then
8052 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 > 0.2.9" 2>/dev/null`
8053 test "x$?" != "x0" && pkg_failed=yes
8060 if test -n "$APPINDICATOR_LIBS"; then
8061 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8062 elif test -n "$PKG_CONFIG"; then
8063 if test -n "$PKG_CONFIG" && \
8064 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8065 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8068 test $ac_status = 0; }; then
8069 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 > 0.2.9" 2>/dev/null`
8070 test "x$?" != "x0" && pkg_failed=yes
8080 if test $pkg_failed = yes; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8084 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8085 _pkg_short_errors_supported=yes
8087 _pkg_short_errors_supported=no
8089 if test $_pkg_short_errors_supported = yes; then
8090 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8092 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8094 # Put the nasty error message in config.log where it belongs
8095 echo "$APPINDICATOR_PKG_ERRORS" >&5
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8098 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8099 elif test $pkg_failed = untried; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 $as_echo "no" >&6; }
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8103 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8105 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8106 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8108 $as_echo "yes" >&6; }
8110 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8114 if test -n "$APPINDICATOR_LIBS"; then
8116 APPINDICATOR_FALSE='#'
8118 APPINDICATOR_TRUE='#'
8125 # Check CURL, needed for remote monitoring
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
8130 $as_echo_n "checking for CURL... " >&6; }
8132 if test -n "$CURL_CFLAGS"; then
8133 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
8134 elif test -n "$PKG_CONFIG"; then
8135 if test -n "$PKG_CONFIG" && \
8136 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8137 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8140 test $ac_status = 0; }; then
8141 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
8142 test "x$?" != "x0" && pkg_failed=yes
8149 if test -n "$CURL_LIBS"; then
8150 pkg_cv_CURL_LIBS="$CURL_LIBS"
8151 elif test -n "$PKG_CONFIG"; then
8152 if test -n "$PKG_CONFIG" && \
8153 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8154 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8157 test $ac_status = 0; }; then
8158 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
8159 test "x$?" != "x0" && pkg_failed=yes
8169 if test $pkg_failed = yes; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 $as_echo "no" >&6; }
8173 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8174 _pkg_short_errors_supported=yes
8176 _pkg_short_errors_supported=no
8178 if test $_pkg_short_errors_supported = yes; then
8179 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
8181 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
8183 # Put the nasty error message in config.log where it belongs
8184 echo "$CURL_PKG_ERRORS" >&5
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8187 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8188 elif test $pkg_failed = untried; then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8192 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8194 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
8195 CURL_LIBS=$pkg_cv_CURL_LIBS
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8197 $as_echo "yes" >&6; }
8199 $as_echo "#define HAVE_CURL 1" >>confdefs.h
8202 if test -n "$CURL_LIBS"; then
8213 # Check JSON, needed for remote monitoring
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8218 $as_echo_n "checking for JSON... " >&6; }
8220 if test -n "$JSON_CFLAGS"; then
8221 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8222 elif test -n "$PKG_CONFIG"; then
8223 if test -n "$PKG_CONFIG" && \
8224 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11.99\""; } >&5
8225 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11.99") 2>&5
8227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8228 test $ac_status = 0; }; then
8229 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11.99" 2>/dev/null`
8230 test "x$?" != "x0" && pkg_failed=yes
8237 if test -n "$JSON_LIBS"; then
8238 pkg_cv_JSON_LIBS="$JSON_LIBS"
8239 elif test -n "$PKG_CONFIG"; then
8240 if test -n "$PKG_CONFIG" && \
8241 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11.99\""; } >&5
8242 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11.99") 2>&5
8244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8245 test $ac_status = 0; }; then
8246 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11.99" 2>/dev/null`
8247 test "x$?" != "x0" && pkg_failed=yes
8257 if test $pkg_failed = yes; then
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 $as_echo "no" >&6; }
8261 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8262 _pkg_short_errors_supported=yes
8264 _pkg_short_errors_supported=no
8266 if test $_pkg_short_errors_supported = yes; then
8267 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11.99" 2>&1`
8269 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11.99" 2>&1`
8271 # Put the nasty error message in config.log where it belongs
8272 echo "$JSON_PKG_ERRORS" >&5
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
8275 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
8276 elif test $pkg_failed = untried; then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
8280 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
8282 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8283 JSON_LIBS=$pkg_cv_JSON_LIBS
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8285 $as_echo "yes" >&6; }
8287 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8291 if test "$JSON_LIBS" == ""; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8295 $as_echo_n "checking for JSON... " >&6; }
8297 if test -n "$JSON_CFLAGS"; then
8298 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8299 elif test -n "$PKG_CONFIG"; then
8300 if test -n "$PKG_CONFIG" && \
8301 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json >= 0.11.99\""; } >&5
8302 ($PKG_CONFIG --exists --print-errors "json >= 0.11.99") 2>&5
8304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8305 test $ac_status = 0; }; then
8306 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json >= 0.11.99" 2>/dev/null`
8307 test "x$?" != "x0" && pkg_failed=yes
8314 if test -n "$JSON_LIBS"; then
8315 pkg_cv_JSON_LIBS="$JSON_LIBS"
8316 elif test -n "$PKG_CONFIG"; then
8317 if test -n "$PKG_CONFIG" && \
8318 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json >= 0.11.99\""; } >&5
8319 ($PKG_CONFIG --exists --print-errors "json >= 0.11.99") 2>&5
8321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8322 test $ac_status = 0; }; then
8323 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json >= 0.11.99" 2>/dev/null`
8324 test "x$?" != "x0" && pkg_failed=yes
8334 if test $pkg_failed = yes; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8338 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8339 _pkg_short_errors_supported=yes
8341 _pkg_short_errors_supported=no
8343 if test $_pkg_short_errors_supported = yes; then
8344 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json >= 0.11.99" 2>&1`
8346 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json >= 0.11.99" 2>&1`
8348 # Put the nasty error message in config.log where it belongs
8349 echo "$JSON_PKG_ERRORS" >&5
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
8352 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
8353 elif test $pkg_failed = untried; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
8357 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
8359 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8360 JSON_LIBS=$pkg_cv_JSON_LIBS
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8362 $as_echo "yes" >&6; }
8364 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8367 $as_echo "#define HAVE_JSON_0 1" >>confdefs.h
8372 if test -n "$JSON_LIBS"; then
8383 # Enables remote monitoring if JSON and CURL is present
8384 if test -n "$JSON_LIBS"; then
8385 if test -n "$CURL_LIBS"; then
8387 $as_echo "#define HAVE_REMOTE_SUPPORT 1" >>confdefs.h
8393 # following code from sensors-applet
8394 # sensors-applet.sourceforge.net/
8395 for ac_header in NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h
8397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8398 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8399 #include <X11/Xlib.h>
8402 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8403 cat >>confdefs.h <<_ACEOF
8404 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8411 if test -n "${X11_LIBS}"; then
8412 LIBS="${LIBS} -lX11 -lXext"
8414 if test "${HAVE_NVIDIA}" = "true"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryExtension in -lXNVCtrl" >&5
8416 $as_echo_n "checking for XNVCTRLQueryExtension in -lXNVCtrl... " >&6; }
8417 if ${ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension+:} false; then :
8418 $as_echo_n "(cached) " >&6
8420 ac_check_lib_save_LIBS=$LIBS
8421 LIBS="-lXNVCtrl $LIBS"
8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8425 /* Override any GCC internal prototype to avoid an error.
8426 Use char because int might match the return type of a GCC
8427 builtin and then its argument prototype would still apply. */
8431 char XNVCTRLQueryExtension ();
8435 return XNVCTRLQueryExtension ();
8440 if ac_fn_c_try_link "$LINENO"; then :
8441 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=yes
8443 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=no
8445 rm -f core conftest.err conftest.$ac_objext \
8446 conftest$ac_exeext conftest.$ac_ext
8447 LIBS=$ac_check_lib_save_LIBS
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&5
8450 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&6; }
8451 if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" = xyes; then :
8452 NVIDIA_LIBS="-lXNVCtrl -lX11 -lXext"
8454 $as_echo "#define HAVE_NVIDIA 1" >>confdefs.h
8461 if test -n "$NVIDIA_LIBS"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNITY" >&5
8476 $as_echo_n "checking for UNITY... " >&6; }
8478 if test -n "$UNITY_CFLAGS"; then
8479 pkg_cv_UNITY_CFLAGS="$UNITY_CFLAGS"
8480 elif test -n "$PKG_CONFIG"; then
8481 if test -n "$PKG_CONFIG" && \
8482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8483 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8486 test $ac_status = 0; }; then
8487 pkg_cv_UNITY_CFLAGS=`$PKG_CONFIG --cflags "unity >= 3.4.2" 2>/dev/null`
8488 test "x$?" != "x0" && pkg_failed=yes
8495 if test -n "$UNITY_LIBS"; then
8496 pkg_cv_UNITY_LIBS="$UNITY_LIBS"
8497 elif test -n "$PKG_CONFIG"; then
8498 if test -n "$PKG_CONFIG" && \
8499 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8500 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8503 test $ac_status = 0; }; then
8504 pkg_cv_UNITY_LIBS=`$PKG_CONFIG --libs "unity >= 3.4.2" 2>/dev/null`
8505 test "x$?" != "x0" && pkg_failed=yes
8515 if test $pkg_failed = yes; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 $as_echo "no" >&6; }
8519 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8520 _pkg_short_errors_supported=yes
8522 _pkg_short_errors_supported=no
8524 if test $_pkg_short_errors_supported = yes; then
8525 UNITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8527 UNITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8529 # Put the nasty error message in config.log where it belongs
8530 echo "$UNITY_PKG_ERRORS" >&5
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8533 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8534 elif test $pkg_failed = untried; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536 $as_echo "no" >&6; }
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8538 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8540 UNITY_CFLAGS=$pkg_cv_UNITY_CFLAGS
8541 UNITY_LIBS=$pkg_cv_UNITY_LIBS
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8543 $as_echo "yes" >&6; }
8545 $as_echo "#define HAVE_UNITY 1" >>confdefs.h
8550 if test -n "$UNITY_LIBS"; then
8561 # Check whether --with-libatiadl was given.
8562 if test "${with_libatiadl+set}" = set; then :
8563 withval=$with_libatiadl;
8564 ATIADL_DIR=${withval}
8565 CPPFLAGS="${CPPFLAGS} -I${ATIADL_DIR}/include"
8566 LIBS="$LIBS -L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst"
8572 for ac_header in adl_defines.h
8574 ac_fn_c_check_header_mongrel "$LINENO" "adl_defines.h" "ac_cv_header_adl_defines_h" "$ac_includes_default"
8575 if test "x$ac_cv_header_adl_defines_h" = xyes; then :
8576 cat >>confdefs.h <<_ACEOF
8577 #define HAVE_ADL_DEFINES_H 1
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ADL_Main_Control_Refresh in -latiadlxx" >&5
8580 $as_echo_n "checking for ADL_Main_Control_Refresh in -latiadlxx... " >&6; }
8581 if ${ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh+:} false; then :
8582 $as_echo_n "(cached) " >&6
8584 ac_check_lib_save_LIBS=$LIBS
8585 LIBS="-latiadlxx $LIBS"
8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587 /* end confdefs.h. */
8589 /* Override any GCC internal prototype to avoid an error.
8590 Use char because int might match the return type of a GCC
8591 builtin and then its argument prototype would still apply. */
8595 char ADL_Main_Control_Refresh ();
8599 return ADL_Main_Control_Refresh ();
8604 if ac_fn_c_try_link "$LINENO"; then :
8605 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=yes
8607 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=no
8609 rm -f core conftest.err conftest.$ac_objext \
8610 conftest$ac_exeext conftest.$ac_ext
8611 LIBS=$ac_check_lib_save_LIBS
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&5
8614 $as_echo "$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&6; }
8615 if test "x$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" = xyes; then :
8618 $as_echo "#define HAVE_LIBATIADL 1" >>confdefs.h
8620 LIBATIADL_CFLAGS="-I${ATIADL_DIR}/include"
8621 LIBATIADL_LIBS="-L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst -latiadlxx -ldl"
8630 if test -n "$LIBATIADL_LIBS"; then
8641 ############### psensor-server
8643 # libmicrohttpd, mandatory for psensor-server
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMICROHTTPD" >&5
8648 $as_echo_n "checking for LIBMICROHTTPD... " >&6; }
8650 if test -n "$LIBMICROHTTPD_CFLAGS"; then
8651 pkg_cv_LIBMICROHTTPD_CFLAGS="$LIBMICROHTTPD_CFLAGS"
8652 elif test -n "$PKG_CONFIG"; then
8653 if test -n "$PKG_CONFIG" && \
8654 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8655 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8658 test $ac_status = 0; }; then
8659 pkg_cv_LIBMICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null`
8660 test "x$?" != "x0" && pkg_failed=yes
8667 if test -n "$LIBMICROHTTPD_LIBS"; then
8668 pkg_cv_LIBMICROHTTPD_LIBS="$LIBMICROHTTPD_LIBS"
8669 elif test -n "$PKG_CONFIG"; then
8670 if test -n "$PKG_CONFIG" && \
8671 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8672 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8675 test $ac_status = 0; }; then
8676 pkg_cv_LIBMICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null`
8677 test "x$?" != "x0" && pkg_failed=yes
8687 if test $pkg_failed = yes; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8689 $as_echo "no" >&6; }
8691 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8692 _pkg_short_errors_supported=yes
8694 _pkg_short_errors_supported=no
8696 if test $_pkg_short_errors_supported = yes; then
8697 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8699 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8701 # Put the nasty error message in config.log where it belongs
8702 echo "$LIBMICROHTTPD_PKG_ERRORS" >&5
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8705 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8706 elif test $pkg_failed = untried; then
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8710 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8712 LIBMICROHTTPD_CFLAGS=$pkg_cv_LIBMICROHTTPD_CFLAGS
8713 LIBMICROHTTPD_LIBS=$pkg_cv_LIBMICROHTTPD_LIBS
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8715 $as_echo "yes" >&6; }
8717 $as_echo "#define HAVE_LIBMICROHTTPD 1" >>confdefs.h
8720 if test -n "$LIBMICROHTTPD_LIBS"; then
8722 LIBMICROHTTPD_FALSE='#'
8724 LIBMICROHTTPD_TRUE='#'
8725 LIBMICROHTTPD_FALSE=
8734 # Check whether --with-gtop was given.
8735 if test "${with_gtop+set}" = set; then :
8746 if test "$with_gtop" = "yes"; then
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTOP" >&5
8750 $as_echo_n "checking for GTOP... " >&6; }
8752 if test -n "$GTOP_CFLAGS"; then
8753 pkg_cv_GTOP_CFLAGS="$GTOP_CFLAGS"
8754 elif test -n "$PKG_CONFIG"; then
8755 if test -n "$PKG_CONFIG" && \
8756 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8757 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8760 test $ac_status = 0; }; then
8761 pkg_cv_GTOP_CFLAGS=`$PKG_CONFIG --cflags "libgtop-2.0" 2>/dev/null`
8762 test "x$?" != "x0" && pkg_failed=yes
8769 if test -n "$GTOP_LIBS"; then
8770 pkg_cv_GTOP_LIBS="$GTOP_LIBS"
8771 elif test -n "$PKG_CONFIG"; then
8772 if test -n "$PKG_CONFIG" && \
8773 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8774 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8777 test $ac_status = 0; }; then
8778 pkg_cv_GTOP_LIBS=`$PKG_CONFIG --libs "libgtop-2.0" 2>/dev/null`
8779 test "x$?" != "x0" && pkg_failed=yes
8789 if test $pkg_failed = yes; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791 $as_echo "no" >&6; }
8793 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8794 _pkg_short_errors_supported=yes
8796 _pkg_short_errors_supported=no
8798 if test $_pkg_short_errors_supported = yes; then
8799 GTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgtop-2.0" 2>&1`
8801 GTOP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgtop-2.0" 2>&1`
8803 # Put the nasty error message in config.log where it belongs
8804 echo "$GTOP_PKG_ERRORS" >&5
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8807 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8808 elif test $pkg_failed = untried; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 $as_echo "no" >&6; }
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8812 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8814 GTOP_CFLAGS=$pkg_cv_GTOP_CFLAGS
8815 GTOP_LIBS=$pkg_cv_GTOP_LIBS
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8817 $as_echo "yes" >&6; }
8819 $as_echo "#define HAVE_GTOP 1" >>confdefs.h
8823 if test -n "$GTOP_LIBS"; then
8834 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"
8837 for ac_prog in help2man
8839 # Extract the first word of "$ac_prog", so it can be a program name with args.
8840 set dummy $ac_prog; ac_word=$2
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8842 $as_echo_n "checking for $ac_word... " >&6; }
8843 if ${ac_cv_prog_HELP2MAN+:} false; then :
8844 $as_echo_n "(cached) " >&6
8846 if test -n "$HELP2MAN"; then
8847 ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
8849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 test -z "$as_dir" && as_dir=.
8854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8856 ac_cv_prog_HELP2MAN="$ac_prog"
8857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8866 HELP2MAN=$ac_cv_prog_HELP2MAN
8867 if test -n "$HELP2MAN"; then
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
8869 $as_echo "$HELP2MAN" >&6; }
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872 $as_echo "no" >&6; }
8876 test -n "$HELP2MAN" && break
8880 # Extract the first word of "asciidoc", so it can be a program name with args.
8881 set dummy asciidoc; ac_word=$2
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8883 $as_echo_n "checking for $ac_word... " >&6; }
8884 if ${ac_cv_prog_ASCIIDOC+:} false; then :
8885 $as_echo_n "(cached) " >&6
8887 if test -n "$ASCIIDOC"; then
8888 ac_cv_prog_ASCIIDOC="$ASCIIDOC" # Let the user override the test.
8890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894 test -z "$as_dir" && as_dir=.
8895 for ac_exec_ext in '' $ac_executable_extensions; do
8896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8897 ac_cv_prog_ASCIIDOC="yes"
8898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8907 ASCIIDOC=$ac_cv_prog_ASCIIDOC
8908 if test -n "$ASCIIDOC"; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
8910 $as_echo "$ASCIIDOC" >&6; }
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913 $as_echo "no" >&6; }
8917 if test -n "$ASCIIDOC"; then
8926 # Extract the first word of "cppcheck", so it can be a program name with args.
8927 set dummy cppcheck; ac_word=$2
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8929 $as_echo_n "checking for $ac_word... " >&6; }
8930 if ${ac_cv_prog_HAVE_CPPCHECK+:} false; then :
8931 $as_echo_n "(cached) " >&6
8933 if test -n "$HAVE_CPPCHECK"; then
8934 ac_cv_prog_HAVE_CPPCHECK="$HAVE_CPPCHECK" # Let the user override the test.
8936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8940 test -z "$as_dir" && as_dir=.
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8943 ac_cv_prog_HAVE_CPPCHECK="yes"
8944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 HAVE_CPPCHECK=$ac_cv_prog_HAVE_CPPCHECK
8954 if test -n "$HAVE_CPPCHECK"; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CPPCHECK" >&5
8956 $as_echo "$HAVE_CPPCHECK" >&6; }
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959 $as_echo "no" >&6; }
8963 if test -n "$HAVE_CPPCHECK"; then
8972 cat >confcache <<\_ACEOF
8973 # This file is a shell script that caches the results of configure
8974 # tests run on this system so they can be shared between configure
8975 # scripts and configure runs, see configure's option --config-cache.
8976 # It is not useful on other systems. If it contains results you don't
8977 # want to keep, you may remove or edit it.
8979 # config.status only pays attention to the cache file if you give it
8980 # the --recheck option to rerun configure.
8982 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8983 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8988 # The following way of writing the cache mishandles newlines in values,
8989 # but we know of no workaround that is simple, portable, and efficient.
8990 # So, we kill variables containing newlines.
8991 # Ultrix sh set writes to stderr and can't be redirected directly,
8992 # and sets the high bit in the cache file unless we assign to the vars.
8994 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8995 eval ac_val=\$$ac_var
8999 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9000 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9003 _ | IFS | as_nl) ;; #(
9004 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9005 *) { eval $ac_var=; unset $ac_var;} ;;
9011 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9012 *${as_nl}ac_space=\ *)
9013 # `set' does not quote correctly, so add quotes: double-quote
9014 # substitution turns \\\\ into \\, and sed turns \\ into \.
9017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9020 # `set' quotes correctly as required by POSIX, so do not add quotes.
9021 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9030 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9032 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9034 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9035 if test -w "$cache_file"; then
9036 if test "x$cache_file" != "x/dev/null"; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9038 $as_echo "$as_me: updating cache $cache_file" >&6;}
9039 if test ! -f "$cache_file" || test -h "$cache_file"; then
9040 cat confcache >"$cache_file"
9042 case $cache_file in #(
9044 mv -f confcache "$cache_file"$$ &&
9045 mv -f "$cache_file"$$ "$cache_file" ;; #(
9047 mv -f confcache "$cache_file" ;;
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9053 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9058 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9059 # Let make expand exec_prefix.
9060 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9062 DEFS=-DHAVE_CONFIG_H
9067 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9068 # 1. Remove the extension, and $U if already installed.
9069 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9070 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9072 # will be set to the directory where LIBOBJS objects are built.
9073 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9074 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9078 LTLIBOBJS=$ac_ltlibobjs
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
9082 $as_echo_n "checking that generated files are newer than configure... " >&6; }
9083 if test -n "$am_sleep_pid"; then
9084 # Hide warnings about reused PIDs.
9085 wait $am_sleep_pid 2>/dev/null
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
9088 $as_echo "done" >&6; }
9089 if test -n "$EXEEXT"; then
9091 am__EXEEXT_FALSE='#'
9097 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9098 as_fn_error $? "conditional \"AMDEP\" was never defined.
9099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9101 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9102 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9105 if test -z "${X11_TRUE}" && test -z "${X11_FALSE}"; then
9106 as_fn_error $? "conditional \"X11\" was never defined.
9107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9109 if test -z "${XEXT_TRUE}" && test -z "${XEXT_FALSE}"; then
9110 as_fn_error $? "conditional \"XEXT\" was never defined.
9111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9113 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
9114 as_fn_error $? "conditional \"GTK\" was never defined.
9115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9117 if test -z "${ATASMART_TRUE}" && test -z "${ATASMART_FALSE}"; then
9118 as_fn_error $? "conditional \"ATASMART\" was never defined.
9119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9121 if test -z "${LIBNOTIFY_TRUE}" && test -z "${LIBNOTIFY_FALSE}"; then
9122 as_fn_error $? "conditional \"LIBNOTIFY\" was never defined.
9123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9125 if test -z "${APPINDICATOR_TRUE}" && test -z "${APPINDICATOR_FALSE}"; then
9126 as_fn_error $? "conditional \"APPINDICATOR\" was never defined.
9127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9129 if test -z "${CURL_TRUE}" && test -z "${CURL_FALSE}"; then
9130 as_fn_error $? "conditional \"CURL\" was never defined.
9131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9133 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
9134 as_fn_error $? "conditional \"JSON\" was never defined.
9135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9137 if test -z "${NVIDIA_TRUE}" && test -z "${NVIDIA_FALSE}"; then
9138 as_fn_error $? "conditional \"NVIDIA\" was never defined.
9139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9141 if test -z "${UNITY_TRUE}" && test -z "${UNITY_FALSE}"; then
9142 as_fn_error $? "conditional \"UNITY\" was never defined.
9143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9145 if test -z "${LIBATIADL_TRUE}" && test -z "${LIBATIADL_FALSE}"; then
9146 as_fn_error $? "conditional \"LIBATIADL\" was never defined.
9147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9149 if test -z "${LIBMICROHTTPD_TRUE}" && test -z "${LIBMICROHTTPD_FALSE}"; then
9150 as_fn_error $? "conditional \"LIBMICROHTTPD\" was never defined.
9151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9153 if test -z "${GTOP_TRUE}" && test -z "${GTOP_FALSE}"; then
9154 as_fn_error $? "conditional \"GTOP\" was never defined.
9155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9157 if test -z "${ASCIIDOC_TRUE}" && test -z "${ASCIIDOC_FALSE}"; then
9158 as_fn_error $? "conditional \"ASCIIDOC\" was never defined.
9159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9161 if test -z "${CPPCHECK_TRUE}" && test -z "${CPPCHECK_FALSE}"; then
9162 as_fn_error $? "conditional \"CPPCHECK\" was never defined.
9163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9166 : "${CONFIG_STATUS=./config.status}"
9168 ac_clean_files_save=$ac_clean_files
9169 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9171 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9173 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9175 # Generated by $as_me.
9176 # Run this file to recreate the current configuration.
9177 # Compiler output produced by configure, useful for debugging
9178 # configure, is in config.log if it exists.
9184 SHELL=\${CONFIG_SHELL-$SHELL}
9187 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9188 ## -------------------- ##
9189 ## M4sh Initialization. ##
9190 ## -------------------- ##
9192 # Be more Bourne compatible
9193 DUALCASE=1; export DUALCASE # for MKS sh
9194 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9197 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9198 # is contrary to our usage. Disable this feature.
9199 alias -g '${1+"$@"}'='"$@"'
9200 setopt NO_GLOB_SUBST
9202 case `(set -o) 2>/dev/null` in #(
9214 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9215 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9216 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9217 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9218 # Prefer a ksh shell builtin over an external printf program on Solaris,
9219 # but without wasting forks for bash or zsh.
9220 if test -z "$BASH_VERSION$ZSH_VERSION" \
9221 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9222 as_echo='print -r --'
9223 as_echo_n='print -rn --'
9224 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9225 as_echo='printf %s\n'
9226 as_echo_n='printf %s'
9228 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9229 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9230 as_echo_n='/usr/ucb/echo -n'
9232 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9233 as_echo_n_body='eval
9237 expr "X$arg" : "X\\(.*\\)$as_nl";
9238 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9240 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9242 export as_echo_n_body
9243 as_echo_n='sh -c $as_echo_n_body as_echo'
9246 as_echo='sh -c $as_echo_body as_echo'
9249 # The user is always right.
9250 if test "${PATH_SEPARATOR+set}" != set; then
9252 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9253 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9260 # We need space, tab and new line, in precisely that order. Quoting is
9261 # there to prevent editors from complaining about space-tab.
9262 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9263 # splitting by setting IFS to empty value.)
9266 # Find who we are. Look in the path if we contain no directory separator.
9269 *[\\/]* ) as_myself=$0 ;;
9270 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 test -z "$as_dir" && as_dir=.
9275 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9281 # We did not find ourselves, most probably we were run as `sh COMMAND'
9282 # in which case we are not to be found in the path.
9283 if test "x$as_myself" = x; then
9286 if test ! -f "$as_myself"; then
9287 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9291 # Unset variables that we do not need and which cause bugs (e.g. in
9292 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9293 # suppresses any "Segmentation fault" message there. '((' could
9294 # trigger a bug in pdksh 5.2.14.
9295 for as_var in BASH_ENV ENV MAIL MAILPATH
9296 do eval test x\${$as_var+set} = xset \
9297 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9310 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9313 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9314 # ----------------------------------------
9315 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9316 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9317 # script with STATUS, using 1 if that was 0.
9320 as_status=$1; test $as_status -eq 0 && as_status=1
9322 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9323 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9325 $as_echo "$as_me: error: $2" >&2
9326 as_fn_exit $as_status
9330 # as_fn_set_status STATUS
9331 # -----------------------
9332 # Set $? to STATUS, without forking.
9336 } # as_fn_set_status
9340 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9350 # Portably unset VAR.
9353 { eval $1=; unset $1;}
9355 as_unset=as_fn_unset
9356 # as_fn_append VAR VALUE
9357 # ----------------------
9358 # Append the text in VALUE to the end of the definition contained in VAR. Take
9359 # advantage of any shell optimizations that allow amortized linear growth over
9360 # repeated appends, instead of the typical quadratic growth present in naive
9362 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9363 eval 'as_fn_append ()
9374 # as_fn_arith ARG...
9375 # ------------------
9376 # Perform arithmetic evaluation on the ARGs, and store the result in the
9377 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9378 # must be portable across $(()) and expr.
9379 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9380 eval 'as_fn_arith ()
9387 as_val=`expr "$@" || test $? -eq 1`
9392 if expr a : '\(a\)' >/dev/null 2>&1 &&
9393 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9399 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9400 as_basename=basename
9405 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9411 as_me=`$as_basename -- "$0" ||
9412 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9413 X"$0" : 'X\(//\)$' \| \
9414 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9416 sed '/^.*\/\([^/][^/]*\)\/*$/{
9430 # Avoid depending upon Character Ranges.
9431 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9432 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9433 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9434 as_cr_digits='0123456789'
9435 as_cr_alnum=$as_cr_Letters$as_cr_digits
9437 ECHO_C= ECHO_N= ECHO_T=
9438 case `echo -n x` in #(((((
9440 case `echo 'xy\c'` in
9441 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9443 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9450 rm -f conf$$ conf$$.exe conf$$.file
9451 if test -d conf$$.dir; then
9452 rm -f conf$$.dir/conf$$.file
9455 mkdir conf$$.dir 2>/dev/null
9457 if (echo >conf$$.file) 2>/dev/null; then
9458 if ln -s conf$$.file conf$$ 2>/dev/null; then
9460 # ... but there are two gotchas:
9461 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9462 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9463 # In both cases, we have to default to `cp -pR'.
9464 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9466 elif ln conf$$.file conf$$ 2>/dev/null; then
9474 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9475 rmdir conf$$.dir 2>/dev/null
9480 # Create "$as_dir" as a directory, including parents if necessary.
9485 -*) as_dir=./$as_dir;;
9487 test -d "$as_dir" || eval $as_mkdir_p || {
9491 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9492 *) as_qdir=$as_dir;;
9494 as_dirs="'$as_qdir' $as_dirs"
9495 as_dir=`$as_dirname -- "$as_dir" ||
9496 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9497 X"$as_dir" : 'X\(//\)[^/]' \| \
9498 X"$as_dir" : 'X\(//\)$' \| \
9499 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9500 $as_echo X"$as_dir" |
9501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9518 test -d "$as_dir" && break
9520 test -z "$as_dirs" || eval "mkdir $as_dirs"
9521 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9525 if mkdir -p . 2>/dev/null; then
9526 as_mkdir_p='mkdir -p "$as_dir"'
9528 test -d ./-p && rmdir ./-p
9533 # as_fn_executable_p FILE
9534 # -----------------------
9535 # Test if FILE is an executable regular file.
9536 as_fn_executable_p ()
9538 test -f "$1" && test -x "$1"
9539 } # as_fn_executable_p
9541 as_executable_p=as_fn_executable_p
9543 # Sed expression to map a string onto a valid CPP name.
9544 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9546 # Sed expression to map a string onto a valid variable name.
9547 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9551 ## ----------------------------------- ##
9552 ## Main body of $CONFIG_STATUS script. ##
9553 ## ----------------------------------- ##
9555 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9558 # Save the log message, to keep $0 and so on meaningful, and to
9559 # report actual input values of CONFIG_FILES etc. instead of their
9560 # values after options handling.
9562 This file was extended by psensor $as_me 1.1.1, which was
9563 generated by GNU Autoconf 2.69. Invocation command line was
9565 CONFIG_FILES = $CONFIG_FILES
9566 CONFIG_HEADERS = $CONFIG_HEADERS
9567 CONFIG_LINKS = $CONFIG_LINKS
9568 CONFIG_COMMANDS = $CONFIG_COMMANDS
9571 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9576 case $ac_config_files in *"
9577 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9580 case $ac_config_headers in *"
9581 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9586 # Files that config.status was made for.
9587 config_files="$ac_config_files"
9588 config_headers="$ac_config_headers"
9589 config_commands="$ac_config_commands"
9593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9595 \`$as_me' instantiates files and other configuration actions
9596 from templates according to the current configuration. Unless the files
9597 and actions are specified as TAGs, all are instantiated by default.
9599 Usage: $0 [OPTION]... [TAG]...
9601 -h, --help print this help, then exit
9602 -V, --version print version number and configuration settings, then exit
9603 --config print configuration, then exit
9604 -q, --quiet, --silent
9605 do not print progress messages
9606 -d, --debug don't remove temporary files
9607 --recheck update $as_me by reconfiguring in the same conditions
9608 --file=FILE[:TEMPLATE]
9609 instantiate the configuration file FILE
9610 --header=FILE[:TEMPLATE]
9611 instantiate the configuration header FILE
9613 Configuration files:
9616 Configuration headers:
9619 Configuration commands:
9622 Report bugs to <jeanfi@gmail.com>.
9623 psensor home page: <http://wpitchoune.net/psensor>."
9626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9627 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9629 psensor config.status 1.1.1
9630 configured by $0, generated by GNU Autoconf 2.69,
9631 with options \\"\$ac_cs_config\\"
9633 Copyright (C) 2012 Free Software Foundation, Inc.
9634 This config.status script is free software; the Free Software Foundation
9635 gives unlimited permission to copy, distribute and modify it."
9642 test -n "\$AWK" || AWK=awk
9645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9646 # The default lists apply if the user does not specify any file.
9652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9653 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9657 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9669 # Handling of the options.
9670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9672 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9673 $as_echo "$ac_cs_version"; exit ;;
9674 --config | --confi | --conf | --con | --co | --c )
9675 $as_echo "$ac_cs_config"; exit ;;
9676 --debug | --debu | --deb | --de | --d | -d )
9678 --file | --fil | --fi | --f )
9681 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9682 '') as_fn_error $? "missing file argument" ;;
9684 as_fn_append CONFIG_FILES " '$ac_optarg'"
9685 ac_need_defaults=false;;
9686 --header | --heade | --head | --hea )
9689 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9691 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9692 ac_need_defaults=false;;
9694 # Conflict between --help and --header
9695 as_fn_error $? "ambiguous option: \`$1'
9696 Try \`$0 --help' for more information.";;
9697 --help | --hel | -h )
9698 $as_echo "$ac_cs_usage"; exit ;;
9699 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9700 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9704 -*) as_fn_error $? "unrecognized option: \`$1'
9705 Try \`$0 --help' for more information." ;;
9707 *) as_fn_append ac_config_targets " $1"
9708 ac_need_defaults=false ;;
9714 ac_configure_extra_args=
9716 if $ac_cs_silent; then
9718 ac_configure_extra_args="$ac_configure_extra_args --silent"
9722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9723 if \$ac_cs_recheck; then
9724 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9726 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9727 CONFIG_SHELL='$SHELL'
9733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9737 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9738 ## Running $as_me. ##
9744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9748 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9749 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9750 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9751 # from automake < 1.5.
9752 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9753 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9754 LINGUAS="${LINGUAS-%UNSET%}"
9759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9761 # Handling of arguments.
9762 for ac_config_target in $ac_config_targets
9764 case $ac_config_target in
9765 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9766 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9767 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9768 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9769 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9770 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9771 "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
9772 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
9773 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
9774 "icons/hicolor/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/scalable/Makefile" ;;
9775 "icons/hicolor/14x14/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/14x14/Makefile" ;;
9776 "icons/hicolor/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/16x16/Makefile" ;;
9777 "icons/hicolor/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/22x22/Makefile" ;;
9778 "icons/hicolor/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/24x24/Makefile" ;;
9779 "icons/hicolor/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/32x32/Makefile" ;;
9780 "icons/hicolor/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/48x48/Makefile" ;;
9781 "icons/hicolor/64x64/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/64x64/Makefile" ;;
9782 "icons/ubuntu-mono-dark/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/status/22/Makefile" ;;
9783 "icons/ubuntu-mono-light/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-light/status/22/Makefile" ;;
9784 "icons/ubuntu-mono-dark/apps/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/apps/22/Makefile" ;;
9785 "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
9786 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9787 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9789 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9794 # If the user did not use the arguments to specify the items to instantiate,
9795 # then the envvar interface is used. Set only those that are not.
9796 # We use the long form for the default assignment because of an extremely
9797 # bizarre bug on SunOS 4.1.3.
9798 if $ac_need_defaults; then
9799 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9800 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9801 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9804 # Have a temporary directory for convenience. Make it in the build tree
9805 # simply because there is no reason against having it here, and in addition,
9806 # creating and moving files from /tmp can sometimes cause problems.
9807 # Hook for its removal unless debugging.
9808 # Note that there is a small window in which the directory will not be cleaned:
9809 # after its creation but before its name has been assigned to `$tmp'.
9813 trap 'exit_status=$?
9815 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9817 trap 'as_fn_exit 1' 1 2 13 15
9819 # Create a (secure) tmp directory for tmp files.
9822 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9826 tmp=./conf$$-$RANDOM
9827 (umask 077 && mkdir "$tmp")
9828 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9831 # Set up the scripts for CONFIG_FILES section.
9832 # No need to generate them if there are no CONFIG_FILES.
9833 # This happens for instance with `./config.status config.h'.
9834 if test -n "$CONFIG_FILES"; then
9837 ac_cr=`echo X | tr X '\015'`
9838 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9839 # But we know of no other shell where ac_cr would be empty at this
9840 # point, so we can use a bashism as a fallback.
9841 if test "x$ac_cr" = x; then
9842 eval ac_cr=\$\'\\r\'
9844 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9845 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9851 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9856 echo "cat >conf$$subs.awk <<_ACEOF" &&
9857 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9860 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9861 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9863 for ac_last_try in false false false false false :; do
9864 . ./conf$$subs.sh ||
9865 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9867 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9868 if test $ac_delim_n = $ac_delim_num; then
9870 elif $ac_last_try; then
9871 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9873 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9879 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9883 s/^/S["/; s/!.*/"]=/
9893 s/\(.\{148\}\)..*/\1/
9895 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9900 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9907 s/\(.\{148\}\)..*/\1/
9909 s/["\\]/\\&/g; s/^/"/; s/$/"/
9913 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9918 ' <conf$$subs.awk | sed '
9923 ' >>$CONFIG_STATUS || ac_write_fail=1
9924 rm -f conf$$subs.awk
9925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9927 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9928 for (key in S) S_is_set[key] = 1
9934 nfields = split(line, field, "@")
9936 len = length(field[1])
9937 for (i = 2; i < nfields; i++) {
9939 keylen = length(key)
9940 if (S_is_set[key]) {
9942 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9943 len += length(value) + length(field[++i])
9954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9955 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9956 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9959 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9960 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9963 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9964 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9965 # trailing colons and then remove the whole line if VPATH becomes empty
9966 # (actually we leave an empty line to preserve line numbers).
9967 if test "x$srcdir" = x.; then
9968 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9987 fi # test -n "$CONFIG_FILES"
9989 # Set up the scripts for CONFIG_HEADERS section.
9990 # No need to generate them if there are no CONFIG_HEADERS.
9991 # This happens for instance with `./config.status Makefile'.
9992 if test -n "$CONFIG_HEADERS"; then
9993 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9997 # Transform confdefs.h into an awk script `defines.awk', embedded as
9998 # here-document in config.status, that substitutes the proper values into
9999 # config.h.in to produce config.h.
10001 # Create a delimiter string that does not exist in confdefs.h, to ease
10002 # handling of long lines.
10004 for ac_last_try in false false :; do
10005 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10006 if test -z "$ac_tt"; then
10008 elif $ac_last_try; then
10009 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10011 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10015 # For the awk script, D is an array of macro values keyed by name,
10016 # likewise P contains macro parameters if any. Preserve backslash
10017 # newline sequences.
10019 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10021 s/.\{148\}/&'"$ac_delim"'/g
10024 s/^[ ]*#[ ]*define[ ][ ]*/ /
10031 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10033 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10037 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10038 D["\1"]=" \3\\\\\\n"\\/p
10040 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10045 s/.\{148\}/&'"$ac_delim"'/g
10050 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10053 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10055 ' <confdefs.h | sed '
10056 s/'"$ac_delim"'/"\\\
10057 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10060 for (key in D) D_is_set[key] = 1
10063 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10065 split(line, arg, " ")
10066 if (arg[1] == "#") {
10070 defundef = substr(arg[1], 2)
10073 split(mac1, mac2, "(") #)
10075 prefix = substr(line, 1, index(line, defundef) - 1)
10076 if (D_is_set[macro]) {
10077 # Preserve the white space surrounding the "#".
10078 print prefix "define", macro P[macro] D[macro]
10081 # Replace #undef with comments. This is necessary, for example,
10082 # in the case of _POSIX_SOURCE, which is predefined and required
10083 # on some systems where configure will not decide to define it.
10084 if (defundef == "undef") {
10085 print "/*", prefix defundef, macro, "*/"
10093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10094 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10095 fi # test -n "$CONFIG_HEADERS"
10098 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10103 :[FHLC]) ac_mode=$ac_tag; continue;;
10105 case $ac_mode$ac_tag in
10107 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10108 :[FH]-) ac_tag=-:-;;
10109 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10126 -) ac_f="$ac_tmp/stdin";;
10127 *) # Look for the file first in the build tree, then in the source tree
10128 # (if the path is not absolute). The absolute path cannot be DOS-style,
10129 # because $ac_f cannot contain `:'.
10133 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10135 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10137 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10138 as_fn_append ac_file_inputs " '$ac_f'"
10141 # Let's still pretend it is `configure' which instantiates (i.e., don't
10142 # use $as_me), people would be surprised to read:
10143 # /* config.h. Generated by config.status. */
10144 configure_input='Generated from '`
10145 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10147 if test x"$ac_file" != x-; then
10148 configure_input="$ac_file. $configure_input"
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10150 $as_echo "$as_me: creating $ac_file" >&6;}
10152 # Neutralize special characters interpreted by sed in replacement strings.
10153 case $configure_input in #(
10154 *\&* | *\|* | *\\* )
10155 ac_sed_conf_input=`$as_echo "$configure_input" |
10156 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10157 *) ac_sed_conf_input=$configure_input;;
10161 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10167 ac_dir=`$as_dirname -- "$ac_file" ||
10168 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10169 X"$ac_file" : 'X\(//\)[^/]' \| \
10170 X"$ac_file" : 'X\(//\)$' \| \
10171 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10172 $as_echo X"$ac_file" |
10173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10177 /^X\(\/\/\)[^/].*/{
10190 as_dir="$ac_dir"; as_fn_mkdir_p
10194 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10196 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10197 # A ".." for each directory in $ac_dir_suffix.
10198 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10199 case $ac_top_builddir_sub in
10200 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10201 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10204 ac_abs_top_builddir=$ac_pwd
10205 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10206 # for backward compatibility:
10207 ac_top_builddir=$ac_top_build_prefix
10210 .) # We are building in place.
10212 ac_top_srcdir=$ac_top_builddir_sub
10213 ac_abs_top_srcdir=$ac_pwd ;;
10214 [\\/]* | ?:[\\/]* ) # Absolute name.
10215 ac_srcdir=$srcdir$ac_dir_suffix;
10216 ac_top_srcdir=$srcdir
10217 ac_abs_top_srcdir=$srcdir ;;
10218 *) # Relative name.
10219 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10220 ac_top_srcdir=$ac_top_build_prefix$srcdir
10221 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10223 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10233 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10234 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10236 ac_MKDIR_P=$MKDIR_P
10238 [\\/$]* | ?:[\\/]* ) ;;
10239 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10244 # If the template does not know about datarootdir, expand it.
10245 # FIXME: This hack should be removed a few years after 2.60.
10246 ac_datarootdir_hack=; ac_datarootdir_seen=
10257 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10258 *datarootdir*) ac_datarootdir_seen=yes;;
10259 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10261 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10264 ac_datarootdir_hack='
10265 s&@datadir@&$datadir&g
10266 s&@docdir@&$docdir&g
10267 s&@infodir@&$infodir&g
10268 s&@localedir@&$localedir&g
10269 s&@mandir@&$mandir&g
10270 s&\\\${datarootdir}&$datarootdir&g' ;;
10274 # Neutralize VPATH when `$srcdir' = `.'.
10275 # Shell code in configure.ac might set extrasub.
10276 # FIXME: do we really want to maintain this feature?
10277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10278 ac_sed_extra="$ac_vpsub
10281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10283 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10284 s|@configure_input@|$ac_sed_conf_input|;t t
10285 s&@top_builddir@&$ac_top_builddir_sub&;t t
10286 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10287 s&@srcdir@&$ac_srcdir&;t t
10288 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10289 s&@top_srcdir@&$ac_top_srcdir&;t t
10290 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10291 s&@builddir@&$ac_builddir&;t t
10292 s&@abs_builddir@&$ac_abs_builddir&;t t
10293 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10294 s&@INSTALL@&$ac_INSTALL&;t t
10295 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10296 $ac_datarootdir_hack
10298 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10299 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10301 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10302 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10303 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10304 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10306 which seems to be undefined. Please make sure it is defined" >&5
10307 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10308 which seems to be undefined. Please make sure it is defined" >&2;}
10310 rm -f "$ac_tmp/stdin"
10312 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10313 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10315 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10321 if test x"$ac_file" != x-; then
10323 $as_echo "/* $configure_input */" \
10324 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10325 } >"$ac_tmp/config.h" \
10326 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10327 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10329 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10332 mv "$ac_tmp/config.h" "$ac_file" \
10333 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10336 $as_echo "/* $configure_input */" \
10337 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10338 || as_fn_error $? "could not create -" "$LINENO" 5
10340 # Compute "$ac_file"'s index in $config_headers.
10343 for _am_header in $config_headers :; do
10344 case $_am_header in
10345 $_am_arg | $_am_arg:* )
10348 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10351 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10352 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10353 X"$_am_arg" : 'X\(//\)[^/]' \| \
10354 X"$_am_arg" : 'X\(//\)$' \| \
10355 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10356 $as_echo X"$_am_arg" |
10357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10361 /^X\(\/\/\)[^/].*/{
10373 s/.*/./; q'`/stamp-h$_am_stamp_count
10376 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10377 $as_echo "$as_me: executing $ac_file commands" >&6;}
10382 case $ac_file$ac_mode in
10383 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10384 # Older Autoconf quotes --file arguments for eval, but not when files
10385 # are listed without --file. Let's play safe and only enable the eval
10386 # if we detect the quoting.
10387 case $CONFIG_FILES in
10388 *\'*) eval set x "$CONFIG_FILES" ;;
10389 *) set x $CONFIG_FILES ;;
10394 # Strip MF so we end up with the name of the file.
10395 mf=`echo "$mf" | sed -e 's/:.*$//'`
10396 # Check whether this is an Automake generated Makefile or not.
10397 # We used to match only the files named 'Makefile.in', but
10398 # some people rename them; so instead we look at the file content.
10399 # Grep'ing the first line is not enough: some people post-process
10400 # each Makefile.in and add a new line on top of each file to say so.
10401 # Grep'ing the whole file is not good either: AIX grep has a line
10402 # limit of 2048, but all sed's we know have understand at least 4000.
10403 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10404 dirpart=`$as_dirname -- "$mf" ||
10405 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10406 X"$mf" : 'X\(//\)[^/]' \| \
10407 X"$mf" : 'X\(//\)$' \| \
10408 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10414 /^X\(\/\/\)[^/].*/{
10430 # Extract the definition of DEPDIR, am__include, and am__quote
10431 # from the Makefile without running 'make'.
10432 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10433 test -z "$DEPDIR" && continue
10434 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10435 test -z "$am__include" && continue
10436 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10437 # Find all dependency output files, they are included files with
10438 # $(DEPDIR) in their names. We invoke sed twice because it is the
10439 # simplest approach to changing $(DEPDIR) to its actual value in the
10441 for file in `sed -n "
10442 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10443 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
10444 # Make sure the directory exists.
10445 test -f "$dirpart/$file" && continue
10446 fdir=`$as_dirname -- "$file" ||
10447 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10448 X"$file" : 'X\(//\)[^/]' \| \
10449 X"$file" : 'X\(//\)$' \| \
10450 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10451 $as_echo X"$file" |
10452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10456 /^X\(\/\/\)[^/].*/{
10469 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10470 # echo "creating $dirpart/$file"
10471 echo '# dummy' > "$dirpart/$file"
10476 "po-directories":C)
10477 for ac_file in $CONFIG_FILES; do
10478 # Support "outfile[:infile[:infile...]]"
10480 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10482 # PO directories have a Makefile.in generated from Makefile.in.in.
10483 case "$ac_file" in */Makefile.in)
10484 # Adjust a relative srcdir.
10485 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10486 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10487 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10488 # In autoconf-2.13 it is called $ac_given_srcdir.
10489 # In autoconf-2.50 it is called $srcdir.
10490 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10491 case "$ac_given_srcdir" in
10492 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10493 /*) top_srcdir="$ac_given_srcdir" ;;
10494 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10496 # Treat a directory as a PO directory if and only if it has a
10497 # POTFILES.in file. This allows packages to have multiple PO
10498 # directories under different names or in different locations.
10499 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10500 rm -f "$ac_dir/POTFILES"
10501 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10502 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10503 POMAKEFILEDEPS="POTFILES.in"
10504 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10505 # on $ac_dir but don't depend on user-specified configuration
10507 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10508 # The LINGUAS file contains the set of available languages.
10509 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10510 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10512 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10513 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10514 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10515 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10517 # The set of available languages was given in configure.in.
10518 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10519 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10522 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10523 # Compute UPDATEPOFILES
10524 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10525 # Compute DUMMYPOFILES
10526 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10528 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10529 case "$ac_given_srcdir" in
10531 *) srcdirpre='$(srcdir)/' ;;
10537 for lang in $ALL_LINGUAS; do
10538 POFILES="$POFILES $srcdirpre$lang.po"
10539 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10540 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10541 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10543 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10544 # environment variable.
10546 if test -n "$ALL_LINGUAS"; then
10547 for presentlang in $ALL_LINGUAS; do
10549 if test "%UNSET%" != "$LINGUAS"; then
10550 desiredlanguages="$LINGUAS"
10552 desiredlanguages="$ALL_LINGUAS"
10554 for desiredlang in $desiredlanguages; do
10555 # Use the presentlang catalog if desiredlang is
10556 # a. equal to presentlang, or
10557 # b. a variant of presentlang (because in this case,
10558 # presentlang can be used as a fallback for messages
10559 # which are not translated in the desiredlang catalog).
10560 case "$desiredlang" in
10561 "$presentlang"*) useit=yes;;
10564 if test $useit = yes; then
10565 INST_LINGUAS="$INST_LINGUAS $presentlang"
10570 if test -n "$INST_LINGUAS"; then
10571 for lang in $INST_LINGUAS; do
10572 CATALOGS="$CATALOGS $lang.gmo"
10575 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10576 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"
10577 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10578 if test -f "$f"; then
10580 *.orig | *.bak | *~) ;;
10581 *) cat "$f" >> "$ac_dir/Makefile" ;;
10596 ac_clean_files=$ac_clean_files_save
10598 test $ac_write_fail = 0 ||
10599 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10602 # configure is writing to config.log, and then calls config.status.
10603 # config.status does its own redirection, appending to config.log.
10604 # Unfortunately, on DOS this fails, as config.log is still kept open
10605 # by configure, so config.status won't be able to write to it; its
10606 # output is simply discarded. So we exec the FD to /dev/null,
10607 # effectively closing config.log, so it can be properly (re)opened and
10608 # appended to by config.status. When coming back to configure, we
10609 # need to make the FD available again.
10610 if test "$no_create" != yes; then
10612 ac_config_status_args=
10613 test "$silent" = yes &&
10614 ac_config_status_args="$ac_config_status_args --quiet"
10616 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10618 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10619 # would make configure fail if this is the last instruction.
10620 $ac_cs_success || as_fn_exit 1
10622 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10624 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}