2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for psensor 0.6.1.11.
5 # Report bugs to <wpitchoune@gmail.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: wpitchoune@gmail.com about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
369 as_status=$1; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix=/usr/local
545 ac_config_libobj_dir=.
552 # Identity of this package.
553 PACKAGE_NAME='psensor'
554 PACKAGE_TARNAME='psensor'
555 PACKAGE_VERSION='0.6.1.11'
556 PACKAGE_STRING='psensor 0.6.1.11'
557 PACKAGE_BUGREPORT='wpitchoune@gmail.com'
558 PACKAGE_URL='http://wpitchoune.net/psensor'
560 ac_unique_file="src/compat.h"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
598 ac_subst_vars='am__EXEEXT_FALSE
661 XGETTEXT_EXTRA_OPTIONS
669 GETTEXT_MACRO_VERSION
701 INSTALL_STRIP_PROGRAM
743 program_transform_name
756 enable_option_checking
757 enable_dependency_tracking
766 ac_precious_vars='build_alias
803 # Initialize some variables set by options.
805 ac_init_version=false
806 ac_unrecognized_opts=
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
817 program_transform_name=s,x,x,
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868 # Accept the important Cygnus configure options, so we can diagnose typos.
870 case $ac_dashdash$ac_option in
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
892 cache_file=config.cache ;;
894 -datadir | --datadir | --datadi | --datad)
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
920 eval enable_$ac_useropt=no ;;
922 -docdir | --docdir | --docdi | --doc | --do)
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
946 eval enable_$ac_useropt=\$ac_optarg ;;
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
961 -help | --help | --hel | --he | -h)
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 htmldir=$ac_optarg ;;
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
991 -libdir | --libdir | --libdi | --libd)
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1082 -psdir | --psdir | --psdi | --psd | --ps)
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 sbindir=$ac_optarg ;;
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 sharedstatedir=$ac_optarg ;;
1108 -site | --site | --sit)
1110 -site=* | --site=* | --sit=*)
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1150 eval with_$ac_useropt=\$ac_optarg ;;
1152 -without-* | --without-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1166 eval with_$ac_useropt=no ;;
1169 # Obsolete; use --with-x.
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1186 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187 Try \`$0 --help' for more information"
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 case $ac_envvar in #(
1194 '' | [0-9]* | *[!_$as_cr_alnum]* )
1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1201 # FIXME: should be removed in autoconf 3.0.
1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1211 if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 as_fn_error $? "missing argument to $ac_option"
1216 if test -n "$ac_unrecognized_opts"; then
1217 case $enable_option_checking in
1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224 # Check all directory arguments for consistency.
1225 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226 datadir sysconfdir sharedstatedir localstatedir includedir \
1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228 libdir localedir mandir
1230 eval ac_val=\$$ac_var
1231 # Remove trailing slashes.
1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235 eval $ac_var=\$ac_val;;
1237 # Be sure to have absolute directory names.
1239 [\\/$]* | ?:[\\/]* ) continue;;
1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245 # There might be people who depend on the old broken behavior: `$host'
1246 # used to hold the argument of --host etc.
1247 # FIXME: To remove some day.
1250 target=$target_alias
1252 # FIXME: To remove some day.
1253 if test "x$host_alias" != x; then
1254 if test "x$build_alias" = x; then
1255 cross_compiling=maybe
1256 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1257 If a cross compiler is detected then cross compile mode will be used" >&2
1258 elif test "x$build_alias" != "x$host_alias"; then
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266 test "$silent" = yes && exec 6>/dev/null
1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di=`ls -di .` &&
1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272 as_fn_error $? "working directory cannot be determined"
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274 as_fn_error $? "pwd does not report name of working directory"
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$as_myself" ||
1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1284 X"$as_myself" : 'X\(//\)$' \| \
1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286 $as_echo X"$as_myself" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1309 ac_srcdir_defaulted=no
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319 # When building in place, set srcdir=.
1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 # Remove unnecessary trailing slashes from srcdir.
1324 # Double slashes in file names in object file debugging info
1325 # mess up M-x gdb in Emacs.
1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 for ac_var in $ac_precious_vars; do
1330 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_${ac_var}_value=\$${ac_var}
1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337 # Report the --help message.
1339 if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1343 \`configure' configures psensor 0.6.1.11 to adapt to many kinds of systems.
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348 VAR=VALUE. See below for descriptions of some of the useful variables.
1350 Defaults for the options are specified in brackets.
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
1357 -q, --quiet, --silent do not print \`checking ...' messages
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1363 Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
1365 [$ac_default_prefix]
1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 By default, \`make install' will install all the files in
1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372 for instance \`--prefix=\$HOME'.
1374 For better control, use the options below.
1376 Fine tuning of the installation directories:
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/psensor]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1401 --program-prefix=PREFIX prepend PREFIX to installed program names
1402 --program-suffix=SUFFIX append SUFFIX to installed program names
1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1406 --x-includes=DIR X include files are in DIR
1407 --x-libraries=DIR X library files are in DIR
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 if test -n "$ac_init_help"; then
1416 case $ac_init_help in
1417 short | recursive ) echo "Configuration of psensor 0.6.1.11:";;
1422 --disable-option-checking ignore unrecognized --enable/--with options
1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1425 --disable-dependency-tracking speeds up one-time build
1426 --enable-dependency-tracking do not reject slow dependency extractors
1427 --disable-nls do not use Native Language Support
1428 --disable-rpath do not hardcode runtime library paths
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-x use the X Window System
1434 --with-gnu-ld assume the C compiler uses GNU ld default=no
1435 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1436 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1437 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1438 --without-libintl-prefix don't search for libintl in includedir and libdir
1439 --with-gtop=yes|no use gtop
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1449 XMKMF Path to xmkmf, Makefile generator for X Window System
1451 PKG_CONFIG path to pkg-config utility
1453 directories to add to pkg-config's search path
1455 path overriding pkg-config's built-in search path
1456 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1457 X11_LIBS linker flags for X11, overriding pkg-config
1458 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1459 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1460 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1461 GTK_LIBS linker flags for GTK, overriding pkg-config
1463 C compiler flags for GCONF, overriding pkg-config
1464 GCONF_LIBS linker flags for GCONF, overriding pkg-config
1466 C compiler flags for LIBNOTIFY, overriding pkg-config
1468 linker flags for LIBNOTIFY, overriding pkg-config
1470 C compiler flags for APPINDICATOR, overriding pkg-config
1472 linker flags for APPINDICATOR, overriding pkg-config
1473 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1474 CURL_LIBS linker flags for CURL, overriding pkg-config
1475 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1476 JSON_LIBS linker flags for JSON, overriding pkg-config
1477 LUA_CFLAGS C compiler flags for LUA, overriding pkg-config
1478 LUA_LIBS linker flags for LUA, overriding pkg-config
1479 LIBMICROHTTPD_CFLAGS
1480 C compiler flags for LIBMICROHTTPD, overriding pkg-config
1482 linker flags for LIBMICROHTTPD, overriding pkg-config
1483 GTOP_CFLAGS C compiler flags for GTOP, overriding pkg-config
1484 GTOP_LIBS linker flags for GTOP, overriding pkg-config
1486 Use these variables to override the choices made by `configure' or to help
1487 it to find libraries and programs with nonstandard names/locations.
1489 Report bugs to <wpitchoune@gmail.com>.
1490 psensor home page: <http://wpitchoune.net/psensor>.
1495 if test "$ac_init_help" = "recursive"; then
1496 # If there are subdirs, report their specific --help.
1497 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498 test -d "$ac_dir" ||
1499 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1507 # A ".." for each directory in $ac_dir_suffix.
1508 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1509 case $ac_top_builddir_sub in
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1520 .) # We are building in place.
1522 ac_top_srcdir=$ac_top_builddir_sub
1523 ac_abs_top_srcdir=$ac_pwd ;;
1524 [\\/]* | ?:[\\/]* ) # Absolute name.
1525 ac_srcdir=$srcdir$ac_dir_suffix;
1526 ac_top_srcdir=$srcdir
1527 ac_abs_top_srcdir=$srcdir ;;
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535 cd "$ac_dir" || { ac_status=$?; continue; }
1536 # Check for guested configure.
1537 if test -f "$ac_srcdir/configure.gnu"; then
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540 elif test -f "$ac_srcdir/configure"; then
1542 $SHELL "$ac_srcdir/configure" --help=recursive
1544 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 cd "$ac_pwd" || { ac_status=$?; break; }
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1553 psensor configure 0.6.1.11
1554 generated by GNU Autoconf 2.67
1556 Copyright (C) 2010 Free Software Foundation, Inc.
1557 This configure script is free software; the Free Software Foundation
1558 gives unlimited permission to copy, distribute and modify it.
1563 ## ------------------------ ##
1564 ## Autoconf initialization. ##
1565 ## ------------------------ ##
1567 # ac_fn_c_try_compile LINENO
1568 # --------------------------
1569 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_compile ()
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 rm -f conftest.$ac_objext
1574 if { { ac_try="$ac_compile"
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_compile") 2>conftest.err
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && {
1590 test -z "$ac_c_werror_flag" ||
1591 test ! -s conftest.err
1592 } && test -s conftest.$ac_objext; then :
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1600 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1601 as_fn_set_status $ac_retval
1603 } # ac_fn_c_try_compile
1605 # ac_fn_c_try_cpp LINENO
1606 # ----------------------
1607 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 if { { ac_try="$ac_cpp conftest.$ac_ext"
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } > conftest.i && {
1627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1637 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638 as_fn_set_status $ac_retval
1642 # ac_fn_c_try_link LINENO
1643 # -----------------------
1644 # Try to link conftest.$ac_ext, and return whether this succeeded.
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext conftest$ac_exeext
1649 if { { ac_try="$ac_link"
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_link") 2>conftest.err
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest$ac_exeext && {
1668 test "$cross_compiling" = yes ||
1669 $as_test_x conftest$ac_exeext
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1678 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1679 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1680 # interfere with the next link command; also delete a directory that is
1681 # left behind by Apple's compiler. We do this before executing the actions.
1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684 as_fn_set_status $ac_retval
1686 } # ac_fn_c_try_link
1688 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1689 # -------------------------------------------------------
1690 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1691 # the include files in INCLUDES and setting the cache variable VAR
1693 ac_fn_c_check_header_mongrel ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if eval "test \"\${$3+set}\"" = set; then :
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698 $as_echo_n "checking for $2... " >&6; }
1699 if eval "test \"\${$3+set}\"" = set; then :
1700 $as_echo_n "(cached) " >&6
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 $as_echo "$ac_res" >&6; }
1706 # Is the header compilable?
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1708 $as_echo_n "checking $2 usability... " >&6; }
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1714 if ac_fn_c_try_compile "$LINENO"; then :
1715 ac_header_compiler=yes
1717 ac_header_compiler=no
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1721 $as_echo "$ac_header_compiler" >&6; }
1723 # Is the header present?
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1725 $as_echo_n "checking $2 presence... " >&6; }
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1730 if ac_fn_c_try_cpp "$LINENO"; then :
1731 ac_header_preproc=yes
1733 ac_header_preproc=no
1735 rm -f conftest.err conftest.i conftest.$ac_ext
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1737 $as_echo "$ac_header_preproc" >&6; }
1739 # So? What about this header?
1740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1743 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1745 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1749 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1751 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1753 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1755 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1757 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1758 ( $as_echo "## ----------------------------------- ##
1759 ## Report this to wpitchoune@gmail.com ##
1760 ## ----------------------------------- ##"
1761 ) | sed "s/^/$as_me: WARNING: /" >&2
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval "test \"\${$3+set}\"" = set; then :
1767 $as_echo_n "(cached) " >&6
1769 eval "$3=\$ac_header_compiler"
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777 } # ac_fn_c_check_header_mongrel
1779 # ac_fn_c_try_run LINENO
1780 # ----------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1782 # that executables *can* be run.
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 if { { ac_try="$ac_link"
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>&5
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1797 { { case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_try") 2>&5
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; }; }; then :
1809 $as_echo "$as_me: program exited with status $ac_status" >&5
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1813 ac_retval=$ac_status
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 as_fn_set_status $ac_retval
1821 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1822 # -------------------------------------------------------
1823 # Tests whether HEADER exists and can be compiled using the include files in
1824 # INCLUDES, setting the cache variable VAR accordingly.
1825 ac_fn_c_check_header_compile ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval "test \"\${$3+set}\"" = set; then :
1831 $as_echo_n "(cached) " >&6
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1838 if ac_fn_c_try_compile "$LINENO"; then :
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 } # ac_fn_c_check_header_compile
1852 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1853 # -------------------------------------------
1854 # Tests whether TYPE exists after having included INCLUDES, setting cache
1855 # variable VAR accordingly.
1856 ac_fn_c_check_type ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval "test \"\${$3+set}\"" = set; then :
1862 $as_echo_n "(cached) " >&6
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1877 if ac_fn_c_try_compile "$LINENO"; then :
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1890 if ac_fn_c_try_compile "$LINENO"; then :
1895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904 } # ac_fn_c_check_type
1906 # ac_fn_c_check_func LINENO FUNC VAR
1907 # ----------------------------------
1908 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1909 ac_fn_c_check_func ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if eval "test \"\${$3+set}\"" = set; then :
1915 $as_echo_n "(cached) " >&6
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1921 #define $2 innocuous_$2
1923 /* System header to define __stub macros and hopefully few prototypes,
1924 which can conflict with char $2 (); below.
1925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926 <limits.h> exists even on freestanding compilers. */
1929 # include <limits.h>
1931 # include <assert.h>
1936 /* Override any GCC internal prototype to avoid an error.
1937 Use char because int might match the return type of a GCC
1938 builtin and then its argument prototype would still apply. */
1943 /* The GNU C library defines this for functions which it implements
1944 to always fail with ENOSYS. Some functions are actually named
1945 something starting with __ and the normal name is an alias. */
1946 #if defined __stub_$2 || defined __stub___$2
1958 if ac_fn_c_try_link "$LINENO"; then :
1963 rm -f core conftest.err conftest.$ac_objext \
1964 conftest$ac_exeext conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971 } # ac_fn_c_check_func
1972 cat >config.log <<_ACEOF
1973 This file contains any messages produced by compilers while
1974 running configure, to aid debugging if configure makes a mistake.
1976 It was created by psensor $as_me 0.6.1.11, which was
1977 generated by GNU Autoconf 2.67. Invocation command line was
1989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2001 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 test -z "$as_dir" && as_dir=.
2013 $as_echo "PATH: $as_dir"
2029 # Keep a trace of the command line.
2030 # Strip out --no-create and --no-recursion so they do not pile up.
2031 # Strip out --silent because we don't want to record it for future runs.
2032 # Also quote any args containing shell meta-characters.
2033 # Make two passes to allow for proper duplicate-argument suppression.
2037 ac_must_keep_next=false
2043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2045 | -silent | --silent | --silen | --sile | --sil)
2048 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2051 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2053 as_fn_append ac_configure_args1 " '$ac_arg'"
2054 if test $ac_must_keep_next = true; then
2055 ac_must_keep_next=false # Got value, back to normal.
2058 *=* | --config-cache | -C | -disable-* | --disable-* \
2059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2061 | -with-* | --with-* | -without-* | --without-* | --x)
2062 case "$ac_configure_args0 " in
2063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2066 -* ) ac_must_keep_next=true ;;
2069 as_fn_append ac_configure_args " '$ac_arg'"
2074 { ac_configure_args0=; unset ac_configure_args0;}
2075 { ac_configure_args1=; unset ac_configure_args1;}
2077 # When interrupted or exit'd, cleanup temporary files, and complete
2078 # config.log. We remove comments because anyway the quotes in there
2079 # would cause problems or look ugly.
2080 # WARNING: Use '\'' to represent an apostrophe within the trap.
2081 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2082 trap 'exit_status=$?
2083 # Save into config.log some information that might help in debugging.
2087 $as_echo "## ---------------- ##
2088 ## Cache variables. ##
2089 ## ---------------- ##"
2091 # The following way of writing the cache mishandles newlines in values,
2093 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2094 eval ac_val=\$$ac_var
2098 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2102 _ | IFS | as_nl) ;; #(
2103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2104 *) { eval $ac_var=; unset $ac_var;} ;;
2109 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2110 *${as_nl}ac_space=\ *)
2112 "s/'\''/'\''\\\\'\'''\''/g;
2113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2123 $as_echo "## ----------------- ##
2124 ## Output variables. ##
2125 ## ----------------- ##"
2127 for ac_var in $ac_subst_vars
2129 eval ac_val=\$$ac_var
2131 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133 $as_echo "$ac_var='\''$ac_val'\''"
2137 if test -n "$ac_subst_files"; then
2138 $as_echo "## ------------------- ##
2139 ## File substitutions. ##
2140 ## ------------------- ##"
2142 for ac_var in $ac_subst_files
2144 eval ac_val=\$$ac_var
2146 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2148 $as_echo "$ac_var='\''$ac_val'\''"
2153 if test -s confdefs.h; then
2154 $as_echo "## ----------- ##
2161 test "$ac_signal" != 0 &&
2162 $as_echo "$as_me: caught signal $ac_signal"
2163 $as_echo "$as_me: exit $exit_status"
2165 rm -f core *.core core.conftest.* &&
2166 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2169 for ac_signal in 1 2 13 15; do
2170 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2175 rm -f -r conftest* confdefs.h
2177 $as_echo "/* confdefs.h */" > confdefs.h
2179 # Predefined preprocessor variables.
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_NAME "$PACKAGE_NAME"
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_STRING "$PACKAGE_STRING"
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_URL "$PACKAGE_URL"
2206 # Let the site file select an alternate cache file if it wants to.
2207 # Prefer an explicitly selected file to automatically selected ones.
2210 if test -n "$CONFIG_SITE"; then
2211 # We do not want a PATH search for config.site.
2212 case $CONFIG_SITE in #((
2213 -*) ac_site_file1=./$CONFIG_SITE;;
2214 */*) ac_site_file1=$CONFIG_SITE;;
2215 *) ac_site_file1=./$CONFIG_SITE;;
2217 elif test "x$prefix" != xNONE; then
2218 ac_site_file1=$prefix/share/config.site
2219 ac_site_file2=$prefix/etc/config.site
2221 ac_site_file1=$ac_default_prefix/share/config.site
2222 ac_site_file2=$ac_default_prefix/etc/config.site
2224 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2226 test "x$ac_site_file" = xNONE && continue
2227 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2229 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2230 sed 's/^/| /' "$ac_site_file" >&5
2232 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234 as_fn_error $? "failed to load site script $ac_site_file
2235 See \`config.log' for more details" "$LINENO" 5 ; }
2239 if test -r "$cache_file"; then
2240 # Some versions of bash will fail to source /dev/null (special files
2241 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2242 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2244 $as_echo "$as_me: loading cache $cache_file" >&6;}
2246 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2247 *) . "./$cache_file";;
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2252 $as_echo "$as_me: creating cache $cache_file" >&6;}
2256 gt_needs="$gt_needs "
2257 # Check that the precious variables saved in the cache have kept the same
2259 ac_cache_corrupted=false
2260 for ac_var in $ac_precious_vars; do
2261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2262 eval ac_new_set=\$ac_env_${ac_var}_set
2263 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2264 eval ac_new_val=\$ac_env_${ac_var}_value
2265 case $ac_old_set,$ac_new_set in
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2268 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2269 ac_cache_corrupted=: ;;
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2272 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2273 ac_cache_corrupted=: ;;
2276 if test "x$ac_old_val" != "x$ac_new_val"; then
2277 # differences in whitespace do not lead to failure.
2278 ac_old_val_w=`echo x $ac_old_val`
2279 ac_new_val_w=`echo x $ac_new_val`
2280 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2282 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2283 ac_cache_corrupted=:
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2286 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2287 eval $ac_var=\$ac_old_val
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2290 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2292 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2295 # Pass precious variables to config.status.
2296 if test "$ac_new_set" = set; then
2298 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2299 *) ac_arg=$ac_var=$ac_new_val ;;
2301 case " $ac_configure_args " in
2302 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2303 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2307 if $ac_cache_corrupted; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2311 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2312 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2314 ## -------------------- ##
2315 ## Main body of script. ##
2316 ## -------------------- ##
2319 ac_cpp='$CPP $CPPFLAGS'
2320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2326 am__api_version='1.11'
2329 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2330 if test -f "$ac_dir/install-sh"; then
2332 ac_install_sh="$ac_aux_dir/install-sh -c"
2334 elif test -f "$ac_dir/install.sh"; then
2336 ac_install_sh="$ac_aux_dir/install.sh -c"
2338 elif test -f "$ac_dir/shtool"; then
2340 ac_install_sh="$ac_aux_dir/shtool install -c"
2344 if test -z "$ac_aux_dir"; then
2345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2348 # These three variables are undocumented and unsupported,
2349 # and are intended to be withdrawn in a future Autoconf release.
2350 # They can cause serious problems if a builder's source tree is in a directory
2351 # whose full name contains unusual characters.
2352 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2353 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2354 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2357 # Find a good install program. We prefer a C program (faster),
2358 # so one script is as good as another. But avoid the broken or
2359 # incompatible versions:
2360 # SysV /etc/install, /usr/sbin/install
2361 # SunOS /usr/etc/install
2362 # IRIX /sbin/install
2364 # AmigaOS /C/install, which installs bootblocks on floppy discs
2365 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2366 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2367 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2368 # OS/2's system install, which has a completely different semantic
2369 # ./install, which can be erroneously created by make from ./install.sh.
2370 # Reject install programs that cannot install multiple files.
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2372 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2373 if test -z "$INSTALL"; then
2374 if test "${ac_cv_path_install+set}" = set; then :
2375 $as_echo_n "(cached) " >&6
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 test -z "$as_dir" && as_dir=.
2382 # Account for people who put trailing slashes in PATH elements.
2383 case $as_dir/ in #((
2384 ./ | .// | /[cC]/* | \
2385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2386 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2389 # OSF1 and SCO ODT 3.0 have their own names for install.
2390 # Don't use installbsd from OSF since it installs stuff as root
2392 for ac_prog in ginstall scoinst install; do
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2395 if test $ac_prog = install &&
2396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2397 # AIX install. It has an incompatible calling convention.
2399 elif test $ac_prog = install &&
2400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2401 # program-specific install script used by HP pwplus--don't use.
2404 rm -rf conftest.one conftest.two conftest.dir
2405 echo one > conftest.one
2406 echo two > conftest.two
2408 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2409 test -s conftest.one && test -s conftest.two &&
2410 test -s conftest.dir/conftest.one &&
2411 test -s conftest.dir/conftest.two
2413 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2426 rm -rf conftest.one conftest.two conftest.dir
2429 if test "${ac_cv_path_install+set}" = set; then
2430 INSTALL=$ac_cv_path_install
2432 # As a last resort, use the slow shell script. Don't cache a
2433 # value for INSTALL within a source directory, because that will
2434 # break other packages using the cache if that directory is
2435 # removed, or if the value is a relative name.
2436 INSTALL=$ac_install_sh
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2440 $as_echo "$INSTALL" >&6; }
2442 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2443 # It thinks the first close brace ends the variable substitution.
2444 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2446 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2448 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2451 $as_echo_n "checking whether build environment is sane... " >&6; }
2454 echo timestamp > conftest.file
2455 # Reject unsafe characters in $srcdir or the absolute working directory
2456 # name. Accept space and tab only in the latter.
2460 *[\\\"\#\$\&\'\`$am_lf]*)
2461 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2464 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2465 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2468 # Do `set' in a subshell so we don't clobber the current shell's
2469 # arguments. Must try -L first in case configure is actually a
2470 # symlink; some systems play weird games with the mod time of symlinks
2471 # (eg FreeBSD returns the mod time of the symlink's containing
2474 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2475 if test "$*" = "X"; then
2477 set X `ls -t "$srcdir/configure" conftest.file`
2480 if test "$*" != "X $srcdir/configure conftest.file" \
2481 && test "$*" != "X conftest.file $srcdir/configure"; then
2483 # If neither matched, then we have a broken ls. This can happen
2484 # if, for instance, CONFIG_SHELL is bash and it inherits a
2485 # broken ls alias from the environment. This has actually
2486 # happened. Such a system could not be considered "sane".
2487 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2488 alias in your environment" "$LINENO" 5
2491 test "$2" = conftest.file
2497 as_fn_error $? "newly created file is older than distributed files!
2498 Check your system clock" "$LINENO" 5
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2501 $as_echo "yes" >&6; }
2502 test "$program_prefix" != NONE &&
2503 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2504 # Use a double $ so make ignores it.
2505 test "$program_suffix" != NONE &&
2506 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2507 # Double any \ or $.
2508 # By default was `s,x,x', remove it if useless.
2509 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2510 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2512 # expand $ac_aux_dir to an absolute path
2513 am_aux_dir=`cd $ac_aux_dir && pwd`
2515 if test x"${MISSING+set}" != xset; then
2518 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2520 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2523 # Use eval to expand $SHELL
2524 if eval "$MISSING --run true"; then
2525 am_missing_run="$MISSING --run "
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2529 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2532 if test x"${install_sh}" != xset; then
2535 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2537 install_sh="\${SHELL} $am_aux_dir/install-sh"
2541 # Installed binaries are usually stripped using `strip' when the user
2542 # run `make install-strip'. However `strip' might not be the right
2543 # tool to use in cross-compilation environments, therefore Automake
2544 # will honor the `STRIP' environment variable to overrule this program.
2545 if test "$cross_compiling" != no; then
2546 if test -n "$ac_tool_prefix"; then
2547 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2548 set dummy ${ac_tool_prefix}strip; ac_word=$2
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550 $as_echo_n "checking for $ac_word... " >&6; }
2551 if test "${ac_cv_prog_STRIP+set}" = set; then :
2552 $as_echo_n "(cached) " >&6
2554 if test -n "$STRIP"; then
2555 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2564 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 STRIP=$ac_cv_prog_STRIP
2575 if test -n "$STRIP"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2577 $as_echo "$STRIP" >&6; }
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580 $as_echo "no" >&6; }
2585 if test -z "$ac_cv_prog_STRIP"; then
2587 # Extract the first word of "strip", so it can be a program name with args.
2588 set dummy strip; ac_word=$2
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2592 $as_echo_n "(cached) " >&6
2594 if test -n "$ac_ct_STRIP"; then
2595 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_ac_ct_STRIP="strip"
2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2615 if test -n "$ac_ct_STRIP"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2617 $as_echo "$ac_ct_STRIP" >&6; }
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620 $as_echo "no" >&6; }
2623 if test "x$ac_ct_STRIP" = x; then
2626 case $cross_compiling:$ac_tool_warned in
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2630 ac_tool_warned=yes ;;
2635 STRIP="$ac_cv_prog_STRIP"
2639 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2642 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2643 if test -z "$MKDIR_P"; then
2644 if test "${ac_cv_path_mkdir+set}" = set; then :
2645 $as_echo_n "(cached) " >&6
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2651 test -z "$as_dir" && as_dir=.
2652 for ac_prog in mkdir gmkdir; do
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2655 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2656 'mkdir (GNU coreutils) '* | \
2657 'mkdir (coreutils) '* | \
2658 'mkdir (fileutils) '4.1*)
2659 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2669 test -d ./--version && rmdir ./--version
2670 if test "${ac_cv_path_mkdir+set}" = set; then
2671 MKDIR_P="$ac_cv_path_mkdir -p"
2673 # As a last resort, use the slow shell script. Don't cache a
2674 # value for MKDIR_P within a source directory, because that will
2675 # break other packages using the cache if that directory is
2676 # removed, or if the value is a relative name.
2677 MKDIR_P="$ac_install_sh -d"
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2681 $as_echo "$MKDIR_P" >&6; }
2685 [\\/$]* | ?:[\\/]*) ;;
2686 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2689 for ac_prog in gawk mawk nawk awk
2691 # Extract the first word of "$ac_prog", so it can be a program name with args.
2692 set dummy $ac_prog; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if test "${ac_cv_prog_AWK+set}" = set; then :
2696 $as_echo_n "(cached) " >&6
2698 if test -n "$AWK"; then
2699 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_AWK="$ac_prog"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 if test -n "$AWK"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2721 $as_echo "$AWK" >&6; }
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2728 test -n "$AWK" && break
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2732 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2734 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2735 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2736 $as_echo_n "(cached) " >&6
2738 cat >conftest.make <<\_ACEOF
2741 @echo '@@@%%%=$(MAKE)=@@@%%%'
2743 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2744 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2746 eval ac_cv_prog_make_${ac_make}_set=yes;;
2748 eval ac_cv_prog_make_${ac_make}_set=no;;
2752 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2754 $as_echo "yes" >&6; }
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2759 SET_MAKE="MAKE=${MAKE-make}"
2762 rm -rf .tst 2>/dev/null
2763 mkdir .tst 2>/dev/null
2764 if test -d .tst; then
2769 rmdir .tst 2>/dev/null
2771 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2772 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2773 # is not polluted with repeated "-I."
2774 am__isrc=' -I$(srcdir)'
2775 # test to see if srcdir already configured
2776 if test -f $srcdir/config.status; then
2777 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2781 # test whether we have cygpath
2782 if test -z "$CYGPATH_W"; then
2783 if (cygpath --version) >/dev/null 2>/dev/null; then
2784 CYGPATH_W='cygpath -w'
2791 # Define the identity of the package.
2796 cat >>confdefs.h <<_ACEOF
2797 #define PACKAGE "$PACKAGE"
2801 cat >>confdefs.h <<_ACEOF
2802 #define VERSION "$VERSION"
2805 # Some tools Automake needs.
2807 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2810 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2813 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2816 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2819 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2821 # We need awk for the "check" target. The system "awk" is bad on
2823 # Always define AMTAR for backward compatibility.
2825 AMTAR=${AMTAR-"${am_missing_run}tar"}
2827 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2835 ac_config_headers="$ac_config_headers config.h"
2838 # Checks for programs.
2840 ac_cpp='$CPP $CPPFLAGS'
2841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2844 if test -n "$ac_tool_prefix"; then
2845 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2846 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if test "${ac_cv_prog_CC+set}" = set; then :
2850 $as_echo_n "(cached) " >&6
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 if test -n "$CC"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875 $as_echo "$CC" >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2883 if test -z "$ac_cv_prog_CC"; then
2885 # Extract the first word of "gcc", so it can be a program name with args.
2886 set dummy gcc; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2890 $as_echo_n "(cached) " >&6
2892 if test -n "$ac_ct_CC"; then
2893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_ac_ct_CC="gcc"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2913 if test -n "$ac_ct_CC"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2915 $as_echo "$ac_ct_CC" >&6; }
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2921 if test "x$ac_ct_CC" = x; then
2924 case $cross_compiling:$ac_tool_warned in
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2928 ac_tool_warned=yes ;;
2936 if test -z "$CC"; then
2937 if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}cc; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if test "${ac_cv_prog_CC+set}" = set; then :
2943 $as_echo_n "(cached) " >&6
2945 if test -n "$CC"; then
2946 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_CC="${ac_tool_prefix}cc"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 if test -n "$CC"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2977 if test -z "$CC"; then
2978 # Extract the first word of "cc", so it can be a program name with args.
2979 set dummy cc; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if test "${ac_cv_prog_CC+set}" = set; then :
2983 $as_echo_n "(cached) " >&6
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2997 ac_prog_rejected=yes
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 if test $ac_prog_rejected = yes; then
3009 # We found a bogon in the path, so make sure we never use it.
3010 set dummy $ac_cv_prog_CC
3012 if test $# != 0; then
3013 # We chose a different compiler from the bogus one.
3014 # However, it has the same basename, so the bogon will be chosen
3015 # first if we set CC to just the basename; use the full file name.
3017 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3023 if test -n "$CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3033 if test -z "$CC"; then
3034 if test -n "$ac_tool_prefix"; then
3035 for ac_prog in cl.exe
3037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then :
3042 $as_echo_n "(cached) " >&6
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 if test -n "$CC"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3074 test -n "$CC" && break
3077 if test -z "$CC"; then
3079 for ac_prog in cl.exe
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082 set dummy $ac_prog; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3086 $as_echo_n "(cached) " >&6
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_ac_ct_CC="$ac_prog"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3109 if test -n "$ac_ct_CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3111 $as_echo "$ac_ct_CC" >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3118 test -n "$ac_ct_CC" && break
3121 if test "x$ac_ct_CC" = x; then
3124 case $cross_compiling:$ac_tool_warned in
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned=yes ;;
3137 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 as_fn_error $? "no acceptable C compiler found in \$PATH
3140 See \`config.log' for more details" "$LINENO" 5 ; }
3142 # Provide some information about the compiler.
3143 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3146 for ac_option in --version -v -V -qversion; do
3147 { { ac_try="$ac_compiler $ac_option >&5"
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153 $as_echo "$ac_try_echo"; } >&5
3154 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3156 if test -s conftest.err; then
3158 ... rest of stderr output deleted ...
3159 10q' conftest.err >conftest.er1
3160 cat conftest.er1 >&5
3162 rm -f conftest.er1 conftest.err
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }
3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168 /* end confdefs.h. */
3178 ac_clean_files_save=$ac_clean_files
3179 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3180 # Try to create an executable without -o first, disregard a.out.
3181 # It will help us diagnose broken compilers, and finding out an intuition
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3184 $as_echo_n "checking whether the C compiler works... " >&6; }
3185 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3187 # The possible output files:
3188 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3191 for ac_file in $ac_files
3194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3195 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3200 if { { ac_try="$ac_link_default"
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207 (eval "$ac_link_default") 2>&5
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }; then :
3211 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3212 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3213 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3214 # so that the user can short-circuit this test for compilers unknown to
3216 for ac_file in $ac_files ''
3218 test -f "$ac_file" || continue
3220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3223 # We found the default executable, but exeext='' is most
3227 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3229 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3231 # We set ac_cv_exeext here because the later test for it is not
3232 # safe: cross compilers may not add the suffix if given an `-o'
3233 # argument, so we may need to know it at that point already.
3234 # Even if this section looks crufty: it has the advantage of
3241 test "$ac_cv_exeext" = no && ac_cv_exeext=
3246 if test -z "$ac_file"; then :
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 $as_echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error 77 "C compiler cannot create executables
3255 See \`config.log' for more details" "$LINENO" 5 ; }
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258 $as_echo "yes" >&6; }
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3261 $as_echo_n "checking for C compiler default output file name... " >&6; }
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3263 $as_echo "$ac_file" >&6; }
3264 ac_exeext=$ac_cv_exeext
3266 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3267 ac_clean_files=$ac_clean_files_save
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3269 $as_echo_n "checking for suffix of executables... " >&6; }
3270 if { { ac_try="$ac_link"
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_link") 2>&5
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; then :
3281 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3282 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3283 # work properly (i.e., refer to `conftest.exe'), while it won't with
3285 for ac_file in conftest.exe conftest conftest.*; do
3286 test -f "$ac_file" || continue
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3289 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3298 See \`config.log' for more details" "$LINENO" 5 ; }
3300 rm -f conftest conftest$ac_cv_exeext
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3302 $as_echo "$ac_cv_exeext" >&6; }
3304 rm -f conftest.$ac_ext
3305 EXEEXT=$ac_cv_exeext
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h. */
3313 FILE *f = fopen ("conftest.out", "w");
3314 return ferror (f) || fclose (f) != 0;
3320 ac_clean_files="$ac_clean_files conftest.out"
3321 # Check that the compiler produces executables we can run. If not, either
3322 # the compiler is broken, or we cross compile.
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3324 $as_echo_n "checking whether we are cross compiling... " >&6; }
3325 if test "$cross_compiling" != yes; then
3326 { { ac_try="$ac_link"
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_link") 2>&5
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }
3337 if { ac_try='./conftest$ac_cv_exeext'
3338 { { case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 $as_echo "$ac_try_echo"; } >&5
3344 (eval "$ac_try") 2>&5
3346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347 test $ac_status = 0; }; }; then
3350 if test "$cross_compiling" = maybe; then
3353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "cannot run C compiled programs.
3356 If you meant to cross compile, use \`--host'.
3357 See \`config.log' for more details" "$LINENO" 5 ; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3362 $as_echo "$cross_compiling" >&6; }
3364 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3365 ac_clean_files=$ac_clean_files_save
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3367 $as_echo_n "checking for suffix of object files... " >&6; }
3368 if test "${ac_cv_objext+set}" = set; then :
3369 $as_echo_n "(cached) " >&6
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3382 rm -f conftest.o conftest.obj
3383 if { { ac_try="$ac_compile"
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_compile") 2>&5
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; then :
3394 for ac_file in conftest.o conftest.obj conftest.*; do
3395 test -f "$ac_file" || continue;
3397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3398 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3403 $as_echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error $? "cannot compute suffix of object files: cannot compile
3409 See \`config.log' for more details" "$LINENO" 5 ; }
3411 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3414 $as_echo "$ac_cv_objext" >&6; }
3415 OBJEXT=$ac_cv_objext
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3418 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3419 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3420 $as_echo_n "(cached) " >&6
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3436 if ac_fn_c_try_compile "$LINENO"; then :
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3446 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3447 if test $ac_compiler_gnu = yes; then
3452 ac_test_CFLAGS=${CFLAGS+set}
3453 ac_save_CFLAGS=$CFLAGS
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3455 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3456 if test "${ac_cv_prog_cc_g+set}" = set; then :
3457 $as_echo_n "(cached) " >&6
3459 ac_save_c_werror_flag=$ac_c_werror_flag
3460 ac_c_werror_flag=yes
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3474 if ac_fn_c_try_compile "$LINENO"; then :
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3489 if ac_fn_c_try_compile "$LINENO"; then :
3492 ac_c_werror_flag=$ac_save_c_werror_flag
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3505 if ac_fn_c_try_compile "$LINENO"; then :
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 ac_c_werror_flag=$ac_save_c_werror_flag
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3516 $as_echo "$ac_cv_prog_cc_g" >&6; }
3517 if test "$ac_test_CFLAGS" = set; then
3518 CFLAGS=$ac_save_CFLAGS
3519 elif test $ac_cv_prog_cc_g = yes; then
3520 if test "$GCC" = yes; then
3526 if test "$GCC" = yes; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3533 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3534 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3535 $as_echo_n "(cached) " >&6
3537 ac_cv_prog_cc_c89=no
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3543 #include <sys/types.h>
3544 #include <sys/stat.h>
3545 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3546 struct buf { int x; };
3547 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3548 static char *e (p, i)
3554 static char *f (char * (*g) (char **, int), char **p, ...)
3559 s = g (p, va_arg (v,int));
3564 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3565 function prototypes and stuff, but not '\xHH' hex character constants.
3566 These don't provoke an error unfortunately, instead are silently treated
3567 as 'x'. The following induces an error, until -std is added to get
3568 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3569 array size at least. It's necessary to write '\x00'==0 to get something
3570 that's true only with -std. */
3571 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3573 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3574 inside strings and character constants. */
3576 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3578 int test (int i, double x);
3579 struct s1 {int (*f) (int a);};
3580 struct s2 {int (*f) (double a);};
3581 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3587 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3592 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3593 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3595 CC="$ac_save_CC $ac_arg"
3596 if ac_fn_c_try_compile "$LINENO"; then :
3597 ac_cv_prog_cc_c89=$ac_arg
3599 rm -f core conftest.err conftest.$ac_objext
3600 test "x$ac_cv_prog_cc_c89" != "xno" && break
3602 rm -f conftest.$ac_ext
3607 case "x$ac_cv_prog_cc_c89" in
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3610 $as_echo "none needed" >&6; } ;;
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3613 $as_echo "unsupported" >&6; } ;;
3615 CC="$CC $ac_cv_prog_cc_c89"
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3617 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3619 if test "x$ac_cv_prog_cc_c89" != xno; then :
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628 DEPDIR="${am__leading_dot}deps"
3630 ac_config_commands="$ac_config_commands depfiles"
3633 am_make=${MAKE-make}
3634 cat > confinc << 'END'
3636 @echo this is the am__doit target
3639 # If we don't find an include directive, just comment out the code.
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3641 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3645 # First try GNU make style include.
3646 echo "include confinc" > confmf
3647 # Ignore all kinds of additional output from `make'.
3648 case `$am_make -s -f confmf 2> /dev/null` in #(
3649 *the\ am__doit\ target*)
3655 # Now try BSD make style include.
3656 if test "$am__include" = "#"; then
3657 echo '.include "confinc"' > confmf
3658 case `$am_make -s -f confmf 2> /dev/null` in #(
3659 *the\ am__doit\ target*)
3660 am__include=.include
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3669 $as_echo "$_am_result" >&6; }
3670 rm -f confinc confmf
3672 # Check whether --enable-dependency-tracking was given.
3673 if test "${enable_dependency_tracking+set}" = set; then :
3674 enableval=$enable_dependency_tracking;
3677 if test "x$enable_dependency_tracking" != xno; then
3678 am_depcomp="$ac_aux_dir/depcomp"
3681 if test "x$enable_dependency_tracking" != xno; then
3691 depcc="$CC" am_compiler_list=
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3694 $as_echo_n "checking dependency style of $depcc... " >&6; }
3695 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
3698 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3699 # We make a subdir and do the tests there. Otherwise we can end up
3700 # making bogus files that we don't know about and never remove. For
3701 # instance it was reported that on HP-UX the gcc test will end up
3702 # making a dummy file named `D' -- because `-MD' means `put the output
3705 # Copy depcomp to subdir because otherwise we won't find it if we're
3706 # using a relative directory.
3707 cp "$am_depcomp" conftest.dir
3709 # We will build objects and dependencies in a subdirectory because
3710 # it helps to detect inapplicable dependency modes. For instance
3711 # both Tru64's cc and ICC support -MD to output dependencies as a
3712 # side effect of compilation, but ICC will put the dependencies in
3713 # the current directory while Tru64 will put them in the object
3717 am_cv_CC_dependencies_compiler_type=none
3718 if test "$am_compiler_list" = ""; then
3719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3722 case " $depcc " in #(
3723 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3726 for depmode in $am_compiler_list; do
3727 # Setup a source with many dependencies, because some compilers
3728 # like to wrap large dependency lists on column 80 (with \), and
3729 # we should not choose a depcomp mode which is confused by this.
3731 # We need to recreate these files for each test, as the compiler may
3732 # overwrite some of them when testing with obscure command lines.
3733 # This happens at least with the AIX C compiler.
3735 for i in 1 2 3 4 5 6; do
3736 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3737 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3738 # Solaris 8's {/usr,}/bin/sh.
3739 touch sub/conftst$i.h
3741 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3743 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3744 # mode. It turns out that the SunPro C++ compiler does not properly
3745 # handle `-M -o', and we need to detect this. Also, some Intel
3746 # versions had trouble with output in subdirs
3747 am__obj=sub/conftest.${OBJEXT-o}
3748 am__minus_obj="-o $am__obj"
3751 # This depmode causes a compiler race in universal mode.
3752 test "$am__universal" = false || continue
3755 # after this tag, mechanisms are not by side-effect, so they'll
3756 # only be used when explicitly requested
3757 if test "x$enable_dependency_tracking" = xyes; then
3763 msvisualcpp | msvcmsys)
3764 # This compiler won't grok `-c -o', but also, the minuso test has
3765 # not run yet. These depmodes are late enough in the game, and
3766 # so weak that their functioning should not be impacted.
3767 am__obj=conftest.${OBJEXT-o}
3772 if depmode=$depmode \
3773 source=sub/conftest.c object=$am__obj \
3774 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3775 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3776 >/dev/null 2>conftest.err &&
3777 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3778 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3779 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3780 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3781 # icc doesn't choke on unknown options, it will just issue warnings
3782 # or remarks (even with -Werror). So we grep stderr for any message
3783 # that says an option was ignored or not supported.
3784 # When given -MP, icc 7.0 and 7.1 complain thusly:
3785 # icc: Command line warning: ignoring option '-M'; no argument required
3786 # The diagnosis changed in icc 8.0:
3787 # icc: Command line remark: option '-MP' not supported
3788 if (grep 'ignoring option' conftest.err ||
3789 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3790 am_cv_CC_dependencies_compiler_type=$depmode
3799 am_cv_CC_dependencies_compiler_type=none
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3804 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3805 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3808 test "x$enable_dependency_tracking" != xno \
3809 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3811 am__fastdepCC_FALSE='#'
3813 am__fastdepCC_TRUE='#'
3814 am__fastdepCC_FALSE=
3818 if test "x$CC" != xcc; then
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3820 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3823 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3825 set dummy $CC; ac_cc=`$as_echo "$2" |
3826 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3827 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
3828 $as_echo_n "(cached) " >&6
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3841 # Make sure it works both with $CC and with simple cc.
3842 # We do the test twice because some compilers refuse to overwrite an
3843 # existing .o file with -o, though they will create one.
3844 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3846 if { { case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852 (eval "$ac_try") 2>&5
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; } &&
3856 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3861 $as_echo "$ac_try_echo"; } >&5
3862 (eval "$ac_try") 2>&5
3864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3865 test $ac_status = 0; };
3867 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3868 if test "x$CC" != xcc; then
3869 # Test first that cc exists at all.
3870 if { ac_try='cc -c conftest.$ac_ext >&5'
3871 { { case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 $as_echo "$ac_try_echo"; } >&5
3877 (eval "$ac_try") 2>&5
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }; }; then
3881 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3883 if { { case "(($ac_try" in
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888 $as_echo "$ac_try_echo"; } >&5
3889 (eval "$ac_try") 2>&5
3891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892 test $ac_status = 0; } &&
3893 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898 $as_echo "$ac_try_echo"; } >&5
3899 (eval "$ac_try") 2>&5
3901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902 test $ac_status = 0; };
3907 # cc exists but doesn't like -o.
3908 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3913 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3915 rm -f core conftest*
3918 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3920 $as_echo "yes" >&6; }
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3925 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3929 # FIXME: we rely on the cache variable name because
3930 # there is no other way.
3932 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3933 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3934 if test "$am_t" != yes; then
3935 # Losing compiler, so override with the script.
3936 # FIXME: It is wrong to rewrite CC.
3937 # But if we don't then we get into trouble of one sort or another.
3938 # A longer-term fix would be to have automake use am__CC in this case,
3939 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3940 CC="$am_aux_dir/compile $CC"
3946 if test -n "$ac_tool_prefix"; then
3947 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3948 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950 $as_echo_n "checking for $ac_word... " >&6; }
3951 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3954 if test -n "$RANLIB"; then
3955 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 test -z "$as_dir" && as_dir=.
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3964 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 RANLIB=$ac_cv_prog_RANLIB
3975 if test -n "$RANLIB"; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3977 $as_echo "$RANLIB" >&6; }
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 $as_echo "no" >&6; }
3985 if test -z "$ac_cv_prog_RANLIB"; then
3986 ac_ct_RANLIB=$RANLIB
3987 # Extract the first word of "ranlib", so it can be a program name with args.
3988 set dummy ranlib; ac_word=$2
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990 $as_echo_n "checking for $ac_word... " >&6; }
3991 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3994 if test -n "$ac_ct_RANLIB"; then
3995 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4004 ac_cv_prog_ac_ct_RANLIB="ranlib"
4005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4015 if test -n "$ac_ct_RANLIB"; then
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4017 $as_echo "$ac_ct_RANLIB" >&6; }
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020 $as_echo "no" >&6; }
4023 if test "x$ac_ct_RANLIB" = x; then
4026 case $cross_compiling:$ac_tool_warned in
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4030 ac_tool_warned=yes ;;
4032 RANLIB=$ac_ct_RANLIB
4035 RANLIB="$ac_cv_prog_RANLIB"
4039 # Checks for header files.
4042 ac_cpp='$CPP $CPPFLAGS'
4043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4047 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4048 # On Suns, sometimes $CPP names a directory.
4049 if test -n "$CPP" && test -d "$CPP"; then
4052 if test -z "$CPP"; then
4053 if test "${ac_cv_prog_CPP+set}" = set; then :
4054 $as_echo_n "(cached) " >&6
4056 # Double quotes because CPP needs to be expanded
4057 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4060 for ac_c_preproc_warn_flag in '' yes
4062 # Use a header file that comes with gcc, so configuring glibc
4063 # with a fresh cross-compiler works.
4064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4065 # <limits.h> exists even on freestanding compilers.
4066 # On the NeXT, cc -E runs the code through the compiler's parser,
4067 # not just through cpp. "Syntax error" is here to catch this case.
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4071 # include <limits.h>
4073 # include <assert.h>
4077 if ac_fn_c_try_cpp "$LINENO"; then :
4080 # Broken: fails on valid input.
4083 rm -f conftest.err conftest.i conftest.$ac_ext
4085 # OK, works on sane cases. Now check whether nonexistent headers
4086 # can be detected and how.
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089 #include <ac_nonexistent.h>
4091 if ac_fn_c_try_cpp "$LINENO"; then :
4092 # Broken: success on invalid input.
4095 # Passes both tests.
4099 rm -f conftest.err conftest.i conftest.$ac_ext
4102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4103 rm -f conftest.i conftest.err conftest.$ac_ext
4104 if $ac_preproc_ok; then :
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4117 $as_echo "$CPP" >&6; }
4119 for ac_c_preproc_warn_flag in '' yes
4121 # Use a header file that comes with gcc, so configuring glibc
4122 # with a fresh cross-compiler works.
4123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4124 # <limits.h> exists even on freestanding compilers.
4125 # On the NeXT, cc -E runs the code through the compiler's parser,
4126 # not just through cpp. "Syntax error" is here to catch this case.
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4130 # include <limits.h>
4132 # include <assert.h>
4136 if ac_fn_c_try_cpp "$LINENO"; then :
4139 # Broken: fails on valid input.
4142 rm -f conftest.err conftest.i conftest.$ac_ext
4144 # OK, works on sane cases. Now check whether nonexistent headers
4145 # can be detected and how.
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148 #include <ac_nonexistent.h>
4150 if ac_fn_c_try_cpp "$LINENO"; then :
4151 # Broken: success on invalid input.
4154 # Passes both tests.
4158 rm -f conftest.err conftest.i conftest.$ac_ext
4161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4162 rm -f conftest.i conftest.err conftest.$ac_ext
4163 if $ac_preproc_ok; then :
4166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4168 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4169 See \`config.log' for more details" "$LINENO" 5 ; }
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4180 $as_echo_n "checking for X... " >&6; }
4183 # Check whether --with-x was given.
4184 if test "${with_x+set}" = set; then :
4188 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4189 if test "x$with_x" = xno; then
4190 # The user explicitly disabled X.
4193 case $x_includes,$x_libraries in #(
4194 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
4195 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
4196 $as_echo_n "(cached) " >&6
4198 # One or both of the vars are not set, and there is no cached value.
4199 ac_x_includes=no ac_x_libraries=no
4200 rm -f -r conftest.dir
4201 if mkdir conftest.dir; then
4203 cat >Imakefile <<'_ACEOF'
4205 @echo incroot='${INCROOT}'
4207 @echo usrlibdir='${USRLIBDIR}'
4209 @echo libdir='${LIBDIR}'
4211 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4212 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4213 for ac_var in incroot usrlibdir libdir; do
4214 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4216 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4217 for ac_extension in a so sl dylib la dll; do
4218 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4219 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4220 ac_im_usrlibdir=$ac_im_libdir; break
4223 # Screen out bogus values from the imake configuration. They are
4224 # bogus both because they are the default anyway, and because
4225 # using them would break gcc on systems where it needs fixed includes.
4226 case $ac_im_incroot in
4227 /usr/include) ac_x_includes= ;;
4228 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4230 case $ac_im_usrlibdir in
4231 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4232 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4236 rm -f -r conftest.dir
4239 # Standard set of common directories for X headers.
4240 # Check X11 before X11Rn because it is often a symlink to the current release.
4254 /usr/local/X11/include
4255 /usr/local/X11R7/include
4256 /usr/local/X11R6/include
4257 /usr/local/X11R5/include
4258 /usr/local/X11R4/include
4260 /usr/local/include/X11
4261 /usr/local/include/X11R7
4262 /usr/local/include/X11R6
4263 /usr/local/include/X11R5
4264 /usr/local/include/X11R4
4268 /usr/XFree86/include/X11
4272 /usr/unsupported/include
4274 /usr/local/x11r5/include
4275 /usr/lpp/Xamples/include
4277 /usr/openwin/include
4278 /usr/openwin/share/include'
4280 if test "$ac_x_includes" = no; then
4281 # Guess where to find include files, by looking for Xlib.h.
4282 # First, try using that file with no special directory specified.
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285 #include <X11/Xlib.h>
4287 if ac_fn_c_try_cpp "$LINENO"; then :
4288 # We can compile using X headers with no special include directory.
4291 for ac_dir in $ac_x_header_dirs; do
4292 if test -r "$ac_dir/X11/Xlib.h"; then
4293 ac_x_includes=$ac_dir
4298 rm -f conftest.err conftest.i conftest.$ac_ext
4299 fi # $ac_x_includes = no
4301 if test "$ac_x_libraries" = no; then
4302 # Check for the libraries.
4303 # See if we find them without any special options.
4304 # Don't add to $LIBS permanently.
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309 #include <X11/Xlib.h>
4318 if ac_fn_c_try_link "$LINENO"; then :
4320 # We can link X programs with no special library path.
4324 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4326 # Don't even attempt the hair of trying to link an X program!
4327 for ac_extension in a so sl dylib la dll; do
4328 if test -r "$ac_dir/libX11.$ac_extension"; then
4329 ac_x_libraries=$ac_dir
4335 rm -f core conftest.err conftest.$ac_objext \
4336 conftest$ac_exeext conftest.$ac_ext
4337 fi # $ac_x_libraries = no
4339 case $ac_x_includes,$ac_x_libraries in #(
4341 # Didn't find X, or a directory has "'" in its name.
4342 ac_cv_have_x="have_x=no";; #(
4344 # Record where we found X for the cache.
4345 ac_cv_have_x="have_x=yes\
4346 ac_x_includes='$ac_x_includes'\
4347 ac_x_libraries='$ac_x_libraries'"
4353 eval "$ac_cv_have_x"
4356 if test "$have_x" != yes; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4358 $as_echo "$have_x" >&6; }
4361 # If each of the values was on the command line, it overrides each guess.
4362 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4363 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4364 # Update the cache value to reflect the command line values.
4365 ac_cv_have_x="have_x=yes\
4366 ac_x_includes='$x_includes'\
4367 ac_x_libraries='$x_libraries'"
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4369 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4373 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4374 if test "${ac_cv_path_GREP+set}" = set; then :
4375 $as_echo_n "(cached) " >&6
4377 if test -z "$GREP"; then
4378 ac_path_GREP_found=false
4379 # Loop through the user's path and test for each of PROGNAME-LIST
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4384 test -z "$as_dir" && as_dir=.
4385 for ac_prog in grep ggrep; do
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4388 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4389 # Check for GNU ac_path_GREP and select it if it is found.
4390 # Check for GNU $ac_path_GREP
4391 case `"$ac_path_GREP" --version 2>&1` in
4393 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4396 $as_echo_n 0123456789 >"conftest.in"
4399 cat "conftest.in" "conftest.in" >"conftest.tmp"
4400 mv "conftest.tmp" "conftest.in"
4401 cp "conftest.in" "conftest.nl"
4402 $as_echo 'GREP' >> "conftest.nl"
4403 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4405 as_fn_arith $ac_count + 1 && ac_count=$as_val
4406 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4407 # Best one so far, save it but keep looking for a better one
4408 ac_cv_path_GREP="$ac_path_GREP"
4409 ac_path_GREP_max=$ac_count
4411 # 10*(2^10) chars as input seems more than enough
4412 test $ac_count -gt 10 && break
4414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4417 $ac_path_GREP_found && break 3
4422 if test -z "$ac_cv_path_GREP"; then
4423 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4426 ac_cv_path_GREP=$GREP
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4431 $as_echo "$ac_cv_path_GREP" >&6; }
4432 GREP="$ac_cv_path_GREP"
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4436 $as_echo_n "checking for egrep... " >&6; }
4437 if test "${ac_cv_path_EGREP+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4440 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4441 then ac_cv_path_EGREP="$GREP -E"
4443 if test -z "$EGREP"; then
4444 ac_path_EGREP_found=false
4445 # Loop through the user's path and test for each of PROGNAME-LIST
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4450 test -z "$as_dir" && as_dir=.
4451 for ac_prog in egrep; do
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4454 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4455 # Check for GNU ac_path_EGREP and select it if it is found.
4456 # Check for GNU $ac_path_EGREP
4457 case `"$ac_path_EGREP" --version 2>&1` in
4459 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4462 $as_echo_n 0123456789 >"conftest.in"
4465 cat "conftest.in" "conftest.in" >"conftest.tmp"
4466 mv "conftest.tmp" "conftest.in"
4467 cp "conftest.in" "conftest.nl"
4468 $as_echo 'EGREP' >> "conftest.nl"
4469 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4471 as_fn_arith $ac_count + 1 && ac_count=$as_val
4472 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4473 # Best one so far, save it but keep looking for a better one
4474 ac_cv_path_EGREP="$ac_path_EGREP"
4475 ac_path_EGREP_max=$ac_count
4477 # 10*(2^10) chars as input seems more than enough
4478 test $ac_count -gt 10 && break
4480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4483 $ac_path_EGREP_found && break 3
4488 if test -z "$ac_cv_path_EGREP"; then
4489 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4492 ac_cv_path_EGREP=$EGREP
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4498 $as_echo "$ac_cv_path_EGREP" >&6; }
4499 EGREP="$ac_cv_path_EGREP"
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4503 $as_echo_n "checking for ANSI C header files... " >&6; }
4504 if test "${ac_cv_header_stdc+set}" = set; then :
4505 $as_echo_n "(cached) " >&6
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4522 if ac_fn_c_try_compile "$LINENO"; then :
4523 ac_cv_header_stdc=yes
4525 ac_cv_header_stdc=no
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 if test $ac_cv_header_stdc = yes; then
4530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4537 $EGREP "memchr" >/dev/null 2>&1; then :
4540 ac_cv_header_stdc=no
4546 if test $ac_cv_header_stdc = yes; then
4547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4554 $EGREP "free" >/dev/null 2>&1; then :
4557 ac_cv_header_stdc=no
4563 if test $ac_cv_header_stdc = yes; then
4564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4565 if test "$cross_compiling" = yes; then :
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4572 #if ((' ' & 0x0FF) == 0x020)
4573 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4574 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4576 # define ISLOWER(c) \
4577 (('a' <= (c) && (c) <= 'i') \
4578 || ('j' <= (c) && (c) <= 'r') \
4579 || ('s' <= (c) && (c) <= 'z'))
4580 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4588 for (i = 0; i < 256; i++)
4589 if (XOR (islower (i), ISLOWER (i))
4590 || toupper (i) != TOUPPER (i))
4595 if ac_fn_c_try_run "$LINENO"; then :
4598 ac_cv_header_stdc=no
4600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4601 conftest.$ac_objext conftest.beam conftest.$ac_ext
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4607 $as_echo "$ac_cv_header_stdc" >&6; }
4608 if test $ac_cv_header_stdc = yes; then
4610 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4614 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4615 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4616 inttypes.h stdint.h unistd.h
4618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4619 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4621 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4622 cat >>confdefs.h <<_ACEOF
4623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4631 for ac_header in arpa/inet.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h sys/time.h unistd.h getopt.h
4633 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4634 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4635 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4636 cat >>confdefs.h <<_ACEOF
4637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4645 # Checks for typedefs, structures, and compiler characteristics.
4646 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4647 if test "x$ac_cv_type_size_t" = x""yes; then :
4651 cat >>confdefs.h <<_ACEOF
4652 #define size_t unsigned int
4657 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4658 if test "x$ac_cv_type_ssize_t" = x""yes; then :
4662 cat >>confdefs.h <<_ACEOF
4669 # Checks for library functions.
4670 for ac_header in stdlib.h
4672 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4673 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4674 cat >>confdefs.h <<_ACEOF
4675 #define HAVE_STDLIB_H 1
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4683 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4684 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
4685 $as_echo_n "(cached) " >&6
4687 if test "$cross_compiling" = yes; then :
4688 ac_cv_func_malloc_0_nonnull=no
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4692 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4693 # include <stdlib.h>
4701 return ! malloc (0);
4706 if ac_fn_c_try_run "$LINENO"; then :
4707 ac_cv_func_malloc_0_nonnull=yes
4709 ac_cv_func_malloc_0_nonnull=no
4711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4712 conftest.$ac_objext conftest.beam conftest.$ac_ext
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4717 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4718 if test $ac_cv_func_malloc_0_nonnull = yes; then :
4720 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4723 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4725 case " $LIBOBJS " in
4726 *" malloc.$ac_objext "* ) ;;
4727 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4732 $as_echo "#define malloc rpl_malloc" >>confdefs.h
4737 for ac_header in stdlib.h
4739 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4740 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4741 cat >>confdefs.h <<_ACEOF
4742 #define HAVE_STDLIB_H 1
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4750 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
4751 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
4752 $as_echo_n "(cached) " >&6
4754 if test "$cross_compiling" = yes; then :
4755 ac_cv_func_realloc_0_nonnull=no
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4760 # include <stdlib.h>
4768 return ! realloc (0, 0);
4773 if ac_fn_c_try_run "$LINENO"; then :
4774 ac_cv_func_realloc_0_nonnull=yes
4776 ac_cv_func_realloc_0_nonnull=no
4778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4779 conftest.$ac_objext conftest.beam conftest.$ac_ext
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4784 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
4785 if test $ac_cv_func_realloc_0_nonnull = yes; then :
4787 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
4790 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
4792 case " $LIBOBJS " in
4793 *" realloc.$ac_objext "* ) ;;
4794 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4799 $as_echo "#define realloc rpl_realloc" >>confdefs.h
4804 for ac_func in gettimeofday memmove socket strdup strtol
4806 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4807 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4808 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4809 cat >>confdefs.h <<_ACEOF
4810 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4820 $as_echo_n "checking whether NLS is requested... " >&6; }
4821 # Check whether --enable-nls was given.
4822 if test "${enable_nls+set}" = set; then :
4823 enableval=$enable_nls; USE_NLS=$enableval
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4829 $as_echo "$USE_NLS" >&6; }
4834 GETTEXT_MACRO_VERSION=0.18
4839 # Prepare PATH_SEPARATOR.
4840 # The user is always right.
4841 if test "${PATH_SEPARATOR+set}" != set; then
4842 echo "#! /bin/sh" >conf$$.sh
4843 echo "exit 0" >>conf$$.sh
4845 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4853 # Find out how to test for executable files. Don't use a zero-byte file,
4854 # as systems may use methods other than mode bits to determine executability.
4855 cat >conf$$.file <<_ASEOF
4859 chmod +x conf$$.file
4860 if test -x conf$$.file >/dev/null 2>&1; then
4861 ac_executable_p="test -x"
4863 ac_executable_p="test -f"
4867 # Extract the first word of "msgfmt", so it can be a program name with args.
4868 set dummy msgfmt; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if test "${ac_cv_path_MSGFMT+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4876 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4879 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4880 for ac_dir in $PATH; do
4882 test -z "$ac_dir" && ac_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4885 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4886 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4887 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4888 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4895 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4899 MSGFMT="$ac_cv_path_MSGFMT"
4900 if test "$MSGFMT" != ":"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4902 $as_echo "$MSGFMT" >&6; }
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4908 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4909 set dummy gmsgfmt; ac_word=$2
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 $as_echo_n "checking for $ac_word... " >&6; }
4912 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
4913 $as_echo_n "(cached) " >&6
4917 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4939 GMSGFMT=$ac_cv_path_GMSGFMT
4940 if test -n "$GMSGFMT"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4942 $as_echo "$GMSGFMT" >&6; }
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4950 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4951 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4952 *) MSGFMT_015=$MSGFMT ;;
4955 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4956 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4957 *) GMSGFMT_015=$GMSGFMT ;;
4962 # Prepare PATH_SEPARATOR.
4963 # The user is always right.
4964 if test "${PATH_SEPARATOR+set}" != set; then
4965 echo "#! /bin/sh" >conf$$.sh
4966 echo "exit 0" >>conf$$.sh
4968 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4976 # Find out how to test for executable files. Don't use a zero-byte file,
4977 # as systems may use methods other than mode bits to determine executability.
4978 cat >conf$$.file <<_ASEOF
4982 chmod +x conf$$.file
4983 if test -x conf$$.file >/dev/null 2>&1; then
4984 ac_executable_p="test -x"
4986 ac_executable_p="test -f"
4990 # Extract the first word of "xgettext", so it can be a program name with args.
4991 set dummy xgettext; ac_word=$2
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993 $as_echo_n "checking for $ac_word... " >&6; }
4994 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
4995 $as_echo_n "(cached) " >&6
4999 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5002 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5003 for ac_dir in $PATH; do
5005 test -z "$ac_dir" && ac_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5008 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5009 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5010 (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
5011 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5018 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5022 XGETTEXT="$ac_cv_path_XGETTEXT"
5023 if test "$XGETTEXT" != ":"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5025 $as_echo "$XGETTEXT" >&6; }
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5033 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5034 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5035 *) XGETTEXT_015=$XGETTEXT ;;
5040 # Prepare PATH_SEPARATOR.
5041 # The user is always right.
5042 if test "${PATH_SEPARATOR+set}" != set; then
5043 echo "#! /bin/sh" >conf$$.sh
5044 echo "exit 0" >>conf$$.sh
5046 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5054 # Find out how to test for executable files. Don't use a zero-byte file,
5055 # as systems may use methods other than mode bits to determine executability.
5056 cat >conf$$.file <<_ASEOF
5060 chmod +x conf$$.file
5061 if test -x conf$$.file >/dev/null 2>&1; then
5062 ac_executable_p="test -x"
5064 ac_executable_p="test -f"
5068 # Extract the first word of "msgmerge", so it can be a program name with args.
5069 set dummy msgmerge; ac_word=$2
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5071 $as_echo_n "checking for $ac_word... " >&6; }
5072 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5073 $as_echo_n "(cached) " >&6
5077 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5080 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5081 for ac_dir in $PATH; do
5083 test -z "$ac_dir" && ac_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5086 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5087 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5088 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5095 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5099 MSGMERGE="$ac_cv_path_MSGMERGE"
5100 if test "$MSGMERGE" != ":"; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5102 $as_echo "$MSGMERGE" >&6; }
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5109 test -n "$localedir" || localedir='${datadir}/locale'
5112 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5115 ac_config_commands="$ac_config_commands po-directories"
5119 if test "X$prefix" = "XNONE"; then
5120 acl_final_prefix="$ac_default_prefix"
5122 acl_final_prefix="$prefix"
5124 if test "X$exec_prefix" = "XNONE"; then
5125 acl_final_exec_prefix='${prefix}'
5127 acl_final_exec_prefix="$exec_prefix"
5129 acl_save_prefix="$prefix"
5130 prefix="$acl_final_prefix"
5131 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5132 prefix="$acl_save_prefix"
5134 # Make sure we can run config.sub.
5135 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5136 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5139 $as_echo_n "checking build system type... " >&6; }
5140 if test "${ac_cv_build+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5143 ac_build_alias=$build_alias
5144 test "x$ac_build_alias" = x &&
5145 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5146 test "x$ac_build_alias" = x &&
5147 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5148 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5149 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5153 $as_echo "$ac_cv_build" >&6; }
5154 case $ac_cv_build in
5156 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5159 ac_save_IFS=$IFS; IFS='-'
5165 # Remember, the first character of IFS is used to create $*,
5166 # except with old shells:
5169 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5173 $as_echo_n "checking host system type... " >&6; }
5174 if test "${ac_cv_host+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5177 if test "x$host_alias" = x; then
5178 ac_cv_host=$ac_cv_build
5180 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5181 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5186 $as_echo "$ac_cv_host" >&6; }
5189 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5192 ac_save_IFS=$IFS; IFS='-'
5198 # Remember, the first character of IFS is used to create $*,
5199 # except with old shells:
5202 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5206 # Check whether --with-gnu-ld was given.
5207 if test "${with_gnu_ld+set}" = set; then :
5208 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5213 # Prepare PATH_SEPARATOR.
5214 # The user is always right.
5215 if test "${PATH_SEPARATOR+set}" != set; then
5216 echo "#! /bin/sh" >conf$$.sh
5217 echo "exit 0" >>conf$$.sh
5219 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5227 if test "$GCC" = yes; then
5228 # Check if gcc -print-prog-name=ld gives a path.
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5230 $as_echo_n "checking for ld used by GCC... " >&6; }
5233 # gcc leaves a trailing carriage return which upsets mingw
5234 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5236 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5239 # Accept absolute paths.
5240 [\\/]* | [A-Za-z]:[\\/]*)
5241 re_direlt='/[^/][^/]*/\.\./'
5242 # Canonicalize the path of ld
5243 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5244 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5245 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5247 test -z "$LD" && LD="$ac_prog"
5250 # If it fails, then pretend we aren't using GCC.
5254 # If it is relative, then search for the first ld in PATH.
5258 elif test "$with_gnu_ld" = yes; then
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5260 $as_echo_n "checking for GNU ld... " >&6; }
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5263 $as_echo_n "checking for non-GNU ld... " >&6; }
5265 if test "${acl_cv_path_LD+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
5268 if test -z "$LD"; then
5269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5270 for ac_dir in $PATH; do
5271 test -z "$ac_dir" && ac_dir=.
5272 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5273 acl_cv_path_LD="$ac_dir/$ac_prog"
5274 # Check to see if the program is GNU ld. I'd rather use --version,
5275 # but apparently some GNU ld's only accept -v.
5276 # Break only if it was the GNU/non-GNU ld that we prefer.
5277 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5278 *GNU* | *'with BFD'*)
5279 test "$with_gnu_ld" != no && break ;;
5281 test "$with_gnu_ld" != yes && break ;;
5287 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5291 LD="$acl_cv_path_LD"
5292 if test -n "$LD"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5294 $as_echo "$LD" >&6; }
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5299 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5301 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5302 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5303 $as_echo_n "(cached) " >&6
5305 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5306 case `$LD -v 2>&1 </dev/null` in
5307 *GNU* | *'with BFD'*)
5308 acl_cv_prog_gnu_ld=yes ;;
5310 acl_cv_prog_gnu_ld=no ;;
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5314 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5315 with_gnu_ld=$acl_cv_prog_gnu_ld
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5321 $as_echo_n "checking for shared library run path origin... " >&6; }
5322 if test "${acl_cv_rpath+set}" = set; then :
5323 $as_echo_n "(cached) " >&6
5326 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5327 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5334 $as_echo "$acl_cv_rpath" >&6; }
5336 acl_libext="$acl_cv_libext"
5337 acl_shlibext="$acl_cv_shlibext"
5338 acl_libname_spec="$acl_cv_libname_spec"
5339 acl_library_names_spec="$acl_cv_library_names_spec"
5340 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5341 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5342 acl_hardcode_direct="$acl_cv_hardcode_direct"
5343 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5344 # Check whether --enable-rpath was given.
5345 if test "${enable_rpath+set}" = set; then :
5346 enableval=$enable_rpath; :
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5359 $as_echo_n "checking for 64-bit host... " >&6; }
5360 if test "${gl_cv_solaris_64bit+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5372 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5373 gl_cv_solaris_64bit=yes
5375 gl_cv_solaris_64bit=no
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5382 $as_echo "$gl_cv_solaris_64bit" >&6; }
5383 if test $gl_cv_solaris_64bit = yes; then
5384 acl_libdirstem=lib/64
5386 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5387 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5392 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5393 if test -n "$searchpath"; then
5394 acl_save_IFS="${IFS= }"; IFS=":"
5395 for searchdir in $searchpath; do
5396 if test -d "$searchdir"; then
5397 case "$searchdir" in
5398 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5400 # Better ignore directories of this form. They are misleading.
5402 *) searchdir=`cd "$searchdir" && pwd`
5403 case "$searchdir" in
5404 */lib64 ) acl_libdirstem=lib64 ;;
5413 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5428 acl_save_prefix="$prefix"
5429 prefix="$acl_final_prefix"
5430 acl_save_exec_prefix="$exec_prefix"
5431 exec_prefix="$acl_final_exec_prefix"
5433 eval additional_includedir=\"$includedir\"
5434 eval additional_libdir=\"$libdir\"
5436 exec_prefix="$acl_save_exec_prefix"
5437 prefix="$acl_save_prefix"
5440 # Check whether --with-libiconv-prefix was given.
5441 if test "${with_libiconv_prefix+set}" = set; then :
5442 withval=$with_libiconv_prefix;
5443 if test "X$withval" = "Xno"; then
5446 if test "X$withval" = "X"; then
5448 acl_save_prefix="$prefix"
5449 prefix="$acl_final_prefix"
5450 acl_save_exec_prefix="$exec_prefix"
5451 exec_prefix="$acl_final_exec_prefix"
5453 eval additional_includedir=\"$includedir\"
5454 eval additional_libdir=\"$libdir\"
5456 exec_prefix="$acl_save_exec_prefix"
5457 prefix="$acl_save_prefix"
5460 additional_includedir="$withval/include"
5461 additional_libdir="$withval/$acl_libdirstem"
5462 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5463 && ! test -d "$withval/$acl_libdirstem"; then
5464 additional_libdir="$withval/$acl_libdirstem2"
5478 names_already_handled=
5479 names_next_round='iconv '
5480 while test -n "$names_next_round"; do
5481 names_this_round="$names_next_round"
5483 for name in $names_this_round; do
5485 for n in $names_already_handled; do
5486 if test "$n" = "$name"; then
5491 if test -z "$already_handled"; then
5492 names_already_handled="$names_already_handled $name"
5493 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5494 eval value=\"\$HAVE_LIB$uppername\"
5495 if test -n "$value"; then
5496 if test "$value" = yes; then
5497 eval value=\"\$LIB$uppername\"
5498 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5499 eval value=\"\$LTLIB$uppername\"
5500 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5509 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5510 if test -n "$acl_shlibext"; then
5511 shrext=".$acl_shlibext" # typically: shrext=.so
5515 if test $use_additional = yes; then
5516 dir="$additional_libdir"
5517 if test -n "$acl_shlibext"; then
5518 if test -f "$dir/$libname$shrext"; then
5520 found_so="$dir/$libname$shrext"
5522 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5523 ver=`(cd "$dir" && \
5524 for f in "$libname$shrext".*; do echo "$f"; done \
5525 | sed -e "s,^$libname$shrext\\\\.,," \
5526 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5527 | sed 1q ) 2>/dev/null`
5528 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5530 found_so="$dir/$libname$shrext.$ver"
5533 eval library_names=\"$acl_library_names_spec\"
5534 for f in $library_names; do
5535 if test -f "$dir/$f"; then
5544 if test "X$found_dir" = "X"; then
5545 if test -f "$dir/$libname.$acl_libext"; then
5547 found_a="$dir/$libname.$acl_libext"
5550 if test "X$found_dir" != "X"; then
5551 if test -f "$dir/$libname.la"; then
5552 found_la="$dir/$libname.la"
5556 if test "X$found_dir" = "X"; then
5557 for x in $LDFLAGS $LTLIBICONV; do
5559 acl_save_prefix="$prefix"
5560 prefix="$acl_final_prefix"
5561 acl_save_exec_prefix="$exec_prefix"
5562 exec_prefix="$acl_final_exec_prefix"
5564 exec_prefix="$acl_save_exec_prefix"
5565 prefix="$acl_save_prefix"
5569 dir=`echo "X$x" | sed -e 's/^X-L//'`
5570 if test -n "$acl_shlibext"; then
5571 if test -f "$dir/$libname$shrext"; then
5573 found_so="$dir/$libname$shrext"
5575 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5576 ver=`(cd "$dir" && \
5577 for f in "$libname$shrext".*; do echo "$f"; done \
5578 | sed -e "s,^$libname$shrext\\\\.,," \
5579 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5580 | sed 1q ) 2>/dev/null`
5581 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5583 found_so="$dir/$libname$shrext.$ver"
5586 eval library_names=\"$acl_library_names_spec\"
5587 for f in $library_names; do
5588 if test -f "$dir/$f"; then
5597 if test "X$found_dir" = "X"; then
5598 if test -f "$dir/$libname.$acl_libext"; then
5600 found_a="$dir/$libname.$acl_libext"
5603 if test "X$found_dir" != "X"; then
5604 if test -f "$dir/$libname.la"; then
5605 found_la="$dir/$libname.la"
5610 if test "X$found_dir" != "X"; then
5615 if test "X$found_dir" != "X"; then
5616 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5617 if test "X$found_so" != "X"; then
5618 if test "$enable_rpath" = no \
5619 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5620 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5621 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5624 for x in $ltrpathdirs; do
5625 if test "X$x" = "X$found_dir"; then
5630 if test -z "$haveit"; then
5631 ltrpathdirs="$ltrpathdirs $found_dir"
5633 if test "$acl_hardcode_direct" = yes; then
5634 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5636 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5637 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5639 for x in $rpathdirs; do
5640 if test "X$x" = "X$found_dir"; then
5645 if test -z "$haveit"; then
5646 rpathdirs="$rpathdirs $found_dir"
5650 for x in $LDFLAGS $LIBICONV; do
5652 acl_save_prefix="$prefix"
5653 prefix="$acl_final_prefix"
5654 acl_save_exec_prefix="$exec_prefix"
5655 exec_prefix="$acl_final_exec_prefix"
5657 exec_prefix="$acl_save_exec_prefix"
5658 prefix="$acl_save_prefix"
5660 if test "X$x" = "X-L$found_dir"; then
5665 if test -z "$haveit"; then
5666 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5668 if test "$acl_hardcode_minus_L" != no; then
5669 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5671 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5677 if test "X$found_a" != "X"; then
5678 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5680 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5683 additional_includedir=
5684 case "$found_dir" in
5685 */$acl_libdirstem | */$acl_libdirstem/)
5686 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5687 if test "$name" = 'iconv'; then
5688 LIBICONV_PREFIX="$basedir"
5690 additional_includedir="$basedir/include"
5692 */$acl_libdirstem2 | */$acl_libdirstem2/)
5693 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5694 if test "$name" = 'iconv'; then
5695 LIBICONV_PREFIX="$basedir"
5697 additional_includedir="$basedir/include"
5700 if test "X$additional_includedir" != "X"; then
5701 if test "X$additional_includedir" != "X/usr/include"; then
5703 if test "X$additional_includedir" = "X/usr/local/include"; then
5704 if test -n "$GCC"; then
5706 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5710 if test -z "$haveit"; then
5711 for x in $CPPFLAGS $INCICONV; do
5713 acl_save_prefix="$prefix"
5714 prefix="$acl_final_prefix"
5715 acl_save_exec_prefix="$exec_prefix"
5716 exec_prefix="$acl_final_exec_prefix"
5718 exec_prefix="$acl_save_exec_prefix"
5719 prefix="$acl_save_prefix"
5721 if test "X$x" = "X-I$additional_includedir"; then
5726 if test -z "$haveit"; then
5727 if test -d "$additional_includedir"; then
5728 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5734 if test -n "$found_la"; then
5735 save_libdir="$libdir"
5737 */* | *\\*) . "$found_la" ;;
5738 *) . "./$found_la" ;;
5740 libdir="$save_libdir"
5741 for dep in $dependency_libs; do
5744 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5745 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5746 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5748 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5749 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5750 if test -n "$GCC"; then
5752 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5756 if test -z "$haveit"; then
5758 for x in $LDFLAGS $LIBICONV; do
5760 acl_save_prefix="$prefix"
5761 prefix="$acl_final_prefix"
5762 acl_save_exec_prefix="$exec_prefix"
5763 exec_prefix="$acl_final_exec_prefix"
5765 exec_prefix="$acl_save_exec_prefix"
5766 prefix="$acl_save_prefix"
5768 if test "X$x" = "X-L$additional_libdir"; then
5773 if test -z "$haveit"; then
5774 if test -d "$additional_libdir"; then
5775 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5779 for x in $LDFLAGS $LTLIBICONV; do
5781 acl_save_prefix="$prefix"
5782 prefix="$acl_final_prefix"
5783 acl_save_exec_prefix="$exec_prefix"
5784 exec_prefix="$acl_final_exec_prefix"
5786 exec_prefix="$acl_save_exec_prefix"
5787 prefix="$acl_save_prefix"
5789 if test "X$x" = "X-L$additional_libdir"; then
5794 if test -z "$haveit"; then
5795 if test -d "$additional_libdir"; then
5796 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5803 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5804 if test "$enable_rpath" != no; then
5806 for x in $rpathdirs; do
5807 if test "X$x" = "X$dir"; then
5812 if test -z "$haveit"; then
5813 rpathdirs="$rpathdirs $dir"
5816 for x in $ltrpathdirs; do
5817 if test "X$x" = "X$dir"; then
5822 if test -z "$haveit"; then
5823 ltrpathdirs="$ltrpathdirs $dir"
5828 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5831 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5834 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5835 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5841 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5842 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5848 if test "X$rpathdirs" != "X"; then
5849 if test -n "$acl_hardcode_libdir_separator"; then
5851 for found_dir in $rpathdirs; do
5852 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5854 acl_save_libdir="$libdir"
5856 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5857 libdir="$acl_save_libdir"
5858 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5860 for found_dir in $rpathdirs; do
5861 acl_save_libdir="$libdir"
5863 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5864 libdir="$acl_save_libdir"
5865 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5869 if test "X$ltrpathdirs" != "X"; then
5870 for found_dir in $ltrpathdirs; do
5871 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5906 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5907 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
5908 $as_echo_n "(cached) " >&6
5910 gt_save_LIBS="$LIBS"
5911 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 #include <CoreFoundation/CFPreferences.h>
5918 CFPreferencesCopyAppValue(NULL, NULL)
5923 if ac_fn_c_try_link "$LINENO"; then :
5924 gt_cv_func_CFPreferencesCopyAppValue=yes
5926 gt_cv_func_CFPreferencesCopyAppValue=no
5928 rm -f core conftest.err conftest.$ac_objext \
5929 conftest$ac_exeext conftest.$ac_ext
5930 LIBS="$gt_save_LIBS"
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5933 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5934 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5936 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5940 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5941 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
5944 gt_save_LIBS="$LIBS"
5945 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5948 #include <CoreFoundation/CFLocale.h>
5952 CFLocaleCopyCurrent();
5957 if ac_fn_c_try_link "$LINENO"; then :
5958 gt_cv_func_CFLocaleCopyCurrent=yes
5960 gt_cv_func_CFLocaleCopyCurrent=no
5962 rm -f core conftest.err conftest.$ac_objext \
5963 conftest$ac_exeext conftest.$ac_ext
5964 LIBS="$gt_save_LIBS"
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5967 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5968 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5970 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5974 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5975 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5987 case " $gt_needs " in
5988 *" need-formatstring-macros "*) gt_api_version=3 ;;
5989 *" need-ngettext "*) gt_api_version=2 ;;
5990 *) gt_api_version=1 ;;
5992 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5993 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5995 if test "$USE_NLS" = "yes"; then
5996 gt_use_preinstalled_gnugettext=no
5999 if test $gt_api_version -ge 3; then
6000 gt_revision_test_code='
6001 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6002 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6004 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6007 gt_revision_test_code=
6009 if test $gt_api_version -ge 2; then
6010 gt_expression_test_code=' + * ngettext ("", "", 0)'
6012 gt_expression_test_code=
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6016 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6017 if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
6018 $as_echo_n "(cached) " >&6
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6022 #include <libintl.h>
6023 $gt_revision_test_code
6024 extern int _nl_msg_cat_cntr;
6025 extern int *_nl_domain_bindings;
6029 bindtextdomain ("", "");
6030 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6035 if ac_fn_c_try_link "$LINENO"; then :
6036 eval "$gt_func_gnugettext_libc=yes"
6038 eval "$gt_func_gnugettext_libc=no"
6040 rm -f core conftest.err conftest.$ac_objext \
6041 conftest$ac_exeext conftest.$ac_ext
6043 eval ac_res=\$$gt_func_gnugettext_libc
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6045 $as_echo "$ac_res" >&6; }
6047 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6053 am_save_CPPFLAGS="$CPPFLAGS"
6055 for element in $INCICONV; do
6057 for x in $CPPFLAGS; do
6059 acl_save_prefix="$prefix"
6060 prefix="$acl_final_prefix"
6061 acl_save_exec_prefix="$exec_prefix"
6062 exec_prefix="$acl_final_exec_prefix"
6064 exec_prefix="$acl_save_exec_prefix"
6065 prefix="$acl_save_prefix"
6067 if test "X$x" = "X$element"; then
6072 if test -z "$haveit"; then
6073 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6079 $as_echo_n "checking for iconv... " >&6; }
6080 if test "${am_cv_func_iconv+set}" = set; then :
6081 $as_echo_n "(cached) " >&6
6084 am_cv_func_iconv="no, consider installing GNU libiconv"
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6093 iconv_t cd = iconv_open("","");
6094 iconv(cd,NULL,NULL,NULL,NULL);
6100 if ac_fn_c_try_link "$LINENO"; then :
6101 am_cv_func_iconv=yes
6103 rm -f core conftest.err conftest.$ac_objext \
6104 conftest$ac_exeext conftest.$ac_ext
6105 if test "$am_cv_func_iconv" != yes; then
6106 am_save_LIBS="$LIBS"
6107 LIBS="$LIBS $LIBICONV"
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6115 iconv_t cd = iconv_open("","");
6116 iconv(cd,NULL,NULL,NULL,NULL);
6122 if ac_fn_c_try_link "$LINENO"; then :
6124 am_cv_func_iconv=yes
6126 rm -f core conftest.err conftest.$ac_objext \
6127 conftest$ac_exeext conftest.$ac_ext
6128 LIBS="$am_save_LIBS"
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6133 $as_echo "$am_cv_func_iconv" >&6; }
6134 if test "$am_cv_func_iconv" = yes; then
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6136 $as_echo_n "checking for working iconv... " >&6; }
6137 if test "${am_cv_func_iconv_works+set}" = set; then :
6138 $as_echo_n "(cached) " >&6
6141 am_save_LIBS="$LIBS"
6142 if test $am_cv_lib_iconv = yes; then
6143 LIBS="$LIBS $LIBICONV"
6145 if test "$cross_compiling" = yes; then :
6147 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6148 *) am_cv_func_iconv_works="guessing yes" ;;
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6158 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6161 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6162 if (cd_utf8_to_88591 != (iconv_t)(-1))
6164 static const char input[] = "\342\202\254"; /* EURO SIGN */
6166 const char *inptr = input;
6167 size_t inbytesleft = strlen (input);
6169 size_t outbytesleft = sizeof (buf);
6170 size_t res = iconv (cd_utf8_to_88591,
6171 (char **) &inptr, &inbytesleft,
6172 &outptr, &outbytesleft);
6177 /* Test against Solaris 10 bug: Failures are not distinguishable from
6178 successful returns. */
6180 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6181 if (cd_ascii_to_88591 != (iconv_t)(-1))
6183 static const char input[] = "\263";
6185 const char *inptr = input;
6186 size_t inbytesleft = strlen (input);
6188 size_t outbytesleft = sizeof (buf);
6189 size_t res = iconv (cd_ascii_to_88591,
6190 (char **) &inptr, &inbytesleft,
6191 &outptr, &outbytesleft);
6196 #if 0 /* This bug could be worked around by the caller. */
6197 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6199 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6200 if (cd_88591_to_utf8 != (iconv_t)(-1))
6202 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6204 const char *inptr = input;
6205 size_t inbytesleft = strlen (input);
6207 size_t outbytesleft = sizeof (buf);
6208 size_t res = iconv (cd_88591_to_utf8,
6209 (char **) &inptr, &inbytesleft,
6210 &outptr, &outbytesleft);
6216 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6218 if (/* Try standardized names. */
6219 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6220 /* Try IRIX, OSF/1 names. */
6221 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6222 /* Try AIX names. */
6223 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6224 /* Try HP-UX names. */
6225 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6230 if ac_fn_c_try_run "$LINENO"; then :
6231 am_cv_func_iconv_works=yes
6233 am_cv_func_iconv_works=no
6235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6236 conftest.$ac_objext conftest.beam conftest.$ac_ext
6239 LIBS="$am_save_LIBS"
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6243 $as_echo "$am_cv_func_iconv_works" >&6; }
6244 case "$am_cv_func_iconv_works" in
6245 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6246 *) am_func_iconv=yes ;;
6249 am_func_iconv=no am_cv_lib_iconv=no
6251 if test "$am_func_iconv" = yes; then
6253 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6256 if test "$am_cv_lib_iconv" = yes; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6258 $as_echo_n "checking how to link with libiconv... " >&6; }
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6260 $as_echo "$LIBICONV" >&6; }
6262 CPPFLAGS="$am_save_CPPFLAGS"
6279 acl_save_prefix="$prefix"
6280 prefix="$acl_final_prefix"
6281 acl_save_exec_prefix="$exec_prefix"
6282 exec_prefix="$acl_final_exec_prefix"
6284 eval additional_includedir=\"$includedir\"
6285 eval additional_libdir=\"$libdir\"
6287 exec_prefix="$acl_save_exec_prefix"
6288 prefix="$acl_save_prefix"
6291 # Check whether --with-libintl-prefix was given.
6292 if test "${with_libintl_prefix+set}" = set; then :
6293 withval=$with_libintl_prefix;
6294 if test "X$withval" = "Xno"; then
6297 if test "X$withval" = "X"; then
6299 acl_save_prefix="$prefix"
6300 prefix="$acl_final_prefix"
6301 acl_save_exec_prefix="$exec_prefix"
6302 exec_prefix="$acl_final_exec_prefix"
6304 eval additional_includedir=\"$includedir\"
6305 eval additional_libdir=\"$libdir\"
6307 exec_prefix="$acl_save_exec_prefix"
6308 prefix="$acl_save_prefix"
6311 additional_includedir="$withval/include"
6312 additional_libdir="$withval/$acl_libdirstem"
6313 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6314 && ! test -d "$withval/$acl_libdirstem"; then
6315 additional_libdir="$withval/$acl_libdirstem2"
6329 names_already_handled=
6330 names_next_round='intl '
6331 while test -n "$names_next_round"; do
6332 names_this_round="$names_next_round"
6334 for name in $names_this_round; do
6336 for n in $names_already_handled; do
6337 if test "$n" = "$name"; then
6342 if test -z "$already_handled"; then
6343 names_already_handled="$names_already_handled $name"
6344 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6345 eval value=\"\$HAVE_LIB$uppername\"
6346 if test -n "$value"; then
6347 if test "$value" = yes; then
6348 eval value=\"\$LIB$uppername\"
6349 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6350 eval value=\"\$LTLIB$uppername\"
6351 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6360 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6361 if test -n "$acl_shlibext"; then
6362 shrext=".$acl_shlibext" # typically: shrext=.so
6366 if test $use_additional = yes; then
6367 dir="$additional_libdir"
6368 if test -n "$acl_shlibext"; then
6369 if test -f "$dir/$libname$shrext"; then
6371 found_so="$dir/$libname$shrext"
6373 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6374 ver=`(cd "$dir" && \
6375 for f in "$libname$shrext".*; do echo "$f"; done \
6376 | sed -e "s,^$libname$shrext\\\\.,," \
6377 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6378 | sed 1q ) 2>/dev/null`
6379 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6381 found_so="$dir/$libname$shrext.$ver"
6384 eval library_names=\"$acl_library_names_spec\"
6385 for f in $library_names; do
6386 if test -f "$dir/$f"; then
6395 if test "X$found_dir" = "X"; then
6396 if test -f "$dir/$libname.$acl_libext"; then
6398 found_a="$dir/$libname.$acl_libext"
6401 if test "X$found_dir" != "X"; then
6402 if test -f "$dir/$libname.la"; then
6403 found_la="$dir/$libname.la"
6407 if test "X$found_dir" = "X"; then
6408 for x in $LDFLAGS $LTLIBINTL; do
6410 acl_save_prefix="$prefix"
6411 prefix="$acl_final_prefix"
6412 acl_save_exec_prefix="$exec_prefix"
6413 exec_prefix="$acl_final_exec_prefix"
6415 exec_prefix="$acl_save_exec_prefix"
6416 prefix="$acl_save_prefix"
6420 dir=`echo "X$x" | sed -e 's/^X-L//'`
6421 if test -n "$acl_shlibext"; then
6422 if test -f "$dir/$libname$shrext"; then
6424 found_so="$dir/$libname$shrext"
6426 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6427 ver=`(cd "$dir" && \
6428 for f in "$libname$shrext".*; do echo "$f"; done \
6429 | sed -e "s,^$libname$shrext\\\\.,," \
6430 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6431 | sed 1q ) 2>/dev/null`
6432 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6434 found_so="$dir/$libname$shrext.$ver"
6437 eval library_names=\"$acl_library_names_spec\"
6438 for f in $library_names; do
6439 if test -f "$dir/$f"; then
6448 if test "X$found_dir" = "X"; then
6449 if test -f "$dir/$libname.$acl_libext"; then
6451 found_a="$dir/$libname.$acl_libext"
6454 if test "X$found_dir" != "X"; then
6455 if test -f "$dir/$libname.la"; then
6456 found_la="$dir/$libname.la"
6461 if test "X$found_dir" != "X"; then
6466 if test "X$found_dir" != "X"; then
6467 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6468 if test "X$found_so" != "X"; then
6469 if test "$enable_rpath" = no \
6470 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6471 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6472 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6475 for x in $ltrpathdirs; do
6476 if test "X$x" = "X$found_dir"; then
6481 if test -z "$haveit"; then
6482 ltrpathdirs="$ltrpathdirs $found_dir"
6484 if test "$acl_hardcode_direct" = yes; then
6485 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6487 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6488 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6490 for x in $rpathdirs; do
6491 if test "X$x" = "X$found_dir"; then
6496 if test -z "$haveit"; then
6497 rpathdirs="$rpathdirs $found_dir"
6501 for x in $LDFLAGS $LIBINTL; do
6503 acl_save_prefix="$prefix"
6504 prefix="$acl_final_prefix"
6505 acl_save_exec_prefix="$exec_prefix"
6506 exec_prefix="$acl_final_exec_prefix"
6508 exec_prefix="$acl_save_exec_prefix"
6509 prefix="$acl_save_prefix"
6511 if test "X$x" = "X-L$found_dir"; then
6516 if test -z "$haveit"; then
6517 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6519 if test "$acl_hardcode_minus_L" != no; then
6520 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6522 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6528 if test "X$found_a" != "X"; then
6529 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6531 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6534 additional_includedir=
6535 case "$found_dir" in
6536 */$acl_libdirstem | */$acl_libdirstem/)
6537 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6538 if test "$name" = 'intl'; then
6539 LIBINTL_PREFIX="$basedir"
6541 additional_includedir="$basedir/include"
6543 */$acl_libdirstem2 | */$acl_libdirstem2/)
6544 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6545 if test "$name" = 'intl'; then
6546 LIBINTL_PREFIX="$basedir"
6548 additional_includedir="$basedir/include"
6551 if test "X$additional_includedir" != "X"; then
6552 if test "X$additional_includedir" != "X/usr/include"; then
6554 if test "X$additional_includedir" = "X/usr/local/include"; then
6555 if test -n "$GCC"; then
6557 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6561 if test -z "$haveit"; then
6562 for x in $CPPFLAGS $INCINTL; do
6564 acl_save_prefix="$prefix"
6565 prefix="$acl_final_prefix"
6566 acl_save_exec_prefix="$exec_prefix"
6567 exec_prefix="$acl_final_exec_prefix"
6569 exec_prefix="$acl_save_exec_prefix"
6570 prefix="$acl_save_prefix"
6572 if test "X$x" = "X-I$additional_includedir"; then
6577 if test -z "$haveit"; then
6578 if test -d "$additional_includedir"; then
6579 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6585 if test -n "$found_la"; then
6586 save_libdir="$libdir"
6588 */* | *\\*) . "$found_la" ;;
6589 *) . "./$found_la" ;;
6591 libdir="$save_libdir"
6592 for dep in $dependency_libs; do
6595 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6596 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6597 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6599 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6600 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6601 if test -n "$GCC"; then
6603 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6607 if test -z "$haveit"; then
6609 for x in $LDFLAGS $LIBINTL; do
6611 acl_save_prefix="$prefix"
6612 prefix="$acl_final_prefix"
6613 acl_save_exec_prefix="$exec_prefix"
6614 exec_prefix="$acl_final_exec_prefix"
6616 exec_prefix="$acl_save_exec_prefix"
6617 prefix="$acl_save_prefix"
6619 if test "X$x" = "X-L$additional_libdir"; then
6624 if test -z "$haveit"; then
6625 if test -d "$additional_libdir"; then
6626 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6630 for x in $LDFLAGS $LTLIBINTL; do
6632 acl_save_prefix="$prefix"
6633 prefix="$acl_final_prefix"
6634 acl_save_exec_prefix="$exec_prefix"
6635 exec_prefix="$acl_final_exec_prefix"
6637 exec_prefix="$acl_save_exec_prefix"
6638 prefix="$acl_save_prefix"
6640 if test "X$x" = "X-L$additional_libdir"; then
6645 if test -z "$haveit"; then
6646 if test -d "$additional_libdir"; then
6647 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6654 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6655 if test "$enable_rpath" != no; then
6657 for x in $rpathdirs; do
6658 if test "X$x" = "X$dir"; then
6663 if test -z "$haveit"; then
6664 rpathdirs="$rpathdirs $dir"
6667 for x in $ltrpathdirs; do
6668 if test "X$x" = "X$dir"; then
6673 if test -z "$haveit"; then
6674 ltrpathdirs="$ltrpathdirs $dir"
6679 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6682 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6685 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6686 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6692 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6693 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6699 if test "X$rpathdirs" != "X"; then
6700 if test -n "$acl_hardcode_libdir_separator"; then
6702 for found_dir in $rpathdirs; do
6703 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6705 acl_save_libdir="$libdir"
6707 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6708 libdir="$acl_save_libdir"
6709 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6711 for found_dir in $rpathdirs; do
6712 acl_save_libdir="$libdir"
6714 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6715 libdir="$acl_save_libdir"
6716 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6720 if test "X$ltrpathdirs" != "X"; then
6721 for found_dir in $ltrpathdirs; do
6722 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6732 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6733 if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
6734 $as_echo_n "(cached) " >&6
6736 gt_save_CPPFLAGS="$CPPFLAGS"
6737 CPPFLAGS="$CPPFLAGS $INCINTL"
6738 gt_save_LIBS="$LIBS"
6739 LIBS="$LIBS $LIBINTL"
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742 #include <libintl.h>
6743 $gt_revision_test_code
6744 extern int _nl_msg_cat_cntr;
6749 const char *_nl_expand_alias (const char *);
6753 bindtextdomain ("", "");
6754 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6759 if ac_fn_c_try_link "$LINENO"; then :
6760 eval "$gt_func_gnugettext_libintl=yes"
6762 eval "$gt_func_gnugettext_libintl=no"
6764 rm -f core conftest.err conftest.$ac_objext \
6765 conftest$ac_exeext conftest.$ac_ext
6766 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6767 LIBS="$LIBS $LIBICONV"
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770 #include <libintl.h>
6771 $gt_revision_test_code
6772 extern int _nl_msg_cat_cntr;
6777 const char *_nl_expand_alias (const char *);
6781 bindtextdomain ("", "");
6782 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6787 if ac_fn_c_try_link "$LINENO"; then :
6788 LIBINTL="$LIBINTL $LIBICONV"
6789 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6790 eval "$gt_func_gnugettext_libintl=yes"
6793 rm -f core conftest.err conftest.$ac_objext \
6794 conftest$ac_exeext conftest.$ac_ext
6796 CPPFLAGS="$gt_save_CPPFLAGS"
6797 LIBS="$gt_save_LIBS"
6799 eval ac_res=\$$gt_func_gnugettext_libintl
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6801 $as_echo "$ac_res" >&6; }
6804 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6805 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6806 && test "$PACKAGE" != gettext-runtime \
6807 && test "$PACKAGE" != gettext-tools; }; then
6808 gt_use_preinstalled_gnugettext=yes
6817 if test -n "$INTL_MACOSX_LIBS"; then
6818 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6819 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6820 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6821 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6825 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6826 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6828 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6836 $as_echo_n "checking whether to use NLS... " >&6; }
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6838 $as_echo "$USE_NLS" >&6; }
6839 if test "$USE_NLS" = "yes"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6841 $as_echo_n "checking where the gettext function comes from... " >&6; }
6842 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6843 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6844 gt_source="external libintl"
6849 gt_source="included intl directory"
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6852 $as_echo "$gt_source" >&6; }
6855 if test "$USE_NLS" = "yes"; then
6857 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6858 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6860 $as_echo_n "checking how to link with libintl... " >&6; }
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6862 $as_echo "$LIBINTL" >&6; }
6864 for element in $INCINTL; do
6866 for x in $CPPFLAGS; do
6868 acl_save_prefix="$prefix"
6869 prefix="$acl_final_prefix"
6870 acl_save_exec_prefix="$exec_prefix"
6871 exec_prefix="$acl_final_exec_prefix"
6873 exec_prefix="$acl_save_exec_prefix"
6874 prefix="$acl_save_prefix"
6876 if test "X$x" = "X$element"; then
6881 if test -z "$haveit"; then
6882 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6889 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6892 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6909 ############### common
6911 # Checks sensors, required by psensor and psensor-server
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
6913 $as_echo_n "checking for sensors_init in -lsensors... " >&6; }
6914 if test "${ac_cv_lib_sensors_sensors_init+set}" = set; then :
6915 $as_echo_n "(cached) " >&6
6917 ac_check_lib_save_LIBS=$LIBS
6918 LIBS="-lsensors $LIBS"
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6922 /* Override any GCC internal prototype to avoid an error.
6923 Use char because int might match the return type of a GCC
6924 builtin and then its argument prototype would still apply. */
6928 char sensors_init ();
6932 return sensors_init ();
6937 if ac_fn_c_try_link "$LINENO"; then :
6938 ac_cv_lib_sensors_sensors_init=yes
6940 ac_cv_lib_sensors_sensors_init=no
6942 rm -f core conftest.err conftest.$ac_objext \
6943 conftest$ac_exeext conftest.$ac_ext
6944 LIBS=$ac_check_lib_save_LIBS
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
6947 $as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
6948 if test "x$ac_cv_lib_sensors_sensors_init" = x""yes; then :
6949 cat >>confdefs.h <<_ACEOF
6950 #define HAVE_LIBSENSORS 1
6953 LIBS="-lsensors $LIBS"
6957 for ac_header in sensors/sensors.h sensors/errors.h
6959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6960 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6961 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6962 cat >>confdefs.h <<_ACEOF
6963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6970 SENSORS_LIBS=-lsensors
6973 ############### psensor
6983 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6984 if test -n "$ac_tool_prefix"; then
6985 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6986 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988 $as_echo_n "checking for $ac_word... " >&6; }
6989 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6990 $as_echo_n "(cached) " >&6
6994 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7004 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7016 if test -n "$PKG_CONFIG"; then
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7018 $as_echo "$PKG_CONFIG" >&6; }
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7026 if test -z "$ac_cv_path_PKG_CONFIG"; then
7027 ac_pt_PKG_CONFIG=$PKG_CONFIG
7028 # Extract the first word of "pkg-config", so it can be a program name with args.
7029 set dummy pkg-config; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7033 $as_echo_n "(cached) " >&6
7035 case $ac_pt_PKG_CONFIG in
7037 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7047 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7059 if test -n "$ac_pt_PKG_CONFIG"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7061 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7067 if test "x$ac_pt_PKG_CONFIG" = x; then
7070 case $cross_compiling:$ac_tool_warned in
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7074 ac_tool_warned=yes ;;
7076 PKG_CONFIG=$ac_pt_PKG_CONFIG
7079 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7083 if test -n "$PKG_CONFIG"; then
7084 _pkg_min_version=0.9.0
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7086 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7087 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7089 $as_echo "yes" >&6; }
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7099 $as_echo_n "checking for X11... " >&6; }
7101 if test -n "$X11_CFLAGS"; then
7102 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7103 elif test -n "$PKG_CONFIG"; then
7104 if test -n "$PKG_CONFIG" && \
7105 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7106 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7109 test $ac_status = 0; }; then
7110 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
7117 if test -n "$X11_LIBS"; then
7118 pkg_cv_X11_LIBS="$X11_LIBS"
7119 elif test -n "$PKG_CONFIG"; then
7120 if test -n "$PKG_CONFIG" && \
7121 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7122 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7125 test $ac_status = 0; }; then
7126 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
7136 if test $pkg_failed = yes; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7140 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7141 _pkg_short_errors_supported=yes
7143 _pkg_short_errors_supported=no
7145 if test $_pkg_short_errors_supported = yes; then
7146 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
7148 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
7150 # Put the nasty error message in config.log where it belongs
7151 echo "$X11_PKG_ERRORS" >&5
7153 as_fn_error $? "Package requirements (x11) were not met:
7157 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7158 installed software in a non-standard prefix.
7160 Alternatively, you may set the environment variables X11_CFLAGS
7161 and X11_LIBS to avoid the need to call pkg-config.
7162 See the pkg-config man page for more details." "$LINENO" 5
7163 elif test $pkg_failed = untried; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165 $as_echo "no" >&6; }
7166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7168 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7169 is in your PATH or set the PKG_CONFIG environment variable to the full
7172 Alternatively, you may set the environment variables X11_CFLAGS
7173 and X11_LIBS to avoid the need to call pkg-config.
7174 See the pkg-config man page for more details.
7176 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7177 See \`config.log' for more details" "$LINENO" 5 ; }
7179 X11_CFLAGS=$pkg_cv_X11_CFLAGS
7180 X11_LIBS=$pkg_cv_X11_LIBS
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7182 $as_echo "yes" >&6; }
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
7191 $as_echo_n "checking for XEXT... " >&6; }
7193 if test -n "$XEXT_CFLAGS"; then
7194 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
7195 elif test -n "$PKG_CONFIG"; then
7196 if test -n "$PKG_CONFIG" && \
7197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7198 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7201 test $ac_status = 0; }; then
7202 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
7209 if test -n "$XEXT_LIBS"; then
7210 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
7211 elif test -n "$PKG_CONFIG"; then
7212 if test -n "$PKG_CONFIG" && \
7213 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7214 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7217 test $ac_status = 0; }; then
7218 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
7228 if test $pkg_failed = yes; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7232 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7233 _pkg_short_errors_supported=yes
7235 _pkg_short_errors_supported=no
7237 if test $_pkg_short_errors_supported = yes; then
7238 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext" 2>&1`
7240 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext" 2>&1`
7242 # Put the nasty error message in config.log where it belongs
7243 echo "$XEXT_PKG_ERRORS" >&5
7245 as_fn_error $? "Package requirements (xext) were not met:
7249 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7250 installed software in a non-standard prefix.
7252 Alternatively, you may set the environment variables XEXT_CFLAGS
7253 and XEXT_LIBS to avoid the need to call pkg-config.
7254 See the pkg-config man page for more details." "$LINENO" 5
7255 elif test $pkg_failed = untried; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7260 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7261 is in your PATH or set the PKG_CONFIG environment variable to the full
7264 Alternatively, you may set the environment variables XEXT_CFLAGS
7265 and XEXT_LIBS to avoid the need to call pkg-config.
7266 See the pkg-config man page for more details.
7268 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7269 See \`config.log' for more details" "$LINENO" 5 ; }
7271 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
7272 XEXT_LIBS=$pkg_cv_XEXT_LIBS
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7274 $as_echo "yes" >&6; }
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7284 $as_echo_n "checking for GTK... " >&6; }
7286 if test -n "$GTK_CFLAGS"; then
7287 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7288 elif test -n "$PKG_CONFIG"; then
7289 if test -n "$PKG_CONFIG" && \
7290 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 \""; } >&5
7291 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 ") 2>&5
7293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7294 test $ac_status = 0; }; then
7295 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 " 2>/dev/null`
7302 if test -n "$GTK_LIBS"; then
7303 pkg_cv_GTK_LIBS="$GTK_LIBS"
7304 elif test -n "$PKG_CONFIG"; then
7305 if test -n "$PKG_CONFIG" && \
7306 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 \""; } >&5
7307 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 ") 2>&5
7309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7310 test $ac_status = 0; }; then
7311 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 " 2>/dev/null`
7321 if test $pkg_failed = yes; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7325 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7326 _pkg_short_errors_supported=yes
7328 _pkg_short_errors_supported=no
7330 if test $_pkg_short_errors_supported = yes; then
7331 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 " 2>&1`
7333 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 " 2>&1`
7335 # Put the nasty error message in config.log where it belongs
7336 echo "$GTK_PKG_ERRORS" >&5
7338 as_fn_error $? "Package requirements (gtk+-2.0 ) were not met:
7342 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7343 installed software in a non-standard prefix.
7345 Alternatively, you may set the environment variables GTK_CFLAGS
7346 and GTK_LIBS to avoid the need to call pkg-config.
7347 See the pkg-config man page for more details." "$LINENO" 5
7348 elif test $pkg_failed = untried; then
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7353 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7354 is in your PATH or set the PKG_CONFIG environment variable to the full
7357 Alternatively, you may set the environment variables GTK_CFLAGS
7358 and GTK_LIBS to avoid the need to call pkg-config.
7359 See the pkg-config man page for more details.
7361 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7362 See \`config.log' for more details" "$LINENO" 5 ; }
7364 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7365 GTK_LIBS=$pkg_cv_GTK_LIBS
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7367 $as_echo "yes" >&6; }
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF" >&5
7377 $as_echo_n "checking for GCONF... " >&6; }
7379 if test -n "$GCONF_CFLAGS"; then
7380 pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
7381 elif test -n "$PKG_CONFIG"; then
7382 if test -n "$PKG_CONFIG" && \
7383 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7384 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7387 test $ac_status = 0; }; then
7388 pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0" 2>/dev/null`
7395 if test -n "$GCONF_LIBS"; then
7396 pkg_cv_GCONF_LIBS="$GCONF_LIBS"
7397 elif test -n "$PKG_CONFIG"; then
7398 if test -n "$PKG_CONFIG" && \
7399 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7400 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7403 test $ac_status = 0; }; then
7404 pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0" 2>/dev/null`
7414 if test $pkg_failed = yes; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7418 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7419 _pkg_short_errors_supported=yes
7421 _pkg_short_errors_supported=no
7423 if test $_pkg_short_errors_supported = yes; then
7424 GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gconf-2.0" 2>&1`
7426 GCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors "gconf-2.0" 2>&1`
7428 # Put the nasty error message in config.log where it belongs
7429 echo "$GCONF_PKG_ERRORS" >&5
7431 as_fn_error $? "Package requirements (gconf-2.0) were not met:
7435 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7436 installed software in a non-standard prefix.
7438 Alternatively, you may set the environment variables GCONF_CFLAGS
7439 and GCONF_LIBS to avoid the need to call pkg-config.
7440 See the pkg-config man page for more details." "$LINENO" 5
7441 elif test $pkg_failed = untried; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7446 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7447 is in your PATH or set the PKG_CONFIG environment variable to the full
7450 Alternatively, you may set the environment variables GCONF_CFLAGS
7451 and GCONF_LIBS to avoid the need to call pkg-config.
7452 See the pkg-config man page for more details.
7454 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7455 See \`config.log' for more details" "$LINENO" 5 ; }
7457 GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
7458 GCONF_LIBS=$pkg_cv_GCONF_LIBS
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7460 $as_echo "yes" >&6; }
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
7473 $as_echo_n "checking for LIBNOTIFY... " >&6; }
7475 if test -n "$LIBNOTIFY_CFLAGS"; then
7476 pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
7477 elif test -n "$PKG_CONFIG"; then
7478 if test -n "$PKG_CONFIG" && \
7479 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7480 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7483 test $ac_status = 0; }; then
7484 pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
7491 if test -n "$LIBNOTIFY_LIBS"; then
7492 pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
7493 elif test -n "$PKG_CONFIG"; then
7494 if test -n "$PKG_CONFIG" && \
7495 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7496 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499 test $ac_status = 0; }; then
7500 pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
7510 if test $pkg_failed = yes; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 $as_echo "no" >&6; }
7514 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7515 _pkg_short_errors_supported=yes
7517 _pkg_short_errors_supported=no
7519 if test $_pkg_short_errors_supported = yes; then
7520 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libnotify" 2>&1`
7522 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors "libnotify" 2>&1`
7524 # Put the nasty error message in config.log where it belongs
7525 echo "$LIBNOTIFY_PKG_ERRORS" >&5
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7528 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7529 elif test $pkg_failed = untried; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7533 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7535 LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
7536 LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7538 $as_echo "yes" >&6; }
7540 $as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h
7543 if test -n "$LIBNOTIFY_LIBS"; then
7555 # Checks AppIndicator
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7560 $as_echo_n "checking for APPINDICATOR... " >&6; }
7562 if test -n "$APPINDICATOR_CFLAGS"; then
7563 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7564 elif test -n "$PKG_CONFIG"; then
7565 if test -n "$PKG_CONFIG" && \
7566 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7567 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7570 test $ac_status = 0; }; then
7571 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7578 if test -n "$APPINDICATOR_LIBS"; then
7579 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7580 elif test -n "$PKG_CONFIG"; then
7581 if test -n "$PKG_CONFIG" && \
7582 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7583 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7586 test $ac_status = 0; }; then
7587 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7597 if test $pkg_failed = yes; then
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7601 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7602 _pkg_short_errors_supported=yes
7604 _pkg_short_errors_supported=no
7606 if test $_pkg_short_errors_supported = yes; then
7607 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "appindicator-0.1 <= 0.2.9 " 2>&1`
7609 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors "appindicator-0.1 <= 0.2.9 " 2>&1`
7611 # Put the nasty error message in config.log where it belongs
7612 echo "$APPINDICATOR_PKG_ERRORS" >&5
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7615 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7616 elif test $pkg_failed = untried; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7620 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7622 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7623 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7625 $as_echo "yes" >&6; }
7627 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7630 $as_echo "#define HAVE_APPINDICATOR_029 1" >>confdefs.h
7635 if test "$APPINDICATOR_LIBS" == ""; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7639 $as_echo_n "checking for APPINDICATOR... " >&6; }
7641 if test -n "$APPINDICATOR_CFLAGS"; then
7642 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7643 elif test -n "$PKG_CONFIG"; then
7644 if test -n "$PKG_CONFIG" && \
7645 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
7646 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
7648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649 test $ac_status = 0; }; then
7650 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 > 0.2.9" 2>/dev/null`
7657 if test -n "$APPINDICATOR_LIBS"; then
7658 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7659 elif test -n "$PKG_CONFIG"; then
7660 if test -n "$PKG_CONFIG" && \
7661 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
7662 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
7664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7665 test $ac_status = 0; }; then
7666 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 > 0.2.9" 2>/dev/null`
7676 if test $pkg_failed = yes; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7680 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7681 _pkg_short_errors_supported=yes
7683 _pkg_short_errors_supported=no
7685 if test $_pkg_short_errors_supported = yes; then
7686 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "appindicator-0.1 > 0.2.9" 2>&1`
7688 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors "appindicator-0.1 > 0.2.9" 2>&1`
7690 # Put the nasty error message in config.log where it belongs
7691 echo "$APPINDICATOR_PKG_ERRORS" >&5
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
7694 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
7695 elif test $pkg_failed = untried; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697 $as_echo "no" >&6; }
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
7699 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
7701 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7702 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7704 $as_echo "yes" >&6; }
7706 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7710 if test -n "$APPINDICATOR_LIBS"; then
7712 APPINDICATOR_FALSE='#'
7714 APPINDICATOR_TRUE='#'
7721 # Check CURL, needed for remote monitoring
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
7726 $as_echo_n "checking for CURL... " >&6; }
7728 if test -n "$CURL_CFLAGS"; then
7729 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
7730 elif test -n "$PKG_CONFIG"; then
7731 if test -n "$PKG_CONFIG" && \
7732 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
7733 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
7735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7736 test $ac_status = 0; }; then
7737 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
7744 if test -n "$CURL_LIBS"; then
7745 pkg_cv_CURL_LIBS="$CURL_LIBS"
7746 elif test -n "$PKG_CONFIG"; then
7747 if test -n "$PKG_CONFIG" && \
7748 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
7749 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
7751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7752 test $ac_status = 0; }; then
7753 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
7763 if test $pkg_failed = yes; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7767 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7768 _pkg_short_errors_supported=yes
7770 _pkg_short_errors_supported=no
7772 if test $_pkg_short_errors_supported = yes; then
7773 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl" 2>&1`
7775 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl" 2>&1`
7777 # Put the nasty error message in config.log where it belongs
7778 echo "$CURL_PKG_ERRORS" >&5
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
7781 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
7782 elif test $pkg_failed = untried; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784 $as_echo "no" >&6; }
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
7786 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
7788 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
7789 CURL_LIBS=$pkg_cv_CURL_LIBS
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7791 $as_echo "yes" >&6; }
7793 $as_echo "#define HAVE_CURL 1" >>confdefs.h
7796 if test -n "$CURL_LIBS"; then
7807 # Check JSON, needed for remote monitoring
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
7812 $as_echo_n "checking for JSON... " >&6; }
7814 if test -n "$JSON_CFLAGS"; then
7815 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
7816 elif test -n "$PKG_CONFIG"; then
7817 if test -n "$PKG_CONFIG" && \
7818 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
7819 ($PKG_CONFIG --exists --print-errors "json") 2>&5
7821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7822 test $ac_status = 0; }; then
7823 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
7830 if test -n "$JSON_LIBS"; then
7831 pkg_cv_JSON_LIBS="$JSON_LIBS"
7832 elif test -n "$PKG_CONFIG"; then
7833 if test -n "$PKG_CONFIG" && \
7834 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
7835 ($PKG_CONFIG --exists --print-errors "json") 2>&5
7837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7838 test $ac_status = 0; }; then
7839 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
7849 if test $pkg_failed = yes; then
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7853 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7854 _pkg_short_errors_supported=yes
7856 _pkg_short_errors_supported=no
7858 if test $_pkg_short_errors_supported = yes; then
7859 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "json" 2>&1`
7861 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors "json" 2>&1`
7863 # Put the nasty error message in config.log where it belongs
7864 echo "$JSON_PKG_ERRORS" >&5
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
7867 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
7868 elif test $pkg_failed = untried; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
7872 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
7874 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
7875 JSON_LIBS=$pkg_cv_JSON_LIBS
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7877 $as_echo "yes" >&6; }
7879 $as_echo "#define HAVE_JSON 1" >>confdefs.h
7882 if test -n "$JSON_LIBS"; then
7893 # Enables remote monitoring if JSON and CURL is present
7894 if test -n "$JSON_LIBS"; then
7895 if test -n "$CURL_LIBS"; then
7897 $as_echo "#define HAVE_REMOTE_SUPPORT 1" >>confdefs.h
7903 # following code from sensors-applet
7904 # sensors-applet.sourceforge.net/
7905 for ac_header in NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h
7907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7908 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
7909 #include <X11/Xlib.h>
7912 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7913 cat >>confdefs.h <<_ACEOF
7914 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7921 if test -n "${X11_LIBS}"; then
7922 LIBS="${LIBS} -lX11 -lXext"
7924 if test "${HAVE_NVIDIA}" = "true"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryExtension in -lXNVCtrl" >&5
7926 $as_echo_n "checking for XNVCTRLQueryExtension in -lXNVCtrl... " >&6; }
7927 if test "${ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension+set}" = set; then :
7928 $as_echo_n "(cached) " >&6
7930 ac_check_lib_save_LIBS=$LIBS
7931 LIBS="-lXNVCtrl $LIBS"
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7935 /* Override any GCC internal prototype to avoid an error.
7936 Use char because int might match the return type of a GCC
7937 builtin and then its argument prototype would still apply. */
7941 char XNVCTRLQueryExtension ();
7945 return XNVCTRLQueryExtension ();
7950 if ac_fn_c_try_link "$LINENO"; then :
7951 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=yes
7953 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=no
7955 rm -f core conftest.err conftest.$ac_objext \
7956 conftest$ac_exeext conftest.$ac_ext
7957 LIBS=$ac_check_lib_save_LIBS
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&5
7960 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&6; }
7961 if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" = x""yes; then :
7962 NVIDIA_LIBS="-lXNVCtrl -lX11 -lXext"
7964 $as_echo "#define HAVE_NVIDIA 1" >>confdefs.h
7971 if test -n "$NVIDIA_LIBS"; then
7982 ############### psensor-server
7984 # Checks Lua 5.1 (required)
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
7989 $as_echo_n "checking for LUA... " >&6; }
7991 if test -n "$LUA_CFLAGS"; then
7992 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
7993 elif test -n "$PKG_CONFIG"; then
7994 if test -n "$PKG_CONFIG" && \
7995 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
7996 ($PKG_CONFIG --exists --print-errors "lua") 2>&5
7998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7999 test $ac_status = 0; }; then
8000 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua" 2>/dev/null`
8007 if test -n "$LUA_LIBS"; then
8008 pkg_cv_LUA_LIBS="$LUA_LIBS"
8009 elif test -n "$PKG_CONFIG"; then
8010 if test -n "$PKG_CONFIG" && \
8011 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
8012 ($PKG_CONFIG --exists --print-errors "lua") 2>&5
8014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8015 test $ac_status = 0; }; then
8016 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua" 2>/dev/null`
8026 if test $pkg_failed = yes; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8030 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8031 _pkg_short_errors_supported=yes
8033 _pkg_short_errors_supported=no
8035 if test $_pkg_short_errors_supported = yes; then
8036 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua" 2>&1`
8038 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua" 2>&1`
8040 # Put the nasty error message in config.log where it belongs
8041 echo "$LUA_PKG_ERRORS" >&5
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Lua not present" >&5
8044 $as_echo "$as_me: WARNING: Lua not present" >&2;}
8045 elif test $pkg_failed = untried; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Lua not present" >&5
8049 $as_echo "$as_me: WARNING: Lua not present" >&2;}
8051 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
8052 LUA_LIBS=$pkg_cv_LUA_LIBS
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8054 $as_echo "yes" >&6; }
8056 $as_echo "#define HAVE_LUA 1" >>confdefs.h
8060 # Ubuntu pkg module is lua5.1 not lua
8061 if test "$LUA_LIBS" == ""; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
8065 $as_echo_n "checking for LUA... " >&6; }
8067 if test -n "$LUA_CFLAGS"; then
8068 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
8069 elif test -n "$PKG_CONFIG"; then
8070 if test -n "$PKG_CONFIG" && \
8071 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
8072 ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
8074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8075 test $ac_status = 0; }; then
8076 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
8083 if test -n "$LUA_LIBS"; then
8084 pkg_cv_LUA_LIBS="$LUA_LIBS"
8085 elif test -n "$PKG_CONFIG"; then
8086 if test -n "$PKG_CONFIG" && \
8087 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
8088 ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
8090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8091 test $ac_status = 0; }; then
8092 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
8102 if test $pkg_failed = yes; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8106 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8107 _pkg_short_errors_supported=yes
8109 _pkg_short_errors_supported=no
8111 if test $_pkg_short_errors_supported = yes; then
8112 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1" 2>&1`
8114 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1" 2>&1`
8116 # Put the nasty error message in config.log where it belongs
8117 echo "$LUA_PKG_ERRORS" >&5
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Lua5.1 not present" >&5
8120 $as_echo "$as_me: WARNING: Lua5.1 not present" >&2;}
8121 elif test $pkg_failed = untried; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Lua5.1 not present" >&5
8125 $as_echo "$as_me: WARNING: Lua5.1 not present" >&2;}
8127 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
8128 LUA_LIBS=$pkg_cv_LUA_LIBS
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8130 $as_echo "yes" >&6; }
8132 $as_echo "#define HAVE_LUA 1" >>confdefs.h
8136 if test -n "$LUA_LIBS"; then
8147 # libmicrohttpd, mandatory for psensor-server
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMICROHTTPD" >&5
8152 $as_echo_n "checking for LIBMICROHTTPD... " >&6; }
8154 if test -n "$LIBMICROHTTPD_CFLAGS"; then
8155 pkg_cv_LIBMICROHTTPD_CFLAGS="$LIBMICROHTTPD_CFLAGS"
8156 elif test -n "$PKG_CONFIG"; then
8157 if test -n "$PKG_CONFIG" && \
8158 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8159 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8162 test $ac_status = 0; }; then
8163 pkg_cv_LIBMICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null`
8170 if test -n "$LIBMICROHTTPD_LIBS"; then
8171 pkg_cv_LIBMICROHTTPD_LIBS="$LIBMICROHTTPD_LIBS"
8172 elif test -n "$PKG_CONFIG"; then
8173 if test -n "$PKG_CONFIG" && \
8174 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8175 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8178 test $ac_status = 0; }; then
8179 pkg_cv_LIBMICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null`
8189 if test $pkg_failed = yes; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 $as_echo "no" >&6; }
8193 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8194 _pkg_short_errors_supported=yes
8196 _pkg_short_errors_supported=no
8198 if test $_pkg_short_errors_supported = yes; then
8199 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libmicrohttpd" 2>&1`
8201 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors "libmicrohttpd" 2>&1`
8203 # Put the nasty error message in config.log where it belongs
8204 echo "$LIBMICROHTTPD_PKG_ERRORS" >&5
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8207 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8208 elif test $pkg_failed = untried; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 $as_echo "no" >&6; }
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8212 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8214 LIBMICROHTTPD_CFLAGS=$pkg_cv_LIBMICROHTTPD_CFLAGS
8215 LIBMICROHTTPD_LIBS=$pkg_cv_LIBMICROHTTPD_LIBS
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8217 $as_echo "yes" >&6; }
8219 $as_echo "#define HAVE_LIBMICROHTTPD 1" >>confdefs.h
8222 if test -n "$LIBMICROHTTPD_LIBS"; then
8224 LIBMICROHTTPD_FALSE='#'
8226 LIBMICROHTTPD_TRUE='#'
8227 LIBMICROHTTPD_FALSE=
8236 # Check whether --with-gtop was given.
8237 if test "${with_gtop+set}" = set; then :
8248 if test "$with_gtop" = "yes"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTOP" >&5
8252 $as_echo_n "checking for GTOP... " >&6; }
8254 if test -n "$GTOP_CFLAGS"; then
8255 pkg_cv_GTOP_CFLAGS="$GTOP_CFLAGS"
8256 elif test -n "$PKG_CONFIG"; then
8257 if test -n "$PKG_CONFIG" && \
8258 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8259 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8262 test $ac_status = 0; }; then
8263 pkg_cv_GTOP_CFLAGS=`$PKG_CONFIG --cflags "libgtop-2.0" 2>/dev/null`
8270 if test -n "$GTOP_LIBS"; then
8271 pkg_cv_GTOP_LIBS="$GTOP_LIBS"
8272 elif test -n "$PKG_CONFIG"; then
8273 if test -n "$PKG_CONFIG" && \
8274 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8275 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8278 test $ac_status = 0; }; then
8279 pkg_cv_GTOP_LIBS=`$PKG_CONFIG --libs "libgtop-2.0" 2>/dev/null`
8289 if test $pkg_failed = yes; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8293 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8294 _pkg_short_errors_supported=yes
8296 _pkg_short_errors_supported=no
8298 if test $_pkg_short_errors_supported = yes; then
8299 GTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgtop-2.0" 2>&1`
8301 GTOP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgtop-2.0" 2>&1`
8303 # Put the nasty error message in config.log where it belongs
8304 echo "$GTOP_PKG_ERRORS" >&5
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8307 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8308 elif test $pkg_failed = untried; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8312 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8314 GTOP_CFLAGS=$pkg_cv_GTOP_CFLAGS
8315 GTOP_LIBS=$pkg_cv_GTOP_LIBS
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8317 $as_echo "yes" >&6; }
8319 $as_echo "#define HAVE_GTOP 1" >>confdefs.h
8323 if test -n "$GTOP_LIBS"; then
8334 ac_config_files="$ac_config_files Makefile src/Makefile src/plib/Makefile src/lib/Makefile src/libpsensor_json/Makefile src/server/Makefile pixmaps/scalable/Makefile pixmaps/48x48/Makefile www/Makefile po/Makefile.in tests/Makefile"
8337 for ac_prog in help2man
8339 # Extract the first word of "$ac_prog", so it can be a program name with args.
8340 set dummy $ac_prog; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if test "${ac_cv_prog_HELP2MAN+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8346 if test -n "$HELP2MAN"; then
8347 ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8356 ac_cv_prog_HELP2MAN="$ac_prog"
8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 HELP2MAN=$ac_cv_prog_HELP2MAN
8367 if test -n "$HELP2MAN"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
8369 $as_echo "$HELP2MAN" >&6; }
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8376 test -n "$HELP2MAN" && break
8380 cat >confcache <<\_ACEOF
8381 # This file is a shell script that caches the results of configure
8382 # tests run on this system so they can be shared between configure
8383 # scripts and configure runs, see configure's option --config-cache.
8384 # It is not useful on other systems. If it contains results you don't
8385 # want to keep, you may remove or edit it.
8387 # config.status only pays attention to the cache file if you give it
8388 # the --recheck option to rerun configure.
8390 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8391 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8396 # The following way of writing the cache mishandles newlines in values,
8397 # but we know of no workaround that is simple, portable, and efficient.
8398 # So, we kill variables containing newlines.
8399 # Ultrix sh set writes to stderr and can't be redirected directly,
8400 # and sets the high bit in the cache file unless we assign to the vars.
8402 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8403 eval ac_val=\$$ac_var
8407 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8408 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8411 _ | IFS | as_nl) ;; #(
8412 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8413 *) { eval $ac_var=; unset $ac_var;} ;;
8419 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8420 *${as_nl}ac_space=\ *)
8421 # `set' does not quote correctly, so add quotes: double-quote
8422 # substitution turns \\\\ into \\, and sed turns \\ into \.
8425 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8428 # `set' quotes correctly as required by POSIX, so do not add quotes.
8429 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8438 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8440 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8442 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8443 if test -w "$cache_file"; then
8444 test "x$cache_file" != "x/dev/null" &&
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8446 $as_echo "$as_me: updating cache $cache_file" >&6;}
8447 cat confcache >$cache_file
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8450 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8455 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8456 # Let make expand exec_prefix.
8457 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8459 DEFS=-DHAVE_CONFIG_H
8464 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8465 # 1. Remove the extension, and $U if already installed.
8466 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8467 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8468 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8469 # will be set to the directory where LIBOBJS objects are built.
8470 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8471 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8475 LTLIBOBJS=$ac_ltlibobjs
8478 if test -n "$EXEEXT"; then
8480 am__EXEEXT_FALSE='#'
8486 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8487 as_fn_error $? "conditional \"AMDEP\" was never defined.
8488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8490 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8491 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8494 if test -z "${LIBNOTIFY_TRUE}" && test -z "${LIBNOTIFY_FALSE}"; then
8495 as_fn_error $? "conditional \"LIBNOTIFY\" was never defined.
8496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8498 if test -z "${APPINDICATOR_TRUE}" && test -z "${APPINDICATOR_FALSE}"; then
8499 as_fn_error $? "conditional \"APPINDICATOR\" was never defined.
8500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8502 if test -z "${CURL_TRUE}" && test -z "${CURL_FALSE}"; then
8503 as_fn_error $? "conditional \"CURL\" was never defined.
8504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8506 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
8507 as_fn_error $? "conditional \"JSON\" was never defined.
8508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8510 if test -z "${NVIDIA_TRUE}" && test -z "${NVIDIA_FALSE}"; then
8511 as_fn_error $? "conditional \"NVIDIA\" was never defined.
8512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8514 if test -z "${LUA_TRUE}" && test -z "${LUA_FALSE}"; then
8515 as_fn_error $? "conditional \"LUA\" was never defined.
8516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8518 if test -z "${LIBMICROHTTPD_TRUE}" && test -z "${LIBMICROHTTPD_FALSE}"; then
8519 as_fn_error $? "conditional \"LIBMICROHTTPD\" was never defined.
8520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8522 if test -z "${GTOP_TRUE}" && test -z "${GTOP_FALSE}"; then
8523 as_fn_error $? "conditional \"GTOP\" was never defined.
8524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8527 : ${CONFIG_STATUS=./config.status}
8529 ac_clean_files_save=$ac_clean_files
8530 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8532 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8534 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8536 # Generated by $as_me.
8537 # Run this file to recreate the current configuration.
8538 # Compiler output produced by configure, useful for debugging
8539 # configure, is in config.log if it exists.
8545 SHELL=\${CONFIG_SHELL-$SHELL}
8548 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8549 ## -------------------- ##
8550 ## M4sh Initialization. ##
8551 ## -------------------- ##
8553 # Be more Bourne compatible
8554 DUALCASE=1; export DUALCASE # for MKS sh
8555 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8558 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8559 # is contrary to our usage. Disable this feature.
8560 alias -g '${1+"$@"}'='"$@"'
8561 setopt NO_GLOB_SUBST
8563 case `(set -o) 2>/dev/null` in #(
8575 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8576 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8577 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8578 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8579 # Prefer a ksh shell builtin over an external printf program on Solaris,
8580 # but without wasting forks for bash or zsh.
8581 if test -z "$BASH_VERSION$ZSH_VERSION" \
8582 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8583 as_echo='print -r --'
8584 as_echo_n='print -rn --'
8585 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8586 as_echo='printf %s\n'
8587 as_echo_n='printf %s'
8589 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8590 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8591 as_echo_n='/usr/ucb/echo -n'
8593 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8594 as_echo_n_body='eval
8598 expr "X$arg" : "X\\(.*\\)$as_nl";
8599 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8601 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8603 export as_echo_n_body
8604 as_echo_n='sh -c $as_echo_n_body as_echo'
8607 as_echo='sh -c $as_echo_body as_echo'
8610 # The user is always right.
8611 if test "${PATH_SEPARATOR+set}" != set; then
8613 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8614 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8621 # We need space, tab and new line, in precisely that order. Quoting is
8622 # there to prevent editors from complaining about space-tab.
8623 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8624 # splitting by setting IFS to empty value.)
8627 # Find who we are. Look in the path if we contain no directory separator.
8629 *[\\/]* ) as_myself=$0 ;;
8630 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 test -z "$as_dir" && as_dir=.
8635 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8641 # We did not find ourselves, most probably we were run as `sh COMMAND'
8642 # in which case we are not to be found in the path.
8643 if test "x$as_myself" = x; then
8646 if test ! -f "$as_myself"; then
8647 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8651 # Unset variables that we do not need and which cause bugs (e.g. in
8652 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8653 # suppresses any "Segmentation fault" message there. '((' could
8654 # trigger a bug in pdksh 5.2.14.
8655 for as_var in BASH_ENV ENV MAIL MAILPATH
8656 do eval test x\${$as_var+set} = xset \
8657 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8670 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8673 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8674 # ----------------------------------------
8675 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8676 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8677 # script with STATUS, using 1 if that was 0.
8680 as_status=$1; test $as_status -eq 0 && as_status=1
8682 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8683 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8685 $as_echo "$as_me: error: $2" >&2
8686 as_fn_exit $as_status
8690 # as_fn_set_status STATUS
8691 # -----------------------
8692 # Set $? to STATUS, without forking.
8696 } # as_fn_set_status
8700 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8710 # Portably unset VAR.
8713 { eval $1=; unset $1;}
8715 as_unset=as_fn_unset
8716 # as_fn_append VAR VALUE
8717 # ----------------------
8718 # Append the text in VALUE to the end of the definition contained in VAR. Take
8719 # advantage of any shell optimizations that allow amortized linear growth over
8720 # repeated appends, instead of the typical quadratic growth present in naive
8722 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8723 eval 'as_fn_append ()
8734 # as_fn_arith ARG...
8735 # ------------------
8736 # Perform arithmetic evaluation on the ARGs, and store the result in the
8737 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8738 # must be portable across $(()) and expr.
8739 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8740 eval 'as_fn_arith ()
8747 as_val=`expr "$@" || test $? -eq 1`
8752 if expr a : '\(a\)' >/dev/null 2>&1 &&
8753 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8759 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8760 as_basename=basename
8765 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8771 as_me=`$as_basename -- "$0" ||
8772 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8773 X"$0" : 'X\(//\)$' \| \
8774 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8776 sed '/^.*\/\([^/][^/]*\)\/*$/{
8790 # Avoid depending upon Character Ranges.
8791 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8792 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8793 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8794 as_cr_digits='0123456789'
8795 as_cr_alnum=$as_cr_Letters$as_cr_digits
8797 ECHO_C= ECHO_N= ECHO_T=
8798 case `echo -n x` in #(((((
8800 case `echo 'xy\c'` in
8801 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8803 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8810 rm -f conf$$ conf$$.exe conf$$.file
8811 if test -d conf$$.dir; then
8812 rm -f conf$$.dir/conf$$.file
8815 mkdir conf$$.dir 2>/dev/null
8817 if (echo >conf$$.file) 2>/dev/null; then
8818 if ln -s conf$$.file conf$$ 2>/dev/null; then
8820 # ... but there are two gotchas:
8821 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8822 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8823 # In both cases, we have to default to `cp -p'.
8824 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8826 elif ln conf$$.file conf$$ 2>/dev/null; then
8834 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8835 rmdir conf$$.dir 2>/dev/null
8840 # Create "$as_dir" as a directory, including parents if necessary.
8845 -*) as_dir=./$as_dir;;
8847 test -d "$as_dir" || eval $as_mkdir_p || {
8851 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8852 *) as_qdir=$as_dir;;
8854 as_dirs="'$as_qdir' $as_dirs"
8855 as_dir=`$as_dirname -- "$as_dir" ||
8856 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8857 X"$as_dir" : 'X\(//\)[^/]' \| \
8858 X"$as_dir" : 'X\(//\)$' \| \
8859 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8860 $as_echo X"$as_dir" |
8861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8878 test -d "$as_dir" && break
8880 test -z "$as_dirs" || eval "mkdir $as_dirs"
8881 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8885 if mkdir -p . 2>/dev/null; then
8886 as_mkdir_p='mkdir -p "$as_dir"'
8888 test -d ./-p && rmdir ./-p
8892 if test -x / >/dev/null 2>&1; then
8895 if ls -dL / >/dev/null 2>&1; then
8902 if test -d "$1"; then
8908 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8909 ???[sx]*):;;*)false;;esac;fi
8913 as_executable_p=$as_test_x
8915 # Sed expression to map a string onto a valid CPP name.
8916 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8918 # Sed expression to map a string onto a valid variable name.
8919 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8923 ## ----------------------------------- ##
8924 ## Main body of $CONFIG_STATUS script. ##
8925 ## ----------------------------------- ##
8927 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8930 # Save the log message, to keep $0 and so on meaningful, and to
8931 # report actual input values of CONFIG_FILES etc. instead of their
8932 # values after options handling.
8934 This file was extended by psensor $as_me 0.6.1.11, which was
8935 generated by GNU Autoconf 2.67. Invocation command line was
8937 CONFIG_FILES = $CONFIG_FILES
8938 CONFIG_HEADERS = $CONFIG_HEADERS
8939 CONFIG_LINKS = $CONFIG_LINKS
8940 CONFIG_COMMANDS = $CONFIG_COMMANDS
8943 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8948 case $ac_config_files in *"
8949 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8952 case $ac_config_headers in *"
8953 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8958 # Files that config.status was made for.
8959 config_files="$ac_config_files"
8960 config_headers="$ac_config_headers"
8961 config_commands="$ac_config_commands"
8965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8967 \`$as_me' instantiates files and other configuration actions
8968 from templates according to the current configuration. Unless the files
8969 and actions are specified as TAGs, all are instantiated by default.
8971 Usage: $0 [OPTION]... [TAG]...
8973 -h, --help print this help, then exit
8974 -V, --version print version number and configuration settings, then exit
8975 --config print configuration, then exit
8976 -q, --quiet, --silent
8977 do not print progress messages
8978 -d, --debug don't remove temporary files
8979 --recheck update $as_me by reconfiguring in the same conditions
8980 --file=FILE[:TEMPLATE]
8981 instantiate the configuration file FILE
8982 --header=FILE[:TEMPLATE]
8983 instantiate the configuration header FILE
8985 Configuration files:
8988 Configuration headers:
8991 Configuration commands:
8994 Report bugs to <wpitchoune@gmail.com>.
8995 psensor home page: <http://wpitchoune.net/psensor>."
8998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8999 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9001 psensor config.status 0.6.1.11
9002 configured by $0, generated by GNU Autoconf 2.67,
9003 with options \\"\$ac_cs_config\\"
9005 Copyright (C) 2010 Free Software Foundation, Inc.
9006 This config.status script is free software; the Free Software Foundation
9007 gives unlimited permission to copy, distribute and modify it."
9014 test -n "\$AWK" || AWK=awk
9017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9018 # The default lists apply if the user does not specify any file.
9024 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9025 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9029 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9041 # Handling of the options.
9042 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9044 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9045 $as_echo "$ac_cs_version"; exit ;;
9046 --config | --confi | --conf | --con | --co | --c )
9047 $as_echo "$ac_cs_config"; exit ;;
9048 --debug | --debu | --deb | --de | --d | -d )
9050 --file | --fil | --fi | --f )
9053 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9054 '') as_fn_error $? "missing file argument" ;;
9056 as_fn_append CONFIG_FILES " '$ac_optarg'"
9057 ac_need_defaults=false;;
9058 --header | --heade | --head | --hea )
9061 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9063 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9064 ac_need_defaults=false;;
9066 # Conflict between --help and --header
9067 as_fn_error $? "ambiguous option: \`$1'
9068 Try \`$0 --help' for more information.";;
9069 --help | --hel | -h )
9070 $as_echo "$ac_cs_usage"; exit ;;
9071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9072 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9076 -*) as_fn_error $? "unrecognized option: \`$1'
9077 Try \`$0 --help' for more information." ;;
9079 *) as_fn_append ac_config_targets " $1"
9080 ac_need_defaults=false ;;
9086 ac_configure_extra_args=
9088 if $ac_cs_silent; then
9090 ac_configure_extra_args="$ac_configure_extra_args --silent"
9094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9095 if \$ac_cs_recheck; then
9096 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9098 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9099 CONFIG_SHELL='$SHELL'
9105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9109 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9110 ## Running $as_me. ##
9116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9120 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9121 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9122 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9123 # from automake < 1.5.
9124 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9125 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9126 LINGUAS="${LINGUAS-%UNSET%}"
9131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9133 # Handling of arguments.
9134 for ac_config_target in $ac_config_targets
9136 case $ac_config_target in
9137 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9138 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9139 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9140 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9141 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9142 "src/plib/Makefile") CONFIG_FILES="$CONFIG_FILES src/plib/Makefile" ;;
9143 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
9144 "src/libpsensor_json/Makefile") CONFIG_FILES="$CONFIG_FILES src/libpsensor_json/Makefile" ;;
9145 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
9146 "pixmaps/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/scalable/Makefile" ;;
9147 "pixmaps/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/48x48/Makefile" ;;
9148 "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
9149 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9150 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9152 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
9157 # If the user did not use the arguments to specify the items to instantiate,
9158 # then the envvar interface is used. Set only those that are not.
9159 # We use the long form for the default assignment because of an extremely
9160 # bizarre bug on SunOS 4.1.3.
9161 if $ac_need_defaults; then
9162 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9163 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9164 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9167 # Have a temporary directory for convenience. Make it in the build tree
9168 # simply because there is no reason against having it here, and in addition,
9169 # creating and moving files from /tmp can sometimes cause problems.
9170 # Hook for its removal unless debugging.
9171 # Note that there is a small window in which the directory will not be cleaned:
9172 # after its creation but before its name has been assigned to `$tmp'.
9176 trap 'exit_status=$?
9177 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9179 trap 'as_fn_exit 1' 1 2 13 15
9181 # Create a (secure) tmp directory for tmp files.
9184 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9185 test -n "$tmp" && test -d "$tmp"
9188 tmp=./conf$$-$RANDOM
9189 (umask 077 && mkdir "$tmp")
9190 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9192 # Set up the scripts for CONFIG_FILES section.
9193 # No need to generate them if there are no CONFIG_FILES.
9194 # This happens for instance with `./config.status config.h'.
9195 if test -n "$CONFIG_FILES"; then
9198 ac_cr=`echo X | tr X '\015'`
9199 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9200 # But we know of no other shell where ac_cr would be empty at this
9201 # point, so we can use a bashism as a fallback.
9202 if test "x$ac_cr" = x; then
9203 eval ac_cr=\$\'\\r\'
9205 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9206 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9212 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9217 echo "cat >conf$$subs.awk <<_ACEOF" &&
9218 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9221 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9222 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9224 for ac_last_try in false false false false false :; do
9225 . ./conf$$subs.sh ||
9226 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9228 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9229 if test $ac_delim_n = $ac_delim_num; then
9231 elif $ac_last_try; then
9232 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9234 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9240 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9244 s/^/S["/; s/!.*/"]=/
9254 s/\(.\{148\}\)..*/\1/
9256 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9261 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9268 s/\(.\{148\}\)..*/\1/
9270 s/["\\]/\\&/g; s/^/"/; s/$/"/
9274 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9279 ' <conf$$subs.awk | sed '
9284 ' >>$CONFIG_STATUS || ac_write_fail=1
9285 rm -f conf$$subs.awk
9286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9288 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9289 for (key in S) S_is_set[key] = 1
9295 nfields = split(line, field, "@")
9297 len = length(field[1])
9298 for (i = 2; i < nfields; i++) {
9300 keylen = length(key)
9301 if (S_is_set[key]) {
9303 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9304 len += length(value) + length(field[++i])
9315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9316 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9317 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9320 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9321 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9324 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9325 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9326 # trailing colons and then remove the whole line if VPATH becomes empty
9327 # (actually we leave an empty line to preserve line numbers).
9328 if test "x$srcdir" = x.; then
9329 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9348 fi # test -n "$CONFIG_FILES"
9350 # Set up the scripts for CONFIG_HEADERS section.
9351 # No need to generate them if there are no CONFIG_HEADERS.
9352 # This happens for instance with `./config.status Makefile'.
9353 if test -n "$CONFIG_HEADERS"; then
9354 cat >"$tmp/defines.awk" <<\_ACAWK ||
9358 # Transform confdefs.h into an awk script `defines.awk', embedded as
9359 # here-document in config.status, that substitutes the proper values into
9360 # config.h.in to produce config.h.
9362 # Create a delimiter string that does not exist in confdefs.h, to ease
9363 # handling of long lines.
9365 for ac_last_try in false false :; do
9366 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9367 if test -z "$ac_t"; then
9369 elif $ac_last_try; then
9370 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9372 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9376 # For the awk script, D is an array of macro values keyed by name,
9377 # likewise P contains macro parameters if any. Preserve backslash
9378 # newline sequences.
9380 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9382 s/.\{148\}/&'"$ac_delim"'/g
9385 s/^[ ]*#[ ]*define[ ][ ]*/ /
9392 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9394 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9398 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9399 D["\1"]=" \3\\\\\\n"\\/p
9401 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9406 s/.\{148\}/&'"$ac_delim"'/g
9411 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9414 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9416 ' <confdefs.h | sed '
9417 s/'"$ac_delim"'/"\\\
9418 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9421 for (key in D) D_is_set[key] = 1
9424 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9426 split(line, arg, " ")
9427 if (arg[1] == "#") {
9431 defundef = substr(arg[1], 2)
9434 split(mac1, mac2, "(") #)
9436 prefix = substr(line, 1, index(line, defundef) - 1)
9437 if (D_is_set[macro]) {
9438 # Preserve the white space surrounding the "#".
9439 print prefix "define", macro P[macro] D[macro]
9442 # Replace #undef with comments. This is necessary, for example,
9443 # in the case of _POSIX_SOURCE, which is predefined and required
9444 # on some systems where configure will not decide to define it.
9445 if (defundef == "undef") {
9446 print "/*", prefix defundef, macro, "*/"
9454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9455 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9456 fi # test -n "$CONFIG_HEADERS"
9459 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9464 :[FHLC]) ac_mode=$ac_tag; continue;;
9466 case $ac_mode$ac_tag in
9468 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
9469 :[FH]-) ac_tag=-:-;;
9470 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9487 -) ac_f="$tmp/stdin";;
9488 *) # Look for the file first in the build tree, then in the source tree
9489 # (if the path is not absolute). The absolute path cannot be DOS-style,
9490 # because $ac_f cannot contain `:'.
9494 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9496 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
9498 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9499 as_fn_append ac_file_inputs " '$ac_f'"
9502 # Let's still pretend it is `configure' which instantiates (i.e., don't
9503 # use $as_me), people would be surprised to read:
9504 # /* config.h. Generated by config.status. */
9505 configure_input='Generated from '`
9506 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9508 if test x"$ac_file" != x-; then
9509 configure_input="$ac_file. $configure_input"
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9511 $as_echo "$as_me: creating $ac_file" >&6;}
9513 # Neutralize special characters interpreted by sed in replacement strings.
9514 case $configure_input in #(
9515 *\&* | *\|* | *\\* )
9516 ac_sed_conf_input=`$as_echo "$configure_input" |
9517 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9518 *) ac_sed_conf_input=$configure_input;;
9522 *:-:* | *:-) cat >"$tmp/stdin" \
9523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9528 ac_dir=`$as_dirname -- "$ac_file" ||
9529 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9530 X"$ac_file" : 'X\(//\)[^/]' \| \
9531 X"$ac_file" : 'X\(//\)$' \| \
9532 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9533 $as_echo X"$ac_file" |
9534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9551 as_dir="$ac_dir"; as_fn_mkdir_p
9555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9558 # A ".." for each directory in $ac_dir_suffix.
9559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9560 case $ac_top_builddir_sub in
9561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9565 ac_abs_top_builddir=$ac_pwd
9566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9567 # for backward compatibility:
9568 ac_top_builddir=$ac_top_build_prefix
9571 .) # We are building in place.
9573 ac_top_srcdir=$ac_top_builddir_sub
9574 ac_abs_top_srcdir=$ac_pwd ;;
9575 [\\/]* | ?:[\\/]* ) # Absolute name.
9576 ac_srcdir=$srcdir$ac_dir_suffix;
9577 ac_top_srcdir=$srcdir
9578 ac_abs_top_srcdir=$srcdir ;;
9580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9581 ac_top_srcdir=$ac_top_build_prefix$srcdir
9582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9594 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9595 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9599 [\\/$]* | ?:[\\/]* ) ;;
9600 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9605 # If the template does not know about datarootdir, expand it.
9606 # FIXME: This hack should be removed a few years after 2.60.
9607 ac_datarootdir_hack=; ac_datarootdir_seen=
9618 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9619 *datarootdir*) ac_datarootdir_seen=yes;;
9620 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9622 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9625 ac_datarootdir_hack='
9626 s&@datadir@&$datadir&g
9627 s&@docdir@&$docdir&g
9628 s&@infodir@&$infodir&g
9629 s&@localedir@&$localedir&g
9630 s&@mandir@&$mandir&g
9631 s&\\\${datarootdir}&$datarootdir&g' ;;
9635 # Neutralize VPATH when `$srcdir' = `.'.
9636 # Shell code in configure.ac might set extrasub.
9637 # FIXME: do we really want to maintain this feature?
9638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9639 ac_sed_extra="$ac_vpsub
9642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9644 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9645 s|@configure_input@|$ac_sed_conf_input|;t t
9646 s&@top_builddir@&$ac_top_builddir_sub&;t t
9647 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9648 s&@srcdir@&$ac_srcdir&;t t
9649 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9650 s&@top_srcdir@&$ac_top_srcdir&;t t
9651 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9652 s&@builddir@&$ac_builddir&;t t
9653 s&@abs_builddir@&$ac_abs_builddir&;t t
9654 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9655 s&@INSTALL@&$ac_INSTALL&;t t
9656 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9657 $ac_datarootdir_hack
9659 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9662 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9663 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9664 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9666 which seems to be undefined. Please make sure it is defined" >&5
9667 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9668 which seems to be undefined. Please make sure it is defined" >&2;}
9672 -) cat "$tmp/out" && rm -f "$tmp/out";;
9673 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9681 if test x"$ac_file" != x-; then
9683 $as_echo "/* $configure_input */" \
9684 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9685 } >"$tmp/config.h" \
9686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9687 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9689 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9692 mv "$tmp/config.h" "$ac_file" \
9693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9696 $as_echo "/* $configure_input */" \
9697 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9698 || as_fn_error $? "could not create -" "$LINENO" 5
9700 # Compute "$ac_file"'s index in $config_headers.
9703 for _am_header in $config_headers :; do
9705 $_am_arg | $_am_arg:* )
9708 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9711 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9712 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9713 X"$_am_arg" : 'X\(//\)[^/]' \| \
9714 X"$_am_arg" : 'X\(//\)$' \| \
9715 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9716 $as_echo X"$_am_arg" |
9717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9733 s/.*/./; q'`/stamp-h$_am_stamp_count
9736 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9737 $as_echo "$as_me: executing $ac_file commands" >&6;}
9742 case $ac_file$ac_mode in
9743 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9744 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9745 # are listed without --file. Let's play safe and only enable the eval
9746 # if we detect the quoting.
9747 case $CONFIG_FILES in
9748 *\'*) eval set x "$CONFIG_FILES" ;;
9749 *) set x $CONFIG_FILES ;;
9754 # Strip MF so we end up with the name of the file.
9755 mf=`echo "$mf" | sed -e 's/:.*$//'`
9756 # Check whether this is an Automake generated Makefile or not.
9757 # We used to match only the files named `Makefile.in', but
9758 # some people rename them; so instead we look at the file content.
9759 # Grep'ing the first line is not enough: some people post-process
9760 # each Makefile.in and add a new line on top of each file to say so.
9761 # Grep'ing the whole file is not good either: AIX grep has a line
9762 # limit of 2048, but all sed's we know have understand at least 4000.
9763 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9764 dirpart=`$as_dirname -- "$mf" ||
9765 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9766 X"$mf" : 'X\(//\)[^/]' \| \
9767 X"$mf" : 'X\(//\)$' \| \
9768 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9790 # Extract the definition of DEPDIR, am__include, and am__quote
9791 # from the Makefile without running `make'.
9792 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9793 test -z "$DEPDIR" && continue
9794 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9795 test -z "am__include" && continue
9796 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9797 # When using ansi2knr, U may be empty or an underscore; expand it
9798 U=`sed -n 's/^U = //p' < "$mf"`
9799 # Find all dependency output files, they are included files with
9800 # $(DEPDIR) in their names. We invoke sed twice because it is the
9801 # simplest approach to changing $(DEPDIR) to its actual value in the
9803 for file in `sed -n "
9804 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9805 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9806 # Make sure the directory exists.
9807 test -f "$dirpart/$file" && continue
9808 fdir=`$as_dirname -- "$file" ||
9809 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9810 X"$file" : 'X\(//\)[^/]' \| \
9811 X"$file" : 'X\(//\)$' \| \
9812 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9831 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9832 # echo "creating $dirpart/$file"
9833 echo '# dummy' > "$dirpart/$file"
9839 for ac_file in $CONFIG_FILES; do
9840 # Support "outfile[:infile[:infile...]]"
9842 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9844 # PO directories have a Makefile.in generated from Makefile.in.in.
9845 case "$ac_file" in */Makefile.in)
9846 # Adjust a relative srcdir.
9847 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9848 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9849 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9850 # In autoconf-2.13 it is called $ac_given_srcdir.
9851 # In autoconf-2.50 it is called $srcdir.
9852 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9853 case "$ac_given_srcdir" in
9854 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9855 /*) top_srcdir="$ac_given_srcdir" ;;
9856 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9858 # Treat a directory as a PO directory if and only if it has a
9859 # POTFILES.in file. This allows packages to have multiple PO
9860 # directories under different names or in different locations.
9861 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9862 rm -f "$ac_dir/POTFILES"
9863 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9864 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9865 POMAKEFILEDEPS="POTFILES.in"
9866 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9867 # on $ac_dir but don't depend on user-specified configuration
9869 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9870 # The LINGUAS file contains the set of available languages.
9871 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9872 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9874 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9875 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9876 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9877 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9879 # The set of available languages was given in configure.in.
9880 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9881 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9884 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9885 # Compute UPDATEPOFILES
9886 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9887 # Compute DUMMYPOFILES
9888 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9890 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9891 case "$ac_given_srcdir" in
9893 *) srcdirpre='$(srcdir)/' ;;
9899 for lang in $ALL_LINGUAS; do
9900 POFILES="$POFILES $srcdirpre$lang.po"
9901 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9902 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9903 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9905 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9906 # environment variable.
9908 if test -n "$ALL_LINGUAS"; then
9909 for presentlang in $ALL_LINGUAS; do
9911 if test "%UNSET%" != "$LINGUAS"; then
9912 desiredlanguages="$LINGUAS"
9914 desiredlanguages="$ALL_LINGUAS"
9916 for desiredlang in $desiredlanguages; do
9917 # Use the presentlang catalog if desiredlang is
9918 # a. equal to presentlang, or
9919 # b. a variant of presentlang (because in this case,
9920 # presentlang can be used as a fallback for messages
9921 # which are not translated in the desiredlang catalog).
9922 case "$desiredlang" in
9923 "$presentlang"*) useit=yes;;
9926 if test $useit = yes; then
9927 INST_LINGUAS="$INST_LINGUAS $presentlang"
9932 if test -n "$INST_LINGUAS"; then
9933 for lang in $INST_LINGUAS; do
9934 CATALOGS="$CATALOGS $lang.gmo"
9937 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9938 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"
9939 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9940 if test -f "$f"; then
9942 *.orig | *.bak | *~) ;;
9943 *) cat "$f" >> "$ac_dir/Makefile" ;;
9958 ac_clean_files=$ac_clean_files_save
9960 test $ac_write_fail = 0 ||
9961 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9964 # configure is writing to config.log, and then calls config.status.
9965 # config.status does its own redirection, appending to config.log.
9966 # Unfortunately, on DOS this fails, as config.log is still kept open
9967 # by configure, so config.status won't be able to write to it; its
9968 # output is simply discarded. So we exec the FD to /dev/null,
9969 # effectively closing config.log, so it can be properly (re)opened and
9970 # appended to by config.status. When coming back to configure, we
9971 # need to make the FD available again.
9972 if test "$no_create" != yes; then
9974 ac_config_status_args=
9975 test "$silent" = yes &&
9976 ac_config_status_args="$ac_config_status_args --quiet"
9978 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9980 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9981 # would make configure fail if this is the last instruction.
9982 $ac_cs_success || as_fn_exit 1
9984 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9986 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}