2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for psensor 0.6.2.11.
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.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and jeanfi@gmail.com
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
369 as_status=$1; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix=/usr/local
545 ac_config_libobj_dir=.
552 # Identity of this package.
553 PACKAGE_NAME='psensor'
554 PACKAGE_TARNAME='psensor'
555 PACKAGE_VERSION='0.6.2.11'
556 PACKAGE_STRING='psensor 0.6.2.11'
557 PACKAGE_BUGREPORT='jeanfi@gmail.com'
558 PACKAGE_URL='http://wpitchoune.net/psensor'
560 ac_unique_file="src/compat.h"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
598 ac_subst_vars='am__EXEEXT_FALSE
665 XGETTEXT_EXTRA_OPTIONS
673 GETTEXT_MACRO_VERSION
705 INSTALL_STRIP_PROGRAM
747 program_transform_name
760 enable_option_checking
761 enable_dependency_tracking
771 ac_precious_vars='build_alias
808 # Initialize some variables set by options.
810 ac_init_version=false
811 ac_unrecognized_opts=
813 # The variables have the same names as the options, with
814 # dashes changed to underlines.
822 program_transform_name=s,x,x,
830 # Installation directory options.
831 # These are left unexpanded so users can "make install exec_prefix=/foo"
832 # and all the variables that are supposed to be based on exec_prefix
833 # by default will actually change.
834 # Use braces instead of parens because sh, perl, etc. also accept them.
835 # (The list follows the same order as the GNU Coding Standards.)
836 bindir='${exec_prefix}/bin'
837 sbindir='${exec_prefix}/sbin'
838 libexecdir='${exec_prefix}/libexec'
839 datarootdir='${prefix}/share'
840 datadir='${datarootdir}'
841 sysconfdir='${prefix}/etc'
842 sharedstatedir='${prefix}/com'
843 localstatedir='${prefix}/var'
844 includedir='${prefix}/include'
845 oldincludedir='/usr/include'
846 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
847 infodir='${datarootdir}/info'
852 libdir='${exec_prefix}/lib'
853 localedir='${datarootdir}/locale'
854 mandir='${datarootdir}/man'
860 # If the previous option needs an argument, assign it.
861 if test -n "$ac_prev"; then
862 eval $ac_prev=\$ac_option
868 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 # Accept the important Cygnus configure options, so we can diagnose typos.
875 case $ac_dashdash$ac_option in
879 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884 -build | --build | --buil | --bui | --bu)
885 ac_prev=build_alias ;;
886 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887 build_alias=$ac_optarg ;;
889 -cache-file | --cache-file | --cache-fil | --cache-fi \
890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891 ac_prev=cache_file ;;
892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894 cache_file=$ac_optarg ;;
897 cache_file=config.cache ;;
899 -datadir | --datadir | --datadi | --datad)
901 -datadir=* | --datadir=* | --datadi=* | --datad=*)
902 datadir=$ac_optarg ;;
904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905 | --dataroo | --dataro | --datar)
906 ac_prev=datarootdir ;;
907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909 datarootdir=$ac_optarg ;;
911 -disable-* | --disable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
925 eval enable_$ac_useropt=no ;;
927 -docdir | --docdir | --docdi | --doc | --do)
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 -enable-* | --enable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
951 eval enable_$ac_useropt=\$ac_optarg ;;
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
966 -help | --help | --hel | --he | -h)
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 htmldir=$ac_optarg ;;
984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
996 -libdir | --libdir | --libdi | --libd)
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1013 -localstatedir | --localstatedir | --localstatedi | --localstated \
1014 | --localstate | --localstat | --localsta | --localst | --locals)
1015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018 localstatedir=$ac_optarg ;;
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1087 -psdir | --psdir | --psdi | --psd | --ps)
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 sbindir=$ac_optarg ;;
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 sharedstatedir=$ac_optarg ;;
1113 -site | --site | --sit)
1115 -site=* | --site=* | --sit=*)
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1155 eval with_$ac_useropt=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error $? "invalid package name: $ac_useropt"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1171 eval with_$ac_useropt=no ;;
1174 # Obsolete; use --with-x.
1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1178 | --x-incl | --x-inc | --x-in | --x-i)
1179 ac_prev=x_includes ;;
1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1182 x_includes=$ac_optarg ;;
1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1186 ac_prev=x_libraries ;;
1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1189 x_libraries=$ac_optarg ;;
1191 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1192 Try \`$0 --help' for more information"
1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1197 # Reject names that are not valid shell variable names.
1198 case $ac_envvar in #(
1199 '' | [0-9]* | *[!_$as_cr_alnum]* )
1200 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202 eval $ac_envvar=\$ac_optarg
1203 export $ac_envvar ;;
1206 # FIXME: should be removed in autoconf 3.0.
1207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1210 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1216 if test -n "$ac_prev"; then
1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1218 as_fn_error $? "missing argument to $ac_option"
1221 if test -n "$ac_unrecognized_opts"; then
1222 case $enable_option_checking in
1224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1225 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229 # Check all directory arguments for consistency.
1230 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1231 datadir sysconfdir sharedstatedir localstatedir includedir \
1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1233 libdir localedir mandir
1235 eval ac_val=\$$ac_var
1236 # Remove trailing slashes.
1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1240 eval $ac_var=\$ac_val;;
1242 # Be sure to have absolute directory names.
1244 [\\/$]* | ?:[\\/]* ) continue;;
1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250 # There might be people who depend on the old broken behavior: `$host'
1251 # used to hold the argument of --host etc.
1252 # FIXME: To remove some day.
1255 target=$target_alias
1257 # FIXME: To remove some day.
1258 if test "x$host_alias" != x; then
1259 if test "x$build_alias" = x; then
1260 cross_compiling=maybe
1261 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1262 If a cross compiler is detected then cross compile mode will be used" >&2
1263 elif test "x$build_alias" != "x$host_alias"; then
1269 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271 test "$silent" = yes && exec 6>/dev/null
1274 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di=`ls -di .` &&
1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277 as_fn_error $? "working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 as_fn_error $? "pwd does not report name of working directory"
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 $as_echo X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1314 ac_srcdir_defaulted=no
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334 for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342 # Report the --help message.
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1348 \`configure' configures psensor 0.6.2.11 to adapt to many kinds of systems.
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1355 Defaults for the options are specified in brackets.
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking ...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1379 For better control, use the options below.
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/psensor]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1411 --x-includes=DIR X include files are in DIR
1412 --x-libraries=DIR X library files are in DIR
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive ) echo "Configuration of psensor 0.6.2.11:";;
1427 --disable-option-checking ignore unrecognized --enable/--with options
1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1430 --disable-dependency-tracking speeds up one-time build
1431 --enable-dependency-tracking do not reject slow dependency extractors
1432 --disable-nls do not use Native Language Support
1433 --disable-rpath do not hardcode runtime library paths
1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1438 --with-x use the X Window System
1439 --with-gnu-ld assume the C compiler uses GNU ld default=no
1440 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1441 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1442 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1443 --without-libintl-prefix don't search for libintl in includedir and libdir
1444 --with-libatiadl=DIR use libatiadlxx in DIR
1445 --with-gtop=yes|no use gtop
1447 Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 LIBS libraries to pass to the linker, e.g. -l<library>
1453 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir>
1455 XMKMF Path to xmkmf, Makefile generator for X Window System
1457 PKG_CONFIG path to pkg-config utility
1459 directories to add to pkg-config's search path
1461 path overriding pkg-config's built-in search path
1462 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1463 X11_LIBS linker flags for X11, overriding pkg-config
1464 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1465 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1466 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1467 GTK_LIBS linker flags for GTK, overriding pkg-config
1469 C compiler flags for GCONF, overriding pkg-config
1470 GCONF_LIBS linker flags for GCONF, overriding pkg-config
1472 C compiler flags for LIBNOTIFY, overriding pkg-config
1474 linker flags for LIBNOTIFY, overriding pkg-config
1476 C compiler flags for APPINDICATOR, overriding pkg-config
1478 linker flags for APPINDICATOR, overriding pkg-config
1479 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1480 CURL_LIBS linker flags for CURL, overriding pkg-config
1481 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1482 JSON_LIBS linker flags for JSON, overriding pkg-config
1484 C compiler flags for UNITY, overriding pkg-config
1485 UNITY_LIBS linker flags for UNITY, overriding pkg-config
1486 LIBMICROHTTPD_CFLAGS
1487 C compiler flags for LIBMICROHTTPD, overriding pkg-config
1489 linker flags for LIBMICROHTTPD, overriding pkg-config
1490 GTOP_CFLAGS C compiler flags for GTOP, overriding pkg-config
1491 GTOP_LIBS linker flags for GTOP, overriding pkg-config
1493 Use these variables to override the choices made by `configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1496 Report bugs to <jeanfi@gmail.com>.
1497 psensor home page: <http://wpitchoune.net/psensor>.
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1527 .) # We are building in place.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1560 psensor configure 0.6.2.11
1561 generated by GNU Autoconf 2.67
1563 Copyright (C) 2010 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1570 ## ------------------------ ##
1571 ## Autoconf initialization. ##
1572 ## ------------------------ ##
1574 # ac_fn_c_try_compile LINENO
1575 # --------------------------
1576 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_compile ()
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext; then :
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608 as_fn_set_status $ac_retval
1610 } # ac_fn_c_try_compile
1612 # ac_fn_c_try_cpp LINENO
1613 # ----------------------
1614 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 if { { ac_try="$ac_cpp conftest.$ac_ext"
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } > conftest.i && {
1634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1645 as_fn_set_status $ac_retval
1649 # ac_fn_c_try_link LINENO
1650 # -----------------------
1651 # Try to link conftest.$ac_ext, and return whether this succeeded.
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest$ac_exeext
1656 if { { ac_try="$ac_link"
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>conftest.err
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest$ac_exeext && {
1675 test "$cross_compiling" = yes ||
1676 $as_test_x conftest$ac_exeext
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1685 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1686 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1687 # interfere with the next link command; also delete a directory that is
1688 # left behind by Apple's compiler. We do this before executing the actions.
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691 as_fn_set_status $ac_retval
1693 } # ac_fn_c_try_link
1695 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1696 # -------------------------------------------------------
1697 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1698 # the include files in INCLUDES and setting the cache variable VAR
1700 ac_fn_c_check_header_mongrel ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if eval "test \"\${$3+set}\"" = set; then :
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if eval "test \"\${$3+set}\"" = set; then :
1707 $as_echo_n "(cached) " >&6
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1713 # Is the header compilable?
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1715 $as_echo_n "checking $2 usability... " >&6; }
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1721 if ac_fn_c_try_compile "$LINENO"; then :
1722 ac_header_compiler=yes
1724 ac_header_compiler=no
1726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1728 $as_echo "$ac_header_compiler" >&6; }
1730 # Is the header present?
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1732 $as_echo_n "checking $2 presence... " >&6; }
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1737 if ac_fn_c_try_cpp "$LINENO"; then :
1738 ac_header_preproc=yes
1740 ac_header_preproc=no
1742 rm -f conftest.err conftest.i conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1744 $as_echo "$ac_header_preproc" >&6; }
1746 # So? What about this header?
1747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1750 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1752 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1756 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1758 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1760 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1762 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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;}
1765 ( $as_echo "## ------------------------------- ##
1766 ## Report this to jeanfi@gmail.com ##
1767 ## ------------------------------- ##"
1768 ) | sed "s/^/$as_me: WARNING: /" >&2
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if eval "test \"\${$3+set}\"" = set; then :
1774 $as_echo_n "(cached) " >&6
1776 eval "$3=\$ac_header_compiler"
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784 } # ac_fn_c_check_header_mongrel
1786 # ac_fn_c_try_run LINENO
1787 # ----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1789 # that executables *can* be run.
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if { { ac_try="$ac_link"
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>&5
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1804 { { case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_try") 2>&5
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; }; }; then :
1816 $as_echo "$as_me: program exited with status $ac_status" >&5
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820 ac_retval=$ac_status
1822 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824 as_fn_set_status $ac_retval
1828 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1829 # -------------------------------------------------------
1830 # Tests whether HEADER exists and can be compiled using the include files in
1831 # INCLUDES, setting the cache variable VAR accordingly.
1832 ac_fn_c_check_header_compile ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if eval "test \"\${$3+set}\"" = set; then :
1838 $as_echo_n "(cached) " >&6
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1845 if ac_fn_c_try_compile "$LINENO"; then :
1850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1857 } # ac_fn_c_check_header_compile
1859 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1860 # -------------------------------------------
1861 # Tests whether TYPE exists after having included INCLUDES, setting cache
1862 # variable VAR accordingly.
1863 ac_fn_c_check_type ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if eval "test \"\${$3+set}\"" = set; then :
1869 $as_echo_n "(cached) " >&6
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h. */
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1897 if ac_fn_c_try_compile "$LINENO"; then :
1902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908 $as_echo "$ac_res" >&6; }
1909 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 } # ac_fn_c_check_type
1913 # ac_fn_c_check_func LINENO FUNC VAR
1914 # ----------------------------------
1915 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1916 ac_fn_c_check_func ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920 $as_echo_n "checking for $2... " >&6; }
1921 if eval "test \"\${$3+set}\"" = set; then :
1922 $as_echo_n "(cached) " >&6
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1928 #define $2 innocuous_$2
1930 /* System header to define __stub macros and hopefully few prototypes,
1931 which can conflict with char $2 (); below.
1932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1933 <limits.h> exists even on freestanding compilers. */
1936 # include <limits.h>
1938 # include <assert.h>
1943 /* Override any GCC internal prototype to avoid an error.
1944 Use char because int might match the return type of a GCC
1945 builtin and then its argument prototype would still apply. */
1950 /* The GNU C library defines this for functions which it implements
1951 to always fail with ENOSYS. Some functions are actually named
1952 something starting with __ and the normal name is an alias. */
1953 #if defined __stub_$2 || defined __stub___$2
1965 if ac_fn_c_try_link "$LINENO"; then :
1970 rm -f core conftest.err conftest.$ac_objext \
1971 conftest$ac_exeext conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1976 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1978 } # ac_fn_c_check_func
1979 cat >config.log <<_ACEOF
1980 This file contains any messages produced by compilers while
1981 running configure, to aid debugging if configure makes a mistake.
1983 It was created by psensor $as_me 0.6.2.11, which was
1984 generated by GNU Autoconf 2.67. Invocation command line was
1996 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1997 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1998 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1999 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2000 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2002 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2003 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2005 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2006 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2007 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2008 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2009 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2010 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2011 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 test -z "$as_dir" && as_dir=.
2020 $as_echo "PATH: $as_dir"
2036 # Keep a trace of the command line.
2037 # Strip out --no-create and --no-recursion so they do not pile up.
2038 # Strip out --silent because we don't want to record it for future runs.
2039 # Also quote any args containing shell meta-characters.
2040 # Make two passes to allow for proper duplicate-argument suppression.
2044 ac_must_keep_next=false
2050 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2052 | -silent | --silent | --silen | --sile | --sil)
2055 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2058 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2060 as_fn_append ac_configure_args1 " '$ac_arg'"
2061 if test $ac_must_keep_next = true; then
2062 ac_must_keep_next=false # Got value, back to normal.
2065 *=* | --config-cache | -C | -disable-* | --disable-* \
2066 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2067 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2068 | -with-* | --with-* | -without-* | --without-* | --x)
2069 case "$ac_configure_args0 " in
2070 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2073 -* ) ac_must_keep_next=true ;;
2076 as_fn_append ac_configure_args " '$ac_arg'"
2081 { ac_configure_args0=; unset ac_configure_args0;}
2082 { ac_configure_args1=; unset ac_configure_args1;}
2084 # When interrupted or exit'd, cleanup temporary files, and complete
2085 # config.log. We remove comments because anyway the quotes in there
2086 # would cause problems or look ugly.
2087 # WARNING: Use '\'' to represent an apostrophe within the trap.
2088 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2089 trap 'exit_status=$?
2090 # Save into config.log some information that might help in debugging.
2094 $as_echo "## ---------------- ##
2095 ## Cache variables. ##
2096 ## ---------------- ##"
2098 # The following way of writing the cache mishandles newlines in values,
2100 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2101 eval ac_val=\$$ac_var
2105 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2106 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2109 _ | IFS | as_nl) ;; #(
2110 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2111 *) { eval $ac_var=; unset $ac_var;} ;;
2116 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2117 *${as_nl}ac_space=\ *)
2119 "s/'\''/'\''\\\\'\'''\''/g;
2120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2123 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2130 $as_echo "## ----------------- ##
2131 ## Output variables. ##
2132 ## ----------------- ##"
2134 for ac_var in $ac_subst_vars
2136 eval ac_val=\$$ac_var
2138 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 $as_echo "$ac_var='\''$ac_val'\''"
2144 if test -n "$ac_subst_files"; then
2145 $as_echo "## ------------------- ##
2146 ## File substitutions. ##
2147 ## ------------------- ##"
2149 for ac_var in $ac_subst_files
2151 eval ac_val=\$$ac_var
2153 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155 $as_echo "$ac_var='\''$ac_val'\''"
2160 if test -s confdefs.h; then
2161 $as_echo "## ----------- ##
2168 test "$ac_signal" != 0 &&
2169 $as_echo "$as_me: caught signal $ac_signal"
2170 $as_echo "$as_me: exit $exit_status"
2172 rm -f core *.core core.conftest.* &&
2173 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2176 for ac_signal in 1 2 13 15; do
2177 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2182 rm -f -r conftest* confdefs.h
2184 $as_echo "/* confdefs.h */" > confdefs.h
2186 # Predefined preprocessor variables.
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_NAME "$PACKAGE_NAME"
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_STRING "$PACKAGE_STRING"
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_URL "$PACKAGE_URL"
2213 # Let the site file select an alternate cache file if it wants to.
2214 # Prefer an explicitly selected file to automatically selected ones.
2217 if test -n "$CONFIG_SITE"; then
2218 # We do not want a PATH search for config.site.
2219 case $CONFIG_SITE in #((
2220 -*) ac_site_file1=./$CONFIG_SITE;;
2221 */*) ac_site_file1=$CONFIG_SITE;;
2222 *) ac_site_file1=./$CONFIG_SITE;;
2224 elif test "x$prefix" != xNONE; then
2225 ac_site_file1=$prefix/share/config.site
2226 ac_site_file2=$prefix/etc/config.site
2228 ac_site_file1=$ac_default_prefix/share/config.site
2229 ac_site_file2=$ac_default_prefix/etc/config.site
2231 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2233 test "x$ac_site_file" = xNONE && continue
2234 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2236 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2237 sed 's/^/| /' "$ac_site_file" >&5
2239 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2241 as_fn_error $? "failed to load site script $ac_site_file
2242 See \`config.log' for more details" "$LINENO" 5 ; }
2246 if test -r "$cache_file"; then
2247 # Some versions of bash will fail to source /dev/null (special files
2248 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2249 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2251 $as_echo "$as_me: loading cache $cache_file" >&6;}
2253 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2254 *) . "./$cache_file";;
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2259 $as_echo "$as_me: creating cache $cache_file" >&6;}
2263 gt_needs="$gt_needs "
2264 # Check that the precious variables saved in the cache have kept the same
2266 ac_cache_corrupted=false
2267 for ac_var in $ac_precious_vars; do
2268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2269 eval ac_new_set=\$ac_env_${ac_var}_set
2270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2271 eval ac_new_val=\$ac_env_${ac_var}_value
2272 case $ac_old_set,$ac_new_set in
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2275 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2276 ac_cache_corrupted=: ;;
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2279 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2280 ac_cache_corrupted=: ;;
2283 if test "x$ac_old_val" != "x$ac_new_val"; then
2284 # differences in whitespace do not lead to failure.
2285 ac_old_val_w=`echo x $ac_old_val`
2286 ac_new_val_w=`echo x $ac_new_val`
2287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2290 ac_cache_corrupted=:
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2294 eval $ac_var=\$ac_old_val
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2297 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2299 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2302 # Pass precious variables to config.status.
2303 if test "$ac_new_set" = set; then
2305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2306 *) ac_arg=$ac_var=$ac_new_val ;;
2308 case " $ac_configure_args " in
2309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2314 if $ac_cache_corrupted; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2319 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2321 ## -------------------- ##
2322 ## Main body of script. ##
2323 ## -------------------- ##
2326 ac_cpp='$CPP $CPPFLAGS'
2327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333 am__api_version='1.11'
2336 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2337 if test -f "$ac_dir/install-sh"; then
2339 ac_install_sh="$ac_aux_dir/install-sh -c"
2341 elif test -f "$ac_dir/install.sh"; then
2343 ac_install_sh="$ac_aux_dir/install.sh -c"
2345 elif test -f "$ac_dir/shtool"; then
2347 ac_install_sh="$ac_aux_dir/shtool install -c"
2351 if test -z "$ac_aux_dir"; then
2352 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2355 # These three variables are undocumented and unsupported,
2356 # and are intended to be withdrawn in a future Autoconf release.
2357 # They can cause serious problems if a builder's source tree is in a directory
2358 # whose full name contains unusual characters.
2359 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2360 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2361 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2364 # Find a good install program. We prefer a C program (faster),
2365 # so one script is as good as another. But avoid the broken or
2366 # incompatible versions:
2367 # SysV /etc/install, /usr/sbin/install
2368 # SunOS /usr/etc/install
2369 # IRIX /sbin/install
2371 # AmigaOS /C/install, which installs bootblocks on floppy discs
2372 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2373 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2374 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2375 # OS/2's system install, which has a completely different semantic
2376 # ./install, which can be erroneously created by make from ./install.sh.
2377 # Reject install programs that cannot install multiple files.
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2379 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2380 if test -z "$INSTALL"; then
2381 if test "${ac_cv_path_install+set}" = set; then :
2382 $as_echo_n "(cached) " >&6
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 test -z "$as_dir" && as_dir=.
2389 # Account for people who put trailing slashes in PATH elements.
2390 case $as_dir/ in #((
2391 ./ | .// | /[cC]/* | \
2392 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2393 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2396 # OSF1 and SCO ODT 3.0 have their own names for install.
2397 # Don't use installbsd from OSF since it installs stuff as root
2399 for ac_prog in ginstall scoinst install; do
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2402 if test $ac_prog = install &&
2403 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404 # AIX install. It has an incompatible calling convention.
2406 elif test $ac_prog = install &&
2407 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2408 # program-specific install script used by HP pwplus--don't use.
2411 rm -rf conftest.one conftest.two conftest.dir
2412 echo one > conftest.one
2413 echo two > conftest.two
2415 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2416 test -s conftest.one && test -s conftest.two &&
2417 test -s conftest.dir/conftest.one &&
2418 test -s conftest.dir/conftest.two
2420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2433 rm -rf conftest.one conftest.two conftest.dir
2436 if test "${ac_cv_path_install+set}" = set; then
2437 INSTALL=$ac_cv_path_install
2439 # As a last resort, use the slow shell script. Don't cache a
2440 # value for INSTALL within a source directory, because that will
2441 # break other packages using the cache if that directory is
2442 # removed, or if the value is a relative name.
2443 INSTALL=$ac_install_sh
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2447 $as_echo "$INSTALL" >&6; }
2449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2450 # It thinks the first close brace ends the variable substitution.
2451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2458 $as_echo_n "checking whether build environment is sane... " >&6; }
2461 echo timestamp > conftest.file
2462 # Reject unsafe characters in $srcdir or the absolute working directory
2463 # name. Accept space and tab only in the latter.
2467 *[\\\"\#\$\&\'\`$am_lf]*)
2468 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2471 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2472 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2475 # Do `set' in a subshell so we don't clobber the current shell's
2476 # arguments. Must try -L first in case configure is actually a
2477 # symlink; some systems play weird games with the mod time of symlinks
2478 # (eg FreeBSD returns the mod time of the symlink's containing
2481 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2482 if test "$*" = "X"; then
2484 set X `ls -t "$srcdir/configure" conftest.file`
2487 if test "$*" != "X $srcdir/configure conftest.file" \
2488 && test "$*" != "X conftest.file $srcdir/configure"; then
2490 # If neither matched, then we have a broken ls. This can happen
2491 # if, for instance, CONFIG_SHELL is bash and it inherits a
2492 # broken ls alias from the environment. This has actually
2493 # happened. Such a system could not be considered "sane".
2494 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2495 alias in your environment" "$LINENO" 5
2498 test "$2" = conftest.file
2504 as_fn_error $? "newly created file is older than distributed files!
2505 Check your system clock" "$LINENO" 5
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2508 $as_echo "yes" >&6; }
2509 test "$program_prefix" != NONE &&
2510 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2511 # Use a double $ so make ignores it.
2512 test "$program_suffix" != NONE &&
2513 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2514 # Double any \ or $.
2515 # By default was `s,x,x', remove it if useless.
2516 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2517 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2519 # expand $ac_aux_dir to an absolute path
2520 am_aux_dir=`cd $ac_aux_dir && pwd`
2522 if test x"${MISSING+set}" != xset; then
2525 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2527 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2530 # Use eval to expand $SHELL
2531 if eval "$MISSING --run true"; then
2532 am_missing_run="$MISSING --run "
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2536 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2539 if test x"${install_sh}" != xset; then
2542 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2544 install_sh="\${SHELL} $am_aux_dir/install-sh"
2548 # Installed binaries are usually stripped using `strip' when the user
2549 # run `make install-strip'. However `strip' might not be the right
2550 # tool to use in cross-compilation environments, therefore Automake
2551 # will honor the `STRIP' environment variable to overrule this program.
2552 if test "$cross_compiling" != no; then
2553 if test -n "$ac_tool_prefix"; then
2554 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2555 set dummy ${ac_tool_prefix}strip; ac_word=$2
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557 $as_echo_n "checking for $ac_word... " >&6; }
2558 if test "${ac_cv_prog_STRIP+set}" = set; then :
2559 $as_echo_n "(cached) " >&6
2561 if test -n "$STRIP"; then
2562 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 STRIP=$ac_cv_prog_STRIP
2582 if test -n "$STRIP"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2584 $as_echo "$STRIP" >&6; }
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2592 if test -z "$ac_cv_prog_STRIP"; then
2594 # Extract the first word of "strip", so it can be a program name with args.
2595 set dummy strip; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2599 $as_echo_n "(cached) " >&6
2601 if test -n "$ac_ct_STRIP"; then
2602 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_ac_ct_STRIP="strip"
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2622 if test -n "$ac_ct_STRIP"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2624 $as_echo "$ac_ct_STRIP" >&6; }
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2630 if test "x$ac_ct_STRIP" = x; then
2633 case $cross_compiling:$ac_tool_warned in
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2637 ac_tool_warned=yes ;;
2642 STRIP="$ac_cv_prog_STRIP"
2646 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2649 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2650 if test -z "$MKDIR_P"; then
2651 if test "${ac_cv_path_mkdir+set}" = set; then :
2652 $as_echo_n "(cached) " >&6
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2658 test -z "$as_dir" && as_dir=.
2659 for ac_prog in mkdir gmkdir; do
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2662 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2663 'mkdir (GNU coreutils) '* | \
2664 'mkdir (coreutils) '* | \
2665 'mkdir (fileutils) '4.1*)
2666 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2676 test -d ./--version && rmdir ./--version
2677 if test "${ac_cv_path_mkdir+set}" = set; then
2678 MKDIR_P="$ac_cv_path_mkdir -p"
2680 # As a last resort, use the slow shell script. Don't cache a
2681 # value for MKDIR_P within a source directory, because that will
2682 # break other packages using the cache if that directory is
2683 # removed, or if the value is a relative name.
2684 MKDIR_P="$ac_install_sh -d"
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2688 $as_echo "$MKDIR_P" >&6; }
2692 [\\/$]* | ?:[\\/]*) ;;
2693 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2696 for ac_prog in gawk mawk nawk awk
2698 # Extract the first word of "$ac_prog", so it can be a program name with args.
2699 set dummy $ac_prog; ac_word=$2
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701 $as_echo_n "checking for $ac_word... " >&6; }
2702 if test "${ac_cv_prog_AWK+set}" = set; then :
2703 $as_echo_n "(cached) " >&6
2705 if test -n "$AWK"; then
2706 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 ac_cv_prog_AWK="$ac_prog"
2716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 if test -n "$AWK"; then
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2728 $as_echo "$AWK" >&6; }
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731 $as_echo "no" >&6; }
2735 test -n "$AWK" && break
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2739 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2741 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2742 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2743 $as_echo_n "(cached) " >&6
2745 cat >conftest.make <<\_ACEOF
2748 @echo '@@@%%%=$(MAKE)=@@@%%%'
2750 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2751 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2753 eval ac_cv_prog_make_${ac_make}_set=yes;;
2755 eval ac_cv_prog_make_${ac_make}_set=no;;
2759 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2761 $as_echo "yes" >&6; }
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 SET_MAKE="MAKE=${MAKE-make}"
2769 rm -rf .tst 2>/dev/null
2770 mkdir .tst 2>/dev/null
2771 if test -d .tst; then
2776 rmdir .tst 2>/dev/null
2778 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2779 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2780 # is not polluted with repeated "-I."
2781 am__isrc=' -I$(srcdir)'
2782 # test to see if srcdir already configured
2783 if test -f $srcdir/config.status; then
2784 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2788 # test whether we have cygpath
2789 if test -z "$CYGPATH_W"; then
2790 if (cygpath --version) >/dev/null 2>/dev/null; then
2791 CYGPATH_W='cygpath -w'
2798 # Define the identity of the package.
2803 cat >>confdefs.h <<_ACEOF
2804 #define PACKAGE "$PACKAGE"
2808 cat >>confdefs.h <<_ACEOF
2809 #define VERSION "$VERSION"
2812 # Some tools Automake needs.
2814 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2817 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2820 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2823 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2826 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2828 # We need awk for the "check" target. The system "awk" is bad on
2830 # Always define AMTAR for backward compatibility.
2832 AMTAR=${AMTAR-"${am_missing_run}tar"}
2834 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2842 ac_config_headers="$ac_config_headers config.h"
2845 # Checks for programs.
2847 ac_cpp='$CPP $CPPFLAGS'
2848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2851 if test -n "$ac_tool_prefix"; then
2852 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2853 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if test "${ac_cv_prog_CC+set}" = set; then :
2857 $as_echo_n "(cached) " >&6
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 if test -n "$CC"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2882 $as_echo "$CC" >&6; }
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2890 if test -z "$ac_cv_prog_CC"; then
2892 # Extract the first word of "gcc", so it can be a program name with args.
2893 set dummy gcc; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2897 $as_echo_n "(cached) " >&6
2899 if test -n "$ac_ct_CC"; then
2900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_ac_ct_CC="gcc"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2920 if test -n "$ac_ct_CC"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2922 $as_echo "$ac_ct_CC" >&6; }
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2928 if test "x$ac_ct_CC" = x; then
2931 case $cross_compiling:$ac_tool_warned in
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2935 ac_tool_warned=yes ;;
2943 if test -z "$CC"; then
2944 if test -n "$ac_tool_prefix"; then
2945 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2946 set dummy ${ac_tool_prefix}cc; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if test "${ac_cv_prog_CC+set}" = set; then :
2950 $as_echo_n "(cached) " >&6
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962 ac_cv_prog_CC="${ac_tool_prefix}cc"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 if test -n "$CC"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975 $as_echo "$CC" >&6; }
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2984 if test -z "$CC"; then
2985 # Extract the first word of "cc", so it can be a program name with args.
2986 set dummy cc; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if test "${ac_cv_prog_CC+set}" = set; then :
2990 $as_echo_n "(cached) " >&6
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3004 ac_prog_rejected=yes
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 if test $ac_prog_rejected = yes; then
3016 # We found a bogon in the path, so make sure we never use it.
3017 set dummy $ac_cv_prog_CC
3019 if test $# != 0; then
3020 # We chose a different compiler from the bogus one.
3021 # However, it has the same basename, so the bogon will be chosen
3022 # first if we set CC to just the basename; use the full file name.
3024 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3030 if test -n "$CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3040 if test -z "$CC"; then
3041 if test -n "$ac_tool_prefix"; then
3042 for ac_prog in cl.exe
3044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if test "${ac_cv_prog_CC+set}" = set; then :
3049 $as_echo_n "(cached) " >&6
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 if test -n "$CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074 $as_echo "$CC" >&6; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3081 test -n "$CC" && break
3084 if test -z "$CC"; then
3086 for ac_prog in cl.exe
3088 # Extract the first word of "$ac_prog", so it can be a program name with args.
3089 set dummy $ac_prog; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
3095 if test -n "$ac_ct_CC"; then
3096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_ac_ct_CC="$ac_prog"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3116 if test -n "$ac_ct_CC"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3118 $as_echo "$ac_ct_CC" >&6; }
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3125 test -n "$ac_ct_CC" && break
3128 if test "x$ac_ct_CC" = x; then
3131 case $cross_compiling:$ac_tool_warned in
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3135 ac_tool_warned=yes ;;
3144 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 as_fn_error $? "no acceptable C compiler found in \$PATH
3147 See \`config.log' for more details" "$LINENO" 5 ; }
3149 # Provide some information about the compiler.
3150 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3153 for ac_option in --version -v -V -qversion; do
3154 { { ac_try="$ac_compiler $ac_option >&5"
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160 $as_echo "$ac_try_echo"; } >&5
3161 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3163 if test -s conftest.err; then
3165 ... rest of stderr output deleted ...
3166 10q' conftest.err >conftest.er1
3167 cat conftest.er1 >&5
3169 rm -f conftest.er1 conftest.err
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }
3174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h. */
3185 ac_clean_files_save=$ac_clean_files
3186 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3187 # Try to create an executable without -o first, disregard a.out.
3188 # It will help us diagnose broken compilers, and finding out an intuition
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3191 $as_echo_n "checking whether the C compiler works... " >&6; }
3192 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3194 # The possible output files:
3195 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3198 for ac_file in $ac_files
3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3202 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3207 if { { ac_try="$ac_link_default"
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213 $as_echo "$ac_try_echo"; } >&5
3214 (eval "$ac_link_default") 2>&5
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }; then :
3218 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3219 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3220 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3221 # so that the user can short-circuit this test for compilers unknown to
3223 for ac_file in $ac_files ''
3225 test -f "$ac_file" || continue
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3230 # We found the default executable, but exeext='' is most
3234 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3236 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3238 # We set ac_cv_exeext here because the later test for it is not
3239 # safe: cross compilers may not add the suffix if given an `-o'
3240 # argument, so we may need to know it at that point already.
3241 # Even if this section looks crufty: it has the advantage of
3248 test "$ac_cv_exeext" = no && ac_cv_exeext=
3253 if test -z "$ac_file"; then :
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 $as_echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error 77 "C compiler cannot create executables
3262 See \`config.log' for more details" "$LINENO" 5 ; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265 $as_echo "yes" >&6; }
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3268 $as_echo_n "checking for C compiler default output file name... " >&6; }
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3270 $as_echo "$ac_file" >&6; }
3271 ac_exeext=$ac_cv_exeext
3273 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3274 ac_clean_files=$ac_clean_files_save
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3276 $as_echo_n "checking for suffix of executables... " >&6; }
3277 if { { ac_try="$ac_link"
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283 $as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_link") 2>&5
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }; then :
3288 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3289 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3290 # work properly (i.e., refer to `conftest.exe'), while it won't with
3292 for ac_file in conftest.exe conftest conftest.*; do
3293 test -f "$ac_file" || continue
3295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3296 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3305 See \`config.log' for more details" "$LINENO" 5 ; }
3307 rm -f conftest conftest$ac_cv_exeext
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3309 $as_echo "$ac_cv_exeext" >&6; }
3311 rm -f conftest.$ac_ext
3312 EXEEXT=$ac_cv_exeext
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3320 FILE *f = fopen ("conftest.out", "w");
3321 return ferror (f) || fclose (f) != 0;
3327 ac_clean_files="$ac_clean_files conftest.out"
3328 # Check that the compiler produces executables we can run. If not, either
3329 # the compiler is broken, or we cross compile.
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3331 $as_echo_n "checking whether we are cross compiling... " >&6; }
3332 if test "$cross_compiling" != yes; then
3333 { { ac_try="$ac_link"
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339 $as_echo "$ac_try_echo"; } >&5
3340 (eval "$ac_link") 2>&5
3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343 test $ac_status = 0; }
3344 if { ac_try='./conftest$ac_cv_exeext'
3345 { { case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350 $as_echo "$ac_try_echo"; } >&5
3351 (eval "$ac_try") 2>&5
3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354 test $ac_status = 0; }; }; then
3357 if test "$cross_compiling" = maybe; then
3360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error $? "cannot run C compiled programs.
3363 If you meant to cross compile, use \`--host'.
3364 See \`config.log' for more details" "$LINENO" 5 ; }
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3369 $as_echo "$cross_compiling" >&6; }
3371 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3372 ac_clean_files=$ac_clean_files_save
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3374 $as_echo_n "checking for suffix of object files... " >&6; }
3375 if test "${ac_cv_objext+set}" = set; then :
3376 $as_echo_n "(cached) " >&6
3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379 /* end confdefs.h. */
3389 rm -f conftest.o conftest.obj
3390 if { { ac_try="$ac_compile"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396 $as_echo "$ac_try_echo"; } >&5
3397 (eval "$ac_compile") 2>&5
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }; then :
3401 for ac_file in conftest.o conftest.obj conftest.*; do
3402 test -f "$ac_file" || continue;
3404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3405 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3410 $as_echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415 as_fn_error $? "cannot compute suffix of object files: cannot compile
3416 See \`config.log' for more details" "$LINENO" 5 ; }
3418 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3421 $as_echo "$ac_cv_objext" >&6; }
3422 OBJEXT=$ac_cv_objext
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3425 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3426 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3443 if ac_fn_c_try_compile "$LINENO"; then :
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3453 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3454 if test $ac_compiler_gnu = yes; then
3459 ac_test_CFLAGS=${CFLAGS+set}
3460 ac_save_CFLAGS=$CFLAGS
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3462 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3463 if test "${ac_cv_prog_cc_g+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
3466 ac_save_c_werror_flag=$ac_c_werror_flag
3467 ac_c_werror_flag=yes
3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h. */
3481 if ac_fn_c_try_compile "$LINENO"; then :
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3496 if ac_fn_c_try_compile "$LINENO"; then :
3499 ac_c_werror_flag=$ac_save_c_werror_flag
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3512 if ac_fn_c_try_compile "$LINENO"; then :
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 ac_c_werror_flag=$ac_save_c_werror_flag
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3523 $as_echo "$ac_cv_prog_cc_g" >&6; }
3524 if test "$ac_test_CFLAGS" = set; then
3525 CFLAGS=$ac_save_CFLAGS
3526 elif test $ac_cv_prog_cc_g = yes; then
3527 if test "$GCC" = yes; then
3533 if test "$GCC" = yes; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3540 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3541 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3542 $as_echo_n "(cached) " >&6
3544 ac_cv_prog_cc_c89=no
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3550 #include <sys/types.h>
3551 #include <sys/stat.h>
3552 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3553 struct buf { int x; };
3554 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3555 static char *e (p, i)
3561 static char *f (char * (*g) (char **, int), char **p, ...)
3566 s = g (p, va_arg (v,int));
3571 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3572 function prototypes and stuff, but not '\xHH' hex character constants.
3573 These don't provoke an error unfortunately, instead are silently treated
3574 as 'x'. The following induces an error, until -std is added to get
3575 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3576 array size at least. It's necessary to write '\x00'==0 to get something
3577 that's true only with -std. */
3578 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3580 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3581 inside strings and character constants. */
3583 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3585 int test (int i, double x);
3586 struct s1 {int (*f) (int a);};
3587 struct s2 {int (*f) (double a);};
3588 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3594 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3599 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3600 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3602 CC="$ac_save_CC $ac_arg"
3603 if ac_fn_c_try_compile "$LINENO"; then :
3604 ac_cv_prog_cc_c89=$ac_arg
3606 rm -f core conftest.err conftest.$ac_objext
3607 test "x$ac_cv_prog_cc_c89" != "xno" && break
3609 rm -f conftest.$ac_ext
3614 case "x$ac_cv_prog_cc_c89" in
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3617 $as_echo "none needed" >&6; } ;;
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3620 $as_echo "unsupported" >&6; } ;;
3622 CC="$CC $ac_cv_prog_cc_c89"
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3624 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3626 if test "x$ac_cv_prog_cc_c89" != xno; then :
3631 ac_cpp='$CPP $CPPFLAGS'
3632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3635 DEPDIR="${am__leading_dot}deps"
3637 ac_config_commands="$ac_config_commands depfiles"
3640 am_make=${MAKE-make}
3641 cat > confinc << 'END'
3643 @echo this is the am__doit target
3646 # If we don't find an include directive, just comment out the code.
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3648 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3652 # First try GNU make style include.
3653 echo "include confinc" > confmf
3654 # Ignore all kinds of additional output from `make'.
3655 case `$am_make -s -f confmf 2> /dev/null` in #(
3656 *the\ am__doit\ target*)
3662 # Now try BSD make style include.
3663 if test "$am__include" = "#"; then
3664 echo '.include "confinc"' > confmf
3665 case `$am_make -s -f confmf 2> /dev/null` in #(
3666 *the\ am__doit\ target*)
3667 am__include=.include
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3676 $as_echo "$_am_result" >&6; }
3677 rm -f confinc confmf
3679 # Check whether --enable-dependency-tracking was given.
3680 if test "${enable_dependency_tracking+set}" = set; then :
3681 enableval=$enable_dependency_tracking;
3684 if test "x$enable_dependency_tracking" != xno; then
3685 am_depcomp="$ac_aux_dir/depcomp"
3688 if test "x$enable_dependency_tracking" != xno; then
3698 depcc="$CC" am_compiler_list=
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3701 $as_echo_n "checking dependency style of $depcc... " >&6; }
3702 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3703 $as_echo_n "(cached) " >&6
3705 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3706 # We make a subdir and do the tests there. Otherwise we can end up
3707 # making bogus files that we don't know about and never remove. For
3708 # instance it was reported that on HP-UX the gcc test will end up
3709 # making a dummy file named `D' -- because `-MD' means `put the output
3712 # Copy depcomp to subdir because otherwise we won't find it if we're
3713 # using a relative directory.
3714 cp "$am_depcomp" conftest.dir
3716 # We will build objects and dependencies in a subdirectory because
3717 # it helps to detect inapplicable dependency modes. For instance
3718 # both Tru64's cc and ICC support -MD to output dependencies as a
3719 # side effect of compilation, but ICC will put the dependencies in
3720 # the current directory while Tru64 will put them in the object
3724 am_cv_CC_dependencies_compiler_type=none
3725 if test "$am_compiler_list" = ""; then
3726 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3729 case " $depcc " in #(
3730 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3733 for depmode in $am_compiler_list; do
3734 # Setup a source with many dependencies, because some compilers
3735 # like to wrap large dependency lists on column 80 (with \), and
3736 # we should not choose a depcomp mode which is confused by this.
3738 # We need to recreate these files for each test, as the compiler may
3739 # overwrite some of them when testing with obscure command lines.
3740 # This happens at least with the AIX C compiler.
3742 for i in 1 2 3 4 5 6; do
3743 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3744 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3745 # Solaris 8's {/usr,}/bin/sh.
3746 touch sub/conftst$i.h
3748 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3750 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3751 # mode. It turns out that the SunPro C++ compiler does not properly
3752 # handle `-M -o', and we need to detect this. Also, some Intel
3753 # versions had trouble with output in subdirs
3754 am__obj=sub/conftest.${OBJEXT-o}
3755 am__minus_obj="-o $am__obj"
3758 # This depmode causes a compiler race in universal mode.
3759 test "$am__universal" = false || continue
3762 # after this tag, mechanisms are not by side-effect, so they'll
3763 # only be used when explicitly requested
3764 if test "x$enable_dependency_tracking" = xyes; then
3770 msvisualcpp | msvcmsys)
3771 # This compiler won't grok `-c -o', but also, the minuso test has
3772 # not run yet. These depmodes are late enough in the game, and
3773 # so weak that their functioning should not be impacted.
3774 am__obj=conftest.${OBJEXT-o}
3779 if depmode=$depmode \
3780 source=sub/conftest.c object=$am__obj \
3781 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3782 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3783 >/dev/null 2>conftest.err &&
3784 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3785 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3786 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3787 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3788 # icc doesn't choke on unknown options, it will just issue warnings
3789 # or remarks (even with -Werror). So we grep stderr for any message
3790 # that says an option was ignored or not supported.
3791 # When given -MP, icc 7.0 and 7.1 complain thusly:
3792 # icc: Command line warning: ignoring option '-M'; no argument required
3793 # The diagnosis changed in icc 8.0:
3794 # icc: Command line remark: option '-MP' not supported
3795 if (grep 'ignoring option' conftest.err ||
3796 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3797 am_cv_CC_dependencies_compiler_type=$depmode
3806 am_cv_CC_dependencies_compiler_type=none
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3811 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3812 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3815 test "x$enable_dependency_tracking" != xno \
3816 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3818 am__fastdepCC_FALSE='#'
3820 am__fastdepCC_TRUE='#'
3821 am__fastdepCC_FALSE=
3825 if test "x$CC" != xcc; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3827 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3830 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3832 set dummy $CC; ac_cc=`$as_echo "$2" |
3833 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3834 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
3835 $as_echo_n "(cached) " >&6
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3848 # Make sure it works both with $CC and with simple cc.
3849 # We do the test twice because some compilers refuse to overwrite an
3850 # existing .o file with -o, though they will create one.
3851 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3853 if { { case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858 $as_echo "$ac_try_echo"; } >&5
3859 (eval "$ac_try") 2>&5
3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862 test $ac_status = 0; } &&
3863 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3868 $as_echo "$ac_try_echo"; } >&5
3869 (eval "$ac_try") 2>&5
3871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872 test $ac_status = 0; };
3874 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3875 if test "x$CC" != xcc; then
3876 # Test first that cc exists at all.
3877 if { ac_try='cc -c conftest.$ac_ext >&5'
3878 { { case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883 $as_echo "$ac_try_echo"; } >&5
3884 (eval "$ac_try") 2>&5
3886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887 test $ac_status = 0; }; }; then
3888 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3890 if { { 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; } &&
3900 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3905 $as_echo "$ac_try_echo"; } >&5
3906 (eval "$ac_try") 2>&5
3908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3909 test $ac_status = 0; };
3914 # cc exists but doesn't like -o.
3915 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3920 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3922 rm -f core conftest*
3925 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3927 $as_echo "yes" >&6; }
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 $as_echo "no" >&6; }
3932 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3936 # FIXME: we rely on the cache variable name because
3937 # there is no other way.
3939 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3940 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3941 if test "$am_t" != yes; then
3942 # Losing compiler, so override with the script.
3943 # FIXME: It is wrong to rewrite CC.
3944 # But if we don't then we get into trouble of one sort or another.
3945 # A longer-term fix would be to have automake use am__CC in this case,
3946 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3947 CC="$am_aux_dir/compile $CC"
3953 if test -n "$ac_tool_prefix"; then
3954 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3955 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 $as_echo_n "checking for $ac_word... " >&6; }
3958 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3959 $as_echo_n "(cached) " >&6
3961 if test -n "$RANLIB"; then
3962 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3971 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 RANLIB=$ac_cv_prog_RANLIB
3982 if test -n "$RANLIB"; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3984 $as_echo "$RANLIB" >&6; }
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987 $as_echo "no" >&6; }
3992 if test -z "$ac_cv_prog_RANLIB"; then
3993 ac_ct_RANLIB=$RANLIB
3994 # Extract the first word of "ranlib", so it can be a program name with args.
3995 set dummy ranlib; ac_word=$2
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997 $as_echo_n "checking for $ac_word... " >&6; }
3998 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3999 $as_echo_n "(cached) " >&6
4001 if test -n "$ac_ct_RANLIB"; then
4002 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4011 ac_cv_prog_ac_ct_RANLIB="ranlib"
4012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4022 if test -n "$ac_ct_RANLIB"; then
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4024 $as_echo "$ac_ct_RANLIB" >&6; }
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027 $as_echo "no" >&6; }
4030 if test "x$ac_ct_RANLIB" = x; then
4033 case $cross_compiling:$ac_tool_warned in
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4037 ac_tool_warned=yes ;;
4039 RANLIB=$ac_ct_RANLIB
4042 RANLIB="$ac_cv_prog_RANLIB"
4046 # Checks for header files.
4049 ac_cpp='$CPP $CPPFLAGS'
4050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4054 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4055 # On Suns, sometimes $CPP names a directory.
4056 if test -n "$CPP" && test -d "$CPP"; then
4059 if test -z "$CPP"; then
4060 if test "${ac_cv_prog_CPP+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
4063 # Double quotes because CPP needs to be expanded
4064 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4067 for ac_c_preproc_warn_flag in '' yes
4069 # Use a header file that comes with gcc, so configuring glibc
4070 # with a fresh cross-compiler works.
4071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4072 # <limits.h> exists even on freestanding compilers.
4073 # On the NeXT, cc -E runs the code through the compiler's parser,
4074 # not just through cpp. "Syntax error" is here to catch this case.
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4078 # include <limits.h>
4080 # include <assert.h>
4084 if ac_fn_c_try_cpp "$LINENO"; then :
4087 # Broken: fails on valid input.
4090 rm -f conftest.err conftest.i conftest.$ac_ext
4092 # OK, works on sane cases. Now check whether nonexistent headers
4093 # can be detected and how.
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4096 #include <ac_nonexistent.h>
4098 if ac_fn_c_try_cpp "$LINENO"; then :
4099 # Broken: success on invalid input.
4102 # Passes both tests.
4106 rm -f conftest.err conftest.i conftest.$ac_ext
4109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4110 rm -f conftest.i conftest.err conftest.$ac_ext
4111 if $ac_preproc_ok; then :
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4124 $as_echo "$CPP" >&6; }
4126 for ac_c_preproc_warn_flag in '' yes
4128 # Use a header file that comes with gcc, so configuring glibc
4129 # with a fresh cross-compiler works.
4130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131 # <limits.h> exists even on freestanding compilers.
4132 # On the NeXT, cc -E runs the code through the compiler's parser,
4133 # not just through cpp. "Syntax error" is here to catch this case.
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4137 # include <limits.h>
4139 # include <assert.h>
4143 if ac_fn_c_try_cpp "$LINENO"; then :
4146 # Broken: fails on valid input.
4149 rm -f conftest.err conftest.i conftest.$ac_ext
4151 # OK, works on sane cases. Now check whether nonexistent headers
4152 # can be detected and how.
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #include <ac_nonexistent.h>
4157 if ac_fn_c_try_cpp "$LINENO"; then :
4158 # Broken: success on invalid input.
4161 # Passes both tests.
4165 rm -f conftest.err conftest.i conftest.$ac_ext
4168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4169 rm -f conftest.i conftest.err conftest.$ac_ext
4170 if $ac_preproc_ok; then :
4173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4175 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4176 See \`config.log' for more details" "$LINENO" 5 ; }
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4187 $as_echo_n "checking for X... " >&6; }
4190 # Check whether --with-x was given.
4191 if test "${with_x+set}" = set; then :
4195 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4196 if test "x$with_x" = xno; then
4197 # The user explicitly disabled X.
4200 case $x_includes,$x_libraries in #(
4201 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
4202 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
4203 $as_echo_n "(cached) " >&6
4205 # One or both of the vars are not set, and there is no cached value.
4206 ac_x_includes=no ac_x_libraries=no
4207 rm -f -r conftest.dir
4208 if mkdir conftest.dir; then
4210 cat >Imakefile <<'_ACEOF'
4212 @echo incroot='${INCROOT}'
4214 @echo usrlibdir='${USRLIBDIR}'
4216 @echo libdir='${LIBDIR}'
4218 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4219 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4220 for ac_var in incroot usrlibdir libdir; do
4221 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4223 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4224 for ac_extension in a so sl dylib la dll; do
4225 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4226 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4227 ac_im_usrlibdir=$ac_im_libdir; break
4230 # Screen out bogus values from the imake configuration. They are
4231 # bogus both because they are the default anyway, and because
4232 # using them would break gcc on systems where it needs fixed includes.
4233 case $ac_im_incroot in
4234 /usr/include) ac_x_includes= ;;
4235 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4237 case $ac_im_usrlibdir in
4238 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4239 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4243 rm -f -r conftest.dir
4246 # Standard set of common directories for X headers.
4247 # Check X11 before X11Rn because it is often a symlink to the current release.
4261 /usr/local/X11/include
4262 /usr/local/X11R7/include
4263 /usr/local/X11R6/include
4264 /usr/local/X11R5/include
4265 /usr/local/X11R4/include
4267 /usr/local/include/X11
4268 /usr/local/include/X11R7
4269 /usr/local/include/X11R6
4270 /usr/local/include/X11R5
4271 /usr/local/include/X11R4
4275 /usr/XFree86/include/X11
4279 /usr/unsupported/include
4281 /usr/local/x11r5/include
4282 /usr/lpp/Xamples/include
4284 /usr/openwin/include
4285 /usr/openwin/share/include'
4287 if test "$ac_x_includes" = no; then
4288 # Guess where to find include files, by looking for Xlib.h.
4289 # First, try using that file with no special directory specified.
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4292 #include <X11/Xlib.h>
4294 if ac_fn_c_try_cpp "$LINENO"; then :
4295 # We can compile using X headers with no special include directory.
4298 for ac_dir in $ac_x_header_dirs; do
4299 if test -r "$ac_dir/X11/Xlib.h"; then
4300 ac_x_includes=$ac_dir
4305 rm -f conftest.err conftest.i conftest.$ac_ext
4306 fi # $ac_x_includes = no
4308 if test "$ac_x_libraries" = no; then
4309 # Check for the libraries.
4310 # See if we find them without any special options.
4311 # Don't add to $LIBS permanently.
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316 #include <X11/Xlib.h>
4325 if ac_fn_c_try_link "$LINENO"; then :
4327 # We can link X programs with no special library path.
4331 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4333 # Don't even attempt the hair of trying to link an X program!
4334 for ac_extension in a so sl dylib la dll; do
4335 if test -r "$ac_dir/libX11.$ac_extension"; then
4336 ac_x_libraries=$ac_dir
4342 rm -f core conftest.err conftest.$ac_objext \
4343 conftest$ac_exeext conftest.$ac_ext
4344 fi # $ac_x_libraries = no
4346 case $ac_x_includes,$ac_x_libraries in #(
4348 # Didn't find X, or a directory has "'" in its name.
4349 ac_cv_have_x="have_x=no";; #(
4351 # Record where we found X for the cache.
4352 ac_cv_have_x="have_x=yes\
4353 ac_x_includes='$ac_x_includes'\
4354 ac_x_libraries='$ac_x_libraries'"
4360 eval "$ac_cv_have_x"
4363 if test "$have_x" != yes; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4365 $as_echo "$have_x" >&6; }
4368 # If each of the values was on the command line, it overrides each guess.
4369 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4370 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4371 # Update the cache value to reflect the command line values.
4372 ac_cv_have_x="have_x=yes\
4373 ac_x_includes='$x_includes'\
4374 ac_x_libraries='$x_libraries'"
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4376 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4380 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4381 if test "${ac_cv_path_GREP+set}" = set; then :
4382 $as_echo_n "(cached) " >&6
4384 if test -z "$GREP"; then
4385 ac_path_GREP_found=false
4386 # Loop through the user's path and test for each of PROGNAME-LIST
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4391 test -z "$as_dir" && as_dir=.
4392 for ac_prog in grep ggrep; do
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4395 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4396 # Check for GNU ac_path_GREP and select it if it is found.
4397 # Check for GNU $ac_path_GREP
4398 case `"$ac_path_GREP" --version 2>&1` in
4400 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4403 $as_echo_n 0123456789 >"conftest.in"
4406 cat "conftest.in" "conftest.in" >"conftest.tmp"
4407 mv "conftest.tmp" "conftest.in"
4408 cp "conftest.in" "conftest.nl"
4409 $as_echo 'GREP' >> "conftest.nl"
4410 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4412 as_fn_arith $ac_count + 1 && ac_count=$as_val
4413 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4414 # Best one so far, save it but keep looking for a better one
4415 ac_cv_path_GREP="$ac_path_GREP"
4416 ac_path_GREP_max=$ac_count
4418 # 10*(2^10) chars as input seems more than enough
4419 test $ac_count -gt 10 && break
4421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4424 $ac_path_GREP_found && break 3
4429 if test -z "$ac_cv_path_GREP"; then
4430 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4433 ac_cv_path_GREP=$GREP
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4438 $as_echo "$ac_cv_path_GREP" >&6; }
4439 GREP="$ac_cv_path_GREP"
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4443 $as_echo_n "checking for egrep... " >&6; }
4444 if test "${ac_cv_path_EGREP+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4447 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4448 then ac_cv_path_EGREP="$GREP -E"
4450 if test -z "$EGREP"; then
4451 ac_path_EGREP_found=false
4452 # Loop through the user's path and test for each of PROGNAME-LIST
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4457 test -z "$as_dir" && as_dir=.
4458 for ac_prog in egrep; do
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4461 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4462 # Check for GNU ac_path_EGREP and select it if it is found.
4463 # Check for GNU $ac_path_EGREP
4464 case `"$ac_path_EGREP" --version 2>&1` in
4466 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4469 $as_echo_n 0123456789 >"conftest.in"
4472 cat "conftest.in" "conftest.in" >"conftest.tmp"
4473 mv "conftest.tmp" "conftest.in"
4474 cp "conftest.in" "conftest.nl"
4475 $as_echo 'EGREP' >> "conftest.nl"
4476 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4478 as_fn_arith $ac_count + 1 && ac_count=$as_val
4479 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4480 # Best one so far, save it but keep looking for a better one
4481 ac_cv_path_EGREP="$ac_path_EGREP"
4482 ac_path_EGREP_max=$ac_count
4484 # 10*(2^10) chars as input seems more than enough
4485 test $ac_count -gt 10 && break
4487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4490 $ac_path_EGREP_found && break 3
4495 if test -z "$ac_cv_path_EGREP"; then
4496 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4499 ac_cv_path_EGREP=$EGREP
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4505 $as_echo "$ac_cv_path_EGREP" >&6; }
4506 EGREP="$ac_cv_path_EGREP"
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4510 $as_echo_n "checking for ANSI C header files... " >&6; }
4511 if test "${ac_cv_header_stdc+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4529 if ac_fn_c_try_compile "$LINENO"; then :
4530 ac_cv_header_stdc=yes
4532 ac_cv_header_stdc=no
4534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 if test $ac_cv_header_stdc = yes; then
4537 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4544 $EGREP "memchr" >/dev/null 2>&1; then :
4547 ac_cv_header_stdc=no
4553 if test $ac_cv_header_stdc = yes; then
4554 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4561 $EGREP "free" >/dev/null 2>&1; then :
4564 ac_cv_header_stdc=no
4570 if test $ac_cv_header_stdc = yes; then
4571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4572 if test "$cross_compiling" = yes; then :
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4579 #if ((' ' & 0x0FF) == 0x020)
4580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4583 # define ISLOWER(c) \
4584 (('a' <= (c) && (c) <= 'i') \
4585 || ('j' <= (c) && (c) <= 'r') \
4586 || ('s' <= (c) && (c) <= 'z'))
4587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4595 for (i = 0; i < 256; i++)
4596 if (XOR (islower (i), ISLOWER (i))
4597 || toupper (i) != TOUPPER (i))
4602 if ac_fn_c_try_run "$LINENO"; then :
4605 ac_cv_header_stdc=no
4607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4608 conftest.$ac_objext conftest.beam conftest.$ac_ext
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4614 $as_echo "$ac_cv_header_stdc" >&6; }
4615 if test $ac_cv_header_stdc = yes; then
4617 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4621 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4623 inttypes.h stdint.h unistd.h
4625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4626 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4628 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4629 cat >>confdefs.h <<_ACEOF
4630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4638 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
4640 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4641 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4642 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4643 cat >>confdefs.h <<_ACEOF
4644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4652 # Checks for typedefs, structures, and compiler characteristics.
4653 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4654 if test "x$ac_cv_type_size_t" = x""yes; then :
4658 cat >>confdefs.h <<_ACEOF
4659 #define size_t unsigned int
4664 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4665 if test "x$ac_cv_type_ssize_t" = x""yes; then :
4669 cat >>confdefs.h <<_ACEOF
4676 # Checks for library functions.
4677 for ac_header in stdlib.h
4679 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4680 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4681 cat >>confdefs.h <<_ACEOF
4682 #define HAVE_STDLIB_H 1
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4690 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4691 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4694 if test "$cross_compiling" = yes; then :
4695 ac_cv_func_malloc_0_nonnull=no
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4700 # include <stdlib.h>
4708 return ! malloc (0);
4713 if ac_fn_c_try_run "$LINENO"; then :
4714 ac_cv_func_malloc_0_nonnull=yes
4716 ac_cv_func_malloc_0_nonnull=no
4718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4719 conftest.$ac_objext conftest.beam conftest.$ac_ext
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4724 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4725 if test $ac_cv_func_malloc_0_nonnull = yes; then :
4727 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4730 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4732 case " $LIBOBJS " in
4733 *" malloc.$ac_objext "* ) ;;
4734 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4739 $as_echo "#define malloc rpl_malloc" >>confdefs.h
4744 for ac_header in stdlib.h
4746 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4747 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4748 cat >>confdefs.h <<_ACEOF
4749 #define HAVE_STDLIB_H 1
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4757 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
4758 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
4759 $as_echo_n "(cached) " >&6
4761 if test "$cross_compiling" = yes; then :
4762 ac_cv_func_realloc_0_nonnull=no
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4766 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4767 # include <stdlib.h>
4775 return ! realloc (0, 0);
4780 if ac_fn_c_try_run "$LINENO"; then :
4781 ac_cv_func_realloc_0_nonnull=yes
4783 ac_cv_func_realloc_0_nonnull=no
4785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4786 conftest.$ac_objext conftest.beam conftest.$ac_ext
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4791 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
4792 if test $ac_cv_func_realloc_0_nonnull = yes; then :
4794 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
4797 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
4799 case " $LIBOBJS " in
4800 *" realloc.$ac_objext "* ) ;;
4801 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4806 $as_echo "#define realloc rpl_realloc" >>confdefs.h
4811 for ac_func in gettimeofday memmove socket strdup strtol
4813 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4814 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4815 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4816 cat >>confdefs.h <<_ACEOF
4817 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4827 $as_echo_n "checking whether NLS is requested... " >&6; }
4828 # Check whether --enable-nls was given.
4829 if test "${enable_nls+set}" = set; then :
4830 enableval=$enable_nls; USE_NLS=$enableval
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4836 $as_echo "$USE_NLS" >&6; }
4841 GETTEXT_MACRO_VERSION=0.18
4846 # Prepare PATH_SEPARATOR.
4847 # The user is always right.
4848 if test "${PATH_SEPARATOR+set}" != set; then
4849 echo "#! /bin/sh" >conf$$.sh
4850 echo "exit 0" >>conf$$.sh
4852 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4860 # Find out how to test for executable files. Don't use a zero-byte file,
4861 # as systems may use methods other than mode bits to determine executability.
4862 cat >conf$$.file <<_ASEOF
4866 chmod +x conf$$.file
4867 if test -x conf$$.file >/dev/null 2>&1; then
4868 ac_executable_p="test -x"
4870 ac_executable_p="test -f"
4874 # Extract the first word of "msgfmt", so it can be a program name with args.
4875 set dummy msgfmt; ac_word=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if test "${ac_cv_path_MSGFMT+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4883 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4886 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4887 for ac_dir in $PATH; do
4889 test -z "$ac_dir" && ac_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4892 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4893 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4894 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4895 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4902 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4906 MSGFMT="$ac_cv_path_MSGFMT"
4907 if test "$MSGFMT" != ":"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4909 $as_echo "$MSGFMT" >&6; }
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4915 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4916 set dummy gmsgfmt; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4924 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4934 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4946 GMSGFMT=$ac_cv_path_GMSGFMT
4947 if test -n "$GMSGFMT"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4949 $as_echo "$GMSGFMT" >&6; }
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4957 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4958 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4959 *) MSGFMT_015=$MSGFMT ;;
4962 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4963 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4964 *) GMSGFMT_015=$GMSGFMT ;;
4969 # Prepare PATH_SEPARATOR.
4970 # The user is always right.
4971 if test "${PATH_SEPARATOR+set}" != set; then
4972 echo "#! /bin/sh" >conf$$.sh
4973 echo "exit 0" >>conf$$.sh
4975 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4983 # Find out how to test for executable files. Don't use a zero-byte file,
4984 # as systems may use methods other than mode bits to determine executability.
4985 cat >conf$$.file <<_ASEOF
4989 chmod +x conf$$.file
4990 if test -x conf$$.file >/dev/null 2>&1; then
4991 ac_executable_p="test -x"
4993 ac_executable_p="test -f"
4997 # Extract the first word of "xgettext", so it can be a program name with args.
4998 set dummy xgettext; ac_word=$2
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5000 $as_echo_n "checking for $ac_word... " >&6; }
5001 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5002 $as_echo_n "(cached) " >&6
5006 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5009 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5010 for ac_dir in $PATH; do
5012 test -z "$ac_dir" && ac_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5015 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5016 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5017 (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
5018 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5025 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5029 XGETTEXT="$ac_cv_path_XGETTEXT"
5030 if test "$XGETTEXT" != ":"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5032 $as_echo "$XGETTEXT" >&6; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5040 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5041 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5042 *) XGETTEXT_015=$XGETTEXT ;;
5047 # Prepare PATH_SEPARATOR.
5048 # The user is always right.
5049 if test "${PATH_SEPARATOR+set}" != set; then
5050 echo "#! /bin/sh" >conf$$.sh
5051 echo "exit 0" >>conf$$.sh
5053 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5061 # Find out how to test for executable files. Don't use a zero-byte file,
5062 # as systems may use methods other than mode bits to determine executability.
5063 cat >conf$$.file <<_ASEOF
5067 chmod +x conf$$.file
5068 if test -x conf$$.file >/dev/null 2>&1; then
5069 ac_executable_p="test -x"
5071 ac_executable_p="test -f"
5075 # Extract the first word of "msgmerge", so it can be a program name with args.
5076 set dummy msgmerge; ac_word=$2
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 $as_echo_n "checking for $ac_word... " >&6; }
5079 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5080 $as_echo_n "(cached) " >&6
5084 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5087 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5088 for ac_dir in $PATH; do
5090 test -z "$ac_dir" && ac_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5093 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5094 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5095 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5102 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5106 MSGMERGE="$ac_cv_path_MSGMERGE"
5107 if test "$MSGMERGE" != ":"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5109 $as_echo "$MSGMERGE" >&6; }
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5116 test -n "$localedir" || localedir='${datadir}/locale'
5119 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5122 ac_config_commands="$ac_config_commands po-directories"
5126 if test "X$prefix" = "XNONE"; then
5127 acl_final_prefix="$ac_default_prefix"
5129 acl_final_prefix="$prefix"
5131 if test "X$exec_prefix" = "XNONE"; then
5132 acl_final_exec_prefix='${prefix}'
5134 acl_final_exec_prefix="$exec_prefix"
5136 acl_save_prefix="$prefix"
5137 prefix="$acl_final_prefix"
5138 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5139 prefix="$acl_save_prefix"
5141 # Make sure we can run config.sub.
5142 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5143 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5146 $as_echo_n "checking build system type... " >&6; }
5147 if test "${ac_cv_build+set}" = set; then :
5148 $as_echo_n "(cached) " >&6
5150 ac_build_alias=$build_alias
5151 test "x$ac_build_alias" = x &&
5152 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5153 test "x$ac_build_alias" = x &&
5154 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5155 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5156 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5160 $as_echo "$ac_cv_build" >&6; }
5161 case $ac_cv_build in
5163 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5166 ac_save_IFS=$IFS; IFS='-'
5172 # Remember, the first character of IFS is used to create $*,
5173 # except with old shells:
5176 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5180 $as_echo_n "checking host system type... " >&6; }
5181 if test "${ac_cv_host+set}" = set; then :
5182 $as_echo_n "(cached) " >&6
5184 if test "x$host_alias" = x; then
5185 ac_cv_host=$ac_cv_build
5187 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5188 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5193 $as_echo "$ac_cv_host" >&6; }
5196 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5199 ac_save_IFS=$IFS; IFS='-'
5205 # Remember, the first character of IFS is used to create $*,
5206 # except with old shells:
5209 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5213 # Check whether --with-gnu-ld was given.
5214 if test "${with_gnu_ld+set}" = set; then :
5215 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5220 # Prepare PATH_SEPARATOR.
5221 # The user is always right.
5222 if test "${PATH_SEPARATOR+set}" != set; then
5223 echo "#! /bin/sh" >conf$$.sh
5224 echo "exit 0" >>conf$$.sh
5226 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5234 if test "$GCC" = yes; then
5235 # Check if gcc -print-prog-name=ld gives a path.
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5237 $as_echo_n "checking for ld used by GCC... " >&6; }
5240 # gcc leaves a trailing carriage return which upsets mingw
5241 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5243 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5246 # Accept absolute paths.
5247 [\\/]* | [A-Za-z]:[\\/]*)
5248 re_direlt='/[^/][^/]*/\.\./'
5249 # Canonicalize the path of ld
5250 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5251 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5252 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5254 test -z "$LD" && LD="$ac_prog"
5257 # If it fails, then pretend we aren't using GCC.
5261 # If it is relative, then search for the first ld in PATH.
5265 elif test "$with_gnu_ld" = yes; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5267 $as_echo_n "checking for GNU ld... " >&6; }
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5270 $as_echo_n "checking for non-GNU ld... " >&6; }
5272 if test "${acl_cv_path_LD+set}" = set; then :
5273 $as_echo_n "(cached) " >&6
5275 if test -z "$LD"; then
5276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5277 for ac_dir in $PATH; do
5278 test -z "$ac_dir" && ac_dir=.
5279 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5280 acl_cv_path_LD="$ac_dir/$ac_prog"
5281 # Check to see if the program is GNU ld. I'd rather use --version,
5282 # but apparently some GNU ld's only accept -v.
5283 # Break only if it was the GNU/non-GNU ld that we prefer.
5284 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5285 *GNU* | *'with BFD'*)
5286 test "$with_gnu_ld" != no && break ;;
5288 test "$with_gnu_ld" != yes && break ;;
5294 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5298 LD="$acl_cv_path_LD"
5299 if test -n "$LD"; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5301 $as_echo "$LD" >&6; }
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5306 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5308 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5309 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5312 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5313 case `$LD -v 2>&1 </dev/null` in
5314 *GNU* | *'with BFD'*)
5315 acl_cv_prog_gnu_ld=yes ;;
5317 acl_cv_prog_gnu_ld=no ;;
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5321 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5322 with_gnu_ld=$acl_cv_prog_gnu_ld
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5328 $as_echo_n "checking for shared library run path origin... " >&6; }
5329 if test "${acl_cv_rpath+set}" = set; then :
5330 $as_echo_n "(cached) " >&6
5333 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5334 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5341 $as_echo "$acl_cv_rpath" >&6; }
5343 acl_libext="$acl_cv_libext"
5344 acl_shlibext="$acl_cv_shlibext"
5345 acl_libname_spec="$acl_cv_libname_spec"
5346 acl_library_names_spec="$acl_cv_library_names_spec"
5347 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5348 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5349 acl_hardcode_direct="$acl_cv_hardcode_direct"
5350 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5351 # Check whether --enable-rpath was given.
5352 if test "${enable_rpath+set}" = set; then :
5353 enableval=$enable_rpath; :
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5366 $as_echo_n "checking for 64-bit host... " >&6; }
5367 if test "${gl_cv_solaris_64bit+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5379 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5380 gl_cv_solaris_64bit=yes
5382 gl_cv_solaris_64bit=no
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5389 $as_echo "$gl_cv_solaris_64bit" >&6; }
5390 if test $gl_cv_solaris_64bit = yes; then
5391 acl_libdirstem=lib/64
5393 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5394 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5399 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5400 if test -n "$searchpath"; then
5401 acl_save_IFS="${IFS= }"; IFS=":"
5402 for searchdir in $searchpath; do
5403 if test -d "$searchdir"; then
5404 case "$searchdir" in
5405 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5407 # Better ignore directories of this form. They are misleading.
5409 *) searchdir=`cd "$searchdir" && pwd`
5410 case "$searchdir" in
5411 */lib64 ) acl_libdirstem=lib64 ;;
5420 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5435 acl_save_prefix="$prefix"
5436 prefix="$acl_final_prefix"
5437 acl_save_exec_prefix="$exec_prefix"
5438 exec_prefix="$acl_final_exec_prefix"
5440 eval additional_includedir=\"$includedir\"
5441 eval additional_libdir=\"$libdir\"
5443 exec_prefix="$acl_save_exec_prefix"
5444 prefix="$acl_save_prefix"
5447 # Check whether --with-libiconv-prefix was given.
5448 if test "${with_libiconv_prefix+set}" = set; then :
5449 withval=$with_libiconv_prefix;
5450 if test "X$withval" = "Xno"; then
5453 if test "X$withval" = "X"; then
5455 acl_save_prefix="$prefix"
5456 prefix="$acl_final_prefix"
5457 acl_save_exec_prefix="$exec_prefix"
5458 exec_prefix="$acl_final_exec_prefix"
5460 eval additional_includedir=\"$includedir\"
5461 eval additional_libdir=\"$libdir\"
5463 exec_prefix="$acl_save_exec_prefix"
5464 prefix="$acl_save_prefix"
5467 additional_includedir="$withval/include"
5468 additional_libdir="$withval/$acl_libdirstem"
5469 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5470 && ! test -d "$withval/$acl_libdirstem"; then
5471 additional_libdir="$withval/$acl_libdirstem2"
5485 names_already_handled=
5486 names_next_round='iconv '
5487 while test -n "$names_next_round"; do
5488 names_this_round="$names_next_round"
5490 for name in $names_this_round; do
5492 for n in $names_already_handled; do
5493 if test "$n" = "$name"; then
5498 if test -z "$already_handled"; then
5499 names_already_handled="$names_already_handled $name"
5500 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5501 eval value=\"\$HAVE_LIB$uppername\"
5502 if test -n "$value"; then
5503 if test "$value" = yes; then
5504 eval value=\"\$LIB$uppername\"
5505 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5506 eval value=\"\$LTLIB$uppername\"
5507 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5516 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5517 if test -n "$acl_shlibext"; then
5518 shrext=".$acl_shlibext" # typically: shrext=.so
5522 if test $use_additional = yes; then
5523 dir="$additional_libdir"
5524 if test -n "$acl_shlibext"; then
5525 if test -f "$dir/$libname$shrext"; then
5527 found_so="$dir/$libname$shrext"
5529 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5530 ver=`(cd "$dir" && \
5531 for f in "$libname$shrext".*; do echo "$f"; done \
5532 | sed -e "s,^$libname$shrext\\\\.,," \
5533 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5534 | sed 1q ) 2>/dev/null`
5535 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5537 found_so="$dir/$libname$shrext.$ver"
5540 eval library_names=\"$acl_library_names_spec\"
5541 for f in $library_names; do
5542 if test -f "$dir/$f"; then
5551 if test "X$found_dir" = "X"; then
5552 if test -f "$dir/$libname.$acl_libext"; then
5554 found_a="$dir/$libname.$acl_libext"
5557 if test "X$found_dir" != "X"; then
5558 if test -f "$dir/$libname.la"; then
5559 found_la="$dir/$libname.la"
5563 if test "X$found_dir" = "X"; then
5564 for x in $LDFLAGS $LTLIBICONV; do
5566 acl_save_prefix="$prefix"
5567 prefix="$acl_final_prefix"
5568 acl_save_exec_prefix="$exec_prefix"
5569 exec_prefix="$acl_final_exec_prefix"
5571 exec_prefix="$acl_save_exec_prefix"
5572 prefix="$acl_save_prefix"
5576 dir=`echo "X$x" | sed -e 's/^X-L//'`
5577 if test -n "$acl_shlibext"; then
5578 if test -f "$dir/$libname$shrext"; then
5580 found_so="$dir/$libname$shrext"
5582 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5583 ver=`(cd "$dir" && \
5584 for f in "$libname$shrext".*; do echo "$f"; done \
5585 | sed -e "s,^$libname$shrext\\\\.,," \
5586 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5587 | sed 1q ) 2>/dev/null`
5588 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5590 found_so="$dir/$libname$shrext.$ver"
5593 eval library_names=\"$acl_library_names_spec\"
5594 for f in $library_names; do
5595 if test -f "$dir/$f"; then
5604 if test "X$found_dir" = "X"; then
5605 if test -f "$dir/$libname.$acl_libext"; then
5607 found_a="$dir/$libname.$acl_libext"
5610 if test "X$found_dir" != "X"; then
5611 if test -f "$dir/$libname.la"; then
5612 found_la="$dir/$libname.la"
5617 if test "X$found_dir" != "X"; then
5622 if test "X$found_dir" != "X"; then
5623 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5624 if test "X$found_so" != "X"; then
5625 if test "$enable_rpath" = no \
5626 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5627 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5628 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5631 for x in $ltrpathdirs; do
5632 if test "X$x" = "X$found_dir"; then
5637 if test -z "$haveit"; then
5638 ltrpathdirs="$ltrpathdirs $found_dir"
5640 if test "$acl_hardcode_direct" = yes; then
5641 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5643 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5644 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5646 for x in $rpathdirs; do
5647 if test "X$x" = "X$found_dir"; then
5652 if test -z "$haveit"; then
5653 rpathdirs="$rpathdirs $found_dir"
5657 for x in $LDFLAGS $LIBICONV; do
5659 acl_save_prefix="$prefix"
5660 prefix="$acl_final_prefix"
5661 acl_save_exec_prefix="$exec_prefix"
5662 exec_prefix="$acl_final_exec_prefix"
5664 exec_prefix="$acl_save_exec_prefix"
5665 prefix="$acl_save_prefix"
5667 if test "X$x" = "X-L$found_dir"; then
5672 if test -z "$haveit"; then
5673 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5675 if test "$acl_hardcode_minus_L" != no; then
5676 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5678 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5684 if test "X$found_a" != "X"; then
5685 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5687 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5690 additional_includedir=
5691 case "$found_dir" in
5692 */$acl_libdirstem | */$acl_libdirstem/)
5693 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5694 if test "$name" = 'iconv'; then
5695 LIBICONV_PREFIX="$basedir"
5697 additional_includedir="$basedir/include"
5699 */$acl_libdirstem2 | */$acl_libdirstem2/)
5700 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5701 if test "$name" = 'iconv'; then
5702 LIBICONV_PREFIX="$basedir"
5704 additional_includedir="$basedir/include"
5707 if test "X$additional_includedir" != "X"; then
5708 if test "X$additional_includedir" != "X/usr/include"; then
5710 if test "X$additional_includedir" = "X/usr/local/include"; then
5711 if test -n "$GCC"; then
5713 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5717 if test -z "$haveit"; then
5718 for x in $CPPFLAGS $INCICONV; do
5720 acl_save_prefix="$prefix"
5721 prefix="$acl_final_prefix"
5722 acl_save_exec_prefix="$exec_prefix"
5723 exec_prefix="$acl_final_exec_prefix"
5725 exec_prefix="$acl_save_exec_prefix"
5726 prefix="$acl_save_prefix"
5728 if test "X$x" = "X-I$additional_includedir"; then
5733 if test -z "$haveit"; then
5734 if test -d "$additional_includedir"; then
5735 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5741 if test -n "$found_la"; then
5742 save_libdir="$libdir"
5744 */* | *\\*) . "$found_la" ;;
5745 *) . "./$found_la" ;;
5747 libdir="$save_libdir"
5748 for dep in $dependency_libs; do
5751 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5752 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5753 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5755 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5756 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5757 if test -n "$GCC"; then
5759 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5763 if test -z "$haveit"; then
5765 for x in $LDFLAGS $LIBICONV; do
5767 acl_save_prefix="$prefix"
5768 prefix="$acl_final_prefix"
5769 acl_save_exec_prefix="$exec_prefix"
5770 exec_prefix="$acl_final_exec_prefix"
5772 exec_prefix="$acl_save_exec_prefix"
5773 prefix="$acl_save_prefix"
5775 if test "X$x" = "X-L$additional_libdir"; then
5780 if test -z "$haveit"; then
5781 if test -d "$additional_libdir"; then
5782 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5786 for x in $LDFLAGS $LTLIBICONV; do
5788 acl_save_prefix="$prefix"
5789 prefix="$acl_final_prefix"
5790 acl_save_exec_prefix="$exec_prefix"
5791 exec_prefix="$acl_final_exec_prefix"
5793 exec_prefix="$acl_save_exec_prefix"
5794 prefix="$acl_save_prefix"
5796 if test "X$x" = "X-L$additional_libdir"; then
5801 if test -z "$haveit"; then
5802 if test -d "$additional_libdir"; then
5803 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5810 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5811 if test "$enable_rpath" != no; then
5813 for x in $rpathdirs; do
5814 if test "X$x" = "X$dir"; then
5819 if test -z "$haveit"; then
5820 rpathdirs="$rpathdirs $dir"
5823 for x in $ltrpathdirs; do
5824 if test "X$x" = "X$dir"; then
5829 if test -z "$haveit"; then
5830 ltrpathdirs="$ltrpathdirs $dir"
5835 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5838 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5841 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5842 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5848 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5849 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5855 if test "X$rpathdirs" != "X"; then
5856 if test -n "$acl_hardcode_libdir_separator"; then
5858 for found_dir in $rpathdirs; do
5859 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5861 acl_save_libdir="$libdir"
5863 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5864 libdir="$acl_save_libdir"
5865 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5867 for found_dir in $rpathdirs; do
5868 acl_save_libdir="$libdir"
5870 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5871 libdir="$acl_save_libdir"
5872 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5876 if test "X$ltrpathdirs" != "X"; then
5877 for found_dir in $ltrpathdirs; do
5878 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5913 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5914 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
5915 $as_echo_n "(cached) " >&6
5917 gt_save_LIBS="$LIBS"
5918 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5921 #include <CoreFoundation/CFPreferences.h>
5925 CFPreferencesCopyAppValue(NULL, NULL)
5930 if ac_fn_c_try_link "$LINENO"; then :
5931 gt_cv_func_CFPreferencesCopyAppValue=yes
5933 gt_cv_func_CFPreferencesCopyAppValue=no
5935 rm -f core conftest.err conftest.$ac_objext \
5936 conftest$ac_exeext conftest.$ac_ext
5937 LIBS="$gt_save_LIBS"
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5940 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5941 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5943 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5947 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5948 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
5949 $as_echo_n "(cached) " >&6
5951 gt_save_LIBS="$LIBS"
5952 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h. */
5955 #include <CoreFoundation/CFLocale.h>
5959 CFLocaleCopyCurrent();
5964 if ac_fn_c_try_link "$LINENO"; then :
5965 gt_cv_func_CFLocaleCopyCurrent=yes
5967 gt_cv_func_CFLocaleCopyCurrent=no
5969 rm -f core conftest.err conftest.$ac_objext \
5970 conftest$ac_exeext conftest.$ac_ext
5971 LIBS="$gt_save_LIBS"
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5974 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5975 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5977 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5981 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5982 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5994 case " $gt_needs " in
5995 *" need-formatstring-macros "*) gt_api_version=3 ;;
5996 *" need-ngettext "*) gt_api_version=2 ;;
5997 *) gt_api_version=1 ;;
5999 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6000 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6002 if test "$USE_NLS" = "yes"; then
6003 gt_use_preinstalled_gnugettext=no
6006 if test $gt_api_version -ge 3; then
6007 gt_revision_test_code='
6008 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6009 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6011 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6014 gt_revision_test_code=
6016 if test $gt_api_version -ge 2; then
6017 gt_expression_test_code=' + * ngettext ("", "", 0)'
6019 gt_expression_test_code=
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6023 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6024 if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
6025 $as_echo_n "(cached) " >&6
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 #include <libintl.h>
6030 $gt_revision_test_code
6031 extern int _nl_msg_cat_cntr;
6032 extern int *_nl_domain_bindings;
6036 bindtextdomain ("", "");
6037 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6042 if ac_fn_c_try_link "$LINENO"; then :
6043 eval "$gt_func_gnugettext_libc=yes"
6045 eval "$gt_func_gnugettext_libc=no"
6047 rm -f core conftest.err conftest.$ac_objext \
6048 conftest$ac_exeext conftest.$ac_ext
6050 eval ac_res=\$$gt_func_gnugettext_libc
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6052 $as_echo "$ac_res" >&6; }
6054 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6060 am_save_CPPFLAGS="$CPPFLAGS"
6062 for element in $INCICONV; do
6064 for x in $CPPFLAGS; do
6066 acl_save_prefix="$prefix"
6067 prefix="$acl_final_prefix"
6068 acl_save_exec_prefix="$exec_prefix"
6069 exec_prefix="$acl_final_exec_prefix"
6071 exec_prefix="$acl_save_exec_prefix"
6072 prefix="$acl_save_prefix"
6074 if test "X$x" = "X$element"; then
6079 if test -z "$haveit"; then
6080 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6086 $as_echo_n "checking for iconv... " >&6; }
6087 if test "${am_cv_func_iconv+set}" = set; then :
6088 $as_echo_n "(cached) " >&6
6091 am_cv_func_iconv="no, consider installing GNU libiconv"
6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h. */
6100 iconv_t cd = iconv_open("","");
6101 iconv(cd,NULL,NULL,NULL,NULL);
6107 if ac_fn_c_try_link "$LINENO"; then :
6108 am_cv_func_iconv=yes
6110 rm -f core conftest.err conftest.$ac_objext \
6111 conftest$ac_exeext conftest.$ac_ext
6112 if test "$am_cv_func_iconv" != yes; then
6113 am_save_LIBS="$LIBS"
6114 LIBS="$LIBS $LIBICONV"
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6122 iconv_t cd = iconv_open("","");
6123 iconv(cd,NULL,NULL,NULL,NULL);
6129 if ac_fn_c_try_link "$LINENO"; then :
6131 am_cv_func_iconv=yes
6133 rm -f core conftest.err conftest.$ac_objext \
6134 conftest$ac_exeext conftest.$ac_ext
6135 LIBS="$am_save_LIBS"
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6140 $as_echo "$am_cv_func_iconv" >&6; }
6141 if test "$am_cv_func_iconv" = yes; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6143 $as_echo_n "checking for working iconv... " >&6; }
6144 if test "${am_cv_func_iconv_works+set}" = set; then :
6145 $as_echo_n "(cached) " >&6
6148 am_save_LIBS="$LIBS"
6149 if test $am_cv_lib_iconv = yes; then
6150 LIBS="$LIBS $LIBICONV"
6152 if test "$cross_compiling" = yes; then :
6154 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6155 *) am_cv_func_iconv_works="guessing yes" ;;
6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159 /* end confdefs.h. */
6165 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6168 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6169 if (cd_utf8_to_88591 != (iconv_t)(-1))
6171 static const char input[] = "\342\202\254"; /* EURO SIGN */
6173 const char *inptr = input;
6174 size_t inbytesleft = strlen (input);
6176 size_t outbytesleft = sizeof (buf);
6177 size_t res = iconv (cd_utf8_to_88591,
6178 (char **) &inptr, &inbytesleft,
6179 &outptr, &outbytesleft);
6184 /* Test against Solaris 10 bug: Failures are not distinguishable from
6185 successful returns. */
6187 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6188 if (cd_ascii_to_88591 != (iconv_t)(-1))
6190 static const char input[] = "\263";
6192 const char *inptr = input;
6193 size_t inbytesleft = strlen (input);
6195 size_t outbytesleft = sizeof (buf);
6196 size_t res = iconv (cd_ascii_to_88591,
6197 (char **) &inptr, &inbytesleft,
6198 &outptr, &outbytesleft);
6203 #if 0 /* This bug could be worked around by the caller. */
6204 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6206 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6207 if (cd_88591_to_utf8 != (iconv_t)(-1))
6209 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6211 const char *inptr = input;
6212 size_t inbytesleft = strlen (input);
6214 size_t outbytesleft = sizeof (buf);
6215 size_t res = iconv (cd_88591_to_utf8,
6216 (char **) &inptr, &inbytesleft,
6217 &outptr, &outbytesleft);
6223 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6225 if (/* Try standardized names. */
6226 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6227 /* Try IRIX, OSF/1 names. */
6228 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6229 /* Try AIX names. */
6230 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6231 /* Try HP-UX names. */
6232 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6237 if ac_fn_c_try_run "$LINENO"; then :
6238 am_cv_func_iconv_works=yes
6240 am_cv_func_iconv_works=no
6242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6243 conftest.$ac_objext conftest.beam conftest.$ac_ext
6246 LIBS="$am_save_LIBS"
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6250 $as_echo "$am_cv_func_iconv_works" >&6; }
6251 case "$am_cv_func_iconv_works" in
6252 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6253 *) am_func_iconv=yes ;;
6256 am_func_iconv=no am_cv_lib_iconv=no
6258 if test "$am_func_iconv" = yes; then
6260 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6263 if test "$am_cv_lib_iconv" = yes; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6265 $as_echo_n "checking how to link with libiconv... " >&6; }
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6267 $as_echo "$LIBICONV" >&6; }
6269 CPPFLAGS="$am_save_CPPFLAGS"
6286 acl_save_prefix="$prefix"
6287 prefix="$acl_final_prefix"
6288 acl_save_exec_prefix="$exec_prefix"
6289 exec_prefix="$acl_final_exec_prefix"
6291 eval additional_includedir=\"$includedir\"
6292 eval additional_libdir=\"$libdir\"
6294 exec_prefix="$acl_save_exec_prefix"
6295 prefix="$acl_save_prefix"
6298 # Check whether --with-libintl-prefix was given.
6299 if test "${with_libintl_prefix+set}" = set; then :
6300 withval=$with_libintl_prefix;
6301 if test "X$withval" = "Xno"; then
6304 if test "X$withval" = "X"; then
6306 acl_save_prefix="$prefix"
6307 prefix="$acl_final_prefix"
6308 acl_save_exec_prefix="$exec_prefix"
6309 exec_prefix="$acl_final_exec_prefix"
6311 eval additional_includedir=\"$includedir\"
6312 eval additional_libdir=\"$libdir\"
6314 exec_prefix="$acl_save_exec_prefix"
6315 prefix="$acl_save_prefix"
6318 additional_includedir="$withval/include"
6319 additional_libdir="$withval/$acl_libdirstem"
6320 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6321 && ! test -d "$withval/$acl_libdirstem"; then
6322 additional_libdir="$withval/$acl_libdirstem2"
6336 names_already_handled=
6337 names_next_round='intl '
6338 while test -n "$names_next_round"; do
6339 names_this_round="$names_next_round"
6341 for name in $names_this_round; do
6343 for n in $names_already_handled; do
6344 if test "$n" = "$name"; then
6349 if test -z "$already_handled"; then
6350 names_already_handled="$names_already_handled $name"
6351 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6352 eval value=\"\$HAVE_LIB$uppername\"
6353 if test -n "$value"; then
6354 if test "$value" = yes; then
6355 eval value=\"\$LIB$uppername\"
6356 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6357 eval value=\"\$LTLIB$uppername\"
6358 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6367 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6368 if test -n "$acl_shlibext"; then
6369 shrext=".$acl_shlibext" # typically: shrext=.so
6373 if test $use_additional = yes; then
6374 dir="$additional_libdir"
6375 if test -n "$acl_shlibext"; then
6376 if test -f "$dir/$libname$shrext"; then
6378 found_so="$dir/$libname$shrext"
6380 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6381 ver=`(cd "$dir" && \
6382 for f in "$libname$shrext".*; do echo "$f"; done \
6383 | sed -e "s,^$libname$shrext\\\\.,," \
6384 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6385 | sed 1q ) 2>/dev/null`
6386 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6388 found_so="$dir/$libname$shrext.$ver"
6391 eval library_names=\"$acl_library_names_spec\"
6392 for f in $library_names; do
6393 if test -f "$dir/$f"; then
6402 if test "X$found_dir" = "X"; then
6403 if test -f "$dir/$libname.$acl_libext"; then
6405 found_a="$dir/$libname.$acl_libext"
6408 if test "X$found_dir" != "X"; then
6409 if test -f "$dir/$libname.la"; then
6410 found_la="$dir/$libname.la"
6414 if test "X$found_dir" = "X"; then
6415 for x in $LDFLAGS $LTLIBINTL; do
6417 acl_save_prefix="$prefix"
6418 prefix="$acl_final_prefix"
6419 acl_save_exec_prefix="$exec_prefix"
6420 exec_prefix="$acl_final_exec_prefix"
6422 exec_prefix="$acl_save_exec_prefix"
6423 prefix="$acl_save_prefix"
6427 dir=`echo "X$x" | sed -e 's/^X-L//'`
6428 if test -n "$acl_shlibext"; then
6429 if test -f "$dir/$libname$shrext"; then
6431 found_so="$dir/$libname$shrext"
6433 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6434 ver=`(cd "$dir" && \
6435 for f in "$libname$shrext".*; do echo "$f"; done \
6436 | sed -e "s,^$libname$shrext\\\\.,," \
6437 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6438 | sed 1q ) 2>/dev/null`
6439 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6441 found_so="$dir/$libname$shrext.$ver"
6444 eval library_names=\"$acl_library_names_spec\"
6445 for f in $library_names; do
6446 if test -f "$dir/$f"; then
6455 if test "X$found_dir" = "X"; then
6456 if test -f "$dir/$libname.$acl_libext"; then
6458 found_a="$dir/$libname.$acl_libext"
6461 if test "X$found_dir" != "X"; then
6462 if test -f "$dir/$libname.la"; then
6463 found_la="$dir/$libname.la"
6468 if test "X$found_dir" != "X"; then
6473 if test "X$found_dir" != "X"; then
6474 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6475 if test "X$found_so" != "X"; then
6476 if test "$enable_rpath" = no \
6477 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6478 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6479 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6482 for x in $ltrpathdirs; do
6483 if test "X$x" = "X$found_dir"; then
6488 if test -z "$haveit"; then
6489 ltrpathdirs="$ltrpathdirs $found_dir"
6491 if test "$acl_hardcode_direct" = yes; then
6492 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6494 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6495 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6497 for x in $rpathdirs; do
6498 if test "X$x" = "X$found_dir"; then
6503 if test -z "$haveit"; then
6504 rpathdirs="$rpathdirs $found_dir"
6508 for x in $LDFLAGS $LIBINTL; do
6510 acl_save_prefix="$prefix"
6511 prefix="$acl_final_prefix"
6512 acl_save_exec_prefix="$exec_prefix"
6513 exec_prefix="$acl_final_exec_prefix"
6515 exec_prefix="$acl_save_exec_prefix"
6516 prefix="$acl_save_prefix"
6518 if test "X$x" = "X-L$found_dir"; then
6523 if test -z "$haveit"; then
6524 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6526 if test "$acl_hardcode_minus_L" != no; then
6527 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6529 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6535 if test "X$found_a" != "X"; then
6536 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6538 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6541 additional_includedir=
6542 case "$found_dir" in
6543 */$acl_libdirstem | */$acl_libdirstem/)
6544 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6545 if test "$name" = 'intl'; then
6546 LIBINTL_PREFIX="$basedir"
6548 additional_includedir="$basedir/include"
6550 */$acl_libdirstem2 | */$acl_libdirstem2/)
6551 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6552 if test "$name" = 'intl'; then
6553 LIBINTL_PREFIX="$basedir"
6555 additional_includedir="$basedir/include"
6558 if test "X$additional_includedir" != "X"; then
6559 if test "X$additional_includedir" != "X/usr/include"; then
6561 if test "X$additional_includedir" = "X/usr/local/include"; then
6562 if test -n "$GCC"; then
6564 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6568 if test -z "$haveit"; then
6569 for x in $CPPFLAGS $INCINTL; do
6571 acl_save_prefix="$prefix"
6572 prefix="$acl_final_prefix"
6573 acl_save_exec_prefix="$exec_prefix"
6574 exec_prefix="$acl_final_exec_prefix"
6576 exec_prefix="$acl_save_exec_prefix"
6577 prefix="$acl_save_prefix"
6579 if test "X$x" = "X-I$additional_includedir"; then
6584 if test -z "$haveit"; then
6585 if test -d "$additional_includedir"; then
6586 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6592 if test -n "$found_la"; then
6593 save_libdir="$libdir"
6595 */* | *\\*) . "$found_la" ;;
6596 *) . "./$found_la" ;;
6598 libdir="$save_libdir"
6599 for dep in $dependency_libs; do
6602 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6603 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6604 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6606 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6607 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6608 if test -n "$GCC"; then
6610 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6614 if test -z "$haveit"; then
6616 for x in $LDFLAGS $LIBINTL; do
6618 acl_save_prefix="$prefix"
6619 prefix="$acl_final_prefix"
6620 acl_save_exec_prefix="$exec_prefix"
6621 exec_prefix="$acl_final_exec_prefix"
6623 exec_prefix="$acl_save_exec_prefix"
6624 prefix="$acl_save_prefix"
6626 if test "X$x" = "X-L$additional_libdir"; then
6631 if test -z "$haveit"; then
6632 if test -d "$additional_libdir"; then
6633 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6637 for x in $LDFLAGS $LTLIBINTL; do
6639 acl_save_prefix="$prefix"
6640 prefix="$acl_final_prefix"
6641 acl_save_exec_prefix="$exec_prefix"
6642 exec_prefix="$acl_final_exec_prefix"
6644 exec_prefix="$acl_save_exec_prefix"
6645 prefix="$acl_save_prefix"
6647 if test "X$x" = "X-L$additional_libdir"; then
6652 if test -z "$haveit"; then
6653 if test -d "$additional_libdir"; then
6654 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6661 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6662 if test "$enable_rpath" != no; then
6664 for x in $rpathdirs; do
6665 if test "X$x" = "X$dir"; then
6670 if test -z "$haveit"; then
6671 rpathdirs="$rpathdirs $dir"
6674 for x in $ltrpathdirs; do
6675 if test "X$x" = "X$dir"; then
6680 if test -z "$haveit"; then
6681 ltrpathdirs="$ltrpathdirs $dir"
6686 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6689 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6692 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6693 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6699 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6700 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6706 if test "X$rpathdirs" != "X"; then
6707 if test -n "$acl_hardcode_libdir_separator"; then
6709 for found_dir in $rpathdirs; do
6710 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6712 acl_save_libdir="$libdir"
6714 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6715 libdir="$acl_save_libdir"
6716 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6718 for found_dir in $rpathdirs; do
6719 acl_save_libdir="$libdir"
6721 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6722 libdir="$acl_save_libdir"
6723 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6727 if test "X$ltrpathdirs" != "X"; then
6728 for found_dir in $ltrpathdirs; do
6729 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6739 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6740 if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
6741 $as_echo_n "(cached) " >&6
6743 gt_save_CPPFLAGS="$CPPFLAGS"
6744 CPPFLAGS="$CPPFLAGS $INCINTL"
6745 gt_save_LIBS="$LIBS"
6746 LIBS="$LIBS $LIBINTL"
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 #include <libintl.h>
6750 $gt_revision_test_code
6751 extern int _nl_msg_cat_cntr;
6756 const char *_nl_expand_alias (const char *);
6760 bindtextdomain ("", "");
6761 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6766 if ac_fn_c_try_link "$LINENO"; then :
6767 eval "$gt_func_gnugettext_libintl=yes"
6769 eval "$gt_func_gnugettext_libintl=no"
6771 rm -f core conftest.err conftest.$ac_objext \
6772 conftest$ac_exeext conftest.$ac_ext
6773 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6774 LIBS="$LIBS $LIBICONV"
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 #include <libintl.h>
6778 $gt_revision_test_code
6779 extern int _nl_msg_cat_cntr;
6784 const char *_nl_expand_alias (const char *);
6788 bindtextdomain ("", "");
6789 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6794 if ac_fn_c_try_link "$LINENO"; then :
6795 LIBINTL="$LIBINTL $LIBICONV"
6796 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6797 eval "$gt_func_gnugettext_libintl=yes"
6800 rm -f core conftest.err conftest.$ac_objext \
6801 conftest$ac_exeext conftest.$ac_ext
6803 CPPFLAGS="$gt_save_CPPFLAGS"
6804 LIBS="$gt_save_LIBS"
6806 eval ac_res=\$$gt_func_gnugettext_libintl
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6808 $as_echo "$ac_res" >&6; }
6811 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6812 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6813 && test "$PACKAGE" != gettext-runtime \
6814 && test "$PACKAGE" != gettext-tools; }; then
6815 gt_use_preinstalled_gnugettext=yes
6824 if test -n "$INTL_MACOSX_LIBS"; then
6825 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6826 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6827 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6828 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6832 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6833 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6835 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6843 $as_echo_n "checking whether to use NLS... " >&6; }
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6845 $as_echo "$USE_NLS" >&6; }
6846 if test "$USE_NLS" = "yes"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6848 $as_echo_n "checking where the gettext function comes from... " >&6; }
6849 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6850 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6851 gt_source="external libintl"
6856 gt_source="included intl directory"
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6859 $as_echo "$gt_source" >&6; }
6862 if test "$USE_NLS" = "yes"; then
6864 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6865 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6867 $as_echo_n "checking how to link with libintl... " >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6869 $as_echo "$LIBINTL" >&6; }
6871 for element in $INCINTL; do
6873 for x in $CPPFLAGS; do
6875 acl_save_prefix="$prefix"
6876 prefix="$acl_final_prefix"
6877 acl_save_exec_prefix="$exec_prefix"
6878 exec_prefix="$acl_final_exec_prefix"
6880 exec_prefix="$acl_save_exec_prefix"
6881 prefix="$acl_save_prefix"
6883 if test "X$x" = "X$element"; then
6888 if test -z "$haveit"; then
6889 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6896 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6899 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6916 ############### common
6918 # Checks sensors, required by psensor and psensor-server
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
6920 $as_echo_n "checking for sensors_init in -lsensors... " >&6; }
6921 if test "${ac_cv_lib_sensors_sensors_init+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
6924 ac_check_lib_save_LIBS=$LIBS
6925 LIBS="-lsensors $LIBS"
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6929 /* Override any GCC internal prototype to avoid an error.
6930 Use char because int might match the return type of a GCC
6931 builtin and then its argument prototype would still apply. */
6935 char sensors_init ();
6939 return sensors_init ();
6944 if ac_fn_c_try_link "$LINENO"; then :
6945 ac_cv_lib_sensors_sensors_init=yes
6947 ac_cv_lib_sensors_sensors_init=no
6949 rm -f core conftest.err conftest.$ac_objext \
6950 conftest$ac_exeext conftest.$ac_ext
6951 LIBS=$ac_check_lib_save_LIBS
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
6954 $as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
6955 if test "x$ac_cv_lib_sensors_sensors_init" = x""yes; then :
6956 cat >>confdefs.h <<_ACEOF
6957 #define HAVE_LIBSENSORS 1
6960 LIBS="-lsensors $LIBS"
6964 for ac_header in sensors/sensors.h sensors/errors.h
6966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6967 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6968 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6969 cat >>confdefs.h <<_ACEOF
6970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6977 SENSORS_LIBS=-lsensors
6980 ############### psensor
6990 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6991 if test -n "$ac_tool_prefix"; then
6992 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6993 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995 $as_echo_n "checking for $ac_word... " >&6; }
6996 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6997 $as_echo_n "(cached) " >&6
7001 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7011 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7023 if test -n "$PKG_CONFIG"; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7025 $as_echo "$PKG_CONFIG" >&6; }
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028 $as_echo "no" >&6; }
7033 if test -z "$ac_cv_path_PKG_CONFIG"; then
7034 ac_pt_PKG_CONFIG=$PKG_CONFIG
7035 # Extract the first word of "pkg-config", so it can be a program name with args.
7036 set dummy pkg-config; ac_word=$2
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7040 $as_echo_n "(cached) " >&6
7042 case $ac_pt_PKG_CONFIG in
7044 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7054 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7066 if test -n "$ac_pt_PKG_CONFIG"; then
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7068 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 $as_echo "no" >&6; }
7074 if test "x$ac_pt_PKG_CONFIG" = x; then
7077 case $cross_compiling:$ac_tool_warned in
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7081 ac_tool_warned=yes ;;
7083 PKG_CONFIG=$ac_pt_PKG_CONFIG
7086 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7090 if test -n "$PKG_CONFIG"; then
7091 _pkg_min_version=0.9.0
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7093 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7094 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7096 $as_echo "yes" >&6; }
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7106 $as_echo_n "checking for X11... " >&6; }
7108 if test -n "$X11_CFLAGS"; then
7109 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7110 elif test -n "$PKG_CONFIG"; then
7111 if test -n "$PKG_CONFIG" && \
7112 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7113 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7116 test $ac_status = 0; }; then
7117 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
7124 if test -n "$X11_LIBS"; then
7125 pkg_cv_X11_LIBS="$X11_LIBS"
7126 elif test -n "$PKG_CONFIG"; then
7127 if test -n "$PKG_CONFIG" && \
7128 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7129 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7132 test $ac_status = 0; }; then
7133 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
7143 if test $pkg_failed = yes; then
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145 $as_echo "no" >&6; }
7147 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7148 _pkg_short_errors_supported=yes
7150 _pkg_short_errors_supported=no
7152 if test $_pkg_short_errors_supported = yes; then
7153 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
7155 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
7157 # Put the nasty error message in config.log where it belongs
7158 echo "$X11_PKG_ERRORS" >&5
7160 as_fn_error $? "Package requirements (x11) were not met:
7164 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7165 installed software in a non-standard prefix.
7167 Alternatively, you may set the environment variables X11_CFLAGS
7168 and X11_LIBS to avoid the need to call pkg-config.
7169 See the pkg-config man page for more details." "$LINENO" 5
7170 elif test $pkg_failed = untried; then
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 $as_echo "no" >&6; }
7173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7175 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7176 is in your PATH or set the PKG_CONFIG environment variable to the full
7179 Alternatively, you may set the environment variables X11_CFLAGS
7180 and X11_LIBS to avoid the need to call pkg-config.
7181 See the pkg-config man page for more details.
7183 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7184 See \`config.log' for more details" "$LINENO" 5 ; }
7186 X11_CFLAGS=$pkg_cv_X11_CFLAGS
7187 X11_LIBS=$pkg_cv_X11_LIBS
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7189 $as_echo "yes" >&6; }
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
7198 $as_echo_n "checking for XEXT... " >&6; }
7200 if test -n "$XEXT_CFLAGS"; then
7201 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
7202 elif test -n "$PKG_CONFIG"; then
7203 if test -n "$PKG_CONFIG" && \
7204 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7205 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7208 test $ac_status = 0; }; then
7209 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
7216 if test -n "$XEXT_LIBS"; then
7217 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
7218 elif test -n "$PKG_CONFIG"; then
7219 if test -n "$PKG_CONFIG" && \
7220 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7221 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7224 test $ac_status = 0; }; then
7225 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
7235 if test $pkg_failed = yes; then
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7239 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7240 _pkg_short_errors_supported=yes
7242 _pkg_short_errors_supported=no
7244 if test $_pkg_short_errors_supported = yes; then
7245 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext" 2>&1`
7247 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext" 2>&1`
7249 # Put the nasty error message in config.log where it belongs
7250 echo "$XEXT_PKG_ERRORS" >&5
7252 as_fn_error $? "Package requirements (xext) were not met:
7256 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7257 installed software in a non-standard prefix.
7259 Alternatively, you may set the environment variables XEXT_CFLAGS
7260 and XEXT_LIBS to avoid the need to call pkg-config.
7261 See the pkg-config man page for more details." "$LINENO" 5
7262 elif test $pkg_failed = untried; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7267 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7268 is in your PATH or set the PKG_CONFIG environment variable to the full
7271 Alternatively, you may set the environment variables XEXT_CFLAGS
7272 and XEXT_LIBS to avoid the need to call pkg-config.
7273 See the pkg-config man page for more details.
7275 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7276 See \`config.log' for more details" "$LINENO" 5 ; }
7278 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
7279 XEXT_LIBS=$pkg_cv_XEXT_LIBS
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7281 $as_echo "yes" >&6; }
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7291 $as_echo_n "checking for GTK... " >&6; }
7293 if test -n "$GTK_CFLAGS"; then
7294 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7295 elif test -n "$PKG_CONFIG"; then
7296 if test -n "$PKG_CONFIG" && \
7297 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 \""; } >&5
7298 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 ") 2>&5
7300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7301 test $ac_status = 0; }; then
7302 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 " 2>/dev/null`
7309 if test -n "$GTK_LIBS"; then
7310 pkg_cv_GTK_LIBS="$GTK_LIBS"
7311 elif test -n "$PKG_CONFIG"; then
7312 if test -n "$PKG_CONFIG" && \
7313 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 \""; } >&5
7314 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 ") 2>&5
7316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7317 test $ac_status = 0; }; then
7318 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 " 2>/dev/null`
7328 if test $pkg_failed = yes; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7332 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7333 _pkg_short_errors_supported=yes
7335 _pkg_short_errors_supported=no
7337 if test $_pkg_short_errors_supported = yes; then
7338 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 " 2>&1`
7340 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 " 2>&1`
7342 # Put the nasty error message in config.log where it belongs
7343 echo "$GTK_PKG_ERRORS" >&5
7345 as_fn_error $? "Package requirements (gtk+-2.0 ) were not met:
7349 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7350 installed software in a non-standard prefix.
7352 Alternatively, you may set the environment variables GTK_CFLAGS
7353 and GTK_LIBS to avoid the need to call pkg-config.
7354 See the pkg-config man page for more details." "$LINENO" 5
7355 elif test $pkg_failed = untried; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7360 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7361 is in your PATH or set the PKG_CONFIG environment variable to the full
7364 Alternatively, you may set the environment variables GTK_CFLAGS
7365 and GTK_LIBS to avoid the need to call pkg-config.
7366 See the pkg-config man page for more details.
7368 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7369 See \`config.log' for more details" "$LINENO" 5 ; }
7371 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7372 GTK_LIBS=$pkg_cv_GTK_LIBS
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7374 $as_echo "yes" >&6; }
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF" >&5
7384 $as_echo_n "checking for GCONF... " >&6; }
7386 if test -n "$GCONF_CFLAGS"; then
7387 pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
7388 elif test -n "$PKG_CONFIG"; then
7389 if test -n "$PKG_CONFIG" && \
7390 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7391 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7394 test $ac_status = 0; }; then
7395 pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0" 2>/dev/null`
7402 if test -n "$GCONF_LIBS"; then
7403 pkg_cv_GCONF_LIBS="$GCONF_LIBS"
7404 elif test -n "$PKG_CONFIG"; then
7405 if test -n "$PKG_CONFIG" && \
7406 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7407 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7410 test $ac_status = 0; }; then
7411 pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0" 2>/dev/null`
7421 if test $pkg_failed = yes; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7425 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7426 _pkg_short_errors_supported=yes
7428 _pkg_short_errors_supported=no
7430 if test $_pkg_short_errors_supported = yes; then
7431 GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gconf-2.0" 2>&1`
7433 GCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors "gconf-2.0" 2>&1`
7435 # Put the nasty error message in config.log where it belongs
7436 echo "$GCONF_PKG_ERRORS" >&5
7438 as_fn_error $? "Package requirements (gconf-2.0) were not met:
7442 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7443 installed software in a non-standard prefix.
7445 Alternatively, you may set the environment variables GCONF_CFLAGS
7446 and GCONF_LIBS to avoid the need to call pkg-config.
7447 See the pkg-config man page for more details." "$LINENO" 5
7448 elif test $pkg_failed = untried; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7453 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7454 is in your PATH or set the PKG_CONFIG environment variable to the full
7457 Alternatively, you may set the environment variables GCONF_CFLAGS
7458 and GCONF_LIBS to avoid the need to call pkg-config.
7459 See the pkg-config man page for more details.
7461 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7462 See \`config.log' for more details" "$LINENO" 5 ; }
7464 GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
7465 GCONF_LIBS=$pkg_cv_GCONF_LIBS
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7467 $as_echo "yes" >&6; }
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
7480 $as_echo_n "checking for LIBNOTIFY... " >&6; }
7482 if test -n "$LIBNOTIFY_CFLAGS"; then
7483 pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
7484 elif test -n "$PKG_CONFIG"; then
7485 if test -n "$PKG_CONFIG" && \
7486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7487 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7490 test $ac_status = 0; }; then
7491 pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
7498 if test -n "$LIBNOTIFY_LIBS"; then
7499 pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
7500 elif test -n "$PKG_CONFIG"; then
7501 if test -n "$PKG_CONFIG" && \
7502 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7503 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7506 test $ac_status = 0; }; then
7507 pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
7517 if test $pkg_failed = yes; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519 $as_echo "no" >&6; }
7521 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7522 _pkg_short_errors_supported=yes
7524 _pkg_short_errors_supported=no
7526 if test $_pkg_short_errors_supported = yes; then
7527 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libnotify" 2>&1`
7529 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors "libnotify" 2>&1`
7531 # Put the nasty error message in config.log where it belongs
7532 echo "$LIBNOTIFY_PKG_ERRORS" >&5
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7535 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7536 elif test $pkg_failed = untried; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7540 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7542 LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
7543 LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7545 $as_echo "yes" >&6; }
7547 $as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h
7550 if test -n "$LIBNOTIFY_LIBS"; then
7561 # Checks AppIndicator
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7566 $as_echo_n "checking for APPINDICATOR... " >&6; }
7568 if test -n "$APPINDICATOR_CFLAGS"; then
7569 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7570 elif test -n "$PKG_CONFIG"; then
7571 if test -n "$PKG_CONFIG" && \
7572 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7573 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7576 test $ac_status = 0; }; then
7577 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7584 if test -n "$APPINDICATOR_LIBS"; then
7585 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7586 elif test -n "$PKG_CONFIG"; then
7587 if test -n "$PKG_CONFIG" && \
7588 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7589 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7592 test $ac_status = 0; }; then
7593 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7603 if test $pkg_failed = yes; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7607 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7608 _pkg_short_errors_supported=yes
7610 _pkg_short_errors_supported=no
7612 if test $_pkg_short_errors_supported = yes; then
7613 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "appindicator-0.1 <= 0.2.9 " 2>&1`
7615 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors "appindicator-0.1 <= 0.2.9 " 2>&1`
7617 # Put the nasty error message in config.log where it belongs
7618 echo "$APPINDICATOR_PKG_ERRORS" >&5
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7621 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7622 elif test $pkg_failed = untried; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7626 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7628 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7629 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7631 $as_echo "yes" >&6; }
7633 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7636 $as_echo "#define HAVE_APPINDICATOR_029 1" >>confdefs.h
7641 if test "$APPINDICATOR_LIBS" == ""; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7645 $as_echo_n "checking for APPINDICATOR... " >&6; }
7647 if test -n "$APPINDICATOR_CFLAGS"; then
7648 pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7649 elif test -n "$PKG_CONFIG"; then
7650 if test -n "$PKG_CONFIG" && \
7651 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
7652 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
7654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7655 test $ac_status = 0; }; then
7656 pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 > 0.2.9" 2>/dev/null`
7663 if test -n "$APPINDICATOR_LIBS"; then
7664 pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7665 elif test -n "$PKG_CONFIG"; then
7666 if test -n "$PKG_CONFIG" && \
7667 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
7668 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
7670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7671 test $ac_status = 0; }; then
7672 pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 > 0.2.9" 2>/dev/null`
7682 if test $pkg_failed = yes; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 $as_echo "no" >&6; }
7686 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7687 _pkg_short_errors_supported=yes
7689 _pkg_short_errors_supported=no
7691 if test $_pkg_short_errors_supported = yes; then
7692 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "appindicator-0.1 > 0.2.9" 2>&1`
7694 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors "appindicator-0.1 > 0.2.9" 2>&1`
7696 # Put the nasty error message in config.log where it belongs
7697 echo "$APPINDICATOR_PKG_ERRORS" >&5
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
7700 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
7701 elif test $pkg_failed = untried; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
7705 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
7707 APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7708 APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7710 $as_echo "yes" >&6; }
7712 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7716 if test -n "$APPINDICATOR_LIBS"; then
7718 APPINDICATOR_FALSE='#'
7720 APPINDICATOR_TRUE='#'
7727 # Check CURL, needed for remote monitoring
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
7732 $as_echo_n "checking for CURL... " >&6; }
7734 if test -n "$CURL_CFLAGS"; then
7735 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
7736 elif test -n "$PKG_CONFIG"; then
7737 if test -n "$PKG_CONFIG" && \
7738 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
7739 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
7741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7742 test $ac_status = 0; }; then
7743 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
7750 if test -n "$CURL_LIBS"; then
7751 pkg_cv_CURL_LIBS="$CURL_LIBS"
7752 elif test -n "$PKG_CONFIG"; then
7753 if test -n "$PKG_CONFIG" && \
7754 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
7755 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
7757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7758 test $ac_status = 0; }; then
7759 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
7769 if test $pkg_failed = yes; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7773 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7774 _pkg_short_errors_supported=yes
7776 _pkg_short_errors_supported=no
7778 if test $_pkg_short_errors_supported = yes; then
7779 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl" 2>&1`
7781 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl" 2>&1`
7783 # Put the nasty error message in config.log where it belongs
7784 echo "$CURL_PKG_ERRORS" >&5
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
7787 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
7788 elif test $pkg_failed = untried; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
7792 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
7794 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
7795 CURL_LIBS=$pkg_cv_CURL_LIBS
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7797 $as_echo "yes" >&6; }
7799 $as_echo "#define HAVE_CURL 1" >>confdefs.h
7802 if test -n "$CURL_LIBS"; then
7813 # Check JSON, needed for remote monitoring
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
7818 $as_echo_n "checking for JSON... " >&6; }
7820 if test -n "$JSON_CFLAGS"; then
7821 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
7822 elif test -n "$PKG_CONFIG"; then
7823 if test -n "$PKG_CONFIG" && \
7824 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
7825 ($PKG_CONFIG --exists --print-errors "json") 2>&5
7827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7828 test $ac_status = 0; }; then
7829 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
7836 if test -n "$JSON_LIBS"; then
7837 pkg_cv_JSON_LIBS="$JSON_LIBS"
7838 elif test -n "$PKG_CONFIG"; then
7839 if test -n "$PKG_CONFIG" && \
7840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
7841 ($PKG_CONFIG --exists --print-errors "json") 2>&5
7843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7844 test $ac_status = 0; }; then
7845 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
7855 if test $pkg_failed = yes; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857 $as_echo "no" >&6; }
7859 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7860 _pkg_short_errors_supported=yes
7862 _pkg_short_errors_supported=no
7864 if test $_pkg_short_errors_supported = yes; then
7865 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "json" 2>&1`
7867 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors "json" 2>&1`
7869 # Put the nasty error message in config.log where it belongs
7870 echo "$JSON_PKG_ERRORS" >&5
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
7873 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
7874 elif test $pkg_failed = untried; then
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
7878 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
7880 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
7881 JSON_LIBS=$pkg_cv_JSON_LIBS
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7883 $as_echo "yes" >&6; }
7885 $as_echo "#define HAVE_JSON 1" >>confdefs.h
7888 if test -n "$JSON_LIBS"; then
7899 # Enables remote monitoring if JSON and CURL is present
7900 if test -n "$JSON_LIBS"; then
7901 if test -n "$CURL_LIBS"; then
7903 $as_echo "#define HAVE_REMOTE_SUPPORT 1" >>confdefs.h
7909 # following code from sensors-applet
7910 # sensors-applet.sourceforge.net/
7911 for ac_header in NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h
7913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7914 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
7915 #include <X11/Xlib.h>
7918 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7919 cat >>confdefs.h <<_ACEOF
7920 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7927 if test -n "${X11_LIBS}"; then
7928 LIBS="${LIBS} -lX11 -lXext"
7930 if test "${HAVE_NVIDIA}" = "true"; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryExtension in -lXNVCtrl" >&5
7932 $as_echo_n "checking for XNVCTRLQueryExtension in -lXNVCtrl... " >&6; }
7933 if test "${ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
7936 ac_check_lib_save_LIBS=$LIBS
7937 LIBS="-lXNVCtrl $LIBS"
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7941 /* Override any GCC internal prototype to avoid an error.
7942 Use char because int might match the return type of a GCC
7943 builtin and then its argument prototype would still apply. */
7947 char XNVCTRLQueryExtension ();
7951 return XNVCTRLQueryExtension ();
7956 if ac_fn_c_try_link "$LINENO"; then :
7957 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=yes
7959 ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=no
7961 rm -f core conftest.err conftest.$ac_objext \
7962 conftest$ac_exeext conftest.$ac_ext
7963 LIBS=$ac_check_lib_save_LIBS
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&5
7966 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&6; }
7967 if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" = x""yes; then :
7968 NVIDIA_LIBS="-lXNVCtrl -lX11 -lXext"
7970 $as_echo "#define HAVE_NVIDIA 1" >>confdefs.h
7977 if test -n "$NVIDIA_LIBS"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNITY" >&5
7992 $as_echo_n "checking for UNITY... " >&6; }
7994 if test -n "$UNITY_CFLAGS"; then
7995 pkg_cv_UNITY_CFLAGS="$UNITY_CFLAGS"
7996 elif test -n "$PKG_CONFIG"; then
7997 if test -n "$PKG_CONFIG" && \
7998 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
7999 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8002 test $ac_status = 0; }; then
8003 pkg_cv_UNITY_CFLAGS=`$PKG_CONFIG --cflags "unity >= 3.4.2" 2>/dev/null`
8010 if test -n "$UNITY_LIBS"; then
8011 pkg_cv_UNITY_LIBS="$UNITY_LIBS"
8012 elif test -n "$PKG_CONFIG"; then
8013 if test -n "$PKG_CONFIG" && \
8014 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8015 ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8018 test $ac_status = 0; }; then
8019 pkg_cv_UNITY_LIBS=`$PKG_CONFIG --libs "unity >= 3.4.2" 2>/dev/null`
8029 if test $pkg_failed = yes; then
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8033 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8034 _pkg_short_errors_supported=yes
8036 _pkg_short_errors_supported=no
8038 if test $_pkg_short_errors_supported = yes; then
8039 UNITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "unity >= 3.4.2" 2>&1`
8041 UNITY_PKG_ERRORS=`$PKG_CONFIG --print-errors "unity >= 3.4.2" 2>&1`
8043 # Put the nasty error message in config.log where it belongs
8044 echo "$UNITY_PKG_ERRORS" >&5
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8047 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8048 elif test $pkg_failed = untried; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8052 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8054 UNITY_CFLAGS=$pkg_cv_UNITY_CFLAGS
8055 UNITY_LIBS=$pkg_cv_UNITY_LIBS
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8057 $as_echo "yes" >&6; }
8059 $as_echo "#define HAVE_UNITY 1" >>confdefs.h
8064 if test -n "$UNITY_LIBS"; then
8075 # Check whether --with-libatiadl was given.
8076 if test "${with_libatiadl+set}" = set; then :
8077 withval=$with_libatiadl;
8078 ATIADL_DIR=${withval}
8079 CPPFLAGS="${CPPFLAGS} -I${ATIADL_DIR}/include"
8080 LIBS="$LIBS -L/usr/lib/fglrx"
8086 for ac_header in adl_defines.h
8088 ac_fn_c_check_header_mongrel "$LINENO" "adl_defines.h" "ac_cv_header_adl_defines_h" "$ac_includes_default"
8089 if test "x$ac_cv_header_adl_defines_h" = x""yes; then :
8090 cat >>confdefs.h <<_ACEOF
8091 #define HAVE_ADL_DEFINES_H 1
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ADL_Main_Control_Refresh in -latiadlxx" >&5
8094 $as_echo_n "checking for ADL_Main_Control_Refresh in -latiadlxx... " >&6; }
8095 if test "${ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh+set}" = set; then :
8096 $as_echo_n "(cached) " >&6
8098 ac_check_lib_save_LIBS=$LIBS
8099 LIBS="-latiadlxx $LIBS"
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8103 /* Override any GCC internal prototype to avoid an error.
8104 Use char because int might match the return type of a GCC
8105 builtin and then its argument prototype would still apply. */
8109 char ADL_Main_Control_Refresh ();
8113 return ADL_Main_Control_Refresh ();
8118 if ac_fn_c_try_link "$LINENO"; then :
8119 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=yes
8121 ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=no
8123 rm -f core conftest.err conftest.$ac_objext \
8124 conftest$ac_exeext conftest.$ac_ext
8125 LIBS=$ac_check_lib_save_LIBS
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&5
8128 $as_echo "$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&6; }
8129 if test "x$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" = x""yes; then :
8132 $as_echo "#define HAVE_LIBATIADL 1" >>confdefs.h
8134 LIBATIADL_CFLAGS="-I${ATIADL_DIR}/include"
8135 LIBATIADL_LIBS="-L/usr/lib/fglrx -latiadlxx"
8144 if test -n "$LIBATIADL_LIBS"; then
8155 ############### psensor-server
8157 # libmicrohttpd, mandatory for psensor-server
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMICROHTTPD" >&5
8162 $as_echo_n "checking for LIBMICROHTTPD... " >&6; }
8164 if test -n "$LIBMICROHTTPD_CFLAGS"; then
8165 pkg_cv_LIBMICROHTTPD_CFLAGS="$LIBMICROHTTPD_CFLAGS"
8166 elif test -n "$PKG_CONFIG"; then
8167 if test -n "$PKG_CONFIG" && \
8168 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8169 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8172 test $ac_status = 0; }; then
8173 pkg_cv_LIBMICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null`
8180 if test -n "$LIBMICROHTTPD_LIBS"; then
8181 pkg_cv_LIBMICROHTTPD_LIBS="$LIBMICROHTTPD_LIBS"
8182 elif test -n "$PKG_CONFIG"; then
8183 if test -n "$PKG_CONFIG" && \
8184 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8185 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8188 test $ac_status = 0; }; then
8189 pkg_cv_LIBMICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null`
8199 if test $pkg_failed = yes; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201 $as_echo "no" >&6; }
8203 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8204 _pkg_short_errors_supported=yes
8206 _pkg_short_errors_supported=no
8208 if test $_pkg_short_errors_supported = yes; then
8209 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libmicrohttpd" 2>&1`
8211 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors "libmicrohttpd" 2>&1`
8213 # Put the nasty error message in config.log where it belongs
8214 echo "$LIBMICROHTTPD_PKG_ERRORS" >&5
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8217 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8218 elif test $pkg_failed = untried; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220 $as_echo "no" >&6; }
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8222 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8224 LIBMICROHTTPD_CFLAGS=$pkg_cv_LIBMICROHTTPD_CFLAGS
8225 LIBMICROHTTPD_LIBS=$pkg_cv_LIBMICROHTTPD_LIBS
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8227 $as_echo "yes" >&6; }
8229 $as_echo "#define HAVE_LIBMICROHTTPD 1" >>confdefs.h
8232 if test -n "$LIBMICROHTTPD_LIBS"; then
8234 LIBMICROHTTPD_FALSE='#'
8236 LIBMICROHTTPD_TRUE='#'
8237 LIBMICROHTTPD_FALSE=
8246 # Check whether --with-gtop was given.
8247 if test "${with_gtop+set}" = set; then :
8258 if test "$with_gtop" = "yes"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTOP" >&5
8262 $as_echo_n "checking for GTOP... " >&6; }
8264 if test -n "$GTOP_CFLAGS"; then
8265 pkg_cv_GTOP_CFLAGS="$GTOP_CFLAGS"
8266 elif test -n "$PKG_CONFIG"; then
8267 if test -n "$PKG_CONFIG" && \
8268 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8269 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8272 test $ac_status = 0; }; then
8273 pkg_cv_GTOP_CFLAGS=`$PKG_CONFIG --cflags "libgtop-2.0" 2>/dev/null`
8280 if test -n "$GTOP_LIBS"; then
8281 pkg_cv_GTOP_LIBS="$GTOP_LIBS"
8282 elif test -n "$PKG_CONFIG"; then
8283 if test -n "$PKG_CONFIG" && \
8284 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8285 ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8288 test $ac_status = 0; }; then
8289 pkg_cv_GTOP_LIBS=`$PKG_CONFIG --libs "libgtop-2.0" 2>/dev/null`
8299 if test $pkg_failed = yes; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8303 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8304 _pkg_short_errors_supported=yes
8306 _pkg_short_errors_supported=no
8308 if test $_pkg_short_errors_supported = yes; then
8309 GTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgtop-2.0" 2>&1`
8311 GTOP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgtop-2.0" 2>&1`
8313 # Put the nasty error message in config.log where it belongs
8314 echo "$GTOP_PKG_ERRORS" >&5
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8317 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8318 elif test $pkg_failed = untried; then
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8322 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8324 GTOP_CFLAGS=$pkg_cv_GTOP_CFLAGS
8325 GTOP_LIBS=$pkg_cv_GTOP_LIBS
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8327 $as_echo "yes" >&6; }
8329 $as_echo "#define HAVE_GTOP 1" >>confdefs.h
8333 if test -n "$GTOP_LIBS"; then
8344 ac_config_files="$ac_config_files Makefile src/Makefile src/glade/Makefile src/plib/Makefile src/lib/Makefile src/unity/Makefile src/libpsensor_json/Makefile src/server/Makefile pixmaps/scalable/Makefile pixmaps/14x14/Makefile pixmaps/16x16/Makefile pixmaps/22x22/Makefile pixmaps/24x24/Makefile pixmaps/32x32/Makefile pixmaps/48x48/Makefile pixmaps/64x64/Makefile www/Makefile po/Makefile.in tests/Makefile"
8347 for ac_prog in help2man
8349 # Extract the first word of "$ac_prog", so it can be a program name with args.
8350 set dummy $ac_prog; ac_word=$2
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352 $as_echo_n "checking for $ac_word... " >&6; }
8353 if test "${ac_cv_prog_HELP2MAN+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
8356 if test -n "$HELP2MAN"; then
8357 ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8366 ac_cv_prog_HELP2MAN="$ac_prog"
8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 HELP2MAN=$ac_cv_prog_HELP2MAN
8377 if test -n "$HELP2MAN"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
8379 $as_echo "$HELP2MAN" >&6; }
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8386 test -n "$HELP2MAN" && break
8390 cat >confcache <<\_ACEOF
8391 # This file is a shell script that caches the results of configure
8392 # tests run on this system so they can be shared between configure
8393 # scripts and configure runs, see configure's option --config-cache.
8394 # It is not useful on other systems. If it contains results you don't
8395 # want to keep, you may remove or edit it.
8397 # config.status only pays attention to the cache file if you give it
8398 # the --recheck option to rerun configure.
8400 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8401 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8406 # The following way of writing the cache mishandles newlines in values,
8407 # but we know of no workaround that is simple, portable, and efficient.
8408 # So, we kill variables containing newlines.
8409 # Ultrix sh set writes to stderr and can't be redirected directly,
8410 # and sets the high bit in the cache file unless we assign to the vars.
8412 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8413 eval ac_val=\$$ac_var
8417 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8418 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8421 _ | IFS | as_nl) ;; #(
8422 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8423 *) { eval $ac_var=; unset $ac_var;} ;;
8429 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8430 *${as_nl}ac_space=\ *)
8431 # `set' does not quote correctly, so add quotes: double-quote
8432 # substitution turns \\\\ into \\, and sed turns \\ into \.
8435 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8438 # `set' quotes correctly as required by POSIX, so do not add quotes.
8439 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8448 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8450 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8452 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8453 if test -w "$cache_file"; then
8454 test "x$cache_file" != "x/dev/null" &&
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8456 $as_echo "$as_me: updating cache $cache_file" >&6;}
8457 cat confcache >$cache_file
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8460 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8465 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8466 # Let make expand exec_prefix.
8467 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8469 DEFS=-DHAVE_CONFIG_H
8474 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8475 # 1. Remove the extension, and $U if already installed.
8476 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8477 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8478 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8479 # will be set to the directory where LIBOBJS objects are built.
8480 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8481 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8485 LTLIBOBJS=$ac_ltlibobjs
8488 if test -n "$EXEEXT"; then
8490 am__EXEEXT_FALSE='#'
8496 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8497 as_fn_error $? "conditional \"AMDEP\" was never defined.
8498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8500 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8501 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8504 if test -z "${LIBNOTIFY_TRUE}" && test -z "${LIBNOTIFY_FALSE}"; then
8505 as_fn_error $? "conditional \"LIBNOTIFY\" was never defined.
8506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8508 if test -z "${APPINDICATOR_TRUE}" && test -z "${APPINDICATOR_FALSE}"; then
8509 as_fn_error $? "conditional \"APPINDICATOR\" was never defined.
8510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8512 if test -z "${CURL_TRUE}" && test -z "${CURL_FALSE}"; then
8513 as_fn_error $? "conditional \"CURL\" was never defined.
8514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8516 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
8517 as_fn_error $? "conditional \"JSON\" was never defined.
8518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8520 if test -z "${NVIDIA_TRUE}" && test -z "${NVIDIA_FALSE}"; then
8521 as_fn_error $? "conditional \"NVIDIA\" was never defined.
8522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8524 if test -z "${UNITY_TRUE}" && test -z "${UNITY_FALSE}"; then
8525 as_fn_error $? "conditional \"UNITY\" was never defined.
8526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8528 if test -z "${LIBATIADL_TRUE}" && test -z "${LIBATIADL_FALSE}"; then
8529 as_fn_error $? "conditional \"LIBATIADL\" was never defined.
8530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8532 if test -z "${LIBMICROHTTPD_TRUE}" && test -z "${LIBMICROHTTPD_FALSE}"; then
8533 as_fn_error $? "conditional \"LIBMICROHTTPD\" was never defined.
8534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8536 if test -z "${GTOP_TRUE}" && test -z "${GTOP_FALSE}"; then
8537 as_fn_error $? "conditional \"GTOP\" was never defined.
8538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8541 : ${CONFIG_STATUS=./config.status}
8543 ac_clean_files_save=$ac_clean_files
8544 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8546 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8548 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8550 # Generated by $as_me.
8551 # Run this file to recreate the current configuration.
8552 # Compiler output produced by configure, useful for debugging
8553 # configure, is in config.log if it exists.
8559 SHELL=\${CONFIG_SHELL-$SHELL}
8562 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8563 ## -------------------- ##
8564 ## M4sh Initialization. ##
8565 ## -------------------- ##
8567 # Be more Bourne compatible
8568 DUALCASE=1; export DUALCASE # for MKS sh
8569 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8572 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8573 # is contrary to our usage. Disable this feature.
8574 alias -g '${1+"$@"}'='"$@"'
8575 setopt NO_GLOB_SUBST
8577 case `(set -o) 2>/dev/null` in #(
8589 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8590 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8591 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8592 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8593 # Prefer a ksh shell builtin over an external printf program on Solaris,
8594 # but without wasting forks for bash or zsh.
8595 if test -z "$BASH_VERSION$ZSH_VERSION" \
8596 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8597 as_echo='print -r --'
8598 as_echo_n='print -rn --'
8599 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8600 as_echo='printf %s\n'
8601 as_echo_n='printf %s'
8603 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8604 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8605 as_echo_n='/usr/ucb/echo -n'
8607 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8608 as_echo_n_body='eval
8612 expr "X$arg" : "X\\(.*\\)$as_nl";
8613 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8615 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8617 export as_echo_n_body
8618 as_echo_n='sh -c $as_echo_n_body as_echo'
8621 as_echo='sh -c $as_echo_body as_echo'
8624 # The user is always right.
8625 if test "${PATH_SEPARATOR+set}" != set; then
8627 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8628 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8635 # We need space, tab and new line, in precisely that order. Quoting is
8636 # there to prevent editors from complaining about space-tab.
8637 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8638 # splitting by setting IFS to empty value.)
8641 # Find who we are. Look in the path if we contain no directory separator.
8643 *[\\/]* ) as_myself=$0 ;;
8644 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 test -z "$as_dir" && as_dir=.
8649 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8655 # We did not find ourselves, most probably we were run as `sh COMMAND'
8656 # in which case we are not to be found in the path.
8657 if test "x$as_myself" = x; then
8660 if test ! -f "$as_myself"; then
8661 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8665 # Unset variables that we do not need and which cause bugs (e.g. in
8666 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8667 # suppresses any "Segmentation fault" message there. '((' could
8668 # trigger a bug in pdksh 5.2.14.
8669 for as_var in BASH_ENV ENV MAIL MAILPATH
8670 do eval test x\${$as_var+set} = xset \
8671 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8684 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8687 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8688 # ----------------------------------------
8689 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8690 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8691 # script with STATUS, using 1 if that was 0.
8694 as_status=$1; test $as_status -eq 0 && as_status=1
8696 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8697 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8699 $as_echo "$as_me: error: $2" >&2
8700 as_fn_exit $as_status
8704 # as_fn_set_status STATUS
8705 # -----------------------
8706 # Set $? to STATUS, without forking.
8710 } # as_fn_set_status
8714 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8724 # Portably unset VAR.
8727 { eval $1=; unset $1;}
8729 as_unset=as_fn_unset
8730 # as_fn_append VAR VALUE
8731 # ----------------------
8732 # Append the text in VALUE to the end of the definition contained in VAR. Take
8733 # advantage of any shell optimizations that allow amortized linear growth over
8734 # repeated appends, instead of the typical quadratic growth present in naive
8736 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8737 eval 'as_fn_append ()
8748 # as_fn_arith ARG...
8749 # ------------------
8750 # Perform arithmetic evaluation on the ARGs, and store the result in the
8751 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8752 # must be portable across $(()) and expr.
8753 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8754 eval 'as_fn_arith ()
8761 as_val=`expr "$@" || test $? -eq 1`
8766 if expr a : '\(a\)' >/dev/null 2>&1 &&
8767 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8773 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8774 as_basename=basename
8779 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8785 as_me=`$as_basename -- "$0" ||
8786 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8787 X"$0" : 'X\(//\)$' \| \
8788 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8790 sed '/^.*\/\([^/][^/]*\)\/*$/{
8804 # Avoid depending upon Character Ranges.
8805 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8806 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8807 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8808 as_cr_digits='0123456789'
8809 as_cr_alnum=$as_cr_Letters$as_cr_digits
8811 ECHO_C= ECHO_N= ECHO_T=
8812 case `echo -n x` in #(((((
8814 case `echo 'xy\c'` in
8815 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8817 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8824 rm -f conf$$ conf$$.exe conf$$.file
8825 if test -d conf$$.dir; then
8826 rm -f conf$$.dir/conf$$.file
8829 mkdir conf$$.dir 2>/dev/null
8831 if (echo >conf$$.file) 2>/dev/null; then
8832 if ln -s conf$$.file conf$$ 2>/dev/null; then
8834 # ... but there are two gotchas:
8835 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8836 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8837 # In both cases, we have to default to `cp -p'.
8838 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8840 elif ln conf$$.file conf$$ 2>/dev/null; then
8848 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8849 rmdir conf$$.dir 2>/dev/null
8854 # Create "$as_dir" as a directory, including parents if necessary.
8859 -*) as_dir=./$as_dir;;
8861 test -d "$as_dir" || eval $as_mkdir_p || {
8865 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8866 *) as_qdir=$as_dir;;
8868 as_dirs="'$as_qdir' $as_dirs"
8869 as_dir=`$as_dirname -- "$as_dir" ||
8870 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8871 X"$as_dir" : 'X\(//\)[^/]' \| \
8872 X"$as_dir" : 'X\(//\)$' \| \
8873 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8874 $as_echo X"$as_dir" |
8875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8892 test -d "$as_dir" && break
8894 test -z "$as_dirs" || eval "mkdir $as_dirs"
8895 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8899 if mkdir -p . 2>/dev/null; then
8900 as_mkdir_p='mkdir -p "$as_dir"'
8902 test -d ./-p && rmdir ./-p
8906 if test -x / >/dev/null 2>&1; then
8909 if ls -dL / >/dev/null 2>&1; then
8916 if test -d "$1"; then
8922 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8923 ???[sx]*):;;*)false;;esac;fi
8927 as_executable_p=$as_test_x
8929 # Sed expression to map a string onto a valid CPP name.
8930 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8932 # Sed expression to map a string onto a valid variable name.
8933 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8937 ## ----------------------------------- ##
8938 ## Main body of $CONFIG_STATUS script. ##
8939 ## ----------------------------------- ##
8941 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8944 # Save the log message, to keep $0 and so on meaningful, and to
8945 # report actual input values of CONFIG_FILES etc. instead of their
8946 # values after options handling.
8948 This file was extended by psensor $as_me 0.6.2.11, which was
8949 generated by GNU Autoconf 2.67. Invocation command line was
8951 CONFIG_FILES = $CONFIG_FILES
8952 CONFIG_HEADERS = $CONFIG_HEADERS
8953 CONFIG_LINKS = $CONFIG_LINKS
8954 CONFIG_COMMANDS = $CONFIG_COMMANDS
8957 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8962 case $ac_config_files in *"
8963 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8966 case $ac_config_headers in *"
8967 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8972 # Files that config.status was made for.
8973 config_files="$ac_config_files"
8974 config_headers="$ac_config_headers"
8975 config_commands="$ac_config_commands"
8979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8981 \`$as_me' instantiates files and other configuration actions
8982 from templates according to the current configuration. Unless the files
8983 and actions are specified as TAGs, all are instantiated by default.
8985 Usage: $0 [OPTION]... [TAG]...
8987 -h, --help print this help, then exit
8988 -V, --version print version number and configuration settings, then exit
8989 --config print configuration, then exit
8990 -q, --quiet, --silent
8991 do not print progress messages
8992 -d, --debug don't remove temporary files
8993 --recheck update $as_me by reconfiguring in the same conditions
8994 --file=FILE[:TEMPLATE]
8995 instantiate the configuration file FILE
8996 --header=FILE[:TEMPLATE]
8997 instantiate the configuration header FILE
8999 Configuration files:
9002 Configuration headers:
9005 Configuration commands:
9008 Report bugs to <jeanfi@gmail.com>.
9009 psensor home page: <http://wpitchoune.net/psensor>."
9012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9013 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9015 psensor config.status 0.6.2.11
9016 configured by $0, generated by GNU Autoconf 2.67,
9017 with options \\"\$ac_cs_config\\"
9019 Copyright (C) 2010 Free Software Foundation, Inc.
9020 This config.status script is free software; the Free Software Foundation
9021 gives unlimited permission to copy, distribute and modify it."
9028 test -n "\$AWK" || AWK=awk
9031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9032 # The default lists apply if the user does not specify any file.
9038 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9039 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9043 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9055 # Handling of the options.
9056 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9058 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9059 $as_echo "$ac_cs_version"; exit ;;
9060 --config | --confi | --conf | --con | --co | --c )
9061 $as_echo "$ac_cs_config"; exit ;;
9062 --debug | --debu | --deb | --de | --d | -d )
9064 --file | --fil | --fi | --f )
9067 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9068 '') as_fn_error $? "missing file argument" ;;
9070 as_fn_append CONFIG_FILES " '$ac_optarg'"
9071 ac_need_defaults=false;;
9072 --header | --heade | --head | --hea )
9075 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9077 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9078 ac_need_defaults=false;;
9080 # Conflict between --help and --header
9081 as_fn_error $? "ambiguous option: \`$1'
9082 Try \`$0 --help' for more information.";;
9083 --help | --hel | -h )
9084 $as_echo "$ac_cs_usage"; exit ;;
9085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9086 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9090 -*) as_fn_error $? "unrecognized option: \`$1'
9091 Try \`$0 --help' for more information." ;;
9093 *) as_fn_append ac_config_targets " $1"
9094 ac_need_defaults=false ;;
9100 ac_configure_extra_args=
9102 if $ac_cs_silent; then
9104 ac_configure_extra_args="$ac_configure_extra_args --silent"
9108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9109 if \$ac_cs_recheck; then
9110 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9112 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9113 CONFIG_SHELL='$SHELL'
9119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9123 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9124 ## Running $as_me. ##
9130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9134 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9135 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9136 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9137 # from automake < 1.5.
9138 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9139 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9140 LINGUAS="${LINGUAS-%UNSET%}"
9145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9147 # Handling of arguments.
9148 for ac_config_target in $ac_config_targets
9150 case $ac_config_target in
9151 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9152 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9153 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9154 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9155 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9156 "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
9157 "src/plib/Makefile") CONFIG_FILES="$CONFIG_FILES src/plib/Makefile" ;;
9158 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
9159 "src/unity/Makefile") CONFIG_FILES="$CONFIG_FILES src/unity/Makefile" ;;
9160 "src/libpsensor_json/Makefile") CONFIG_FILES="$CONFIG_FILES src/libpsensor_json/Makefile" ;;
9161 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
9162 "pixmaps/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/scalable/Makefile" ;;
9163 "pixmaps/14x14/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/14x14/Makefile" ;;
9164 "pixmaps/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/16x16/Makefile" ;;
9165 "pixmaps/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/22x22/Makefile" ;;
9166 "pixmaps/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/24x24/Makefile" ;;
9167 "pixmaps/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/32x32/Makefile" ;;
9168 "pixmaps/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/48x48/Makefile" ;;
9169 "pixmaps/64x64/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/64x64/Makefile" ;;
9170 "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
9171 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9172 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9174 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
9179 # If the user did not use the arguments to specify the items to instantiate,
9180 # then the envvar interface is used. Set only those that are not.
9181 # We use the long form for the default assignment because of an extremely
9182 # bizarre bug on SunOS 4.1.3.
9183 if $ac_need_defaults; then
9184 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9185 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9186 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9189 # Have a temporary directory for convenience. Make it in the build tree
9190 # simply because there is no reason against having it here, and in addition,
9191 # creating and moving files from /tmp can sometimes cause problems.
9192 # Hook for its removal unless debugging.
9193 # Note that there is a small window in which the directory will not be cleaned:
9194 # after its creation but before its name has been assigned to `$tmp'.
9198 trap 'exit_status=$?
9199 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9201 trap 'as_fn_exit 1' 1 2 13 15
9203 # Create a (secure) tmp directory for tmp files.
9206 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9207 test -n "$tmp" && test -d "$tmp"
9210 tmp=./conf$$-$RANDOM
9211 (umask 077 && mkdir "$tmp")
9212 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9214 # Set up the scripts for CONFIG_FILES section.
9215 # No need to generate them if there are no CONFIG_FILES.
9216 # This happens for instance with `./config.status config.h'.
9217 if test -n "$CONFIG_FILES"; then
9220 ac_cr=`echo X | tr X '\015'`
9221 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9222 # But we know of no other shell where ac_cr would be empty at this
9223 # point, so we can use a bashism as a fallback.
9224 if test "x$ac_cr" = x; then
9225 eval ac_cr=\$\'\\r\'
9227 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9228 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9234 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9239 echo "cat >conf$$subs.awk <<_ACEOF" &&
9240 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9243 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9244 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9246 for ac_last_try in false false false false false :; do
9247 . ./conf$$subs.sh ||
9248 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9250 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9251 if test $ac_delim_n = $ac_delim_num; then
9253 elif $ac_last_try; then
9254 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9262 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9266 s/^/S["/; s/!.*/"]=/
9276 s/\(.\{148\}\)..*/\1/
9278 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9283 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9290 s/\(.\{148\}\)..*/\1/
9292 s/["\\]/\\&/g; s/^/"/; s/$/"/
9296 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9301 ' <conf$$subs.awk | sed '
9306 ' >>$CONFIG_STATUS || ac_write_fail=1
9307 rm -f conf$$subs.awk
9308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9310 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9311 for (key in S) S_is_set[key] = 1
9317 nfields = split(line, field, "@")
9319 len = length(field[1])
9320 for (i = 2; i < nfields; i++) {
9322 keylen = length(key)
9323 if (S_is_set[key]) {
9325 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9326 len += length(value) + length(field[++i])
9337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9338 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9339 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9342 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9343 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9346 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9347 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9348 # trailing colons and then remove the whole line if VPATH becomes empty
9349 # (actually we leave an empty line to preserve line numbers).
9350 if test "x$srcdir" = x.; then
9351 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9370 fi # test -n "$CONFIG_FILES"
9372 # Set up the scripts for CONFIG_HEADERS section.
9373 # No need to generate them if there are no CONFIG_HEADERS.
9374 # This happens for instance with `./config.status Makefile'.
9375 if test -n "$CONFIG_HEADERS"; then
9376 cat >"$tmp/defines.awk" <<\_ACAWK ||
9380 # Transform confdefs.h into an awk script `defines.awk', embedded as
9381 # here-document in config.status, that substitutes the proper values into
9382 # config.h.in to produce config.h.
9384 # Create a delimiter string that does not exist in confdefs.h, to ease
9385 # handling of long lines.
9387 for ac_last_try in false false :; do
9388 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9389 if test -z "$ac_t"; then
9391 elif $ac_last_try; then
9392 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9398 # For the awk script, D is an array of macro values keyed by name,
9399 # likewise P contains macro parameters if any. Preserve backslash
9400 # newline sequences.
9402 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9404 s/.\{148\}/&'"$ac_delim"'/g
9407 s/^[ ]*#[ ]*define[ ][ ]*/ /
9414 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9416 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9420 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9421 D["\1"]=" \3\\\\\\n"\\/p
9423 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9428 s/.\{148\}/&'"$ac_delim"'/g
9433 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9436 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9438 ' <confdefs.h | sed '
9439 s/'"$ac_delim"'/"\\\
9440 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9443 for (key in D) D_is_set[key] = 1
9446 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9448 split(line, arg, " ")
9449 if (arg[1] == "#") {
9453 defundef = substr(arg[1], 2)
9456 split(mac1, mac2, "(") #)
9458 prefix = substr(line, 1, index(line, defundef) - 1)
9459 if (D_is_set[macro]) {
9460 # Preserve the white space surrounding the "#".
9461 print prefix "define", macro P[macro] D[macro]
9464 # Replace #undef with comments. This is necessary, for example,
9465 # in the case of _POSIX_SOURCE, which is predefined and required
9466 # on some systems where configure will not decide to define it.
9467 if (defundef == "undef") {
9468 print "/*", prefix defundef, macro, "*/"
9476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9477 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9478 fi # test -n "$CONFIG_HEADERS"
9481 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9486 :[FHLC]) ac_mode=$ac_tag; continue;;
9488 case $ac_mode$ac_tag in
9490 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
9491 :[FH]-) ac_tag=-:-;;
9492 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9509 -) ac_f="$tmp/stdin";;
9510 *) # Look for the file first in the build tree, then in the source tree
9511 # (if the path is not absolute). The absolute path cannot be DOS-style,
9512 # because $ac_f cannot contain `:'.
9516 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9518 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
9520 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9521 as_fn_append ac_file_inputs " '$ac_f'"
9524 # Let's still pretend it is `configure' which instantiates (i.e., don't
9525 # use $as_me), people would be surprised to read:
9526 # /* config.h. Generated by config.status. */
9527 configure_input='Generated from '`
9528 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9530 if test x"$ac_file" != x-; then
9531 configure_input="$ac_file. $configure_input"
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9533 $as_echo "$as_me: creating $ac_file" >&6;}
9535 # Neutralize special characters interpreted by sed in replacement strings.
9536 case $configure_input in #(
9537 *\&* | *\|* | *\\* )
9538 ac_sed_conf_input=`$as_echo "$configure_input" |
9539 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9540 *) ac_sed_conf_input=$configure_input;;
9544 *:-:* | *:-) cat >"$tmp/stdin" \
9545 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9550 ac_dir=`$as_dirname -- "$ac_file" ||
9551 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9552 X"$ac_file" : 'X\(//\)[^/]' \| \
9553 X"$ac_file" : 'X\(//\)$' \| \
9554 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9555 $as_echo X"$ac_file" |
9556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9573 as_dir="$ac_dir"; as_fn_mkdir_p
9577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9580 # A ".." for each directory in $ac_dir_suffix.
9581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9582 case $ac_top_builddir_sub in
9583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9587 ac_abs_top_builddir=$ac_pwd
9588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9589 # for backward compatibility:
9590 ac_top_builddir=$ac_top_build_prefix
9593 .) # We are building in place.
9595 ac_top_srcdir=$ac_top_builddir_sub
9596 ac_abs_top_srcdir=$ac_pwd ;;
9597 [\\/]* | ?:[\\/]* ) # Absolute name.
9598 ac_srcdir=$srcdir$ac_dir_suffix;
9599 ac_top_srcdir=$srcdir
9600 ac_abs_top_srcdir=$srcdir ;;
9602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9603 ac_top_srcdir=$ac_top_build_prefix$srcdir
9604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9616 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9617 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9621 [\\/$]* | ?:[\\/]* ) ;;
9622 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9627 # If the template does not know about datarootdir, expand it.
9628 # FIXME: This hack should be removed a few years after 2.60.
9629 ac_datarootdir_hack=; ac_datarootdir_seen=
9640 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9641 *datarootdir*) ac_datarootdir_seen=yes;;
9642 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9644 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9647 ac_datarootdir_hack='
9648 s&@datadir@&$datadir&g
9649 s&@docdir@&$docdir&g
9650 s&@infodir@&$infodir&g
9651 s&@localedir@&$localedir&g
9652 s&@mandir@&$mandir&g
9653 s&\\\${datarootdir}&$datarootdir&g' ;;
9657 # Neutralize VPATH when `$srcdir' = `.'.
9658 # Shell code in configure.ac might set extrasub.
9659 # FIXME: do we really want to maintain this feature?
9660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9661 ac_sed_extra="$ac_vpsub
9664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9666 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9667 s|@configure_input@|$ac_sed_conf_input|;t t
9668 s&@top_builddir@&$ac_top_builddir_sub&;t t
9669 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9670 s&@srcdir@&$ac_srcdir&;t t
9671 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9672 s&@top_srcdir@&$ac_top_srcdir&;t t
9673 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9674 s&@builddir@&$ac_builddir&;t t
9675 s&@abs_builddir@&$ac_abs_builddir&;t t
9676 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9677 s&@INSTALL@&$ac_INSTALL&;t t
9678 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9679 $ac_datarootdir_hack
9681 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9682 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9684 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9685 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9686 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9688 which seems to be undefined. Please make sure it is defined" >&5
9689 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9690 which seems to be undefined. Please make sure it is defined" >&2;}
9694 -) cat "$tmp/out" && rm -f "$tmp/out";;
9695 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9703 if test x"$ac_file" != x-; then
9705 $as_echo "/* $configure_input */" \
9706 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9707 } >"$tmp/config.h" \
9708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9709 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9711 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9714 mv "$tmp/config.h" "$ac_file" \
9715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9718 $as_echo "/* $configure_input */" \
9719 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9720 || as_fn_error $? "could not create -" "$LINENO" 5
9722 # Compute "$ac_file"'s index in $config_headers.
9725 for _am_header in $config_headers :; do
9727 $_am_arg | $_am_arg:* )
9730 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9733 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9734 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9735 X"$_am_arg" : 'X\(//\)[^/]' \| \
9736 X"$_am_arg" : 'X\(//\)$' \| \
9737 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9738 $as_echo X"$_am_arg" |
9739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9755 s/.*/./; q'`/stamp-h$_am_stamp_count
9758 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9759 $as_echo "$as_me: executing $ac_file commands" >&6;}
9764 case $ac_file$ac_mode in
9765 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9766 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9767 # are listed without --file. Let's play safe and only enable the eval
9768 # if we detect the quoting.
9769 case $CONFIG_FILES in
9770 *\'*) eval set x "$CONFIG_FILES" ;;
9771 *) set x $CONFIG_FILES ;;
9776 # Strip MF so we end up with the name of the file.
9777 mf=`echo "$mf" | sed -e 's/:.*$//'`
9778 # Check whether this is an Automake generated Makefile or not.
9779 # We used to match only the files named `Makefile.in', but
9780 # some people rename them; so instead we look at the file content.
9781 # Grep'ing the first line is not enough: some people post-process
9782 # each Makefile.in and add a new line on top of each file to say so.
9783 # Grep'ing the whole file is not good either: AIX grep has a line
9784 # limit of 2048, but all sed's we know have understand at least 4000.
9785 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9786 dirpart=`$as_dirname -- "$mf" ||
9787 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9788 X"$mf" : 'X\(//\)[^/]' \| \
9789 X"$mf" : 'X\(//\)$' \| \
9790 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9812 # Extract the definition of DEPDIR, am__include, and am__quote
9813 # from the Makefile without running `make'.
9814 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9815 test -z "$DEPDIR" && continue
9816 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9817 test -z "am__include" && continue
9818 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9819 # When using ansi2knr, U may be empty or an underscore; expand it
9820 U=`sed -n 's/^U = //p' < "$mf"`
9821 # Find all dependency output files, they are included files with
9822 # $(DEPDIR) in their names. We invoke sed twice because it is the
9823 # simplest approach to changing $(DEPDIR) to its actual value in the
9825 for file in `sed -n "
9826 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9827 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9828 # Make sure the directory exists.
9829 test -f "$dirpart/$file" && continue
9830 fdir=`$as_dirname -- "$file" ||
9831 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9832 X"$file" : 'X\(//\)[^/]' \| \
9833 X"$file" : 'X\(//\)$' \| \
9834 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9853 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9854 # echo "creating $dirpart/$file"
9855 echo '# dummy' > "$dirpart/$file"
9861 for ac_file in $CONFIG_FILES; do
9862 # Support "outfile[:infile[:infile...]]"
9864 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9866 # PO directories have a Makefile.in generated from Makefile.in.in.
9867 case "$ac_file" in */Makefile.in)
9868 # Adjust a relative srcdir.
9869 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9870 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9871 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9872 # In autoconf-2.13 it is called $ac_given_srcdir.
9873 # In autoconf-2.50 it is called $srcdir.
9874 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9875 case "$ac_given_srcdir" in
9876 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9877 /*) top_srcdir="$ac_given_srcdir" ;;
9878 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9880 # Treat a directory as a PO directory if and only if it has a
9881 # POTFILES.in file. This allows packages to have multiple PO
9882 # directories under different names or in different locations.
9883 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9884 rm -f "$ac_dir/POTFILES"
9885 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9886 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9887 POMAKEFILEDEPS="POTFILES.in"
9888 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9889 # on $ac_dir but don't depend on user-specified configuration
9891 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9892 # The LINGUAS file contains the set of available languages.
9893 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9894 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9896 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9897 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9898 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9899 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9901 # The set of available languages was given in configure.in.
9902 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9903 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9906 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9907 # Compute UPDATEPOFILES
9908 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9909 # Compute DUMMYPOFILES
9910 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9912 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9913 case "$ac_given_srcdir" in
9915 *) srcdirpre='$(srcdir)/' ;;
9921 for lang in $ALL_LINGUAS; do
9922 POFILES="$POFILES $srcdirpre$lang.po"
9923 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9924 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9925 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9927 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9928 # environment variable.
9930 if test -n "$ALL_LINGUAS"; then
9931 for presentlang in $ALL_LINGUAS; do
9933 if test "%UNSET%" != "$LINGUAS"; then
9934 desiredlanguages="$LINGUAS"
9936 desiredlanguages="$ALL_LINGUAS"
9938 for desiredlang in $desiredlanguages; do
9939 # Use the presentlang catalog if desiredlang is
9940 # a. equal to presentlang, or
9941 # b. a variant of presentlang (because in this case,
9942 # presentlang can be used as a fallback for messages
9943 # which are not translated in the desiredlang catalog).
9944 case "$desiredlang" in
9945 "$presentlang"*) useit=yes;;
9948 if test $useit = yes; then
9949 INST_LINGUAS="$INST_LINGUAS $presentlang"
9954 if test -n "$INST_LINGUAS"; then
9955 for lang in $INST_LINGUAS; do
9956 CATALOGS="$CATALOGS $lang.gmo"
9959 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9960 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"
9961 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9962 if test -f "$f"; then
9964 *.orig | *.bak | *~) ;;
9965 *) cat "$f" >> "$ac_dir/Makefile" ;;
9980 ac_clean_files=$ac_clean_files_save
9982 test $ac_write_fail = 0 ||
9983 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9986 # configure is writing to config.log, and then calls config.status.
9987 # config.status does its own redirection, appending to config.log.
9988 # Unfortunately, on DOS this fails, as config.log is still kept open
9989 # by configure, so config.status won't be able to write to it; its
9990 # output is simply discarded. So we exec the FD to /dev/null,
9991 # effectively closing config.log, so it can be properly (re)opened and
9992 # appended to by config.status. When coming back to configure, we
9993 # need to make the FD available again.
9994 if test "$no_create" != yes; then
9996 ac_config_status_args=
9997 test "$silent" = yes &&
9998 ac_config_status_args="$ac_config_status_args --quiet"
10000 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10002 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10003 # would make configure fail if this is the last instruction.
10004 $ac_cs_success || as_fn_exit 1
10006 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10008 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}