2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for psensor 0.6.2.15.
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.6.2.15'
564 PACKAGE_STRING='psensor 0.6.2.15'
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
675 XGETTEXT_EXTRA_OPTIONS
683 GETTEXT_MACRO_VERSION
717 INSTALL_STRIP_PROGRAM
759 program_transform_name
772 enable_option_checking
773 enable_dependency_tracking
783 ac_precious_vars='build_alias
820 # Initialize some variables set by options.
822 ac_init_version=false
823 ac_unrecognized_opts=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
834 program_transform_name=s,x,x,
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
880 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
909 cache_file=config.cache ;;
911 -datadir | --datadir | --datadi | --datad)
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
923 -disable-* | --disable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
937 eval enable_$ac_useropt=no ;;
939 -docdir | --docdir | --docdi | --doc | --do)
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 -enable-* | --enable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
963 eval enable_$ac_useropt=\$ac_optarg ;;
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
978 -help | --help | --hel | --he | -h)
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 htmldir=$ac_optarg ;;
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1008 -libdir | --libdir | --libdi | --libd)
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1099 -psdir | --psdir | --psdi | --psd | --ps)
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 sbindir=$ac_optarg ;;
1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116 | --sharedst | --shareds | --shared | --share | --shar \
1118 ac_prev=sharedstatedir ;;
1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 sharedstatedir=$ac_optarg ;;
1125 -site | --site | --sit)
1127 -site=* | --site=* | --sit=*)
1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133 srcdir=$ac_optarg ;;
1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136 | --syscon | --sysco | --sysc | --sys | --sy)
1137 ac_prev=sysconfdir ;;
1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140 sysconfdir=$ac_optarg ;;
1142 -target | --target | --targe | --targ | --tar | --ta | --t)
1143 ac_prev=target_alias ;;
1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145 target_alias=$ac_optarg ;;
1147 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 -version | --version | --versio | --versi | --vers | -V)
1151 ac_init_version=: ;;
1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1167 eval with_$ac_useropt=\$ac_optarg ;;
1169 -without-* | --without-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1183 eval with_$ac_useropt=no ;;
1186 # Obsolete; use --with-x.
1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190 | --x-incl | --x-inc | --x-in | --x-i)
1191 ac_prev=x_includes ;;
1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194 x_includes=$ac_optarg ;;
1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198 ac_prev=x_libraries ;;
1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201 x_libraries=$ac_optarg ;;
1203 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1204 Try \`$0 --help' for more information"
1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209 # Reject names that are not valid shell variable names.
1210 case $ac_envvar in #(
1211 '' | [0-9]* | *[!_$as_cr_alnum]* )
1212 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214 eval $ac_envvar=\$ac_optarg
1215 export $ac_envvar ;;
1218 # FIXME: should be removed in autoconf 3.0.
1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1228 if test -n "$ac_prev"; then
1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230 as_fn_error $? "missing argument to $ac_option"
1233 if test -n "$ac_unrecognized_opts"; then
1234 case $enable_option_checking in
1236 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 # Check all directory arguments for consistency.
1242 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243 datadir sysconfdir sharedstatedir localstatedir includedir \
1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245 libdir localedir mandir
1247 eval ac_val=\$$ac_var
1248 # Remove trailing slashes.
1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252 eval $ac_var=\$ac_val;;
1254 # Be sure to have absolute directory names.
1256 [\\/$]* | ?:[\\/]* ) continue;;
1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1267 target=$target_alias
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x; then
1271 if test "x$build_alias" = x; then
1272 cross_compiling=maybe
1273 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1274 If a cross compiler is detected then cross compile mode will be used" >&2
1275 elif test "x$build_alias" != "x$host_alias"; then
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283 test "$silent" = yes && exec 6>/dev/null
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1326 ac_srcdir_defaulted=no
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354 # Report the --help message.
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1360 \`configure' configures psensor 0.6.2.15 to adapt to many kinds of systems.
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1367 Defaults for the options are specified in brackets.
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1391 For better control, use the options below.
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/psensor]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1423 --x-includes=DIR X include files are in DIR
1424 --x-libraries=DIR X library files are in DIR
1427 --build=BUILD configure for building on BUILD [guessed]
1428 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1432 if test -n "$ac_init_help"; then
1433 case $ac_init_help in
1434 short | recursive ) echo "Configuration of psensor 0.6.2.15:";;
1439 --disable-option-checking ignore unrecognized --enable/--with options
1440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1442 --disable-dependency-tracking speeds up one-time build
1443 --enable-dependency-tracking do not reject slow dependency extractors
1444 --disable-nls do not use Native Language Support
1445 --disable-rpath do not hardcode runtime library paths
1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1450 --with-x use the X Window System
1451 --with-gnu-ld assume the C compiler uses GNU ld default=no
1452 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1453 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1454 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1455 --without-libintl-prefix don't search for libintl in includedir and libdir
1456 --with-libatiadl=DIR use libatiadlxx in DIR
1457 --with-gtop=yes|no use gtop
1459 Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 LIBS libraries to pass to the linker, e.g. -l<library>
1465 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1466 you have headers in a nonstandard directory <include dir>
1467 XMKMF Path to xmkmf, Makefile generator for X Window System
1469 PKG_CONFIG path to pkg-config utility
1471 directories to add to pkg-config's search path
1473 path overriding pkg-config's built-in search path
1474 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1475 X11_LIBS linker flags for X11, overriding pkg-config
1476 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1477 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1478 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1479 GTK_LIBS linker flags for GTK, overriding pkg-config
1481 C compiler flags for GCONF, overriding pkg-config
1482 GCONF_LIBS linker flags for GCONF, overriding pkg-config
1484 C compiler flags for LIBNOTIFY, overriding pkg-config
1486 linker flags for LIBNOTIFY, overriding pkg-config
1488 C compiler flags for APPINDICATOR, overriding pkg-config
1490 linker flags for APPINDICATOR, overriding pkg-config
1491 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1492 CURL_LIBS linker flags for CURL, overriding pkg-config
1493 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1494 JSON_LIBS linker flags for JSON, overriding pkg-config
1496 C compiler flags for UNITY, overriding pkg-config
1497 UNITY_LIBS linker flags for UNITY, overriding pkg-config
1498 LIBMICROHTTPD_CFLAGS
1499 C compiler flags for LIBMICROHTTPD, overriding pkg-config
1501 linker flags for LIBMICROHTTPD, overriding pkg-config
1502 GTOP_CFLAGS C compiler flags for GTOP, overriding pkg-config
1503 GTOP_LIBS linker flags for GTOP, overriding pkg-config
1505 Use these variables to override the choices made by `configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1508 Report bugs to <jeanfi@gmail.com>.
1509 psensor home page: <http://wpitchoune.net/psensor>.
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" ||
1518 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1526 # A ".." for each directory in $ac_dir_suffix.
1527 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1528 case $ac_top_builddir_sub in
1529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533 ac_abs_top_builddir=$ac_pwd
1534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535 # for backward compatibility:
1536 ac_top_builddir=$ac_top_build_prefix
1539 .) # We are building in place.
1541 ac_top_srcdir=$ac_top_builddir_sub
1542 ac_abs_top_srcdir=$ac_pwd ;;
1543 [\\/]* | ?:[\\/]* ) # Absolute name.
1544 ac_srcdir=$srcdir$ac_dir_suffix;
1545 ac_top_srcdir=$srcdir
1546 ac_abs_top_srcdir=$srcdir ;;
1548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549 ac_top_srcdir=$ac_top_build_prefix$srcdir
1550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1554 cd "$ac_dir" || { ac_status=$?; continue; }
1555 # Check for guested configure.
1556 if test -f "$ac_srcdir/configure.gnu"; then
1558 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559 elif test -f "$ac_srcdir/configure"; then
1561 $SHELL "$ac_srcdir/configure" --help=recursive
1563 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565 cd "$ac_pwd" || { ac_status=$?; break; }
1569 test -n "$ac_init_help" && exit $ac_status
1570 if $ac_init_version; then
1572 psensor configure 0.6.2.15
1573 generated by GNU Autoconf 2.68
1575 Copyright (C) 2010 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1582 ## ------------------------ ##
1583 ## Autoconf initialization. ##
1584 ## ------------------------ ##
1586 # ac_fn_c_try_compile LINENO
1587 # --------------------------
1588 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_compile ()
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 rm -f conftest.$ac_objext
1593 if { { ac_try="$ac_compile"
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_compile") 2>conftest.err
1602 if test -s conftest.err; then
1603 grep -v '^ *+' conftest.err >conftest.er1
1604 cat conftest.er1 >&5
1605 mv -f conftest.er1 conftest.err
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } && {
1609 test -z "$ac_c_werror_flag" ||
1610 test ! -s conftest.err
1611 } && test -s conftest.$ac_objext; then :
1614 $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1622 } # ac_fn_c_try_compile
1624 # ac_fn_c_try_cpp LINENO
1625 # ----------------------
1626 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 if { { ac_try="$ac_cpp conftest.$ac_ext"
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } > conftest.i && {
1646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1661 # ac_fn_c_try_link LINENO
1662 # -----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded.
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext conftest$ac_exeext
1668 if { { ac_try="$ac_link"
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>conftest.err
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest$ac_exeext && {
1687 test "$cross_compiling" = yes ||
1688 $as_test_x conftest$ac_exeext
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699 # interfere with the next link command; also delete a directory that is
1700 # left behind by Apple's compiler. We do this before executing the actions.
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1705 } # ac_fn_c_try_link
1707 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1708 # -------------------------------------------------------
1709 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1710 # the include files in INCLUDES and setting the cache variable VAR
1712 ac_fn_c_check_header_mongrel ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if eval \${$3+:} false; then :
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if eval \${$3+:} false; then :
1719 $as_echo_n "(cached) " >&6
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1725 # Is the header compilable?
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1727 $as_echo_n "checking $2 usability... " >&6; }
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1733 if ac_fn_c_try_compile "$LINENO"; then :
1734 ac_header_compiler=yes
1736 ac_header_compiler=no
1738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1740 $as_echo "$ac_header_compiler" >&6; }
1742 # Is the header present?
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1744 $as_echo_n "checking $2 presence... " >&6; }
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1749 if ac_fn_c_try_cpp "$LINENO"; then :
1750 ac_header_preproc=yes
1752 ac_header_preproc=no
1754 rm -f conftest.err conftest.i conftest.$ac_ext
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1756 $as_echo "$ac_header_preproc" >&6; }
1758 # So? What about this header?
1759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1762 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1764 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1768 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1770 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1772 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1774 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1776 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1777 ( $as_echo "## ------------------------------- ##
1778 ## Report this to jeanfi@gmail.com ##
1779 ## ------------------------------- ##"
1780 ) | sed "s/^/$as_me: WARNING: /" >&2
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1788 eval "$3=\$ac_header_compiler"
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 } # ac_fn_c_check_header_mongrel
1798 # ac_fn_c_try_run LINENO
1799 # ----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801 # that executables *can* be run.
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_link"
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>&5
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816 { { case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_try") 2>&5
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; }; }; then :
1828 $as_echo "$as_me: program exited with status $ac_status" >&5
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1832 ac_retval=$ac_status
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1857 if ac_fn_c_try_compile "$LINENO"; then :
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 } # ac_fn_c_check_header_compile
1871 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1872 # -------------------------------------------
1873 # Tests whether TYPE exists after having included INCLUDES, setting cache
1874 # variable VAR accordingly.
1875 ac_fn_c_check_type ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881 $as_echo_n "(cached) " >&6
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1909 if ac_fn_c_try_compile "$LINENO"; then :
1914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 } # ac_fn_c_check_type
1925 # ac_fn_c_check_func LINENO FUNC VAR
1926 # ----------------------------------
1927 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1928 ac_fn_c_check_func ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if eval \${$3+:} false; then :
1934 $as_echo_n "(cached) " >&6
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1938 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1940 #define $2 innocuous_$2
1942 /* System header to define __stub macros and hopefully few prototypes,
1943 which can conflict with char $2 (); below.
1944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1945 <limits.h> exists even on freestanding compilers. */
1948 # include <limits.h>
1950 # include <assert.h>
1955 /* Override any GCC internal prototype to avoid an error.
1956 Use char because int might match the return type of a GCC
1957 builtin and then its argument prototype would still apply. */
1962 /* The GNU C library defines this for functions which it implements
1963 to always fail with ENOSYS. Some functions are actually named
1964 something starting with __ and the normal name is an alias. */
1965 #if defined __stub_$2 || defined __stub___$2
1977 if ac_fn_c_try_link "$LINENO"; then :
1982 rm -f core conftest.err conftest.$ac_objext \
1983 conftest$ac_exeext conftest.$ac_ext
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 } # ac_fn_c_check_func
1991 cat >config.log <<_ACEOF
1992 This file contains any messages produced by compilers while
1993 running configure, to aid debugging if configure makes a mistake.
1995 It was created by psensor $as_me 0.6.2.15, which was
1996 generated by GNU Autoconf 2.68. Invocation command line was
2008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2020 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 test -z "$as_dir" && as_dir=.
2032 $as_echo "PATH: $as_dir"
2048 # Keep a trace of the command line.
2049 # Strip out --no-create and --no-recursion so they do not pile up.
2050 # Strip out --silent because we don't want to record it for future runs.
2051 # Also quote any args containing shell meta-characters.
2052 # Make two passes to allow for proper duplicate-argument suppression.
2056 ac_must_keep_next=false
2062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2064 | -silent | --silent | --silen | --sile | --sil)
2067 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2070 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2072 as_fn_append ac_configure_args1 " '$ac_arg'"
2073 if test $ac_must_keep_next = true; then
2074 ac_must_keep_next=false # Got value, back to normal.
2077 *=* | --config-cache | -C | -disable-* | --disable-* \
2078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2080 | -with-* | --with-* | -without-* | --without-* | --x)
2081 case "$ac_configure_args0 " in
2082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2085 -* ) ac_must_keep_next=true ;;
2088 as_fn_append ac_configure_args " '$ac_arg'"
2093 { ac_configure_args0=; unset ac_configure_args0;}
2094 { ac_configure_args1=; unset ac_configure_args1;}
2096 # When interrupted or exit'd, cleanup temporary files, and complete
2097 # config.log. We remove comments because anyway the quotes in there
2098 # would cause problems or look ugly.
2099 # WARNING: Use '\'' to represent an apostrophe within the trap.
2100 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2101 trap 'exit_status=$?
2102 # Save into config.log some information that might help in debugging.
2106 $as_echo "## ---------------- ##
2107 ## Cache variables. ##
2108 ## ---------------- ##"
2110 # The following way of writing the cache mishandles newlines in values,
2112 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2113 eval ac_val=\$$ac_var
2117 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2118 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2121 _ | IFS | as_nl) ;; #(
2122 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2123 *) { eval $ac_var=; unset $ac_var;} ;;
2128 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2129 *${as_nl}ac_space=\ *)
2131 "s/'\''/'\''\\\\'\'''\''/g;
2132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2135 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2142 $as_echo "## ----------------- ##
2143 ## Output variables. ##
2144 ## ----------------- ##"
2146 for ac_var in $ac_subst_vars
2148 eval ac_val=\$$ac_var
2150 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2152 $as_echo "$ac_var='\''$ac_val'\''"
2156 if test -n "$ac_subst_files"; then
2157 $as_echo "## ------------------- ##
2158 ## File substitutions. ##
2159 ## ------------------- ##"
2161 for ac_var in $ac_subst_files
2163 eval ac_val=\$$ac_var
2165 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2167 $as_echo "$ac_var='\''$ac_val'\''"
2172 if test -s confdefs.h; then
2173 $as_echo "## ----------- ##
2180 test "$ac_signal" != 0 &&
2181 $as_echo "$as_me: caught signal $ac_signal"
2182 $as_echo "$as_me: exit $exit_status"
2184 rm -f core *.core core.conftest.* &&
2185 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2188 for ac_signal in 1 2 13 15; do
2189 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2193 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2194 rm -f -r conftest* confdefs.h
2196 $as_echo "/* confdefs.h */" > confdefs.h
2198 # Predefined preprocessor variables.
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_NAME "$PACKAGE_NAME"
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_STRING "$PACKAGE_STRING"
2216 cat >>confdefs.h <<_ACEOF
2217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_URL "$PACKAGE_URL"
2225 # Let the site file select an alternate cache file if it wants to.
2226 # Prefer an explicitly selected file to automatically selected ones.
2229 if test -n "$CONFIG_SITE"; then
2230 # We do not want a PATH search for config.site.
2231 case $CONFIG_SITE in #((
2232 -*) ac_site_file1=./$CONFIG_SITE;;
2233 */*) ac_site_file1=$CONFIG_SITE;;
2234 *) ac_site_file1=./$CONFIG_SITE;;
2236 elif test "x$prefix" != xNONE; then
2237 ac_site_file1=$prefix/share/config.site
2238 ac_site_file2=$prefix/etc/config.site
2240 ac_site_file1=$ac_default_prefix/share/config.site
2241 ac_site_file2=$ac_default_prefix/etc/config.site
2243 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2245 test "x$ac_site_file" = xNONE && continue
2246 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2248 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2249 sed 's/^/| /' "$ac_site_file" >&5
2251 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2253 as_fn_error $? "failed to load site script $ac_site_file
2254 See \`config.log' for more details" "$LINENO" 5; }
2258 if test -r "$cache_file"; then
2259 # Some versions of bash will fail to source /dev/null (special files
2260 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2261 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2263 $as_echo "$as_me: loading cache $cache_file" >&6;}
2265 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2266 *) . "./$cache_file";;
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2271 $as_echo "$as_me: creating cache $cache_file" >&6;}
2275 gt_needs="$gt_needs "
2276 # Check that the precious variables saved in the cache have kept the same
2278 ac_cache_corrupted=false
2279 for ac_var in $ac_precious_vars; do
2280 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2281 eval ac_new_set=\$ac_env_${ac_var}_set
2282 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2283 eval ac_new_val=\$ac_env_${ac_var}_value
2284 case $ac_old_set,$ac_new_set in
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2287 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2288 ac_cache_corrupted=: ;;
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2291 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2292 ac_cache_corrupted=: ;;
2295 if test "x$ac_old_val" != "x$ac_new_val"; then
2296 # differences in whitespace do not lead to failure.
2297 ac_old_val_w=`echo x $ac_old_val`
2298 ac_new_val_w=`echo x $ac_new_val`
2299 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2301 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2302 ac_cache_corrupted=:
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2305 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2306 eval $ac_var=\$ac_old_val
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2309 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2311 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2314 # Pass precious variables to config.status.
2315 if test "$ac_new_set" = set; then
2317 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2318 *) ac_arg=$ac_var=$ac_new_val ;;
2320 case " $ac_configure_args " in
2321 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2322 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2326 if $ac_cache_corrupted; then
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2330 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2331 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2333 ## -------------------- ##
2334 ## Main body of script. ##
2335 ## -------------------- ##
2338 ac_cpp='$CPP $CPPFLAGS'
2339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2345 am__api_version='1.11'
2348 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2349 if test -f "$ac_dir/install-sh"; then
2351 ac_install_sh="$ac_aux_dir/install-sh -c"
2353 elif test -f "$ac_dir/install.sh"; then
2355 ac_install_sh="$ac_aux_dir/install.sh -c"
2357 elif test -f "$ac_dir/shtool"; then
2359 ac_install_sh="$ac_aux_dir/shtool install -c"
2363 if test -z "$ac_aux_dir"; then
2364 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2367 # These three variables are undocumented and unsupported,
2368 # and are intended to be withdrawn in a future Autoconf release.
2369 # They can cause serious problems if a builder's source tree is in a directory
2370 # whose full name contains unusual characters.
2371 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2372 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2373 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2376 # Find a good install program. We prefer a C program (faster),
2377 # so one script is as good as another. But avoid the broken or
2378 # incompatible versions:
2379 # SysV /etc/install, /usr/sbin/install
2380 # SunOS /usr/etc/install
2381 # IRIX /sbin/install
2383 # AmigaOS /C/install, which installs bootblocks on floppy discs
2384 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2385 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2386 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2387 # OS/2's system install, which has a completely different semantic
2388 # ./install, which can be erroneously created by make from ./install.sh.
2389 # Reject install programs that cannot install multiple files.
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2391 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2392 if test -z "$INSTALL"; then
2393 if ${ac_cv_path_install+:} false; then :
2394 $as_echo_n "(cached) " >&6
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 test -z "$as_dir" && as_dir=.
2401 # Account for people who put trailing slashes in PATH elements.
2402 case $as_dir/ in #((
2403 ./ | .// | /[cC]/* | \
2404 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2405 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2408 # OSF1 and SCO ODT 3.0 have their own names for install.
2409 # Don't use installbsd from OSF since it installs stuff as root
2411 for ac_prog in ginstall scoinst install; do
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2414 if test $ac_prog = install &&
2415 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2416 # AIX install. It has an incompatible calling convention.
2418 elif test $ac_prog = install &&
2419 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2420 # program-specific install script used by HP pwplus--don't use.
2423 rm -rf conftest.one conftest.two conftest.dir
2424 echo one > conftest.one
2425 echo two > conftest.two
2427 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2428 test -s conftest.one && test -s conftest.two &&
2429 test -s conftest.dir/conftest.one &&
2430 test -s conftest.dir/conftest.two
2432 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2445 rm -rf conftest.one conftest.two conftest.dir
2448 if test "${ac_cv_path_install+set}" = set; then
2449 INSTALL=$ac_cv_path_install
2451 # As a last resort, use the slow shell script. Don't cache a
2452 # value for INSTALL within a source directory, because that will
2453 # break other packages using the cache if that directory is
2454 # removed, or if the value is a relative name.
2455 INSTALL=$ac_install_sh
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2459 $as_echo "$INSTALL" >&6; }
2461 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2462 # It thinks the first close brace ends the variable substitution.
2463 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2465 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2467 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2470 $as_echo_n "checking whether build environment is sane... " >&6; }
2473 echo timestamp > conftest.file
2474 # Reject unsafe characters in $srcdir or the absolute working directory
2475 # name. Accept space and tab only in the latter.
2479 *[\\\"\#\$\&\'\`$am_lf]*)
2480 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2483 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2484 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2487 # Do `set' in a subshell so we don't clobber the current shell's
2488 # arguments. Must try -L first in case configure is actually a
2489 # symlink; some systems play weird games with the mod time of symlinks
2490 # (eg FreeBSD returns the mod time of the symlink's containing
2493 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2494 if test "$*" = "X"; then
2496 set X `ls -t "$srcdir/configure" conftest.file`
2499 if test "$*" != "X $srcdir/configure conftest.file" \
2500 && test "$*" != "X conftest.file $srcdir/configure"; then
2502 # If neither matched, then we have a broken ls. This can happen
2503 # if, for instance, CONFIG_SHELL is bash and it inherits a
2504 # broken ls alias from the environment. This has actually
2505 # happened. Such a system could not be considered "sane".
2506 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2507 alias in your environment" "$LINENO" 5
2510 test "$2" = conftest.file
2516 as_fn_error $? "newly created file is older than distributed files!
2517 Check your system clock" "$LINENO" 5
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2520 $as_echo "yes" >&6; }
2521 test "$program_prefix" != NONE &&
2522 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2523 # Use a double $ so make ignores it.
2524 test "$program_suffix" != NONE &&
2525 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2526 # Double any \ or $.
2527 # By default was `s,x,x', remove it if useless.
2528 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2529 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2531 # expand $ac_aux_dir to an absolute path
2532 am_aux_dir=`cd $ac_aux_dir && pwd`
2534 if test x"${MISSING+set}" != xset; then
2537 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2539 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2542 # Use eval to expand $SHELL
2543 if eval "$MISSING --run true"; then
2544 am_missing_run="$MISSING --run "
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2548 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2551 if test x"${install_sh}" != xset; then
2554 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2556 install_sh="\${SHELL} $am_aux_dir/install-sh"
2560 # Installed binaries are usually stripped using `strip' when the user
2561 # run `make install-strip'. However `strip' might not be the right
2562 # tool to use in cross-compilation environments, therefore Automake
2563 # will honor the `STRIP' environment variable to overrule this program.
2564 if test "$cross_compiling" != no; then
2565 if test -n "$ac_tool_prefix"; then
2566 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2567 set dummy ${ac_tool_prefix}strip; ac_word=$2
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569 $as_echo_n "checking for $ac_word... " >&6; }
2570 if ${ac_cv_prog_STRIP+:} false; then :
2571 $as_echo_n "(cached) " >&6
2573 if test -n "$STRIP"; then
2574 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 STRIP=$ac_cv_prog_STRIP
2594 if test -n "$STRIP"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2596 $as_echo "$STRIP" >&6; }
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599 $as_echo "no" >&6; }
2604 if test -z "$ac_cv_prog_STRIP"; then
2606 # Extract the first word of "strip", so it can be a program name with args.
2607 set dummy strip; ac_word=$2
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609 $as_echo_n "checking for $ac_word... " >&6; }
2610 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2611 $as_echo_n "(cached) " >&6
2613 if test -n "$ac_ct_STRIP"; then
2614 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_ac_ct_STRIP="strip"
2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2634 if test -n "$ac_ct_STRIP"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2636 $as_echo "$ac_ct_STRIP" >&6; }
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2642 if test "x$ac_ct_STRIP" = x; then
2645 case $cross_compiling:$ac_tool_warned in
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2649 ac_tool_warned=yes ;;
2654 STRIP="$ac_cv_prog_STRIP"
2658 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2661 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2662 if test -z "$MKDIR_P"; then
2663 if ${ac_cv_path_mkdir+:} false; then :
2664 $as_echo_n "(cached) " >&6
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2670 test -z "$as_dir" && as_dir=.
2671 for ac_prog in mkdir gmkdir; do
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2674 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2675 'mkdir (GNU coreutils) '* | \
2676 'mkdir (coreutils) '* | \
2677 'mkdir (fileutils) '4.1*)
2678 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2688 test -d ./--version && rmdir ./--version
2689 if test "${ac_cv_path_mkdir+set}" = set; then
2690 MKDIR_P="$ac_cv_path_mkdir -p"
2692 # As a last resort, use the slow shell script. Don't cache a
2693 # value for MKDIR_P within a source directory, because that will
2694 # break other packages using the cache if that directory is
2695 # removed, or if the value is a relative name.
2696 MKDIR_P="$ac_install_sh -d"
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2700 $as_echo "$MKDIR_P" >&6; }
2704 [\\/$]* | ?:[\\/]*) ;;
2705 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2708 for ac_prog in gawk mawk nawk awk
2710 # Extract the first word of "$ac_prog", so it can be a program name with args.
2711 set dummy $ac_prog; ac_word=$2
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713 $as_echo_n "checking for $ac_word... " >&6; }
2714 if ${ac_cv_prog_AWK+:} false; then :
2715 $as_echo_n "(cached) " >&6
2717 if test -n "$AWK"; then
2718 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2727 ac_cv_prog_AWK="$ac_prog"
2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 if test -n "$AWK"; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2740 $as_echo "$AWK" >&6; }
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743 $as_echo "no" >&6; }
2747 test -n "$AWK" && break
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2751 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2753 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2754 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2755 $as_echo_n "(cached) " >&6
2757 cat >conftest.make <<\_ACEOF
2760 @echo '@@@%%%=$(MAKE)=@@@%%%'
2762 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2763 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2765 eval ac_cv_prog_make_${ac_make}_set=yes;;
2767 eval ac_cv_prog_make_${ac_make}_set=no;;
2771 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2773 $as_echo "yes" >&6; }
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2778 SET_MAKE="MAKE=${MAKE-make}"
2781 rm -rf .tst 2>/dev/null
2782 mkdir .tst 2>/dev/null
2783 if test -d .tst; then
2788 rmdir .tst 2>/dev/null
2790 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2791 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2792 # is not polluted with repeated "-I."
2793 am__isrc=' -I$(srcdir)'
2794 # test to see if srcdir already configured
2795 if test -f $srcdir/config.status; then
2796 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2800 # test whether we have cygpath
2801 if test -z "$CYGPATH_W"; then
2802 if (cygpath --version) >/dev/null 2>/dev/null; then
2803 CYGPATH_W='cygpath -w'
2810 # Define the identity of the package.
2815 cat >>confdefs.h <<_ACEOF
2816 #define PACKAGE "$PACKAGE"
2820 cat >>confdefs.h <<_ACEOF
2821 #define VERSION "$VERSION"
2824 # Some tools Automake needs.
2826 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2829 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2832 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2835 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2838 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2840 # We need awk for the "check" target. The system "awk" is bad on
2842 # Always define AMTAR for backward compatibility.
2844 AMTAR=${AMTAR-"${am_missing_run}tar"}
2846 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2854 ac_config_headers="$ac_config_headers config.h"
2857 # Checks for programs.
2859 ac_cpp='$CPP $CPPFLAGS'
2860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2863 if test -n "$ac_tool_prefix"; then
2864 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2865 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if ${ac_cv_prog_CC+:} false; then :
2869 $as_echo_n "(cached) " >&6
2871 if test -n "$CC"; then
2872 ac_cv_prog_CC="$CC" # Let the user override the test.
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 if test -n "$CC"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2894 $as_echo "$CC" >&6; }
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2902 if test -z "$ac_cv_prog_CC"; then
2904 # Extract the first word of "gcc", so it can be a program name with args.
2905 set dummy gcc; ac_word=$2
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907 $as_echo_n "checking for $ac_word... " >&6; }
2908 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2909 $as_echo_n "(cached) " >&6
2911 if test -n "$ac_ct_CC"; then
2912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2921 ac_cv_prog_ac_ct_CC="gcc"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2932 if test -n "$ac_ct_CC"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2934 $as_echo "$ac_ct_CC" >&6; }
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2940 if test "x$ac_ct_CC" = x; then
2943 case $cross_compiling:$ac_tool_warned in
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2947 ac_tool_warned=yes ;;
2955 if test -z "$CC"; then
2956 if test -n "$ac_tool_prefix"; then
2957 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2958 set dummy ${ac_tool_prefix}cc; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if ${ac_cv_prog_CC+:} false; then :
2962 $as_echo_n "(cached) " >&6
2964 if test -n "$CC"; then
2965 ac_cv_prog_CC="$CC" # Let the user override the test.
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974 ac_cv_prog_CC="${ac_tool_prefix}cc"
2975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 if test -n "$CC"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2987 $as_echo "$CC" >&6; }
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2996 if test -z "$CC"; then
2997 # Extract the first word of "cc", so it can be a program name with args.
2998 set dummy cc; ac_word=$2
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000 $as_echo_n "checking for $ac_word... " >&6; }
3001 if ${ac_cv_prog_CC+:} false; then :
3002 $as_echo_n "(cached) " >&6
3004 if test -n "$CC"; then
3005 ac_cv_prog_CC="$CC" # Let the user override the test.
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3016 ac_prog_rejected=yes
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 if test $ac_prog_rejected = yes; then
3028 # We found a bogon in the path, so make sure we never use it.
3029 set dummy $ac_cv_prog_CC
3031 if test $# != 0; then
3032 # We chose a different compiler from the bogus one.
3033 # However, it has the same basename, so the bogon will be chosen
3034 # first if we set CC to just the basename; use the full file name.
3036 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3042 if test -n "$CC"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3044 $as_echo "$CC" >&6; }
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3052 if test -z "$CC"; then
3053 if test -n "$ac_tool_prefix"; then
3054 for ac_prog in cl.exe
3056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if ${ac_cv_prog_CC+:} false; then :
3061 $as_echo_n "(cached) " >&6
3063 if test -n "$CC"; then
3064 ac_cv_prog_CC="$CC" # Let the user override the test.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 if test -n "$CC"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3086 $as_echo "$CC" >&6; }
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3093 test -n "$CC" && break
3096 if test -z "$CC"; then
3098 for ac_prog in cl.exe
3100 # Extract the first word of "$ac_prog", so it can be a program name with args.
3101 set dummy $ac_prog; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3105 $as_echo_n "(cached) " >&6
3107 if test -n "$ac_ct_CC"; then
3108 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3117 ac_cv_prog_ac_ct_CC="$ac_prog"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3128 if test -n "$ac_ct_CC"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3130 $as_echo "$ac_ct_CC" >&6; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3137 test -n "$ac_ct_CC" && break
3140 if test "x$ac_ct_CC" = x; then
3143 case $cross_compiling:$ac_tool_warned in
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3147 ac_tool_warned=yes ;;
3156 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158 as_fn_error $? "no acceptable C compiler found in \$PATH
3159 See \`config.log' for more details" "$LINENO" 5; }
3161 # Provide some information about the compiler.
3162 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3165 for ac_option in --version -v -V -qversion; do
3166 { { ac_try="$ac_compiler $ac_option >&5"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172 $as_echo "$ac_try_echo"; } >&5
3173 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3175 if test -s conftest.err; then
3177 ... rest of stderr output deleted ...
3178 10q' conftest.err >conftest.er1
3179 cat conftest.er1 >&5
3181 rm -f conftest.er1 conftest.err
3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }
3186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187 /* end confdefs.h. */
3197 ac_clean_files_save=$ac_clean_files
3198 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3199 # Try to create an executable without -o first, disregard a.out.
3200 # It will help us diagnose broken compilers, and finding out an intuition
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3203 $as_echo_n "checking whether the C compiler works... " >&6; }
3204 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3206 # The possible output files:
3207 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3210 for ac_file in $ac_files
3213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3214 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3219 if { { ac_try="$ac_link_default"
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3225 $as_echo "$ac_try_echo"; } >&5
3226 (eval "$ac_link_default") 2>&5
3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229 test $ac_status = 0; }; then :
3230 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3231 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3232 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3233 # so that the user can short-circuit this test for compilers unknown to
3235 for ac_file in $ac_files ''
3237 test -f "$ac_file" || continue
3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3242 # We found the default executable, but exeext='' is most
3246 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3248 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3250 # We set ac_cv_exeext here because the later test for it is not
3251 # safe: cross compilers may not add the suffix if given an `-o'
3252 # argument, so we may need to know it at that point already.
3253 # Even if this section looks crufty: it has the advantage of
3260 test "$ac_cv_exeext" = no && ac_cv_exeext=
3265 if test -z "$ac_file"; then :
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268 $as_echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3273 as_fn_error 77 "C compiler cannot create executables
3274 See \`config.log' for more details" "$LINENO" 5; }
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277 $as_echo "yes" >&6; }
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3280 $as_echo_n "checking for C compiler default output file name... " >&6; }
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3282 $as_echo "$ac_file" >&6; }
3283 ac_exeext=$ac_cv_exeext
3285 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3286 ac_clean_files=$ac_clean_files_save
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3288 $as_echo_n "checking for suffix of executables... " >&6; }
3289 if { { ac_try="$ac_link"
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295 $as_echo "$ac_try_echo"; } >&5
3296 (eval "$ac_link") 2>&5
3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299 test $ac_status = 0; }; then :
3300 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3301 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3302 # work properly (i.e., refer to `conftest.exe'), while it won't with
3304 for ac_file in conftest.exe conftest conftest.*; do
3305 test -f "$ac_file" || continue
3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3308 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3317 See \`config.log' for more details" "$LINENO" 5; }
3319 rm -f conftest conftest$ac_cv_exeext
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3321 $as_echo "$ac_cv_exeext" >&6; }
3323 rm -f conftest.$ac_ext
3324 EXEEXT=$ac_cv_exeext
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3332 FILE *f = fopen ("conftest.out", "w");
3333 return ferror (f) || fclose (f) != 0;
3339 ac_clean_files="$ac_clean_files conftest.out"
3340 # Check that the compiler produces executables we can run. If not, either
3341 # the compiler is broken, or we cross compile.
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3343 $as_echo_n "checking whether we are cross compiling... " >&6; }
3344 if test "$cross_compiling" != yes; then
3345 { { ac_try="$ac_link"
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351 $as_echo "$ac_try_echo"; } >&5
3352 (eval "$ac_link") 2>&5
3354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355 test $ac_status = 0; }
3356 if { ac_try='./conftest$ac_cv_exeext'
3357 { { case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363 (eval "$ac_try") 2>&5
3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366 test $ac_status = 0; }; }; then
3369 if test "$cross_compiling" = maybe; then
3372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374 as_fn_error $? "cannot run C compiled programs.
3375 If you meant to cross compile, use \`--host'.
3376 See \`config.log' for more details" "$LINENO" 5; }
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3381 $as_echo "$cross_compiling" >&6; }
3383 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3384 ac_clean_files=$ac_clean_files_save
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3386 $as_echo_n "checking for suffix of object files... " >&6; }
3387 if ${ac_cv_objext+:} false; then :
3388 $as_echo_n "(cached) " >&6
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3401 rm -f conftest.o conftest.obj
3402 if { { ac_try="$ac_compile"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_compile") 2>&5
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }; then :
3413 for ac_file in conftest.o conftest.obj conftest.*; do
3414 test -f "$ac_file" || continue;
3416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3417 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3422 $as_echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427 as_fn_error $? "cannot compute suffix of object files: cannot compile
3428 See \`config.log' for more details" "$LINENO" 5; }
3430 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3433 $as_echo "$ac_cv_objext" >&6; }
3434 OBJEXT=$ac_cv_objext
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3437 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3438 if ${ac_cv_c_compiler_gnu+:} false; then :
3439 $as_echo_n "(cached) " >&6
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3455 if ac_fn_c_try_compile "$LINENO"; then :
3460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3461 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3465 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3466 if test $ac_compiler_gnu = yes; then
3471 ac_test_CFLAGS=${CFLAGS+set}
3472 ac_save_CFLAGS=$CFLAGS
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3474 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3475 if ${ac_cv_prog_cc_g+:} false; then :
3476 $as_echo_n "(cached) " >&6
3478 ac_save_c_werror_flag=$ac_c_werror_flag
3479 ac_c_werror_flag=yes
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3493 if ac_fn_c_try_compile "$LINENO"; then :
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3508 if ac_fn_c_try_compile "$LINENO"; then :
3511 ac_c_werror_flag=$ac_save_c_werror_flag
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3524 if ac_fn_c_try_compile "$LINENO"; then :
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 ac_c_werror_flag=$ac_save_c_werror_flag
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3535 $as_echo "$ac_cv_prog_cc_g" >&6; }
3536 if test "$ac_test_CFLAGS" = set; then
3537 CFLAGS=$ac_save_CFLAGS
3538 elif test $ac_cv_prog_cc_g = yes; then
3539 if test "$GCC" = yes; then
3545 if test "$GCC" = yes; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3552 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3553 if ${ac_cv_prog_cc_c89+:} false; then :
3554 $as_echo_n "(cached) " >&6
3556 ac_cv_prog_cc_c89=no
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3562 #include <sys/types.h>
3563 #include <sys/stat.h>
3564 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3565 struct buf { int x; };
3566 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3567 static char *e (p, i)
3573 static char *f (char * (*g) (char **, int), char **p, ...)
3578 s = g (p, va_arg (v,int));
3583 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3584 function prototypes and stuff, but not '\xHH' hex character constants.
3585 These don't provoke an error unfortunately, instead are silently treated
3586 as 'x'. The following induces an error, until -std is added to get
3587 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3588 array size at least. It's necessary to write '\x00'==0 to get something
3589 that's true only with -std. */
3590 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3592 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3593 inside strings and character constants. */
3595 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3597 int test (int i, double x);
3598 struct s1 {int (*f) (int a);};
3599 struct s2 {int (*f) (double a);};
3600 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3606 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3611 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3612 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3614 CC="$ac_save_CC $ac_arg"
3615 if ac_fn_c_try_compile "$LINENO"; then :
3616 ac_cv_prog_cc_c89=$ac_arg
3618 rm -f core conftest.err conftest.$ac_objext
3619 test "x$ac_cv_prog_cc_c89" != "xno" && break
3621 rm -f conftest.$ac_ext
3626 case "x$ac_cv_prog_cc_c89" in
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3629 $as_echo "none needed" >&6; } ;;
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3632 $as_echo "unsupported" >&6; } ;;
3634 CC="$CC $ac_cv_prog_cc_c89"
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3636 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3638 if test "x$ac_cv_prog_cc_c89" != xno; then :
3643 ac_cpp='$CPP $CPPFLAGS'
3644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647 DEPDIR="${am__leading_dot}deps"
3649 ac_config_commands="$ac_config_commands depfiles"
3652 am_make=${MAKE-make}
3653 cat > confinc << 'END'
3655 @echo this is the am__doit target
3658 # If we don't find an include directive, just comment out the code.
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3660 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3664 # First try GNU make style include.
3665 echo "include confinc" > confmf
3666 # Ignore all kinds of additional output from `make'.
3667 case `$am_make -s -f confmf 2> /dev/null` in #(
3668 *the\ am__doit\ target*)
3674 # Now try BSD make style include.
3675 if test "$am__include" = "#"; then
3676 echo '.include "confinc"' > confmf
3677 case `$am_make -s -f confmf 2> /dev/null` in #(
3678 *the\ am__doit\ target*)
3679 am__include=.include
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3688 $as_echo "$_am_result" >&6; }
3689 rm -f confinc confmf
3691 # Check whether --enable-dependency-tracking was given.
3692 if test "${enable_dependency_tracking+set}" = set; then :
3693 enableval=$enable_dependency_tracking;
3696 if test "x$enable_dependency_tracking" != xno; then
3697 am_depcomp="$ac_aux_dir/depcomp"
3700 if test "x$enable_dependency_tracking" != xno; then
3710 depcc="$CC" am_compiler_list=
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3713 $as_echo_n "checking dependency style of $depcc... " >&6; }
3714 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3715 $as_echo_n "(cached) " >&6
3717 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3718 # We make a subdir and do the tests there. Otherwise we can end up
3719 # making bogus files that we don't know about and never remove. For
3720 # instance it was reported that on HP-UX the gcc test will end up
3721 # making a dummy file named `D' -- because `-MD' means `put the output
3724 # Copy depcomp to subdir because otherwise we won't find it if we're
3725 # using a relative directory.
3726 cp "$am_depcomp" conftest.dir
3728 # We will build objects and dependencies in a subdirectory because
3729 # it helps to detect inapplicable dependency modes. For instance
3730 # both Tru64's cc and ICC support -MD to output dependencies as a
3731 # side effect of compilation, but ICC will put the dependencies in
3732 # the current directory while Tru64 will put them in the object
3736 am_cv_CC_dependencies_compiler_type=none
3737 if test "$am_compiler_list" = ""; then
3738 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3741 case " $depcc " in #(
3742 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3745 for depmode in $am_compiler_list; do
3746 # Setup a source with many dependencies, because some compilers
3747 # like to wrap large dependency lists on column 80 (with \), and
3748 # we should not choose a depcomp mode which is confused by this.
3750 # We need to recreate these files for each test, as the compiler may
3751 # overwrite some of them when testing with obscure command lines.
3752 # This happens at least with the AIX C compiler.
3754 for i in 1 2 3 4 5 6; do
3755 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3756 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3757 # Solaris 8's {/usr,}/bin/sh.
3758 touch sub/conftst$i.h
3760 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3762 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3763 # mode. It turns out that the SunPro C++ compiler does not properly
3764 # handle `-M -o', and we need to detect this. Also, some Intel
3765 # versions had trouble with output in subdirs
3766 am__obj=sub/conftest.${OBJEXT-o}
3767 am__minus_obj="-o $am__obj"
3770 # This depmode causes a compiler race in universal mode.
3771 test "$am__universal" = false || continue
3774 # after this tag, mechanisms are not by side-effect, so they'll
3775 # only be used when explicitly requested
3776 if test "x$enable_dependency_tracking" = xyes; then
3782 msvisualcpp | msvcmsys)
3783 # This compiler won't grok `-c -o', but also, the minuso test has
3784 # not run yet. These depmodes are late enough in the game, and
3785 # so weak that their functioning should not be impacted.
3786 am__obj=conftest.${OBJEXT-o}
3791 if depmode=$depmode \
3792 source=sub/conftest.c object=$am__obj \
3793 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3794 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3795 >/dev/null 2>conftest.err &&
3796 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3797 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3798 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3799 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3800 # icc doesn't choke on unknown options, it will just issue warnings
3801 # or remarks (even with -Werror). So we grep stderr for any message
3802 # that says an option was ignored or not supported.
3803 # When given -MP, icc 7.0 and 7.1 complain thusly:
3804 # icc: Command line warning: ignoring option '-M'; no argument required
3805 # The diagnosis changed in icc 8.0:
3806 # icc: Command line remark: option '-MP' not supported
3807 if (grep 'ignoring option' conftest.err ||
3808 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3809 am_cv_CC_dependencies_compiler_type=$depmode
3818 am_cv_CC_dependencies_compiler_type=none
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3823 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3824 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3827 test "x$enable_dependency_tracking" != xno \
3828 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3830 am__fastdepCC_FALSE='#'
3832 am__fastdepCC_TRUE='#'
3833 am__fastdepCC_FALSE=
3837 if test "x$CC" != xcc; then
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3839 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3842 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3844 set dummy $CC; ac_cc=`$as_echo "$2" |
3845 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3846 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3847 $as_echo_n "(cached) " >&6
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3860 # Make sure it works both with $CC and with simple cc.
3861 # We do the test twice because some compilers refuse to overwrite an
3862 # existing .o file with -o, though they will create one.
3863 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3865 if { { case "(($ac_try" in
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870 $as_echo "$ac_try_echo"; } >&5
3871 (eval "$ac_try") 2>&5
3873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874 test $ac_status = 0; } &&
3875 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 $as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_try") 2>&5
3883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; };
3886 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3887 if test "x$CC" != xcc; then
3888 # Test first that cc exists at all.
3889 if { ac_try='cc -c conftest.$ac_ext >&5'
3890 { { case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3895 $as_echo "$ac_try_echo"; } >&5
3896 (eval "$ac_try") 2>&5
3898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3899 test $ac_status = 0; }; }; then
3900 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3902 if { { case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908 (eval "$ac_try") 2>&5
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; } &&
3912 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917 $as_echo "$ac_try_echo"; } >&5
3918 (eval "$ac_try") 2>&5
3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; };
3926 # cc exists but doesn't like -o.
3927 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3932 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3934 rm -f core conftest*
3937 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3939 $as_echo "yes" >&6; }
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3944 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3948 # FIXME: we rely on the cache variable name because
3949 # there is no other way.
3951 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3952 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3953 if test "$am_t" != yes; then
3954 # Losing compiler, so override with the script.
3955 # FIXME: It is wrong to rewrite CC.
3956 # But if we don't then we get into trouble of one sort or another.
3957 # A longer-term fix would be to have automake use am__CC in this case,
3958 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3959 CC="$am_aux_dir/compile $CC"
3965 if test -n "$ac_tool_prefix"; then
3966 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3967 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3969 $as_echo_n "checking for $ac_word... " >&6; }
3970 if ${ac_cv_prog_RANLIB+:} false; then :
3971 $as_echo_n "(cached) " >&6
3973 if test -n "$RANLIB"; then
3974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 test -z "$as_dir" && as_dir=.
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3983 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 RANLIB=$ac_cv_prog_RANLIB
3994 if test -n "$RANLIB"; then
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3996 $as_echo "$RANLIB" >&6; }
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999 $as_echo "no" >&6; }
4004 if test -z "$ac_cv_prog_RANLIB"; then
4005 ac_ct_RANLIB=$RANLIB
4006 # Extract the first word of "ranlib", so it can be a program name with args.
4007 set dummy ranlib; ac_word=$2
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009 $as_echo_n "checking for $ac_word... " >&6; }
4010 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4011 $as_echo_n "(cached) " >&6
4013 if test -n "$ac_ct_RANLIB"; then
4014 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4023 ac_cv_prog_ac_ct_RANLIB="ranlib"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4034 if test -n "$ac_ct_RANLIB"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4036 $as_echo "$ac_ct_RANLIB" >&6; }
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039 $as_echo "no" >&6; }
4042 if test "x$ac_ct_RANLIB" = x; then
4045 case $cross_compiling:$ac_tool_warned in
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4049 ac_tool_warned=yes ;;
4051 RANLIB=$ac_ct_RANLIB
4054 RANLIB="$ac_cv_prog_RANLIB"
4058 # Checks for header files.
4061 ac_cpp='$CPP $CPPFLAGS'
4062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4066 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4067 # On Suns, sometimes $CPP names a directory.
4068 if test -n "$CPP" && test -d "$CPP"; then
4071 if test -z "$CPP"; then
4072 if ${ac_cv_prog_CPP+:} false; then :
4073 $as_echo_n "(cached) " >&6
4075 # Double quotes because CPP needs to be expanded
4076 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4079 for ac_c_preproc_warn_flag in '' yes
4081 # Use a header file that comes with gcc, so configuring glibc
4082 # with a fresh cross-compiler works.
4083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4084 # <limits.h> exists even on freestanding compilers.
4085 # On the NeXT, cc -E runs the code through the compiler's parser,
4086 # not just through cpp. "Syntax error" is here to catch this case.
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4090 # include <limits.h>
4092 # include <assert.h>
4096 if ac_fn_c_try_cpp "$LINENO"; then :
4099 # Broken: fails on valid input.
4102 rm -f conftest.err conftest.i conftest.$ac_ext
4104 # OK, works on sane cases. Now check whether nonexistent headers
4105 # can be detected and how.
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108 #include <ac_nonexistent.h>
4110 if ac_fn_c_try_cpp "$LINENO"; then :
4111 # Broken: success on invalid input.
4114 # Passes both tests.
4118 rm -f conftest.err conftest.i conftest.$ac_ext
4121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4122 rm -f conftest.i conftest.err conftest.$ac_ext
4123 if $ac_preproc_ok; then :
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4136 $as_echo "$CPP" >&6; }
4138 for ac_c_preproc_warn_flag in '' yes
4140 # Use a header file that comes with gcc, so configuring glibc
4141 # with a fresh cross-compiler works.
4142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4143 # <limits.h> exists even on freestanding compilers.
4144 # On the NeXT, cc -E runs the code through the compiler's parser,
4145 # not just through cpp. "Syntax error" is here to catch this case.
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4149 # include <limits.h>
4151 # include <assert.h>
4155 if ac_fn_c_try_cpp "$LINENO"; then :
4158 # Broken: fails on valid input.
4161 rm -f conftest.err conftest.i conftest.$ac_ext
4163 # OK, works on sane cases. Now check whether nonexistent headers
4164 # can be detected and how.
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4167 #include <ac_nonexistent.h>
4169 if ac_fn_c_try_cpp "$LINENO"; then :
4170 # Broken: success on invalid input.
4173 # Passes both tests.
4177 rm -f conftest.err conftest.i conftest.$ac_ext
4180 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4181 rm -f conftest.i conftest.err conftest.$ac_ext
4182 if $ac_preproc_ok; then :
4185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4187 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4188 See \`config.log' for more details" "$LINENO" 5; }
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4199 $as_echo_n "checking for X... " >&6; }
4202 # Check whether --with-x was given.
4203 if test "${with_x+set}" = set; then :
4207 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4208 if test "x$with_x" = xno; then
4209 # The user explicitly disabled X.
4212 case $x_includes,$x_libraries in #(
4213 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4214 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4215 $as_echo_n "(cached) " >&6
4217 # One or both of the vars are not set, and there is no cached value.
4218 ac_x_includes=no ac_x_libraries=no
4219 rm -f -r conftest.dir
4220 if mkdir conftest.dir; then
4222 cat >Imakefile <<'_ACEOF'
4224 @echo incroot='${INCROOT}'
4226 @echo usrlibdir='${USRLIBDIR}'
4228 @echo libdir='${LIBDIR}'
4230 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4231 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4232 for ac_var in incroot usrlibdir libdir; do
4233 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4235 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4236 for ac_extension in a so sl dylib la dll; do
4237 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4238 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4239 ac_im_usrlibdir=$ac_im_libdir; break
4242 # Screen out bogus values from the imake configuration. They are
4243 # bogus both because they are the default anyway, and because
4244 # using them would break gcc on systems where it needs fixed includes.
4245 case $ac_im_incroot in
4246 /usr/include) ac_x_includes= ;;
4247 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4249 case $ac_im_usrlibdir in
4250 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4251 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4255 rm -f -r conftest.dir
4258 # Standard set of common directories for X headers.
4259 # Check X11 before X11Rn because it is often a symlink to the current release.
4273 /usr/local/X11/include
4274 /usr/local/X11R7/include
4275 /usr/local/X11R6/include
4276 /usr/local/X11R5/include
4277 /usr/local/X11R4/include
4279 /usr/local/include/X11
4280 /usr/local/include/X11R7
4281 /usr/local/include/X11R6
4282 /usr/local/include/X11R5
4283 /usr/local/include/X11R4
4287 /usr/XFree86/include/X11
4291 /usr/unsupported/include
4293 /usr/local/x11r5/include
4294 /usr/lpp/Xamples/include
4296 /usr/openwin/include
4297 /usr/openwin/share/include'
4299 if test "$ac_x_includes" = no; then
4300 # Guess where to find include files, by looking for Xlib.h.
4301 # First, try using that file with no special directory specified.
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304 #include <X11/Xlib.h>
4306 if ac_fn_c_try_cpp "$LINENO"; then :
4307 # We can compile using X headers with no special include directory.
4310 for ac_dir in $ac_x_header_dirs; do
4311 if test -r "$ac_dir/X11/Xlib.h"; then
4312 ac_x_includes=$ac_dir
4317 rm -f conftest.err conftest.i conftest.$ac_ext
4318 fi # $ac_x_includes = no
4320 if test "$ac_x_libraries" = no; then
4321 # Check for the libraries.
4322 # See if we find them without any special options.
4323 # Don't add to $LIBS permanently.
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4328 #include <X11/Xlib.h>
4337 if ac_fn_c_try_link "$LINENO"; then :
4339 # We can link X programs with no special library path.
4343 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4345 # Don't even attempt the hair of trying to link an X program!
4346 for ac_extension in a so sl dylib la dll; do
4347 if test -r "$ac_dir/libX11.$ac_extension"; then
4348 ac_x_libraries=$ac_dir
4354 rm -f core conftest.err conftest.$ac_objext \
4355 conftest$ac_exeext conftest.$ac_ext
4356 fi # $ac_x_libraries = no
4358 case $ac_x_includes,$ac_x_libraries in #(
4360 # Didn't find X, or a directory has "'" in its name.
4361 ac_cv_have_x="have_x=no";; #(
4363 # Record where we found X for the cache.
4364 ac_cv_have_x="have_x=yes\
4365 ac_x_includes='$ac_x_includes'\
4366 ac_x_libraries='$ac_x_libraries'"
4372 eval "$ac_cv_have_x"
4375 if test "$have_x" != yes; then
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4377 $as_echo "$have_x" >&6; }
4380 # If each of the values was on the command line, it overrides each guess.
4381 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4382 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4383 # Update the cache value to reflect the command line values.
4384 ac_cv_have_x="have_x=yes\
4385 ac_x_includes='$x_includes'\
4386 ac_x_libraries='$x_libraries'"
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4388 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4392 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4393 if ${ac_cv_path_GREP+:} false; then :
4394 $as_echo_n "(cached) " >&6
4396 if test -z "$GREP"; then
4397 ac_path_GREP_found=false
4398 # Loop through the user's path and test for each of PROGNAME-LIST
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4403 test -z "$as_dir" && as_dir=.
4404 for ac_prog in grep ggrep; do
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4407 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4408 # Check for GNU ac_path_GREP and select it if it is found.
4409 # Check for GNU $ac_path_GREP
4410 case `"$ac_path_GREP" --version 2>&1` in
4412 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4415 $as_echo_n 0123456789 >"conftest.in"
4418 cat "conftest.in" "conftest.in" >"conftest.tmp"
4419 mv "conftest.tmp" "conftest.in"
4420 cp "conftest.in" "conftest.nl"
4421 $as_echo 'GREP' >> "conftest.nl"
4422 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4424 as_fn_arith $ac_count + 1 && ac_count=$as_val
4425 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4426 # Best one so far, save it but keep looking for a better one
4427 ac_cv_path_GREP="$ac_path_GREP"
4428 ac_path_GREP_max=$ac_count
4430 # 10*(2^10) chars as input seems more than enough
4431 test $ac_count -gt 10 && break
4433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4436 $ac_path_GREP_found && break 3
4441 if test -z "$ac_cv_path_GREP"; then
4442 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4445 ac_cv_path_GREP=$GREP
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4450 $as_echo "$ac_cv_path_GREP" >&6; }
4451 GREP="$ac_cv_path_GREP"
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4455 $as_echo_n "checking for egrep... " >&6; }
4456 if ${ac_cv_path_EGREP+:} false; then :
4457 $as_echo_n "(cached) " >&6
4459 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4460 then ac_cv_path_EGREP="$GREP -E"
4462 if test -z "$EGREP"; then
4463 ac_path_EGREP_found=false
4464 # Loop through the user's path and test for each of PROGNAME-LIST
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4469 test -z "$as_dir" && as_dir=.
4470 for ac_prog in egrep; do
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4473 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4474 # Check for GNU ac_path_EGREP and select it if it is found.
4475 # Check for GNU $ac_path_EGREP
4476 case `"$ac_path_EGREP" --version 2>&1` in
4478 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4481 $as_echo_n 0123456789 >"conftest.in"
4484 cat "conftest.in" "conftest.in" >"conftest.tmp"
4485 mv "conftest.tmp" "conftest.in"
4486 cp "conftest.in" "conftest.nl"
4487 $as_echo 'EGREP' >> "conftest.nl"
4488 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4489 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4490 as_fn_arith $ac_count + 1 && ac_count=$as_val
4491 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4492 # Best one so far, save it but keep looking for a better one
4493 ac_cv_path_EGREP="$ac_path_EGREP"
4494 ac_path_EGREP_max=$ac_count
4496 # 10*(2^10) chars as input seems more than enough
4497 test $ac_count -gt 10 && break
4499 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4502 $ac_path_EGREP_found && break 3
4507 if test -z "$ac_cv_path_EGREP"; then
4508 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4511 ac_cv_path_EGREP=$EGREP
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4517 $as_echo "$ac_cv_path_EGREP" >&6; }
4518 EGREP="$ac_cv_path_EGREP"
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4522 $as_echo_n "checking for ANSI C header files... " >&6; }
4523 if ${ac_cv_header_stdc+:} false; then :
4524 $as_echo_n "(cached) " >&6
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4541 if ac_fn_c_try_compile "$LINENO"; then :
4542 ac_cv_header_stdc=yes
4544 ac_cv_header_stdc=no
4546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548 if test $ac_cv_header_stdc = yes; then
4549 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4556 $EGREP "memchr" >/dev/null 2>&1; then :
4559 ac_cv_header_stdc=no
4565 if test $ac_cv_header_stdc = yes; then
4566 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4573 $EGREP "free" >/dev/null 2>&1; then :
4576 ac_cv_header_stdc=no
4582 if test $ac_cv_header_stdc = yes; then
4583 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4584 if test "$cross_compiling" = yes; then :
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4591 #if ((' ' & 0x0FF) == 0x020)
4592 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4593 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4595 # define ISLOWER(c) \
4596 (('a' <= (c) && (c) <= 'i') \
4597 || ('j' <= (c) && (c) <= 'r') \
4598 || ('s' <= (c) && (c) <= 'z'))
4599 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4602 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4607 for (i = 0; i < 256; i++)
4608 if (XOR (islower (i), ISLOWER (i))
4609 || toupper (i) != TOUPPER (i))
4614 if ac_fn_c_try_run "$LINENO"; then :
4617 ac_cv_header_stdc=no
4619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4620 conftest.$ac_objext conftest.beam conftest.$ac_ext
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4626 $as_echo "$ac_cv_header_stdc" >&6; }
4627 if test $ac_cv_header_stdc = yes; then
4629 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4633 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4634 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4635 inttypes.h stdint.h unistd.h
4637 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4638 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4640 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4641 cat >>confdefs.h <<_ACEOF
4642 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4650 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 sys/sysinfo.h
4652 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4653 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4654 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4655 cat >>confdefs.h <<_ACEOF
4656 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4664 # Checks for typedefs, structures, and compiler characteristics.
4665 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4666 if test "x$ac_cv_type_size_t" = xyes; then :
4670 cat >>confdefs.h <<_ACEOF
4671 #define size_t unsigned int
4676 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4677 if test "x$ac_cv_type_ssize_t" = xyes; then :
4681 cat >>confdefs.h <<_ACEOF
4688 # Checks for library functions.
4689 for ac_header in stdlib.h
4691 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4692 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4693 cat >>confdefs.h <<_ACEOF
4694 #define HAVE_STDLIB_H 1
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4702 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4703 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
4704 $as_echo_n "(cached) " >&6
4706 if test "$cross_compiling" = yes; then :
4707 ac_cv_func_malloc_0_nonnull=no
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4711 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4712 # include <stdlib.h>
4720 return ! malloc (0);
4725 if ac_fn_c_try_run "$LINENO"; then :
4726 ac_cv_func_malloc_0_nonnull=yes
4728 ac_cv_func_malloc_0_nonnull=no
4730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4731 conftest.$ac_objext conftest.beam conftest.$ac_ext
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4736 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4737 if test $ac_cv_func_malloc_0_nonnull = yes; then :
4739 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4742 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4744 case " $LIBOBJS " in
4745 *" malloc.$ac_objext "* ) ;;
4746 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4751 $as_echo "#define malloc rpl_malloc" >>confdefs.h
4756 for ac_header in stdlib.h
4758 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4759 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4760 cat >>confdefs.h <<_ACEOF
4761 #define HAVE_STDLIB_H 1
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4769 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
4770 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
4771 $as_echo_n "(cached) " >&6
4773 if test "$cross_compiling" = yes; then :
4774 ac_cv_func_realloc_0_nonnull=no
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4779 # include <stdlib.h>
4787 return ! realloc (0, 0);
4792 if ac_fn_c_try_run "$LINENO"; then :
4793 ac_cv_func_realloc_0_nonnull=yes
4795 ac_cv_func_realloc_0_nonnull=no
4797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4798 conftest.$ac_objext conftest.beam conftest.$ac_ext
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4803 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
4804 if test $ac_cv_func_realloc_0_nonnull = yes; then :
4806 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
4809 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
4811 case " $LIBOBJS " in
4812 *" realloc.$ac_objext "* ) ;;
4813 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4818 $as_echo "#define realloc rpl_realloc" >>confdefs.h
4823 for ac_func in gettimeofday memmove socket strdup strtol
4825 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4826 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4827 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4828 cat >>confdefs.h <<_ACEOF
4829 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4837 ac_fn_c_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo"
4838 if test "x$ac_cv_func_sysinfo" = xyes; then :
4840 $as_echo "#define HAVE_SYSINFO_FCT 1" >>confdefs.h
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"sysinfo function not present\"" >&5
4844 $as_echo "$as_me: WARNING: \"sysinfo function not present\"" >&2;}
4847 if test -n "$SYSINFO_FCT"; then
4849 SYSINFO_FCT_FALSE='#'
4851 SYSINFO_FCT_TRUE='#'
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4859 $as_echo_n "checking whether NLS is requested... " >&6; }
4860 # Check whether --enable-nls was given.
4861 if test "${enable_nls+set}" = set; then :
4862 enableval=$enable_nls; USE_NLS=$enableval
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4868 $as_echo "$USE_NLS" >&6; }
4873 GETTEXT_MACRO_VERSION=0.18
4878 # Prepare PATH_SEPARATOR.
4879 # The user is always right.
4880 if test "${PATH_SEPARATOR+set}" != set; then
4881 echo "#! /bin/sh" >conf$$.sh
4882 echo "exit 0" >>conf$$.sh
4884 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4892 # Find out how to test for executable files. Don't use a zero-byte file,
4893 # as systems may use methods other than mode bits to determine executability.
4894 cat >conf$$.file <<_ASEOF
4898 chmod +x conf$$.file
4899 if test -x conf$$.file >/dev/null 2>&1; then
4900 ac_executable_p="test -x"
4902 ac_executable_p="test -f"
4906 # Extract the first word of "msgfmt", so it can be a program name with args.
4907 set dummy msgfmt; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if ${ac_cv_path_MSGFMT+:} false; then :
4911 $as_echo_n "(cached) " >&6
4915 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4918 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4919 for ac_dir in $PATH; do
4921 test -z "$ac_dir" && ac_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4924 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4925 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4926 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4927 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4934 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4938 MSGFMT="$ac_cv_path_MSGFMT"
4939 if test "$MSGFMT" != ":"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4941 $as_echo "$MSGFMT" >&6; }
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4947 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4948 set dummy gmsgfmt; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_path_GMSGFMT+:} false; then :
4952 $as_echo_n "(cached) " >&6
4956 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4966 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4978 GMSGFMT=$ac_cv_path_GMSGFMT
4979 if test -n "$GMSGFMT"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4981 $as_echo "$GMSGFMT" >&6; }
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4989 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4990 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4991 *) MSGFMT_015=$MSGFMT ;;
4994 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4995 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4996 *) GMSGFMT_015=$GMSGFMT ;;
5001 # Prepare PATH_SEPARATOR.
5002 # The user is always right.
5003 if test "${PATH_SEPARATOR+set}" != set; then
5004 echo "#! /bin/sh" >conf$$.sh
5005 echo "exit 0" >>conf$$.sh
5007 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5015 # Find out how to test for executable files. Don't use a zero-byte file,
5016 # as systems may use methods other than mode bits to determine executability.
5017 cat >conf$$.file <<_ASEOF
5021 chmod +x conf$$.file
5022 if test -x conf$$.file >/dev/null 2>&1; then
5023 ac_executable_p="test -x"
5025 ac_executable_p="test -f"
5029 # Extract the first word of "xgettext", so it can be a program name with args.
5030 set dummy xgettext; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if ${ac_cv_path_XGETTEXT+:} false; then :
5034 $as_echo_n "(cached) " >&6
5038 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5041 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5042 for ac_dir in $PATH; do
5044 test -z "$ac_dir" && ac_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5047 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5048 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5049 (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
5050 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5057 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5061 XGETTEXT="$ac_cv_path_XGETTEXT"
5062 if test "$XGETTEXT" != ":"; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5064 $as_echo "$XGETTEXT" >&6; }
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5072 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5073 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5074 *) XGETTEXT_015=$XGETTEXT ;;
5079 # Prepare PATH_SEPARATOR.
5080 # The user is always right.
5081 if test "${PATH_SEPARATOR+set}" != set; then
5082 echo "#! /bin/sh" >conf$$.sh
5083 echo "exit 0" >>conf$$.sh
5085 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5093 # Find out how to test for executable files. Don't use a zero-byte file,
5094 # as systems may use methods other than mode bits to determine executability.
5095 cat >conf$$.file <<_ASEOF
5099 chmod +x conf$$.file
5100 if test -x conf$$.file >/dev/null 2>&1; then
5101 ac_executable_p="test -x"
5103 ac_executable_p="test -f"
5107 # Extract the first word of "msgmerge", so it can be a program name with args.
5108 set dummy msgmerge; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if ${ac_cv_path_MSGMERGE+:} false; then :
5112 $as_echo_n "(cached) " >&6
5116 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5119 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5120 for ac_dir in $PATH; do
5122 test -z "$ac_dir" && ac_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5125 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5126 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5127 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5134 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5138 MSGMERGE="$ac_cv_path_MSGMERGE"
5139 if test "$MSGMERGE" != ":"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5141 $as_echo "$MSGMERGE" >&6; }
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5148 test -n "$localedir" || localedir='${datadir}/locale'
5151 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5154 ac_config_commands="$ac_config_commands po-directories"
5158 if test "X$prefix" = "XNONE"; then
5159 acl_final_prefix="$ac_default_prefix"
5161 acl_final_prefix="$prefix"
5163 if test "X$exec_prefix" = "XNONE"; then
5164 acl_final_exec_prefix='${prefix}'
5166 acl_final_exec_prefix="$exec_prefix"
5168 acl_save_prefix="$prefix"
5169 prefix="$acl_final_prefix"
5170 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5171 prefix="$acl_save_prefix"
5173 # Make sure we can run config.sub.
5174 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5175 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5178 $as_echo_n "checking build system type... " >&6; }
5179 if ${ac_cv_build+:} false; then :
5180 $as_echo_n "(cached) " >&6
5182 ac_build_alias=$build_alias
5183 test "x$ac_build_alias" = x &&
5184 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5185 test "x$ac_build_alias" = x &&
5186 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5187 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5188 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5192 $as_echo "$ac_cv_build" >&6; }
5193 case $ac_cv_build in
5195 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5198 ac_save_IFS=$IFS; IFS='-'
5204 # Remember, the first character of IFS is used to create $*,
5205 # except with old shells:
5208 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5212 $as_echo_n "checking host system type... " >&6; }
5213 if ${ac_cv_host+:} false; then :
5214 $as_echo_n "(cached) " >&6
5216 if test "x$host_alias" = x; then
5217 ac_cv_host=$ac_cv_build
5219 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5220 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5225 $as_echo "$ac_cv_host" >&6; }
5228 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5231 ac_save_IFS=$IFS; IFS='-'
5237 # Remember, the first character of IFS is used to create $*,
5238 # except with old shells:
5241 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5245 # Check whether --with-gnu-ld was given.
5246 if test "${with_gnu_ld+set}" = set; then :
5247 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5252 # Prepare PATH_SEPARATOR.
5253 # The user is always right.
5254 if test "${PATH_SEPARATOR+set}" != set; then
5255 echo "#! /bin/sh" >conf$$.sh
5256 echo "exit 0" >>conf$$.sh
5258 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5266 if test "$GCC" = yes; then
5267 # Check if gcc -print-prog-name=ld gives a path.
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5269 $as_echo_n "checking for ld used by GCC... " >&6; }
5272 # gcc leaves a trailing carriage return which upsets mingw
5273 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5275 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5278 # Accept absolute paths.
5279 [\\/]* | [A-Za-z]:[\\/]*)
5280 re_direlt='/[^/][^/]*/\.\./'
5281 # Canonicalize the path of ld
5282 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5283 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5284 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5286 test -z "$LD" && LD="$ac_prog"
5289 # If it fails, then pretend we aren't using GCC.
5293 # If it is relative, then search for the first ld in PATH.
5297 elif test "$with_gnu_ld" = yes; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5299 $as_echo_n "checking for GNU ld... " >&6; }
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5302 $as_echo_n "checking for non-GNU ld... " >&6; }
5304 if ${acl_cv_path_LD+:} false; then :
5305 $as_echo_n "(cached) " >&6
5307 if test -z "$LD"; then
5308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5309 for ac_dir in $PATH; do
5310 test -z "$ac_dir" && ac_dir=.
5311 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5312 acl_cv_path_LD="$ac_dir/$ac_prog"
5313 # Check to see if the program is GNU ld. I'd rather use --version,
5314 # but apparently some GNU ld's only accept -v.
5315 # Break only if it was the GNU/non-GNU ld that we prefer.
5316 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5317 *GNU* | *'with BFD'*)
5318 test "$with_gnu_ld" != no && break ;;
5320 test "$with_gnu_ld" != yes && break ;;
5326 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5330 LD="$acl_cv_path_LD"
5331 if test -n "$LD"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5333 $as_echo "$LD" >&6; }
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5338 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5340 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5341 if ${acl_cv_prog_gnu_ld+:} false; then :
5342 $as_echo_n "(cached) " >&6
5344 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5345 case `$LD -v 2>&1 </dev/null` in
5346 *GNU* | *'with BFD'*)
5347 acl_cv_prog_gnu_ld=yes ;;
5349 acl_cv_prog_gnu_ld=no ;;
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5353 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5354 with_gnu_ld=$acl_cv_prog_gnu_ld
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5360 $as_echo_n "checking for shared library run path origin... " >&6; }
5361 if ${acl_cv_rpath+:} false; then :
5362 $as_echo_n "(cached) " >&6
5365 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5366 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5373 $as_echo "$acl_cv_rpath" >&6; }
5375 acl_libext="$acl_cv_libext"
5376 acl_shlibext="$acl_cv_shlibext"
5377 acl_libname_spec="$acl_cv_libname_spec"
5378 acl_library_names_spec="$acl_cv_library_names_spec"
5379 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5380 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5381 acl_hardcode_direct="$acl_cv_hardcode_direct"
5382 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5383 # Check whether --enable-rpath was given.
5384 if test "${enable_rpath+set}" = set; then :
5385 enableval=$enable_rpath; :
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5398 $as_echo_n "checking for 64-bit host... " >&6; }
5399 if ${gl_cv_solaris_64bit+:} false; then :
5400 $as_echo_n "(cached) " >&6
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5411 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5412 gl_cv_solaris_64bit=yes
5414 gl_cv_solaris_64bit=no
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5421 $as_echo "$gl_cv_solaris_64bit" >&6; }
5422 if test $gl_cv_solaris_64bit = yes; then
5423 acl_libdirstem=lib/64
5425 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5426 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5431 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5432 if test -n "$searchpath"; then
5433 acl_save_IFS="${IFS= }"; IFS=":"
5434 for searchdir in $searchpath; do
5435 if test -d "$searchdir"; then
5436 case "$searchdir" in
5437 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5439 # Better ignore directories of this form. They are misleading.
5441 *) searchdir=`cd "$searchdir" && pwd`
5442 case "$searchdir" in
5443 */lib64 ) acl_libdirstem=lib64 ;;
5452 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5467 acl_save_prefix="$prefix"
5468 prefix="$acl_final_prefix"
5469 acl_save_exec_prefix="$exec_prefix"
5470 exec_prefix="$acl_final_exec_prefix"
5472 eval additional_includedir=\"$includedir\"
5473 eval additional_libdir=\"$libdir\"
5475 exec_prefix="$acl_save_exec_prefix"
5476 prefix="$acl_save_prefix"
5479 # Check whether --with-libiconv-prefix was given.
5480 if test "${with_libiconv_prefix+set}" = set; then :
5481 withval=$with_libiconv_prefix;
5482 if test "X$withval" = "Xno"; then
5485 if test "X$withval" = "X"; then
5487 acl_save_prefix="$prefix"
5488 prefix="$acl_final_prefix"
5489 acl_save_exec_prefix="$exec_prefix"
5490 exec_prefix="$acl_final_exec_prefix"
5492 eval additional_includedir=\"$includedir\"
5493 eval additional_libdir=\"$libdir\"
5495 exec_prefix="$acl_save_exec_prefix"
5496 prefix="$acl_save_prefix"
5499 additional_includedir="$withval/include"
5500 additional_libdir="$withval/$acl_libdirstem"
5501 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5502 && ! test -d "$withval/$acl_libdirstem"; then
5503 additional_libdir="$withval/$acl_libdirstem2"
5517 names_already_handled=
5518 names_next_round='iconv '
5519 while test -n "$names_next_round"; do
5520 names_this_round="$names_next_round"
5522 for name in $names_this_round; do
5524 for n in $names_already_handled; do
5525 if test "$n" = "$name"; then
5530 if test -z "$already_handled"; then
5531 names_already_handled="$names_already_handled $name"
5532 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5533 eval value=\"\$HAVE_LIB$uppername\"
5534 if test -n "$value"; then
5535 if test "$value" = yes; then
5536 eval value=\"\$LIB$uppername\"
5537 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5538 eval value=\"\$LTLIB$uppername\"
5539 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5548 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5549 if test -n "$acl_shlibext"; then
5550 shrext=".$acl_shlibext" # typically: shrext=.so
5554 if test $use_additional = yes; then
5555 dir="$additional_libdir"
5556 if test -n "$acl_shlibext"; then
5557 if test -f "$dir/$libname$shrext"; then
5559 found_so="$dir/$libname$shrext"
5561 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5562 ver=`(cd "$dir" && \
5563 for f in "$libname$shrext".*; do echo "$f"; done \
5564 | sed -e "s,^$libname$shrext\\\\.,," \
5565 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5566 | sed 1q ) 2>/dev/null`
5567 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5569 found_so="$dir/$libname$shrext.$ver"
5572 eval library_names=\"$acl_library_names_spec\"
5573 for f in $library_names; do
5574 if test -f "$dir/$f"; then
5583 if test "X$found_dir" = "X"; then
5584 if test -f "$dir/$libname.$acl_libext"; then
5586 found_a="$dir/$libname.$acl_libext"
5589 if test "X$found_dir" != "X"; then
5590 if test -f "$dir/$libname.la"; then
5591 found_la="$dir/$libname.la"
5595 if test "X$found_dir" = "X"; then
5596 for x in $LDFLAGS $LTLIBICONV; do
5598 acl_save_prefix="$prefix"
5599 prefix="$acl_final_prefix"
5600 acl_save_exec_prefix="$exec_prefix"
5601 exec_prefix="$acl_final_exec_prefix"
5603 exec_prefix="$acl_save_exec_prefix"
5604 prefix="$acl_save_prefix"
5608 dir=`echo "X$x" | sed -e 's/^X-L//'`
5609 if test -n "$acl_shlibext"; then
5610 if test -f "$dir/$libname$shrext"; then
5612 found_so="$dir/$libname$shrext"
5614 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5615 ver=`(cd "$dir" && \
5616 for f in "$libname$shrext".*; do echo "$f"; done \
5617 | sed -e "s,^$libname$shrext\\\\.,," \
5618 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5619 | sed 1q ) 2>/dev/null`
5620 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5622 found_so="$dir/$libname$shrext.$ver"
5625 eval library_names=\"$acl_library_names_spec\"
5626 for f in $library_names; do
5627 if test -f "$dir/$f"; then
5636 if test "X$found_dir" = "X"; then
5637 if test -f "$dir/$libname.$acl_libext"; then
5639 found_a="$dir/$libname.$acl_libext"
5642 if test "X$found_dir" != "X"; then
5643 if test -f "$dir/$libname.la"; then
5644 found_la="$dir/$libname.la"
5649 if test "X$found_dir" != "X"; then
5654 if test "X$found_dir" != "X"; then
5655 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5656 if test "X$found_so" != "X"; then
5657 if test "$enable_rpath" = no \
5658 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5659 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5660 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5663 for x in $ltrpathdirs; do
5664 if test "X$x" = "X$found_dir"; then
5669 if test -z "$haveit"; then
5670 ltrpathdirs="$ltrpathdirs $found_dir"
5672 if test "$acl_hardcode_direct" = yes; then
5673 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5675 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5676 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5678 for x in $rpathdirs; do
5679 if test "X$x" = "X$found_dir"; then
5684 if test -z "$haveit"; then
5685 rpathdirs="$rpathdirs $found_dir"
5689 for x in $LDFLAGS $LIBICONV; do
5691 acl_save_prefix="$prefix"
5692 prefix="$acl_final_prefix"
5693 acl_save_exec_prefix="$exec_prefix"
5694 exec_prefix="$acl_final_exec_prefix"
5696 exec_prefix="$acl_save_exec_prefix"
5697 prefix="$acl_save_prefix"
5699 if test "X$x" = "X-L$found_dir"; then
5704 if test -z "$haveit"; then
5705 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5707 if test "$acl_hardcode_minus_L" != no; then
5708 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5710 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5716 if test "X$found_a" != "X"; then
5717 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5719 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5722 additional_includedir=
5723 case "$found_dir" in
5724 */$acl_libdirstem | */$acl_libdirstem/)
5725 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5726 if test "$name" = 'iconv'; then
5727 LIBICONV_PREFIX="$basedir"
5729 additional_includedir="$basedir/include"
5731 */$acl_libdirstem2 | */$acl_libdirstem2/)
5732 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5733 if test "$name" = 'iconv'; then
5734 LIBICONV_PREFIX="$basedir"
5736 additional_includedir="$basedir/include"
5739 if test "X$additional_includedir" != "X"; then
5740 if test "X$additional_includedir" != "X/usr/include"; then
5742 if test "X$additional_includedir" = "X/usr/local/include"; then
5743 if test -n "$GCC"; then
5745 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5749 if test -z "$haveit"; then
5750 for x in $CPPFLAGS $INCICONV; do
5752 acl_save_prefix="$prefix"
5753 prefix="$acl_final_prefix"
5754 acl_save_exec_prefix="$exec_prefix"
5755 exec_prefix="$acl_final_exec_prefix"
5757 exec_prefix="$acl_save_exec_prefix"
5758 prefix="$acl_save_prefix"
5760 if test "X$x" = "X-I$additional_includedir"; then
5765 if test -z "$haveit"; then
5766 if test -d "$additional_includedir"; then
5767 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5773 if test -n "$found_la"; then
5774 save_libdir="$libdir"
5776 */* | *\\*) . "$found_la" ;;
5777 *) . "./$found_la" ;;
5779 libdir="$save_libdir"
5780 for dep in $dependency_libs; do
5783 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5784 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5785 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5787 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5788 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5789 if test -n "$GCC"; then
5791 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5795 if test -z "$haveit"; then
5797 for x in $LDFLAGS $LIBICONV; do
5799 acl_save_prefix="$prefix"
5800 prefix="$acl_final_prefix"
5801 acl_save_exec_prefix="$exec_prefix"
5802 exec_prefix="$acl_final_exec_prefix"
5804 exec_prefix="$acl_save_exec_prefix"
5805 prefix="$acl_save_prefix"
5807 if test "X$x" = "X-L$additional_libdir"; then
5812 if test -z "$haveit"; then
5813 if test -d "$additional_libdir"; then
5814 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5818 for x in $LDFLAGS $LTLIBICONV; do
5820 acl_save_prefix="$prefix"
5821 prefix="$acl_final_prefix"
5822 acl_save_exec_prefix="$exec_prefix"
5823 exec_prefix="$acl_final_exec_prefix"
5825 exec_prefix="$acl_save_exec_prefix"
5826 prefix="$acl_save_prefix"
5828 if test "X$x" = "X-L$additional_libdir"; then
5833 if test -z "$haveit"; then
5834 if test -d "$additional_libdir"; then
5835 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5842 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5843 if test "$enable_rpath" != no; then
5845 for x in $rpathdirs; do
5846 if test "X$x" = "X$dir"; then
5851 if test -z "$haveit"; then
5852 rpathdirs="$rpathdirs $dir"
5855 for x in $ltrpathdirs; do
5856 if test "X$x" = "X$dir"; then
5861 if test -z "$haveit"; then
5862 ltrpathdirs="$ltrpathdirs $dir"
5867 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5870 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5873 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5874 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5880 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5881 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5887 if test "X$rpathdirs" != "X"; then
5888 if test -n "$acl_hardcode_libdir_separator"; then
5890 for found_dir in $rpathdirs; do
5891 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5893 acl_save_libdir="$libdir"
5895 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5896 libdir="$acl_save_libdir"
5897 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5899 for found_dir in $rpathdirs; do
5900 acl_save_libdir="$libdir"
5902 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5903 libdir="$acl_save_libdir"
5904 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5908 if test "X$ltrpathdirs" != "X"; then
5909 for found_dir in $ltrpathdirs; do
5910 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5945 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5946 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5947 $as_echo_n "(cached) " >&6
5949 gt_save_LIBS="$LIBS"
5950 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953 #include <CoreFoundation/CFPreferences.h>
5957 CFPreferencesCopyAppValue(NULL, NULL)
5962 if ac_fn_c_try_link "$LINENO"; then :
5963 gt_cv_func_CFPreferencesCopyAppValue=yes
5965 gt_cv_func_CFPreferencesCopyAppValue=no
5967 rm -f core conftest.err conftest.$ac_objext \
5968 conftest$ac_exeext conftest.$ac_ext
5969 LIBS="$gt_save_LIBS"
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5972 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5973 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5975 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5979 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5980 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5981 $as_echo_n "(cached) " >&6
5983 gt_save_LIBS="$LIBS"
5984 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5987 #include <CoreFoundation/CFLocale.h>
5991 CFLocaleCopyCurrent();
5996 if ac_fn_c_try_link "$LINENO"; then :
5997 gt_cv_func_CFLocaleCopyCurrent=yes
5999 gt_cv_func_CFLocaleCopyCurrent=no
6001 rm -f core conftest.err conftest.$ac_objext \
6002 conftest$ac_exeext conftest.$ac_ext
6003 LIBS="$gt_save_LIBS"
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6006 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6007 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6009 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6013 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6014 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6026 case " $gt_needs " in
6027 *" need-formatstring-macros "*) gt_api_version=3 ;;
6028 *" need-ngettext "*) gt_api_version=2 ;;
6029 *) gt_api_version=1 ;;
6031 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6032 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6034 if test "$USE_NLS" = "yes"; then
6035 gt_use_preinstalled_gnugettext=no
6038 if test $gt_api_version -ge 3; then
6039 gt_revision_test_code='
6040 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6041 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6043 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6046 gt_revision_test_code=
6048 if test $gt_api_version -ge 2; then
6049 gt_expression_test_code=' + * ngettext ("", "", 0)'
6051 gt_expression_test_code=
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6055 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6056 if eval \${$gt_func_gnugettext_libc+:} false; then :
6057 $as_echo_n "(cached) " >&6
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6061 #include <libintl.h>
6062 $gt_revision_test_code
6063 extern int _nl_msg_cat_cntr;
6064 extern int *_nl_domain_bindings;
6068 bindtextdomain ("", "");
6069 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6074 if ac_fn_c_try_link "$LINENO"; then :
6075 eval "$gt_func_gnugettext_libc=yes"
6077 eval "$gt_func_gnugettext_libc=no"
6079 rm -f core conftest.err conftest.$ac_objext \
6080 conftest$ac_exeext conftest.$ac_ext
6082 eval ac_res=\$$gt_func_gnugettext_libc
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6084 $as_echo "$ac_res" >&6; }
6086 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6092 am_save_CPPFLAGS="$CPPFLAGS"
6094 for element in $INCICONV; do
6096 for x in $CPPFLAGS; do
6098 acl_save_prefix="$prefix"
6099 prefix="$acl_final_prefix"
6100 acl_save_exec_prefix="$exec_prefix"
6101 exec_prefix="$acl_final_exec_prefix"
6103 exec_prefix="$acl_save_exec_prefix"
6104 prefix="$acl_save_prefix"
6106 if test "X$x" = "X$element"; then
6111 if test -z "$haveit"; then
6112 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6118 $as_echo_n "checking for iconv... " >&6; }
6119 if ${am_cv_func_iconv+:} false; then :
6120 $as_echo_n "(cached) " >&6
6123 am_cv_func_iconv="no, consider installing GNU libiconv"
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6132 iconv_t cd = iconv_open("","");
6133 iconv(cd,NULL,NULL,NULL,NULL);
6139 if ac_fn_c_try_link "$LINENO"; then :
6140 am_cv_func_iconv=yes
6142 rm -f core conftest.err conftest.$ac_objext \
6143 conftest$ac_exeext conftest.$ac_ext
6144 if test "$am_cv_func_iconv" != yes; then
6145 am_save_LIBS="$LIBS"
6146 LIBS="$LIBS $LIBICONV"
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6154 iconv_t cd = iconv_open("","");
6155 iconv(cd,NULL,NULL,NULL,NULL);
6161 if ac_fn_c_try_link "$LINENO"; then :
6163 am_cv_func_iconv=yes
6165 rm -f core conftest.err conftest.$ac_objext \
6166 conftest$ac_exeext conftest.$ac_ext
6167 LIBS="$am_save_LIBS"
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6172 $as_echo "$am_cv_func_iconv" >&6; }
6173 if test "$am_cv_func_iconv" = yes; then
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6175 $as_echo_n "checking for working iconv... " >&6; }
6176 if ${am_cv_func_iconv_works+:} false; then :
6177 $as_echo_n "(cached) " >&6
6180 am_save_LIBS="$LIBS"
6181 if test $am_cv_lib_iconv = yes; then
6182 LIBS="$LIBS $LIBICONV"
6184 if test "$cross_compiling" = yes; then :
6186 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6187 *) am_cv_func_iconv_works="guessing yes" ;;
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6197 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6200 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6201 if (cd_utf8_to_88591 != (iconv_t)(-1))
6203 static const char input[] = "\342\202\254"; /* EURO SIGN */
6205 const char *inptr = input;
6206 size_t inbytesleft = strlen (input);
6208 size_t outbytesleft = sizeof (buf);
6209 size_t res = iconv (cd_utf8_to_88591,
6210 (char **) &inptr, &inbytesleft,
6211 &outptr, &outbytesleft);
6216 /* Test against Solaris 10 bug: Failures are not distinguishable from
6217 successful returns. */
6219 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6220 if (cd_ascii_to_88591 != (iconv_t)(-1))
6222 static const char input[] = "\263";
6224 const char *inptr = input;
6225 size_t inbytesleft = strlen (input);
6227 size_t outbytesleft = sizeof (buf);
6228 size_t res = iconv (cd_ascii_to_88591,
6229 (char **) &inptr, &inbytesleft,
6230 &outptr, &outbytesleft);
6235 #if 0 /* This bug could be worked around by the caller. */
6236 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6238 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6239 if (cd_88591_to_utf8 != (iconv_t)(-1))
6241 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6243 const char *inptr = input;
6244 size_t inbytesleft = strlen (input);
6246 size_t outbytesleft = sizeof (buf);
6247 size_t res = iconv (cd_88591_to_utf8,
6248 (char **) &inptr, &inbytesleft,
6249 &outptr, &outbytesleft);
6255 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6257 if (/* Try standardized names. */
6258 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6259 /* Try IRIX, OSF/1 names. */
6260 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6261 /* Try AIX names. */
6262 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6263 /* Try HP-UX names. */
6264 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6269 if ac_fn_c_try_run "$LINENO"; then :
6270 am_cv_func_iconv_works=yes
6272 am_cv_func_iconv_works=no
6274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6275 conftest.$ac_objext conftest.beam conftest.$ac_ext
6278 LIBS="$am_save_LIBS"
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6282 $as_echo "$am_cv_func_iconv_works" >&6; }
6283 case "$am_cv_func_iconv_works" in
6284 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6285 *) am_func_iconv=yes ;;
6288 am_func_iconv=no am_cv_lib_iconv=no
6290 if test "$am_func_iconv" = yes; then
6292 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6295 if test "$am_cv_lib_iconv" = yes; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6297 $as_echo_n "checking how to link with libiconv... " >&6; }
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6299 $as_echo "$LIBICONV" >&6; }
6301 CPPFLAGS="$am_save_CPPFLAGS"
6318 acl_save_prefix="$prefix"
6319 prefix="$acl_final_prefix"
6320 acl_save_exec_prefix="$exec_prefix"
6321 exec_prefix="$acl_final_exec_prefix"
6323 eval additional_includedir=\"$includedir\"
6324 eval additional_libdir=\"$libdir\"
6326 exec_prefix="$acl_save_exec_prefix"
6327 prefix="$acl_save_prefix"
6330 # Check whether --with-libintl-prefix was given.
6331 if test "${with_libintl_prefix+set}" = set; then :
6332 withval=$with_libintl_prefix;
6333 if test "X$withval" = "Xno"; then
6336 if test "X$withval" = "X"; then
6338 acl_save_prefix="$prefix"
6339 prefix="$acl_final_prefix"
6340 acl_save_exec_prefix="$exec_prefix"
6341 exec_prefix="$acl_final_exec_prefix"
6343 eval additional_includedir=\"$includedir\"
6344 eval additional_libdir=\"$libdir\"
6346 exec_prefix="$acl_save_exec_prefix"
6347 prefix="$acl_save_prefix"
6350 additional_includedir="$withval/include"
6351 additional_libdir="$withval/$acl_libdirstem"
6352 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6353 && ! test -d "$withval/$acl_libdirstem"; then
6354 additional_libdir="$withval/$acl_libdirstem2"
6368 names_already_handled=
6369 names_next_round='intl '
6370 while test -n "$names_next_round"; do
6371 names_this_round="$names_next_round"
6373 for name in $names_this_round; do
6375 for n in $names_already_handled; do
6376 if test "$n" = "$name"; then
6381 if test -z "$already_handled"; then
6382 names_already_handled="$names_already_handled $name"
6383 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6384 eval value=\"\$HAVE_LIB$uppername\"
6385 if test -n "$value"; then
6386 if test "$value" = yes; then
6387 eval value=\"\$LIB$uppername\"
6388 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6389 eval value=\"\$LTLIB$uppername\"
6390 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6399 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6400 if test -n "$acl_shlibext"; then
6401 shrext=".$acl_shlibext" # typically: shrext=.so
6405 if test $use_additional = yes; then
6406 dir="$additional_libdir"
6407 if test -n "$acl_shlibext"; then
6408 if test -f "$dir/$libname$shrext"; then
6410 found_so="$dir/$libname$shrext"
6412 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6413 ver=`(cd "$dir" && \
6414 for f in "$libname$shrext".*; do echo "$f"; done \
6415 | sed -e "s,^$libname$shrext\\\\.,," \
6416 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6417 | sed 1q ) 2>/dev/null`
6418 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6420 found_so="$dir/$libname$shrext.$ver"
6423 eval library_names=\"$acl_library_names_spec\"
6424 for f in $library_names; do
6425 if test -f "$dir/$f"; then
6434 if test "X$found_dir" = "X"; then
6435 if test -f "$dir/$libname.$acl_libext"; then
6437 found_a="$dir/$libname.$acl_libext"
6440 if test "X$found_dir" != "X"; then
6441 if test -f "$dir/$libname.la"; then
6442 found_la="$dir/$libname.la"
6446 if test "X$found_dir" = "X"; then
6447 for x in $LDFLAGS $LTLIBINTL; do
6449 acl_save_prefix="$prefix"
6450 prefix="$acl_final_prefix"
6451 acl_save_exec_prefix="$exec_prefix"
6452 exec_prefix="$acl_final_exec_prefix"
6454 exec_prefix="$acl_save_exec_prefix"
6455 prefix="$acl_save_prefix"
6459 dir=`echo "X$x" | sed -e 's/^X-L//'`
6460 if test -n "$acl_shlibext"; then
6461 if test -f "$dir/$libname$shrext"; then
6463 found_so="$dir/$libname$shrext"
6465 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6466 ver=`(cd "$dir" && \
6467 for f in "$libname$shrext".*; do echo "$f"; done \
6468 | sed -e "s,^$libname$shrext\\\\.,," \
6469 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6470 | sed 1q ) 2>/dev/null`
6471 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6473 found_so="$dir/$libname$shrext.$ver"
6476 eval library_names=\"$acl_library_names_spec\"
6477 for f in $library_names; do
6478 if test -f "$dir/$f"; then
6487 if test "X$found_dir" = "X"; then
6488 if test -f "$dir/$libname.$acl_libext"; then
6490 found_a="$dir/$libname.$acl_libext"
6493 if test "X$found_dir" != "X"; then
6494 if test -f "$dir/$libname.la"; then
6495 found_la="$dir/$libname.la"
6500 if test "X$found_dir" != "X"; then
6505 if test "X$found_dir" != "X"; then
6506 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6507 if test "X$found_so" != "X"; then
6508 if test "$enable_rpath" = no \
6509 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6510 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6511 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6514 for x in $ltrpathdirs; do
6515 if test "X$x" = "X$found_dir"; then
6520 if test -z "$haveit"; then
6521 ltrpathdirs="$ltrpathdirs $found_dir"
6523 if test "$acl_hardcode_direct" = yes; then
6524 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6526 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6527 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6529 for x in $rpathdirs; do
6530 if test "X$x" = "X$found_dir"; then
6535 if test -z "$haveit"; then
6536 rpathdirs="$rpathdirs $found_dir"
6540 for x in $LDFLAGS $LIBINTL; do
6542 acl_save_prefix="$prefix"
6543 prefix="$acl_final_prefix"
6544 acl_save_exec_prefix="$exec_prefix"
6545 exec_prefix="$acl_final_exec_prefix"
6547 exec_prefix="$acl_save_exec_prefix"
6548 prefix="$acl_save_prefix"
6550 if test "X$x" = "X-L$found_dir"; then
6555 if test -z "$haveit"; then
6556 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6558 if test "$acl_hardcode_minus_L" != no; then
6559 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6561 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6567 if test "X$found_a" != "X"; then
6568 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6570 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6573 additional_includedir=
6574 case "$found_dir" in
6575 */$acl_libdirstem | */$acl_libdirstem/)
6576 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6577 if test "$name" = 'intl'; then
6578 LIBINTL_PREFIX="$basedir"
6580 additional_includedir="$basedir/include"
6582 */$acl_libdirstem2 | */$acl_libdirstem2/)
6583 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6584 if test "$name" = 'intl'; then
6585 LIBINTL_PREFIX="$basedir"
6587 additional_includedir="$basedir/include"
6590 if test "X$additional_includedir" != "X"; then
6591 if test "X$additional_includedir" != "X/usr/include"; then
6593 if test "X$additional_includedir" = "X/usr/local/include"; then
6594 if test -n "$GCC"; then
6596 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6600 if test -z "$haveit"; then
6601 for x in $CPPFLAGS $INCINTL; do
6603 acl_save_prefix="$prefix"
6604 prefix="$acl_final_prefix"
6605 acl_save_exec_prefix="$exec_prefix"
6606 exec_prefix="$acl_final_exec_prefix"
6608 exec_prefix="$acl_save_exec_prefix"
6609 prefix="$acl_save_prefix"
6611 if test "X$x" = "X-I$additional_includedir"; then
6616 if test -z "$haveit"; then
6617 if test -d "$additional_includedir"; then
6618 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6624 if test -n "$found_la"; then
6625 save_libdir="$libdir"
6627 */* | *\\*) . "$found_la" ;;
6628 *) . "./$found_la" ;;
6630 libdir="$save_libdir"
6631 for dep in $dependency_libs; do
6634 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6635 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6636 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6638 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6639 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6640 if test -n "$GCC"; then
6642 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6646 if test -z "$haveit"; then
6648 for x in $LDFLAGS $LIBINTL; do
6650 acl_save_prefix="$prefix"
6651 prefix="$acl_final_prefix"
6652 acl_save_exec_prefix="$exec_prefix"
6653 exec_prefix="$acl_final_exec_prefix"
6655 exec_prefix="$acl_save_exec_prefix"
6656 prefix="$acl_save_prefix"
6658 if test "X$x" = "X-L$additional_libdir"; then
6663 if test -z "$haveit"; then
6664 if test -d "$additional_libdir"; then
6665 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6669 for x in $LDFLAGS $LTLIBINTL; do
6671 acl_save_prefix="$prefix"
6672 prefix="$acl_final_prefix"
6673 acl_save_exec_prefix="$exec_prefix"
6674 exec_prefix="$acl_final_exec_prefix"
6676 exec_prefix="$acl_save_exec_prefix"
6677 prefix="$acl_save_prefix"
6679 if test "X$x" = "X-L$additional_libdir"; then
6684 if test -z "$haveit"; then
6685 if test -d "$additional_libdir"; then
6686 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6693 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6694 if test "$enable_rpath" != no; then
6696 for x in $rpathdirs; do
6697 if test "X$x" = "X$dir"; then
6702 if test -z "$haveit"; then
6703 rpathdirs="$rpathdirs $dir"
6706 for x in $ltrpathdirs; do
6707 if test "X$x" = "X$dir"; then
6712 if test -z "$haveit"; then
6713 ltrpathdirs="$ltrpathdirs $dir"
6718 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6721 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6724 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6725 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6731 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6732 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6738 if test "X$rpathdirs" != "X"; then
6739 if test -n "$acl_hardcode_libdir_separator"; then
6741 for found_dir in $rpathdirs; do
6742 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6744 acl_save_libdir="$libdir"
6746 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6747 libdir="$acl_save_libdir"
6748 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6750 for found_dir in $rpathdirs; do
6751 acl_save_libdir="$libdir"
6753 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6754 libdir="$acl_save_libdir"
6755 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6759 if test "X$ltrpathdirs" != "X"; then
6760 for found_dir in $ltrpathdirs; do
6761 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6771 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6772 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6773 $as_echo_n "(cached) " >&6
6775 gt_save_CPPFLAGS="$CPPFLAGS"
6776 CPPFLAGS="$CPPFLAGS $INCINTL"
6777 gt_save_LIBS="$LIBS"
6778 LIBS="$LIBS $LIBINTL"
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781 #include <libintl.h>
6782 $gt_revision_test_code
6783 extern int _nl_msg_cat_cntr;
6788 const char *_nl_expand_alias (const char *);
6792 bindtextdomain ("", "");
6793 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6798 if ac_fn_c_try_link "$LINENO"; then :
6799 eval "$gt_func_gnugettext_libintl=yes"
6801 eval "$gt_func_gnugettext_libintl=no"
6803 rm -f core conftest.err conftest.$ac_objext \
6804 conftest$ac_exeext conftest.$ac_ext
6805 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6806 LIBS="$LIBS $LIBICONV"
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h. */
6809 #include <libintl.h>
6810 $gt_revision_test_code
6811 extern int _nl_msg_cat_cntr;
6816 const char *_nl_expand_alias (const char *);
6820 bindtextdomain ("", "");
6821 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6826 if ac_fn_c_try_link "$LINENO"; then :
6827 LIBINTL="$LIBINTL $LIBICONV"
6828 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6829 eval "$gt_func_gnugettext_libintl=yes"
6832 rm -f core conftest.err conftest.$ac_objext \
6833 conftest$ac_exeext conftest.$ac_ext
6835 CPPFLAGS="$gt_save_CPPFLAGS"
6836 LIBS="$gt_save_LIBS"
6838 eval ac_res=\$$gt_func_gnugettext_libintl
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6840 $as_echo "$ac_res" >&6; }
6843 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6844 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6845 && test "$PACKAGE" != gettext-runtime \
6846 && test "$PACKAGE" != gettext-tools; }; then
6847 gt_use_preinstalled_gnugettext=yes
6856 if test -n "$INTL_MACOSX_LIBS"; then
6857 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6858 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6859 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6860 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6864 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6865 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6867 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6875 $as_echo_n "checking whether to use NLS... " >&6; }
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6877 $as_echo "$USE_NLS" >&6; }
6878 if test "$USE_NLS" = "yes"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6880 $as_echo_n "checking where the gettext function comes from... " >&6; }
6881 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6882 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6883 gt_source="external libintl"
6888 gt_source="included intl directory"
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6891 $as_echo "$gt_source" >&6; }
6894 if test "$USE_NLS" = "yes"; then
6896 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6897 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6899 $as_echo_n "checking how to link with libintl... " >&6; }
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6901 $as_echo "$LIBINTL" >&6; }
6903 for element in $INCINTL; do
6905 for x in $CPPFLAGS; do
6907 acl_save_prefix="$prefix"
6908 prefix="$acl_final_prefix"
6909 acl_save_exec_prefix="$exec_prefix"
6910 exec_prefix="$acl_final_exec_prefix"
6912 exec_prefix="$acl_save_exec_prefix"
6913 prefix="$acl_save_prefix"
6915 if test "X$x" = "X$element"; then
6920 if test -z "$haveit"; then
6921 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6928 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6931 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6948 ############### common
6950 # Checks sensors, required by psensor and psensor-server
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
6952 $as_echo_n "checking for sensors_init in -lsensors... " >&6; }
6953 if ${ac_cv_lib_sensors_sensors_init+:} false; then :
6954 $as_echo_n "(cached) " >&6
6956 ac_check_lib_save_LIBS=$LIBS
6957 LIBS="-lsensors $LIBS"
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6961 /* Override any GCC internal prototype to avoid an error.
6962 Use char because int might match the return type of a GCC
6963 builtin and then its argument prototype would still apply. */
6967 char sensors_init ();
6971 return sensors_init ();
6976 if ac_fn_c_try_link "$LINENO"; then :
6977 ac_cv_lib_sensors_sensors_init=yes
6979 ac_cv_lib_sensors_sensors_init=no
6981 rm -f core conftest.err conftest.$ac_objext \
6982 conftest$ac_exeext conftest.$ac_ext
6983 LIBS=$ac_check_lib_save_LIBS
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
6986 $as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
6987 if test "x$ac_cv_lib_sensors_sensors_init" = xyes; then :
6988 cat >>confdefs.h <<_ACEOF
6989 #define HAVE_LIBSENSORS 1
6992 LIBS="-lsensors $LIBS"
6996 for ac_header in sensors/sensors.h sensors/errors.h
6998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6999 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7000 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7001 cat >>confdefs.h <<_ACEOF
7002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7009 SENSORS_LIBS=-lsensors
7012 ############### psensor
7023 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7024 if test -n "$ac_tool_prefix"; then
7025 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7026 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028 $as_echo_n "checking for $ac_word... " >&6; }
7029 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7030 $as_echo_n "(cached) " >&6
7034 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7056 if test -n "$PKG_CONFIG"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7058 $as_echo "$PKG_CONFIG" >&6; }
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7066 if test -z "$ac_cv_path_PKG_CONFIG"; then
7067 ac_pt_PKG_CONFIG=$PKG_CONFIG
7068 # Extract the first word of "pkg-config", so it can be a program name with args.
7069 set dummy pkg-config; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7073 $as_echo_n "(cached) " >&6
7075 case $ac_pt_PKG_CONFIG in
7077 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7087 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7099 if test -n "$ac_pt_PKG_CONFIG"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7101 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7107 if test "x$ac_pt_PKG_CONFIG" = x; then
7110 case $cross_compiling:$ac_tool_warned in
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7114 ac_tool_warned=yes ;;
7116 PKG_CONFIG=$ac_pt_PKG_CONFIG
7119 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7123 if test -n "$PKG_CONFIG"; then
7124 _pkg_min_version=0.9.0
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7126 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7127 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7129 $as_echo "yes" >&6; }
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7139 $as_echo_n "checking for X11... " >&6; }
7141 if test -n "$X11_CFLAGS"; then
7142 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7143 elif test -n "$PKG_CONFIG"; then
7144 if test -n "$PKG_CONFIG" && \
7145 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7146 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7149 test $ac_status = 0; }; then
7150 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
7151 test "x$?" != "x0" && pkg_failed=yes
7158 if test -n "$X11_LIBS"; then
7159 pkg_cv_X11_LIBS="$X11_LIBS"
7160 elif test -n "$PKG_CONFIG"; then
7161 if test -n "$PKG_CONFIG" && \
7162 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7163 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7166 test $ac_status = 0; }; then
7167 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
7168 test "x$?" != "x0" && pkg_failed=yes
7178 if test $pkg_failed = yes; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180 $as_echo "no" >&6; }
7182 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7183 _pkg_short_errors_supported=yes
7185 _pkg_short_errors_supported=no
7187 if test $_pkg_short_errors_supported = yes; then
7188 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
7190 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
7192 # Put the nasty error message in config.log where it belongs
7193 echo "$X11_PKG_ERRORS" >&5
7195 as_fn_error $? "Package requirements (x11) were not met:
7199 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7200 installed software in a non-standard prefix.
7202 Alternatively, you may set the environment variables X11_CFLAGS
7203 and X11_LIBS to avoid the need to call pkg-config.
7204 See the pkg-config man page for more details." "$LINENO" 5
7205 elif test $pkg_failed = untried; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7210 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7211 is in your PATH or set the PKG_CONFIG environment variable to the full
7214 Alternatively, you may set the environment variables X11_CFLAGS
7215 and X11_LIBS to avoid the need to call pkg-config.
7216 See the pkg-config man page for more details.
7218 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7219 See \`config.log' for more details" "$LINENO" 5; }
7221 X11_CFLAGS=$pkg_cv_X11_CFLAGS
7222 X11_LIBS=$pkg_cv_X11_LIBS
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7224 $as_echo "yes" >&6; }
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
7233 $as_echo_n "checking for XEXT... " >&6; }
7235 if test -n "$XEXT_CFLAGS"; then
7236 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
7237 elif test -n "$PKG_CONFIG"; then
7238 if test -n "$PKG_CONFIG" && \
7239 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7240 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243 test $ac_status = 0; }; then
7244 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
7245 test "x$?" != "x0" && pkg_failed=yes
7252 if test -n "$XEXT_LIBS"; then
7253 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
7254 elif test -n "$PKG_CONFIG"; then
7255 if test -n "$PKG_CONFIG" && \
7256 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7257 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7260 test $ac_status = 0; }; then
7261 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
7262 test "x$?" != "x0" && pkg_failed=yes
7272 if test $pkg_failed = yes; then
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 $as_echo "no" >&6; }
7276 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7277 _pkg_short_errors_supported=yes
7279 _pkg_short_errors_supported=no
7281 if test $_pkg_short_errors_supported = yes; then
7282 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
7284 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
7286 # Put the nasty error message in config.log where it belongs
7287 echo "$XEXT_PKG_ERRORS" >&5
7289 as_fn_error $? "Package requirements (xext) were not met:
7293 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7294 installed software in a non-standard prefix.
7296 Alternatively, you may set the environment variables XEXT_CFLAGS
7297 and XEXT_LIBS to avoid the need to call pkg-config.
7298 See the pkg-config man page for more details." "$LINENO" 5
7299 elif test $pkg_failed = untried; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7304 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7305 is in your PATH or set the PKG_CONFIG environment variable to the full
7308 Alternatively, you may set the environment variables XEXT_CFLAGS
7309 and XEXT_LIBS to avoid the need to call pkg-config.
7310 See the pkg-config man page for more details.
7312 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7313 See \`config.log' for more details" "$LINENO" 5; }
7315 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
7316 XEXT_LIBS=$pkg_cv_XEXT_LIBS
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7318 $as_echo "yes" >&6; }
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7329 $as_echo_n "checking for GTK... " >&6; }
7331 if test -n "$GTK_CFLAGS"; then
7332 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7333 elif test -n "$PKG_CONFIG"; then
7334 if test -n "$PKG_CONFIG" && \
7335 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7336 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7339 test $ac_status = 0; }; then
7340 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
7341 test "x$?" != "x0" && pkg_failed=yes
7348 if test -n "$GTK_LIBS"; then
7349 pkg_cv_GTK_LIBS="$GTK_LIBS"
7350 elif test -n "$PKG_CONFIG"; then
7351 if test -n "$PKG_CONFIG" && \
7352 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7353 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7356 test $ac_status = 0; }; then
7357 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
7358 test "x$?" != "x0" && pkg_failed=yes
7368 if test $pkg_failed = yes; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7372 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7373 _pkg_short_errors_supported=yes
7375 _pkg_short_errors_supported=no
7377 if test $_pkg_short_errors_supported = yes; then
7378 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
7380 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
7382 # Put the nasty error message in config.log where it belongs
7383 echo "$GTK_PKG_ERRORS" >&5
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"GTK+ 3 not present\"" >&5
7386 $as_echo "$as_me: WARNING: \"GTK+ 3 not present\"" >&2;}
7387 elif test $pkg_failed = untried; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"GTK+ 3 not present\"" >&5
7391 $as_echo "$as_me: WARNING: \"GTK+ 3 not present\"" >&2;}
7393 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7394 GTK_LIBS=$pkg_cv_GTK_LIBS
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7396 $as_echo "yes" >&6; }
7398 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
7401 if test -n "$GTK_LIBS"; then
7412 if test "$GTK_LIBS" == ""; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7416 $as_echo_n "checking for GTK... " >&6; }
7418 if test -n "$GTK_CFLAGS"; then
7419 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7420 elif test -n "$PKG_CONFIG"; then
7421 if test -n "$PKG_CONFIG" && \
7422 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
7423 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
7425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7426 test $ac_status = 0; }; then
7427 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
7428 test "x$?" != "x0" && pkg_failed=yes
7435 if test -n "$GTK_LIBS"; then
7436 pkg_cv_GTK_LIBS="$GTK_LIBS"
7437 elif test -n "$PKG_CONFIG"; then
7438 if test -n "$PKG_CONFIG" && \
7439 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
7440 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
7442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7443 test $ac_status = 0; }; then
7444 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
7445 test "x$?" != "x0" && pkg_failed=yes
7455 if test $pkg_failed = yes; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7459 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7460 _pkg_short_errors_supported=yes
7462 _pkg_short_errors_supported=no
7464 if test $_pkg_short_errors_supported = yes; then
7465 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
7467 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
7469 # Put the nasty error message in config.log where it belongs
7470 echo "$GTK_PKG_ERRORS" >&5
7472 as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
7476 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7477 installed software in a non-standard prefix.
7479 Alternatively, you may set the environment variables GTK_CFLAGS
7480 and GTK_LIBS to avoid the need to call pkg-config.
7481 See the pkg-config man page for more details." "$LINENO" 5
7482 elif test $pkg_failed = untried; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7487 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7488 is in your PATH or set the PKG_CONFIG environment variable to the full
7491 Alternatively, you may set the environment variables GTK_CFLAGS
7492 and GTK_LIBS to avoid the need to call pkg-config.
7493 See the pkg-config man page for more details.
7495 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7496 See \`config.log' for more details" "$LINENO" 5; }
7498 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7499 GTK_LIBS=$pkg_cv_GTK_LIBS
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7501 $as_echo "yes" >&6; }
7504 if test -n "$GTK_LIBS"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF" >&5
7520 $as_echo_n "checking for GCONF... " >&6; }
7522 if test -n "$GCONF_CFLAGS"; then
7523 pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
7524 elif test -n "$PKG_CONFIG"; then
7525 if test -n "$PKG_CONFIG" && \
7526 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7527 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530 test $ac_status = 0; }; then
7531 pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0" 2>/dev/null`
7532 test "x$?" != "x0" && pkg_failed=yes
7539 if test -n "$GCONF_LIBS"; then
7540 pkg_cv_GCONF_LIBS="$GCONF_LIBS"
7541 elif test -n "$PKG_CONFIG"; then
7542 if test -n "$PKG_CONFIG" && \
7543 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7544 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7547 test $ac_status = 0; }; then
7548 pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0" 2>/dev/null`
7549 test "x$?" != "x0" && pkg_failed=yes
7559 if test $pkg_failed = yes; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 $as_echo "no" >&6; }
7563 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7564 _pkg_short_errors_supported=yes
7566 _pkg_short_errors_supported=no
7568 if test $_pkg_short_errors_supported = yes; then
7569 GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gconf-2.0" 2>&1`
7571 GCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gconf-2.0" 2>&1`
7573 # Put the nasty error message in config.log where it belongs
7574 echo "$GCONF_PKG_ERRORS" >&5
7576 as_fn_error $? "Package requirements (gconf-2.0) were not met:
7580 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7581 installed software in a non-standard prefix.
7583 Alternatively, you may set the environment variables GCONF_CFLAGS
7584 and GCONF_LIBS to avoid the need to call pkg-config.
7585 See the pkg-config man page for more details." "$LINENO" 5
7586 elif test $pkg_failed = untried; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588 $as_echo "no" >&6; }
7589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7591 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7592 is in your PATH or set the PKG_CONFIG environment variable to the full
7595 Alternatively, you may set the environment variables GCONF_CFLAGS
7596 and GCONF_LIBS to avoid the need to call pkg-config.
7597 See the pkg-config man page for more details.
7599 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7600 See \`config.log' for more details" "$LINENO" 5; }
7602 GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
7603 GCONF_LIBS=$pkg_cv_GCONF_LIBS
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7605 $as_echo "yes" >&6; }
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
7618 $as_echo_n "checking for LIBNOTIFY... " >&6; }
7620 if test -n "$LIBNOTIFY_CFLAGS"; then
7621 pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
7622 elif test -n "$PKG_CONFIG"; then
7623 if test -n "$PKG_CONFIG" && \
7624 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7625 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7628 test $ac_status = 0; }; then
7629 pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
7630 test "x$?" != "x0" && pkg_failed=yes
7637 if test -n "$LIBNOTIFY_LIBS"; then
7638 pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
7639 elif test -n "$PKG_CONFIG"; then
7640 if test -n "$PKG_CONFIG" && \
7641 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7642 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7645 test $ac_status = 0; }; then
7646 pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
7647 test "x$?" != "x0" && pkg_failed=yes
7657 if test $pkg_failed = yes; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7661 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7662 _pkg_short_errors_supported=yes
7664 _pkg_short_errors_supported=no
7666 if test $_pkg_short_errors_supported = yes; then
7667 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify" 2>&1`
7669 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify" 2>&1`
7671 # Put the nasty error message in config.log where it belongs
7672 echo "$LIBNOTIFY_PKG_ERRORS" >&5
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7675 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7676 elif test $pkg_failed = untried; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7680 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7682 LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
7683 LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7685 $as_echo "yes" >&6; }
7687 $as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h
7690 if test -n "$LIBNOTIFY_LIBS"; then
7701 # Checks AppIndicator
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7707 $as_echo_n "checking for APPINDICATOR... " >&6; }
7709 if test -n "$APPINDICATOR_CFLAGS"; then
7710 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7711 elif test -n "$PKG_CONFIG"; then
7712 if test -n "$PKG_CONFIG" && \
7713 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
7714 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
7716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7717 test $ac_status = 0; }; then
7718 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator3-0.1" 2>/dev/null`
7719 test "x$?" != "x0" && pkg_failed=yes
7726 if test -n "$APPINDICATOR_LIBS"; then
7727 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7728 elif test -n "$PKG_CONFIG"; then
7729 if test -n "$PKG_CONFIG" && \
7730 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
7731 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
7733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7734 test $ac_status = 0; }; then
7735 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator3-0.1" 2>/dev/null`
7736 test "x$?" != "x0" && pkg_failed=yes
7746 if test $pkg_failed = yes; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7751 _pkg_short_errors_supported=yes
7753 _pkg_short_errors_supported=no
7755 if test $_pkg_short_errors_supported = yes; then
7756 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
7758 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
7760 # Put the nasty error message in config.log where it belongs
7761 echo "$APPINDICATOR_PKG_ERRORS" >&5
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
7764 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
7765 elif test $pkg_failed = untried; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767 $as_echo "no" >&6; }
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
7769 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
7771 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7772 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7774 $as_echo "yes" >&6; }
7776 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7780 if test "$APPINDICATOR_LIBS" == ""; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7784 $as_echo_n "checking for APPINDICATOR... " >&6; }
7786 if test -n "$APPINDICATOR_CFLAGS"; then
7787 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7788 elif test -n "$PKG_CONFIG"; then
7789 if test -n "$PKG_CONFIG" && \
7790 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7791 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7794 test $ac_status = 0; }; then
7795 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7796 test "x$?" != "x0" && pkg_failed=yes
7803 if test -n "$APPINDICATOR_LIBS"; then
7804 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7805 elif test -n "$PKG_CONFIG"; then
7806 if test -n "$PKG_CONFIG" && \
7807 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7808 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7811 test $ac_status = 0; }; then
7812 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7813 test "x$?" != "x0" && pkg_failed=yes
7823 if test $pkg_failed = yes; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7827 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7828 _pkg_short_errors_supported=yes
7830 _pkg_short_errors_supported=no
7832 if test $_pkg_short_errors_supported = yes; then
7833 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
7835 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
7837 # Put the nasty error message in config.log where it belongs
7838 echo "$APPINDICATOR_PKG_ERRORS" >&5
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7841 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7842 elif test $pkg_failed = untried; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7846 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7848 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7849 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7851 $as_echo "yes" >&6; }
7853 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7856 $as_echo "#define HAVE_APPINDICATOR_029 1" >>confdefs.h
7862 if test "$APPINDICATOR_LIBS" == ""; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7866 $as_echo_n "checking for APPINDICATOR... " >&6; }
7868 if test -n "$APPINDICATOR_CFLAGS"; then
7869 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7870 elif test -n "$PKG_CONFIG"; then
7871 if test -n "$PKG_CONFIG" && \
7872 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
7873 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
7875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7876 test $ac_status = 0; }; then
7877 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 > 0.2.9" 2>/dev/null`
7878 test "x$?" != "x0" && pkg_failed=yes
7885 if test -n "$APPINDICATOR_LIBS"; then
7886 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7887 elif test -n "$PKG_CONFIG"; then
7888 if test -n "$PKG_CONFIG" && \
7889 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
7890 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
7892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7893 test $ac_status = 0; }; then
7894 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 > 0.2.9" 2>/dev/null`
7895 test "x$?" != "x0" && pkg_failed=yes
7905 if test $pkg_failed = yes; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7909 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7910 _pkg_short_errors_supported=yes
7912 _pkg_short_errors_supported=no
7914 if test $_pkg_short_errors_supported = yes; then
7915 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
7917 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
7919 # Put the nasty error message in config.log where it belongs
7920 echo "$APPINDICATOR_PKG_ERRORS" >&5
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
7923 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
7924 elif test $pkg_failed = untried; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
7928 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
7930 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7931 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7933 $as_echo "yes" >&6; }
7935 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7939 if test -n "$APPINDICATOR_LIBS"; then
7941 APPINDICATOR_FALSE='#'
7943 APPINDICATOR_TRUE='#'
7950 # Check CURL, needed for remote monitoring
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
7955 $as_echo_n "checking for CURL... " >&6; }
7957 if test -n "$CURL_CFLAGS"; then
7958 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
7959 elif test -n "$PKG_CONFIG"; then
7960 if test -n "$PKG_CONFIG" && \
7961 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
7962 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
7964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7965 test $ac_status = 0; }; then
7966 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
7967 test "x$?" != "x0" && pkg_failed=yes
7974 if test -n "$CURL_LIBS"; then
7975 pkg_cv_CURL_LIBS="$CURL_LIBS"
7976 elif test -n "$PKG_CONFIG"; then
7977 if test -n "$PKG_CONFIG" && \
7978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
7979 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
7981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7982 test $ac_status = 0; }; then
7983 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
7984 test "x$?" != "x0" && pkg_failed=yes
7994 if test $pkg_failed = yes; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
7998 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7999 _pkg_short_errors_supported=yes
8001 _pkg_short_errors_supported=no
8003 if test $_pkg_short_errors_supported = yes; then
8004 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
8006 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
8008 # Put the nasty error message in config.log where it belongs
8009 echo "$CURL_PKG_ERRORS" >&5
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8012 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8013 elif test $pkg_failed = untried; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8017 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8019 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
8020 CURL_LIBS=$pkg_cv_CURL_LIBS
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8022 $as_echo "yes" >&6; }
8024 $as_echo "#define HAVE_CURL 1" >>confdefs.h
8027 if test -n "$CURL_LIBS"; then
8038 # Check JSON, needed for remote monitoring
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8043 $as_echo_n "checking for JSON... " >&6; }
8045 if test -n "$JSON_CFLAGS"; then
8046 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8047 elif test -n "$PKG_CONFIG"; then
8048 if test -n "$PKG_CONFIG" && \
8049 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8050 ($PKG_CONFIG --exists --print-errors "json") 2>&5
8052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8053 test $ac_status = 0; }; then
8054 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
8055 test "x$?" != "x0" && pkg_failed=yes
8062 if test -n "$JSON_LIBS"; then
8063 pkg_cv_JSON_LIBS="$JSON_LIBS"
8064 elif test -n "$PKG_CONFIG"; then
8065 if test -n "$PKG_CONFIG" && \
8066 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8067 ($PKG_CONFIG --exists --print-errors "json") 2>&5
8069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8070 test $ac_status = 0; }; then
8071 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
8072 test "x$?" != "x0" && pkg_failed=yes
8082 if test $pkg_failed = yes; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8086 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8087 _pkg_short_errors_supported=yes
8089 _pkg_short_errors_supported=no
8091 if test $_pkg_short_errors_supported = yes; then
8092 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
8094 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
8096 # Put the nasty error message in config.log where it belongs
8097 echo "$JSON_PKG_ERRORS" >&5
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8100 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8101 elif test $pkg_failed = untried; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 $as_echo "no" >&6; }
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8105 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8107 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8108 JSON_LIBS=$pkg_cv_JSON_LIBS
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8110 $as_echo "yes" >&6; }
8112 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8115 if test -n "$JSON_LIBS"; then
8126 # Enables remote monitoring if JSON and CURL is present
8127 if test -n "$JSON_LIBS"; then
8128 if test -n "$CURL_LIBS"; then
8130 $as_echo "#define HAVE_REMOTE_SUPPORT 1" >>confdefs.h
8136 # following code from sensors-applet
8137 # sensors-applet.sourceforge.net/
8138 for ac_header in NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h
8140 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8141 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8142 #include <X11/Xlib.h>
8145 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8146 cat >>confdefs.h <<_ACEOF
8147 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8154 if test -n "${X11_LIBS}"; then
8155 LIBS="${LIBS} -lX11 -lXext"
8157 if test "${HAVE_NVIDIA}" = "true"; then
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryExtension in -lXNVCtrl" >&5
8159 $as_echo_n "checking for XNVCTRLQueryExtension in -lXNVCtrl... " >&6; }
8160 if ${ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension+:} false; then :
8161 $as_echo_n "(cached) " >&6
8163 ac_check_lib_save_LIBS=$LIBS
8164 LIBS="-lXNVCtrl $LIBS"
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8168 /* Override any GCC internal prototype to avoid an error.
8169 Use char because int might match the return type of a GCC
8170 builtin and then its argument prototype would still apply. */
8174 char XNVCTRLQueryExtension ();
8178 return XNVCTRLQueryExtension ();
8183 if ac_fn_c_try_link "$LINENO"; then :
8184 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=yes
8186 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=no
8188 rm -f core conftest.err conftest.$ac_objext \
8189 conftest$ac_exeext conftest.$ac_ext
8190 LIBS=$ac_check_lib_save_LIBS
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&5
8193 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&6; }
8194 if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" = xyes; then :
8195 NVIDIA_LIBS="-lXNVCtrl -lX11 -lXext"
8197 $as_echo "#define HAVE_NVIDIA 1" >>confdefs.h
8204 if test -n "$NVIDIA_LIBS"; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNITY" >&5
8219 $as_echo_n "checking for UNITY... " >&6; }
8221 if test -n "$UNITY_CFLAGS"; then
8222 pkg_cv_UNITY_CFLAGS="$UNITY_CFLAGS"
8223 elif test -n "$PKG_CONFIG"; then
8224 if test -n "$PKG_CONFIG" && \
8225 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8226 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8229 test $ac_status = 0; }; then
8230 pkg_cv_UNITY_CFLAGS=`$PKG_CONFIG --cflags "unity >= 3.4.2" 2>/dev/null`
8231 test "x$?" != "x0" && pkg_failed=yes
8238 if test -n "$UNITY_LIBS"; then
8239 pkg_cv_UNITY_LIBS="$UNITY_LIBS"
8240 elif test -n "$PKG_CONFIG"; then
8241 if test -n "$PKG_CONFIG" && \
8242 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8243 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8246 test $ac_status = 0; }; then
8247 pkg_cv_UNITY_LIBS=`$PKG_CONFIG --libs "unity >= 3.4.2" 2>/dev/null`
8248 test "x$?" != "x0" && pkg_failed=yes
8258 if test $pkg_failed = yes; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8262 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8263 _pkg_short_errors_supported=yes
8265 _pkg_short_errors_supported=no
8267 if test $_pkg_short_errors_supported = yes; then
8268 UNITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8270 UNITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8272 # Put the nasty error message in config.log where it belongs
8273 echo "$UNITY_PKG_ERRORS" >&5
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8276 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8277 elif test $pkg_failed = untried; then
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 $as_echo "no" >&6; }
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8281 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8283 UNITY_CFLAGS=$pkg_cv_UNITY_CFLAGS
8284 UNITY_LIBS=$pkg_cv_UNITY_LIBS
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8286 $as_echo "yes" >&6; }
8288 $as_echo "#define HAVE_UNITY 1" >>confdefs.h
8293 if test -n "$UNITY_LIBS"; then
8304 # Check whether --with-libatiadl was given.
8305 if test "${with_libatiadl+set}" = set; then :
8306 withval=$with_libatiadl;
8307 ATIADL_DIR=${withval}
8308 CPPFLAGS="${CPPFLAGS} -I${ATIADL_DIR}/include"
8309 LIBS="$LIBS -L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst"
8315 for ac_header in adl_defines.h
8317 ac_fn_c_check_header_mongrel "$LINENO" "adl_defines.h" "ac_cv_header_adl_defines_h" "$ac_includes_default"
8318 if test "x$ac_cv_header_adl_defines_h" = xyes; then :
8319 cat >>confdefs.h <<_ACEOF
8320 #define HAVE_ADL_DEFINES_H 1
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ADL_Main_Control_Refresh in -latiadlxx" >&5
8323 $as_echo_n "checking for ADL_Main_Control_Refresh in -latiadlxx... " >&6; }
8324 if ${ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh+:} false; then :
8325 $as_echo_n "(cached) " >&6
8327 ac_check_lib_save_LIBS=$LIBS
8328 LIBS="-latiadlxx $LIBS"
8329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330 /* end confdefs.h. */
8332 /* Override any GCC internal prototype to avoid an error.
8333 Use char because int might match the return type of a GCC
8334 builtin and then its argument prototype would still apply. */
8338 char ADL_Main_Control_Refresh ();
8342 return ADL_Main_Control_Refresh ();
8347 if ac_fn_c_try_link "$LINENO"; then :
8348 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=yes
8350 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=no
8352 rm -f core conftest.err conftest.$ac_objext \
8353 conftest$ac_exeext conftest.$ac_ext
8354 LIBS=$ac_check_lib_save_LIBS
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&5
8357 $as_echo "$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&6; }
8358 if test "x$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" = xyes; then :
8361 $as_echo "#define HAVE_LIBATIADL 1" >>confdefs.h
8363 LIBATIADL_CFLAGS="-I${ATIADL_DIR}/include"
8364 LIBATIADL_LIBS="-L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst -latiadlxx -ldl"
8373 if test -n "$LIBATIADL_LIBS"; then
8384 ############### psensor-server
8386 # libmicrohttpd, mandatory for psensor-server
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMICROHTTPD" >&5
8391 $as_echo_n "checking for LIBMICROHTTPD... " >&6; }
8393 if test -n "$LIBMICROHTTPD_CFLAGS"; then
8394 pkg_cv_LIBMICROHTTPD_CFLAGS="$LIBMICROHTTPD_CFLAGS"
8395 elif test -n "$PKG_CONFIG"; then
8396 if test -n "$PKG_CONFIG" && \
8397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8398 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8401 test $ac_status = 0; }; then
8402 pkg_cv_LIBMICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null`
8403 test "x$?" != "x0" && pkg_failed=yes
8410 if test -n "$LIBMICROHTTPD_LIBS"; then
8411 pkg_cv_LIBMICROHTTPD_LIBS="$LIBMICROHTTPD_LIBS"
8412 elif test -n "$PKG_CONFIG"; then
8413 if test -n "$PKG_CONFIG" && \
8414 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8415 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8418 test $ac_status = 0; }; then
8419 pkg_cv_LIBMICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null`
8420 test "x$?" != "x0" && pkg_failed=yes
8430 if test $pkg_failed = yes; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8434 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8435 _pkg_short_errors_supported=yes
8437 _pkg_short_errors_supported=no
8439 if test $_pkg_short_errors_supported = yes; then
8440 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8442 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8444 # Put the nasty error message in config.log where it belongs
8445 echo "$LIBMICROHTTPD_PKG_ERRORS" >&5
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8448 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8449 elif test $pkg_failed = untried; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451 $as_echo "no" >&6; }
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8453 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8455 LIBMICROHTTPD_CFLAGS=$pkg_cv_LIBMICROHTTPD_CFLAGS
8456 LIBMICROHTTPD_LIBS=$pkg_cv_LIBMICROHTTPD_LIBS
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8458 $as_echo "yes" >&6; }
8460 $as_echo "#define HAVE_LIBMICROHTTPD 1" >>confdefs.h
8463 if test -n "$LIBMICROHTTPD_LIBS"; then
8465 LIBMICROHTTPD_FALSE='#'
8467 LIBMICROHTTPD_TRUE='#'
8468 LIBMICROHTTPD_FALSE=
8477 # Check whether --with-gtop was given.
8478 if test "${with_gtop+set}" = set; then :
8489 if test "$with_gtop" = "yes"; then
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTOP" >&5
8493 $as_echo_n "checking for GTOP... " >&6; }
8495 if test -n "$GTOP_CFLAGS"; then
8496 pkg_cv_GTOP_CFLAGS="$GTOP_CFLAGS"
8497 elif test -n "$PKG_CONFIG"; then
8498 if test -n "$PKG_CONFIG" && \
8499 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8500 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8503 test $ac_status = 0; }; then
8504 pkg_cv_GTOP_CFLAGS=`$PKG_CONFIG --cflags "libgtop-2.0" 2>/dev/null`
8505 test "x$?" != "x0" && pkg_failed=yes
8512 if test -n "$GTOP_LIBS"; then
8513 pkg_cv_GTOP_LIBS="$GTOP_LIBS"
8514 elif test -n "$PKG_CONFIG"; then
8515 if test -n "$PKG_CONFIG" && \
8516 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8517 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8520 test $ac_status = 0; }; then
8521 pkg_cv_GTOP_LIBS=`$PKG_CONFIG --libs "libgtop-2.0" 2>/dev/null`
8522 test "x$?" != "x0" && pkg_failed=yes
8532 if test $pkg_failed = yes; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8534 $as_echo "no" >&6; }
8536 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8537 _pkg_short_errors_supported=yes
8539 _pkg_short_errors_supported=no
8541 if test $_pkg_short_errors_supported = yes; then
8542 GTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgtop-2.0" 2>&1`
8544 GTOP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgtop-2.0" 2>&1`
8546 # Put the nasty error message in config.log where it belongs
8547 echo "$GTOP_PKG_ERRORS" >&5
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8550 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8551 elif test $pkg_failed = untried; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8555 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8557 GTOP_CFLAGS=$pkg_cv_GTOP_CFLAGS
8558 GTOP_LIBS=$pkg_cv_GTOP_LIBS
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8560 $as_echo "yes" >&6; }
8562 $as_echo "#define HAVE_GTOP 1" >>confdefs.h
8566 if test -n "$GTOP_LIBS"; then
8577 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"
8580 for ac_prog in help2man
8582 # Extract the first word of "$ac_prog", so it can be a program name with args.
8583 set dummy $ac_prog; ac_word=$2
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8585 $as_echo_n "checking for $ac_word... " >&6; }
8586 if ${ac_cv_prog_HELP2MAN+:} false; then :
8587 $as_echo_n "(cached) " >&6
8589 if test -n "$HELP2MAN"; then
8590 ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
8592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 test -z "$as_dir" && as_dir=.
8597 for ac_exec_ext in '' $ac_executable_extensions; do
8598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8599 ac_cv_prog_HELP2MAN="$ac_prog"
8600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8609 HELP2MAN=$ac_cv_prog_HELP2MAN
8610 if test -n "$HELP2MAN"; then
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
8612 $as_echo "$HELP2MAN" >&6; }
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 $as_echo "no" >&6; }
8619 test -n "$HELP2MAN" && break
8623 cat >confcache <<\_ACEOF
8624 # This file is a shell script that caches the results of configure
8625 # tests run on this system so they can be shared between configure
8626 # scripts and configure runs, see configure's option --config-cache.
8627 # It is not useful on other systems. If it contains results you don't
8628 # want to keep, you may remove or edit it.
8630 # config.status only pays attention to the cache file if you give it
8631 # the --recheck option to rerun configure.
8633 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8634 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8639 # The following way of writing the cache mishandles newlines in values,
8640 # but we know of no workaround that is simple, portable, and efficient.
8641 # So, we kill variables containing newlines.
8642 # Ultrix sh set writes to stderr and can't be redirected directly,
8643 # and sets the high bit in the cache file unless we assign to the vars.
8645 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8646 eval ac_val=\$$ac_var
8650 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8651 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8654 _ | IFS | as_nl) ;; #(
8655 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8656 *) { eval $ac_var=; unset $ac_var;} ;;
8662 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8663 *${as_nl}ac_space=\ *)
8664 # `set' does not quote correctly, so add quotes: double-quote
8665 # substitution turns \\\\ into \\, and sed turns \\ into \.
8668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8671 # `set' quotes correctly as required by POSIX, so do not add quotes.
8672 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8681 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8683 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8685 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8686 if test -w "$cache_file"; then
8687 if test "x$cache_file" != "x/dev/null"; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8689 $as_echo "$as_me: updating cache $cache_file" >&6;}
8690 if test ! -f "$cache_file" || test -h "$cache_file"; then
8691 cat confcache >"$cache_file"
8693 case $cache_file in #(
8695 mv -f confcache "$cache_file"$$ &&
8696 mv -f "$cache_file"$$ "$cache_file" ;; #(
8698 mv -f confcache "$cache_file" ;;
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8704 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8709 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8710 # Let make expand exec_prefix.
8711 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8713 DEFS=-DHAVE_CONFIG_H
8718 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8719 # 1. Remove the extension, and $U if already installed.
8720 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8721 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8722 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8723 # will be set to the directory where LIBOBJS objects are built.
8724 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8725 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8729 LTLIBOBJS=$ac_ltlibobjs
8732 if test -n "$EXEEXT"; then
8734 am__EXEEXT_FALSE='#'
8740 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8741 as_fn_error $? "conditional \"AMDEP\" was never defined.
8742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8744 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8745 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8748 if test -z "${SYSINFO_FCT_TRUE}" && test -z "${SYSINFO_FCT_FALSE}"; then
8749 as_fn_error $? "conditional \"SYSINFO_FCT\" was never defined.
8750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8752 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
8753 as_fn_error $? "conditional \"GTK\" was never defined.
8754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8756 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
8757 as_fn_error $? "conditional \"GTK\" was never defined.
8758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8760 if test -z "${LIBNOTIFY_TRUE}" && test -z "${LIBNOTIFY_FALSE}"; then
8761 as_fn_error $? "conditional \"LIBNOTIFY\" was never defined.
8762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8764 if test -z "${APPINDICATOR_TRUE}" && test -z "${APPINDICATOR_FALSE}"; then
8765 as_fn_error $? "conditional \"APPINDICATOR\" was never defined.
8766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8768 if test -z "${CURL_TRUE}" && test -z "${CURL_FALSE}"; then
8769 as_fn_error $? "conditional \"CURL\" was never defined.
8770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8772 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
8773 as_fn_error $? "conditional \"JSON\" was never defined.
8774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8776 if test -z "${NVIDIA_TRUE}" && test -z "${NVIDIA_FALSE}"; then
8777 as_fn_error $? "conditional \"NVIDIA\" was never defined.
8778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8780 if test -z "${UNITY_TRUE}" && test -z "${UNITY_FALSE}"; then
8781 as_fn_error $? "conditional \"UNITY\" was never defined.
8782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8784 if test -z "${LIBATIADL_TRUE}" && test -z "${LIBATIADL_FALSE}"; then
8785 as_fn_error $? "conditional \"LIBATIADL\" was never defined.
8786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8788 if test -z "${LIBMICROHTTPD_TRUE}" && test -z "${LIBMICROHTTPD_FALSE}"; then
8789 as_fn_error $? "conditional \"LIBMICROHTTPD\" was never defined.
8790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8792 if test -z "${GTOP_TRUE}" && test -z "${GTOP_FALSE}"; then
8793 as_fn_error $? "conditional \"GTOP\" was never defined.
8794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8797 : "${CONFIG_STATUS=./config.status}"
8799 ac_clean_files_save=$ac_clean_files
8800 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8802 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8804 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8806 # Generated by $as_me.
8807 # Run this file to recreate the current configuration.
8808 # Compiler output produced by configure, useful for debugging
8809 # configure, is in config.log if it exists.
8815 SHELL=\${CONFIG_SHELL-$SHELL}
8818 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8819 ## -------------------- ##
8820 ## M4sh Initialization. ##
8821 ## -------------------- ##
8823 # Be more Bourne compatible
8824 DUALCASE=1; export DUALCASE # for MKS sh
8825 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8828 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8829 # is contrary to our usage. Disable this feature.
8830 alias -g '${1+"$@"}'='"$@"'
8831 setopt NO_GLOB_SUBST
8833 case `(set -o) 2>/dev/null` in #(
8845 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8846 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8847 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8848 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8849 # Prefer a ksh shell builtin over an external printf program on Solaris,
8850 # but without wasting forks for bash or zsh.
8851 if test -z "$BASH_VERSION$ZSH_VERSION" \
8852 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8853 as_echo='print -r --'
8854 as_echo_n='print -rn --'
8855 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8856 as_echo='printf %s\n'
8857 as_echo_n='printf %s'
8859 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8860 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8861 as_echo_n='/usr/ucb/echo -n'
8863 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8864 as_echo_n_body='eval
8868 expr "X$arg" : "X\\(.*\\)$as_nl";
8869 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8871 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8873 export as_echo_n_body
8874 as_echo_n='sh -c $as_echo_n_body as_echo'
8877 as_echo='sh -c $as_echo_body as_echo'
8880 # The user is always right.
8881 if test "${PATH_SEPARATOR+set}" != set; then
8883 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8884 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8891 # We need space, tab and new line, in precisely that order. Quoting is
8892 # there to prevent editors from complaining about space-tab.
8893 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8894 # splitting by setting IFS to empty value.)
8897 # Find who we are. Look in the path if we contain no directory separator.
8900 *[\\/]* ) as_myself=$0 ;;
8901 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905 test -z "$as_dir" && as_dir=.
8906 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8912 # We did not find ourselves, most probably we were run as `sh COMMAND'
8913 # in which case we are not to be found in the path.
8914 if test "x$as_myself" = x; then
8917 if test ! -f "$as_myself"; then
8918 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8922 # Unset variables that we do not need and which cause bugs (e.g. in
8923 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8924 # suppresses any "Segmentation fault" message there. '((' could
8925 # trigger a bug in pdksh 5.2.14.
8926 for as_var in BASH_ENV ENV MAIL MAILPATH
8927 do eval test x\${$as_var+set} = xset \
8928 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8941 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8944 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8945 # ----------------------------------------
8946 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8947 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8948 # script with STATUS, using 1 if that was 0.
8951 as_status=$1; test $as_status -eq 0 && as_status=1
8953 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8954 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8956 $as_echo "$as_me: error: $2" >&2
8957 as_fn_exit $as_status
8961 # as_fn_set_status STATUS
8962 # -----------------------
8963 # Set $? to STATUS, without forking.
8967 } # as_fn_set_status
8971 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8981 # Portably unset VAR.
8984 { eval $1=; unset $1;}
8986 as_unset=as_fn_unset
8987 # as_fn_append VAR VALUE
8988 # ----------------------
8989 # Append the text in VALUE to the end of the definition contained in VAR. Take
8990 # advantage of any shell optimizations that allow amortized linear growth over
8991 # repeated appends, instead of the typical quadratic growth present in naive
8993 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8994 eval 'as_fn_append ()
9005 # as_fn_arith ARG...
9006 # ------------------
9007 # Perform arithmetic evaluation on the ARGs, and store the result in the
9008 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9009 # must be portable across $(()) and expr.
9010 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9011 eval 'as_fn_arith ()
9018 as_val=`expr "$@" || test $? -eq 1`
9023 if expr a : '\(a\)' >/dev/null 2>&1 &&
9024 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9030 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9031 as_basename=basename
9036 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9042 as_me=`$as_basename -- "$0" ||
9043 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9044 X"$0" : 'X\(//\)$' \| \
9045 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9047 sed '/^.*\/\([^/][^/]*\)\/*$/{
9061 # Avoid depending upon Character Ranges.
9062 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9063 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9064 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9065 as_cr_digits='0123456789'
9066 as_cr_alnum=$as_cr_Letters$as_cr_digits
9068 ECHO_C= ECHO_N= ECHO_T=
9069 case `echo -n x` in #(((((
9071 case `echo 'xy\c'` in
9072 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9074 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9081 rm -f conf$$ conf$$.exe conf$$.file
9082 if test -d conf$$.dir; then
9083 rm -f conf$$.dir/conf$$.file
9086 mkdir conf$$.dir 2>/dev/null
9088 if (echo >conf$$.file) 2>/dev/null; then
9089 if ln -s conf$$.file conf$$ 2>/dev/null; then
9091 # ... but there are two gotchas:
9092 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9093 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9094 # In both cases, we have to default to `cp -p'.
9095 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9097 elif ln conf$$.file conf$$ 2>/dev/null; then
9105 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9106 rmdir conf$$.dir 2>/dev/null
9111 # Create "$as_dir" as a directory, including parents if necessary.
9116 -*) as_dir=./$as_dir;;
9118 test -d "$as_dir" || eval $as_mkdir_p || {
9122 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9123 *) as_qdir=$as_dir;;
9125 as_dirs="'$as_qdir' $as_dirs"
9126 as_dir=`$as_dirname -- "$as_dir" ||
9127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9128 X"$as_dir" : 'X\(//\)[^/]' \| \
9129 X"$as_dir" : 'X\(//\)$' \| \
9130 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9131 $as_echo X"$as_dir" |
9132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9149 test -d "$as_dir" && break
9151 test -z "$as_dirs" || eval "mkdir $as_dirs"
9152 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9156 if mkdir -p . 2>/dev/null; then
9157 as_mkdir_p='mkdir -p "$as_dir"'
9159 test -d ./-p && rmdir ./-p
9163 if test -x / >/dev/null 2>&1; then
9166 if ls -dL / >/dev/null 2>&1; then
9173 if test -d "$1"; then
9179 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9180 ???[sx]*):;;*)false;;esac;fi
9184 as_executable_p=$as_test_x
9186 # Sed expression to map a string onto a valid CPP name.
9187 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9189 # Sed expression to map a string onto a valid variable name.
9190 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9194 ## ----------------------------------- ##
9195 ## Main body of $CONFIG_STATUS script. ##
9196 ## ----------------------------------- ##
9198 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9201 # Save the log message, to keep $0 and so on meaningful, and to
9202 # report actual input values of CONFIG_FILES etc. instead of their
9203 # values after options handling.
9205 This file was extended by psensor $as_me 0.6.2.15, which was
9206 generated by GNU Autoconf 2.68. Invocation command line was
9208 CONFIG_FILES = $CONFIG_FILES
9209 CONFIG_HEADERS = $CONFIG_HEADERS
9210 CONFIG_LINKS = $CONFIG_LINKS
9211 CONFIG_COMMANDS = $CONFIG_COMMANDS
9214 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9219 case $ac_config_files in *"
9220 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9223 case $ac_config_headers in *"
9224 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9229 # Files that config.status was made for.
9230 config_files="$ac_config_files"
9231 config_headers="$ac_config_headers"
9232 config_commands="$ac_config_commands"
9236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9238 \`$as_me' instantiates files and other configuration actions
9239 from templates according to the current configuration. Unless the files
9240 and actions are specified as TAGs, all are instantiated by default.
9242 Usage: $0 [OPTION]... [TAG]...
9244 -h, --help print this help, then exit
9245 -V, --version print version number and configuration settings, then exit
9246 --config print configuration, then exit
9247 -q, --quiet, --silent
9248 do not print progress messages
9249 -d, --debug don't remove temporary files
9250 --recheck update $as_me by reconfiguring in the same conditions
9251 --file=FILE[:TEMPLATE]
9252 instantiate the configuration file FILE
9253 --header=FILE[:TEMPLATE]
9254 instantiate the configuration header FILE
9256 Configuration files:
9259 Configuration headers:
9262 Configuration commands:
9265 Report bugs to <jeanfi@gmail.com>.
9266 psensor home page: <http://wpitchoune.net/psensor>."
9269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9270 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9272 psensor config.status 0.6.2.15
9273 configured by $0, generated by GNU Autoconf 2.68,
9274 with options \\"\$ac_cs_config\\"
9276 Copyright (C) 2010 Free Software Foundation, Inc.
9277 This config.status script is free software; the Free Software Foundation
9278 gives unlimited permission to copy, distribute and modify it."
9285 test -n "\$AWK" || AWK=awk
9288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9289 # The default lists apply if the user does not specify any file.
9295 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9296 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9300 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9312 # Handling of the options.
9313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9315 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9316 $as_echo "$ac_cs_version"; exit ;;
9317 --config | --confi | --conf | --con | --co | --c )
9318 $as_echo "$ac_cs_config"; exit ;;
9319 --debug | --debu | --deb | --de | --d | -d )
9321 --file | --fil | --fi | --f )
9324 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9325 '') as_fn_error $? "missing file argument" ;;
9327 as_fn_append CONFIG_FILES " '$ac_optarg'"
9328 ac_need_defaults=false;;
9329 --header | --heade | --head | --hea )
9332 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9334 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9335 ac_need_defaults=false;;
9337 # Conflict between --help and --header
9338 as_fn_error $? "ambiguous option: \`$1'
9339 Try \`$0 --help' for more information.";;
9340 --help | --hel | -h )
9341 $as_echo "$ac_cs_usage"; exit ;;
9342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9343 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9347 -*) as_fn_error $? "unrecognized option: \`$1'
9348 Try \`$0 --help' for more information." ;;
9350 *) as_fn_append ac_config_targets " $1"
9351 ac_need_defaults=false ;;
9357 ac_configure_extra_args=
9359 if $ac_cs_silent; then
9361 ac_configure_extra_args="$ac_configure_extra_args --silent"
9365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9366 if \$ac_cs_recheck; then
9367 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9369 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9370 CONFIG_SHELL='$SHELL'
9376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9380 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9381 ## Running $as_me. ##
9387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9391 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9392 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9393 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9394 # from automake < 1.5.
9395 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9396 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9397 LINGUAS="${LINGUAS-%UNSET%}"
9402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9404 # Handling of arguments.
9405 for ac_config_target in $ac_config_targets
9407 case $ac_config_target in
9408 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9409 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9410 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9411 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9412 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9413 "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
9414 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
9415 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
9416 "icons/hicolor/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/scalable/Makefile" ;;
9417 "icons/hicolor/14x14/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/14x14/Makefile" ;;
9418 "icons/hicolor/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/16x16/Makefile" ;;
9419 "icons/hicolor/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/22x22/Makefile" ;;
9420 "icons/hicolor/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/24x24/Makefile" ;;
9421 "icons/hicolor/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/32x32/Makefile" ;;
9422 "icons/hicolor/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/48x48/Makefile" ;;
9423 "icons/hicolor/64x64/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/64x64/Makefile" ;;
9424 "icons/ubuntu-mono-dark/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/status/22/Makefile" ;;
9425 "icons/ubuntu-mono-light/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-light/status/22/Makefile" ;;
9426 "icons/ubuntu-mono-dark/apps/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/apps/22/Makefile" ;;
9427 "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
9428 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9429 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9431 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9436 # If the user did not use the arguments to specify the items to instantiate,
9437 # then the envvar interface is used. Set only those that are not.
9438 # We use the long form for the default assignment because of an extremely
9439 # bizarre bug on SunOS 4.1.3.
9440 if $ac_need_defaults; then
9441 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9442 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9443 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9446 # Have a temporary directory for convenience. Make it in the build tree
9447 # simply because there is no reason against having it here, and in addition,
9448 # creating and moving files from /tmp can sometimes cause problems.
9449 # Hook for its removal unless debugging.
9450 # Note that there is a small window in which the directory will not be cleaned:
9451 # after its creation but before its name has been assigned to `$tmp'.
9455 trap 'exit_status=$?
9457 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9459 trap 'as_fn_exit 1' 1 2 13 15
9461 # Create a (secure) tmp directory for tmp files.
9464 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9468 tmp=./conf$$-$RANDOM
9469 (umask 077 && mkdir "$tmp")
9470 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9473 # Set up the scripts for CONFIG_FILES section.
9474 # No need to generate them if there are no CONFIG_FILES.
9475 # This happens for instance with `./config.status config.h'.
9476 if test -n "$CONFIG_FILES"; then
9479 ac_cr=`echo X | tr X '\015'`
9480 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9481 # But we know of no other shell where ac_cr would be empty at this
9482 # point, so we can use a bashism as a fallback.
9483 if test "x$ac_cr" = x; then
9484 eval ac_cr=\$\'\\r\'
9486 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9487 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9493 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9498 echo "cat >conf$$subs.awk <<_ACEOF" &&
9499 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9502 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9503 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9505 for ac_last_try in false false false false false :; do
9506 . ./conf$$subs.sh ||
9507 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9509 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9510 if test $ac_delim_n = $ac_delim_num; then
9512 elif $ac_last_try; then
9513 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9515 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9521 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9525 s/^/S["/; s/!.*/"]=/
9535 s/\(.\{148\}\)..*/\1/
9537 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9542 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9549 s/\(.\{148\}\)..*/\1/
9551 s/["\\]/\\&/g; s/^/"/; s/$/"/
9555 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9560 ' <conf$$subs.awk | sed '
9565 ' >>$CONFIG_STATUS || ac_write_fail=1
9566 rm -f conf$$subs.awk
9567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9569 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9570 for (key in S) S_is_set[key] = 1
9576 nfields = split(line, field, "@")
9578 len = length(field[1])
9579 for (i = 2; i < nfields; i++) {
9581 keylen = length(key)
9582 if (S_is_set[key]) {
9584 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9585 len += length(value) + length(field[++i])
9596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9597 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9598 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9601 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9602 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9605 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9606 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9607 # trailing colons and then remove the whole line if VPATH becomes empty
9608 # (actually we leave an empty line to preserve line numbers).
9609 if test "x$srcdir" = x.; then
9610 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9629 fi # test -n "$CONFIG_FILES"
9631 # Set up the scripts for CONFIG_HEADERS section.
9632 # No need to generate them if there are no CONFIG_HEADERS.
9633 # This happens for instance with `./config.status Makefile'.
9634 if test -n "$CONFIG_HEADERS"; then
9635 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9639 # Transform confdefs.h into an awk script `defines.awk', embedded as
9640 # here-document in config.status, that substitutes the proper values into
9641 # config.h.in to produce config.h.
9643 # Create a delimiter string that does not exist in confdefs.h, to ease
9644 # handling of long lines.
9646 for ac_last_try in false false :; do
9647 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9648 if test -z "$ac_tt"; then
9650 elif $ac_last_try; then
9651 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9653 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9657 # For the awk script, D is an array of macro values keyed by name,
9658 # likewise P contains macro parameters if any. Preserve backslash
9659 # newline sequences.
9661 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9663 s/.\{148\}/&'"$ac_delim"'/g
9666 s/^[ ]*#[ ]*define[ ][ ]*/ /
9673 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9675 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9679 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9680 D["\1"]=" \3\\\\\\n"\\/p
9682 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9687 s/.\{148\}/&'"$ac_delim"'/g
9692 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9695 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9697 ' <confdefs.h | sed '
9698 s/'"$ac_delim"'/"\\\
9699 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9702 for (key in D) D_is_set[key] = 1
9705 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9707 split(line, arg, " ")
9708 if (arg[1] == "#") {
9712 defundef = substr(arg[1], 2)
9715 split(mac1, mac2, "(") #)
9717 prefix = substr(line, 1, index(line, defundef) - 1)
9718 if (D_is_set[macro]) {
9719 # Preserve the white space surrounding the "#".
9720 print prefix "define", macro P[macro] D[macro]
9723 # Replace #undef with comments. This is necessary, for example,
9724 # in the case of _POSIX_SOURCE, which is predefined and required
9725 # on some systems where configure will not decide to define it.
9726 if (defundef == "undef") {
9727 print "/*", prefix defundef, macro, "*/"
9735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9736 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9737 fi # test -n "$CONFIG_HEADERS"
9740 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9745 :[FHLC]) ac_mode=$ac_tag; continue;;
9747 case $ac_mode$ac_tag in
9749 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9750 :[FH]-) ac_tag=-:-;;
9751 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9768 -) ac_f="$ac_tmp/stdin";;
9769 *) # Look for the file first in the build tree, then in the source tree
9770 # (if the path is not absolute). The absolute path cannot be DOS-style,
9771 # because $ac_f cannot contain `:'.
9775 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9777 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9779 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9780 as_fn_append ac_file_inputs " '$ac_f'"
9783 # Let's still pretend it is `configure' which instantiates (i.e., don't
9784 # use $as_me), people would be surprised to read:
9785 # /* config.h. Generated by config.status. */
9786 configure_input='Generated from '`
9787 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9789 if test x"$ac_file" != x-; then
9790 configure_input="$ac_file. $configure_input"
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9792 $as_echo "$as_me: creating $ac_file" >&6;}
9794 # Neutralize special characters interpreted by sed in replacement strings.
9795 case $configure_input in #(
9796 *\&* | *\|* | *\\* )
9797 ac_sed_conf_input=`$as_echo "$configure_input" |
9798 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9799 *) ac_sed_conf_input=$configure_input;;
9803 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9804 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9809 ac_dir=`$as_dirname -- "$ac_file" ||
9810 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9811 X"$ac_file" : 'X\(//\)[^/]' \| \
9812 X"$ac_file" : 'X\(//\)$' \| \
9813 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9814 $as_echo X"$ac_file" |
9815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9832 as_dir="$ac_dir"; as_fn_mkdir_p
9836 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9838 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9839 # A ".." for each directory in $ac_dir_suffix.
9840 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9841 case $ac_top_builddir_sub in
9842 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9843 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9846 ac_abs_top_builddir=$ac_pwd
9847 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9848 # for backward compatibility:
9849 ac_top_builddir=$ac_top_build_prefix
9852 .) # We are building in place.
9854 ac_top_srcdir=$ac_top_builddir_sub
9855 ac_abs_top_srcdir=$ac_pwd ;;
9856 [\\/]* | ?:[\\/]* ) # Absolute name.
9857 ac_srcdir=$srcdir$ac_dir_suffix;
9858 ac_top_srcdir=$srcdir
9859 ac_abs_top_srcdir=$srcdir ;;
9861 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9862 ac_top_srcdir=$ac_top_build_prefix$srcdir
9863 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9865 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9875 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9876 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9880 [\\/$]* | ?:[\\/]* ) ;;
9881 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9886 # If the template does not know about datarootdir, expand it.
9887 # FIXME: This hack should be removed a few years after 2.60.
9888 ac_datarootdir_hack=; ac_datarootdir_seen=
9899 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9900 *datarootdir*) ac_datarootdir_seen=yes;;
9901 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9903 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9906 ac_datarootdir_hack='
9907 s&@datadir@&$datadir&g
9908 s&@docdir@&$docdir&g
9909 s&@infodir@&$infodir&g
9910 s&@localedir@&$localedir&g
9911 s&@mandir@&$mandir&g
9912 s&\\\${datarootdir}&$datarootdir&g' ;;
9916 # Neutralize VPATH when `$srcdir' = `.'.
9917 # Shell code in configure.ac might set extrasub.
9918 # FIXME: do we really want to maintain this feature?
9919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9920 ac_sed_extra="$ac_vpsub
9923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9926 s|@configure_input@|$ac_sed_conf_input|;t t
9927 s&@top_builddir@&$ac_top_builddir_sub&;t t
9928 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9929 s&@srcdir@&$ac_srcdir&;t t
9930 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9931 s&@top_srcdir@&$ac_top_srcdir&;t t
9932 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9933 s&@builddir@&$ac_builddir&;t t
9934 s&@abs_builddir@&$ac_abs_builddir&;t t
9935 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9936 s&@INSTALL@&$ac_INSTALL&;t t
9937 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9938 $ac_datarootdir_hack
9940 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9941 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9943 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9944 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9945 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9946 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9948 which seems to be undefined. Please make sure it is defined" >&5
9949 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9950 which seems to be undefined. Please make sure it is defined" >&2;}
9952 rm -f "$ac_tmp/stdin"
9954 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9955 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9957 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9963 if test x"$ac_file" != x-; then
9965 $as_echo "/* $configure_input */" \
9966 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9967 } >"$ac_tmp/config.h" \
9968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9969 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9971 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9974 mv "$ac_tmp/config.h" "$ac_file" \
9975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9978 $as_echo "/* $configure_input */" \
9979 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9980 || as_fn_error $? "could not create -" "$LINENO" 5
9982 # Compute "$ac_file"'s index in $config_headers.
9985 for _am_header in $config_headers :; do
9987 $_am_arg | $_am_arg:* )
9990 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9993 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9994 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9995 X"$_am_arg" : 'X\(//\)[^/]' \| \
9996 X"$_am_arg" : 'X\(//\)$' \| \
9997 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9998 $as_echo X"$_am_arg" |
9999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10003 /^X\(\/\/\)[^/].*/{
10015 s/.*/./; q'`/stamp-h$_am_stamp_count
10018 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10019 $as_echo "$as_me: executing $ac_file commands" >&6;}
10024 case $ac_file$ac_mode in
10025 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10026 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10027 # are listed without --file. Let's play safe and only enable the eval
10028 # if we detect the quoting.
10029 case $CONFIG_FILES in
10030 *\'*) eval set x "$CONFIG_FILES" ;;
10031 *) set x $CONFIG_FILES ;;
10036 # Strip MF so we end up with the name of the file.
10037 mf=`echo "$mf" | sed -e 's/:.*$//'`
10038 # Check whether this is an Automake generated Makefile or not.
10039 # We used to match only the files named `Makefile.in', but
10040 # some people rename them; so instead we look at the file content.
10041 # Grep'ing the first line is not enough: some people post-process
10042 # each Makefile.in and add a new line on top of each file to say so.
10043 # Grep'ing the whole file is not good either: AIX grep has a line
10044 # limit of 2048, but all sed's we know have understand at least 4000.
10045 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10046 dirpart=`$as_dirname -- "$mf" ||
10047 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10048 X"$mf" : 'X\(//\)[^/]' \| \
10049 X"$mf" : 'X\(//\)$' \| \
10050 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10056 /^X\(\/\/\)[^/].*/{
10072 # Extract the definition of DEPDIR, am__include, and am__quote
10073 # from the Makefile without running `make'.
10074 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10075 test -z "$DEPDIR" && continue
10076 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10077 test -z "am__include" && continue
10078 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10079 # When using ansi2knr, U may be empty or an underscore; expand it
10080 U=`sed -n 's/^U = //p' < "$mf"`
10081 # Find all dependency output files, they are included files with
10082 # $(DEPDIR) in their names. We invoke sed twice because it is the
10083 # simplest approach to changing $(DEPDIR) to its actual value in the
10085 for file in `sed -n "
10086 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10087 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10088 # Make sure the directory exists.
10089 test -f "$dirpart/$file" && continue
10090 fdir=`$as_dirname -- "$file" ||
10091 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10092 X"$file" : 'X\(//\)[^/]' \| \
10093 X"$file" : 'X\(//\)$' \| \
10094 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10095 $as_echo X"$file" |
10096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10100 /^X\(\/\/\)[^/].*/{
10113 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10114 # echo "creating $dirpart/$file"
10115 echo '# dummy' > "$dirpart/$file"
10120 "po-directories":C)
10121 for ac_file in $CONFIG_FILES; do
10122 # Support "outfile[:infile[:infile...]]"
10124 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10126 # PO directories have a Makefile.in generated from Makefile.in.in.
10127 case "$ac_file" in */Makefile.in)
10128 # Adjust a relative srcdir.
10129 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10130 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10131 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10132 # In autoconf-2.13 it is called $ac_given_srcdir.
10133 # In autoconf-2.50 it is called $srcdir.
10134 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10135 case "$ac_given_srcdir" in
10136 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10137 /*) top_srcdir="$ac_given_srcdir" ;;
10138 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10140 # Treat a directory as a PO directory if and only if it has a
10141 # POTFILES.in file. This allows packages to have multiple PO
10142 # directories under different names or in different locations.
10143 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10144 rm -f "$ac_dir/POTFILES"
10145 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10146 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10147 POMAKEFILEDEPS="POTFILES.in"
10148 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10149 # on $ac_dir but don't depend on user-specified configuration
10151 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10152 # The LINGUAS file contains the set of available languages.
10153 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10154 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10156 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10157 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10158 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10159 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10161 # The set of available languages was given in configure.in.
10162 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10163 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10166 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10167 # Compute UPDATEPOFILES
10168 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10169 # Compute DUMMYPOFILES
10170 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10172 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10173 case "$ac_given_srcdir" in
10175 *) srcdirpre='$(srcdir)/' ;;
10181 for lang in $ALL_LINGUAS; do
10182 POFILES="$POFILES $srcdirpre$lang.po"
10183 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10184 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10185 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10187 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10188 # environment variable.
10190 if test -n "$ALL_LINGUAS"; then
10191 for presentlang in $ALL_LINGUAS; do
10193 if test "%UNSET%" != "$LINGUAS"; then
10194 desiredlanguages="$LINGUAS"
10196 desiredlanguages="$ALL_LINGUAS"
10198 for desiredlang in $desiredlanguages; do
10199 # Use the presentlang catalog if desiredlang is
10200 # a. equal to presentlang, or
10201 # b. a variant of presentlang (because in this case,
10202 # presentlang can be used as a fallback for messages
10203 # which are not translated in the desiredlang catalog).
10204 case "$desiredlang" in
10205 "$presentlang"*) useit=yes;;
10208 if test $useit = yes; then
10209 INST_LINGUAS="$INST_LINGUAS $presentlang"
10214 if test -n "$INST_LINGUAS"; then
10215 for lang in $INST_LINGUAS; do
10216 CATALOGS="$CATALOGS $lang.gmo"
10219 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10220 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"
10221 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10222 if test -f "$f"; then
10224 *.orig | *.bak | *~) ;;
10225 *) cat "$f" >> "$ac_dir/Makefile" ;;
10240 ac_clean_files=$ac_clean_files_save
10242 test $ac_write_fail = 0 ||
10243 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10246 # configure is writing to config.log, and then calls config.status.
10247 # config.status does its own redirection, appending to config.log.
10248 # Unfortunately, on DOS this fails, as config.log is still kept open
10249 # by configure, so config.status won't be able to write to it; its
10250 # output is simply discarded. So we exec the FD to /dev/null,
10251 # effectively closing config.log, so it can be properly (re)opened and
10252 # appended to by config.status. When coming back to configure, we
10253 # need to make the FD available again.
10254 if test "$no_create" != yes; then
10256 ac_config_status_args=
10257 test "$silent" = yes &&
10258 ac_config_status_args="$ac_config_status_args --quiet"
10260 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10262 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10263 # would make configure fail if this is the last instruction.
10264 $ac_cs_success || as_fn_exit 1
10266 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10268 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}