wmhdplop: Add version 0.9.9 to repository.
[dockapps.git] / wmhdplop / configure
blob0e6a2edf098e5e14e934d713adadd63896bec9a1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="wmhdplop.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 INSTALL_PROGRAM
654 INSTALL_SCRIPT
655 INSTALL_DATA
656 CYGPATH_W
657 PACKAGE
658 VERSION
659 ACLOCAL
660 AUTOCONF
661 AUTOMAKE
662 AUTOHEADER
663 MAKEINFO
664 install_sh
665 STRIP
666 INSTALL_STRIP_PROGRAM
667 mkdir_p
669 SET_MAKE
670 am__leading_dot
671 AMTAR
672 am__tar
673 am__untar
674 ISODATE
675 build
676 build_cpu
677 build_vendor
678 build_os
679 host
680 host_cpu
681 host_vendor
682 host_os
684 CFLAGS
685 LDFLAGS
686 CPPFLAGS
687 ac_ct_CC
688 EXEEXT
689 OBJEXT
690 DEPDIR
691 am__include
692 am__quote
693 AMDEP_TRUE
694 AMDEP_FALSE
695 AMDEPBACKSLASH
696 CCDEPMODE
697 am__fastdepCC_TRUE
698 am__fastdepCC_FALSE
700 GREP
701 EGREP
702 XMKMF
703 X_CFLAGS
704 X_PRE_LIBS
705 X_LIBS
706 X_EXTRA_LIBS
707 IMLIB2_CONFIG_IN_PATH
708 IMLIB2_CFLAGS
709 IMLIB2_LIBS
710 PKG_CONFIG
711 PACKAGE_CFLAGS
712 PACKAGE_LIBS
713 GTK2_CFLAGS
714 GTK2_LIBS
715 GKHDPLOP
716 LIBOBJS
717 LTLIBOBJS'
718 ac_subst_files=''
719 ac_precious_vars='build_alias
720 host_alias
721 target_alias
723 CFLAGS
724 LDFLAGS
725 LIBS
726 CPPFLAGS
728 XMKMF
729 PKG_CONFIG
730 PACKAGE_CFLAGS
731 PACKAGE_LIBS'
734 # Initialize some variables set by options.
735 ac_init_help=
736 ac_init_version=false
737 # The variables have the same names as the options, with
738 # dashes changed to underlines.
739 cache_file=/dev/null
740 exec_prefix=NONE
741 no_create=
742 no_recursion=
743 prefix=NONE
744 program_prefix=NONE
745 program_suffix=NONE
746 program_transform_name=s,x,x,
747 silent=
748 site=
749 srcdir=
750 verbose=
751 x_includes=NONE
752 x_libraries=NONE
754 # Installation directory options.
755 # These are left unexpanded so users can "make install exec_prefix=/foo"
756 # and all the variables that are supposed to be based on exec_prefix
757 # by default will actually change.
758 # Use braces instead of parens because sh, perl, etc. also accept them.
759 # (The list follows the same order as the GNU Coding Standards.)
760 bindir='${exec_prefix}/bin'
761 sbindir='${exec_prefix}/sbin'
762 libexecdir='${exec_prefix}/libexec'
763 datarootdir='${prefix}/share'
764 datadir='${datarootdir}'
765 sysconfdir='${prefix}/etc'
766 sharedstatedir='${prefix}/com'
767 localstatedir='${prefix}/var'
768 includedir='${prefix}/include'
769 oldincludedir='/usr/include'
770 docdir='${datarootdir}/doc/${PACKAGE}'
771 infodir='${datarootdir}/info'
772 htmldir='${docdir}'
773 dvidir='${docdir}'
774 pdfdir='${docdir}'
775 psdir='${docdir}'
776 libdir='${exec_prefix}/lib'
777 localedir='${datarootdir}/locale'
778 mandir='${datarootdir}/man'
780 ac_prev=
781 ac_dashdash=
782 for ac_option
784 # If the previous option needs an argument, assign it.
785 if test -n "$ac_prev"; then
786 eval $ac_prev=\$ac_option
787 ac_prev=
788 continue
791 case $ac_option in
792 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
793 *) ac_optarg=yes ;;
794 esac
796 # Accept the important Cygnus configure options, so we can diagnose typos.
798 case $ac_dashdash$ac_option in
800 ac_dashdash=yes ;;
802 -bindir | --bindir | --bindi | --bind | --bin | --bi)
803 ac_prev=bindir ;;
804 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
805 bindir=$ac_optarg ;;
807 -build | --build | --buil | --bui | --bu)
808 ac_prev=build_alias ;;
809 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
810 build_alias=$ac_optarg ;;
812 -cache-file | --cache-file | --cache-fil | --cache-fi \
813 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
814 ac_prev=cache_file ;;
815 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
816 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
817 cache_file=$ac_optarg ;;
819 --config-cache | -C)
820 cache_file=config.cache ;;
822 -datadir | --datadir | --datadi | --datad)
823 ac_prev=datadir ;;
824 -datadir=* | --datadir=* | --datadi=* | --datad=*)
825 datadir=$ac_optarg ;;
827 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
828 | --dataroo | --dataro | --datar)
829 ac_prev=datarootdir ;;
830 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
831 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
832 datarootdir=$ac_optarg ;;
834 -disable-* | --disable-*)
835 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
836 # Reject names that are not valid shell variable names.
837 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
838 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
839 { (exit 1); exit 1; }; }
840 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
841 eval enable_$ac_feature=no ;;
843 -docdir | --docdir | --docdi | --doc | --do)
844 ac_prev=docdir ;;
845 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
846 docdir=$ac_optarg ;;
848 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
849 ac_prev=dvidir ;;
850 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
851 dvidir=$ac_optarg ;;
853 -enable-* | --enable-*)
854 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
857 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
858 { (exit 1); exit 1; }; }
859 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
860 eval enable_$ac_feature=\$ac_optarg ;;
862 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
863 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
864 | --exec | --exe | --ex)
865 ac_prev=exec_prefix ;;
866 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
867 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
868 | --exec=* | --exe=* | --ex=*)
869 exec_prefix=$ac_optarg ;;
871 -gas | --gas | --ga | --g)
872 # Obsolete; use --with-gas.
873 with_gas=yes ;;
875 -help | --help | --hel | --he | -h)
876 ac_init_help=long ;;
877 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
878 ac_init_help=recursive ;;
879 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
880 ac_init_help=short ;;
882 -host | --host | --hos | --ho)
883 ac_prev=host_alias ;;
884 -host=* | --host=* | --hos=* | --ho=*)
885 host_alias=$ac_optarg ;;
887 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
888 ac_prev=htmldir ;;
889 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
890 | --ht=*)
891 htmldir=$ac_optarg ;;
893 -includedir | --includedir | --includedi | --included | --include \
894 | --includ | --inclu | --incl | --inc)
895 ac_prev=includedir ;;
896 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
897 | --includ=* | --inclu=* | --incl=* | --inc=*)
898 includedir=$ac_optarg ;;
900 -infodir | --infodir | --infodi | --infod | --info | --inf)
901 ac_prev=infodir ;;
902 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
903 infodir=$ac_optarg ;;
905 -libdir | --libdir | --libdi | --libd)
906 ac_prev=libdir ;;
907 -libdir=* | --libdir=* | --libdi=* | --libd=*)
908 libdir=$ac_optarg ;;
910 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
911 | --libexe | --libex | --libe)
912 ac_prev=libexecdir ;;
913 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
914 | --libexe=* | --libex=* | --libe=*)
915 libexecdir=$ac_optarg ;;
917 -localedir | --localedir | --localedi | --localed | --locale)
918 ac_prev=localedir ;;
919 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
920 localedir=$ac_optarg ;;
922 -localstatedir | --localstatedir | --localstatedi | --localstated \
923 | --localstate | --localstat | --localsta | --localst | --locals)
924 ac_prev=localstatedir ;;
925 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
926 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
927 localstatedir=$ac_optarg ;;
929 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
930 ac_prev=mandir ;;
931 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
932 mandir=$ac_optarg ;;
934 -nfp | --nfp | --nf)
935 # Obsolete; use --without-fp.
936 with_fp=no ;;
938 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
939 | --no-cr | --no-c | -n)
940 no_create=yes ;;
942 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
943 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
944 no_recursion=yes ;;
946 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
947 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
948 | --oldin | --oldi | --old | --ol | --o)
949 ac_prev=oldincludedir ;;
950 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
951 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
952 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
953 oldincludedir=$ac_optarg ;;
955 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
956 ac_prev=prefix ;;
957 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
958 prefix=$ac_optarg ;;
960 -program-prefix | --program-prefix | --program-prefi | --program-pref \
961 | --program-pre | --program-pr | --program-p)
962 ac_prev=program_prefix ;;
963 -program-prefix=* | --program-prefix=* | --program-prefi=* \
964 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
965 program_prefix=$ac_optarg ;;
967 -program-suffix | --program-suffix | --program-suffi | --program-suff \
968 | --program-suf | --program-su | --program-s)
969 ac_prev=program_suffix ;;
970 -program-suffix=* | --program-suffix=* | --program-suffi=* \
971 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
972 program_suffix=$ac_optarg ;;
974 -program-transform-name | --program-transform-name \
975 | --program-transform-nam | --program-transform-na \
976 | --program-transform-n | --program-transform- \
977 | --program-transform | --program-transfor \
978 | --program-transfo | --program-transf \
979 | --program-trans | --program-tran \
980 | --progr-tra | --program-tr | --program-t)
981 ac_prev=program_transform_name ;;
982 -program-transform-name=* | --program-transform-name=* \
983 | --program-transform-nam=* | --program-transform-na=* \
984 | --program-transform-n=* | --program-transform-=* \
985 | --program-transform=* | --program-transfor=* \
986 | --program-transfo=* | --program-transf=* \
987 | --program-trans=* | --program-tran=* \
988 | --progr-tra=* | --program-tr=* | --program-t=*)
989 program_transform_name=$ac_optarg ;;
991 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
992 ac_prev=pdfdir ;;
993 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
994 pdfdir=$ac_optarg ;;
996 -psdir | --psdir | --psdi | --psd | --ps)
997 ac_prev=psdir ;;
998 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
999 psdir=$ac_optarg ;;
1001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1002 | -silent | --silent | --silen | --sile | --sil)
1003 silent=yes ;;
1005 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1006 ac_prev=sbindir ;;
1007 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1008 | --sbi=* | --sb=*)
1009 sbindir=$ac_optarg ;;
1011 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1012 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1013 | --sharedst | --shareds | --shared | --share | --shar \
1014 | --sha | --sh)
1015 ac_prev=sharedstatedir ;;
1016 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1017 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1018 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1019 | --sha=* | --sh=*)
1020 sharedstatedir=$ac_optarg ;;
1022 -site | --site | --sit)
1023 ac_prev=site ;;
1024 -site=* | --site=* | --sit=*)
1025 site=$ac_optarg ;;
1027 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1028 ac_prev=srcdir ;;
1029 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1030 srcdir=$ac_optarg ;;
1032 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1033 | --syscon | --sysco | --sysc | --sys | --sy)
1034 ac_prev=sysconfdir ;;
1035 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1036 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1037 sysconfdir=$ac_optarg ;;
1039 -target | --target | --targe | --targ | --tar | --ta | --t)
1040 ac_prev=target_alias ;;
1041 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1042 target_alias=$ac_optarg ;;
1044 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1045 verbose=yes ;;
1047 -version | --version | --versio | --versi | --vers | -V)
1048 ac_init_version=: ;;
1050 -with-* | --with-*)
1051 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1054 { echo "$as_me: error: invalid package name: $ac_package" >&2
1055 { (exit 1); exit 1; }; }
1056 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1057 eval with_$ac_package=\$ac_optarg ;;
1059 -without-* | --without-*)
1060 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1063 { echo "$as_me: error: invalid package name: $ac_package" >&2
1064 { (exit 1); exit 1; }; }
1065 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1066 eval with_$ac_package=no ;;
1068 --x)
1069 # Obsolete; use --with-x.
1070 with_x=yes ;;
1072 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1073 | --x-incl | --x-inc | --x-in | --x-i)
1074 ac_prev=x_includes ;;
1075 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1076 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1077 x_includes=$ac_optarg ;;
1079 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1080 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1081 ac_prev=x_libraries ;;
1082 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1083 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1084 x_libraries=$ac_optarg ;;
1086 -*) { echo "$as_me: error: unrecognized option: $ac_option
1087 Try \`$0 --help' for more information." >&2
1088 { (exit 1); exit 1; }; }
1091 *=*)
1092 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1095 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1096 { (exit 1); exit 1; }; }
1097 eval $ac_envvar=\$ac_optarg
1098 export $ac_envvar ;;
1101 # FIXME: should be removed in autoconf 3.0.
1102 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1103 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1104 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1105 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1108 esac
1109 done
1111 if test -n "$ac_prev"; then
1112 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1113 { echo "$as_me: error: missing argument to $ac_option" >&2
1114 { (exit 1); exit 1; }; }
1117 # Be sure to have absolute directory names.
1118 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1119 datadir sysconfdir sharedstatedir localstatedir includedir \
1120 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1121 libdir localedir mandir
1123 eval ac_val=\$$ac_var
1124 case $ac_val in
1125 [\\/$]* | ?:[\\/]* ) continue;;
1126 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1127 esac
1128 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1129 { (exit 1); exit 1; }; }
1130 done
1132 # There might be people who depend on the old broken behavior: `$host'
1133 # used to hold the argument of --host etc.
1134 # FIXME: To remove some day.
1135 build=$build_alias
1136 host=$host_alias
1137 target=$target_alias
1139 # FIXME: To remove some day.
1140 if test "x$host_alias" != x; then
1141 if test "x$build_alias" = x; then
1142 cross_compiling=maybe
1143 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1144 If a cross compiler is detected then cross compile mode will be used." >&2
1145 elif test "x$build_alias" != "x$host_alias"; then
1146 cross_compiling=yes
1150 ac_tool_prefix=
1151 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1153 test "$silent" = yes && exec 6>/dev/null
1156 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1157 ac_ls_di=`ls -di .` &&
1158 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1159 { echo "$as_me: error: Working directory cannot be determined" >&2
1160 { (exit 1); exit 1; }; }
1161 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1162 { echo "$as_me: error: pwd does not report name of working directory" >&2
1163 { (exit 1); exit 1; }; }
1166 # Find the source files, if location was not specified.
1167 if test -z "$srcdir"; then
1168 ac_srcdir_defaulted=yes
1169 # Try the directory containing this script, then the parent directory.
1170 ac_confdir=`$as_dirname -- "$0" ||
1171 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1172 X"$0" : 'X\(//\)[^/]' \| \
1173 X"$0" : 'X\(//\)$' \| \
1174 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1175 echo X"$0" |
1176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1177 s//\1/
1180 /^X\(\/\/\)[^/].*/{
1181 s//\1/
1184 /^X\(\/\/\)$/{
1185 s//\1/
1188 /^X\(\/\).*/{
1189 s//\1/
1192 s/.*/./; q'`
1193 srcdir=$ac_confdir
1194 if test ! -r "$srcdir/$ac_unique_file"; then
1195 srcdir=..
1197 else
1198 ac_srcdir_defaulted=no
1200 if test ! -r "$srcdir/$ac_unique_file"; then
1201 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1202 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1203 { (exit 1); exit 1; }; }
1205 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1206 ac_abs_confdir=`(
1207 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1208 { (exit 1); exit 1; }; }
1209 pwd)`
1210 # When building in place, set srcdir=.
1211 if test "$ac_abs_confdir" = "$ac_pwd"; then
1212 srcdir=.
1214 # Remove unnecessary trailing slashes from srcdir.
1215 # Double slashes in file names in object file debugging info
1216 # mess up M-x gdb in Emacs.
1217 case $srcdir in
1218 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1219 esac
1220 for ac_var in $ac_precious_vars; do
1221 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1222 eval ac_env_${ac_var}_value=\$${ac_var}
1223 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1224 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1225 done
1228 # Report the --help message.
1230 if test "$ac_init_help" = "long"; then
1231 # Omit some internal or obsolete options to make the list less imposing.
1232 # This message is too long to be a string in the A/UX 3.1 sh.
1233 cat <<_ACEOF
1234 \`configure' configures this package to adapt to many kinds of systems.
1236 Usage: $0 [OPTION]... [VAR=VALUE]...
1238 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1239 VAR=VALUE. See below for descriptions of some of the useful variables.
1241 Defaults for the options are specified in brackets.
1243 Configuration:
1244 -h, --help display this help and exit
1245 --help=short display options specific to this package
1246 --help=recursive display the short help of all the included packages
1247 -V, --version display version information and exit
1248 -q, --quiet, --silent do not print \`checking...' messages
1249 --cache-file=FILE cache test results in FILE [disabled]
1250 -C, --config-cache alias for \`--cache-file=config.cache'
1251 -n, --no-create do not create output files
1252 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1254 Installation directories:
1255 --prefix=PREFIX install architecture-independent files in PREFIX
1256 [$ac_default_prefix]
1257 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1258 [PREFIX]
1260 By default, \`make install' will install all the files in
1261 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1262 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1263 for instance \`--prefix=\$HOME'.
1265 For better control, use the options below.
1267 Fine tuning of the installation directories:
1268 --bindir=DIR user executables [EPREFIX/bin]
1269 --sbindir=DIR system admin executables [EPREFIX/sbin]
1270 --libexecdir=DIR program executables [EPREFIX/libexec]
1271 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1272 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1273 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1274 --libdir=DIR object code libraries [EPREFIX/lib]
1275 --includedir=DIR C header files [PREFIX/include]
1276 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1277 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1278 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1279 --infodir=DIR info documentation [DATAROOTDIR/info]
1280 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1281 --mandir=DIR man documentation [DATAROOTDIR/man]
1282 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1283 --htmldir=DIR html documentation [DOCDIR]
1284 --dvidir=DIR dvi documentation [DOCDIR]
1285 --pdfdir=DIR pdf documentation [DOCDIR]
1286 --psdir=DIR ps documentation [DOCDIR]
1287 _ACEOF
1289 cat <<\_ACEOF
1291 Program names:
1292 --program-prefix=PREFIX prepend PREFIX to installed program names
1293 --program-suffix=SUFFIX append SUFFIX to installed program names
1294 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1296 X features:
1297 --x-includes=DIR X include files are in DIR
1298 --x-libraries=DIR X library files are in DIR
1300 System types:
1301 --build=BUILD configure for building on BUILD [guessed]
1302 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1303 _ACEOF
1306 if test -n "$ac_init_help"; then
1308 cat <<\_ACEOF
1310 Optional Features:
1311 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1312 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1313 --enable-static[=PKGS] build static libraries [default=no]
1314 --enable-shared[=PKGS] build shared libraries [default=yes]
1315 --disable-dependency-tracking speeds up one-time build
1316 --enable-dependency-tracking do not reject slow dependency extractors
1317 --enable-gkrellm build the gkrellm plugin (requires gtk2 and gkrellm developpement files) (Default is yes)
1318 --disable-gkrellm do not build the gkrellm plugin
1320 Optional Packages:
1321 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1322 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1323 --with-x use the X Window System
1325 Some influential environment variables:
1326 CC C compiler command
1327 CFLAGS C compiler flags
1328 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1329 nonstandard directory <lib dir>
1330 LIBS libraries to pass to the linker, e.g. -l<library>
1331 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1332 you have headers in a nonstandard directory <include dir>
1333 CPP C preprocessor
1334 XMKMF Path to xmkmf, Makefile generator for X Window System
1335 PKG_CONFIG path to pkg-config utility
1336 PACKAGE_CFLAGS
1337 C compiler flags for PACKAGE, overriding pkg-config
1338 PACKAGE_LIBS
1339 linker flags for PACKAGE, overriding pkg-config
1341 Use these variables to override the choices made by `configure' or to help
1342 it to find libraries and programs with nonstandard names/locations.
1344 _ACEOF
1345 ac_status=$?
1348 if test "$ac_init_help" = "recursive"; then
1349 # If there are subdirs, report their specific --help.
1350 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1351 test -d "$ac_dir" || continue
1352 ac_builddir=.
1354 case "$ac_dir" in
1355 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1357 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1358 # A ".." for each directory in $ac_dir_suffix.
1359 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1360 case $ac_top_builddir_sub in
1361 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1362 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1363 esac ;;
1364 esac
1365 ac_abs_top_builddir=$ac_pwd
1366 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1367 # for backward compatibility:
1368 ac_top_builddir=$ac_top_build_prefix
1370 case $srcdir in
1371 .) # We are building in place.
1372 ac_srcdir=.
1373 ac_top_srcdir=$ac_top_builddir_sub
1374 ac_abs_top_srcdir=$ac_pwd ;;
1375 [\\/]* | ?:[\\/]* ) # Absolute name.
1376 ac_srcdir=$srcdir$ac_dir_suffix;
1377 ac_top_srcdir=$srcdir
1378 ac_abs_top_srcdir=$srcdir ;;
1379 *) # Relative name.
1380 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1381 ac_top_srcdir=$ac_top_build_prefix$srcdir
1382 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1383 esac
1384 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1386 cd "$ac_dir" || { ac_status=$?; continue; }
1387 # Check for guested configure.
1388 if test -f "$ac_srcdir/configure.gnu"; then
1389 echo &&
1390 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1391 elif test -f "$ac_srcdir/configure"; then
1392 echo &&
1393 $SHELL "$ac_srcdir/configure" --help=recursive
1394 else
1395 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1396 fi || ac_status=$?
1397 cd "$ac_pwd" || { ac_status=$?; break; }
1398 done
1401 test -n "$ac_init_help" && exit $ac_status
1402 if $ac_init_version; then
1403 cat <<\_ACEOF
1404 configure
1405 generated by GNU Autoconf 2.61
1407 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1408 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1409 This configure script is free software; the Free Software Foundation
1410 gives unlimited permission to copy, distribute and modify it.
1411 _ACEOF
1412 exit
1414 cat >config.log <<_ACEOF
1415 This file contains any messages produced by compilers while
1416 running configure, to aid debugging if configure makes a mistake.
1418 It was created by $as_me, which was
1419 generated by GNU Autoconf 2.61. Invocation command line was
1421 $ $0 $@
1423 _ACEOF
1424 exec 5>>config.log
1426 cat <<_ASUNAME
1427 ## --------- ##
1428 ## Platform. ##
1429 ## --------- ##
1431 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1432 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1433 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1434 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1435 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1437 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1438 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1440 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1441 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1442 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1443 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1444 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1445 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1446 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1448 _ASUNAME
1450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 for as_dir in $PATH
1453 IFS=$as_save_IFS
1454 test -z "$as_dir" && as_dir=.
1455 echo "PATH: $as_dir"
1456 done
1457 IFS=$as_save_IFS
1459 } >&5
1461 cat >&5 <<_ACEOF
1464 ## ----------- ##
1465 ## Core tests. ##
1466 ## ----------- ##
1468 _ACEOF
1471 # Keep a trace of the command line.
1472 # Strip out --no-create and --no-recursion so they do not pile up.
1473 # Strip out --silent because we don't want to record it for future runs.
1474 # Also quote any args containing shell meta-characters.
1475 # Make two passes to allow for proper duplicate-argument suppression.
1476 ac_configure_args=
1477 ac_configure_args0=
1478 ac_configure_args1=
1479 ac_must_keep_next=false
1480 for ac_pass in 1 2
1482 for ac_arg
1484 case $ac_arg in
1485 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1486 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1487 | -silent | --silent | --silen | --sile | --sil)
1488 continue ;;
1489 *\'*)
1490 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1491 esac
1492 case $ac_pass in
1493 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1495 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1496 if test $ac_must_keep_next = true; then
1497 ac_must_keep_next=false # Got value, back to normal.
1498 else
1499 case $ac_arg in
1500 *=* | --config-cache | -C | -disable-* | --disable-* \
1501 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1502 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1503 | -with-* | --with-* | -without-* | --without-* | --x)
1504 case "$ac_configure_args0 " in
1505 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1506 esac
1508 -* ) ac_must_keep_next=true ;;
1509 esac
1511 ac_configure_args="$ac_configure_args '$ac_arg'"
1513 esac
1514 done
1515 done
1516 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1517 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1519 # When interrupted or exit'd, cleanup temporary files, and complete
1520 # config.log. We remove comments because anyway the quotes in there
1521 # would cause problems or look ugly.
1522 # WARNING: Use '\'' to represent an apostrophe within the trap.
1523 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1524 trap 'exit_status=$?
1525 # Save into config.log some information that might help in debugging.
1527 echo
1529 cat <<\_ASBOX
1530 ## ---------------- ##
1531 ## Cache variables. ##
1532 ## ---------------- ##
1533 _ASBOX
1534 echo
1535 # The following way of writing the cache mishandles newlines in values,
1537 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1538 eval ac_val=\$$ac_var
1539 case $ac_val in #(
1540 *${as_nl}*)
1541 case $ac_var in #(
1542 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1543 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1544 esac
1545 case $ac_var in #(
1546 _ | IFS | as_nl) ;; #(
1547 *) $as_unset $ac_var ;;
1548 esac ;;
1549 esac
1550 done
1551 (set) 2>&1 |
1552 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1553 *${as_nl}ac_space=\ *)
1554 sed -n \
1555 "s/'\''/'\''\\\\'\'''\''/g;
1556 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1557 ;; #(
1559 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1561 esac |
1562 sort
1564 echo
1566 cat <<\_ASBOX
1567 ## ----------------- ##
1568 ## Output variables. ##
1569 ## ----------------- ##
1570 _ASBOX
1571 echo
1572 for ac_var in $ac_subst_vars
1574 eval ac_val=\$$ac_var
1575 case $ac_val in
1576 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1577 esac
1578 echo "$ac_var='\''$ac_val'\''"
1579 done | sort
1580 echo
1582 if test -n "$ac_subst_files"; then
1583 cat <<\_ASBOX
1584 ## ------------------- ##
1585 ## File substitutions. ##
1586 ## ------------------- ##
1587 _ASBOX
1588 echo
1589 for ac_var in $ac_subst_files
1591 eval ac_val=\$$ac_var
1592 case $ac_val in
1593 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1594 esac
1595 echo "$ac_var='\''$ac_val'\''"
1596 done | sort
1597 echo
1600 if test -s confdefs.h; then
1601 cat <<\_ASBOX
1602 ## ----------- ##
1603 ## confdefs.h. ##
1604 ## ----------- ##
1605 _ASBOX
1606 echo
1607 cat confdefs.h
1608 echo
1610 test "$ac_signal" != 0 &&
1611 echo "$as_me: caught signal $ac_signal"
1612 echo "$as_me: exit $exit_status"
1613 } >&5
1614 rm -f core *.core core.conftest.* &&
1615 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1616 exit $exit_status
1618 for ac_signal in 1 2 13 15; do
1619 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1620 done
1621 ac_signal=0
1623 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1624 rm -f -r conftest* confdefs.h
1626 # Predefined preprocessor variables.
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_NAME "$PACKAGE_NAME"
1630 _ACEOF
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1635 _ACEOF
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1640 _ACEOF
1643 cat >>confdefs.h <<_ACEOF
1644 #define PACKAGE_STRING "$PACKAGE_STRING"
1645 _ACEOF
1648 cat >>confdefs.h <<_ACEOF
1649 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1650 _ACEOF
1653 # Let the site file select an alternate cache file if it wants to.
1654 # Prefer explicitly selected file to automatically selected ones.
1655 if test -n "$CONFIG_SITE"; then
1656 set x "$CONFIG_SITE"
1657 elif test "x$prefix" != xNONE; then
1658 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1659 else
1660 set x "$ac_default_prefix/share/config.site" \
1661 "$ac_default_prefix/etc/config.site"
1663 shift
1664 for ac_site_file
1666 if test -r "$ac_site_file"; then
1667 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1668 echo "$as_me: loading site script $ac_site_file" >&6;}
1669 sed 's/^/| /' "$ac_site_file" >&5
1670 . "$ac_site_file"
1672 done
1674 if test -r "$cache_file"; then
1675 # Some versions of bash will fail to source /dev/null (special
1676 # files actually), so we avoid doing that.
1677 if test -f "$cache_file"; then
1678 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1679 echo "$as_me: loading cache $cache_file" >&6;}
1680 case $cache_file in
1681 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1682 *) . "./$cache_file";;
1683 esac
1685 else
1686 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1687 echo "$as_me: creating cache $cache_file" >&6;}
1688 >$cache_file
1691 # Check that the precious variables saved in the cache have kept the same
1692 # value.
1693 ac_cache_corrupted=false
1694 for ac_var in $ac_precious_vars; do
1695 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1696 eval ac_new_set=\$ac_env_${ac_var}_set
1697 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1698 eval ac_new_val=\$ac_env_${ac_var}_value
1699 case $ac_old_set,$ac_new_set in
1700 set,)
1701 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1702 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1703 ac_cache_corrupted=: ;;
1704 ,set)
1705 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1706 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1707 ac_cache_corrupted=: ;;
1708 ,);;
1710 if test "x$ac_old_val" != "x$ac_new_val"; then
1711 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1712 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1713 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1714 echo "$as_me: former value: $ac_old_val" >&2;}
1715 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1716 echo "$as_me: current value: $ac_new_val" >&2;}
1717 ac_cache_corrupted=:
1718 fi;;
1719 esac
1720 # Pass precious variables to config.status.
1721 if test "$ac_new_set" = set; then
1722 case $ac_new_val in
1723 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1724 *) ac_arg=$ac_var=$ac_new_val ;;
1725 esac
1726 case " $ac_configure_args " in
1727 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1728 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1729 esac
1731 done
1732 if $ac_cache_corrupted; then
1733 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1734 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1735 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1736 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1737 { (exit 1); exit 1; }; }
1756 ac_ext=c
1757 ac_cpp='$CPP $CPPFLAGS'
1758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1763 am__api_version="1.9"
1764 ac_aux_dir=
1765 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1766 if test -f "$ac_dir/install-sh"; then
1767 ac_aux_dir=$ac_dir
1768 ac_install_sh="$ac_aux_dir/install-sh -c"
1769 break
1770 elif test -f "$ac_dir/install.sh"; then
1771 ac_aux_dir=$ac_dir
1772 ac_install_sh="$ac_aux_dir/install.sh -c"
1773 break
1774 elif test -f "$ac_dir/shtool"; then
1775 ac_aux_dir=$ac_dir
1776 ac_install_sh="$ac_aux_dir/shtool install -c"
1777 break
1779 done
1780 if test -z "$ac_aux_dir"; then
1781 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1782 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1783 { (exit 1); exit 1; }; }
1786 # These three variables are undocumented and unsupported,
1787 # and are intended to be withdrawn in a future Autoconf release.
1788 # They can cause serious problems if a builder's source tree is in a directory
1789 # whose full name contains unusual characters.
1790 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1791 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1792 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1795 # Find a good install program. We prefer a C program (faster),
1796 # so one script is as good as another. But avoid the broken or
1797 # incompatible versions:
1798 # SysV /etc/install, /usr/sbin/install
1799 # SunOS /usr/etc/install
1800 # IRIX /sbin/install
1801 # AIX /bin/install
1802 # AmigaOS /C/install, which installs bootblocks on floppy discs
1803 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1804 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1805 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1806 # OS/2's system install, which has a completely different semantic
1807 # ./install, which can be erroneously created by make from ./install.sh.
1808 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1809 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1810 if test -z "$INSTALL"; then
1811 if test "${ac_cv_path_install+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1817 IFS=$as_save_IFS
1818 test -z "$as_dir" && as_dir=.
1819 # Account for people who put trailing slashes in PATH elements.
1820 case $as_dir/ in
1821 ./ | .// | /cC/* | \
1822 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1823 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1824 /usr/ucb/* ) ;;
1826 # OSF1 and SCO ODT 3.0 have their own names for install.
1827 # Don't use installbsd from OSF since it installs stuff as root
1828 # by default.
1829 for ac_prog in ginstall scoinst install; do
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1832 if test $ac_prog = install &&
1833 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1834 # AIX install. It has an incompatible calling convention.
1836 elif test $ac_prog = install &&
1837 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1838 # program-specific install script used by HP pwplus--don't use.
1840 else
1841 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1842 break 3
1845 done
1846 done
1848 esac
1849 done
1850 IFS=$as_save_IFS
1854 if test "${ac_cv_path_install+set}" = set; then
1855 INSTALL=$ac_cv_path_install
1856 else
1857 # As a last resort, use the slow shell script. Don't cache a
1858 # value for INSTALL within a source directory, because that will
1859 # break other packages using the cache if that directory is
1860 # removed, or if the value is a relative name.
1861 INSTALL=$ac_install_sh
1864 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1865 echo "${ECHO_T}$INSTALL" >&6; }
1867 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1868 # It thinks the first close brace ends the variable substitution.
1869 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1871 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1873 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1875 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1876 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1877 # Just in case
1878 sleep 1
1879 echo timestamp > conftest.file
1880 # Do `set' in a subshell so we don't clobber the current shell's
1881 # arguments. Must try -L first in case configure is actually a
1882 # symlink; some systems play weird games with the mod time of symlinks
1883 # (eg FreeBSD returns the mod time of the symlink's containing
1884 # directory).
1885 if (
1886 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1887 if test "$*" = "X"; then
1888 # -L didn't work.
1889 set X `ls -t $srcdir/configure conftest.file`
1891 rm -f conftest.file
1892 if test "$*" != "X $srcdir/configure conftest.file" \
1893 && test "$*" != "X conftest.file $srcdir/configure"; then
1895 # If neither matched, then we have a broken ls. This can happen
1896 # if, for instance, CONFIG_SHELL is bash and it inherits a
1897 # broken ls alias from the environment. This has actually
1898 # happened. Such a system could not be considered "sane".
1899 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1900 alias in your environment" >&5
1901 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1902 alias in your environment" >&2;}
1903 { (exit 1); exit 1; }; }
1906 test "$2" = conftest.file
1908 then
1909 # Ok.
1911 else
1912 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1913 Check your system clock" >&5
1914 echo "$as_me: error: newly created file is older than distributed files!
1915 Check your system clock" >&2;}
1916 { (exit 1); exit 1; }; }
1918 { echo "$as_me:$LINENO: result: yes" >&5
1919 echo "${ECHO_T}yes" >&6; }
1920 test "$program_prefix" != NONE &&
1921 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1922 # Use a double $ so make ignores it.
1923 test "$program_suffix" != NONE &&
1924 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1925 # Double any \ or $. echo might interpret backslashes.
1926 # By default was `s,x,x', remove it if useless.
1927 cat <<\_ACEOF >conftest.sed
1928 s/[\\$]/&&/g;s/;s,x,x,$//
1929 _ACEOF
1930 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1931 rm -f conftest.sed
1933 # expand $ac_aux_dir to an absolute path
1934 am_aux_dir=`cd $ac_aux_dir && pwd`
1936 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1937 # Use eval to expand $SHELL
1938 if eval "$MISSING --run true"; then
1939 am_missing_run="$MISSING --run "
1940 else
1941 am_missing_run=
1942 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1943 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1946 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1947 # We used to keeping the `.' as first argument, in order to
1948 # allow $(mkdir_p) to be used without argument. As in
1949 # $(mkdir_p) $(somedir)
1950 # where $(somedir) is conditionally defined. However this is wrong
1951 # for two reasons:
1952 # 1. if the package is installed by a user who cannot write `.'
1953 # make install will fail,
1954 # 2. the above comment should most certainly read
1955 # $(mkdir_p) $(DESTDIR)$(somedir)
1956 # so it does not work when $(somedir) is undefined and
1957 # $(DESTDIR) is not.
1958 # To support the latter case, we have to write
1959 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1960 # so the `.' trick is pointless.
1961 mkdir_p='mkdir -p --'
1962 else
1963 # On NextStep and OpenStep, the `mkdir' command does not
1964 # recognize any option. It will interpret all options as
1965 # directories to create, and then abort because `.' already
1966 # exists.
1967 for d in ./-p ./--version;
1969 test -d $d && rmdir $d
1970 done
1971 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1972 if test -f "$ac_aux_dir/mkinstalldirs"; then
1973 mkdir_p='$(mkinstalldirs)'
1974 else
1975 mkdir_p='$(install_sh) -d'
1979 for ac_prog in gawk mawk nawk awk
1981 # Extract the first word of "$ac_prog", so it can be a program name with args.
1982 set dummy $ac_prog; ac_word=$2
1983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1985 if test "${ac_cv_prog_AWK+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988 if test -n "$AWK"; then
1989 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1990 else
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1998 ac_cv_prog_AWK="$ac_prog"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 break 2
2002 done
2003 done
2004 IFS=$as_save_IFS
2008 AWK=$ac_cv_prog_AWK
2009 if test -n "$AWK"; then
2010 { echo "$as_me:$LINENO: result: $AWK" >&5
2011 echo "${ECHO_T}$AWK" >&6; }
2012 else
2013 { echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6; }
2018 test -n "$AWK" && break
2019 done
2021 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2022 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2023 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2024 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027 cat >conftest.make <<\_ACEOF
2028 SHELL = /bin/sh
2029 all:
2030 @echo '@@@%%%=$(MAKE)=@@@%%%'
2031 _ACEOF
2032 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2033 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2034 *@@@%%%=?*=@@@%%%*)
2035 eval ac_cv_prog_make_${ac_make}_set=yes;;
2037 eval ac_cv_prog_make_${ac_make}_set=no;;
2038 esac
2039 rm -f conftest.make
2041 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2042 { echo "$as_me:$LINENO: result: yes" >&5
2043 echo "${ECHO_T}yes" >&6; }
2044 SET_MAKE=
2045 else
2046 { echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6; }
2048 SET_MAKE="MAKE=${MAKE-make}"
2051 rm -rf .tst 2>/dev/null
2052 mkdir .tst 2>/dev/null
2053 if test -d .tst; then
2054 am__leading_dot=.
2055 else
2056 am__leading_dot=_
2058 rmdir .tst 2>/dev/null
2060 # test to see if srcdir already configured
2061 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2062 test -f $srcdir/config.status; then
2063 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2064 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2065 { (exit 1); exit 1; }; }
2068 # test whether we have cygpath
2069 if test -z "$CYGPATH_W"; then
2070 if (cygpath --version) >/dev/null 2>/dev/null; then
2071 CYGPATH_W='cygpath -w'
2072 else
2073 CYGPATH_W=echo
2078 # Define the identity of the package.
2079 PACKAGE=wmhdplop
2080 VERSION=0.9.9
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE "$PACKAGE"
2085 _ACEOF
2088 cat >>confdefs.h <<_ACEOF
2089 #define VERSION "$VERSION"
2090 _ACEOF
2092 # Some tools Automake needs.
2094 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2097 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2100 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2103 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2106 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2108 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2110 # Installed binaries are usually stripped using `strip' when the user
2111 # run `make install-strip'. However `strip' might not be the right
2112 # tool to use in cross-compilation environments, therefore Automake
2113 # will honor the `STRIP' environment variable to overrule this program.
2114 if test "$cross_compiling" != no; then
2115 if test -n "$ac_tool_prefix"; then
2116 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2117 set dummy ${ac_tool_prefix}strip; ac_word=$2
2118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2120 if test "${ac_cv_prog_STRIP+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123 if test -n "$STRIP"; then
2124 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2125 else
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2129 IFS=$as_save_IFS
2130 test -z "$as_dir" && as_dir=.
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2133 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 break 2
2137 done
2138 done
2139 IFS=$as_save_IFS
2143 STRIP=$ac_cv_prog_STRIP
2144 if test -n "$STRIP"; then
2145 { echo "$as_me:$LINENO: result: $STRIP" >&5
2146 echo "${ECHO_T}$STRIP" >&6; }
2147 else
2148 { echo "$as_me:$LINENO: result: no" >&5
2149 echo "${ECHO_T}no" >&6; }
2154 if test -z "$ac_cv_prog_STRIP"; then
2155 ac_ct_STRIP=$STRIP
2156 # Extract the first word of "strip", so it can be a program name with args.
2157 set dummy strip; ac_word=$2
2158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2160 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163 if test -n "$ac_ct_STRIP"; then
2164 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2165 else
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 for as_dir in $PATH
2169 IFS=$as_save_IFS
2170 test -z "$as_dir" && as_dir=.
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2173 ac_cv_prog_ac_ct_STRIP="strip"
2174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 break 2
2177 done
2178 done
2179 IFS=$as_save_IFS
2183 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2184 if test -n "$ac_ct_STRIP"; then
2185 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2186 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2187 else
2188 { echo "$as_me:$LINENO: result: no" >&5
2189 echo "${ECHO_T}no" >&6; }
2192 if test "x$ac_ct_STRIP" = x; then
2193 STRIP=":"
2194 else
2195 case $cross_compiling:$ac_tool_warned in
2196 yes:)
2197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2198 whose name does not start with the host triplet. If you think this
2199 configuration is useful to you, please write to autoconf@gnu.org." >&5
2200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2201 whose name does not start with the host triplet. If you think this
2202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2203 ac_tool_warned=yes ;;
2204 esac
2205 STRIP=$ac_ct_STRIP
2207 else
2208 STRIP="$ac_cv_prog_STRIP"
2212 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2214 # We need awk for the "check" target. The system "awk" is bad on
2215 # some platforms.
2216 # Always define AMTAR for backward compatibility.
2218 AMTAR=${AMTAR-"${am_missing_run}tar"}
2220 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2226 ac_config_headers="$ac_config_headers config.h"
2231 ISODATE=`date +%Y-%m-%d`
2234 # Make sure we can run config.sub.
2235 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2236 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2237 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2238 { (exit 1); exit 1; }; }
2240 { echo "$as_me:$LINENO: checking build system type" >&5
2241 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2242 if test "${ac_cv_build+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245 ac_build_alias=$build_alias
2246 test "x$ac_build_alias" = x &&
2247 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2248 test "x$ac_build_alias" = x &&
2249 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2250 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2251 { (exit 1); exit 1; }; }
2252 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2253 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2254 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2255 { (exit 1); exit 1; }; }
2258 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2259 echo "${ECHO_T}$ac_cv_build" >&6; }
2260 case $ac_cv_build in
2261 *-*-*) ;;
2262 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2263 echo "$as_me: error: invalid value of canonical build" >&2;}
2264 { (exit 1); exit 1; }; };;
2265 esac
2266 build=$ac_cv_build
2267 ac_save_IFS=$IFS; IFS='-'
2268 set x $ac_cv_build
2269 shift
2270 build_cpu=$1
2271 build_vendor=$2
2272 shift; shift
2273 # Remember, the first character of IFS is used to create $*,
2274 # except with old shells:
2275 build_os=$*
2276 IFS=$ac_save_IFS
2277 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2280 { echo "$as_me:$LINENO: checking host system type" >&5
2281 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2282 if test "${ac_cv_host+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285 if test "x$host_alias" = x; then
2286 ac_cv_host=$ac_cv_build
2287 else
2288 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2289 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2290 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2291 { (exit 1); exit 1; }; }
2295 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2296 echo "${ECHO_T}$ac_cv_host" >&6; }
2297 case $ac_cv_host in
2298 *-*-*) ;;
2299 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2300 echo "$as_me: error: invalid value of canonical host" >&2;}
2301 { (exit 1); exit 1; }; };;
2302 esac
2303 host=$ac_cv_host
2304 ac_save_IFS=$IFS; IFS='-'
2305 set x $ac_cv_host
2306 shift
2307 host_cpu=$1
2308 host_vendor=$2
2309 shift; shift
2310 # Remember, the first character of IFS is used to create $*,
2311 # except with old shells:
2312 host_os=$*
2313 IFS=$ac_save_IFS
2314 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2318 # Check whether --enable-static was given.
2319 if test "${enable_static+set}" = set; then
2320 enableval=$enable_static; p=${PACKAGE-default}
2321 case $enableval in
2322 yes) enable_static=yes ;;
2323 no) enable_static=no ;;
2325 enable_static=no
2326 # Look at the argument we got. We use all the common list separators.
2327 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2328 for pkg in $enableval; do
2329 IFS="$lt_save_ifs"
2330 if test "X$pkg" = "X$p"; then
2331 enable_static=yes
2333 done
2334 IFS="$lt_save_ifs"
2336 esac
2337 else
2338 enable_static=no
2343 # Check whether --enable-shared was given.
2344 if test "${enable_shared+set}" = set; then
2345 enableval=$enable_shared; p=${PACKAGE-default}
2346 case $enableval in
2347 yes) enable_shared=yes ;;
2348 no) enable_shared=no ;;
2350 enable_shared=no
2351 # Look at the argument we got. We use all the common list separators.
2352 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2353 for pkg in $enableval; do
2354 IFS="$lt_save_ifs"
2355 if test "X$pkg" = "X$p"; then
2356 enable_shared=yes
2358 done
2359 IFS="$lt_save_ifs"
2361 esac
2362 else
2363 enable_shared=yes
2368 # Find a good install program. We prefer a C program (faster),
2369 # so one script is as good as another. But avoid the broken or
2370 # incompatible versions:
2371 # SysV /etc/install, /usr/sbin/install
2372 # SunOS /usr/etc/install
2373 # IRIX /sbin/install
2374 # AIX /bin/install
2375 # AmigaOS /C/install, which installs bootblocks on floppy discs
2376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2379 # OS/2's system install, which has a completely different semantic
2380 # ./install, which can be erroneously created by make from ./install.sh.
2381 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2382 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2383 if test -z "$INSTALL"; then
2384 if test "${ac_cv_path_install+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 # Account for people who put trailing slashes in PATH elements.
2393 case $as_dir/ in
2394 ./ | .// | /cC/* | \
2395 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2396 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2397 /usr/ucb/* ) ;;
2399 # OSF1 and SCO ODT 3.0 have their own names for install.
2400 # Don't use installbsd from OSF since it installs stuff as root
2401 # by default.
2402 for ac_prog in ginstall scoinst install; do
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2405 if test $ac_prog = install &&
2406 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2407 # AIX install. It has an incompatible calling convention.
2409 elif test $ac_prog = install &&
2410 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2411 # program-specific install script used by HP pwplus--don't use.
2413 else
2414 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2415 break 3
2418 done
2419 done
2421 esac
2422 done
2423 IFS=$as_save_IFS
2427 if test "${ac_cv_path_install+set}" = set; then
2428 INSTALL=$ac_cv_path_install
2429 else
2430 # As a last resort, use the slow shell script. Don't cache a
2431 # value for INSTALL within a source directory, because that will
2432 # break other packages using the cache if that directory is
2433 # removed, or if the value is a relative name.
2434 INSTALL=$ac_install_sh
2437 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2438 echo "${ECHO_T}$INSTALL" >&6; }
2440 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2441 # It thinks the first close brace ends the variable substitution.
2442 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2444 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2446 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2448 ac_ext=c
2449 ac_cpp='$CPP $CPPFLAGS'
2450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2453 if test -n "$ac_tool_prefix"; then
2454 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2455 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_CC+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461 if test -n "$CC"; then
2462 ac_cv_prog_CC="$CC" # Let the user override the test.
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 break 2
2475 done
2476 done
2477 IFS=$as_save_IFS
2481 CC=$ac_cv_prog_CC
2482 if test -n "$CC"; then
2483 { echo "$as_me:$LINENO: result: $CC" >&5
2484 echo "${ECHO_T}$CC" >&6; }
2485 else
2486 { echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6; }
2492 if test -z "$ac_cv_prog_CC"; then
2493 ac_ct_CC=$CC
2494 # Extract the first word of "gcc", so it can be a program name with args.
2495 set dummy gcc; ac_word=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501 if test -n "$ac_ct_CC"; then
2502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 ac_cv_prog_ac_ct_CC="gcc"
2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 break 2
2515 done
2516 done
2517 IFS=$as_save_IFS
2521 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2522 if test -n "$ac_ct_CC"; then
2523 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2524 echo "${ECHO_T}$ac_ct_CC" >&6; }
2525 else
2526 { echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6; }
2530 if test "x$ac_ct_CC" = x; then
2531 CC=""
2532 else
2533 case $cross_compiling:$ac_tool_warned in
2534 yes:)
2535 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2536 whose name does not start with the host triplet. If you think this
2537 configuration is useful to you, please write to autoconf@gnu.org." >&5
2538 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2539 whose name does not start with the host triplet. If you think this
2540 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2541 ac_tool_warned=yes ;;
2542 esac
2543 CC=$ac_ct_CC
2545 else
2546 CC="$ac_cv_prog_CC"
2549 if test -z "$CC"; then
2550 if test -n "$ac_tool_prefix"; then
2551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2552 set dummy ${ac_tool_prefix}cc; ac_word=$2
2553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_CC="${ac_tool_prefix}cc"
2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2572 done
2573 done
2574 IFS=$as_save_IFS
2578 CC=$ac_cv_prog_CC
2579 if test -n "$CC"; then
2580 { echo "$as_me:$LINENO: result: $CC" >&5
2581 echo "${ECHO_T}$CC" >&6; }
2582 else
2583 { echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6; }
2590 if test -z "$CC"; then
2591 # Extract the first word of "cc", so it can be a program name with args.
2592 set dummy cc; ac_word=$2
2593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2595 if test "${ac_cv_prog_CC+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598 if test -n "$CC"; then
2599 ac_cv_prog_CC="$CC" # Let the user override the test.
2600 else
2601 ac_prog_rejected=no
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2610 ac_prog_rejected=yes
2611 continue
2613 ac_cv_prog_CC="cc"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 break 2
2617 done
2618 done
2619 IFS=$as_save_IFS
2621 if test $ac_prog_rejected = yes; then
2622 # We found a bogon in the path, so make sure we never use it.
2623 set dummy $ac_cv_prog_CC
2624 shift
2625 if test $# != 0; then
2626 # We chose a different compiler from the bogus one.
2627 # However, it has the same basename, so the bogon will be chosen
2628 # first if we set CC to just the basename; use the full file name.
2629 shift
2630 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2635 CC=$ac_cv_prog_CC
2636 if test -n "$CC"; then
2637 { echo "$as_me:$LINENO: result: $CC" >&5
2638 echo "${ECHO_T}$CC" >&6; }
2639 else
2640 { echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6; }
2646 if test -z "$CC"; then
2647 if test -n "$ac_tool_prefix"; then
2648 for ac_prog in cl.exe
2650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2654 if test "${ac_cv_prog_CC+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 else
2657 if test -n "$CC"; then
2658 ac_cv_prog_CC="$CC" # Let the user override the test.
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 break 2
2671 done
2672 done
2673 IFS=$as_save_IFS
2677 CC=$ac_cv_prog_CC
2678 if test -n "$CC"; then
2679 { echo "$as_me:$LINENO: result: $CC" >&5
2680 echo "${ECHO_T}$CC" >&6; }
2681 else
2682 { echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6; }
2687 test -n "$CC" && break
2688 done
2690 if test -z "$CC"; then
2691 ac_ct_CC=$CC
2692 for ac_prog in cl.exe
2694 # Extract the first word of "$ac_prog", so it can be a program name with args.
2695 set dummy $ac_prog; ac_word=$2
2696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 else
2701 if test -n "$ac_ct_CC"; then
2702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711 ac_cv_prog_ac_ct_CC="$ac_prog"
2712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2715 done
2716 done
2717 IFS=$as_save_IFS
2721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2722 if test -n "$ac_ct_CC"; then
2723 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2724 echo "${ECHO_T}$ac_ct_CC" >&6; }
2725 else
2726 { echo "$as_me:$LINENO: result: no" >&5
2727 echo "${ECHO_T}no" >&6; }
2731 test -n "$ac_ct_CC" && break
2732 done
2734 if test "x$ac_ct_CC" = x; then
2735 CC=""
2736 else
2737 case $cross_compiling:$ac_tool_warned in
2738 yes:)
2739 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2740 whose name does not start with the host triplet. If you think this
2741 configuration is useful to you, please write to autoconf@gnu.org." >&5
2742 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2743 whose name does not start with the host triplet. If you think this
2744 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2745 ac_tool_warned=yes ;;
2746 esac
2747 CC=$ac_ct_CC
2754 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2755 See \`config.log' for more details." >&5
2756 echo "$as_me: error: no acceptable C compiler found in \$PATH
2757 See \`config.log' for more details." >&2;}
2758 { (exit 1); exit 1; }; }
2760 # Provide some information about the compiler.
2761 echo "$as_me:$LINENO: checking for C compiler version" >&5
2762 ac_compiler=`set X $ac_compile; echo $2`
2763 { (ac_try="$ac_compiler --version >&5"
2764 case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2767 esac
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_compiler --version >&5") 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }
2773 { (ac_try="$ac_compiler -v >&5"
2774 case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777 esac
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_compiler -v >&5") 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }
2783 { (ac_try="$ac_compiler -V >&5"
2784 case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2787 esac
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_compiler -V >&5") 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }
2794 cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h. */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2802 main ()
2806 return 0;
2808 _ACEOF
2809 ac_clean_files_save=$ac_clean_files
2810 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2811 # Try to create an executable without -o first, disregard a.out.
2812 # It will help us diagnose broken compilers, and finding out an intuition
2813 # of exeext.
2814 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2815 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2816 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2818 # List of possible output files, starting from the most likely.
2819 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2820 # only as a last resort. b.out is created by i960 compilers.
2821 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2823 # The IRIX 6 linker writes into existing files which may not be
2824 # executable, retaining their permissions. Remove them first so a
2825 # subsequent execution test works.
2826 ac_rmfiles=
2827 for ac_file in $ac_files
2829 case $ac_file in
2830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2831 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2832 esac
2833 done
2834 rm -f $ac_rmfiles
2836 if { (ac_try="$ac_link_default"
2837 case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840 esac
2841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842 (eval "$ac_link_default") 2>&5
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; then
2846 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2847 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2848 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2849 # so that the user can short-circuit this test for compilers unknown to
2850 # Autoconf.
2851 for ac_file in $ac_files ''
2853 test -f "$ac_file" || continue
2854 case $ac_file in
2855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2857 [ab].out )
2858 # We found the default executable, but exeext='' is most
2859 # certainly right.
2860 break;;
2861 *.* )
2862 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2863 then :; else
2864 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2866 # We set ac_cv_exeext here because the later test for it is not
2867 # safe: cross compilers may not add the suffix if given an `-o'
2868 # argument, so we may need to know it at that point already.
2869 # Even if this section looks crufty: it has the advantage of
2870 # actually working.
2871 break;;
2873 break;;
2874 esac
2875 done
2876 test "$ac_cv_exeext" = no && ac_cv_exeext=
2878 else
2879 ac_file=''
2882 { echo "$as_me:$LINENO: result: $ac_file" >&5
2883 echo "${ECHO_T}$ac_file" >&6; }
2884 if test -z "$ac_file"; then
2885 echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2888 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2889 See \`config.log' for more details." >&5
2890 echo "$as_me: error: C compiler cannot create executables
2891 See \`config.log' for more details." >&2;}
2892 { (exit 77); exit 77; }; }
2895 ac_exeext=$ac_cv_exeext
2897 # Check that the compiler produces executables we can run. If not, either
2898 # the compiler is broken, or we cross compile.
2899 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2900 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2901 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2902 # If not cross compiling, check that we can run a simple program.
2903 if test "$cross_compiling" != yes; then
2904 if { ac_try='./$ac_file'
2905 { (case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_try") 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; }; then
2914 cross_compiling=no
2915 else
2916 if test "$cross_compiling" = maybe; then
2917 cross_compiling=yes
2918 else
2919 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2920 If you meant to cross compile, use \`--host'.
2921 See \`config.log' for more details." >&5
2922 echo "$as_me: error: cannot run C compiled programs.
2923 If you meant to cross compile, use \`--host'.
2924 See \`config.log' for more details." >&2;}
2925 { (exit 1); exit 1; }; }
2929 { echo "$as_me:$LINENO: result: yes" >&5
2930 echo "${ECHO_T}yes" >&6; }
2932 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2933 ac_clean_files=$ac_clean_files_save
2934 # Check that the compiler produces executables we can run. If not, either
2935 # the compiler is broken, or we cross compile.
2936 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2937 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2938 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2939 echo "${ECHO_T}$cross_compiling" >&6; }
2941 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2942 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2943 if { (ac_try="$ac_link"
2944 case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947 esac
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_link") 2>&5
2950 ac_status=$?
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; then
2953 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2954 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2955 # work properly (i.e., refer to `conftest.exe'), while it won't with
2956 # `rm'.
2957 for ac_file in conftest.exe conftest conftest.*; do
2958 test -f "$ac_file" || continue
2959 case $ac_file in
2960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2961 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2962 break;;
2963 * ) break;;
2964 esac
2965 done
2966 else
2967 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2968 See \`config.log' for more details." >&5
2969 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2970 See \`config.log' for more details." >&2;}
2971 { (exit 1); exit 1; }; }
2974 rm -f conftest$ac_cv_exeext
2975 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2976 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2978 rm -f conftest.$ac_ext
2979 EXEEXT=$ac_cv_exeext
2980 ac_exeext=$EXEEXT
2981 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2982 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2983 if test "${ac_cv_objext+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 cat >conftest.$ac_ext <<_ACEOF
2987 /* confdefs.h. */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
2994 main ()
2998 return 0;
3000 _ACEOF
3001 rm -f conftest.o conftest.obj
3002 if { (ac_try="$ac_compile"
3003 case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compile") 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; then
3012 for ac_file in conftest.o conftest.obj conftest.*; do
3013 test -f "$ac_file" || continue;
3014 case $ac_file in
3015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3016 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3017 break;;
3018 esac
3019 done
3020 else
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3024 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3025 See \`config.log' for more details." >&5
3026 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3027 See \`config.log' for more details." >&2;}
3028 { (exit 1); exit 1; }; }
3031 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3033 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3034 echo "${ECHO_T}$ac_cv_objext" >&6; }
3035 OBJEXT=$ac_cv_objext
3036 ac_objext=$OBJEXT
3037 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3038 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3039 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042 cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h. */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3050 main ()
3052 #ifndef __GNUC__
3053 choke me
3054 #endif
3057 return 0;
3059 _ACEOF
3060 rm -f conftest.$ac_objext
3061 if { (ac_try="$ac_compile"
3062 case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_compile") 2>conftest.er1
3068 ac_status=$?
3069 grep -v '^ *+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } && {
3074 test -z "$ac_c_werror_flag" ||
3075 test ! -s conftest.err
3076 } && test -s conftest.$ac_objext; then
3077 ac_compiler_gnu=yes
3078 else
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3082 ac_compiler_gnu=no
3085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3089 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3090 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3091 GCC=`test $ac_compiler_gnu = yes && echo yes`
3092 ac_test_CFLAGS=${CFLAGS+set}
3093 ac_save_CFLAGS=$CFLAGS
3094 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3095 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3096 if test "${ac_cv_prog_cc_g+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 else
3099 ac_save_c_werror_flag=$ac_c_werror_flag
3100 ac_c_werror_flag=yes
3101 ac_cv_prog_cc_g=no
3102 CFLAGS="-g"
3103 cat >conftest.$ac_ext <<_ACEOF
3104 /* confdefs.h. */
3105 _ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3111 main ()
3115 return 0;
3117 _ACEOF
3118 rm -f conftest.$ac_objext
3119 if { (ac_try="$ac_compile"
3120 case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compile") 2>conftest.er1
3126 ac_status=$?
3127 grep -v '^ *+' conftest.er1 >conftest.err
3128 rm -f conftest.er1
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } && {
3132 test -z "$ac_c_werror_flag" ||
3133 test ! -s conftest.err
3134 } && test -s conftest.$ac_objext; then
3135 ac_cv_prog_cc_g=yes
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 CFLAGS=""
3141 cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h. */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3149 main ()
3153 return 0;
3155 _ACEOF
3156 rm -f conftest.$ac_objext
3157 if { (ac_try="$ac_compile"
3158 case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161 esac
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_compile") 2>conftest.er1
3164 ac_status=$?
3165 grep -v '^ *+' conftest.er1 >conftest.err
3166 rm -f conftest.er1
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } && {
3170 test -z "$ac_c_werror_flag" ||
3171 test ! -s conftest.err
3172 } && test -s conftest.$ac_objext; then
3174 else
3175 echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3178 ac_c_werror_flag=$ac_save_c_werror_flag
3179 CFLAGS="-g"
3180 cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3188 main ()
3192 return 0;
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compile") 2>conftest.er1
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } && {
3209 test -z "$ac_c_werror_flag" ||
3210 test ! -s conftest.err
3211 } && test -s conftest.$ac_objext; then
3212 ac_cv_prog_cc_g=yes
3213 else
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 ac_c_werror_flag=$ac_save_c_werror_flag
3229 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3230 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3231 if test "$ac_test_CFLAGS" = set; then
3232 CFLAGS=$ac_save_CFLAGS
3233 elif test $ac_cv_prog_cc_g = yes; then
3234 if test "$GCC" = yes; then
3235 CFLAGS="-g -O2"
3236 else
3237 CFLAGS="-g"
3239 else
3240 if test "$GCC" = yes; then
3241 CFLAGS="-O2"
3242 else
3243 CFLAGS=
3246 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3247 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3248 if test "${ac_cv_prog_cc_c89+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 ac_cv_prog_cc_c89=no
3252 ac_save_CC=$CC
3253 cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h. */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3259 #include <stdarg.h>
3260 #include <stdio.h>
3261 #include <sys/types.h>
3262 #include <sys/stat.h>
3263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3264 struct buf { int x; };
3265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3266 static char *e (p, i)
3267 char **p;
3268 int i;
3270 return p[i];
3272 static char *f (char * (*g) (char **, int), char **p, ...)
3274 char *s;
3275 va_list v;
3276 va_start (v,p);
3277 s = g (p, va_arg (v,int));
3278 va_end (v);
3279 return s;
3282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3283 function prototypes and stuff, but not '\xHH' hex character constants.
3284 These don't provoke an error unfortunately, instead are silently treated
3285 as 'x'. The following induces an error, until -std is added to get
3286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3287 array size at least. It's necessary to write '\x00'==0 to get something
3288 that's true only with -std. */
3289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3291 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3292 inside strings and character constants. */
3293 #define FOO(x) 'x'
3294 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3296 int test (int i, double x);
3297 struct s1 {int (*f) (int a);};
3298 struct s2 {int (*f) (double a);};
3299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3300 int argc;
3301 char **argv;
3303 main ()
3305 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3307 return 0;
3309 _ACEOF
3310 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3313 CC="$ac_save_CC $ac_arg"
3314 rm -f conftest.$ac_objext
3315 if { (ac_try="$ac_compile"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321 (eval "$ac_compile") 2>conftest.er1
3322 ac_status=$?
3323 grep -v '^ *+' conftest.er1 >conftest.err
3324 rm -f conftest.er1
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } && {
3328 test -z "$ac_c_werror_flag" ||
3329 test ! -s conftest.err
3330 } && test -s conftest.$ac_objext; then
3331 ac_cv_prog_cc_c89=$ac_arg
3332 else
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3339 rm -f core conftest.err conftest.$ac_objext
3340 test "x$ac_cv_prog_cc_c89" != "xno" && break
3341 done
3342 rm -f conftest.$ac_ext
3343 CC=$ac_save_CC
3346 # AC_CACHE_VAL
3347 case "x$ac_cv_prog_cc_c89" in
3349 { echo "$as_me:$LINENO: result: none needed" >&5
3350 echo "${ECHO_T}none needed" >&6; } ;;
3351 xno)
3352 { echo "$as_me:$LINENO: result: unsupported" >&5
3353 echo "${ECHO_T}unsupported" >&6; } ;;
3355 CC="$CC $ac_cv_prog_cc_c89"
3356 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3357 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3358 esac
3361 ac_ext=c
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366 DEPDIR="${am__leading_dot}deps"
3368 ac_config_commands="$ac_config_commands depfiles"
3371 am_make=${MAKE-make}
3372 cat > confinc << 'END'
3373 am__doit:
3374 @echo done
3375 .PHONY: am__doit
3377 # If we don't find an include directive, just comment out the code.
3378 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3379 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3380 am__include="#"
3381 am__quote=
3382 _am_result=none
3383 # First try GNU make style include.
3384 echo "include confinc" > confmf
3385 # We grep out `Entering directory' and `Leaving directory'
3386 # messages which can occur if `w' ends up in MAKEFLAGS.
3387 # In particular we don't look at `^make:' because GNU make might
3388 # be invoked under some other name (usually "gmake"), in which
3389 # case it prints its new name instead of `make'.
3390 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3391 am__include=include
3392 am__quote=
3393 _am_result=GNU
3395 # Now try BSD make style include.
3396 if test "$am__include" = "#"; then
3397 echo '.include "confinc"' > confmf
3398 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3399 am__include=.include
3400 am__quote="\""
3401 _am_result=BSD
3406 { echo "$as_me:$LINENO: result: $_am_result" >&5
3407 echo "${ECHO_T}$_am_result" >&6; }
3408 rm -f confinc confmf
3410 # Check whether --enable-dependency-tracking was given.
3411 if test "${enable_dependency_tracking+set}" = set; then
3412 enableval=$enable_dependency_tracking;
3415 if test "x$enable_dependency_tracking" != xno; then
3416 am_depcomp="$ac_aux_dir/depcomp"
3417 AMDEPBACKSLASH='\'
3421 if test "x$enable_dependency_tracking" != xno; then
3422 AMDEP_TRUE=
3423 AMDEP_FALSE='#'
3424 else
3425 AMDEP_TRUE='#'
3426 AMDEP_FALSE=
3432 depcc="$CC" am_compiler_list=
3434 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3435 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3436 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3440 # We make a subdir and do the tests there. Otherwise we can end up
3441 # making bogus files that we don't know about and never remove. For
3442 # instance it was reported that on HP-UX the gcc test will end up
3443 # making a dummy file named `D' -- because `-MD' means `put the output
3444 # in D'.
3445 mkdir conftest.dir
3446 # Copy depcomp to subdir because otherwise we won't find it if we're
3447 # using a relative directory.
3448 cp "$am_depcomp" conftest.dir
3449 cd conftest.dir
3450 # We will build objects and dependencies in a subdirectory because
3451 # it helps to detect inapplicable dependency modes. For instance
3452 # both Tru64's cc and ICC support -MD to output dependencies as a
3453 # side effect of compilation, but ICC will put the dependencies in
3454 # the current directory while Tru64 will put them in the object
3455 # directory.
3456 mkdir sub
3458 am_cv_CC_dependencies_compiler_type=none
3459 if test "$am_compiler_list" = ""; then
3460 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3462 for depmode in $am_compiler_list; do
3463 # Setup a source with many dependencies, because some compilers
3464 # like to wrap large dependency lists on column 80 (with \), and
3465 # we should not choose a depcomp mode which is confused by this.
3467 # We need to recreate these files for each test, as the compiler may
3468 # overwrite some of them when testing with obscure command lines.
3469 # This happens at least with the AIX C compiler.
3470 : > sub/conftest.c
3471 for i in 1 2 3 4 5 6; do
3472 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3473 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3474 # Solaris 8's {/usr,}/bin/sh.
3475 touch sub/conftst$i.h
3476 done
3477 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3479 case $depmode in
3480 nosideeffect)
3481 # after this tag, mechanisms are not by side-effect, so they'll
3482 # only be used when explicitly requested
3483 if test "x$enable_dependency_tracking" = xyes; then
3484 continue
3485 else
3486 break
3489 none) break ;;
3490 esac
3491 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3492 # mode. It turns out that the SunPro C++ compiler does not properly
3493 # handle `-M -o', and we need to detect this.
3494 if depmode=$depmode \
3495 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3496 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3497 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3498 >/dev/null 2>conftest.err &&
3499 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3500 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3501 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3502 # icc doesn't choke on unknown options, it will just issue warnings
3503 # or remarks (even with -Werror). So we grep stderr for any message
3504 # that says an option was ignored or not supported.
3505 # When given -MP, icc 7.0 and 7.1 complain thusly:
3506 # icc: Command line warning: ignoring option '-M'; no argument required
3507 # The diagnosis changed in icc 8.0:
3508 # icc: Command line remark: option '-MP' not supported
3509 if (grep 'ignoring option' conftest.err ||
3510 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3511 am_cv_CC_dependencies_compiler_type=$depmode
3512 break
3515 done
3517 cd ..
3518 rm -rf conftest.dir
3519 else
3520 am_cv_CC_dependencies_compiler_type=none
3524 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3525 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3526 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3531 test "x$enable_dependency_tracking" != xno \
3532 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3533 am__fastdepCC_TRUE=
3534 am__fastdepCC_FALSE='#'
3535 else
3536 am__fastdepCC_TRUE='#'
3537 am__fastdepCC_FALSE=
3542 ac_ext=c
3543 ac_cpp='$CPP $CPPFLAGS'
3544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3548 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3549 # On Suns, sometimes $CPP names a directory.
3550 if test -n "$CPP" && test -d "$CPP"; then
3551 CPP=
3553 if test -z "$CPP"; then
3554 if test "${ac_cv_prog_CPP+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557 # Double quotes because CPP needs to be expanded
3558 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3560 ac_preproc_ok=false
3561 for ac_c_preproc_warn_flag in '' yes
3563 # Use a header file that comes with gcc, so configuring glibc
3564 # with a fresh cross-compiler works.
3565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3566 # <limits.h> exists even on freestanding compilers.
3567 # On the NeXT, cc -E runs the code through the compiler's parser,
3568 # not just through cpp. "Syntax error" is here to catch this case.
3569 cat >conftest.$ac_ext <<_ACEOF
3570 /* confdefs.h. */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3575 #ifdef __STDC__
3576 # include <limits.h>
3577 #else
3578 # include <assert.h>
3579 #endif
3580 Syntax error
3581 _ACEOF
3582 if { (ac_try="$ac_cpp conftest.$ac_ext"
3583 case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3589 ac_status=$?
3590 grep -v '^ *+' conftest.er1 >conftest.err
3591 rm -f conftest.er1
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } >/dev/null && {
3595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3596 test ! -s conftest.err
3597 }; then
3599 else
3600 echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 # Broken: fails on valid input.
3604 continue
3607 rm -f conftest.err conftest.$ac_ext
3609 # OK, works on sane cases. Now check whether nonexistent headers
3610 # can be detected and how.
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h. */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617 #include <ac_nonexistent.h>
3618 _ACEOF
3619 if { (ac_try="$ac_cpp conftest.$ac_ext"
3620 case "(($ac_try" in
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3623 esac
3624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3626 ac_status=$?
3627 grep -v '^ *+' conftest.er1 >conftest.err
3628 rm -f conftest.er1
3629 cat conftest.err >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } >/dev/null && {
3632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3633 test ! -s conftest.err
3634 }; then
3635 # Broken: success on invalid input.
3636 continue
3637 else
3638 echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3641 # Passes both tests.
3642 ac_preproc_ok=:
3643 break
3646 rm -f conftest.err conftest.$ac_ext
3648 done
3649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3650 rm -f conftest.err conftest.$ac_ext
3651 if $ac_preproc_ok; then
3652 break
3655 done
3656 ac_cv_prog_CPP=$CPP
3659 CPP=$ac_cv_prog_CPP
3660 else
3661 ac_cv_prog_CPP=$CPP
3663 { echo "$as_me:$LINENO: result: $CPP" >&5
3664 echo "${ECHO_T}$CPP" >&6; }
3665 ac_preproc_ok=false
3666 for ac_c_preproc_warn_flag in '' yes
3668 # Use a header file that comes with gcc, so configuring glibc
3669 # with a fresh cross-compiler works.
3670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3671 # <limits.h> exists even on freestanding compilers.
3672 # On the NeXT, cc -E runs the code through the compiler's parser,
3673 # not just through cpp. "Syntax error" is here to catch this case.
3674 cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h. */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3680 #ifdef __STDC__
3681 # include <limits.h>
3682 #else
3683 # include <assert.h>
3684 #endif
3685 Syntax error
3686 _ACEOF
3687 if { (ac_try="$ac_cpp conftest.$ac_ext"
3688 case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691 esac
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3694 ac_status=$?
3695 grep -v '^ *+' conftest.er1 >conftest.err
3696 rm -f conftest.er1
3697 cat conftest.err >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } >/dev/null && {
3700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3701 test ! -s conftest.err
3702 }; then
3704 else
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 # Broken: fails on valid input.
3709 continue
3712 rm -f conftest.err conftest.$ac_ext
3714 # OK, works on sane cases. Now check whether nonexistent headers
3715 # can be detected and how.
3716 cat >conftest.$ac_ext <<_ACEOF
3717 /* confdefs.h. */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3722 #include <ac_nonexistent.h>
3723 _ACEOF
3724 if { (ac_try="$ac_cpp conftest.$ac_ext"
3725 case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728 esac
3729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3731 ac_status=$?
3732 grep -v '^ *+' conftest.er1 >conftest.err
3733 rm -f conftest.er1
3734 cat conftest.err >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } >/dev/null && {
3737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3738 test ! -s conftest.err
3739 }; then
3740 # Broken: success on invalid input.
3741 continue
3742 else
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3746 # Passes both tests.
3747 ac_preproc_ok=:
3748 break
3751 rm -f conftest.err conftest.$ac_ext
3753 done
3754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3755 rm -f conftest.err conftest.$ac_ext
3756 if $ac_preproc_ok; then
3758 else
3759 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3760 See \`config.log' for more details." >&5
3761 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3762 See \`config.log' for more details." >&2;}
3763 { (exit 1); exit 1; }; }
3766 ac_ext=c
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3774 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3775 if test "${ac_cv_path_GREP+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778 # Extract the first word of "grep ggrep" to use in msg output
3779 if test -z "$GREP"; then
3780 set dummy grep ggrep; ac_prog_name=$2
3781 if test "${ac_cv_path_GREP+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 else
3784 ac_path_GREP_found=false
3785 # Loop through the user's path and test for each of PROGNAME-LIST
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_prog in grep ggrep; do
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3794 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3795 # Check for GNU ac_path_GREP and select it if it is found.
3796 # Check for GNU $ac_path_GREP
3797 case `"$ac_path_GREP" --version 2>&1` in
3798 *GNU*)
3799 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3801 ac_count=0
3802 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3803 while :
3805 cat "conftest.in" "conftest.in" >"conftest.tmp"
3806 mv "conftest.tmp" "conftest.in"
3807 cp "conftest.in" "conftest.nl"
3808 echo 'GREP' >> "conftest.nl"
3809 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3811 ac_count=`expr $ac_count + 1`
3812 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3813 # Best one so far, save it but keep looking for a better one
3814 ac_cv_path_GREP="$ac_path_GREP"
3815 ac_path_GREP_max=$ac_count
3817 # 10*(2^10) chars as input seems more than enough
3818 test $ac_count -gt 10 && break
3819 done
3820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3821 esac
3824 $ac_path_GREP_found && break 3
3825 done
3826 done
3828 done
3829 IFS=$as_save_IFS
3834 GREP="$ac_cv_path_GREP"
3835 if test -z "$GREP"; then
3836 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3837 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3838 { (exit 1); exit 1; }; }
3841 else
3842 ac_cv_path_GREP=$GREP
3847 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3848 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3849 GREP="$ac_cv_path_GREP"
3852 { echo "$as_me:$LINENO: checking for egrep" >&5
3853 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3854 if test "${ac_cv_path_EGREP+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3858 then ac_cv_path_EGREP="$GREP -E"
3859 else
3860 # Extract the first word of "egrep" to use in msg output
3861 if test -z "$EGREP"; then
3862 set dummy egrep; ac_prog_name=$2
3863 if test "${ac_cv_path_EGREP+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866 ac_path_EGREP_found=false
3867 # Loop through the user's path and test for each of PROGNAME-LIST
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_prog in egrep; do
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3876 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3877 # Check for GNU ac_path_EGREP and select it if it is found.
3878 # Check for GNU $ac_path_EGREP
3879 case `"$ac_path_EGREP" --version 2>&1` in
3880 *GNU*)
3881 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3883 ac_count=0
3884 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3885 while :
3887 cat "conftest.in" "conftest.in" >"conftest.tmp"
3888 mv "conftest.tmp" "conftest.in"
3889 cp "conftest.in" "conftest.nl"
3890 echo 'EGREP' >> "conftest.nl"
3891 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3893 ac_count=`expr $ac_count + 1`
3894 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3895 # Best one so far, save it but keep looking for a better one
3896 ac_cv_path_EGREP="$ac_path_EGREP"
3897 ac_path_EGREP_max=$ac_count
3899 # 10*(2^10) chars as input seems more than enough
3900 test $ac_count -gt 10 && break
3901 done
3902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3903 esac
3906 $ac_path_EGREP_found && break 3
3907 done
3908 done
3910 done
3911 IFS=$as_save_IFS
3916 EGREP="$ac_cv_path_EGREP"
3917 if test -z "$EGREP"; then
3918 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3919 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3920 { (exit 1); exit 1; }; }
3923 else
3924 ac_cv_path_EGREP=$EGREP
3930 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3931 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3932 EGREP="$ac_cv_path_EGREP"
3935 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3936 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3937 if test "${ac_cv_header_stdc+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940 cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h. */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 #include <stdlib.h>
3947 #include <stdarg.h>
3948 #include <string.h>
3949 #include <float.h>
3952 main ()
3956 return 0;
3958 _ACEOF
3959 rm -f conftest.$ac_objext
3960 if { (ac_try="$ac_compile"
3961 case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964 esac
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_compile") 2>conftest.er1
3967 ac_status=$?
3968 grep -v '^ *+' conftest.er1 >conftest.err
3969 rm -f conftest.er1
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } && {
3973 test -z "$ac_c_werror_flag" ||
3974 test ! -s conftest.err
3975 } && test -s conftest.$ac_objext; then
3976 ac_cv_header_stdc=yes
3977 else
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 ac_cv_header_stdc=no
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 if test $ac_cv_header_stdc = yes; then
3987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h. */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 #include <string.h>
3996 _ACEOF
3997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3998 $EGREP "memchr" >/dev/null 2>&1; then
4000 else
4001 ac_cv_header_stdc=no
4003 rm -f conftest*
4007 if test $ac_cv_header_stdc = yes; then
4008 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4009 cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h. */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 #include <stdlib.h>
4017 _ACEOF
4018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4019 $EGREP "free" >/dev/null 2>&1; then
4021 else
4022 ac_cv_header_stdc=no
4024 rm -f conftest*
4028 if test $ac_cv_header_stdc = yes; then
4029 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4030 if test "$cross_compiling" = yes; then
4032 else
4033 cat >conftest.$ac_ext <<_ACEOF
4034 /* confdefs.h. */
4035 _ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h. */
4039 #include <ctype.h>
4040 #include <stdlib.h>
4041 #if ((' ' & 0x0FF) == 0x020)
4042 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4043 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4044 #else
4045 # define ISLOWER(c) \
4046 (('a' <= (c) && (c) <= 'i') \
4047 || ('j' <= (c) && (c) <= 'r') \
4048 || ('s' <= (c) && (c) <= 'z'))
4049 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4050 #endif
4052 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4054 main ()
4056 int i;
4057 for (i = 0; i < 256; i++)
4058 if (XOR (islower (i), ISLOWER (i))
4059 || toupper (i) != TOUPPER (i))
4060 return 2;
4061 return 0;
4063 _ACEOF
4064 rm -f conftest$ac_exeext
4065 if { (ac_try="$ac_link"
4066 case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_link") 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4075 { (case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078 esac
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_try") 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4085 else
4086 echo "$as_me: program exited with status $ac_status" >&5
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4090 ( exit $ac_status )
4091 ac_cv_header_stdc=no
4093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4099 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4100 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4101 if test $ac_cv_header_stdc = yes; then
4103 cat >>confdefs.h <<\_ACEOF
4104 #define STDC_HEADERS 1
4105 _ACEOF
4112 cat >>confdefs.h <<\_ACEOF
4113 #define ENABLE_HDDTEMP_QUERY
4114 _ACEOF
4117 cat >>confdefs.h <<\_ACEOF
4118 #define _GNU_SOURCE
4119 _ACEOF
4123 if test x$GCC = xyes; then
4124 CFLAGS="-O3 -fomit-frame-pointer -ffast-math -Wall -W";
4127 { echo "$as_me:$LINENO: checking for X" >&5
4128 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4131 # Check whether --with-x was given.
4132 if test "${with_x+set}" = set; then
4133 withval=$with_x;
4136 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4137 if test "x$with_x" = xno; then
4138 # The user explicitly disabled X.
4139 have_x=disabled
4140 else
4141 case $x_includes,$x_libraries in #(
4142 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4143 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4144 { (exit 1); exit 1; }; };; #(
4145 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148 # One or both of the vars are not set, and there is no cached value.
4149 ac_x_includes=no ac_x_libraries=no
4150 rm -f -r conftest.dir
4151 if mkdir conftest.dir; then
4152 cd conftest.dir
4153 cat >Imakefile <<'_ACEOF'
4154 incroot:
4155 @echo incroot='${INCROOT}'
4156 usrlibdir:
4157 @echo usrlibdir='${USRLIBDIR}'
4158 libdir:
4159 @echo libdir='${LIBDIR}'
4160 _ACEOF
4161 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4162 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4163 for ac_var in incroot usrlibdir libdir; do
4164 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4165 done
4166 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4167 for ac_extension in a so sl; do
4168 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4169 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4170 ac_im_usrlibdir=$ac_im_libdir; break
4172 done
4173 # Screen out bogus values from the imake configuration. They are
4174 # bogus both because they are the default anyway, and because
4175 # using them would break gcc on systems where it needs fixed includes.
4176 case $ac_im_incroot in
4177 /usr/include) ac_x_includes= ;;
4178 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4179 esac
4180 case $ac_im_usrlibdir in
4181 /usr/lib | /lib) ;;
4182 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4183 esac
4185 cd ..
4186 rm -f -r conftest.dir
4189 # Standard set of common directories for X headers.
4190 # Check X11 before X11Rn because it is often a symlink to the current release.
4191 ac_x_header_dirs='
4192 /usr/X11/include
4193 /usr/X11R6/include
4194 /usr/X11R5/include
4195 /usr/X11R4/include
4197 /usr/include/X11
4198 /usr/include/X11R6
4199 /usr/include/X11R5
4200 /usr/include/X11R4
4202 /usr/local/X11/include
4203 /usr/local/X11R6/include
4204 /usr/local/X11R5/include
4205 /usr/local/X11R4/include
4207 /usr/local/include/X11
4208 /usr/local/include/X11R6
4209 /usr/local/include/X11R5
4210 /usr/local/include/X11R4
4212 /usr/X386/include
4213 /usr/x386/include
4214 /usr/XFree86/include/X11
4216 /usr/include
4217 /usr/local/include
4218 /usr/unsupported/include
4219 /usr/athena/include
4220 /usr/local/x11r5/include
4221 /usr/lpp/Xamples/include
4223 /usr/openwin/include
4224 /usr/openwin/share/include'
4226 if test "$ac_x_includes" = no; then
4227 # Guess where to find include files, by looking for Xlib.h.
4228 # First, try using that file with no special directory specified.
4229 cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h. */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235 #include <X11/Xlib.h>
4236 _ACEOF
4237 if { (ac_try="$ac_cpp conftest.$ac_ext"
4238 case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241 esac
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } >/dev/null && {
4250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4251 test ! -s conftest.err
4252 }; then
4253 # We can compile using X headers with no special include directory.
4254 ac_x_includes=
4255 else
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4259 for ac_dir in $ac_x_header_dirs; do
4260 if test -r "$ac_dir/X11/Xlib.h"; then
4261 ac_x_includes=$ac_dir
4262 break
4264 done
4267 rm -f conftest.err conftest.$ac_ext
4268 fi # $ac_x_includes = no
4270 if test "$ac_x_libraries" = no; then
4271 # Check for the libraries.
4272 # See if we find them without any special options.
4273 # Don't add to $LIBS permanently.
4274 ac_save_LIBS=$LIBS
4275 LIBS="-lX11 $LIBS"
4276 cat >conftest.$ac_ext <<_ACEOF
4277 /* confdefs.h. */
4278 _ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4282 #include <X11/Xlib.h>
4284 main ()
4286 XrmInitialize ()
4288 return 0;
4290 _ACEOF
4291 rm -f conftest.$ac_objext conftest$ac_exeext
4292 if { (ac_try="$ac_link"
4293 case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296 esac
4297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_link") 2>conftest.er1
4299 ac_status=$?
4300 grep -v '^ *+' conftest.er1 >conftest.err
4301 rm -f conftest.er1
4302 cat conftest.err >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } && {
4305 test -z "$ac_c_werror_flag" ||
4306 test ! -s conftest.err
4307 } && test -s conftest$ac_exeext &&
4308 $as_test_x conftest$ac_exeext; then
4309 LIBS=$ac_save_LIBS
4310 # We can link X programs with no special library path.
4311 ac_x_libraries=
4312 else
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4316 LIBS=$ac_save_LIBS
4317 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4319 # Don't even attempt the hair of trying to link an X program!
4320 for ac_extension in a so sl; do
4321 if test -r "$ac_dir/libX11.$ac_extension"; then
4322 ac_x_libraries=$ac_dir
4323 break 2
4325 done
4326 done
4329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4330 conftest$ac_exeext conftest.$ac_ext
4331 fi # $ac_x_libraries = no
4333 case $ac_x_includes,$ac_x_libraries in #(
4334 no,* | *,no | *\'*)
4335 # Didn't find X, or a directory has "'" in its name.
4336 ac_cv_have_x="have_x=no";; #(
4338 # Record where we found X for the cache.
4339 ac_cv_have_x="have_x=yes\
4340 ac_x_includes='$ac_x_includes'\
4341 ac_x_libraries='$ac_x_libraries'"
4342 esac
4344 ;; #(
4345 *) have_x=yes;;
4346 esac
4347 eval "$ac_cv_have_x"
4348 fi # $with_x != no
4350 if test "$have_x" != yes; then
4351 { echo "$as_me:$LINENO: result: $have_x" >&5
4352 echo "${ECHO_T}$have_x" >&6; }
4353 no_x=yes
4354 else
4355 # If each of the values was on the command line, it overrides each guess.
4356 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4357 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4358 # Update the cache value to reflect the command line values.
4359 ac_cv_have_x="have_x=yes\
4360 ac_x_includes='$x_includes'\
4361 ac_x_libraries='$x_libraries'"
4362 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4363 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4366 if test "$no_x" = yes; then
4367 # Not all programs may use this symbol, but it does not hurt to define it.
4369 cat >>confdefs.h <<\_ACEOF
4370 #define X_DISPLAY_MISSING 1
4371 _ACEOF
4373 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4374 else
4375 if test -n "$x_includes"; then
4376 X_CFLAGS="$X_CFLAGS -I$x_includes"
4379 # It would also be nice to do this for all -L options, not just this one.
4380 if test -n "$x_libraries"; then
4381 X_LIBS="$X_LIBS -L$x_libraries"
4382 # For Solaris; some versions of Sun CC require a space after -R and
4383 # others require no space. Words are not sufficient . . . .
4384 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4385 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4386 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4387 ac_xsave_c_werror_flag=$ac_c_werror_flag
4388 ac_c_werror_flag=yes
4389 cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h. */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4397 main ()
4401 return 0;
4403 _ACEOF
4404 rm -f conftest.$ac_objext conftest$ac_exeext
4405 if { (ac_try="$ac_link"
4406 case "(($ac_try" in
4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408 *) ac_try_echo=$ac_try;;
4409 esac
4410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4411 (eval "$ac_link") 2>conftest.er1
4412 ac_status=$?
4413 grep -v '^ *+' conftest.er1 >conftest.err
4414 rm -f conftest.er1
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } && {
4418 test -z "$ac_c_werror_flag" ||
4419 test ! -s conftest.err
4420 } && test -s conftest$ac_exeext &&
4421 $as_test_x conftest$ac_exeext; then
4422 { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4424 X_LIBS="$X_LIBS -R$x_libraries"
4425 else
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4429 LIBS="$ac_xsave_LIBS -R $x_libraries"
4430 cat >conftest.$ac_ext <<_ACEOF
4431 /* confdefs.h. */
4432 _ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4438 main ()
4442 return 0;
4444 _ACEOF
4445 rm -f conftest.$ac_objext conftest$ac_exeext
4446 if { (ac_try="$ac_link"
4447 case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4450 esac
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_link") 2>conftest.er1
4453 ac_status=$?
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } && {
4459 test -z "$ac_c_werror_flag" ||
4460 test ! -s conftest.err
4461 } && test -s conftest$ac_exeext &&
4462 $as_test_x conftest$ac_exeext; then
4463 { echo "$as_me:$LINENO: result: yes" >&5
4464 echo "${ECHO_T}yes" >&6; }
4465 X_LIBS="$X_LIBS -R $x_libraries"
4466 else
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4470 { echo "$as_me:$LINENO: result: neither works" >&5
4471 echo "${ECHO_T}neither works" >&6; }
4474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4475 conftest$ac_exeext conftest.$ac_ext
4478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4479 conftest$ac_exeext conftest.$ac_ext
4480 ac_c_werror_flag=$ac_xsave_c_werror_flag
4481 LIBS=$ac_xsave_LIBS
4484 # Check for system-dependent libraries X programs must link with.
4485 # Do this before checking for the system-independent R6 libraries
4486 # (-lICE), since we may need -lsocket or whatever for X linking.
4488 if test "$ISC" = yes; then
4489 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4490 else
4491 # Martyn Johnson says this is needed for Ultrix, if the X
4492 # libraries were built with DECnet support. And Karl Berry says
4493 # the Alpha needs dnet_stub (dnet does not exist).
4494 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4495 cat >conftest.$ac_ext <<_ACEOF
4496 /* confdefs.h. */
4497 _ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h. */
4502 /* Override any GCC internal prototype to avoid an error.
4503 Use char because int might match the return type of a GCC
4504 builtin and then its argument prototype would still apply. */
4505 #ifdef __cplusplus
4506 extern "C"
4507 #endif
4508 char XOpenDisplay ();
4510 main ()
4512 return XOpenDisplay ();
4514 return 0;
4516 _ACEOF
4517 rm -f conftest.$ac_objext conftest$ac_exeext
4518 if { (ac_try="$ac_link"
4519 case "(($ac_try" in
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4522 esac
4523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4524 (eval "$ac_link") 2>conftest.er1
4525 ac_status=$?
4526 grep -v '^ *+' conftest.er1 >conftest.err
4527 rm -f conftest.er1
4528 cat conftest.err >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } && {
4531 test -z "$ac_c_werror_flag" ||
4532 test ! -s conftest.err
4533 } && test -s conftest$ac_exeext &&
4534 $as_test_x conftest$ac_exeext; then
4536 else
4537 echo "$as_me: failed program was:" >&5
4538 sed 's/^/| /' conftest.$ac_ext >&5
4540 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4541 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4542 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545 ac_check_lib_save_LIBS=$LIBS
4546 LIBS="-ldnet $LIBS"
4547 cat >conftest.$ac_ext <<_ACEOF
4548 /* confdefs.h. */
4549 _ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4554 /* Override any GCC internal prototype to avoid an error.
4555 Use char because int might match the return type of a GCC
4556 builtin and then its argument prototype would still apply. */
4557 #ifdef __cplusplus
4558 extern "C"
4559 #endif
4560 char dnet_ntoa ();
4562 main ()
4564 return dnet_ntoa ();
4566 return 0;
4568 _ACEOF
4569 rm -f conftest.$ac_objext conftest$ac_exeext
4570 if { (ac_try="$ac_link"
4571 case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574 esac
4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576 (eval "$ac_link") 2>conftest.er1
4577 ac_status=$?
4578 grep -v '^ *+' conftest.er1 >conftest.err
4579 rm -f conftest.er1
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } && {
4583 test -z "$ac_c_werror_flag" ||
4584 test ! -s conftest.err
4585 } && test -s conftest$ac_exeext &&
4586 $as_test_x conftest$ac_exeext; then
4587 ac_cv_lib_dnet_dnet_ntoa=yes
4588 else
4589 echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4592 ac_cv_lib_dnet_dnet_ntoa=no
4595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4596 conftest$ac_exeext conftest.$ac_ext
4597 LIBS=$ac_check_lib_save_LIBS
4599 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4600 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4601 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4602 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4605 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4606 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4607 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4608 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611 ac_check_lib_save_LIBS=$LIBS
4612 LIBS="-ldnet_stub $LIBS"
4613 cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h. */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4620 /* Override any GCC internal prototype to avoid an error.
4621 Use char because int might match the return type of a GCC
4622 builtin and then its argument prototype would still apply. */
4623 #ifdef __cplusplus
4624 extern "C"
4625 #endif
4626 char dnet_ntoa ();
4628 main ()
4630 return dnet_ntoa ();
4632 return 0;
4634 _ACEOF
4635 rm -f conftest.$ac_objext conftest$ac_exeext
4636 if { (ac_try="$ac_link"
4637 case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640 esac
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642 (eval "$ac_link") 2>conftest.er1
4643 ac_status=$?
4644 grep -v '^ *+' conftest.er1 >conftest.err
4645 rm -f conftest.er1
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } && {
4649 test -z "$ac_c_werror_flag" ||
4650 test ! -s conftest.err
4651 } && test -s conftest$ac_exeext &&
4652 $as_test_x conftest$ac_exeext; then
4653 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4654 else
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4658 ac_cv_lib_dnet_stub_dnet_ntoa=no
4661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4662 conftest$ac_exeext conftest.$ac_ext
4663 LIBS=$ac_check_lib_save_LIBS
4665 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4666 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4667 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4668 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4675 conftest$ac_exeext conftest.$ac_ext
4676 LIBS="$ac_xsave_LIBS"
4678 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4679 # to get the SysV transport functions.
4680 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4681 # needs -lnsl.
4682 # The nsl library prevents programs from opening the X display
4683 # on Irix 5.2, according to T.E. Dickey.
4684 # The functions gethostbyname, getservbyname, and inet_addr are
4685 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4686 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4687 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4688 if test "${ac_cv_func_gethostbyname+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691 cat >conftest.$ac_ext <<_ACEOF
4692 /* confdefs.h. */
4693 _ACEOF
4694 cat confdefs.h >>conftest.$ac_ext
4695 cat >>conftest.$ac_ext <<_ACEOF
4696 /* end confdefs.h. */
4697 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4699 #define gethostbyname innocuous_gethostbyname
4701 /* System header to define __stub macros and hopefully few prototypes,
4702 which can conflict with char gethostbyname (); below.
4703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4704 <limits.h> exists even on freestanding compilers. */
4706 #ifdef __STDC__
4707 # include <limits.h>
4708 #else
4709 # include <assert.h>
4710 #endif
4712 #undef gethostbyname
4714 /* Override any GCC internal prototype to avoid an error.
4715 Use char because int might match the return type of a GCC
4716 builtin and then its argument prototype would still apply. */
4717 #ifdef __cplusplus
4718 extern "C"
4719 #endif
4720 char gethostbyname ();
4721 /* The GNU C library defines this for functions which it implements
4722 to always fail with ENOSYS. Some functions are actually named
4723 something starting with __ and the normal name is an alias. */
4724 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4725 choke me
4726 #endif
4729 main ()
4731 return gethostbyname ();
4733 return 0;
4735 _ACEOF
4736 rm -f conftest.$ac_objext conftest$ac_exeext
4737 if { (ac_try="$ac_link"
4738 case "(($ac_try" in
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4741 esac
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_link") 2>conftest.er1
4744 ac_status=$?
4745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } && {
4750 test -z "$ac_c_werror_flag" ||
4751 test ! -s conftest.err
4752 } && test -s conftest$ac_exeext &&
4753 $as_test_x conftest$ac_exeext; then
4754 ac_cv_func_gethostbyname=yes
4755 else
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4759 ac_cv_func_gethostbyname=no
4762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4763 conftest$ac_exeext conftest.$ac_ext
4765 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4766 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4768 if test $ac_cv_func_gethostbyname = no; then
4769 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4770 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4771 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774 ac_check_lib_save_LIBS=$LIBS
4775 LIBS="-lnsl $LIBS"
4776 cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h. */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4783 /* Override any GCC internal prototype to avoid an error.
4784 Use char because int might match the return type of a GCC
4785 builtin and then its argument prototype would still apply. */
4786 #ifdef __cplusplus
4787 extern "C"
4788 #endif
4789 char gethostbyname ();
4791 main ()
4793 return gethostbyname ();
4795 return 0;
4797 _ACEOF
4798 rm -f conftest.$ac_objext conftest$ac_exeext
4799 if { (ac_try="$ac_link"
4800 case "(($ac_try" in
4801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4802 *) ac_try_echo=$ac_try;;
4803 esac
4804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4805 (eval "$ac_link") 2>conftest.er1
4806 ac_status=$?
4807 grep -v '^ *+' conftest.er1 >conftest.err
4808 rm -f conftest.er1
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } && {
4812 test -z "$ac_c_werror_flag" ||
4813 test ! -s conftest.err
4814 } && test -s conftest$ac_exeext &&
4815 $as_test_x conftest$ac_exeext; then
4816 ac_cv_lib_nsl_gethostbyname=yes
4817 else
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4821 ac_cv_lib_nsl_gethostbyname=no
4824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4825 conftest$ac_exeext conftest.$ac_ext
4826 LIBS=$ac_check_lib_save_LIBS
4828 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4829 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4830 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4831 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4834 if test $ac_cv_lib_nsl_gethostbyname = no; then
4835 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4836 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4837 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840 ac_check_lib_save_LIBS=$LIBS
4841 LIBS="-lbsd $LIBS"
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4849 /* Override any GCC internal prototype to avoid an error.
4850 Use char because int might match the return type of a GCC
4851 builtin and then its argument prototype would still apply. */
4852 #ifdef __cplusplus
4853 extern "C"
4854 #endif
4855 char gethostbyname ();
4857 main ()
4859 return gethostbyname ();
4861 return 0;
4863 _ACEOF
4864 rm -f conftest.$ac_objext conftest$ac_exeext
4865 if { (ac_try="$ac_link"
4866 case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4869 esac
4870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871 (eval "$ac_link") 2>conftest.er1
4872 ac_status=$?
4873 grep -v '^ *+' conftest.er1 >conftest.err
4874 rm -f conftest.er1
4875 cat conftest.err >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } && {
4878 test -z "$ac_c_werror_flag" ||
4879 test ! -s conftest.err
4880 } && test -s conftest$ac_exeext &&
4881 $as_test_x conftest$ac_exeext; then
4882 ac_cv_lib_bsd_gethostbyname=yes
4883 else
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4887 ac_cv_lib_bsd_gethostbyname=no
4890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4891 conftest$ac_exeext conftest.$ac_ext
4892 LIBS=$ac_check_lib_save_LIBS
4894 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4895 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4896 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4897 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4903 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4904 # socket/setsockopt and other routines are undefined under SCO ODT
4905 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4906 # on later versions), says Simon Leinen: it contains gethostby*
4907 # variants that don't use the name server (or something). -lsocket
4908 # must be given before -lnsl if both are needed. We assume that
4909 # if connect needs -lnsl, so does gethostbyname.
4910 { echo "$as_me:$LINENO: checking for connect" >&5
4911 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4912 if test "${ac_cv_func_connect+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915 cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h. */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4923 #define connect innocuous_connect
4925 /* System header to define __stub macros and hopefully few prototypes,
4926 which can conflict with char connect (); below.
4927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928 <limits.h> exists even on freestanding compilers. */
4930 #ifdef __STDC__
4931 # include <limits.h>
4932 #else
4933 # include <assert.h>
4934 #endif
4936 #undef connect
4938 /* Override any GCC internal prototype to avoid an error.
4939 Use char because int might match the return type of a GCC
4940 builtin and then its argument prototype would still apply. */
4941 #ifdef __cplusplus
4942 extern "C"
4943 #endif
4944 char connect ();
4945 /* The GNU C library defines this for functions which it implements
4946 to always fail with ENOSYS. Some functions are actually named
4947 something starting with __ and the normal name is an alias. */
4948 #if defined __stub_connect || defined __stub___connect
4949 choke me
4950 #endif
4953 main ()
4955 return connect ();
4957 return 0;
4959 _ACEOF
4960 rm -f conftest.$ac_objext conftest$ac_exeext
4961 if { (ac_try="$ac_link"
4962 case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4965 esac
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967 (eval "$ac_link") 2>conftest.er1
4968 ac_status=$?
4969 grep -v '^ *+' conftest.er1 >conftest.err
4970 rm -f conftest.er1
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } && {
4974 test -z "$ac_c_werror_flag" ||
4975 test ! -s conftest.err
4976 } && test -s conftest$ac_exeext &&
4977 $as_test_x conftest$ac_exeext; then
4978 ac_cv_func_connect=yes
4979 else
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 ac_cv_func_connect=no
4986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4987 conftest$ac_exeext conftest.$ac_ext
4989 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4990 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4992 if test $ac_cv_func_connect = no; then
4993 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4994 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4995 if test "${ac_cv_lib_socket_connect+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998 ac_check_lib_save_LIBS=$LIBS
4999 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5000 cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h. */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5007 /* Override any GCC internal prototype to avoid an error.
5008 Use char because int might match the return type of a GCC
5009 builtin and then its argument prototype would still apply. */
5010 #ifdef __cplusplus
5011 extern "C"
5012 #endif
5013 char connect ();
5015 main ()
5017 return connect ();
5019 return 0;
5021 _ACEOF
5022 rm -f conftest.$ac_objext conftest$ac_exeext
5023 if { (ac_try="$ac_link"
5024 case "(($ac_try" in
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5027 esac
5028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5029 (eval "$ac_link") 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } && {
5036 test -z "$ac_c_werror_flag" ||
5037 test ! -s conftest.err
5038 } && test -s conftest$ac_exeext &&
5039 $as_test_x conftest$ac_exeext; then
5040 ac_cv_lib_socket_connect=yes
5041 else
5042 echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5045 ac_cv_lib_socket_connect=no
5048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5049 conftest$ac_exeext conftest.$ac_ext
5050 LIBS=$ac_check_lib_save_LIBS
5052 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5053 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5054 if test $ac_cv_lib_socket_connect = yes; then
5055 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5060 # Guillermo Gomez says -lposix is necessary on A/UX.
5061 { echo "$as_me:$LINENO: checking for remove" >&5
5062 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5063 if test "${ac_cv_func_remove+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066 cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h. */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5074 #define remove innocuous_remove
5076 /* System header to define __stub macros and hopefully few prototypes,
5077 which can conflict with char remove (); below.
5078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5079 <limits.h> exists even on freestanding compilers. */
5081 #ifdef __STDC__
5082 # include <limits.h>
5083 #else
5084 # include <assert.h>
5085 #endif
5087 #undef remove
5089 /* Override any GCC internal prototype to avoid an error.
5090 Use char because int might match the return type of a GCC
5091 builtin and then its argument prototype would still apply. */
5092 #ifdef __cplusplus
5093 extern "C"
5094 #endif
5095 char remove ();
5096 /* The GNU C library defines this for functions which it implements
5097 to always fail with ENOSYS. Some functions are actually named
5098 something starting with __ and the normal name is an alias. */
5099 #if defined __stub_remove || defined __stub___remove
5100 choke me
5101 #endif
5104 main ()
5106 return remove ();
5108 return 0;
5110 _ACEOF
5111 rm -f conftest.$ac_objext conftest$ac_exeext
5112 if { (ac_try="$ac_link"
5113 case "(($ac_try" in
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5116 esac
5117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118 (eval "$ac_link") 2>conftest.er1
5119 ac_status=$?
5120 grep -v '^ *+' conftest.er1 >conftest.err
5121 rm -f conftest.er1
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } && {
5125 test -z "$ac_c_werror_flag" ||
5126 test ! -s conftest.err
5127 } && test -s conftest$ac_exeext &&
5128 $as_test_x conftest$ac_exeext; then
5129 ac_cv_func_remove=yes
5130 else
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5134 ac_cv_func_remove=no
5137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5138 conftest$ac_exeext conftest.$ac_ext
5140 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5141 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5143 if test $ac_cv_func_remove = no; then
5144 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5145 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5146 if test "${ac_cv_lib_posix_remove+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149 ac_check_lib_save_LIBS=$LIBS
5150 LIBS="-lposix $LIBS"
5151 cat >conftest.$ac_ext <<_ACEOF
5152 /* confdefs.h. */
5153 _ACEOF
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h. */
5158 /* Override any GCC internal prototype to avoid an error.
5159 Use char because int might match the return type of a GCC
5160 builtin and then its argument prototype would still apply. */
5161 #ifdef __cplusplus
5162 extern "C"
5163 #endif
5164 char remove ();
5166 main ()
5168 return remove ();
5170 return 0;
5172 _ACEOF
5173 rm -f conftest.$ac_objext conftest$ac_exeext
5174 if { (ac_try="$ac_link"
5175 case "(($ac_try" in
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5178 esac
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180 (eval "$ac_link") 2>conftest.er1
5181 ac_status=$?
5182 grep -v '^ *+' conftest.er1 >conftest.err
5183 rm -f conftest.er1
5184 cat conftest.err >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } && {
5187 test -z "$ac_c_werror_flag" ||
5188 test ! -s conftest.err
5189 } && test -s conftest$ac_exeext &&
5190 $as_test_x conftest$ac_exeext; then
5191 ac_cv_lib_posix_remove=yes
5192 else
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5196 ac_cv_lib_posix_remove=no
5199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5200 conftest$ac_exeext conftest.$ac_ext
5201 LIBS=$ac_check_lib_save_LIBS
5203 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5204 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5205 if test $ac_cv_lib_posix_remove = yes; then
5206 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5211 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5212 { echo "$as_me:$LINENO: checking for shmat" >&5
5213 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5214 if test "${ac_cv_func_shmat+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217 cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h. */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5225 #define shmat innocuous_shmat
5227 /* System header to define __stub macros and hopefully few prototypes,
5228 which can conflict with char shmat (); below.
5229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5230 <limits.h> exists even on freestanding compilers. */
5232 #ifdef __STDC__
5233 # include <limits.h>
5234 #else
5235 # include <assert.h>
5236 #endif
5238 #undef shmat
5240 /* Override any GCC internal prototype to avoid an error.
5241 Use char because int might match the return type of a GCC
5242 builtin and then its argument prototype would still apply. */
5243 #ifdef __cplusplus
5244 extern "C"
5245 #endif
5246 char shmat ();
5247 /* The GNU C library defines this for functions which it implements
5248 to always fail with ENOSYS. Some functions are actually named
5249 something starting with __ and the normal name is an alias. */
5250 #if defined __stub_shmat || defined __stub___shmat
5251 choke me
5252 #endif
5255 main ()
5257 return shmat ();
5259 return 0;
5261 _ACEOF
5262 rm -f conftest.$ac_objext conftest$ac_exeext
5263 if { (ac_try="$ac_link"
5264 case "(($ac_try" in
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5267 esac
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_link") 2>conftest.er1
5270 ac_status=$?
5271 grep -v '^ *+' conftest.er1 >conftest.err
5272 rm -f conftest.er1
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } && {
5276 test -z "$ac_c_werror_flag" ||
5277 test ! -s conftest.err
5278 } && test -s conftest$ac_exeext &&
5279 $as_test_x conftest$ac_exeext; then
5280 ac_cv_func_shmat=yes
5281 else
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5285 ac_cv_func_shmat=no
5288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5289 conftest$ac_exeext conftest.$ac_ext
5291 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5292 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5294 if test $ac_cv_func_shmat = no; then
5295 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5296 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5297 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 else
5300 ac_check_lib_save_LIBS=$LIBS
5301 LIBS="-lipc $LIBS"
5302 cat >conftest.$ac_ext <<_ACEOF
5303 /* confdefs.h. */
5304 _ACEOF
5305 cat confdefs.h >>conftest.$ac_ext
5306 cat >>conftest.$ac_ext <<_ACEOF
5307 /* end confdefs.h. */
5309 /* Override any GCC internal prototype to avoid an error.
5310 Use char because int might match the return type of a GCC
5311 builtin and then its argument prototype would still apply. */
5312 #ifdef __cplusplus
5313 extern "C"
5314 #endif
5315 char shmat ();
5317 main ()
5319 return shmat ();
5321 return 0;
5323 _ACEOF
5324 rm -f conftest.$ac_objext conftest$ac_exeext
5325 if { (ac_try="$ac_link"
5326 case "(($ac_try" in
5327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328 *) ac_try_echo=$ac_try;;
5329 esac
5330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5331 (eval "$ac_link") 2>conftest.er1
5332 ac_status=$?
5333 grep -v '^ *+' conftest.er1 >conftest.err
5334 rm -f conftest.er1
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } && {
5338 test -z "$ac_c_werror_flag" ||
5339 test ! -s conftest.err
5340 } && test -s conftest$ac_exeext &&
5341 $as_test_x conftest$ac_exeext; then
5342 ac_cv_lib_ipc_shmat=yes
5343 else
5344 echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5347 ac_cv_lib_ipc_shmat=no
5350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5351 conftest$ac_exeext conftest.$ac_ext
5352 LIBS=$ac_check_lib_save_LIBS
5354 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5355 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5356 if test $ac_cv_lib_ipc_shmat = yes; then
5357 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5363 # Check for libraries that X11R6 Xt/Xaw programs need.
5364 ac_save_LDFLAGS=$LDFLAGS
5365 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5366 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5367 # check for ICE first), but we must link in the order -lSM -lICE or
5368 # we get undefined symbols. So assume we have SM if we have ICE.
5369 # These have to be linked with before -lX11, unlike the other
5370 # libraries we check for below, so use a different variable.
5371 # John Interrante, Karl Berry
5372 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5373 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5374 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377 ac_check_lib_save_LIBS=$LIBS
5378 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5379 cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h. */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5386 /* Override any GCC internal prototype to avoid an error.
5387 Use char because int might match the return type of a GCC
5388 builtin and then its argument prototype would still apply. */
5389 #ifdef __cplusplus
5390 extern "C"
5391 #endif
5392 char IceConnectionNumber ();
5394 main ()
5396 return IceConnectionNumber ();
5398 return 0;
5400 _ACEOF
5401 rm -f conftest.$ac_objext conftest$ac_exeext
5402 if { (ac_try="$ac_link"
5403 case "(($ac_try" in
5404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405 *) ac_try_echo=$ac_try;;
5406 esac
5407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408 (eval "$ac_link") 2>conftest.er1
5409 ac_status=$?
5410 grep -v '^ *+' conftest.er1 >conftest.err
5411 rm -f conftest.er1
5412 cat conftest.err >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } && {
5415 test -z "$ac_c_werror_flag" ||
5416 test ! -s conftest.err
5417 } && test -s conftest$ac_exeext &&
5418 $as_test_x conftest$ac_exeext; then
5419 ac_cv_lib_ICE_IceConnectionNumber=yes
5420 else
5421 echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5424 ac_cv_lib_ICE_IceConnectionNumber=no
5427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5428 conftest$ac_exeext conftest.$ac_ext
5429 LIBS=$ac_check_lib_save_LIBS
5431 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5432 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5433 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5434 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5437 LDFLAGS=$ac_save_LDFLAGS
5441 if test x$no_x = xyes; then
5442 echo "You need to supply the path to the X headers and libraries with --x-includes=dir and --x-libraries=dir";
5443 exit 1;
5446 LIBS="${X_PRE_LIBS} ${X_LIBS} -lX11 -lXext ${LIBS} ${X_EXTRA_LIBS}"
5447 CFLAGS="$CFLAGS $X_CFLAGS"
5449 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5459 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5460 inttypes.h stdint.h unistd.h
5462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468 cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h. */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 $ac_includes_default
5476 #include <$ac_header>
5477 _ACEOF
5478 rm -f conftest.$ac_objext
5479 if { (ac_try="$ac_compile"
5480 case "(($ac_try" in
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5483 esac
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_compile") 2>conftest.er1
5486 ac_status=$?
5487 grep -v '^ *+' conftest.er1 >conftest.err
5488 rm -f conftest.er1
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } && {
5492 test -z "$ac_c_werror_flag" ||
5493 test ! -s conftest.err
5494 } && test -s conftest.$ac_objext; then
5495 eval "$as_ac_Header=yes"
5496 else
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 eval "$as_ac_Header=no"
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 ac_res=`eval echo '${'$as_ac_Header'}'`
5506 { echo "$as_me:$LINENO: result: $ac_res" >&5
5507 echo "${ECHO_T}$ac_res" >&6; }
5508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5509 cat >>confdefs.h <<_ACEOF
5510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5511 _ACEOF
5515 done
5519 for ac_header in linux/hdreg.h
5521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 ac_res=`eval echo '${'$as_ac_Header'}'`
5529 { echo "$as_me:$LINENO: result: $ac_res" >&5
5530 echo "${ECHO_T}$ac_res" >&6; }
5531 else
5532 # Is the header compilable?
5533 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5535 cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h. */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541 $ac_includes_default
5542 #include <$ac_header>
5543 _ACEOF
5544 rm -f conftest.$ac_objext
5545 if { (ac_try="$ac_compile"
5546 case "(($ac_try" in
5547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548 *) ac_try_echo=$ac_try;;
5549 esac
5550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5551 (eval "$ac_compile") 2>conftest.er1
5552 ac_status=$?
5553 grep -v '^ *+' conftest.er1 >conftest.err
5554 rm -f conftest.er1
5555 cat conftest.err >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } && {
5558 test -z "$ac_c_werror_flag" ||
5559 test ! -s conftest.err
5560 } && test -s conftest.$ac_objext; then
5561 ac_header_compiler=yes
5562 else
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5566 ac_header_compiler=no
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5571 echo "${ECHO_T}$ac_header_compiler" >&6; }
5573 # Is the header present?
5574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5576 cat >conftest.$ac_ext <<_ACEOF
5577 /* confdefs.h. */
5578 _ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5582 #include <$ac_header>
5583 _ACEOF
5584 if { (ac_try="$ac_cpp conftest.$ac_ext"
5585 case "(($ac_try" in
5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5588 esac
5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5591 ac_status=$?
5592 grep -v '^ *+' conftest.er1 >conftest.err
5593 rm -f conftest.er1
5594 cat conftest.err >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } >/dev/null && {
5597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5598 test ! -s conftest.err
5599 }; then
5600 ac_header_preproc=yes
5601 else
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5605 ac_header_preproc=no
5608 rm -f conftest.err conftest.$ac_ext
5609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5610 echo "${ECHO_T}$ac_header_preproc" >&6; }
5612 # So? What about this header?
5613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5614 yes:no: )
5615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5619 ac_header_preproc=yes
5621 no:yes:* )
5622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5636 esac
5637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642 eval "$as_ac_Header=\$ac_header_preproc"
5644 ac_res=`eval echo '${'$as_ac_Header'}'`
5645 { echo "$as_me:$LINENO: result: $ac_res" >&5
5646 echo "${ECHO_T}$ac_res" >&6; }
5649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5650 cat >>confdefs.h <<_ACEOF
5651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5652 _ACEOF
5656 done
5659 # Extract the first word of "imlib2-config", so it can be a program name with args.
5660 set dummy imlib2-config; ac_word=$2
5661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5663 if test "${ac_cv_prog_IMLIB2_CONFIG_IN_PATH+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666 if test -n "$IMLIB2_CONFIG_IN_PATH"; then
5667 ac_cv_prog_IMLIB2_CONFIG_IN_PATH="$IMLIB2_CONFIG_IN_PATH" # Let the user override the test.
5668 else
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 for as_dir in $PATH
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5676 ac_cv_prog_IMLIB2_CONFIG_IN_PATH="yes"
5677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 break 2
5680 done
5681 done
5682 IFS=$as_save_IFS
5684 test -z "$ac_cv_prog_IMLIB2_CONFIG_IN_PATH" && ac_cv_prog_IMLIB2_CONFIG_IN_PATH="no"
5687 IMLIB2_CONFIG_IN_PATH=$ac_cv_prog_IMLIB2_CONFIG_IN_PATH
5688 if test -n "$IMLIB2_CONFIG_IN_PATH"; then
5689 { echo "$as_me:$LINENO: result: $IMLIB2_CONFIG_IN_PATH" >&5
5690 echo "${ECHO_T}$IMLIB2_CONFIG_IN_PATH" >&6; }
5691 else
5692 { echo "$as_me:$LINENO: result: no" >&5
5693 echo "${ECHO_T}no" >&6; }
5697 if test "x$IMLIB2_CONFIG_IN_PATH" = "xno"; then
5698 { { echo "$as_me:$LINENO: error: imlib2-config not found in PATH.. You need to install Imlib2 (and its developpement package)" >&5
5699 echo "$as_me: error: imlib2-config not found in PATH.. You need to install Imlib2 (and its developpement package)" >&2;}
5700 { (exit 1); exit 1; }; }
5702 IMLIB2_CFLAGS=$(imlib2-config --cflags)
5703 IMLIB2_LIBS=$(imlib2-config --libs)
5707 YELLOW="\\033\\1331;33m"
5708 RESET="\\033\\1330m"
5710 build_gkhdplop="yes"
5711 # Check whether --enable-gkrellm was given.
5712 if test "${enable_gkrellm+set}" = set; then
5713 enableval=$enable_gkrellm; if test "x$enableval" = "xno" ; then
5714 build_gkhdplop="no"
5715 echo you disabled the gkhdplop gkrellm plugin
5718 else
5719 build_gkhdplop="yes"
5723 GKHDPLOP=""
5724 if test "x$build_gkhdplop" = "xno"; then
5725 echo gkhdplop disabled...
5726 else
5727 echo building with GKHDPLOP, checking for gtk2..
5728 pkg_modules="gtk+-2.0 >= 2.0.0"
5731 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5732 if test -n "$ac_tool_prefix"; then
5733 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5734 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5737 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740 case $PKG_CONFIG in
5741 [\\/]* | ?:[\\/]*)
5742 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH
5748 IFS=$as_save_IFS
5749 test -z "$as_dir" && as_dir=.
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5752 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 break 2
5756 done
5757 done
5758 IFS=$as_save_IFS
5761 esac
5763 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5764 if test -n "$PKG_CONFIG"; then
5765 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5766 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5767 else
5768 { echo "$as_me:$LINENO: result: no" >&5
5769 echo "${ECHO_T}no" >&6; }
5774 if test -z "$ac_cv_path_PKG_CONFIG"; then
5775 ac_pt_PKG_CONFIG=$PKG_CONFIG
5776 # Extract the first word of "pkg-config", so it can be a program name with args.
5777 set dummy pkg-config; ac_word=$2
5778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5780 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783 case $ac_pt_PKG_CONFIG in
5784 [\\/]* | ?:[\\/]*)
5785 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5795 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5799 done
5800 done
5801 IFS=$as_save_IFS
5804 esac
5806 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5807 if test -n "$ac_pt_PKG_CONFIG"; then
5808 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5809 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5810 else
5811 { echo "$as_me:$LINENO: result: no" >&5
5812 echo "${ECHO_T}no" >&6; }
5815 if test "x$ac_pt_PKG_CONFIG" = x; then
5816 PKG_CONFIG=""
5817 else
5818 case $cross_compiling:$ac_tool_warned in
5819 yes:)
5820 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5821 whose name does not start with the host triplet. If you think this
5822 configuration is useful to you, please write to autoconf@gnu.org." >&5
5823 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5824 whose name does not start with the host triplet. If you think this
5825 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5826 ac_tool_warned=yes ;;
5827 esac
5828 PKG_CONFIG=$ac_pt_PKG_CONFIG
5830 else
5831 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5835 if test -n "$PKG_CONFIG"; then
5836 _pkg_min_version=0.9.0
5837 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5838 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5839 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5840 { echo "$as_me:$LINENO: result: yes" >&5
5841 echo "${ECHO_T}yes" >&6; }
5842 else
5843 { echo "$as_me:$LINENO: result: no" >&5
5844 echo "${ECHO_T}no" >&6; }
5845 PKG_CONFIG=""
5850 pkg_failed=no
5851 { echo "$as_me:$LINENO: checking for PACKAGE" >&5
5852 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
5854 if test -n "$PKG_CONFIG"; then
5855 if test -n "$PACKAGE_CFLAGS"; then
5856 pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
5857 else
5858 if test -n "$PKG_CONFIG" && \
5859 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
5860 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; then
5864 pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null`
5865 else
5866 pkg_failed=yes
5869 else
5870 pkg_failed=untried
5872 if test -n "$PKG_CONFIG"; then
5873 if test -n "$PACKAGE_LIBS"; then
5874 pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
5875 else
5876 if test -n "$PKG_CONFIG" && \
5877 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
5878 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; then
5882 pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null`
5883 else
5884 pkg_failed=yes
5887 else
5888 pkg_failed=untried
5893 if test $pkg_failed = yes; then
5895 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5896 _pkg_short_errors_supported=yes
5897 else
5898 _pkg_short_errors_supported=no
5900 if test $_pkg_short_errors_supported = yes; then
5901 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_modules"`
5902 else
5903 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"`
5905 # Put the nasty error message in config.log where it belongs
5906 echo "$PACKAGE_PKG_ERRORS" >&5
5908 { { echo "$as_me:$LINENO: error: Package requirements ($pkg_modules) were not met:
5910 $PACKAGE_PKG_ERRORS
5912 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5913 installed software in a non-standard prefix.
5915 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5916 and PACKAGE_LIBS to avoid the need to call pkg-config.
5917 See the pkg-config man page for more details.
5918 " >&5
5919 echo "$as_me: error: Package requirements ($pkg_modules) were not met:
5921 $PACKAGE_PKG_ERRORS
5923 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5924 installed software in a non-standard prefix.
5926 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5927 and PACKAGE_LIBS to avoid the need to call pkg-config.
5928 See the pkg-config man page for more details.
5929 " >&2;}
5930 { (exit 1); exit 1; }; }
5931 elif test $pkg_failed = untried; then
5932 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5933 is in your PATH or set the PKG_CONFIG environment variable to the full
5934 path to pkg-config.
5936 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5937 and PACKAGE_LIBS to avoid the need to call pkg-config.
5938 See the pkg-config man page for more details.
5940 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5941 See \`config.log' for more details." >&5
5942 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5943 is in your PATH or set the PKG_CONFIG environment variable to the full
5944 path to pkg-config.
5946 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5947 and PACKAGE_LIBS to avoid the need to call pkg-config.
5948 See the pkg-config man page for more details.
5950 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5951 See \`config.log' for more details." >&2;}
5952 { (exit 1); exit 1; }; }
5953 else
5954 PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
5955 PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
5956 { echo "$as_me:$LINENO: result: yes" >&5
5957 echo "${ECHO_T}yes" >&6; }
5960 GTK2_CFLAGS=$PACKAGE_CFLAGS;
5961 GTK2_LIBS=$PACKAGE_LIBS;
5964 SAVECPPFLAGS="$CPPFLAGS"
5965 CPPFLAGS="$CFLAGS $GTK2_CFLAGS"
5967 for ac_header in gkrellm2/gkrellm.h
5969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 ac_res=`eval echo '${'$as_ac_Header'}'`
5977 { echo "$as_me:$LINENO: result: $ac_res" >&5
5978 echo "${ECHO_T}$ac_res" >&6; }
5979 else
5980 # Is the header compilable?
5981 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5983 cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h. */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5989 $ac_includes_default
5990 #include <$ac_header>
5991 _ACEOF
5992 rm -f conftest.$ac_objext
5993 if { (ac_try="$ac_compile"
5994 case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_compile") 2>conftest.er1
6000 ac_status=$?
6001 grep -v '^ *+' conftest.er1 >conftest.err
6002 rm -f conftest.er1
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } && {
6006 test -z "$ac_c_werror_flag" ||
6007 test ! -s conftest.err
6008 } && test -s conftest.$ac_objext; then
6009 ac_header_compiler=yes
6010 else
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 ac_header_compiler=no
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6019 echo "${ECHO_T}$ac_header_compiler" >&6; }
6021 # Is the header present?
6022 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6024 cat >conftest.$ac_ext <<_ACEOF
6025 /* confdefs.h. */
6026 _ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 #include <$ac_header>
6031 _ACEOF
6032 if { (ac_try="$ac_cpp conftest.$ac_ext"
6033 case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036 esac
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6039 ac_status=$?
6040 grep -v '^ *+' conftest.er1 >conftest.err
6041 rm -f conftest.er1
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } >/dev/null && {
6045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6046 test ! -s conftest.err
6047 }; then
6048 ac_header_preproc=yes
6049 else
6050 echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6053 ac_header_preproc=no
6056 rm -f conftest.err conftest.$ac_ext
6057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6058 echo "${ECHO_T}$ac_header_preproc" >&6; }
6060 # So? What about this header?
6061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6062 yes:no: )
6063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6067 ac_header_preproc=yes
6069 no:yes:* )
6070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6084 esac
6085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090 eval "$as_ac_Header=\$ac_header_preproc"
6092 ac_res=`eval echo '${'$as_ac_Header'}'`
6093 { echo "$as_me:$LINENO: result: $ac_res" >&5
6094 echo "${ECHO_T}$ac_res" >&6; }
6097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6098 cat >>confdefs.h <<_ACEOF
6099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6100 _ACEOF
6101 ok=1
6102 else
6103 ok=0
6106 done
6108 if test "x$ok" = "x0"; then
6109 echo -e "${YELLOW}gkrellm2/gkrellm.h header not found or unusable${RESET}... cannot build gkhdplop.so"
6110 build_gkhdplop="no"
6111 else
6112 GKHDPLOP="gkhdplop.so"
6114 CPPFLAGS="$SAVECPPFLAGS"
6119 ac_config_files="$ac_config_files Makefile"
6121 cat >confcache <<\_ACEOF
6122 # This file is a shell script that caches the results of configure
6123 # tests run on this system so they can be shared between configure
6124 # scripts and configure runs, see configure's option --config-cache.
6125 # It is not useful on other systems. If it contains results you don't
6126 # want to keep, you may remove or edit it.
6128 # config.status only pays attention to the cache file if you give it
6129 # the --recheck option to rerun configure.
6131 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6132 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6133 # following values.
6135 _ACEOF
6137 # The following way of writing the cache mishandles newlines in values,
6138 # but we know of no workaround that is simple, portable, and efficient.
6139 # So, we kill variables containing newlines.
6140 # Ultrix sh set writes to stderr and can't be redirected directly,
6141 # and sets the high bit in the cache file unless we assign to the vars.
6143 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6144 eval ac_val=\$$ac_var
6145 case $ac_val in #(
6146 *${as_nl}*)
6147 case $ac_var in #(
6148 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6149 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6150 esac
6151 case $ac_var in #(
6152 _ | IFS | as_nl) ;; #(
6153 *) $as_unset $ac_var ;;
6154 esac ;;
6155 esac
6156 done
6158 (set) 2>&1 |
6159 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6160 *${as_nl}ac_space=\ *)
6161 # `set' does not quote correctly, so add quotes (double-quote
6162 # substitution turns \\\\ into \\, and sed turns \\ into \).
6163 sed -n \
6164 "s/'/'\\\\''/g;
6165 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6166 ;; #(
6168 # `set' quotes correctly as required by POSIX, so do not add quotes.
6169 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6171 esac |
6172 sort
6174 sed '
6175 /^ac_cv_env_/b end
6176 t clear
6177 :clear
6178 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6179 t end
6180 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6181 :end' >>confcache
6182 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6183 if test -w "$cache_file"; then
6184 test "x$cache_file" != "x/dev/null" &&
6185 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6186 echo "$as_me: updating cache $cache_file" >&6;}
6187 cat confcache >$cache_file
6188 else
6189 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6190 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6193 rm -f confcache
6195 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6196 # Let make expand exec_prefix.
6197 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6199 DEFS=-DHAVE_CONFIG_H
6201 ac_libobjs=
6202 ac_ltlibobjs=
6203 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6204 # 1. Remove the extension, and $U if already installed.
6205 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6206 ac_i=`echo "$ac_i" | sed "$ac_script"`
6207 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6208 # will be set to the directory where LIBOBJS objects are built.
6209 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6210 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6211 done
6212 LIBOBJS=$ac_libobjs
6214 LTLIBOBJS=$ac_ltlibobjs
6217 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6218 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6219 Usually this means the macro was only invoked conditionally." >&5
6220 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6221 Usually this means the macro was only invoked conditionally." >&2;}
6222 { (exit 1); exit 1; }; }
6224 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6225 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6226 Usually this means the macro was only invoked conditionally." >&5
6227 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6228 Usually this means the macro was only invoked conditionally." >&2;}
6229 { (exit 1); exit 1; }; }
6232 : ${CONFIG_STATUS=./config.status}
6233 ac_clean_files_save=$ac_clean_files
6234 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6235 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6236 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6237 cat >$CONFIG_STATUS <<_ACEOF
6238 #! $SHELL
6239 # Generated by $as_me.
6240 # Run this file to recreate the current configuration.
6241 # Compiler output produced by configure, useful for debugging
6242 # configure, is in config.log if it exists.
6244 debug=false
6245 ac_cs_recheck=false
6246 ac_cs_silent=false
6247 SHELL=\${CONFIG_SHELL-$SHELL}
6248 _ACEOF
6250 cat >>$CONFIG_STATUS <<\_ACEOF
6251 ## --------------------- ##
6252 ## M4sh Initialization. ##
6253 ## --------------------- ##
6255 # Be more Bourne compatible
6256 DUALCASE=1; export DUALCASE # for MKS sh
6257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6258 emulate sh
6259 NULLCMD=:
6260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6261 # is contrary to our usage. Disable this feature.
6262 alias -g '${1+"$@"}'='"$@"'
6263 setopt NO_GLOB_SUBST
6264 else
6265 case `(set -o) 2>/dev/null` in
6266 *posix*) set -o posix ;;
6267 esac
6274 # PATH needs CR
6275 # Avoid depending upon Character Ranges.
6276 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6277 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6278 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6279 as_cr_digits='0123456789'
6280 as_cr_alnum=$as_cr_Letters$as_cr_digits
6282 # The user is always right.
6283 if test "${PATH_SEPARATOR+set}" != set; then
6284 echo "#! /bin/sh" >conf$$.sh
6285 echo "exit 0" >>conf$$.sh
6286 chmod +x conf$$.sh
6287 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6288 PATH_SEPARATOR=';'
6289 else
6290 PATH_SEPARATOR=:
6292 rm -f conf$$.sh
6295 # Support unset when possible.
6296 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6297 as_unset=unset
6298 else
6299 as_unset=false
6303 # IFS
6304 # We need space, tab and new line, in precisely that order. Quoting is
6305 # there to prevent editors from complaining about space-tab.
6306 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6307 # splitting by setting IFS to empty value.)
6308 as_nl='
6310 IFS=" "" $as_nl"
6312 # Find who we are. Look in the path if we contain no directory separator.
6313 case $0 in
6314 *[\\/]* ) as_myself=$0 ;;
6315 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
6320 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6321 done
6322 IFS=$as_save_IFS
6325 esac
6326 # We did not find ourselves, most probably we were run as `sh COMMAND'
6327 # in which case we are not to be found in the path.
6328 if test "x$as_myself" = x; then
6329 as_myself=$0
6331 if test ! -f "$as_myself"; then
6332 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6333 { (exit 1); exit 1; }
6336 # Work around bugs in pre-3.0 UWIN ksh.
6337 for as_var in ENV MAIL MAILPATH
6338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6339 done
6340 PS1='$ '
6341 PS2='> '
6342 PS4='+ '
6344 # NLS nuisances.
6345 for as_var in \
6346 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6347 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6348 LC_TELEPHONE LC_TIME
6350 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6351 eval $as_var=C; export $as_var
6352 else
6353 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6355 done
6357 # Required to use basename.
6358 if expr a : '\(a\)' >/dev/null 2>&1 &&
6359 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6360 as_expr=expr
6361 else
6362 as_expr=false
6365 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6366 as_basename=basename
6367 else
6368 as_basename=false
6372 # Name of the executable.
6373 as_me=`$as_basename -- "$0" ||
6374 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6375 X"$0" : 'X\(//\)$' \| \
6376 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6377 echo X/"$0" |
6378 sed '/^.*\/\([^/][^/]*\)\/*$/{
6379 s//\1/
6382 /^X\/\(\/\/\)$/{
6383 s//\1/
6386 /^X\/\(\/\).*/{
6387 s//\1/
6390 s/.*/./; q'`
6392 # CDPATH.
6393 $as_unset CDPATH
6397 as_lineno_1=$LINENO
6398 as_lineno_2=$LINENO
6399 test "x$as_lineno_1" != "x$as_lineno_2" &&
6400 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6402 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6403 # uniformly replaced by the line number. The first 'sed' inserts a
6404 # line-number line after each line using $LINENO; the second 'sed'
6405 # does the real work. The second script uses 'N' to pair each
6406 # line-number line with the line containing $LINENO, and appends
6407 # trailing '-' during substitution so that $LINENO is not a special
6408 # case at line end.
6409 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6410 # scripts with optimization help from Paolo Bonzini. Blame Lee
6411 # E. McMahon (1931-1989) for sed's syntax. :-)
6412 sed -n '
6414 /[$]LINENO/=
6415 ' <$as_myself |
6416 sed '
6417 s/[$]LINENO.*/&-/
6418 t lineno
6420 :lineno
6422 :loop
6423 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6424 t loop
6425 s/-\n.*//
6426 ' >$as_me.lineno &&
6427 chmod +x "$as_me.lineno" ||
6428 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6429 { (exit 1); exit 1; }; }
6431 # Don't try to exec as it changes $[0], causing all sort of problems
6432 # (the dirname of $[0] is not the place where we might find the
6433 # original and so on. Autoconf is especially sensitive to this).
6434 . "./$as_me.lineno"
6435 # Exit status is that of the last command.
6436 exit
6440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6441 as_dirname=dirname
6442 else
6443 as_dirname=false
6446 ECHO_C= ECHO_N= ECHO_T=
6447 case `echo -n x` in
6448 -n*)
6449 case `echo 'x\c'` in
6450 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6451 *) ECHO_C='\c';;
6452 esac;;
6454 ECHO_N='-n';;
6455 esac
6457 if expr a : '\(a\)' >/dev/null 2>&1 &&
6458 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6459 as_expr=expr
6460 else
6461 as_expr=false
6464 rm -f conf$$ conf$$.exe conf$$.file
6465 if test -d conf$$.dir; then
6466 rm -f conf$$.dir/conf$$.file
6467 else
6468 rm -f conf$$.dir
6469 mkdir conf$$.dir
6471 echo >conf$$.file
6472 if ln -s conf$$.file conf$$ 2>/dev/null; then
6473 as_ln_s='ln -s'
6474 # ... but there are two gotchas:
6475 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6476 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6477 # In both cases, we have to default to `cp -p'.
6478 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6479 as_ln_s='cp -p'
6480 elif ln conf$$.file conf$$ 2>/dev/null; then
6481 as_ln_s=ln
6482 else
6483 as_ln_s='cp -p'
6485 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6486 rmdir conf$$.dir 2>/dev/null
6488 if mkdir -p . 2>/dev/null; then
6489 as_mkdir_p=:
6490 else
6491 test -d ./-p && rmdir ./-p
6492 as_mkdir_p=false
6495 if test -x / >/dev/null 2>&1; then
6496 as_test_x='test -x'
6497 else
6498 if ls -dL / >/dev/null 2>&1; then
6499 as_ls_L_option=L
6500 else
6501 as_ls_L_option=
6503 as_test_x='
6504 eval sh -c '\''
6505 if test -d "$1"; then
6506 test -d "$1/.";
6507 else
6508 case $1 in
6509 -*)set "./$1";;
6510 esac;
6511 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6512 ???[sx]*):;;*)false;;esac;fi
6513 '\'' sh
6516 as_executable_p=$as_test_x
6518 # Sed expression to map a string onto a valid CPP name.
6519 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6521 # Sed expression to map a string onto a valid variable name.
6522 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6525 exec 6>&1
6527 # Save the log message, to keep $[0] and so on meaningful, and to
6528 # report actual input values of CONFIG_FILES etc. instead of their
6529 # values after options handling.
6530 ac_log="
6531 This file was extended by $as_me, which was
6532 generated by GNU Autoconf 2.61. Invocation command line was
6534 CONFIG_FILES = $CONFIG_FILES
6535 CONFIG_HEADERS = $CONFIG_HEADERS
6536 CONFIG_LINKS = $CONFIG_LINKS
6537 CONFIG_COMMANDS = $CONFIG_COMMANDS
6538 $ $0 $@
6540 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6543 _ACEOF
6545 cat >>$CONFIG_STATUS <<_ACEOF
6546 # Files that config.status was made for.
6547 config_files="$ac_config_files"
6548 config_headers="$ac_config_headers"
6549 config_commands="$ac_config_commands"
6551 _ACEOF
6553 cat >>$CONFIG_STATUS <<\_ACEOF
6554 ac_cs_usage="\
6555 \`$as_me' instantiates files from templates according to the
6556 current configuration.
6558 Usage: $0 [OPTIONS] [FILE]...
6560 -h, --help print this help, then exit
6561 -V, --version print version number and configuration settings, then exit
6562 -q, --quiet do not print progress messages
6563 -d, --debug don't remove temporary files
6564 --recheck update $as_me by reconfiguring in the same conditions
6565 --file=FILE[:TEMPLATE]
6566 instantiate the configuration file FILE
6567 --header=FILE[:TEMPLATE]
6568 instantiate the configuration header FILE
6570 Configuration files:
6571 $config_files
6573 Configuration headers:
6574 $config_headers
6576 Configuration commands:
6577 $config_commands
6579 Report bugs to <bug-autoconf@gnu.org>."
6581 _ACEOF
6582 cat >>$CONFIG_STATUS <<_ACEOF
6583 ac_cs_version="\\
6584 config.status
6585 configured by $0, generated by GNU Autoconf 2.61,
6586 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6588 Copyright (C) 2006 Free Software Foundation, Inc.
6589 This config.status script is free software; the Free Software Foundation
6590 gives unlimited permission to copy, distribute and modify it."
6592 ac_pwd='$ac_pwd'
6593 srcdir='$srcdir'
6594 INSTALL='$INSTALL'
6595 _ACEOF
6597 cat >>$CONFIG_STATUS <<\_ACEOF
6598 # If no file are specified by the user, then we need to provide default
6599 # value. By we need to know if files were specified by the user.
6600 ac_need_defaults=:
6601 while test $# != 0
6603 case $1 in
6604 --*=*)
6605 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6606 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6607 ac_shift=:
6610 ac_option=$1
6611 ac_optarg=$2
6612 ac_shift=shift
6614 esac
6616 case $ac_option in
6617 # Handling of the options.
6618 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6619 ac_cs_recheck=: ;;
6620 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6621 echo "$ac_cs_version"; exit ;;
6622 --debug | --debu | --deb | --de | --d | -d )
6623 debug=: ;;
6624 --file | --fil | --fi | --f )
6625 $ac_shift
6626 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6627 ac_need_defaults=false;;
6628 --header | --heade | --head | --hea )
6629 $ac_shift
6630 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6631 ac_need_defaults=false;;
6632 --he | --h)
6633 # Conflict between --help and --header
6634 { echo "$as_me: error: ambiguous option: $1
6635 Try \`$0 --help' for more information." >&2
6636 { (exit 1); exit 1; }; };;
6637 --help | --hel | -h )
6638 echo "$ac_cs_usage"; exit ;;
6639 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6640 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6641 ac_cs_silent=: ;;
6643 # This is an error.
6644 -*) { echo "$as_me: error: unrecognized option: $1
6645 Try \`$0 --help' for more information." >&2
6646 { (exit 1); exit 1; }; } ;;
6648 *) ac_config_targets="$ac_config_targets $1"
6649 ac_need_defaults=false ;;
6651 esac
6652 shift
6653 done
6655 ac_configure_extra_args=
6657 if $ac_cs_silent; then
6658 exec 6>/dev/null
6659 ac_configure_extra_args="$ac_configure_extra_args --silent"
6662 _ACEOF
6663 cat >>$CONFIG_STATUS <<_ACEOF
6664 if \$ac_cs_recheck; then
6665 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6666 CONFIG_SHELL=$SHELL
6667 export CONFIG_SHELL
6668 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6671 _ACEOF
6672 cat >>$CONFIG_STATUS <<\_ACEOF
6673 exec 5>>config.log
6675 echo
6676 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6677 ## Running $as_me. ##
6678 _ASBOX
6679 echo "$ac_log"
6680 } >&5
6682 _ACEOF
6683 cat >>$CONFIG_STATUS <<_ACEOF
6685 # INIT-COMMANDS
6687 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6689 _ACEOF
6691 cat >>$CONFIG_STATUS <<\_ACEOF
6693 # Handling of arguments.
6694 for ac_config_target in $ac_config_targets
6696 case $ac_config_target in
6697 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6698 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6699 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6701 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6702 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6703 { (exit 1); exit 1; }; };;
6704 esac
6705 done
6708 # If the user did not use the arguments to specify the items to instantiate,
6709 # then the envvar interface is used. Set only those that are not.
6710 # We use the long form for the default assignment because of an extremely
6711 # bizarre bug on SunOS 4.1.3.
6712 if $ac_need_defaults; then
6713 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6714 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6715 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6718 # Have a temporary directory for convenience. Make it in the build tree
6719 # simply because there is no reason against having it here, and in addition,
6720 # creating and moving files from /tmp can sometimes cause problems.
6721 # Hook for its removal unless debugging.
6722 # Note that there is a small window in which the directory will not be cleaned:
6723 # after its creation but before its name has been assigned to `$tmp'.
6724 $debug ||
6726 tmp=
6727 trap 'exit_status=$?
6728 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6730 trap '{ (exit 1); exit 1; }' 1 2 13 15
6732 # Create a (secure) tmp directory for tmp files.
6735 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6736 test -n "$tmp" && test -d "$tmp"
6737 } ||
6739 tmp=./conf$$-$RANDOM
6740 (umask 077 && mkdir "$tmp")
6741 } ||
6743 echo "$me: cannot create a temporary directory in ." >&2
6744 { (exit 1); exit 1; }
6748 # Set up the sed scripts for CONFIG_FILES section.
6751 # No need to generate the scripts if there are no CONFIG_FILES.
6752 # This happens for instance when ./config.status config.h
6753 if test -n "$CONFIG_FILES"; then
6755 _ACEOF
6759 ac_delim='%!_!# '
6760 for ac_last_try in false false false false false :; do
6761 cat >conf$$subs.sed <<_ACEOF
6762 SHELL!$SHELL$ac_delim
6763 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6764 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6765 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6766 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6767 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6768 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6769 exec_prefix!$exec_prefix$ac_delim
6770 prefix!$prefix$ac_delim
6771 program_transform_name!$program_transform_name$ac_delim
6772 bindir!$bindir$ac_delim
6773 sbindir!$sbindir$ac_delim
6774 libexecdir!$libexecdir$ac_delim
6775 datarootdir!$datarootdir$ac_delim
6776 datadir!$datadir$ac_delim
6777 sysconfdir!$sysconfdir$ac_delim
6778 sharedstatedir!$sharedstatedir$ac_delim
6779 localstatedir!$localstatedir$ac_delim
6780 includedir!$includedir$ac_delim
6781 oldincludedir!$oldincludedir$ac_delim
6782 docdir!$docdir$ac_delim
6783 infodir!$infodir$ac_delim
6784 htmldir!$htmldir$ac_delim
6785 dvidir!$dvidir$ac_delim
6786 pdfdir!$pdfdir$ac_delim
6787 psdir!$psdir$ac_delim
6788 libdir!$libdir$ac_delim
6789 localedir!$localedir$ac_delim
6790 mandir!$mandir$ac_delim
6791 DEFS!$DEFS$ac_delim
6792 ECHO_C!$ECHO_C$ac_delim
6793 ECHO_N!$ECHO_N$ac_delim
6794 ECHO_T!$ECHO_T$ac_delim
6795 LIBS!$LIBS$ac_delim
6796 build_alias!$build_alias$ac_delim
6797 host_alias!$host_alias$ac_delim
6798 target_alias!$target_alias$ac_delim
6799 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6800 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6801 INSTALL_DATA!$INSTALL_DATA$ac_delim
6802 CYGPATH_W!$CYGPATH_W$ac_delim
6803 PACKAGE!$PACKAGE$ac_delim
6804 VERSION!$VERSION$ac_delim
6805 ACLOCAL!$ACLOCAL$ac_delim
6806 AUTOCONF!$AUTOCONF$ac_delim
6807 AUTOMAKE!$AUTOMAKE$ac_delim
6808 AUTOHEADER!$AUTOHEADER$ac_delim
6809 MAKEINFO!$MAKEINFO$ac_delim
6810 install_sh!$install_sh$ac_delim
6811 STRIP!$STRIP$ac_delim
6812 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
6813 mkdir_p!$mkdir_p$ac_delim
6814 AWK!$AWK$ac_delim
6815 SET_MAKE!$SET_MAKE$ac_delim
6816 am__leading_dot!$am__leading_dot$ac_delim
6817 AMTAR!$AMTAR$ac_delim
6818 am__tar!$am__tar$ac_delim
6819 am__untar!$am__untar$ac_delim
6820 ISODATE!$ISODATE$ac_delim
6821 build!$build$ac_delim
6822 build_cpu!$build_cpu$ac_delim
6823 build_vendor!$build_vendor$ac_delim
6824 build_os!$build_os$ac_delim
6825 host!$host$ac_delim
6826 host_cpu!$host_cpu$ac_delim
6827 host_vendor!$host_vendor$ac_delim
6828 host_os!$host_os$ac_delim
6829 CC!$CC$ac_delim
6830 CFLAGS!$CFLAGS$ac_delim
6831 LDFLAGS!$LDFLAGS$ac_delim
6832 CPPFLAGS!$CPPFLAGS$ac_delim
6833 ac_ct_CC!$ac_ct_CC$ac_delim
6834 EXEEXT!$EXEEXT$ac_delim
6835 OBJEXT!$OBJEXT$ac_delim
6836 DEPDIR!$DEPDIR$ac_delim
6837 am__include!$am__include$ac_delim
6838 am__quote!$am__quote$ac_delim
6839 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
6840 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
6841 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
6842 CCDEPMODE!$CCDEPMODE$ac_delim
6843 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
6844 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
6845 CPP!$CPP$ac_delim
6846 GREP!$GREP$ac_delim
6847 EGREP!$EGREP$ac_delim
6848 XMKMF!$XMKMF$ac_delim
6849 X_CFLAGS!$X_CFLAGS$ac_delim
6850 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
6851 X_LIBS!$X_LIBS$ac_delim
6852 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
6853 IMLIB2_CONFIG_IN_PATH!$IMLIB2_CONFIG_IN_PATH$ac_delim
6854 IMLIB2_CFLAGS!$IMLIB2_CFLAGS$ac_delim
6855 IMLIB2_LIBS!$IMLIB2_LIBS$ac_delim
6856 PKG_CONFIG!$PKG_CONFIG$ac_delim
6857 PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
6858 PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
6859 _ACEOF
6861 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
6862 break
6863 elif $ac_last_try; then
6864 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6865 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6866 { (exit 1); exit 1; }; }
6867 else
6868 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6870 done
6872 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6873 if test -n "$ac_eof"; then
6874 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6875 ac_eof=`expr $ac_eof + 1`
6878 cat >>$CONFIG_STATUS <<_ACEOF
6879 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6881 _ACEOF
6882 sed '
6883 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6884 s/^/s,@/; s/!/@,|#_!!_#|/
6887 s/'"$ac_delim"'$/,g/; t
6888 s/$/\\/; p
6889 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6890 ' >>$CONFIG_STATUS <conf$$subs.sed
6891 rm -f conf$$subs.sed
6892 cat >>$CONFIG_STATUS <<_ACEOF
6893 CEOF$ac_eof
6894 _ACEOF
6897 ac_delim='%!_!# '
6898 for ac_last_try in false false false false false :; do
6899 cat >conf$$subs.sed <<_ACEOF
6900 GTK2_CFLAGS!$GTK2_CFLAGS$ac_delim
6901 GTK2_LIBS!$GTK2_LIBS$ac_delim
6902 GKHDPLOP!$GKHDPLOP$ac_delim
6903 LIBOBJS!$LIBOBJS$ac_delim
6904 LTLIBOBJS!$LTLIBOBJS$ac_delim
6905 _ACEOF
6907 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
6908 break
6909 elif $ac_last_try; then
6910 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6911 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6912 { (exit 1); exit 1; }; }
6913 else
6914 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6916 done
6918 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6919 if test -n "$ac_eof"; then
6920 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6921 ac_eof=`expr $ac_eof + 1`
6924 cat >>$CONFIG_STATUS <<_ACEOF
6925 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
6926 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6927 _ACEOF
6928 sed '
6929 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6930 s/^/s,@/; s/!/@,|#_!!_#|/
6933 s/'"$ac_delim"'$/,g/; t
6934 s/$/\\/; p
6935 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6936 ' >>$CONFIG_STATUS <conf$$subs.sed
6937 rm -f conf$$subs.sed
6938 cat >>$CONFIG_STATUS <<_ACEOF
6939 :end
6940 s/|#_!!_#|//g
6941 CEOF$ac_eof
6942 _ACEOF
6945 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6946 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6947 # trailing colons and then remove the whole line if VPATH becomes empty
6948 # (actually we leave an empty line to preserve line numbers).
6949 if test "x$srcdir" = x.; then
6950 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6951 s/:*\$(srcdir):*/:/
6952 s/:*\${srcdir}:*/:/
6953 s/:*@srcdir@:*/:/
6954 s/^\([^=]*=[ ]*\):*/\1/
6955 s/:*$//
6956 s/^[^=]*=[ ]*$//
6960 cat >>$CONFIG_STATUS <<\_ACEOF
6961 fi # test -n "$CONFIG_FILES"
6964 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
6966 case $ac_tag in
6967 :[FHLC]) ac_mode=$ac_tag; continue;;
6968 esac
6969 case $ac_mode$ac_tag in
6970 :[FHL]*:*);;
6971 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6972 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6973 { (exit 1); exit 1; }; };;
6974 :[FH]-) ac_tag=-:-;;
6975 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6976 esac
6977 ac_save_IFS=$IFS
6978 IFS=:
6979 set x $ac_tag
6980 IFS=$ac_save_IFS
6981 shift
6982 ac_file=$1
6983 shift
6985 case $ac_mode in
6986 :L) ac_source=$1;;
6987 :[FH])
6988 ac_file_inputs=
6989 for ac_f
6991 case $ac_f in
6992 -) ac_f="$tmp/stdin";;
6993 *) # Look for the file first in the build tree, then in the source tree
6994 # (if the path is not absolute). The absolute path cannot be DOS-style,
6995 # because $ac_f cannot contain `:'.
6996 test -f "$ac_f" ||
6997 case $ac_f in
6998 [\\/$]*) false;;
6999 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7000 esac ||
7001 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7002 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7003 { (exit 1); exit 1; }; };;
7004 esac
7005 ac_file_inputs="$ac_file_inputs $ac_f"
7006 done
7008 # Let's still pretend it is `configure' which instantiates (i.e., don't
7009 # use $as_me), people would be surprised to read:
7010 # /* config.h. Generated by config.status. */
7011 configure_input="Generated from "`IFS=:
7012 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7013 if test x"$ac_file" != x-; then
7014 configure_input="$ac_file. $configure_input"
7015 { echo "$as_me:$LINENO: creating $ac_file" >&5
7016 echo "$as_me: creating $ac_file" >&6;}
7019 case $ac_tag in
7020 *:-:* | *:-) cat >"$tmp/stdin";;
7021 esac
7023 esac
7025 ac_dir=`$as_dirname -- "$ac_file" ||
7026 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7027 X"$ac_file" : 'X\(//\)[^/]' \| \
7028 X"$ac_file" : 'X\(//\)$' \| \
7029 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7030 echo X"$ac_file" |
7031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7032 s//\1/
7035 /^X\(\/\/\)[^/].*/{
7036 s//\1/
7039 /^X\(\/\/\)$/{
7040 s//\1/
7043 /^X\(\/\).*/{
7044 s//\1/
7047 s/.*/./; q'`
7048 { as_dir="$ac_dir"
7049 case $as_dir in #(
7050 -*) as_dir=./$as_dir;;
7051 esac
7052 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7053 as_dirs=
7054 while :; do
7055 case $as_dir in #(
7056 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7057 *) as_qdir=$as_dir;;
7058 esac
7059 as_dirs="'$as_qdir' $as_dirs"
7060 as_dir=`$as_dirname -- "$as_dir" ||
7061 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7062 X"$as_dir" : 'X\(//\)[^/]' \| \
7063 X"$as_dir" : 'X\(//\)$' \| \
7064 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7065 echo X"$as_dir" |
7066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7067 s//\1/
7070 /^X\(\/\/\)[^/].*/{
7071 s//\1/
7074 /^X\(\/\/\)$/{
7075 s//\1/
7078 /^X\(\/\).*/{
7079 s//\1/
7082 s/.*/./; q'`
7083 test -d "$as_dir" && break
7084 done
7085 test -z "$as_dirs" || eval "mkdir $as_dirs"
7086 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7087 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7088 { (exit 1); exit 1; }; }; }
7089 ac_builddir=.
7091 case "$ac_dir" in
7092 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7094 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7095 # A ".." for each directory in $ac_dir_suffix.
7096 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7097 case $ac_top_builddir_sub in
7098 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7099 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7100 esac ;;
7101 esac
7102 ac_abs_top_builddir=$ac_pwd
7103 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7104 # for backward compatibility:
7105 ac_top_builddir=$ac_top_build_prefix
7107 case $srcdir in
7108 .) # We are building in place.
7109 ac_srcdir=.
7110 ac_top_srcdir=$ac_top_builddir_sub
7111 ac_abs_top_srcdir=$ac_pwd ;;
7112 [\\/]* | ?:[\\/]* ) # Absolute name.
7113 ac_srcdir=$srcdir$ac_dir_suffix;
7114 ac_top_srcdir=$srcdir
7115 ac_abs_top_srcdir=$srcdir ;;
7116 *) # Relative name.
7117 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7118 ac_top_srcdir=$ac_top_build_prefix$srcdir
7119 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7120 esac
7121 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7124 case $ac_mode in
7127 # CONFIG_FILE
7130 case $INSTALL in
7131 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7132 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7133 esac
7134 _ACEOF
7136 cat >>$CONFIG_STATUS <<\_ACEOF
7137 # If the template does not know about datarootdir, expand it.
7138 # FIXME: This hack should be removed a few years after 2.60.
7139 ac_datarootdir_hack=; ac_datarootdir_seen=
7141 case `sed -n '/datarootdir/ {
7145 /@datadir@/p
7146 /@docdir@/p
7147 /@infodir@/p
7148 /@localedir@/p
7149 /@mandir@/p
7150 ' $ac_file_inputs` in
7151 *datarootdir*) ac_datarootdir_seen=yes;;
7152 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7153 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7154 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7155 _ACEOF
7156 cat >>$CONFIG_STATUS <<_ACEOF
7157 ac_datarootdir_hack='
7158 s&@datadir@&$datadir&g
7159 s&@docdir@&$docdir&g
7160 s&@infodir@&$infodir&g
7161 s&@localedir@&$localedir&g
7162 s&@mandir@&$mandir&g
7163 s&\\\${datarootdir}&$datarootdir&g' ;;
7164 esac
7165 _ACEOF
7167 # Neutralize VPATH when `$srcdir' = `.'.
7168 # Shell code in configure.ac might set extrasub.
7169 # FIXME: do we really want to maintain this feature?
7170 cat >>$CONFIG_STATUS <<_ACEOF
7171 sed "$ac_vpsub
7172 $extrasub
7173 _ACEOF
7174 cat >>$CONFIG_STATUS <<\_ACEOF
7176 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7177 s&@configure_input@&$configure_input&;t t
7178 s&@top_builddir@&$ac_top_builddir_sub&;t t
7179 s&@srcdir@&$ac_srcdir&;t t
7180 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7181 s&@top_srcdir@&$ac_top_srcdir&;t t
7182 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7183 s&@builddir@&$ac_builddir&;t t
7184 s&@abs_builddir@&$ac_abs_builddir&;t t
7185 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7186 s&@INSTALL@&$ac_INSTALL&;t t
7187 $ac_datarootdir_hack
7188 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7190 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7191 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7192 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7193 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7194 which seems to be undefined. Please make sure it is defined." >&5
7195 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7196 which seems to be undefined. Please make sure it is defined." >&2;}
7198 rm -f "$tmp/stdin"
7199 case $ac_file in
7200 -) cat "$tmp/out"; rm -f "$tmp/out";;
7201 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7202 esac
7206 # CONFIG_HEADER
7208 _ACEOF
7210 # Transform confdefs.h into a sed script `conftest.defines', that
7211 # substitutes the proper values into config.h.in to produce config.h.
7212 rm -f conftest.defines conftest.tail
7213 # First, append a space to every undef/define line, to ease matching.
7214 echo 's/$/ /' >conftest.defines
7215 # Then, protect against being on the right side of a sed subst, or in
7216 # an unquoted here document, in config.status. If some macros were
7217 # called several times there might be several #defines for the same
7218 # symbol, which is useless. But do not sort them, since the last
7219 # AC_DEFINE must be honored.
7220 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7221 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7222 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7223 # PARAMS is the parameter list in the macro definition--in most cases, it's
7224 # just an empty string.
7225 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
7226 ac_dB='\\)[ (].*,\\1define\\2'
7227 ac_dC=' '
7228 ac_dD=' ,'
7230 uniq confdefs.h |
7231 sed -n '
7232 t rset
7233 :rset
7234 s/^[ ]*#[ ]*define[ ][ ]*//
7235 t ok
7238 s/[\\&,]/\\&/g
7239 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7240 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7241 ' >>conftest.defines
7243 # Remove the space that was appended to ease matching.
7244 # Then replace #undef with comments. This is necessary, for
7245 # example, in the case of _POSIX_SOURCE, which is predefined and required
7246 # on some systems where configure will not decide to define it.
7247 # (The regexp can be short, since the line contains either #define or #undef.)
7248 echo 's/ $//
7249 s,^[ #]*u.*,/* & */,' >>conftest.defines
7251 # Break up conftest.defines:
7252 ac_max_sed_lines=50
7254 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7255 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7256 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7257 # et cetera.
7258 ac_in='$ac_file_inputs'
7259 ac_out='"$tmp/out1"'
7260 ac_nxt='"$tmp/out2"'
7262 while :
7264 # Write a here document:
7265 cat >>$CONFIG_STATUS <<_ACEOF
7266 # First, check the format of the line:
7267 cat >"\$tmp/defines.sed" <<\\CEOF
7268 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
7269 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
7271 :def
7272 _ACEOF
7273 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7274 echo 'CEOF
7275 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7276 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7277 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7278 grep . conftest.tail >/dev/null || break
7279 rm -f conftest.defines
7280 mv conftest.tail conftest.defines
7281 done
7282 rm -f conftest.defines conftest.tail
7284 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7285 cat >>$CONFIG_STATUS <<\_ACEOF
7286 if test x"$ac_file" != x-; then
7287 echo "/* $configure_input */" >"$tmp/config.h"
7288 cat "$ac_result" >>"$tmp/config.h"
7289 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7290 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7291 echo "$as_me: $ac_file is unchanged" >&6;}
7292 else
7293 rm -f $ac_file
7294 mv "$tmp/config.h" $ac_file
7296 else
7297 echo "/* $configure_input */"
7298 cat "$ac_result"
7300 rm -f "$tmp/out12"
7301 # Compute $ac_file's index in $config_headers.
7302 _am_stamp_count=1
7303 for _am_header in $config_headers :; do
7304 case $_am_header in
7305 $ac_file | $ac_file:* )
7306 break ;;
7308 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7309 esac
7310 done
7311 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
7312 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7313 X$ac_file : 'X\(//\)[^/]' \| \
7314 X$ac_file : 'X\(//\)$' \| \
7315 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
7316 echo X$ac_file |
7317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7318 s//\1/
7321 /^X\(\/\/\)[^/].*/{
7322 s//\1/
7325 /^X\(\/\/\)$/{
7326 s//\1/
7329 /^X\(\/\).*/{
7330 s//\1/
7333 s/.*/./; q'`/stamp-h$_am_stamp_count
7336 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
7337 echo "$as_me: executing $ac_file commands" >&6;}
7339 esac
7342 case $ac_file$ac_mode in
7343 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7344 # Strip MF so we end up with the name of the file.
7345 mf=`echo "$mf" | sed -e 's/:.*$//'`
7346 # Check whether this is an Automake generated Makefile or not.
7347 # We used to match only the files named `Makefile.in', but
7348 # some people rename them; so instead we look at the file content.
7349 # Grep'ing the first line is not enough: some people post-process
7350 # each Makefile.in and add a new line on top of each file to say so.
7351 # So let's grep whole file.
7352 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7353 dirpart=`$as_dirname -- "$mf" ||
7354 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7355 X"$mf" : 'X\(//\)[^/]' \| \
7356 X"$mf" : 'X\(//\)$' \| \
7357 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7358 echo X"$mf" |
7359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7360 s//\1/
7363 /^X\(\/\/\)[^/].*/{
7364 s//\1/
7367 /^X\(\/\/\)$/{
7368 s//\1/
7371 /^X\(\/\).*/{
7372 s//\1/
7375 s/.*/./; q'`
7376 else
7377 continue
7379 # Extract the definition of DEPDIR, am__include, and am__quote
7380 # from the Makefile without running `make'.
7381 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7382 test -z "$DEPDIR" && continue
7383 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7384 test -z "am__include" && continue
7385 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7386 # When using ansi2knr, U may be empty or an underscore; expand it
7387 U=`sed -n 's/^U = //p' < "$mf"`
7388 # Find all dependency output files, they are included files with
7389 # $(DEPDIR) in their names. We invoke sed twice because it is the
7390 # simplest approach to changing $(DEPDIR) to its actual value in the
7391 # expansion.
7392 for file in `sed -n "
7393 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7394 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7395 # Make sure the directory exists.
7396 test -f "$dirpart/$file" && continue
7397 fdir=`$as_dirname -- "$file" ||
7398 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7399 X"$file" : 'X\(//\)[^/]' \| \
7400 X"$file" : 'X\(//\)$' \| \
7401 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7402 echo X"$file" |
7403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7404 s//\1/
7407 /^X\(\/\/\)[^/].*/{
7408 s//\1/
7411 /^X\(\/\/\)$/{
7412 s//\1/
7415 /^X\(\/\).*/{
7416 s//\1/
7419 s/.*/./; q'`
7420 { as_dir=$dirpart/$fdir
7421 case $as_dir in #(
7422 -*) as_dir=./$as_dir;;
7423 esac
7424 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7425 as_dirs=
7426 while :; do
7427 case $as_dir in #(
7428 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7429 *) as_qdir=$as_dir;;
7430 esac
7431 as_dirs="'$as_qdir' $as_dirs"
7432 as_dir=`$as_dirname -- "$as_dir" ||
7433 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7434 X"$as_dir" : 'X\(//\)[^/]' \| \
7435 X"$as_dir" : 'X\(//\)$' \| \
7436 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7437 echo X"$as_dir" |
7438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7439 s//\1/
7442 /^X\(\/\/\)[^/].*/{
7443 s//\1/
7446 /^X\(\/\/\)$/{
7447 s//\1/
7450 /^X\(\/\).*/{
7451 s//\1/
7454 s/.*/./; q'`
7455 test -d "$as_dir" && break
7456 done
7457 test -z "$as_dirs" || eval "mkdir $as_dirs"
7458 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7459 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7460 { (exit 1); exit 1; }; }; }
7461 # echo "creating $dirpart/$file"
7462 echo '# dummy' > "$dirpart/$file"
7463 done
7464 done
7467 esac
7468 done # for ac_tag
7471 { (exit 0); exit 0; }
7472 _ACEOF
7473 chmod +x $CONFIG_STATUS
7474 ac_clean_files=$ac_clean_files_save
7477 # configure is writing to config.log, and then calls config.status.
7478 # config.status does its own redirection, appending to config.log.
7479 # Unfortunately, on DOS this fails, as config.log is still kept open
7480 # by configure, so config.status won't be able to write to it; its
7481 # output is simply discarded. So we exec the FD to /dev/null,
7482 # effectively closing config.log, so it can be properly (re)opened and
7483 # appended to by config.status. When coming back to configure, we
7484 # need to make the FD available again.
7485 if test "$no_create" != yes; then
7486 ac_cs_success=:
7487 ac_config_status_args=
7488 test "$silent" = yes &&
7489 ac_config_status_args="$ac_config_status_args --quiet"
7490 exec 5>/dev/null
7491 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7492 exec 5>>config.log
7493 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7494 # would make configure fail if this is the last instruction.
7495 $ac_cs_success || { (exit 1); exit 1; }
7499 echo "- - - - - - - - - - - - - - - -"
7500 echo -e "${YELLOW}wmhdplop will be built${RESET}"
7501 if test "x$build_gkhdplop" = "xno"; then
7502 echo -e "${YELLOW}gkhdplop.so will NOT be built${RESET}"
7503 else
7504 echo -e "${YELLOW}gkhdplop.so will be built${RESET}"
7505 echo "Check that the plugin is working properly before installing it with:"
7506 echo " gkrellm -p ./gkhdplop.so"
7507 echo "and then install the gkrellm plugin with:"
7508 echo " mv ./gkhdplop.so ~/.gkrellm2/plugins"