2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for psensor 0.7.0.0.
5 # Report bugs to <jeanfi@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.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and jeanfi@gmail.com
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
560 # Identity of this package.
561 PACKAGE_NAME='psensor'
562 PACKAGE_TARNAME='psensor'
563 PACKAGE_VERSION='0.7.0.0'
564 PACKAGE_STRING='psensor 0.7.0.0'
565 PACKAGE_BUGREPORT='jeanfi@gmail.com'
566 PACKAGE_URL='http://wpitchoune.net/psensor'
568 ac_unique_file="src/compat.h"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
606 ac_subst_vars='am__EXEEXT_FALSE
677 XGETTEXT_EXTRA_OPTIONS
685 GETTEXT_MACRO_VERSION
718 INSTALL_STRIP_PROGRAM
760 program_transform_name
773 enable_option_checking
774 enable_dependency_tracking
784 ac_precious_vars='build_alias
823 # Initialize some variables set by options.
825 ac_init_version=false
826 ac_unrecognized_opts=
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
837 program_transform_name=s,x,x,
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
883 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 # Accept the important Cygnus configure options, so we can diagnose typos.
890 case $ac_dashdash$ac_option in
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
912 cache_file=config.cache ;;
914 -datadir | --datadir | --datadi | --datad)
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
940 eval enable_$ac_useropt=no ;;
942 -docdir | --docdir | --docdi | --doc | --do)
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 -enable-* | --enable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
966 eval enable_$ac_useropt=\$ac_optarg ;;
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
981 -help | --help | --hel | --he | -h)
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
997 htmldir=$ac_optarg ;;
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1011 -libdir | --libdir | --libdi | --libd)
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1102 -psdir | --psdir | --psdi | --psd | --ps)
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1115 sbindir=$ac_optarg ;;
1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119 | --sharedst | --shareds | --shared | --share | --shar \
1121 ac_prev=sharedstatedir ;;
1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1126 sharedstatedir=$ac_optarg ;;
1128 -site | --site | --sit)
1130 -site=* | --site=* | --sit=*)
1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136 srcdir=$ac_optarg ;;
1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139 | --syscon | --sysco | --sysc | --sys | --sy)
1140 ac_prev=sysconfdir ;;
1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143 sysconfdir=$ac_optarg ;;
1145 -target | --target | --targe | --targ | --tar | --ta | --t)
1146 ac_prev=target_alias ;;
1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148 target_alias=$ac_optarg ;;
1150 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153 -version | --version | --versio | --versi | --vers | -V)
1154 ac_init_version=: ;;
1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1170 eval with_$ac_useropt=\$ac_optarg ;;
1172 -without-* | --without-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1186 eval with_$ac_useropt=no ;;
1189 # Obsolete; use --with-x.
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1206 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1207 Try \`$0 --help' for more information"
1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 case $ac_envvar in #(
1214 '' | [0-9]* | *[!_$as_cr_alnum]* )
1215 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1221 # FIXME: should be removed in autoconf 3.0.
1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 as_fn_error $? "missing argument to $ac_option"
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1239 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1244 # Check all directory arguments for consistency.
1245 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir
1250 eval ac_val=\$$ac_var
1251 # Remove trailing slashes.
1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\$ac_val;;
1257 # Be sure to have absolute directory names.
1259 [\\/$]* | ?:[\\/]* ) continue;;
1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1262 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1265 # There might be people who depend on the old broken behavior: `$host'
1266 # used to hold the argument of --host etc.
1267 # FIXME: To remove some day.
1270 target=$target_alias
1272 # FIXME: To remove some day.
1273 if test "x$host_alias" != x; then
1274 if test "x$build_alias" = x; then
1275 cross_compiling=maybe
1276 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1277 If a cross compiler is detected then cross compile mode will be used" >&2
1278 elif test "x$build_alias" != "x$host_alias"; then
1284 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286 test "$silent" = yes && exec 6>/dev/null
1289 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1290 ac_ls_di=`ls -di .` &&
1291 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1292 as_fn_error $? "working directory cannot be determined"
1293 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1294 as_fn_error $? "pwd does not report name of working directory"
1297 # Find the source files, if location was not specified.
1298 if test -z "$srcdir"; then
1299 ac_srcdir_defaulted=yes
1300 # Try the directory containing this script, then the parent directory.
1301 ac_confdir=`$as_dirname -- "$as_myself" ||
1302 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1303 X"$as_myself" : 'X\(//\)[^/]' \| \
1304 X"$as_myself" : 'X\(//\)$' \| \
1305 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1306 $as_echo X"$as_myself" |
1307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1329 ac_srcdir_defaulted=no
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1333 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1335 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1337 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1339 # When building in place, set srcdir=.
1340 if test "$ac_abs_confdir" = "$ac_pwd"; then
1343 # Remove unnecessary trailing slashes from srcdir.
1344 # Double slashes in file names in object file debugging info
1345 # mess up M-x gdb in Emacs.
1347 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349 for ac_var in $ac_precious_vars; do
1350 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_env_${ac_var}_value=\$${ac_var}
1352 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 # Report the --help message.
1359 if test "$ac_init_help" = "long"; then
1360 # Omit some internal or obsolete options to make the list less imposing.
1361 # This message is too long to be a string in the A/UX 3.1 sh.
1363 \`configure' configures psensor 0.7.0.0 to adapt to many kinds of systems.
1365 Usage: $0 [OPTION]... [VAR=VALUE]...
1367 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368 VAR=VALUE. See below for descriptions of some of the useful variables.
1370 Defaults for the options are specified in brackets.
1373 -h, --help display this help and exit
1374 --help=short display options specific to this package
1375 --help=recursive display the short help of all the included packages
1376 -V, --version display version information and exit
1377 -q, --quiet, --silent do not print \`checking ...' messages
1378 --cache-file=FILE cache test results in FILE [disabled]
1379 -C, --config-cache alias for \`--cache-file=config.cache'
1380 -n, --no-create do not create output files
1381 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1383 Installation directories:
1384 --prefix=PREFIX install architecture-independent files in PREFIX
1385 [$ac_default_prefix]
1386 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1389 By default, \`make install' will install all the files in
1390 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1391 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392 for instance \`--prefix=\$HOME'.
1394 For better control, use the options below.
1396 Fine tuning of the installation directories:
1397 --bindir=DIR user executables [EPREFIX/bin]
1398 --sbindir=DIR system admin executables [EPREFIX/sbin]
1399 --libexecdir=DIR program executables [EPREFIX/libexec]
1400 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1401 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1402 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1403 --libdir=DIR object code libraries [EPREFIX/lib]
1404 --includedir=DIR C header files [PREFIX/include]
1405 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1408 --infodir=DIR info documentation [DATAROOTDIR/info]
1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1410 --mandir=DIR man documentation [DATAROOTDIR/man]
1411 --docdir=DIR documentation root [DATAROOTDIR/doc/psensor]
1412 --htmldir=DIR html documentation [DOCDIR]
1413 --dvidir=DIR dvi documentation [DOCDIR]
1414 --pdfdir=DIR pdf documentation [DOCDIR]
1415 --psdir=DIR ps documentation [DOCDIR]
1421 --program-prefix=PREFIX prepend PREFIX to installed program names
1422 --program-suffix=SUFFIX append SUFFIX to installed program names
1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1426 --x-includes=DIR X include files are in DIR
1427 --x-libraries=DIR X library files are in DIR
1430 --build=BUILD configure for building on BUILD [guessed]
1431 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1435 if test -n "$ac_init_help"; then
1436 case $ac_init_help in
1437 short | recursive ) echo "Configuration of psensor 0.7.0.0:";;
1442 --disable-option-checking ignore unrecognized --enable/--with options
1443 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1444 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1445 --disable-dependency-tracking speeds up one-time build
1446 --enable-dependency-tracking do not reject slow dependency extractors
1447 --disable-nls do not use Native Language Support
1448 --disable-rpath do not hardcode runtime library paths
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-x use the X Window System
1454 --with-gnu-ld assume the C compiler uses GNU ld default=no
1455 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1456 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1457 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1458 --without-libintl-prefix don't search for libintl in includedir and libdir
1459 --with-libatiadl=DIR use libatiadlxx in DIR
1460 --with-gtop=yes|no use gtop
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1470 XMKMF Path to xmkmf, Makefile generator for X Window System
1472 PKG_CONFIG path to pkg-config utility
1474 directories to add to pkg-config's search path
1476 path overriding pkg-config's built-in search path
1477 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1478 X11_LIBS linker flags for X11, overriding pkg-config
1479 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1480 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1481 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1482 GTK_LIBS linker flags for GTK, overriding pkg-config
1484 C compiler flags for GCONF, overriding pkg-config
1485 GCONF_LIBS linker flags for GCONF, overriding pkg-config
1487 C compiler flags for ATASMART, overriding pkg-config
1489 linker flags for ATASMART, overriding pkg-config
1491 C compiler flags for LIBNOTIFY, overriding pkg-config
1493 linker flags for LIBNOTIFY, overriding pkg-config
1495 C compiler flags for APPINDICATOR, overriding pkg-config
1497 linker flags for APPINDICATOR, overriding pkg-config
1498 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1499 CURL_LIBS linker flags for CURL, overriding pkg-config
1500 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1501 JSON_LIBS linker flags for JSON, overriding pkg-config
1503 C compiler flags for UNITY, overriding pkg-config
1504 UNITY_LIBS linker flags for UNITY, overriding pkg-config
1505 LIBMICROHTTPD_CFLAGS
1506 C compiler flags for LIBMICROHTTPD, overriding pkg-config
1508 linker flags for LIBMICROHTTPD, overriding pkg-config
1509 GTOP_CFLAGS C compiler flags for GTOP, overriding pkg-config
1510 GTOP_LIBS linker flags for GTOP, overriding pkg-config
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1515 Report bugs to <jeanfi@gmail.com>.
1516 psensor home page: <http://wpitchoune.net/psensor>.
1521 if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524 test -d "$ac_dir" ||
1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 ac_abs_top_builddir=$ac_pwd
1541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542 # for backward compatibility:
1543 ac_top_builddir=$ac_top_build_prefix
1546 .) # We are building in place.
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
1551 ac_srcdir=$srcdir$ac_dir_suffix;
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1568 $SHELL "$ac_srcdir/configure" --help=recursive
1570 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 cd "$ac_pwd" || { ac_status=$?; break; }
1576 test -n "$ac_init_help" && exit $ac_status
1577 if $ac_init_version; then
1579 psensor configure 0.7.0.0
1580 generated by GNU Autoconf 2.68
1582 Copyright (C) 2010 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1589 ## ------------------------ ##
1590 ## Autoconf initialization. ##
1591 ## ------------------------ ##
1593 # ac_fn_c_try_compile LINENO
1594 # --------------------------
1595 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_compile ()
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext
1600 if { { ac_try="$ac_compile"
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_compile") 2>conftest.err
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest.$ac_objext; then :
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1629 } # ac_fn_c_try_compile
1631 # ac_fn_c_try_cpp LINENO
1632 # ----------------------
1633 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_cpp conftest.$ac_ext"
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } > conftest.i && {
1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1668 # ac_fn_c_try_link LINENO
1669 # -----------------------
1670 # Try to link conftest.$ac_ext, and return whether this succeeded.
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext conftest$ac_exeext
1675 if { { ac_try="$ac_link"
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>conftest.err
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest$ac_exeext && {
1694 test "$cross_compiling" = yes ||
1695 $as_test_x conftest$ac_exeext
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1704 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1705 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1706 # interfere with the next link command; also delete a directory that is
1707 # left behind by Apple's compiler. We do this before executing the actions.
1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1712 } # ac_fn_c_try_link
1714 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1715 # -------------------------------------------------------
1716 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1717 # the include files in INCLUDES and setting the cache variable VAR
1719 ac_fn_c_check_header_mongrel ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if eval \${$3+:} false; then :
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1732 # Is the header compilable?
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1734 $as_echo_n "checking $2 usability... " >&6; }
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1740 if ac_fn_c_try_compile "$LINENO"; then :
1741 ac_header_compiler=yes
1743 ac_header_compiler=no
1745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1747 $as_echo "$ac_header_compiler" >&6; }
1749 # Is the header present?
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1751 $as_echo_n "checking $2 presence... " >&6; }
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1756 if ac_fn_c_try_cpp "$LINENO"; then :
1757 ac_header_preproc=yes
1759 ac_header_preproc=no
1761 rm -f conftest.err conftest.i conftest.$ac_ext
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1763 $as_echo "$ac_header_preproc" >&6; }
1765 # So? What about this header?
1766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1769 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1771 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1775 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1777 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1779 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1781 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1783 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1784 ( $as_echo "## ------------------------------- ##
1785 ## Report this to jeanfi@gmail.com ##
1786 ## ------------------------------- ##"
1787 ) | sed "s/^/$as_me: WARNING: /" >&2
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval \${$3+:} false; then :
1793 $as_echo_n "(cached) " >&6
1795 eval "$3=\$ac_header_compiler"
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 } # ac_fn_c_check_header_mongrel
1805 # ac_fn_c_try_run LINENO
1806 # ----------------------
1807 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1808 # that executables *can* be run.
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if { { ac_try="$ac_link"
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_link") 2>&5
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1823 { { case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_try") 2>&5
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; }; }; then :
1835 $as_echo "$as_me: program exited with status $ac_status" >&5
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1839 ac_retval=$ac_status
1841 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1847 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1848 # -------------------------------------------------------
1849 # Tests whether HEADER exists and can be compiled using the include files in
1850 # INCLUDES, setting the cache variable VAR accordingly.
1851 ac_fn_c_check_header_compile ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855 $as_echo_n "checking for $2... " >&6; }
1856 if eval \${$3+:} false; then :
1857 $as_echo_n "(cached) " >&6
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1864 if ac_fn_c_try_compile "$LINENO"; then :
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 } # ac_fn_c_check_header_compile
1878 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1879 # -------------------------------------------
1880 # Tests whether TYPE exists after having included INCLUDES, setting cache
1881 # variable VAR accordingly.
1882 ac_fn_c_check_type ()
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888 $as_echo_n "(cached) " >&6
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1916 if ac_fn_c_try_compile "$LINENO"; then :
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 } # ac_fn_c_check_type
1932 # ac_fn_c_check_func LINENO FUNC VAR
1933 # ----------------------------------
1934 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1935 ac_fn_c_check_func ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1947 #define $2 innocuous_$2
1949 /* System header to define __stub macros and hopefully few prototypes,
1950 which can conflict with char $2 (); below.
1951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1952 <limits.h> exists even on freestanding compilers. */
1955 # include <limits.h>
1957 # include <assert.h>
1962 /* Override any GCC internal prototype to avoid an error.
1963 Use char because int might match the return type of a GCC
1964 builtin and then its argument prototype would still apply. */
1969 /* The GNU C library defines this for functions which it implements
1970 to always fail with ENOSYS. Some functions are actually named
1971 something starting with __ and the normal name is an alias. */
1972 #if defined __stub_$2 || defined __stub___$2
1984 if ac_fn_c_try_link "$LINENO"; then :
1989 rm -f core conftest.err conftest.$ac_objext \
1990 conftest$ac_exeext conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 } # ac_fn_c_check_func
1998 cat >config.log <<_ACEOF
1999 This file contains any messages produced by compilers while
2000 running configure, to aid debugging if configure makes a mistake.
2002 It was created by psensor $as_me 0.7.0.0, which was
2003 generated by GNU Autoconf 2.68. Invocation command line was
2015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2027 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 test -z "$as_dir" && as_dir=.
2039 $as_echo "PATH: $as_dir"
2055 # Keep a trace of the command line.
2056 # Strip out --no-create and --no-recursion so they do not pile up.
2057 # Strip out --silent because we don't want to record it for future runs.
2058 # Also quote any args containing shell meta-characters.
2059 # Make two passes to allow for proper duplicate-argument suppression.
2063 ac_must_keep_next=false
2069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2071 | -silent | --silent | --silen | --sile | --sil)
2074 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2077 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2079 as_fn_append ac_configure_args1 " '$ac_arg'"
2080 if test $ac_must_keep_next = true; then
2081 ac_must_keep_next=false # Got value, back to normal.
2084 *=* | --config-cache | -C | -disable-* | --disable-* \
2085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2087 | -with-* | --with-* | -without-* | --without-* | --x)
2088 case "$ac_configure_args0 " in
2089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2092 -* ) ac_must_keep_next=true ;;
2095 as_fn_append ac_configure_args " '$ac_arg'"
2100 { ac_configure_args0=; unset ac_configure_args0;}
2101 { ac_configure_args1=; unset ac_configure_args1;}
2103 # When interrupted or exit'd, cleanup temporary files, and complete
2104 # config.log. We remove comments because anyway the quotes in there
2105 # would cause problems or look ugly.
2106 # WARNING: Use '\'' to represent an apostrophe within the trap.
2107 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2108 trap 'exit_status=$?
2109 # Save into config.log some information that might help in debugging.
2113 $as_echo "## ---------------- ##
2114 ## Cache variables. ##
2115 ## ---------------- ##"
2117 # The following way of writing the cache mishandles newlines in values,
2119 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2120 eval ac_val=\$$ac_var
2124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2125 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2128 _ | IFS | as_nl) ;; #(
2129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2130 *) { eval $ac_var=; unset $ac_var;} ;;
2135 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2136 *${as_nl}ac_space=\ *)
2138 "s/'\''/'\''\\\\'\'''\''/g;
2139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2142 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2149 $as_echo "## ----------------- ##
2150 ## Output variables. ##
2151 ## ----------------- ##"
2153 for ac_var in $ac_subst_vars
2155 eval ac_val=\$$ac_var
2157 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159 $as_echo "$ac_var='\''$ac_val'\''"
2163 if test -n "$ac_subst_files"; then
2164 $as_echo "## ------------------- ##
2165 ## File substitutions. ##
2166 ## ------------------- ##"
2168 for ac_var in $ac_subst_files
2170 eval ac_val=\$$ac_var
2172 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2174 $as_echo "$ac_var='\''$ac_val'\''"
2179 if test -s confdefs.h; then
2180 $as_echo "## ----------- ##
2187 test "$ac_signal" != 0 &&
2188 $as_echo "$as_me: caught signal $ac_signal"
2189 $as_echo "$as_me: exit $exit_status"
2191 rm -f core *.core core.conftest.* &&
2192 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2195 for ac_signal in 1 2 13 15; do
2196 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2201 rm -f -r conftest* confdefs.h
2203 $as_echo "/* confdefs.h */" > confdefs.h
2205 # Predefined preprocessor variables.
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_NAME "$PACKAGE_NAME"
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_STRING "$PACKAGE_STRING"
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_URL "$PACKAGE_URL"
2232 # Let the site file select an alternate cache file if it wants to.
2233 # Prefer an explicitly selected file to automatically selected ones.
2236 if test -n "$CONFIG_SITE"; then
2237 # We do not want a PATH search for config.site.
2238 case $CONFIG_SITE in #((
2239 -*) ac_site_file1=./$CONFIG_SITE;;
2240 */*) ac_site_file1=$CONFIG_SITE;;
2241 *) ac_site_file1=./$CONFIG_SITE;;
2243 elif test "x$prefix" != xNONE; then
2244 ac_site_file1=$prefix/share/config.site
2245 ac_site_file2=$prefix/etc/config.site
2247 ac_site_file1=$ac_default_prefix/share/config.site
2248 ac_site_file2=$ac_default_prefix/etc/config.site
2250 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2252 test "x$ac_site_file" = xNONE && continue
2253 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2255 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2256 sed 's/^/| /' "$ac_site_file" >&5
2258 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2260 as_fn_error $? "failed to load site script $ac_site_file
2261 See \`config.log' for more details" "$LINENO" 5; }
2265 if test -r "$cache_file"; then
2266 # Some versions of bash will fail to source /dev/null (special files
2267 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2268 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2270 $as_echo "$as_me: loading cache $cache_file" >&6;}
2272 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2273 *) . "./$cache_file";;
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2278 $as_echo "$as_me: creating cache $cache_file" >&6;}
2282 gt_needs="$gt_needs "
2283 # Check that the precious variables saved in the cache have kept the same
2285 ac_cache_corrupted=false
2286 for ac_var in $ac_precious_vars; do
2287 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2288 eval ac_new_set=\$ac_env_${ac_var}_set
2289 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2290 eval ac_new_val=\$ac_env_${ac_var}_value
2291 case $ac_old_set,$ac_new_set in
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2294 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2295 ac_cache_corrupted=: ;;
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2298 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2299 ac_cache_corrupted=: ;;
2302 if test "x$ac_old_val" != "x$ac_new_val"; then
2303 # differences in whitespace do not lead to failure.
2304 ac_old_val_w=`echo x $ac_old_val`
2305 ac_new_val_w=`echo x $ac_new_val`
2306 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2308 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2309 ac_cache_corrupted=:
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2312 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2313 eval $ac_var=\$ac_old_val
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2316 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2318 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2321 # Pass precious variables to config.status.
2322 if test "$ac_new_set" = set; then
2324 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2325 *) ac_arg=$ac_var=$ac_new_val ;;
2327 case " $ac_configure_args " in
2328 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2329 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2333 if $ac_cache_corrupted; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2337 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2338 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2340 ## -------------------- ##
2341 ## Main body of script. ##
2342 ## -------------------- ##
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352 am__api_version='1.11'
2355 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2356 if test -f "$ac_dir/install-sh"; then
2358 ac_install_sh="$ac_aux_dir/install-sh -c"
2360 elif test -f "$ac_dir/install.sh"; then
2362 ac_install_sh="$ac_aux_dir/install.sh -c"
2364 elif test -f "$ac_dir/shtool"; then
2366 ac_install_sh="$ac_aux_dir/shtool install -c"
2370 if test -z "$ac_aux_dir"; then
2371 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2374 # These three variables are undocumented and unsupported,
2375 # and are intended to be withdrawn in a future Autoconf release.
2376 # They can cause serious problems if a builder's source tree is in a directory
2377 # whose full name contains unusual characters.
2378 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2379 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2380 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2383 # Find a good install program. We prefer a C program (faster),
2384 # so one script is as good as another. But avoid the broken or
2385 # incompatible versions:
2386 # SysV /etc/install, /usr/sbin/install
2387 # SunOS /usr/etc/install
2388 # IRIX /sbin/install
2390 # AmigaOS /C/install, which installs bootblocks on floppy discs
2391 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2392 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2393 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2394 # OS/2's system install, which has a completely different semantic
2395 # ./install, which can be erroneously created by make from ./install.sh.
2396 # Reject install programs that cannot install multiple files.
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2398 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2399 if test -z "$INSTALL"; then
2400 if ${ac_cv_path_install+:} false; then :
2401 $as_echo_n "(cached) " >&6
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir=.
2408 # Account for people who put trailing slashes in PATH elements.
2409 case $as_dir/ in #((
2410 ./ | .// | /[cC]/* | \
2411 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2412 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2415 # OSF1 and SCO ODT 3.0 have their own names for install.
2416 # Don't use installbsd from OSF since it installs stuff as root
2418 for ac_prog in ginstall scoinst install; do
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2421 if test $ac_prog = install &&
2422 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2423 # AIX install. It has an incompatible calling convention.
2425 elif test $ac_prog = install &&
2426 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427 # program-specific install script used by HP pwplus--don't use.
2430 rm -rf conftest.one conftest.two conftest.dir
2431 echo one > conftest.one
2432 echo two > conftest.two
2434 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2435 test -s conftest.one && test -s conftest.two &&
2436 test -s conftest.dir/conftest.one &&
2437 test -s conftest.dir/conftest.two
2439 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2452 rm -rf conftest.one conftest.two conftest.dir
2455 if test "${ac_cv_path_install+set}" = set; then
2456 INSTALL=$ac_cv_path_install
2458 # As a last resort, use the slow shell script. Don't cache a
2459 # value for INSTALL within a source directory, because that will
2460 # break other packages using the cache if that directory is
2461 # removed, or if the value is a relative name.
2462 INSTALL=$ac_install_sh
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2466 $as_echo "$INSTALL" >&6; }
2468 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2469 # It thinks the first close brace ends the variable substitution.
2470 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2472 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2474 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2477 $as_echo_n "checking whether build environment is sane... " >&6; }
2480 echo timestamp > conftest.file
2481 # Reject unsafe characters in $srcdir or the absolute working directory
2482 # name. Accept space and tab only in the latter.
2486 *[\\\"\#\$\&\'\`$am_lf]*)
2487 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2490 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2491 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2494 # Do `set' in a subshell so we don't clobber the current shell's
2495 # arguments. Must try -L first in case configure is actually a
2496 # symlink; some systems play weird games with the mod time of symlinks
2497 # (eg FreeBSD returns the mod time of the symlink's containing
2500 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2501 if test "$*" = "X"; then
2503 set X `ls -t "$srcdir/configure" conftest.file`
2506 if test "$*" != "X $srcdir/configure conftest.file" \
2507 && test "$*" != "X conftest.file $srcdir/configure"; then
2509 # If neither matched, then we have a broken ls. This can happen
2510 # if, for instance, CONFIG_SHELL is bash and it inherits a
2511 # broken ls alias from the environment. This has actually
2512 # happened. Such a system could not be considered "sane".
2513 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2514 alias in your environment" "$LINENO" 5
2517 test "$2" = conftest.file
2523 as_fn_error $? "newly created file is older than distributed files!
2524 Check your system clock" "$LINENO" 5
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2527 $as_echo "yes" >&6; }
2528 test "$program_prefix" != NONE &&
2529 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2530 # Use a double $ so make ignores it.
2531 test "$program_suffix" != NONE &&
2532 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2533 # Double any \ or $.
2534 # By default was `s,x,x', remove it if useless.
2535 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2536 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2538 # expand $ac_aux_dir to an absolute path
2539 am_aux_dir=`cd $ac_aux_dir && pwd`
2541 if test x"${MISSING+set}" != xset; then
2544 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2546 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2549 # Use eval to expand $SHELL
2550 if eval "$MISSING --run true"; then
2551 am_missing_run="$MISSING --run "
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2555 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2558 if test x"${install_sh}" != xset; then
2561 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2563 install_sh="\${SHELL} $am_aux_dir/install-sh"
2567 # Installed binaries are usually stripped using `strip' when the user
2568 # run `make install-strip'. However `strip' might not be the right
2569 # tool to use in cross-compilation environments, therefore Automake
2570 # will honor the `STRIP' environment variable to overrule this program.
2571 if test "$cross_compiling" != no; then
2572 if test -n "$ac_tool_prefix"; then
2573 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2574 set dummy ${ac_tool_prefix}strip; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_STRIP+:} false; then :
2578 $as_echo_n "(cached) " >&6
2580 if test -n "$STRIP"; then
2581 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 STRIP=$ac_cv_prog_STRIP
2601 if test -n "$STRIP"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2603 $as_echo "$STRIP" >&6; }
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2611 if test -z "$ac_cv_prog_STRIP"; then
2613 # Extract the first word of "strip", so it can be a program name with args.
2614 set dummy strip; ac_word=$2
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2618 $as_echo_n "(cached) " >&6
2620 if test -n "$ac_ct_STRIP"; then
2621 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2630 ac_cv_prog_ac_ct_STRIP="strip"
2631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2641 if test -n "$ac_ct_STRIP"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2643 $as_echo "$ac_ct_STRIP" >&6; }
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2649 if test "x$ac_ct_STRIP" = x; then
2652 case $cross_compiling:$ac_tool_warned in
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2656 ac_tool_warned=yes ;;
2661 STRIP="$ac_cv_prog_STRIP"
2665 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2668 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2669 if test -z "$MKDIR_P"; then
2670 if ${ac_cv_path_mkdir+:} false; then :
2671 $as_echo_n "(cached) " >&6
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2677 test -z "$as_dir" && as_dir=.
2678 for ac_prog in mkdir gmkdir; do
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2681 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2682 'mkdir (GNU coreutils) '* | \
2683 'mkdir (coreutils) '* | \
2684 'mkdir (fileutils) '4.1*)
2685 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2695 test -d ./--version && rmdir ./--version
2696 if test "${ac_cv_path_mkdir+set}" = set; then
2697 MKDIR_P="$ac_cv_path_mkdir -p"
2699 # As a last resort, use the slow shell script. Don't cache a
2700 # value for MKDIR_P within a source directory, because that will
2701 # break other packages using the cache if that directory is
2702 # removed, or if the value is a relative name.
2703 MKDIR_P="$ac_install_sh -d"
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2707 $as_echo "$MKDIR_P" >&6; }
2711 [\\/$]* | ?:[\\/]*) ;;
2712 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2715 for ac_prog in gawk mawk nawk awk
2717 # Extract the first word of "$ac_prog", so it can be a program name with args.
2718 set dummy $ac_prog; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if ${ac_cv_prog_AWK+:} false; then :
2722 $as_echo_n "(cached) " >&6
2724 if test -n "$AWK"; then
2725 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_AWK="$ac_prog"
2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 if test -n "$AWK"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2747 $as_echo "$AWK" >&6; }
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2754 test -n "$AWK" && break
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2758 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2760 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2761 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2762 $as_echo_n "(cached) " >&6
2764 cat >conftest.make <<\_ACEOF
2767 @echo '@@@%%%=$(MAKE)=@@@%%%'
2769 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2770 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2772 eval ac_cv_prog_make_${ac_make}_set=yes;;
2774 eval ac_cv_prog_make_${ac_make}_set=no;;
2778 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2780 $as_echo "yes" >&6; }
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2785 SET_MAKE="MAKE=${MAKE-make}"
2788 rm -rf .tst 2>/dev/null
2789 mkdir .tst 2>/dev/null
2790 if test -d .tst; then
2795 rmdir .tst 2>/dev/null
2797 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2798 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2799 # is not polluted with repeated "-I."
2800 am__isrc=' -I$(srcdir)'
2801 # test to see if srcdir already configured
2802 if test -f $srcdir/config.status; then
2803 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2807 # test whether we have cygpath
2808 if test -z "$CYGPATH_W"; then
2809 if (cygpath --version) >/dev/null 2>/dev/null; then
2810 CYGPATH_W='cygpath -w'
2817 # Define the identity of the package.
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE "$PACKAGE"
2827 cat >>confdefs.h <<_ACEOF
2828 #define VERSION "$VERSION"
2831 # Some tools Automake needs.
2833 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2836 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2839 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2842 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2845 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2847 # We need awk for the "check" target. The system "awk" is bad on
2849 # Always define AMTAR for backward compatibility. Yes, it's still used
2850 # in the wild :-( We should find a proper way to deprecate it ...
2853 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2861 ac_config_headers="$ac_config_headers config.h"
2864 # Checks for programs.
2866 ac_cpp='$CPP $CPPFLAGS'
2867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870 if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2872 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_CC+:} false; then :
2876 $as_echo_n "(cached) " >&6
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 if test -n "$CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2901 $as_echo "$CC" >&6; }
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2909 if test -z "$ac_cv_prog_CC"; then
2911 # Extract the first word of "gcc", so it can be a program name with args.
2912 set dummy gcc; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2916 $as_echo_n "(cached) " >&6
2918 if test -n "$ac_ct_CC"; then
2919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928 ac_cv_prog_ac_ct_CC="gcc"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2939 if test -n "$ac_ct_CC"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2941 $as_echo "$ac_ct_CC" >&6; }
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2947 if test "x$ac_ct_CC" = x; then
2950 case $cross_compiling:$ac_tool_warned in
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2954 ac_tool_warned=yes ;;
2962 if test -z "$CC"; then
2963 if test -n "$ac_tool_prefix"; then
2964 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2965 set dummy ${ac_tool_prefix}cc; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if ${ac_cv_prog_CC+:} false; then :
2969 $as_echo_n "(cached) " >&6
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981 ac_cv_prog_CC="${ac_tool_prefix}cc"
2982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 if test -n "$CC"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2994 $as_echo "$CC" >&6; }
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
3003 if test -z "$CC"; then
3004 # Extract the first word of "cc", so it can be a program name with args.
3005 set dummy cc; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if ${ac_cv_prog_CC+:} false; then :
3009 $as_echo_n "(cached) " >&6
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3023 ac_prog_rejected=yes
3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 if test $ac_prog_rejected = yes; then
3035 # We found a bogon in the path, so make sure we never use it.
3036 set dummy $ac_cv_prog_CC
3038 if test $# != 0; then
3039 # We chose a different compiler from the bogus one.
3040 # However, it has the same basename, so the bogon will be chosen
3041 # first if we set CC to just the basename; use the full file name.
3043 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3049 if test -n "$CC"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3051 $as_echo "$CC" >&6; }
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3059 if test -z "$CC"; then
3060 if test -n "$ac_tool_prefix"; then
3061 for ac_prog in cl.exe
3063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3064 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if ${ac_cv_prog_CC+:} false; then :
3068 $as_echo_n "(cached) " >&6
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 if test -n "$CC"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3093 $as_echo "$CC" >&6; }
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 $as_echo "no" >&6; }
3100 test -n "$CC" && break
3103 if test -z "$CC"; then
3105 for ac_prog in cl.exe
3107 # Extract the first word of "$ac_prog", so it can be a program name with args.
3108 set dummy $ac_prog; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3112 $as_echo_n "(cached) " >&6
3114 if test -n "$ac_ct_CC"; then
3115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124 ac_cv_prog_ac_ct_CC="$ac_prog"
3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3135 if test -n "$ac_ct_CC"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3137 $as_echo "$ac_ct_CC" >&6; }
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3144 test -n "$ac_ct_CC" && break
3147 if test "x$ac_ct_CC" = x; then
3150 case $cross_compiling:$ac_tool_warned in
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154 ac_tool_warned=yes ;;
3163 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 as_fn_error $? "no acceptable C compiler found in \$PATH
3166 See \`config.log' for more details" "$LINENO" 5; }
3168 # Provide some information about the compiler.
3169 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3172 for ac_option in --version -v -V -qversion; do
3173 { { ac_try="$ac_compiler $ac_option >&5"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179 $as_echo "$ac_try_echo"; } >&5
3180 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3182 if test -s conftest.err; then
3184 ... rest of stderr output deleted ...
3185 10q' conftest.err >conftest.er1
3186 cat conftest.er1 >&5
3188 rm -f conftest.er1 conftest.err
3189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3190 test $ac_status = 0; }
3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194 /* end confdefs.h. */
3204 ac_clean_files_save=$ac_clean_files
3205 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3206 # Try to create an executable without -o first, disregard a.out.
3207 # It will help us diagnose broken compilers, and finding out an intuition
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3210 $as_echo_n "checking whether the C compiler works... " >&6; }
3211 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3213 # The possible output files:
3214 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3217 for ac_file in $ac_files
3220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3221 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3226 if { { ac_try="$ac_link_default"
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3232 $as_echo "$ac_try_echo"; } >&5
3233 (eval "$ac_link_default") 2>&5
3235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3236 test $ac_status = 0; }; then :
3237 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3238 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3239 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3240 # so that the user can short-circuit this test for compilers unknown to
3242 for ac_file in $ac_files ''
3244 test -f "$ac_file" || continue
3246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3249 # We found the default executable, but exeext='' is most
3253 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3255 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3257 # We set ac_cv_exeext here because the later test for it is not
3258 # safe: cross compilers may not add the suffix if given an `-o'
3259 # argument, so we may need to know it at that point already.
3260 # Even if this section looks crufty: it has the advantage of
3267 test "$ac_cv_exeext" = no && ac_cv_exeext=
3272 if test -z "$ac_file"; then :
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 $as_echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3280 as_fn_error 77 "C compiler cannot create executables
3281 See \`config.log' for more details" "$LINENO" 5; }
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284 $as_echo "yes" >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3287 $as_echo_n "checking for C compiler default output file name... " >&6; }
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3289 $as_echo "$ac_file" >&6; }
3290 ac_exeext=$ac_cv_exeext
3292 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3293 ac_clean_files=$ac_clean_files_save
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3295 $as_echo_n "checking for suffix of executables... " >&6; }
3296 if { { ac_try="$ac_link"
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302 $as_echo "$ac_try_echo"; } >&5
3303 (eval "$ac_link") 2>&5
3305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306 test $ac_status = 0; }; then :
3307 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3308 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3309 # work properly (i.e., refer to `conftest.exe'), while it won't with
3311 for ac_file in conftest.exe conftest conftest.*; do
3312 test -f "$ac_file" || continue
3314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3315 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3323 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3324 See \`config.log' for more details" "$LINENO" 5; }
3326 rm -f conftest conftest$ac_cv_exeext
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3328 $as_echo "$ac_cv_exeext" >&6; }
3330 rm -f conftest.$ac_ext
3331 EXEEXT=$ac_cv_exeext
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3339 FILE *f = fopen ("conftest.out", "w");
3340 return ferror (f) || fclose (f) != 0;
3346 ac_clean_files="$ac_clean_files conftest.out"
3347 # Check that the compiler produces executables we can run. If not, either
3348 # the compiler is broken, or we cross compile.
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3350 $as_echo_n "checking whether we are cross compiling... " >&6; }
3351 if test "$cross_compiling" != yes; then
3352 { { ac_try="$ac_link"
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358 $as_echo "$ac_try_echo"; } >&5
3359 (eval "$ac_link") 2>&5
3361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3362 test $ac_status = 0; }
3363 if { ac_try='./conftest$ac_cv_exeext'
3364 { { case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369 $as_echo "$ac_try_echo"; } >&5
3370 (eval "$ac_try") 2>&5
3372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373 test $ac_status = 0; }; }; then
3376 if test "$cross_compiling" = maybe; then
3379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error $? "cannot run C compiled programs.
3382 If you meant to cross compile, use \`--host'.
3383 See \`config.log' for more details" "$LINENO" 5; }
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3388 $as_echo "$cross_compiling" >&6; }
3390 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3391 ac_clean_files=$ac_clean_files_save
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3393 $as_echo_n "checking for suffix of object files... " >&6; }
3394 if ${ac_cv_objext+:} false; then :
3395 $as_echo_n "(cached) " >&6
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3408 rm -f conftest.o conftest.obj
3409 if { { ac_try="$ac_compile"
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415 $as_echo "$ac_try_echo"; } >&5
3416 (eval "$ac_compile") 2>&5
3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419 test $ac_status = 0; }; then :
3420 for ac_file in conftest.o conftest.obj conftest.*; do
3421 test -f "$ac_file" || continue;
3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3424 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3429 $as_echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 as_fn_error $? "cannot compute suffix of object files: cannot compile
3435 See \`config.log' for more details" "$LINENO" 5; }
3437 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3440 $as_echo "$ac_cv_objext" >&6; }
3441 OBJEXT=$ac_cv_objext
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3444 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3445 if ${ac_cv_c_compiler_gnu+:} false; then :
3446 $as_echo_n "(cached) " >&6
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3462 if ac_fn_c_try_compile "$LINENO"; then :
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3472 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3473 if test $ac_compiler_gnu = yes; then
3478 ac_test_CFLAGS=${CFLAGS+set}
3479 ac_save_CFLAGS=$CFLAGS
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3481 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3482 if ${ac_cv_prog_cc_g+:} false; then :
3483 $as_echo_n "(cached) " >&6
3485 ac_save_c_werror_flag=$ac_c_werror_flag
3486 ac_c_werror_flag=yes
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3500 if ac_fn_c_try_compile "$LINENO"; then :
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3515 if ac_fn_c_try_compile "$LINENO"; then :
3518 ac_c_werror_flag=$ac_save_c_werror_flag
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3531 if ac_fn_c_try_compile "$LINENO"; then :
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 ac_c_werror_flag=$ac_save_c_werror_flag
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3542 $as_echo "$ac_cv_prog_cc_g" >&6; }
3543 if test "$ac_test_CFLAGS" = set; then
3544 CFLAGS=$ac_save_CFLAGS
3545 elif test $ac_cv_prog_cc_g = yes; then
3546 if test "$GCC" = yes; then
3552 if test "$GCC" = yes; then
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3559 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3560 if ${ac_cv_prog_cc_c89+:} false; then :
3561 $as_echo_n "(cached) " >&6
3563 ac_cv_prog_cc_c89=no
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3569 #include <sys/types.h>
3570 #include <sys/stat.h>
3571 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3572 struct buf { int x; };
3573 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3574 static char *e (p, i)
3580 static char *f (char * (*g) (char **, int), char **p, ...)
3585 s = g (p, va_arg (v,int));
3590 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3591 function prototypes and stuff, but not '\xHH' hex character constants.
3592 These don't provoke an error unfortunately, instead are silently treated
3593 as 'x'. The following induces an error, until -std is added to get
3594 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3595 array size at least. It's necessary to write '\x00'==0 to get something
3596 that's true only with -std. */
3597 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3599 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3600 inside strings and character constants. */
3602 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3604 int test (int i, double x);
3605 struct s1 {int (*f) (int a);};
3606 struct s2 {int (*f) (double a);};
3607 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3613 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3618 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3619 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3621 CC="$ac_save_CC $ac_arg"
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623 ac_cv_prog_cc_c89=$ac_arg
3625 rm -f core conftest.err conftest.$ac_objext
3626 test "x$ac_cv_prog_cc_c89" != "xno" && break
3628 rm -f conftest.$ac_ext
3633 case "x$ac_cv_prog_cc_c89" in
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3636 $as_echo "none needed" >&6; } ;;
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3639 $as_echo "unsupported" >&6; } ;;
3641 CC="$CC $ac_cv_prog_cc_c89"
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3643 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3645 if test "x$ac_cv_prog_cc_c89" != xno; then :
3650 ac_cpp='$CPP $CPPFLAGS'
3651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654 DEPDIR="${am__leading_dot}deps"
3656 ac_config_commands="$ac_config_commands depfiles"
3659 am_make=${MAKE-make}
3660 cat > confinc << 'END'
3662 @echo this is the am__doit target
3665 # If we don't find an include directive, just comment out the code.
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3667 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3671 # First try GNU make style include.
3672 echo "include confinc" > confmf
3673 # Ignore all kinds of additional output from `make'.
3674 case `$am_make -s -f confmf 2> /dev/null` in #(
3675 *the\ am__doit\ target*)
3681 # Now try BSD make style include.
3682 if test "$am__include" = "#"; then
3683 echo '.include "confinc"' > confmf
3684 case `$am_make -s -f confmf 2> /dev/null` in #(
3685 *the\ am__doit\ target*)
3686 am__include=.include
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3695 $as_echo "$_am_result" >&6; }
3696 rm -f confinc confmf
3698 # Check whether --enable-dependency-tracking was given.
3699 if test "${enable_dependency_tracking+set}" = set; then :
3700 enableval=$enable_dependency_tracking;
3703 if test "x$enable_dependency_tracking" != xno; then
3704 am_depcomp="$ac_aux_dir/depcomp"
3708 if test "x$enable_dependency_tracking" != xno; then
3718 depcc="$CC" am_compiler_list=
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3721 $as_echo_n "checking dependency style of $depcc... " >&6; }
3722 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3723 $as_echo_n "(cached) " >&6
3725 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3726 # We make a subdir and do the tests there. Otherwise we can end up
3727 # making bogus files that we don't know about and never remove. For
3728 # instance it was reported that on HP-UX the gcc test will end up
3729 # making a dummy file named `D' -- because `-MD' means `put the output
3733 # Copy depcomp to subdir because otherwise we won't find it if we're
3734 # using a relative directory.
3735 cp "$am_depcomp" conftest.dir
3737 # We will build objects and dependencies in a subdirectory because
3738 # it helps to detect inapplicable dependency modes. For instance
3739 # both Tru64's cc and ICC support -MD to output dependencies as a
3740 # side effect of compilation, but ICC will put the dependencies in
3741 # the current directory while Tru64 will put them in the object
3745 am_cv_CC_dependencies_compiler_type=none
3746 if test "$am_compiler_list" = ""; then
3747 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3750 case " $depcc " in #(
3751 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3754 for depmode in $am_compiler_list; do
3755 # Setup a source with many dependencies, because some compilers
3756 # like to wrap large dependency lists on column 80 (with \), and
3757 # we should not choose a depcomp mode which is confused by this.
3759 # We need to recreate these files for each test, as the compiler may
3760 # overwrite some of them when testing with obscure command lines.
3761 # This happens at least with the AIX C compiler.
3763 for i in 1 2 3 4 5 6; do
3764 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3765 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3766 # Solaris 8's {/usr,}/bin/sh.
3767 touch sub/conftst$i.h
3769 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3771 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3772 # mode. It turns out that the SunPro C++ compiler does not properly
3773 # handle `-M -o', and we need to detect this. Also, some Intel
3774 # versions had trouble with output in subdirs
3775 am__obj=sub/conftest.${OBJEXT-o}
3776 am__minus_obj="-o $am__obj"
3779 # This depmode causes a compiler race in universal mode.
3780 test "$am__universal" = false || continue
3783 # after this tag, mechanisms are not by side-effect, so they'll
3784 # only be used when explicitly requested
3785 if test "x$enable_dependency_tracking" = xyes; then
3791 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3792 # This compiler won't grok `-c -o', but also, the minuso test has
3793 # not run yet. These depmodes are late enough in the game, and
3794 # so weak that their functioning should not be impacted.
3795 am__obj=conftest.${OBJEXT-o}
3800 if depmode=$depmode \
3801 source=sub/conftest.c object=$am__obj \
3802 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3803 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3804 >/dev/null 2>conftest.err &&
3805 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3806 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3807 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3808 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3809 # icc doesn't choke on unknown options, it will just issue warnings
3810 # or remarks (even with -Werror). So we grep stderr for any message
3811 # that says an option was ignored or not supported.
3812 # When given -MP, icc 7.0 and 7.1 complain thusly:
3813 # icc: Command line warning: ignoring option '-M'; no argument required
3814 # The diagnosis changed in icc 8.0:
3815 # icc: Command line remark: option '-MP' not supported
3816 if (grep 'ignoring option' conftest.err ||
3817 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3818 am_cv_CC_dependencies_compiler_type=$depmode
3827 am_cv_CC_dependencies_compiler_type=none
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3832 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3833 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3836 test "x$enable_dependency_tracking" != xno \
3837 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3839 am__fastdepCC_FALSE='#'
3841 am__fastdepCC_TRUE='#'
3842 am__fastdepCC_FALSE=
3846 if test "x$CC" != xcc; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3848 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3851 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3853 set dummy $CC; ac_cc=`$as_echo "$2" |
3854 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3855 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3856 $as_echo_n "(cached) " >&6
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3869 # Make sure it works both with $CC and with simple cc.
3870 # We do the test twice because some compilers refuse to overwrite an
3871 # existing .o file with -o, though they will create one.
3872 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3874 if { { case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_try") 2>&5
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; } &&
3884 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889 $as_echo "$ac_try_echo"; } >&5
3890 (eval "$ac_try") 2>&5
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; };
3895 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3896 if test "x$CC" != xcc; then
3897 # Test first that cc exists at all.
3898 if { ac_try='cc -c conftest.$ac_ext >&5'
3899 { { case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 $as_echo "$ac_try_echo"; } >&5
3905 (eval "$ac_try") 2>&5
3907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908 test $ac_status = 0; }; }; then
3909 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3911 if { { case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916 $as_echo "$ac_try_echo"; } >&5
3917 (eval "$ac_try") 2>&5
3919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3920 test $ac_status = 0; } &&
3921 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 $as_echo "$ac_try_echo"; } >&5
3927 (eval "$ac_try") 2>&5
3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930 test $ac_status = 0; };
3935 # cc exists but doesn't like -o.
3936 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3941 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3943 rm -f core conftest*
3946 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3948 $as_echo "yes" >&6; }
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3953 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3957 # FIXME: we rely on the cache variable name because
3958 # there is no other way.
3960 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3961 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3962 if test "$am_t" != yes; then
3963 # Losing compiler, so override with the script.
3964 # FIXME: It is wrong to rewrite CC.
3965 # But if we don't then we get into trouble of one sort or another.
3966 # A longer-term fix would be to have automake use am__CC in this case,
3967 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3968 CC="$am_aux_dir/compile $CC"
3974 if test -n "$ac_tool_prefix"; then
3975 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3976 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if ${ac_cv_prog_RANLIB+:} false; then :
3980 $as_echo_n "(cached) " >&6
3982 if test -n "$RANLIB"; then
3983 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 RANLIB=$ac_cv_prog_RANLIB
4003 if test -n "$RANLIB"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4005 $as_echo "$RANLIB" >&6; }
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4013 if test -z "$ac_cv_prog_RANLIB"; then
4014 ac_ct_RANLIB=$RANLIB
4015 # Extract the first word of "ranlib", so it can be a program name with args.
4016 set dummy ranlib; ac_word=$2
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018 $as_echo_n "checking for $ac_word... " >&6; }
4019 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4020 $as_echo_n "(cached) " >&6
4022 if test -n "$ac_ct_RANLIB"; then
4023 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032 ac_cv_prog_ac_ct_RANLIB="ranlib"
4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4043 if test -n "$ac_ct_RANLIB"; then
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4045 $as_echo "$ac_ct_RANLIB" >&6; }
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 $as_echo "no" >&6; }
4051 if test "x$ac_ct_RANLIB" = x; then
4054 case $cross_compiling:$ac_tool_warned in
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4058 ac_tool_warned=yes ;;
4060 RANLIB=$ac_ct_RANLIB
4063 RANLIB="$ac_cv_prog_RANLIB"
4067 # Checks for header files.
4070 ac_cpp='$CPP $CPPFLAGS'
4071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4075 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4076 # On Suns, sometimes $CPP names a directory.
4077 if test -n "$CPP" && test -d "$CPP"; then
4080 if test -z "$CPP"; then
4081 if ${ac_cv_prog_CPP+:} false; then :
4082 $as_echo_n "(cached) " >&6
4084 # Double quotes because CPP needs to be expanded
4085 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4088 for ac_c_preproc_warn_flag in '' yes
4090 # Use a header file that comes with gcc, so configuring glibc
4091 # with a fresh cross-compiler works.
4092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4093 # <limits.h> exists even on freestanding compilers.
4094 # On the NeXT, cc -E runs the code through the compiler's parser,
4095 # not just through cpp. "Syntax error" is here to catch this case.
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4099 # include <limits.h>
4101 # include <assert.h>
4105 if ac_fn_c_try_cpp "$LINENO"; then :
4108 # Broken: fails on valid input.
4111 rm -f conftest.err conftest.i conftest.$ac_ext
4113 # OK, works on sane cases. Now check whether nonexistent headers
4114 # can be detected and how.
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117 #include <ac_nonexistent.h>
4119 if ac_fn_c_try_cpp "$LINENO"; then :
4120 # Broken: success on invalid input.
4123 # Passes both tests.
4127 rm -f conftest.err conftest.i conftest.$ac_ext
4130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4131 rm -f conftest.i conftest.err conftest.$ac_ext
4132 if $ac_preproc_ok; then :
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4145 $as_echo "$CPP" >&6; }
4147 for ac_c_preproc_warn_flag in '' yes
4149 # Use a header file that comes with gcc, so configuring glibc
4150 # with a fresh cross-compiler works.
4151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4152 # <limits.h> exists even on freestanding compilers.
4153 # On the NeXT, cc -E runs the code through the compiler's parser,
4154 # not just through cpp. "Syntax error" is here to catch this case.
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4158 # include <limits.h>
4160 # include <assert.h>
4164 if ac_fn_c_try_cpp "$LINENO"; then :
4167 # Broken: fails on valid input.
4170 rm -f conftest.err conftest.i conftest.$ac_ext
4172 # OK, works on sane cases. Now check whether nonexistent headers
4173 # can be detected and how.
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176 #include <ac_nonexistent.h>
4178 if ac_fn_c_try_cpp "$LINENO"; then :
4179 # Broken: success on invalid input.
4182 # Passes both tests.
4186 rm -f conftest.err conftest.i conftest.$ac_ext
4189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4190 rm -f conftest.i conftest.err conftest.$ac_ext
4191 if $ac_preproc_ok; then :
4194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4196 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4197 See \`config.log' for more details" "$LINENO" 5; }
4201 ac_cpp='$CPP $CPPFLAGS'
4202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4208 $as_echo_n "checking for X... " >&6; }
4211 # Check whether --with-x was given.
4212 if test "${with_x+set}" = set; then :
4216 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4217 if test "x$with_x" = xno; then
4218 # The user explicitly disabled X.
4221 case $x_includes,$x_libraries in #(
4222 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4223 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4224 $as_echo_n "(cached) " >&6
4226 # One or both of the vars are not set, and there is no cached value.
4227 ac_x_includes=no ac_x_libraries=no
4228 rm -f -r conftest.dir
4229 if mkdir conftest.dir; then
4231 cat >Imakefile <<'_ACEOF'
4233 @echo incroot='${INCROOT}'
4235 @echo usrlibdir='${USRLIBDIR}'
4237 @echo libdir='${LIBDIR}'
4239 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4240 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4241 for ac_var in incroot usrlibdir libdir; do
4242 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4244 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4245 for ac_extension in a so sl dylib la dll; do
4246 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4247 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4248 ac_im_usrlibdir=$ac_im_libdir; break
4251 # Screen out bogus values from the imake configuration. They are
4252 # bogus both because they are the default anyway, and because
4253 # using them would break gcc on systems where it needs fixed includes.
4254 case $ac_im_incroot in
4255 /usr/include) ac_x_includes= ;;
4256 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4258 case $ac_im_usrlibdir in
4259 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4260 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4264 rm -f -r conftest.dir
4267 # Standard set of common directories for X headers.
4268 # Check X11 before X11Rn because it is often a symlink to the current release.
4282 /usr/local/X11/include
4283 /usr/local/X11R7/include
4284 /usr/local/X11R6/include
4285 /usr/local/X11R5/include
4286 /usr/local/X11R4/include
4288 /usr/local/include/X11
4289 /usr/local/include/X11R7
4290 /usr/local/include/X11R6
4291 /usr/local/include/X11R5
4292 /usr/local/include/X11R4
4296 /usr/XFree86/include/X11
4300 /usr/unsupported/include
4302 /usr/local/x11r5/include
4303 /usr/lpp/Xamples/include
4305 /usr/openwin/include
4306 /usr/openwin/share/include'
4308 if test "$ac_x_includes" = no; then
4309 # Guess where to find include files, by looking for Xlib.h.
4310 # First, try using that file with no special directory specified.
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4313 #include <X11/Xlib.h>
4315 if ac_fn_c_try_cpp "$LINENO"; then :
4316 # We can compile using X headers with no special include directory.
4319 for ac_dir in $ac_x_header_dirs; do
4320 if test -r "$ac_dir/X11/Xlib.h"; then
4321 ac_x_includes=$ac_dir
4326 rm -f conftest.err conftest.i conftest.$ac_ext
4327 fi # $ac_x_includes = no
4329 if test "$ac_x_libraries" = no; then
4330 # Check for the libraries.
4331 # See if we find them without any special options.
4332 # Don't add to $LIBS permanently.
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4337 #include <X11/Xlib.h>
4346 if ac_fn_c_try_link "$LINENO"; then :
4348 # We can link X programs with no special library path.
4352 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4354 # Don't even attempt the hair of trying to link an X program!
4355 for ac_extension in a so sl dylib la dll; do
4356 if test -r "$ac_dir/libX11.$ac_extension"; then
4357 ac_x_libraries=$ac_dir
4363 rm -f core conftest.err conftest.$ac_objext \
4364 conftest$ac_exeext conftest.$ac_ext
4365 fi # $ac_x_libraries = no
4367 case $ac_x_includes,$ac_x_libraries in #(
4369 # Didn't find X, or a directory has "'" in its name.
4370 ac_cv_have_x="have_x=no";; #(
4372 # Record where we found X for the cache.
4373 ac_cv_have_x="have_x=yes\
4374 ac_x_includes='$ac_x_includes'\
4375 ac_x_libraries='$ac_x_libraries'"
4381 eval "$ac_cv_have_x"
4384 if test "$have_x" != yes; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4386 $as_echo "$have_x" >&6; }
4389 # If each of the values was on the command line, it overrides each guess.
4390 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4391 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4392 # Update the cache value to reflect the command line values.
4393 ac_cv_have_x="have_x=yes\
4394 ac_x_includes='$x_includes'\
4395 ac_x_libraries='$x_libraries'"
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4397 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4401 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4402 if ${ac_cv_path_GREP+:} false; then :
4403 $as_echo_n "(cached) " >&6
4405 if test -z "$GREP"; then
4406 ac_path_GREP_found=false
4407 # Loop through the user's path and test for each of PROGNAME-LIST
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4412 test -z "$as_dir" && as_dir=.
4413 for ac_prog in grep ggrep; do
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4416 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4417 # Check for GNU ac_path_GREP and select it if it is found.
4418 # Check for GNU $ac_path_GREP
4419 case `"$ac_path_GREP" --version 2>&1` in
4421 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4424 $as_echo_n 0123456789 >"conftest.in"
4427 cat "conftest.in" "conftest.in" >"conftest.tmp"
4428 mv "conftest.tmp" "conftest.in"
4429 cp "conftest.in" "conftest.nl"
4430 $as_echo 'GREP' >> "conftest.nl"
4431 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4432 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4433 as_fn_arith $ac_count + 1 && ac_count=$as_val
4434 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4435 # Best one so far, save it but keep looking for a better one
4436 ac_cv_path_GREP="$ac_path_GREP"
4437 ac_path_GREP_max=$ac_count
4439 # 10*(2^10) chars as input seems more than enough
4440 test $ac_count -gt 10 && break
4442 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4445 $ac_path_GREP_found && break 3
4450 if test -z "$ac_cv_path_GREP"; then
4451 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4454 ac_cv_path_GREP=$GREP
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4459 $as_echo "$ac_cv_path_GREP" >&6; }
4460 GREP="$ac_cv_path_GREP"
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4464 $as_echo_n "checking for egrep... " >&6; }
4465 if ${ac_cv_path_EGREP+:} false; then :
4466 $as_echo_n "(cached) " >&6
4468 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4469 then ac_cv_path_EGREP="$GREP -E"
4471 if test -z "$EGREP"; then
4472 ac_path_EGREP_found=false
4473 # Loop through the user's path and test for each of PROGNAME-LIST
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4478 test -z "$as_dir" && as_dir=.
4479 for ac_prog in egrep; do
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4482 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4483 # Check for GNU ac_path_EGREP and select it if it is found.
4484 # Check for GNU $ac_path_EGREP
4485 case `"$ac_path_EGREP" --version 2>&1` in
4487 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4490 $as_echo_n 0123456789 >"conftest.in"
4493 cat "conftest.in" "conftest.in" >"conftest.tmp"
4494 mv "conftest.tmp" "conftest.in"
4495 cp "conftest.in" "conftest.nl"
4496 $as_echo 'EGREP' >> "conftest.nl"
4497 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4499 as_fn_arith $ac_count + 1 && ac_count=$as_val
4500 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4501 # Best one so far, save it but keep looking for a better one
4502 ac_cv_path_EGREP="$ac_path_EGREP"
4503 ac_path_EGREP_max=$ac_count
4505 # 10*(2^10) chars as input seems more than enough
4506 test $ac_count -gt 10 && break
4508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4511 $ac_path_EGREP_found && break 3
4516 if test -z "$ac_cv_path_EGREP"; then
4517 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4520 ac_cv_path_EGREP=$EGREP
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4526 $as_echo "$ac_cv_path_EGREP" >&6; }
4527 EGREP="$ac_cv_path_EGREP"
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4531 $as_echo_n "checking for ANSI C header files... " >&6; }
4532 if ${ac_cv_header_stdc+:} false; then :
4533 $as_echo_n "(cached) " >&6
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4550 if ac_fn_c_try_compile "$LINENO"; then :
4551 ac_cv_header_stdc=yes
4553 ac_cv_header_stdc=no
4555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557 if test $ac_cv_header_stdc = yes; then
4558 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4565 $EGREP "memchr" >/dev/null 2>&1; then :
4568 ac_cv_header_stdc=no
4574 if test $ac_cv_header_stdc = yes; then
4575 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4582 $EGREP "free" >/dev/null 2>&1; then :
4585 ac_cv_header_stdc=no
4591 if test $ac_cv_header_stdc = yes; then
4592 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4593 if test "$cross_compiling" = yes; then :
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4600 #if ((' ' & 0x0FF) == 0x020)
4601 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4602 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4604 # define ISLOWER(c) \
4605 (('a' <= (c) && (c) <= 'i') \
4606 || ('j' <= (c) && (c) <= 'r') \
4607 || ('s' <= (c) && (c) <= 'z'))
4608 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4611 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4616 for (i = 0; i < 256; i++)
4617 if (XOR (islower (i), ISLOWER (i))
4618 || toupper (i) != TOUPPER (i))
4623 if ac_fn_c_try_run "$LINENO"; then :
4626 ac_cv_header_stdc=no
4628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4629 conftest.$ac_objext conftest.beam conftest.$ac_ext
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4635 $as_echo "$ac_cv_header_stdc" >&6; }
4636 if test $ac_cv_header_stdc = yes; then
4638 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4642 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4643 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4644 inttypes.h stdint.h unistd.h
4646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4647 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4649 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4650 cat >>confdefs.h <<_ACEOF
4651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4659 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
4661 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4662 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4663 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4664 cat >>confdefs.h <<_ACEOF
4665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4673 # Checks for typedefs, structures, and compiler characteristics.
4674 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4675 if test "x$ac_cv_type_size_t" = xyes; then :
4679 cat >>confdefs.h <<_ACEOF
4680 #define size_t unsigned int
4685 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4686 if test "x$ac_cv_type_ssize_t" = xyes; then :
4690 cat >>confdefs.h <<_ACEOF
4697 # Checks for library functions.
4698 for ac_header in stdlib.h
4700 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4701 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4702 cat >>confdefs.h <<_ACEOF
4703 #define HAVE_STDLIB_H 1
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4711 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4712 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
4713 $as_echo_n "(cached) " >&6
4715 if test "$cross_compiling" = yes; then :
4716 ac_cv_func_malloc_0_nonnull=no
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4721 # include <stdlib.h>
4729 return ! malloc (0);
4734 if ac_fn_c_try_run "$LINENO"; then :
4735 ac_cv_func_malloc_0_nonnull=yes
4737 ac_cv_func_malloc_0_nonnull=no
4739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4740 conftest.$ac_objext conftest.beam conftest.$ac_ext
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4745 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4746 if test $ac_cv_func_malloc_0_nonnull = yes; then :
4748 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4751 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4753 case " $LIBOBJS " in
4754 *" malloc.$ac_objext "* ) ;;
4755 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4760 $as_echo "#define malloc rpl_malloc" >>confdefs.h
4765 for ac_header in stdlib.h
4767 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4768 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4769 cat >>confdefs.h <<_ACEOF
4770 #define HAVE_STDLIB_H 1
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4778 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
4779 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
4780 $as_echo_n "(cached) " >&6
4782 if test "$cross_compiling" = yes; then :
4783 ac_cv_func_realloc_0_nonnull=no
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4787 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4788 # include <stdlib.h>
4796 return ! realloc (0, 0);
4801 if ac_fn_c_try_run "$LINENO"; then :
4802 ac_cv_func_realloc_0_nonnull=yes
4804 ac_cv_func_realloc_0_nonnull=no
4806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4807 conftest.$ac_objext conftest.beam conftest.$ac_ext
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4812 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
4813 if test $ac_cv_func_realloc_0_nonnull = yes; then :
4815 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
4818 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
4820 case " $LIBOBJS " in
4821 *" realloc.$ac_objext "* ) ;;
4822 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4827 $as_echo "#define realloc rpl_realloc" >>confdefs.h
4832 for ac_func in gettimeofday memmove socket strdup strtol
4834 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4835 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4836 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4837 cat >>confdefs.h <<_ACEOF
4838 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4848 $as_echo_n "checking whether NLS is requested... " >&6; }
4849 # Check whether --enable-nls was given.
4850 if test "${enable_nls+set}" = set; then :
4851 enableval=$enable_nls; USE_NLS=$enableval
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4857 $as_echo "$USE_NLS" >&6; }
4862 GETTEXT_MACRO_VERSION=0.18
4867 # Prepare PATH_SEPARATOR.
4868 # The user is always right.
4869 if test "${PATH_SEPARATOR+set}" != set; then
4870 echo "#! /bin/sh" >conf$$.sh
4871 echo "exit 0" >>conf$$.sh
4873 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4881 # Find out how to test for executable files. Don't use a zero-byte file,
4882 # as systems may use methods other than mode bits to determine executability.
4883 cat >conf$$.file <<_ASEOF
4887 chmod +x conf$$.file
4888 if test -x conf$$.file >/dev/null 2>&1; then
4889 ac_executable_p="test -x"
4891 ac_executable_p="test -f"
4895 # Extract the first word of "msgfmt", so it can be a program name with args.
4896 set dummy msgfmt; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if ${ac_cv_path_MSGFMT+:} false; then :
4900 $as_echo_n "(cached) " >&6
4904 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4907 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4908 for ac_dir in $PATH; do
4910 test -z "$ac_dir" && ac_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4913 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4914 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4915 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4916 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4923 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4927 MSGFMT="$ac_cv_path_MSGFMT"
4928 if test "$MSGFMT" != ":"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4930 $as_echo "$MSGFMT" >&6; }
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4936 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4937 set dummy gmsgfmt; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if ${ac_cv_path_GMSGFMT+:} false; then :
4941 $as_echo_n "(cached) " >&6
4945 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4967 GMSGFMT=$ac_cv_path_GMSGFMT
4968 if test -n "$GMSGFMT"; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4970 $as_echo "$GMSGFMT" >&6; }
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4978 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4979 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4980 *) MSGFMT_015=$MSGFMT ;;
4983 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4984 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4985 *) GMSGFMT_015=$GMSGFMT ;;
4990 # Prepare PATH_SEPARATOR.
4991 # The user is always right.
4992 if test "${PATH_SEPARATOR+set}" != set; then
4993 echo "#! /bin/sh" >conf$$.sh
4994 echo "exit 0" >>conf$$.sh
4996 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5004 # Find out how to test for executable files. Don't use a zero-byte file,
5005 # as systems may use methods other than mode bits to determine executability.
5006 cat >conf$$.file <<_ASEOF
5010 chmod +x conf$$.file
5011 if test -x conf$$.file >/dev/null 2>&1; then
5012 ac_executable_p="test -x"
5014 ac_executable_p="test -f"
5018 # Extract the first word of "xgettext", so it can be a program name with args.
5019 set dummy xgettext; ac_word=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if ${ac_cv_path_XGETTEXT+:} false; then :
5023 $as_echo_n "(cached) " >&6
5027 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5030 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5031 for ac_dir in $PATH; do
5033 test -z "$ac_dir" && ac_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5036 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5037 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5038 (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
5039 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5046 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5050 XGETTEXT="$ac_cv_path_XGETTEXT"
5051 if test "$XGETTEXT" != ":"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5053 $as_echo "$XGETTEXT" >&6; }
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5061 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5062 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5063 *) XGETTEXT_015=$XGETTEXT ;;
5068 # Prepare PATH_SEPARATOR.
5069 # The user is always right.
5070 if test "${PATH_SEPARATOR+set}" != set; then
5071 echo "#! /bin/sh" >conf$$.sh
5072 echo "exit 0" >>conf$$.sh
5074 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5082 # Find out how to test for executable files. Don't use a zero-byte file,
5083 # as systems may use methods other than mode bits to determine executability.
5084 cat >conf$$.file <<_ASEOF
5088 chmod +x conf$$.file
5089 if test -x conf$$.file >/dev/null 2>&1; then
5090 ac_executable_p="test -x"
5092 ac_executable_p="test -f"
5096 # Extract the first word of "msgmerge", so it can be a program name with args.
5097 set dummy msgmerge; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_path_MSGMERGE+:} false; then :
5101 $as_echo_n "(cached) " >&6
5105 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5108 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5109 for ac_dir in $PATH; do
5111 test -z "$ac_dir" && ac_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5114 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5115 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5116 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5123 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5127 MSGMERGE="$ac_cv_path_MSGMERGE"
5128 if test "$MSGMERGE" != ":"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5130 $as_echo "$MSGMERGE" >&6; }
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5137 test -n "$localedir" || localedir='${datadir}/locale'
5140 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5143 ac_config_commands="$ac_config_commands po-directories"
5147 if test "X$prefix" = "XNONE"; then
5148 acl_final_prefix="$ac_default_prefix"
5150 acl_final_prefix="$prefix"
5152 if test "X$exec_prefix" = "XNONE"; then
5153 acl_final_exec_prefix='${prefix}'
5155 acl_final_exec_prefix="$exec_prefix"
5157 acl_save_prefix="$prefix"
5158 prefix="$acl_final_prefix"
5159 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5160 prefix="$acl_save_prefix"
5162 # Make sure we can run config.sub.
5163 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5164 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5167 $as_echo_n "checking build system type... " >&6; }
5168 if ${ac_cv_build+:} false; then :
5169 $as_echo_n "(cached) " >&6
5171 ac_build_alias=$build_alias
5172 test "x$ac_build_alias" = x &&
5173 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5174 test "x$ac_build_alias" = x &&
5175 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5176 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5177 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5181 $as_echo "$ac_cv_build" >&6; }
5182 case $ac_cv_build in
5184 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5187 ac_save_IFS=$IFS; IFS='-'
5193 # Remember, the first character of IFS is used to create $*,
5194 # except with old shells:
5197 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5201 $as_echo_n "checking host system type... " >&6; }
5202 if ${ac_cv_host+:} false; then :
5203 $as_echo_n "(cached) " >&6
5205 if test "x$host_alias" = x; then
5206 ac_cv_host=$ac_cv_build
5208 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5209 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5214 $as_echo "$ac_cv_host" >&6; }
5217 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5220 ac_save_IFS=$IFS; IFS='-'
5226 # Remember, the first character of IFS is used to create $*,
5227 # except with old shells:
5230 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5234 # Check whether --with-gnu-ld was given.
5235 if test "${with_gnu_ld+set}" = set; then :
5236 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5241 # Prepare PATH_SEPARATOR.
5242 # The user is always right.
5243 if test "${PATH_SEPARATOR+set}" != set; then
5244 echo "#! /bin/sh" >conf$$.sh
5245 echo "exit 0" >>conf$$.sh
5247 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5255 if test "$GCC" = yes; then
5256 # Check if gcc -print-prog-name=ld gives a path.
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5258 $as_echo_n "checking for ld used by GCC... " >&6; }
5261 # gcc leaves a trailing carriage return which upsets mingw
5262 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5264 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5267 # Accept absolute paths.
5268 [\\/]* | [A-Za-z]:[\\/]*)
5269 re_direlt='/[^/][^/]*/\.\./'
5270 # Canonicalize the path of ld
5271 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5272 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5273 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5275 test -z "$LD" && LD="$ac_prog"
5278 # If it fails, then pretend we aren't using GCC.
5282 # If it is relative, then search for the first ld in PATH.
5286 elif test "$with_gnu_ld" = yes; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5288 $as_echo_n "checking for GNU ld... " >&6; }
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5291 $as_echo_n "checking for non-GNU ld... " >&6; }
5293 if ${acl_cv_path_LD+:} false; then :
5294 $as_echo_n "(cached) " >&6
5296 if test -z "$LD"; then
5297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5298 for ac_dir in $PATH; do
5299 test -z "$ac_dir" && ac_dir=.
5300 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5301 acl_cv_path_LD="$ac_dir/$ac_prog"
5302 # Check to see if the program is GNU ld. I'd rather use --version,
5303 # but apparently some GNU ld's only accept -v.
5304 # Break only if it was the GNU/non-GNU ld that we prefer.
5305 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5306 *GNU* | *'with BFD'*)
5307 test "$with_gnu_ld" != no && break ;;
5309 test "$with_gnu_ld" != yes && break ;;
5315 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5319 LD="$acl_cv_path_LD"
5320 if test -n "$LD"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5322 $as_echo "$LD" >&6; }
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5327 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5329 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5330 if ${acl_cv_prog_gnu_ld+:} false; then :
5331 $as_echo_n "(cached) " >&6
5333 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5334 case `$LD -v 2>&1 </dev/null` in
5335 *GNU* | *'with BFD'*)
5336 acl_cv_prog_gnu_ld=yes ;;
5338 acl_cv_prog_gnu_ld=no ;;
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5342 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5343 with_gnu_ld=$acl_cv_prog_gnu_ld
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5349 $as_echo_n "checking for shared library run path origin... " >&6; }
5350 if ${acl_cv_rpath+:} false; then :
5351 $as_echo_n "(cached) " >&6
5354 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5355 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5362 $as_echo "$acl_cv_rpath" >&6; }
5364 acl_libext="$acl_cv_libext"
5365 acl_shlibext="$acl_cv_shlibext"
5366 acl_libname_spec="$acl_cv_libname_spec"
5367 acl_library_names_spec="$acl_cv_library_names_spec"
5368 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5369 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5370 acl_hardcode_direct="$acl_cv_hardcode_direct"
5371 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5372 # Check whether --enable-rpath was given.
5373 if test "${enable_rpath+set}" = set; then :
5374 enableval=$enable_rpath; :
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5387 $as_echo_n "checking for 64-bit host... " >&6; }
5388 if ${gl_cv_solaris_64bit+:} false; then :
5389 $as_echo_n "(cached) " >&6
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5400 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5401 gl_cv_solaris_64bit=yes
5403 gl_cv_solaris_64bit=no
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5410 $as_echo "$gl_cv_solaris_64bit" >&6; }
5411 if test $gl_cv_solaris_64bit = yes; then
5412 acl_libdirstem=lib/64
5414 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5415 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5420 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5421 if test -n "$searchpath"; then
5422 acl_save_IFS="${IFS= }"; IFS=":"
5423 for searchdir in $searchpath; do
5424 if test -d "$searchdir"; then
5425 case "$searchdir" in
5426 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5428 # Better ignore directories of this form. They are misleading.
5430 *) searchdir=`cd "$searchdir" && pwd`
5431 case "$searchdir" in
5432 */lib64 ) acl_libdirstem=lib64 ;;
5441 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5456 acl_save_prefix="$prefix"
5457 prefix="$acl_final_prefix"
5458 acl_save_exec_prefix="$exec_prefix"
5459 exec_prefix="$acl_final_exec_prefix"
5461 eval additional_includedir=\"$includedir\"
5462 eval additional_libdir=\"$libdir\"
5464 exec_prefix="$acl_save_exec_prefix"
5465 prefix="$acl_save_prefix"
5468 # Check whether --with-libiconv-prefix was given.
5469 if test "${with_libiconv_prefix+set}" = set; then :
5470 withval=$with_libiconv_prefix;
5471 if test "X$withval" = "Xno"; then
5474 if test "X$withval" = "X"; then
5476 acl_save_prefix="$prefix"
5477 prefix="$acl_final_prefix"
5478 acl_save_exec_prefix="$exec_prefix"
5479 exec_prefix="$acl_final_exec_prefix"
5481 eval additional_includedir=\"$includedir\"
5482 eval additional_libdir=\"$libdir\"
5484 exec_prefix="$acl_save_exec_prefix"
5485 prefix="$acl_save_prefix"
5488 additional_includedir="$withval/include"
5489 additional_libdir="$withval/$acl_libdirstem"
5490 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5491 && ! test -d "$withval/$acl_libdirstem"; then
5492 additional_libdir="$withval/$acl_libdirstem2"
5506 names_already_handled=
5507 names_next_round='iconv '
5508 while test -n "$names_next_round"; do
5509 names_this_round="$names_next_round"
5511 for name in $names_this_round; do
5513 for n in $names_already_handled; do
5514 if test "$n" = "$name"; then
5519 if test -z "$already_handled"; then
5520 names_already_handled="$names_already_handled $name"
5521 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5522 eval value=\"\$HAVE_LIB$uppername\"
5523 if test -n "$value"; then
5524 if test "$value" = yes; then
5525 eval value=\"\$LIB$uppername\"
5526 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5527 eval value=\"\$LTLIB$uppername\"
5528 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5537 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5538 if test -n "$acl_shlibext"; then
5539 shrext=".$acl_shlibext" # typically: shrext=.so
5543 if test $use_additional = yes; then
5544 dir="$additional_libdir"
5545 if test -n "$acl_shlibext"; then
5546 if test -f "$dir/$libname$shrext"; then
5548 found_so="$dir/$libname$shrext"
5550 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5551 ver=`(cd "$dir" && \
5552 for f in "$libname$shrext".*; do echo "$f"; done \
5553 | sed -e "s,^$libname$shrext\\\\.,," \
5554 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5555 | sed 1q ) 2>/dev/null`
5556 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5558 found_so="$dir/$libname$shrext.$ver"
5561 eval library_names=\"$acl_library_names_spec\"
5562 for f in $library_names; do
5563 if test -f "$dir/$f"; then
5572 if test "X$found_dir" = "X"; then
5573 if test -f "$dir/$libname.$acl_libext"; then
5575 found_a="$dir/$libname.$acl_libext"
5578 if test "X$found_dir" != "X"; then
5579 if test -f "$dir/$libname.la"; then
5580 found_la="$dir/$libname.la"
5584 if test "X$found_dir" = "X"; then
5585 for x in $LDFLAGS $LTLIBICONV; do
5587 acl_save_prefix="$prefix"
5588 prefix="$acl_final_prefix"
5589 acl_save_exec_prefix="$exec_prefix"
5590 exec_prefix="$acl_final_exec_prefix"
5592 exec_prefix="$acl_save_exec_prefix"
5593 prefix="$acl_save_prefix"
5597 dir=`echo "X$x" | sed -e 's/^X-L//'`
5598 if test -n "$acl_shlibext"; then
5599 if test -f "$dir/$libname$shrext"; then
5601 found_so="$dir/$libname$shrext"
5603 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5604 ver=`(cd "$dir" && \
5605 for f in "$libname$shrext".*; do echo "$f"; done \
5606 | sed -e "s,^$libname$shrext\\\\.,," \
5607 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5608 | sed 1q ) 2>/dev/null`
5609 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5611 found_so="$dir/$libname$shrext.$ver"
5614 eval library_names=\"$acl_library_names_spec\"
5615 for f in $library_names; do
5616 if test -f "$dir/$f"; then
5625 if test "X$found_dir" = "X"; then
5626 if test -f "$dir/$libname.$acl_libext"; then
5628 found_a="$dir/$libname.$acl_libext"
5631 if test "X$found_dir" != "X"; then
5632 if test -f "$dir/$libname.la"; then
5633 found_la="$dir/$libname.la"
5638 if test "X$found_dir" != "X"; then
5643 if test "X$found_dir" != "X"; then
5644 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5645 if test "X$found_so" != "X"; then
5646 if test "$enable_rpath" = no \
5647 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5648 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5649 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5652 for x in $ltrpathdirs; do
5653 if test "X$x" = "X$found_dir"; then
5658 if test -z "$haveit"; then
5659 ltrpathdirs="$ltrpathdirs $found_dir"
5661 if test "$acl_hardcode_direct" = yes; then
5662 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5664 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5665 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5667 for x in $rpathdirs; do
5668 if test "X$x" = "X$found_dir"; then
5673 if test -z "$haveit"; then
5674 rpathdirs="$rpathdirs $found_dir"
5678 for x in $LDFLAGS $LIBICONV; do
5680 acl_save_prefix="$prefix"
5681 prefix="$acl_final_prefix"
5682 acl_save_exec_prefix="$exec_prefix"
5683 exec_prefix="$acl_final_exec_prefix"
5685 exec_prefix="$acl_save_exec_prefix"
5686 prefix="$acl_save_prefix"
5688 if test "X$x" = "X-L$found_dir"; then
5693 if test -z "$haveit"; then
5694 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5696 if test "$acl_hardcode_minus_L" != no; then
5697 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5699 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5705 if test "X$found_a" != "X"; then
5706 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5708 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5711 additional_includedir=
5712 case "$found_dir" in
5713 */$acl_libdirstem | */$acl_libdirstem/)
5714 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5715 if test "$name" = 'iconv'; then
5716 LIBICONV_PREFIX="$basedir"
5718 additional_includedir="$basedir/include"
5720 */$acl_libdirstem2 | */$acl_libdirstem2/)
5721 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5722 if test "$name" = 'iconv'; then
5723 LIBICONV_PREFIX="$basedir"
5725 additional_includedir="$basedir/include"
5728 if test "X$additional_includedir" != "X"; then
5729 if test "X$additional_includedir" != "X/usr/include"; then
5731 if test "X$additional_includedir" = "X/usr/local/include"; then
5732 if test -n "$GCC"; then
5734 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5738 if test -z "$haveit"; then
5739 for x in $CPPFLAGS $INCICONV; do
5741 acl_save_prefix="$prefix"
5742 prefix="$acl_final_prefix"
5743 acl_save_exec_prefix="$exec_prefix"
5744 exec_prefix="$acl_final_exec_prefix"
5746 exec_prefix="$acl_save_exec_prefix"
5747 prefix="$acl_save_prefix"
5749 if test "X$x" = "X-I$additional_includedir"; then
5754 if test -z "$haveit"; then
5755 if test -d "$additional_includedir"; then
5756 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5762 if test -n "$found_la"; then
5763 save_libdir="$libdir"
5765 */* | *\\*) . "$found_la" ;;
5766 *) . "./$found_la" ;;
5768 libdir="$save_libdir"
5769 for dep in $dependency_libs; do
5772 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5773 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5774 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5776 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5777 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5778 if test -n "$GCC"; then
5780 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5784 if test -z "$haveit"; then
5786 for x in $LDFLAGS $LIBICONV; do
5788 acl_save_prefix="$prefix"
5789 prefix="$acl_final_prefix"
5790 acl_save_exec_prefix="$exec_prefix"
5791 exec_prefix="$acl_final_exec_prefix"
5793 exec_prefix="$acl_save_exec_prefix"
5794 prefix="$acl_save_prefix"
5796 if test "X$x" = "X-L$additional_libdir"; then
5801 if test -z "$haveit"; then
5802 if test -d "$additional_libdir"; then
5803 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5807 for x in $LDFLAGS $LTLIBICONV; do
5809 acl_save_prefix="$prefix"
5810 prefix="$acl_final_prefix"
5811 acl_save_exec_prefix="$exec_prefix"
5812 exec_prefix="$acl_final_exec_prefix"
5814 exec_prefix="$acl_save_exec_prefix"
5815 prefix="$acl_save_prefix"
5817 if test "X$x" = "X-L$additional_libdir"; then
5822 if test -z "$haveit"; then
5823 if test -d "$additional_libdir"; then
5824 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5831 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5832 if test "$enable_rpath" != no; then
5834 for x in $rpathdirs; do
5835 if test "X$x" = "X$dir"; then
5840 if test -z "$haveit"; then
5841 rpathdirs="$rpathdirs $dir"
5844 for x in $ltrpathdirs; do
5845 if test "X$x" = "X$dir"; then
5850 if test -z "$haveit"; then
5851 ltrpathdirs="$ltrpathdirs $dir"
5856 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5859 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5862 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5863 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5869 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5870 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5876 if test "X$rpathdirs" != "X"; then
5877 if test -n "$acl_hardcode_libdir_separator"; then
5879 for found_dir in $rpathdirs; do
5880 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5882 acl_save_libdir="$libdir"
5884 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5885 libdir="$acl_save_libdir"
5886 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5888 for found_dir in $rpathdirs; do
5889 acl_save_libdir="$libdir"
5891 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5892 libdir="$acl_save_libdir"
5893 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5897 if test "X$ltrpathdirs" != "X"; then
5898 for found_dir in $ltrpathdirs; do
5899 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5934 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5935 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5936 $as_echo_n "(cached) " >&6
5938 gt_save_LIBS="$LIBS"
5939 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941 /* end confdefs.h. */
5942 #include <CoreFoundation/CFPreferences.h>
5946 CFPreferencesCopyAppValue(NULL, NULL)
5951 if ac_fn_c_try_link "$LINENO"; then :
5952 gt_cv_func_CFPreferencesCopyAppValue=yes
5954 gt_cv_func_CFPreferencesCopyAppValue=no
5956 rm -f core conftest.err conftest.$ac_objext \
5957 conftest$ac_exeext conftest.$ac_ext
5958 LIBS="$gt_save_LIBS"
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5961 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5962 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5964 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5968 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5969 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5970 $as_echo_n "(cached) " >&6
5972 gt_save_LIBS="$LIBS"
5973 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h. */
5976 #include <CoreFoundation/CFLocale.h>
5980 CFLocaleCopyCurrent();
5985 if ac_fn_c_try_link "$LINENO"; then :
5986 gt_cv_func_CFLocaleCopyCurrent=yes
5988 gt_cv_func_CFLocaleCopyCurrent=no
5990 rm -f core conftest.err conftest.$ac_objext \
5991 conftest$ac_exeext conftest.$ac_ext
5992 LIBS="$gt_save_LIBS"
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5995 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5996 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5998 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6002 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6003 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6015 case " $gt_needs " in
6016 *" need-formatstring-macros "*) gt_api_version=3 ;;
6017 *" need-ngettext "*) gt_api_version=2 ;;
6018 *) gt_api_version=1 ;;
6020 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6021 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6023 if test "$USE_NLS" = "yes"; then
6024 gt_use_preinstalled_gnugettext=no
6027 if test $gt_api_version -ge 3; then
6028 gt_revision_test_code='
6029 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6030 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6032 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6035 gt_revision_test_code=
6037 if test $gt_api_version -ge 2; then
6038 gt_expression_test_code=' + * ngettext ("", "", 0)'
6040 gt_expression_test_code=
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6044 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6045 if eval \${$gt_func_gnugettext_libc+:} false; then :
6046 $as_echo_n "(cached) " >&6
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050 #include <libintl.h>
6051 $gt_revision_test_code
6052 extern int _nl_msg_cat_cntr;
6053 extern int *_nl_domain_bindings;
6057 bindtextdomain ("", "");
6058 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6063 if ac_fn_c_try_link "$LINENO"; then :
6064 eval "$gt_func_gnugettext_libc=yes"
6066 eval "$gt_func_gnugettext_libc=no"
6068 rm -f core conftest.err conftest.$ac_objext \
6069 conftest$ac_exeext conftest.$ac_ext
6071 eval ac_res=\$$gt_func_gnugettext_libc
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6073 $as_echo "$ac_res" >&6; }
6075 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6081 am_save_CPPFLAGS="$CPPFLAGS"
6083 for element in $INCICONV; do
6085 for x in $CPPFLAGS; do
6087 acl_save_prefix="$prefix"
6088 prefix="$acl_final_prefix"
6089 acl_save_exec_prefix="$exec_prefix"
6090 exec_prefix="$acl_final_exec_prefix"
6092 exec_prefix="$acl_save_exec_prefix"
6093 prefix="$acl_save_prefix"
6095 if test "X$x" = "X$element"; then
6100 if test -z "$haveit"; then
6101 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6107 $as_echo_n "checking for iconv... " >&6; }
6108 if ${am_cv_func_iconv+:} false; then :
6109 $as_echo_n "(cached) " >&6
6112 am_cv_func_iconv="no, consider installing GNU libiconv"
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6121 iconv_t cd = iconv_open("","");
6122 iconv(cd,NULL,NULL,NULL,NULL);
6128 if ac_fn_c_try_link "$LINENO"; then :
6129 am_cv_func_iconv=yes
6131 rm -f core conftest.err conftest.$ac_objext \
6132 conftest$ac_exeext conftest.$ac_ext
6133 if test "$am_cv_func_iconv" != yes; then
6134 am_save_LIBS="$LIBS"
6135 LIBS="$LIBS $LIBICONV"
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6143 iconv_t cd = iconv_open("","");
6144 iconv(cd,NULL,NULL,NULL,NULL);
6150 if ac_fn_c_try_link "$LINENO"; then :
6152 am_cv_func_iconv=yes
6154 rm -f core conftest.err conftest.$ac_objext \
6155 conftest$ac_exeext conftest.$ac_ext
6156 LIBS="$am_save_LIBS"
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6161 $as_echo "$am_cv_func_iconv" >&6; }
6162 if test "$am_cv_func_iconv" = yes; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6164 $as_echo_n "checking for working iconv... " >&6; }
6165 if ${am_cv_func_iconv_works+:} false; then :
6166 $as_echo_n "(cached) " >&6
6169 am_save_LIBS="$LIBS"
6170 if test $am_cv_lib_iconv = yes; then
6171 LIBS="$LIBS $LIBICONV"
6173 if test "$cross_compiling" = yes; then :
6175 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6176 *) am_cv_func_iconv_works="guessing yes" ;;
6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6186 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6189 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6190 if (cd_utf8_to_88591 != (iconv_t)(-1))
6192 static const char input[] = "\342\202\254"; /* EURO SIGN */
6194 const char *inptr = input;
6195 size_t inbytesleft = strlen (input);
6197 size_t outbytesleft = sizeof (buf);
6198 size_t res = iconv (cd_utf8_to_88591,
6199 (char **) &inptr, &inbytesleft,
6200 &outptr, &outbytesleft);
6205 /* Test against Solaris 10 bug: Failures are not distinguishable from
6206 successful returns. */
6208 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6209 if (cd_ascii_to_88591 != (iconv_t)(-1))
6211 static const char input[] = "\263";
6213 const char *inptr = input;
6214 size_t inbytesleft = strlen (input);
6216 size_t outbytesleft = sizeof (buf);
6217 size_t res = iconv (cd_ascii_to_88591,
6218 (char **) &inptr, &inbytesleft,
6219 &outptr, &outbytesleft);
6224 #if 0 /* This bug could be worked around by the caller. */
6225 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6227 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6228 if (cd_88591_to_utf8 != (iconv_t)(-1))
6230 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6232 const char *inptr = input;
6233 size_t inbytesleft = strlen (input);
6235 size_t outbytesleft = sizeof (buf);
6236 size_t res = iconv (cd_88591_to_utf8,
6237 (char **) &inptr, &inbytesleft,
6238 &outptr, &outbytesleft);
6244 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6246 if (/* Try standardized names. */
6247 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6248 /* Try IRIX, OSF/1 names. */
6249 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6250 /* Try AIX names. */
6251 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6252 /* Try HP-UX names. */
6253 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6258 if ac_fn_c_try_run "$LINENO"; then :
6259 am_cv_func_iconv_works=yes
6261 am_cv_func_iconv_works=no
6263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6264 conftest.$ac_objext conftest.beam conftest.$ac_ext
6267 LIBS="$am_save_LIBS"
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6271 $as_echo "$am_cv_func_iconv_works" >&6; }
6272 case "$am_cv_func_iconv_works" in
6273 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6274 *) am_func_iconv=yes ;;
6277 am_func_iconv=no am_cv_lib_iconv=no
6279 if test "$am_func_iconv" = yes; then
6281 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6284 if test "$am_cv_lib_iconv" = yes; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6286 $as_echo_n "checking how to link with libiconv... " >&6; }
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6288 $as_echo "$LIBICONV" >&6; }
6290 CPPFLAGS="$am_save_CPPFLAGS"
6307 acl_save_prefix="$prefix"
6308 prefix="$acl_final_prefix"
6309 acl_save_exec_prefix="$exec_prefix"
6310 exec_prefix="$acl_final_exec_prefix"
6312 eval additional_includedir=\"$includedir\"
6313 eval additional_libdir=\"$libdir\"
6315 exec_prefix="$acl_save_exec_prefix"
6316 prefix="$acl_save_prefix"
6319 # Check whether --with-libintl-prefix was given.
6320 if test "${with_libintl_prefix+set}" = set; then :
6321 withval=$with_libintl_prefix;
6322 if test "X$withval" = "Xno"; then
6325 if test "X$withval" = "X"; then
6327 acl_save_prefix="$prefix"
6328 prefix="$acl_final_prefix"
6329 acl_save_exec_prefix="$exec_prefix"
6330 exec_prefix="$acl_final_exec_prefix"
6332 eval additional_includedir=\"$includedir\"
6333 eval additional_libdir=\"$libdir\"
6335 exec_prefix="$acl_save_exec_prefix"
6336 prefix="$acl_save_prefix"
6339 additional_includedir="$withval/include"
6340 additional_libdir="$withval/$acl_libdirstem"
6341 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6342 && ! test -d "$withval/$acl_libdirstem"; then
6343 additional_libdir="$withval/$acl_libdirstem2"
6357 names_already_handled=
6358 names_next_round='intl '
6359 while test -n "$names_next_round"; do
6360 names_this_round="$names_next_round"
6362 for name in $names_this_round; do
6364 for n in $names_already_handled; do
6365 if test "$n" = "$name"; then
6370 if test -z "$already_handled"; then
6371 names_already_handled="$names_already_handled $name"
6372 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6373 eval value=\"\$HAVE_LIB$uppername\"
6374 if test -n "$value"; then
6375 if test "$value" = yes; then
6376 eval value=\"\$LIB$uppername\"
6377 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6378 eval value=\"\$LTLIB$uppername\"
6379 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6388 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6389 if test -n "$acl_shlibext"; then
6390 shrext=".$acl_shlibext" # typically: shrext=.so
6394 if test $use_additional = yes; then
6395 dir="$additional_libdir"
6396 if test -n "$acl_shlibext"; then
6397 if test -f "$dir/$libname$shrext"; then
6399 found_so="$dir/$libname$shrext"
6401 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6402 ver=`(cd "$dir" && \
6403 for f in "$libname$shrext".*; do echo "$f"; done \
6404 | sed -e "s,^$libname$shrext\\\\.,," \
6405 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6406 | sed 1q ) 2>/dev/null`
6407 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6409 found_so="$dir/$libname$shrext.$ver"
6412 eval library_names=\"$acl_library_names_spec\"
6413 for f in $library_names; do
6414 if test -f "$dir/$f"; then
6423 if test "X$found_dir" = "X"; then
6424 if test -f "$dir/$libname.$acl_libext"; then
6426 found_a="$dir/$libname.$acl_libext"
6429 if test "X$found_dir" != "X"; then
6430 if test -f "$dir/$libname.la"; then
6431 found_la="$dir/$libname.la"
6435 if test "X$found_dir" = "X"; then
6436 for x in $LDFLAGS $LTLIBINTL; do
6438 acl_save_prefix="$prefix"
6439 prefix="$acl_final_prefix"
6440 acl_save_exec_prefix="$exec_prefix"
6441 exec_prefix="$acl_final_exec_prefix"
6443 exec_prefix="$acl_save_exec_prefix"
6444 prefix="$acl_save_prefix"
6448 dir=`echo "X$x" | sed -e 's/^X-L//'`
6449 if test -n "$acl_shlibext"; then
6450 if test -f "$dir/$libname$shrext"; then
6452 found_so="$dir/$libname$shrext"
6454 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6455 ver=`(cd "$dir" && \
6456 for f in "$libname$shrext".*; do echo "$f"; done \
6457 | sed -e "s,^$libname$shrext\\\\.,," \
6458 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6459 | sed 1q ) 2>/dev/null`
6460 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6462 found_so="$dir/$libname$shrext.$ver"
6465 eval library_names=\"$acl_library_names_spec\"
6466 for f in $library_names; do
6467 if test -f "$dir/$f"; then
6476 if test "X$found_dir" = "X"; then
6477 if test -f "$dir/$libname.$acl_libext"; then
6479 found_a="$dir/$libname.$acl_libext"
6482 if test "X$found_dir" != "X"; then
6483 if test -f "$dir/$libname.la"; then
6484 found_la="$dir/$libname.la"
6489 if test "X$found_dir" != "X"; then
6494 if test "X$found_dir" != "X"; then
6495 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6496 if test "X$found_so" != "X"; then
6497 if test "$enable_rpath" = no \
6498 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6499 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6500 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6503 for x in $ltrpathdirs; do
6504 if test "X$x" = "X$found_dir"; then
6509 if test -z "$haveit"; then
6510 ltrpathdirs="$ltrpathdirs $found_dir"
6512 if test "$acl_hardcode_direct" = yes; then
6513 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6515 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6516 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6518 for x in $rpathdirs; do
6519 if test "X$x" = "X$found_dir"; then
6524 if test -z "$haveit"; then
6525 rpathdirs="$rpathdirs $found_dir"
6529 for x in $LDFLAGS $LIBINTL; do
6531 acl_save_prefix="$prefix"
6532 prefix="$acl_final_prefix"
6533 acl_save_exec_prefix="$exec_prefix"
6534 exec_prefix="$acl_final_exec_prefix"
6536 exec_prefix="$acl_save_exec_prefix"
6537 prefix="$acl_save_prefix"
6539 if test "X$x" = "X-L$found_dir"; then
6544 if test -z "$haveit"; then
6545 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6547 if test "$acl_hardcode_minus_L" != no; then
6548 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6550 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6556 if test "X$found_a" != "X"; then
6557 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6559 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6562 additional_includedir=
6563 case "$found_dir" in
6564 */$acl_libdirstem | */$acl_libdirstem/)
6565 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6566 if test "$name" = 'intl'; then
6567 LIBINTL_PREFIX="$basedir"
6569 additional_includedir="$basedir/include"
6571 */$acl_libdirstem2 | */$acl_libdirstem2/)
6572 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6573 if test "$name" = 'intl'; then
6574 LIBINTL_PREFIX="$basedir"
6576 additional_includedir="$basedir/include"
6579 if test "X$additional_includedir" != "X"; then
6580 if test "X$additional_includedir" != "X/usr/include"; then
6582 if test "X$additional_includedir" = "X/usr/local/include"; then
6583 if test -n "$GCC"; then
6585 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6589 if test -z "$haveit"; then
6590 for x in $CPPFLAGS $INCINTL; do
6592 acl_save_prefix="$prefix"
6593 prefix="$acl_final_prefix"
6594 acl_save_exec_prefix="$exec_prefix"
6595 exec_prefix="$acl_final_exec_prefix"
6597 exec_prefix="$acl_save_exec_prefix"
6598 prefix="$acl_save_prefix"
6600 if test "X$x" = "X-I$additional_includedir"; then
6605 if test -z "$haveit"; then
6606 if test -d "$additional_includedir"; then
6607 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6613 if test -n "$found_la"; then
6614 save_libdir="$libdir"
6616 */* | *\\*) . "$found_la" ;;
6617 *) . "./$found_la" ;;
6619 libdir="$save_libdir"
6620 for dep in $dependency_libs; do
6623 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6624 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6625 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6627 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6628 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6629 if test -n "$GCC"; then
6631 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6635 if test -z "$haveit"; then
6637 for x in $LDFLAGS $LIBINTL; do
6639 acl_save_prefix="$prefix"
6640 prefix="$acl_final_prefix"
6641 acl_save_exec_prefix="$exec_prefix"
6642 exec_prefix="$acl_final_exec_prefix"
6644 exec_prefix="$acl_save_exec_prefix"
6645 prefix="$acl_save_prefix"
6647 if test "X$x" = "X-L$additional_libdir"; then
6652 if test -z "$haveit"; then
6653 if test -d "$additional_libdir"; then
6654 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6658 for x in $LDFLAGS $LTLIBINTL; do
6660 acl_save_prefix="$prefix"
6661 prefix="$acl_final_prefix"
6662 acl_save_exec_prefix="$exec_prefix"
6663 exec_prefix="$acl_final_exec_prefix"
6665 exec_prefix="$acl_save_exec_prefix"
6666 prefix="$acl_save_prefix"
6668 if test "X$x" = "X-L$additional_libdir"; then
6673 if test -z "$haveit"; then
6674 if test -d "$additional_libdir"; then
6675 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6682 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6683 if test "$enable_rpath" != no; then
6685 for x in $rpathdirs; do
6686 if test "X$x" = "X$dir"; then
6691 if test -z "$haveit"; then
6692 rpathdirs="$rpathdirs $dir"
6695 for x in $ltrpathdirs; do
6696 if test "X$x" = "X$dir"; then
6701 if test -z "$haveit"; then
6702 ltrpathdirs="$ltrpathdirs $dir"
6707 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6710 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6713 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6714 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6720 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6721 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6727 if test "X$rpathdirs" != "X"; then
6728 if test -n "$acl_hardcode_libdir_separator"; then
6730 for found_dir in $rpathdirs; do
6731 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6733 acl_save_libdir="$libdir"
6735 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6736 libdir="$acl_save_libdir"
6737 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6739 for found_dir in $rpathdirs; do
6740 acl_save_libdir="$libdir"
6742 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6743 libdir="$acl_save_libdir"
6744 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6748 if test "X$ltrpathdirs" != "X"; then
6749 for found_dir in $ltrpathdirs; do
6750 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6760 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6761 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6762 $as_echo_n "(cached) " >&6
6764 gt_save_CPPFLAGS="$CPPFLAGS"
6765 CPPFLAGS="$CPPFLAGS $INCINTL"
6766 gt_save_LIBS="$LIBS"
6767 LIBS="$LIBS $LIBINTL"
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 eval "$gt_func_gnugettext_libintl=yes"
6790 eval "$gt_func_gnugettext_libintl=no"
6792 rm -f core conftest.err conftest.$ac_objext \
6793 conftest$ac_exeext conftest.$ac_ext
6794 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6795 LIBS="$LIBS $LIBICONV"
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6798 #include <libintl.h>
6799 $gt_revision_test_code
6800 extern int _nl_msg_cat_cntr;
6805 const char *_nl_expand_alias (const char *);
6809 bindtextdomain ("", "");
6810 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6815 if ac_fn_c_try_link "$LINENO"; then :
6816 LIBINTL="$LIBINTL $LIBICONV"
6817 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6818 eval "$gt_func_gnugettext_libintl=yes"
6821 rm -f core conftest.err conftest.$ac_objext \
6822 conftest$ac_exeext conftest.$ac_ext
6824 CPPFLAGS="$gt_save_CPPFLAGS"
6825 LIBS="$gt_save_LIBS"
6827 eval ac_res=\$$gt_func_gnugettext_libintl
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6829 $as_echo "$ac_res" >&6; }
6832 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6833 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6834 && test "$PACKAGE" != gettext-runtime \
6835 && test "$PACKAGE" != gettext-tools; }; then
6836 gt_use_preinstalled_gnugettext=yes
6845 if test -n "$INTL_MACOSX_LIBS"; then
6846 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6847 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6848 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6849 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6853 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6854 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6856 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6864 $as_echo_n "checking whether to use NLS... " >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6866 $as_echo "$USE_NLS" >&6; }
6867 if test "$USE_NLS" = "yes"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6869 $as_echo_n "checking where the gettext function comes from... " >&6; }
6870 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6871 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6872 gt_source="external libintl"
6877 gt_source="included intl directory"
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6880 $as_echo "$gt_source" >&6; }
6883 if test "$USE_NLS" = "yes"; then
6885 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6886 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6888 $as_echo_n "checking how to link with libintl... " >&6; }
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6890 $as_echo "$LIBINTL" >&6; }
6892 for element in $INCINTL; do
6894 for x in $CPPFLAGS; do
6896 acl_save_prefix="$prefix"
6897 prefix="$acl_final_prefix"
6898 acl_save_exec_prefix="$exec_prefix"
6899 exec_prefix="$acl_final_exec_prefix"
6901 exec_prefix="$acl_save_exec_prefix"
6902 prefix="$acl_save_prefix"
6904 if test "X$x" = "X$element"; then
6909 if test -z "$haveit"; then
6910 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6917 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6920 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6937 ############### common
6939 # Checks sensors, required by psensor and psensor-server
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
6941 $as_echo_n "checking for sensors_init in -lsensors... " >&6; }
6942 if ${ac_cv_lib_sensors_sensors_init+:} false; then :
6943 $as_echo_n "(cached) " >&6
6945 ac_check_lib_save_LIBS=$LIBS
6946 LIBS="-lsensors $LIBS"
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6950 /* Override any GCC internal prototype to avoid an error.
6951 Use char because int might match the return type of a GCC
6952 builtin and then its argument prototype would still apply. */
6956 char sensors_init ();
6960 return sensors_init ();
6965 if ac_fn_c_try_link "$LINENO"; then :
6966 ac_cv_lib_sensors_sensors_init=yes
6968 ac_cv_lib_sensors_sensors_init=no
6970 rm -f core conftest.err conftest.$ac_objext \
6971 conftest$ac_exeext conftest.$ac_ext
6972 LIBS=$ac_check_lib_save_LIBS
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
6975 $as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
6976 if test "x$ac_cv_lib_sensors_sensors_init" = xyes; then :
6977 cat >>confdefs.h <<_ACEOF
6978 #define HAVE_LIBSENSORS 1
6981 LIBS="-lsensors $LIBS"
6985 for ac_header in sensors/sensors.h sensors/errors.h
6987 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6988 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6989 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6990 cat >>confdefs.h <<_ACEOF
6991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6998 SENSORS_LIBS=-lsensors
7001 ############### psensor
7012 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7013 if test -n "$ac_tool_prefix"; then
7014 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7015 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 $as_echo_n "checking for $ac_word... " >&6; }
7018 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7019 $as_echo_n "(cached) " >&6
7023 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7045 if test -n "$PKG_CONFIG"; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7047 $as_echo "$PKG_CONFIG" >&6; }
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7055 if test -z "$ac_cv_path_PKG_CONFIG"; then
7056 ac_pt_PKG_CONFIG=$PKG_CONFIG
7057 # Extract the first word of "pkg-config", so it can be a program name with args.
7058 set dummy pkg-config; ac_word=$2
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060 $as_echo_n "checking for $ac_word... " >&6; }
7061 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7062 $as_echo_n "(cached) " >&6
7064 case $ac_pt_PKG_CONFIG in
7066 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7088 if test -n "$ac_pt_PKG_CONFIG"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7090 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7096 if test "x$ac_pt_PKG_CONFIG" = x; then
7099 case $cross_compiling:$ac_tool_warned in
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103 ac_tool_warned=yes ;;
7105 PKG_CONFIG=$ac_pt_PKG_CONFIG
7108 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7112 if test -n "$PKG_CONFIG"; then
7113 _pkg_min_version=0.9.0
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7115 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7116 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7118 $as_echo "yes" >&6; }
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7128 $as_echo_n "checking for X11... " >&6; }
7130 if test -n "$X11_CFLAGS"; then
7131 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7132 elif test -n "$PKG_CONFIG"; then
7133 if test -n "$PKG_CONFIG" && \
7134 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7135 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7138 test $ac_status = 0; }; then
7139 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
7140 test "x$?" != "x0" && pkg_failed=yes
7147 if test -n "$X11_LIBS"; then
7148 pkg_cv_X11_LIBS="$X11_LIBS"
7149 elif test -n "$PKG_CONFIG"; then
7150 if test -n "$PKG_CONFIG" && \
7151 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7152 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7155 test $ac_status = 0; }; then
7156 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
7157 test "x$?" != "x0" && pkg_failed=yes
7167 if test $pkg_failed = yes; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169 $as_echo "no" >&6; }
7171 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7172 _pkg_short_errors_supported=yes
7174 _pkg_short_errors_supported=no
7176 if test $_pkg_short_errors_supported = yes; then
7177 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
7179 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
7181 # Put the nasty error message in config.log where it belongs
7182 echo "$X11_PKG_ERRORS" >&5
7184 as_fn_error $? "Package requirements (x11) were not met:
7188 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7189 installed software in a non-standard prefix.
7191 Alternatively, you may set the environment variables X11_CFLAGS
7192 and X11_LIBS to avoid the need to call pkg-config.
7193 See the pkg-config man page for more details." "$LINENO" 5
7194 elif test $pkg_failed = untried; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7199 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7200 is in your PATH or set the PKG_CONFIG environment variable to the full
7203 Alternatively, you may set the environment variables X11_CFLAGS
7204 and X11_LIBS to avoid the need to call pkg-config.
7205 See the pkg-config man page for more details.
7207 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7208 See \`config.log' for more details" "$LINENO" 5; }
7210 X11_CFLAGS=$pkg_cv_X11_CFLAGS
7211 X11_LIBS=$pkg_cv_X11_LIBS
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7213 $as_echo "yes" >&6; }
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
7222 $as_echo_n "checking for XEXT... " >&6; }
7224 if test -n "$XEXT_CFLAGS"; then
7225 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
7226 elif test -n "$PKG_CONFIG"; then
7227 if test -n "$PKG_CONFIG" && \
7228 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7229 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7232 test $ac_status = 0; }; then
7233 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
7234 test "x$?" != "x0" && pkg_failed=yes
7241 if test -n "$XEXT_LIBS"; then
7242 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
7243 elif test -n "$PKG_CONFIG"; then
7244 if test -n "$PKG_CONFIG" && \
7245 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7246 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7249 test $ac_status = 0; }; then
7250 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
7251 test "x$?" != "x0" && pkg_failed=yes
7261 if test $pkg_failed = yes; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263 $as_echo "no" >&6; }
7265 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7266 _pkg_short_errors_supported=yes
7268 _pkg_short_errors_supported=no
7270 if test $_pkg_short_errors_supported = yes; then
7271 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
7273 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
7275 # Put the nasty error message in config.log where it belongs
7276 echo "$XEXT_PKG_ERRORS" >&5
7278 as_fn_error $? "Package requirements (xext) were not met:
7282 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7283 installed software in a non-standard prefix.
7285 Alternatively, you may set the environment variables XEXT_CFLAGS
7286 and XEXT_LIBS to avoid the need to call pkg-config.
7287 See the pkg-config man page for more details." "$LINENO" 5
7288 elif test $pkg_failed = untried; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7293 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7294 is in your PATH or set the PKG_CONFIG environment variable to the full
7297 Alternatively, you may set the environment variables XEXT_CFLAGS
7298 and XEXT_LIBS to avoid the need to call pkg-config.
7299 See the pkg-config man page for more details.
7301 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7302 See \`config.log' for more details" "$LINENO" 5; }
7304 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
7305 XEXT_LIBS=$pkg_cv_XEXT_LIBS
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7307 $as_echo "yes" >&6; }
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7317 $as_echo_n "checking for GTK... " >&6; }
7319 if test -n "$GTK_CFLAGS"; then
7320 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7321 elif test -n "$PKG_CONFIG"; then
7322 if test -n "$PKG_CONFIG" && \
7323 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7324 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7327 test $ac_status = 0; }; then
7328 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
7329 test "x$?" != "x0" && pkg_failed=yes
7336 if test -n "$GTK_LIBS"; then
7337 pkg_cv_GTK_LIBS="$GTK_LIBS"
7338 elif test -n "$PKG_CONFIG"; then
7339 if test -n "$PKG_CONFIG" && \
7340 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7341 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7344 test $ac_status = 0; }; then
7345 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
7346 test "x$?" != "x0" && pkg_failed=yes
7356 if test $pkg_failed = yes; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7360 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7361 _pkg_short_errors_supported=yes
7363 _pkg_short_errors_supported=no
7365 if test $_pkg_short_errors_supported = yes; then
7366 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
7368 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
7370 # Put the nasty error message in config.log where it belongs
7371 echo "$GTK_PKG_ERRORS" >&5
7373 as_fn_error $? "Package requirements (gtk+-3.0) were not met:
7377 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7378 installed software in a non-standard prefix.
7380 Alternatively, you may set the environment variables GTK_CFLAGS
7381 and GTK_LIBS to avoid the need to call pkg-config.
7382 See the pkg-config man page for more details." "$LINENO" 5
7383 elif test $pkg_failed = untried; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7388 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7389 is in your PATH or set the PKG_CONFIG environment variable to the full
7392 Alternatively, you may set the environment variables GTK_CFLAGS
7393 and GTK_LIBS to avoid the need to call pkg-config.
7394 See the pkg-config man page for more details.
7396 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7397 See \`config.log' for more details" "$LINENO" 5; }
7399 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7400 GTK_LIBS=$pkg_cv_GTK_LIBS
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7402 $as_echo "yes" >&6; }
7405 # ensure that only allowed headers are included
7406 GTK_CFLAGS+=" -DGTK_DISABLE_SINGLE_INCLUDES "
7407 # ensure that no gtk deprecated symbols are used
7408 GTK_CFLAGS+=" -DGDK_DISABLE_DEPRECATED "
7409 GTK_CFLAGS+=" -DGTK_DISABLE_DEPRECATED "
7410 # ensure use of accessors
7411 GTK_CFLAGS+=" -DGSEAL_ENABLE "
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF" >&5
7419 $as_echo_n "checking for GCONF... " >&6; }
7421 if test -n "$GCONF_CFLAGS"; then
7422 pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
7423 elif test -n "$PKG_CONFIG"; then
7424 if test -n "$PKG_CONFIG" && \
7425 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7426 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7429 test $ac_status = 0; }; then
7430 pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0" 2>/dev/null`
7431 test "x$?" != "x0" && pkg_failed=yes
7438 if test -n "$GCONF_LIBS"; then
7439 pkg_cv_GCONF_LIBS="$GCONF_LIBS"
7440 elif test -n "$PKG_CONFIG"; then
7441 if test -n "$PKG_CONFIG" && \
7442 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7443 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7446 test $ac_status = 0; }; then
7447 pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0" 2>/dev/null`
7448 test "x$?" != "x0" && pkg_failed=yes
7458 if test $pkg_failed = yes; then
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7462 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7463 _pkg_short_errors_supported=yes
7465 _pkg_short_errors_supported=no
7467 if test $_pkg_short_errors_supported = yes; then
7468 GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gconf-2.0" 2>&1`
7470 GCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gconf-2.0" 2>&1`
7472 # Put the nasty error message in config.log where it belongs
7473 echo "$GCONF_PKG_ERRORS" >&5
7475 as_fn_error $? "Package requirements (gconf-2.0) were not met:
7479 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7480 installed software in a non-standard prefix.
7482 Alternatively, you may set the environment variables GCONF_CFLAGS
7483 and GCONF_LIBS to avoid the need to call pkg-config.
7484 See the pkg-config man page for more details." "$LINENO" 5
7485 elif test $pkg_failed = untried; then
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7490 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7491 is in your PATH or set the PKG_CONFIG environment variable to the full
7494 Alternatively, you may set the environment variables GCONF_CFLAGS
7495 and GCONF_LIBS to avoid the need to call pkg-config.
7496 See the pkg-config man page for more details.
7498 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7499 See \`config.log' for more details" "$LINENO" 5; }
7501 GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
7502 GCONF_LIBS=$pkg_cv_GCONF_LIBS
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7504 $as_echo "yes" >&6; }
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATASMART" >&5
7516 $as_echo_n "checking for ATASMART... " >&6; }
7518 if test -n "$ATASMART_CFLAGS"; then
7519 pkg_cv_ATASMART_CFLAGS="$ATASMART_CFLAGS"
7520 elif test -n "$PKG_CONFIG"; then
7521 if test -n "$PKG_CONFIG" && \
7522 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
7523 ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
7525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7526 test $ac_status = 0; }; then
7527 pkg_cv_ATASMART_CFLAGS=`$PKG_CONFIG --cflags "libatasmart" 2>/dev/null`
7528 test "x$?" != "x0" && pkg_failed=yes
7535 if test -n "$ATASMART_LIBS"; then
7536 pkg_cv_ATASMART_LIBS="$ATASMART_LIBS"
7537 elif test -n "$PKG_CONFIG"; then
7538 if test -n "$PKG_CONFIG" && \
7539 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
7540 ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
7542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7543 test $ac_status = 0; }; then
7544 pkg_cv_ATASMART_LIBS=`$PKG_CONFIG --libs "libatasmart" 2>/dev/null`
7545 test "x$?" != "x0" && pkg_failed=yes
7555 if test $pkg_failed = yes; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7559 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7560 _pkg_short_errors_supported=yes
7562 _pkg_short_errors_supported=no
7564 if test $_pkg_short_errors_supported = yes; then
7565 ATASMART_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libatasmart" 2>&1`
7567 ATASMART_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libatasmart" 2>&1`
7569 # Put the nasty error message in config.log where it belongs
7570 echo "$ATASMART_PKG_ERRORS" >&5
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
7573 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
7574 elif test $pkg_failed = untried; then
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
7578 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
7580 ATASMART_CFLAGS=$pkg_cv_ATASMART_CFLAGS
7581 ATASMART_LIBS=$pkg_cv_ATASMART_LIBS
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7583 $as_echo "yes" >&6; }
7585 $as_echo "#define HAVE_ATASMART 1" >>confdefs.h
7589 if test -n "$ATASMART_LIBS"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
7605 $as_echo_n "checking for LIBNOTIFY... " >&6; }
7607 if test -n "$LIBNOTIFY_CFLAGS"; then
7608 pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
7609 elif test -n "$PKG_CONFIG"; then
7610 if test -n "$PKG_CONFIG" && \
7611 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7612 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7615 test $ac_status = 0; }; then
7616 pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
7617 test "x$?" != "x0" && pkg_failed=yes
7624 if test -n "$LIBNOTIFY_LIBS"; then
7625 pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
7626 elif test -n "$PKG_CONFIG"; then
7627 if test -n "$PKG_CONFIG" && \
7628 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7629 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7632 test $ac_status = 0; }; then
7633 pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
7634 test "x$?" != "x0" && pkg_failed=yes
7644 if test $pkg_failed = yes; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7648 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7649 _pkg_short_errors_supported=yes
7651 _pkg_short_errors_supported=no
7653 if test $_pkg_short_errors_supported = yes; then
7654 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify" 2>&1`
7656 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify" 2>&1`
7658 # Put the nasty error message in config.log where it belongs
7659 echo "$LIBNOTIFY_PKG_ERRORS" >&5
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7662 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7663 elif test $pkg_failed = untried; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7667 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7669 LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
7670 LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7672 $as_echo "yes" >&6; }
7674 $as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h
7677 if test -n "$LIBNOTIFY_LIBS"; then
7688 # Checks AppIndicator
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7694 $as_echo_n "checking for APPINDICATOR... " >&6; }
7696 if test -n "$APPINDICATOR_CFLAGS"; then
7697 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7698 elif test -n "$PKG_CONFIG"; then
7699 if test -n "$PKG_CONFIG" && \
7700 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
7701 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
7703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7704 test $ac_status = 0; }; then
7705 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator3-0.1" 2>/dev/null`
7706 test "x$?" != "x0" && pkg_failed=yes
7713 if test -n "$APPINDICATOR_LIBS"; then
7714 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7715 elif test -n "$PKG_CONFIG"; then
7716 if test -n "$PKG_CONFIG" && \
7717 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
7718 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
7720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7721 test $ac_status = 0; }; then
7722 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator3-0.1" 2>/dev/null`
7723 test "x$?" != "x0" && pkg_failed=yes
7733 if test $pkg_failed = yes; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7737 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7738 _pkg_short_errors_supported=yes
7740 _pkg_short_errors_supported=no
7742 if test $_pkg_short_errors_supported = yes; then
7743 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
7745 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
7747 # Put the nasty error message in config.log where it belongs
7748 echo "$APPINDICATOR_PKG_ERRORS" >&5
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
7751 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
7752 elif test $pkg_failed = untried; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
7756 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
7758 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7759 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7761 $as_echo "yes" >&6; }
7763 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7767 if test "$APPINDICATOR_LIBS" == ""; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7771 $as_echo_n "checking for APPINDICATOR... " >&6; }
7773 if test -n "$APPINDICATOR_CFLAGS"; then
7774 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7775 elif test -n "$PKG_CONFIG"; then
7776 if test -n "$PKG_CONFIG" && \
7777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7778 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7781 test $ac_status = 0; }; then
7782 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7783 test "x$?" != "x0" && pkg_failed=yes
7790 if test -n "$APPINDICATOR_LIBS"; then
7791 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7792 elif test -n "$PKG_CONFIG"; then
7793 if test -n "$PKG_CONFIG" && \
7794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7795 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7798 test $ac_status = 0; }; then
7799 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7800 test "x$?" != "x0" && pkg_failed=yes
7810 if test $pkg_failed = yes; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7814 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7815 _pkg_short_errors_supported=yes
7817 _pkg_short_errors_supported=no
7819 if test $_pkg_short_errors_supported = yes; then
7820 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
7822 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
7824 # Put the nasty error message in config.log where it belongs
7825 echo "$APPINDICATOR_PKG_ERRORS" >&5
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7828 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7829 elif test $pkg_failed = untried; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7833 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7835 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7836 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7838 $as_echo "yes" >&6; }
7840 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7843 $as_echo "#define HAVE_APPINDICATOR_029 1" >>confdefs.h
7849 if test "$APPINDICATOR_LIBS" == ""; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7853 $as_echo_n "checking for APPINDICATOR... " >&6; }
7855 if test -n "$APPINDICATOR_CFLAGS"; then
7856 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7857 elif test -n "$PKG_CONFIG"; then
7858 if test -n "$PKG_CONFIG" && \
7859 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
7860 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
7862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7863 test $ac_status = 0; }; then
7864 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 > 0.2.9" 2>/dev/null`
7865 test "x$?" != "x0" && pkg_failed=yes
7872 if test -n "$APPINDICATOR_LIBS"; then
7873 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7874 elif test -n "$PKG_CONFIG"; then
7875 if test -n "$PKG_CONFIG" && \
7876 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
7877 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
7879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7880 test $ac_status = 0; }; then
7881 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 > 0.2.9" 2>/dev/null`
7882 test "x$?" != "x0" && pkg_failed=yes
7892 if test $pkg_failed = yes; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 $as_echo "no" >&6; }
7896 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7897 _pkg_short_errors_supported=yes
7899 _pkg_short_errors_supported=no
7901 if test $_pkg_short_errors_supported = yes; then
7902 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
7904 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
7906 # Put the nasty error message in config.log where it belongs
7907 echo "$APPINDICATOR_PKG_ERRORS" >&5
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
7910 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
7911 elif test $pkg_failed = untried; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
7915 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
7917 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7918 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7920 $as_echo "yes" >&6; }
7922 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7926 if test -n "$APPINDICATOR_LIBS"; then
7928 APPINDICATOR_FALSE='#'
7930 APPINDICATOR_TRUE='#'
7937 # Check CURL, needed for remote monitoring
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
7942 $as_echo_n "checking for CURL... " >&6; }
7944 if test -n "$CURL_CFLAGS"; then
7945 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
7946 elif test -n "$PKG_CONFIG"; then
7947 if test -n "$PKG_CONFIG" && \
7948 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
7949 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
7951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7952 test $ac_status = 0; }; then
7953 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
7954 test "x$?" != "x0" && pkg_failed=yes
7961 if test -n "$CURL_LIBS"; then
7962 pkg_cv_CURL_LIBS="$CURL_LIBS"
7963 elif test -n "$PKG_CONFIG"; then
7964 if test -n "$PKG_CONFIG" && \
7965 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
7966 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
7968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7969 test $ac_status = 0; }; then
7970 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
7971 test "x$?" != "x0" && pkg_failed=yes
7981 if test $pkg_failed = yes; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 $as_echo "no" >&6; }
7985 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7986 _pkg_short_errors_supported=yes
7988 _pkg_short_errors_supported=no
7990 if test $_pkg_short_errors_supported = yes; then
7991 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
7993 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
7995 # Put the nasty error message in config.log where it belongs
7996 echo "$CURL_PKG_ERRORS" >&5
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
7999 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8000 elif test $pkg_failed = untried; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8004 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8006 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
8007 CURL_LIBS=$pkg_cv_CURL_LIBS
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8009 $as_echo "yes" >&6; }
8011 $as_echo "#define HAVE_CURL 1" >>confdefs.h
8014 if test -n "$CURL_LIBS"; then
8025 # Check JSON, needed for remote monitoring
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8030 $as_echo_n "checking for JSON... " >&6; }
8032 if test -n "$JSON_CFLAGS"; then
8033 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8034 elif test -n "$PKG_CONFIG"; then
8035 if test -n "$PKG_CONFIG" && \
8036 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8037 ($PKG_CONFIG --exists --print-errors "json") 2>&5
8039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8040 test $ac_status = 0; }; then
8041 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
8042 test "x$?" != "x0" && pkg_failed=yes
8049 if test -n "$JSON_LIBS"; then
8050 pkg_cv_JSON_LIBS="$JSON_LIBS"
8051 elif test -n "$PKG_CONFIG"; then
8052 if test -n "$PKG_CONFIG" && \
8053 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8054 ($PKG_CONFIG --exists --print-errors "json") 2>&5
8056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8057 test $ac_status = 0; }; then
8058 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
8059 test "x$?" != "x0" && pkg_failed=yes
8069 if test $pkg_failed = yes; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8073 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8074 _pkg_short_errors_supported=yes
8076 _pkg_short_errors_supported=no
8078 if test $_pkg_short_errors_supported = yes; then
8079 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
8081 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
8083 # Put the nasty error message in config.log where it belongs
8084 echo "$JSON_PKG_ERRORS" >&5
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8087 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8088 elif test $pkg_failed = untried; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8092 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8094 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8095 JSON_LIBS=$pkg_cv_JSON_LIBS
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8097 $as_echo "yes" >&6; }
8099 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8102 if test -n "$JSON_LIBS"; then
8113 # Enables remote monitoring if JSON and CURL is present
8114 if test -n "$JSON_LIBS"; then
8115 if test -n "$CURL_LIBS"; then
8117 $as_echo "#define HAVE_REMOTE_SUPPORT 1" >>confdefs.h
8123 # following code from sensors-applet
8124 # sensors-applet.sourceforge.net/
8125 for ac_header in NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h
8127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8128 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8129 #include <X11/Xlib.h>
8132 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8133 cat >>confdefs.h <<_ACEOF
8134 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8141 if test -n "${X11_LIBS}"; then
8142 LIBS="${LIBS} -lX11 -lXext"
8144 if test "${HAVE_NVIDIA}" = "true"; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryExtension in -lXNVCtrl" >&5
8146 $as_echo_n "checking for XNVCTRLQueryExtension in -lXNVCtrl... " >&6; }
8147 if ${ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension+:} false; then :
8148 $as_echo_n "(cached) " >&6
8150 ac_check_lib_save_LIBS=$LIBS
8151 LIBS="-lXNVCtrl $LIBS"
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8155 /* Override any GCC internal prototype to avoid an error.
8156 Use char because int might match the return type of a GCC
8157 builtin and then its argument prototype would still apply. */
8161 char XNVCTRLQueryExtension ();
8165 return XNVCTRLQueryExtension ();
8170 if ac_fn_c_try_link "$LINENO"; then :
8171 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=yes
8173 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=no
8175 rm -f core conftest.err conftest.$ac_objext \
8176 conftest$ac_exeext conftest.$ac_ext
8177 LIBS=$ac_check_lib_save_LIBS
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&5
8180 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&6; }
8181 if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" = xyes; then :
8182 NVIDIA_LIBS="-lXNVCtrl -lX11 -lXext"
8184 $as_echo "#define HAVE_NVIDIA 1" >>confdefs.h
8191 if test -n "$NVIDIA_LIBS"; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNITY" >&5
8206 $as_echo_n "checking for UNITY... " >&6; }
8208 if test -n "$UNITY_CFLAGS"; then
8209 pkg_cv_UNITY_CFLAGS="$UNITY_CFLAGS"
8210 elif test -n "$PKG_CONFIG"; then
8211 if test -n "$PKG_CONFIG" && \
8212 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8213 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8216 test $ac_status = 0; }; then
8217 pkg_cv_UNITY_CFLAGS=`$PKG_CONFIG --cflags "unity >= 3.4.2" 2>/dev/null`
8218 test "x$?" != "x0" && pkg_failed=yes
8225 if test -n "$UNITY_LIBS"; then
8226 pkg_cv_UNITY_LIBS="$UNITY_LIBS"
8227 elif test -n "$PKG_CONFIG"; then
8228 if test -n "$PKG_CONFIG" && \
8229 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8230 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8233 test $ac_status = 0; }; then
8234 pkg_cv_UNITY_LIBS=`$PKG_CONFIG --libs "unity >= 3.4.2" 2>/dev/null`
8235 test "x$?" != "x0" && pkg_failed=yes
8245 if test $pkg_failed = yes; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8249 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8250 _pkg_short_errors_supported=yes
8252 _pkg_short_errors_supported=no
8254 if test $_pkg_short_errors_supported = yes; then
8255 UNITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8257 UNITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8259 # Put the nasty error message in config.log where it belongs
8260 echo "$UNITY_PKG_ERRORS" >&5
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8263 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8264 elif test $pkg_failed = untried; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8268 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8270 UNITY_CFLAGS=$pkg_cv_UNITY_CFLAGS
8271 UNITY_LIBS=$pkg_cv_UNITY_LIBS
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8273 $as_echo "yes" >&6; }
8275 $as_echo "#define HAVE_UNITY 1" >>confdefs.h
8280 if test -n "$UNITY_LIBS"; then
8291 # Check whether --with-libatiadl was given.
8292 if test "${with_libatiadl+set}" = set; then :
8293 withval=$with_libatiadl;
8294 ATIADL_DIR=${withval}
8295 CPPFLAGS="${CPPFLAGS} -I${ATIADL_DIR}/include"
8296 LIBS="$LIBS -L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst"
8302 for ac_header in adl_defines.h
8304 ac_fn_c_check_header_mongrel "$LINENO" "adl_defines.h" "ac_cv_header_adl_defines_h" "$ac_includes_default"
8305 if test "x$ac_cv_header_adl_defines_h" = xyes; then :
8306 cat >>confdefs.h <<_ACEOF
8307 #define HAVE_ADL_DEFINES_H 1
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ADL_Main_Control_Refresh in -latiadlxx" >&5
8310 $as_echo_n "checking for ADL_Main_Control_Refresh in -latiadlxx... " >&6; }
8311 if ${ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh+:} false; then :
8312 $as_echo_n "(cached) " >&6
8314 ac_check_lib_save_LIBS=$LIBS
8315 LIBS="-latiadlxx $LIBS"
8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8319 /* Override any GCC internal prototype to avoid an error.
8320 Use char because int might match the return type of a GCC
8321 builtin and then its argument prototype would still apply. */
8325 char ADL_Main_Control_Refresh ();
8329 return ADL_Main_Control_Refresh ();
8334 if ac_fn_c_try_link "$LINENO"; then :
8335 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=yes
8337 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=no
8339 rm -f core conftest.err conftest.$ac_objext \
8340 conftest$ac_exeext conftest.$ac_ext
8341 LIBS=$ac_check_lib_save_LIBS
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&5
8344 $as_echo "$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&6; }
8345 if test "x$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" = xyes; then :
8348 $as_echo "#define HAVE_LIBATIADL 1" >>confdefs.h
8350 LIBATIADL_CFLAGS="-I${ATIADL_DIR}/include"
8351 LIBATIADL_LIBS="-L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst -latiadlxx -ldl"
8360 if test -n "$LIBATIADL_LIBS"; then
8371 ############### psensor-server
8373 # libmicrohttpd, mandatory for psensor-server
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMICROHTTPD" >&5
8378 $as_echo_n "checking for LIBMICROHTTPD... " >&6; }
8380 if test -n "$LIBMICROHTTPD_CFLAGS"; then
8381 pkg_cv_LIBMICROHTTPD_CFLAGS="$LIBMICROHTTPD_CFLAGS"
8382 elif test -n "$PKG_CONFIG"; then
8383 if test -n "$PKG_CONFIG" && \
8384 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8385 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8388 test $ac_status = 0; }; then
8389 pkg_cv_LIBMICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null`
8390 test "x$?" != "x0" && pkg_failed=yes
8397 if test -n "$LIBMICROHTTPD_LIBS"; then
8398 pkg_cv_LIBMICROHTTPD_LIBS="$LIBMICROHTTPD_LIBS"
8399 elif test -n "$PKG_CONFIG"; then
8400 if test -n "$PKG_CONFIG" && \
8401 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8402 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8405 test $ac_status = 0; }; then
8406 pkg_cv_LIBMICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null`
8407 test "x$?" != "x0" && pkg_failed=yes
8417 if test $pkg_failed = yes; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8421 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8422 _pkg_short_errors_supported=yes
8424 _pkg_short_errors_supported=no
8426 if test $_pkg_short_errors_supported = yes; then
8427 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8429 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8431 # Put the nasty error message in config.log where it belongs
8432 echo "$LIBMICROHTTPD_PKG_ERRORS" >&5
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8435 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8436 elif test $pkg_failed = untried; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8440 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8442 LIBMICROHTTPD_CFLAGS=$pkg_cv_LIBMICROHTTPD_CFLAGS
8443 LIBMICROHTTPD_LIBS=$pkg_cv_LIBMICROHTTPD_LIBS
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8445 $as_echo "yes" >&6; }
8447 $as_echo "#define HAVE_LIBMICROHTTPD 1" >>confdefs.h
8450 if test -n "$LIBMICROHTTPD_LIBS"; then
8452 LIBMICROHTTPD_FALSE='#'
8454 LIBMICROHTTPD_TRUE='#'
8455 LIBMICROHTTPD_FALSE=
8464 # Check whether --with-gtop was given.
8465 if test "${with_gtop+set}" = set; then :
8476 if test "$with_gtop" = "yes"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTOP" >&5
8480 $as_echo_n "checking for GTOP... " >&6; }
8482 if test -n "$GTOP_CFLAGS"; then
8483 pkg_cv_GTOP_CFLAGS="$GTOP_CFLAGS"
8484 elif test -n "$PKG_CONFIG"; then
8485 if test -n "$PKG_CONFIG" && \
8486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8487 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8490 test $ac_status = 0; }; then
8491 pkg_cv_GTOP_CFLAGS=`$PKG_CONFIG --cflags "libgtop-2.0" 2>/dev/null`
8492 test "x$?" != "x0" && pkg_failed=yes
8499 if test -n "$GTOP_LIBS"; then
8500 pkg_cv_GTOP_LIBS="$GTOP_LIBS"
8501 elif test -n "$PKG_CONFIG"; then
8502 if test -n "$PKG_CONFIG" && \
8503 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8504 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8507 test $ac_status = 0; }; then
8508 pkg_cv_GTOP_LIBS=`$PKG_CONFIG --libs "libgtop-2.0" 2>/dev/null`
8509 test "x$?" != "x0" && pkg_failed=yes
8519 if test $pkg_failed = yes; then
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8523 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8524 _pkg_short_errors_supported=yes
8526 _pkg_short_errors_supported=no
8528 if test $_pkg_short_errors_supported = yes; then
8529 GTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgtop-2.0" 2>&1`
8531 GTOP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgtop-2.0" 2>&1`
8533 # Put the nasty error message in config.log where it belongs
8534 echo "$GTOP_PKG_ERRORS" >&5
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8537 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8538 elif test $pkg_failed = untried; then
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 $as_echo "no" >&6; }
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8542 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8544 GTOP_CFLAGS=$pkg_cv_GTOP_CFLAGS
8545 GTOP_LIBS=$pkg_cv_GTOP_LIBS
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8547 $as_echo "yes" >&6; }
8549 $as_echo "#define HAVE_GTOP 1" >>confdefs.h
8553 if test -n "$GTOP_LIBS"; then
8564 ac_config_files="$ac_config_files Makefile src/Makefile src/glade/Makefile src/lib/Makefile src/server/Makefile icons/hicolor/scalable/Makefile icons/hicolor/14x14/Makefile icons/hicolor/16x16/Makefile icons/hicolor/22x22/Makefile icons/hicolor/24x24/Makefile icons/hicolor/32x32/Makefile icons/hicolor/48x48/Makefile icons/hicolor/64x64/Makefile icons/ubuntu-mono-dark/status/22/Makefile icons/ubuntu-mono-light/status/22/Makefile icons/ubuntu-mono-dark/apps/22/Makefile www/Makefile po/Makefile.in tests/Makefile"
8567 for ac_prog in help2man
8569 # Extract the first word of "$ac_prog", so it can be a program name with args.
8570 set dummy $ac_prog; ac_word=$2
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572 $as_echo_n "checking for $ac_word... " >&6; }
8573 if ${ac_cv_prog_HELP2MAN+:} false; then :
8574 $as_echo_n "(cached) " >&6
8576 if test -n "$HELP2MAN"; then
8577 ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583 test -z "$as_dir" && as_dir=.
8584 for ac_exec_ext in '' $ac_executable_extensions; do
8585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8586 ac_cv_prog_HELP2MAN="$ac_prog"
8587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596 HELP2MAN=$ac_cv_prog_HELP2MAN
8597 if test -n "$HELP2MAN"; then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
8599 $as_echo "$HELP2MAN" >&6; }
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 $as_echo "no" >&6; }
8606 test -n "$HELP2MAN" && break
8610 cat >confcache <<\_ACEOF
8611 # This file is a shell script that caches the results of configure
8612 # tests run on this system so they can be shared between configure
8613 # scripts and configure runs, see configure's option --config-cache.
8614 # It is not useful on other systems. If it contains results you don't
8615 # want to keep, you may remove or edit it.
8617 # config.status only pays attention to the cache file if you give it
8618 # the --recheck option to rerun configure.
8620 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8621 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8626 # The following way of writing the cache mishandles newlines in values,
8627 # but we know of no workaround that is simple, portable, and efficient.
8628 # So, we kill variables containing newlines.
8629 # Ultrix sh set writes to stderr and can't be redirected directly,
8630 # and sets the high bit in the cache file unless we assign to the vars.
8632 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8633 eval ac_val=\$$ac_var
8637 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8638 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8641 _ | IFS | as_nl) ;; #(
8642 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8643 *) { eval $ac_var=; unset $ac_var;} ;;
8649 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8650 *${as_nl}ac_space=\ *)
8651 # `set' does not quote correctly, so add quotes: double-quote
8652 # substitution turns \\\\ into \\, and sed turns \\ into \.
8655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8658 # `set' quotes correctly as required by POSIX, so do not add quotes.
8659 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8668 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8670 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8672 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8673 if test -w "$cache_file"; then
8674 if test "x$cache_file" != "x/dev/null"; then
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8676 $as_echo "$as_me: updating cache $cache_file" >&6;}
8677 if test ! -f "$cache_file" || test -h "$cache_file"; then
8678 cat confcache >"$cache_file"
8680 case $cache_file in #(
8682 mv -f confcache "$cache_file"$$ &&
8683 mv -f "$cache_file"$$ "$cache_file" ;; #(
8685 mv -f confcache "$cache_file" ;;
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8691 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8696 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8697 # Let make expand exec_prefix.
8698 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8700 DEFS=-DHAVE_CONFIG_H
8705 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8706 # 1. Remove the extension, and $U if already installed.
8707 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8708 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8709 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8710 # will be set to the directory where LIBOBJS objects are built.
8711 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8712 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8716 LTLIBOBJS=$ac_ltlibobjs
8719 if test -n "$EXEEXT"; then
8721 am__EXEEXT_FALSE='#'
8727 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8728 as_fn_error $? "conditional \"AMDEP\" was never defined.
8729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8731 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8732 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8735 if test -z "${ATASMART_TRUE}" && test -z "${ATASMART_FALSE}"; then
8736 as_fn_error $? "conditional \"ATASMART\" was never defined.
8737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8739 if test -z "${LIBNOTIFY_TRUE}" && test -z "${LIBNOTIFY_FALSE}"; then
8740 as_fn_error $? "conditional \"LIBNOTIFY\" was never defined.
8741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8743 if test -z "${APPINDICATOR_TRUE}" && test -z "${APPINDICATOR_FALSE}"; then
8744 as_fn_error $? "conditional \"APPINDICATOR\" was never defined.
8745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8747 if test -z "${CURL_TRUE}" && test -z "${CURL_FALSE}"; then
8748 as_fn_error $? "conditional \"CURL\" was never defined.
8749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8751 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
8752 as_fn_error $? "conditional \"JSON\" was never defined.
8753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8755 if test -z "${NVIDIA_TRUE}" && test -z "${NVIDIA_FALSE}"; then
8756 as_fn_error $? "conditional \"NVIDIA\" was never defined.
8757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8759 if test -z "${UNITY_TRUE}" && test -z "${UNITY_FALSE}"; then
8760 as_fn_error $? "conditional \"UNITY\" was never defined.
8761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8763 if test -z "${LIBATIADL_TRUE}" && test -z "${LIBATIADL_FALSE}"; then
8764 as_fn_error $? "conditional \"LIBATIADL\" was never defined.
8765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8767 if test -z "${LIBMICROHTTPD_TRUE}" && test -z "${LIBMICROHTTPD_FALSE}"; then
8768 as_fn_error $? "conditional \"LIBMICROHTTPD\" was never defined.
8769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8771 if test -z "${GTOP_TRUE}" && test -z "${GTOP_FALSE}"; then
8772 as_fn_error $? "conditional \"GTOP\" was never defined.
8773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8776 : "${CONFIG_STATUS=./config.status}"
8778 ac_clean_files_save=$ac_clean_files
8779 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8781 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8783 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8785 # Generated by $as_me.
8786 # Run this file to recreate the current configuration.
8787 # Compiler output produced by configure, useful for debugging
8788 # configure, is in config.log if it exists.
8794 SHELL=\${CONFIG_SHELL-$SHELL}
8797 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8798 ## -------------------- ##
8799 ## M4sh Initialization. ##
8800 ## -------------------- ##
8802 # Be more Bourne compatible
8803 DUALCASE=1; export DUALCASE # for MKS sh
8804 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8807 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8808 # is contrary to our usage. Disable this feature.
8809 alias -g '${1+"$@"}'='"$@"'
8810 setopt NO_GLOB_SUBST
8812 case `(set -o) 2>/dev/null` in #(
8824 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8825 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8826 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8827 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8828 # Prefer a ksh shell builtin over an external printf program on Solaris,
8829 # but without wasting forks for bash or zsh.
8830 if test -z "$BASH_VERSION$ZSH_VERSION" \
8831 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8832 as_echo='print -r --'
8833 as_echo_n='print -rn --'
8834 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8835 as_echo='printf %s\n'
8836 as_echo_n='printf %s'
8838 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8839 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8840 as_echo_n='/usr/ucb/echo -n'
8842 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8843 as_echo_n_body='eval
8847 expr "X$arg" : "X\\(.*\\)$as_nl";
8848 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8850 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8852 export as_echo_n_body
8853 as_echo_n='sh -c $as_echo_n_body as_echo'
8856 as_echo='sh -c $as_echo_body as_echo'
8859 # The user is always right.
8860 if test "${PATH_SEPARATOR+set}" != set; then
8862 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8863 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8870 # We need space, tab and new line, in precisely that order. Quoting is
8871 # there to prevent editors from complaining about space-tab.
8872 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8873 # splitting by setting IFS to empty value.)
8876 # Find who we are. Look in the path if we contain no directory separator.
8879 *[\\/]* ) as_myself=$0 ;;
8880 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8884 test -z "$as_dir" && as_dir=.
8885 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8891 # We did not find ourselves, most probably we were run as `sh COMMAND'
8892 # in which case we are not to be found in the path.
8893 if test "x$as_myself" = x; then
8896 if test ! -f "$as_myself"; then
8897 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8901 # Unset variables that we do not need and which cause bugs (e.g. in
8902 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8903 # suppresses any "Segmentation fault" message there. '((' could
8904 # trigger a bug in pdksh 5.2.14.
8905 for as_var in BASH_ENV ENV MAIL MAILPATH
8906 do eval test x\${$as_var+set} = xset \
8907 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8920 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8923 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8924 # ----------------------------------------
8925 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8926 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8927 # script with STATUS, using 1 if that was 0.
8930 as_status=$1; test $as_status -eq 0 && as_status=1
8932 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8933 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8935 $as_echo "$as_me: error: $2" >&2
8936 as_fn_exit $as_status
8940 # as_fn_set_status STATUS
8941 # -----------------------
8942 # Set $? to STATUS, without forking.
8946 } # as_fn_set_status
8950 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8960 # Portably unset VAR.
8963 { eval $1=; unset $1;}
8965 as_unset=as_fn_unset
8966 # as_fn_append VAR VALUE
8967 # ----------------------
8968 # Append the text in VALUE to the end of the definition contained in VAR. Take
8969 # advantage of any shell optimizations that allow amortized linear growth over
8970 # repeated appends, instead of the typical quadratic growth present in naive
8972 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8973 eval 'as_fn_append ()
8984 # as_fn_arith ARG...
8985 # ------------------
8986 # Perform arithmetic evaluation on the ARGs, and store the result in the
8987 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8988 # must be portable across $(()) and expr.
8989 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8990 eval 'as_fn_arith ()
8997 as_val=`expr "$@" || test $? -eq 1`
9002 if expr a : '\(a\)' >/dev/null 2>&1 &&
9003 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9009 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9010 as_basename=basename
9015 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9021 as_me=`$as_basename -- "$0" ||
9022 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9023 X"$0" : 'X\(//\)$' \| \
9024 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9026 sed '/^.*\/\([^/][^/]*\)\/*$/{
9040 # Avoid depending upon Character Ranges.
9041 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9042 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9043 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9044 as_cr_digits='0123456789'
9045 as_cr_alnum=$as_cr_Letters$as_cr_digits
9047 ECHO_C= ECHO_N= ECHO_T=
9048 case `echo -n x` in #(((((
9050 case `echo 'xy\c'` in
9051 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9053 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9060 rm -f conf$$ conf$$.exe conf$$.file
9061 if test -d conf$$.dir; then
9062 rm -f conf$$.dir/conf$$.file
9065 mkdir conf$$.dir 2>/dev/null
9067 if (echo >conf$$.file) 2>/dev/null; then
9068 if ln -s conf$$.file conf$$ 2>/dev/null; then
9070 # ... but there are two gotchas:
9071 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9072 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9073 # In both cases, we have to default to `cp -p'.
9074 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9076 elif ln conf$$.file conf$$ 2>/dev/null; then
9084 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9085 rmdir conf$$.dir 2>/dev/null
9090 # Create "$as_dir" as a directory, including parents if necessary.
9095 -*) as_dir=./$as_dir;;
9097 test -d "$as_dir" || eval $as_mkdir_p || {
9101 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9102 *) as_qdir=$as_dir;;
9104 as_dirs="'$as_qdir' $as_dirs"
9105 as_dir=`$as_dirname -- "$as_dir" ||
9106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9107 X"$as_dir" : 'X\(//\)[^/]' \| \
9108 X"$as_dir" : 'X\(//\)$' \| \
9109 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9110 $as_echo X"$as_dir" |
9111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9128 test -d "$as_dir" && break
9130 test -z "$as_dirs" || eval "mkdir $as_dirs"
9131 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9135 if mkdir -p . 2>/dev/null; then
9136 as_mkdir_p='mkdir -p "$as_dir"'
9138 test -d ./-p && rmdir ./-p
9142 if test -x / >/dev/null 2>&1; then
9145 if ls -dL / >/dev/null 2>&1; then
9152 if test -d "$1"; then
9158 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9159 ???[sx]*):;;*)false;;esac;fi
9163 as_executable_p=$as_test_x
9165 # Sed expression to map a string onto a valid CPP name.
9166 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9168 # Sed expression to map a string onto a valid variable name.
9169 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9173 ## ----------------------------------- ##
9174 ## Main body of $CONFIG_STATUS script. ##
9175 ## ----------------------------------- ##
9177 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9180 # Save the log message, to keep $0 and so on meaningful, and to
9181 # report actual input values of CONFIG_FILES etc. instead of their
9182 # values after options handling.
9184 This file was extended by psensor $as_me 0.7.0.0, which was
9185 generated by GNU Autoconf 2.68. Invocation command line was
9187 CONFIG_FILES = $CONFIG_FILES
9188 CONFIG_HEADERS = $CONFIG_HEADERS
9189 CONFIG_LINKS = $CONFIG_LINKS
9190 CONFIG_COMMANDS = $CONFIG_COMMANDS
9193 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9198 case $ac_config_files in *"
9199 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9202 case $ac_config_headers in *"
9203 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9208 # Files that config.status was made for.
9209 config_files="$ac_config_files"
9210 config_headers="$ac_config_headers"
9211 config_commands="$ac_config_commands"
9215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9217 \`$as_me' instantiates files and other configuration actions
9218 from templates according to the current configuration. Unless the files
9219 and actions are specified as TAGs, all are instantiated by default.
9221 Usage: $0 [OPTION]... [TAG]...
9223 -h, --help print this help, then exit
9224 -V, --version print version number and configuration settings, then exit
9225 --config print configuration, then exit
9226 -q, --quiet, --silent
9227 do not print progress messages
9228 -d, --debug don't remove temporary files
9229 --recheck update $as_me by reconfiguring in the same conditions
9230 --file=FILE[:TEMPLATE]
9231 instantiate the configuration file FILE
9232 --header=FILE[:TEMPLATE]
9233 instantiate the configuration header FILE
9235 Configuration files:
9238 Configuration headers:
9241 Configuration commands:
9244 Report bugs to <jeanfi@gmail.com>.
9245 psensor home page: <http://wpitchoune.net/psensor>."
9248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9249 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9251 psensor config.status 0.7.0.0
9252 configured by $0, generated by GNU Autoconf 2.68,
9253 with options \\"\$ac_cs_config\\"
9255 Copyright (C) 2010 Free Software Foundation, Inc.
9256 This config.status script is free software; the Free Software Foundation
9257 gives unlimited permission to copy, distribute and modify it."
9264 test -n "\$AWK" || AWK=awk
9267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9268 # The default lists apply if the user does not specify any file.
9274 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9275 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9279 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9291 # Handling of the options.
9292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9295 $as_echo "$ac_cs_version"; exit ;;
9296 --config | --confi | --conf | --con | --co | --c )
9297 $as_echo "$ac_cs_config"; exit ;;
9298 --debug | --debu | --deb | --de | --d | -d )
9300 --file | --fil | --fi | --f )
9303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9304 '') as_fn_error $? "missing file argument" ;;
9306 as_fn_append CONFIG_FILES " '$ac_optarg'"
9307 ac_need_defaults=false;;
9308 --header | --heade | --head | --hea )
9311 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9313 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9314 ac_need_defaults=false;;
9316 # Conflict between --help and --header
9317 as_fn_error $? "ambiguous option: \`$1'
9318 Try \`$0 --help' for more information.";;
9319 --help | --hel | -h )
9320 $as_echo "$ac_cs_usage"; exit ;;
9321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9322 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9326 -*) as_fn_error $? "unrecognized option: \`$1'
9327 Try \`$0 --help' for more information." ;;
9329 *) as_fn_append ac_config_targets " $1"
9330 ac_need_defaults=false ;;
9336 ac_configure_extra_args=
9338 if $ac_cs_silent; then
9340 ac_configure_extra_args="$ac_configure_extra_args --silent"
9344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9345 if \$ac_cs_recheck; then
9346 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9348 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9349 CONFIG_SHELL='$SHELL'
9355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9360 ## Running $as_me. ##
9366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9370 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9371 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9372 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9373 # from automake < 1.5.
9374 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9375 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9376 LINGUAS="${LINGUAS-%UNSET%}"
9381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9383 # Handling of arguments.
9384 for ac_config_target in $ac_config_targets
9386 case $ac_config_target in
9387 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9388 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9389 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9390 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9391 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9392 "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
9393 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
9394 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
9395 "icons/hicolor/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/scalable/Makefile" ;;
9396 "icons/hicolor/14x14/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/14x14/Makefile" ;;
9397 "icons/hicolor/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/16x16/Makefile" ;;
9398 "icons/hicolor/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/22x22/Makefile" ;;
9399 "icons/hicolor/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/24x24/Makefile" ;;
9400 "icons/hicolor/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/32x32/Makefile" ;;
9401 "icons/hicolor/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/48x48/Makefile" ;;
9402 "icons/hicolor/64x64/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/64x64/Makefile" ;;
9403 "icons/ubuntu-mono-dark/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/status/22/Makefile" ;;
9404 "icons/ubuntu-mono-light/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-light/status/22/Makefile" ;;
9405 "icons/ubuntu-mono-dark/apps/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/apps/22/Makefile" ;;
9406 "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
9407 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9408 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9410 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9415 # If the user did not use the arguments to specify the items to instantiate,
9416 # then the envvar interface is used. Set only those that are not.
9417 # We use the long form for the default assignment because of an extremely
9418 # bizarre bug on SunOS 4.1.3.
9419 if $ac_need_defaults; then
9420 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9421 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9422 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9425 # Have a temporary directory for convenience. Make it in the build tree
9426 # simply because there is no reason against having it here, and in addition,
9427 # creating and moving files from /tmp can sometimes cause problems.
9428 # Hook for its removal unless debugging.
9429 # Note that there is a small window in which the directory will not be cleaned:
9430 # after its creation but before its name has been assigned to `$tmp'.
9434 trap 'exit_status=$?
9436 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9438 trap 'as_fn_exit 1' 1 2 13 15
9440 # Create a (secure) tmp directory for tmp files.
9443 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9447 tmp=./conf$$-$RANDOM
9448 (umask 077 && mkdir "$tmp")
9449 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9452 # Set up the scripts for CONFIG_FILES section.
9453 # No need to generate them if there are no CONFIG_FILES.
9454 # This happens for instance with `./config.status config.h'.
9455 if test -n "$CONFIG_FILES"; then
9458 ac_cr=`echo X | tr X '\015'`
9459 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9460 # But we know of no other shell where ac_cr would be empty at this
9461 # point, so we can use a bashism as a fallback.
9462 if test "x$ac_cr" = x; then
9463 eval ac_cr=\$\'\\r\'
9465 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9466 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9472 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9477 echo "cat >conf$$subs.awk <<_ACEOF" &&
9478 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9482 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9484 for ac_last_try in false false false false false :; do
9485 . ./conf$$subs.sh ||
9486 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9488 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9489 if test $ac_delim_n = $ac_delim_num; then
9491 elif $ac_last_try; then
9492 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9494 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9500 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9504 s/^/S["/; s/!.*/"]=/
9514 s/\(.\{148\}\)..*/\1/
9516 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9521 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9528 s/\(.\{148\}\)..*/\1/
9530 s/["\\]/\\&/g; s/^/"/; s/$/"/
9534 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9539 ' <conf$$subs.awk | sed '
9544 ' >>$CONFIG_STATUS || ac_write_fail=1
9545 rm -f conf$$subs.awk
9546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9548 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9549 for (key in S) S_is_set[key] = 1
9555 nfields = split(line, field, "@")
9557 len = length(field[1])
9558 for (i = 2; i < nfields; i++) {
9560 keylen = length(key)
9561 if (S_is_set[key]) {
9563 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9564 len += length(value) + length(field[++i])
9575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9576 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9577 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9580 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9581 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9584 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9585 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9586 # trailing colons and then remove the whole line if VPATH becomes empty
9587 # (actually we leave an empty line to preserve line numbers).
9588 if test "x$srcdir" = x.; then
9589 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9608 fi # test -n "$CONFIG_FILES"
9610 # Set up the scripts for CONFIG_HEADERS section.
9611 # No need to generate them if there are no CONFIG_HEADERS.
9612 # This happens for instance with `./config.status Makefile'.
9613 if test -n "$CONFIG_HEADERS"; then
9614 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9618 # Transform confdefs.h into an awk script `defines.awk', embedded as
9619 # here-document in config.status, that substitutes the proper values into
9620 # config.h.in to produce config.h.
9622 # Create a delimiter string that does not exist in confdefs.h, to ease
9623 # handling of long lines.
9625 for ac_last_try in false false :; do
9626 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9627 if test -z "$ac_tt"; then
9629 elif $ac_last_try; then
9630 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9632 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9636 # For the awk script, D is an array of macro values keyed by name,
9637 # likewise P contains macro parameters if any. Preserve backslash
9638 # newline sequences.
9640 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9642 s/.\{148\}/&'"$ac_delim"'/g
9645 s/^[ ]*#[ ]*define[ ][ ]*/ /
9652 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9654 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9658 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9659 D["\1"]=" \3\\\\\\n"\\/p
9661 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9666 s/.\{148\}/&'"$ac_delim"'/g
9671 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9674 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9676 ' <confdefs.h | sed '
9677 s/'"$ac_delim"'/"\\\
9678 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9681 for (key in D) D_is_set[key] = 1
9684 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9686 split(line, arg, " ")
9687 if (arg[1] == "#") {
9691 defundef = substr(arg[1], 2)
9694 split(mac1, mac2, "(") #)
9696 prefix = substr(line, 1, index(line, defundef) - 1)
9697 if (D_is_set[macro]) {
9698 # Preserve the white space surrounding the "#".
9699 print prefix "define", macro P[macro] D[macro]
9702 # Replace #undef with comments. This is necessary, for example,
9703 # in the case of _POSIX_SOURCE, which is predefined and required
9704 # on some systems where configure will not decide to define it.
9705 if (defundef == "undef") {
9706 print "/*", prefix defundef, macro, "*/"
9714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9715 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9716 fi # test -n "$CONFIG_HEADERS"
9719 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9724 :[FHLC]) ac_mode=$ac_tag; continue;;
9726 case $ac_mode$ac_tag in
9728 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9729 :[FH]-) ac_tag=-:-;;
9730 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9747 -) ac_f="$ac_tmp/stdin";;
9748 *) # Look for the file first in the build tree, then in the source tree
9749 # (if the path is not absolute). The absolute path cannot be DOS-style,
9750 # because $ac_f cannot contain `:'.
9754 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9756 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9758 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9759 as_fn_append ac_file_inputs " '$ac_f'"
9762 # Let's still pretend it is `configure' which instantiates (i.e., don't
9763 # use $as_me), people would be surprised to read:
9764 # /* config.h. Generated by config.status. */
9765 configure_input='Generated from '`
9766 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9768 if test x"$ac_file" != x-; then
9769 configure_input="$ac_file. $configure_input"
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9771 $as_echo "$as_me: creating $ac_file" >&6;}
9773 # Neutralize special characters interpreted by sed in replacement strings.
9774 case $configure_input in #(
9775 *\&* | *\|* | *\\* )
9776 ac_sed_conf_input=`$as_echo "$configure_input" |
9777 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9778 *) ac_sed_conf_input=$configure_input;;
9782 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9783 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9788 ac_dir=`$as_dirname -- "$ac_file" ||
9789 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9790 X"$ac_file" : 'X\(//\)[^/]' \| \
9791 X"$ac_file" : 'X\(//\)$' \| \
9792 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9793 $as_echo X"$ac_file" |
9794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9811 as_dir="$ac_dir"; as_fn_mkdir_p
9815 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9817 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9818 # A ".." for each directory in $ac_dir_suffix.
9819 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9820 case $ac_top_builddir_sub in
9821 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9822 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9825 ac_abs_top_builddir=$ac_pwd
9826 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9827 # for backward compatibility:
9828 ac_top_builddir=$ac_top_build_prefix
9831 .) # We are building in place.
9833 ac_top_srcdir=$ac_top_builddir_sub
9834 ac_abs_top_srcdir=$ac_pwd ;;
9835 [\\/]* | ?:[\\/]* ) # Absolute name.
9836 ac_srcdir=$srcdir$ac_dir_suffix;
9837 ac_top_srcdir=$srcdir
9838 ac_abs_top_srcdir=$srcdir ;;
9840 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9841 ac_top_srcdir=$ac_top_build_prefix$srcdir
9842 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9844 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9854 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9855 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9859 [\\/$]* | ?:[\\/]* ) ;;
9860 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9865 # If the template does not know about datarootdir, expand it.
9866 # FIXME: This hack should be removed a few years after 2.60.
9867 ac_datarootdir_hack=; ac_datarootdir_seen=
9878 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9879 *datarootdir*) ac_datarootdir_seen=yes;;
9880 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9882 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9885 ac_datarootdir_hack='
9886 s&@datadir@&$datadir&g
9887 s&@docdir@&$docdir&g
9888 s&@infodir@&$infodir&g
9889 s&@localedir@&$localedir&g
9890 s&@mandir@&$mandir&g
9891 s&\\\${datarootdir}&$datarootdir&g' ;;
9895 # Neutralize VPATH when `$srcdir' = `.'.
9896 # Shell code in configure.ac might set extrasub.
9897 # FIXME: do we really want to maintain this feature?
9898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9899 ac_sed_extra="$ac_vpsub
9902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9904 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9905 s|@configure_input@|$ac_sed_conf_input|;t t
9906 s&@top_builddir@&$ac_top_builddir_sub&;t t
9907 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9908 s&@srcdir@&$ac_srcdir&;t t
9909 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9910 s&@top_srcdir@&$ac_top_srcdir&;t t
9911 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9912 s&@builddir@&$ac_builddir&;t t
9913 s&@abs_builddir@&$ac_abs_builddir&;t t
9914 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9915 s&@INSTALL@&$ac_INSTALL&;t t
9916 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9917 $ac_datarootdir_hack
9919 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9920 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9922 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9923 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9924 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9925 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9927 which seems to be undefined. Please make sure it is defined" >&5
9928 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9929 which seems to be undefined. Please make sure it is defined" >&2;}
9931 rm -f "$ac_tmp/stdin"
9933 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9934 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9936 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9942 if test x"$ac_file" != x-; then
9944 $as_echo "/* $configure_input */" \
9945 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9946 } >"$ac_tmp/config.h" \
9947 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9948 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9950 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9953 mv "$ac_tmp/config.h" "$ac_file" \
9954 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9957 $as_echo "/* $configure_input */" \
9958 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9959 || as_fn_error $? "could not create -" "$LINENO" 5
9961 # Compute "$ac_file"'s index in $config_headers.
9964 for _am_header in $config_headers :; do
9966 $_am_arg | $_am_arg:* )
9969 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9972 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9973 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9974 X"$_am_arg" : 'X\(//\)[^/]' \| \
9975 X"$_am_arg" : 'X\(//\)$' \| \
9976 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9977 $as_echo X"$_am_arg" |
9978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9994 s/.*/./; q'`/stamp-h$_am_stamp_count
9997 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9998 $as_echo "$as_me: executing $ac_file commands" >&6;}
10003 case $ac_file$ac_mode in
10004 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10005 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10006 # are listed without --file. Let's play safe and only enable the eval
10007 # if we detect the quoting.
10008 case $CONFIG_FILES in
10009 *\'*) eval set x "$CONFIG_FILES" ;;
10010 *) set x $CONFIG_FILES ;;
10015 # Strip MF so we end up with the name of the file.
10016 mf=`echo "$mf" | sed -e 's/:.*$//'`
10017 # Check whether this is an Automake generated Makefile or not.
10018 # We used to match only the files named `Makefile.in', but
10019 # some people rename them; so instead we look at the file content.
10020 # Grep'ing the first line is not enough: some people post-process
10021 # each Makefile.in and add a new line on top of each file to say so.
10022 # Grep'ing the whole file is not good either: AIX grep has a line
10023 # limit of 2048, but all sed's we know have understand at least 4000.
10024 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10025 dirpart=`$as_dirname -- "$mf" ||
10026 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10027 X"$mf" : 'X\(//\)[^/]' \| \
10028 X"$mf" : 'X\(//\)$' \| \
10029 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10035 /^X\(\/\/\)[^/].*/{
10051 # Extract the definition of DEPDIR, am__include, and am__quote
10052 # from the Makefile without running `make'.
10053 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10054 test -z "$DEPDIR" && continue
10055 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10056 test -z "am__include" && continue
10057 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10058 # When using ansi2knr, U may be empty or an underscore; expand it
10059 U=`sed -n 's/^U = //p' < "$mf"`
10060 # Find all dependency output files, they are included files with
10061 # $(DEPDIR) in their names. We invoke sed twice because it is the
10062 # simplest approach to changing $(DEPDIR) to its actual value in the
10064 for file in `sed -n "
10065 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10066 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10067 # Make sure the directory exists.
10068 test -f "$dirpart/$file" && continue
10069 fdir=`$as_dirname -- "$file" ||
10070 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10071 X"$file" : 'X\(//\)[^/]' \| \
10072 X"$file" : 'X\(//\)$' \| \
10073 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10074 $as_echo X"$file" |
10075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10079 /^X\(\/\/\)[^/].*/{
10092 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10093 # echo "creating $dirpart/$file"
10094 echo '# dummy' > "$dirpart/$file"
10099 "po-directories":C)
10100 for ac_file in $CONFIG_FILES; do
10101 # Support "outfile[:infile[:infile...]]"
10103 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10105 # PO directories have a Makefile.in generated from Makefile.in.in.
10106 case "$ac_file" in */Makefile.in)
10107 # Adjust a relative srcdir.
10108 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10109 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10110 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10111 # In autoconf-2.13 it is called $ac_given_srcdir.
10112 # In autoconf-2.50 it is called $srcdir.
10113 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10114 case "$ac_given_srcdir" in
10115 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10116 /*) top_srcdir="$ac_given_srcdir" ;;
10117 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10119 # Treat a directory as a PO directory if and only if it has a
10120 # POTFILES.in file. This allows packages to have multiple PO
10121 # directories under different names or in different locations.
10122 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10123 rm -f "$ac_dir/POTFILES"
10124 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10125 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10126 POMAKEFILEDEPS="POTFILES.in"
10127 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10128 # on $ac_dir but don't depend on user-specified configuration
10130 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10131 # The LINGUAS file contains the set of available languages.
10132 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10133 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10135 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10136 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10137 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10138 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10140 # The set of available languages was given in configure.in.
10141 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10142 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10145 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10146 # Compute UPDATEPOFILES
10147 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10148 # Compute DUMMYPOFILES
10149 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10151 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10152 case "$ac_given_srcdir" in
10154 *) srcdirpre='$(srcdir)/' ;;
10160 for lang in $ALL_LINGUAS; do
10161 POFILES="$POFILES $srcdirpre$lang.po"
10162 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10163 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10164 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10166 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10167 # environment variable.
10169 if test -n "$ALL_LINGUAS"; then
10170 for presentlang in $ALL_LINGUAS; do
10172 if test "%UNSET%" != "$LINGUAS"; then
10173 desiredlanguages="$LINGUAS"
10175 desiredlanguages="$ALL_LINGUAS"
10177 for desiredlang in $desiredlanguages; do
10178 # Use the presentlang catalog if desiredlang is
10179 # a. equal to presentlang, or
10180 # b. a variant of presentlang (because in this case,
10181 # presentlang can be used as a fallback for messages
10182 # which are not translated in the desiredlang catalog).
10183 case "$desiredlang" in
10184 "$presentlang"*) useit=yes;;
10187 if test $useit = yes; then
10188 INST_LINGUAS="$INST_LINGUAS $presentlang"
10193 if test -n "$INST_LINGUAS"; then
10194 for lang in $INST_LINGUAS; do
10195 CATALOGS="$CATALOGS $lang.gmo"
10198 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10199 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"
10200 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10201 if test -f "$f"; then
10203 *.orig | *.bak | *~) ;;
10204 *) cat "$f" >> "$ac_dir/Makefile" ;;
10219 ac_clean_files=$ac_clean_files_save
10221 test $ac_write_fail = 0 ||
10222 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10225 # configure is writing to config.log, and then calls config.status.
10226 # config.status does its own redirection, appending to config.log.
10227 # Unfortunately, on DOS this fails, as config.log is still kept open
10228 # by configure, so config.status won't be able to write to it; its
10229 # output is simply discarded. So we exec the FD to /dev/null,
10230 # effectively closing config.log, so it can be properly (re)opened and
10231 # appended to by config.status. When coming back to configure, we
10232 # need to make the FD available again.
10233 if test "$no_create" != yes; then
10235 ac_config_status_args=
10236 test "$silent" = yes &&
10237 ac_config_status_args="$ac_config_status_args --quiet"
10239 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10241 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10242 # would make configure fail if this is the last instruction.
10243 $ac_cs_success || as_fn_exit 1
10245 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10247 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}