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
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+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
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
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
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.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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
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 \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
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
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
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+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
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; }
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
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 () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
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
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
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. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
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
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`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 # Factoring default headers for most tests.
580 ac_includes_default
="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
624 program_transform_name
735 CONFIG_WORD_LENGTH_INC
757 ac_precious_vars
='build_alias
774 # Initialize some variables set by options.
776 ac_init_version
=false
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
786 program_transform_name
=s
,x
,x
,
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir
='${exec_prefix}/bin'
801 sbindir
='${exec_prefix}/sbin'
802 libexecdir
='${exec_prefix}/libexec'
803 datarootdir
='${prefix}/share'
804 datadir
='${datarootdir}'
805 sysconfdir
='${prefix}/etc'
806 sharedstatedir
='${prefix}/com'
807 localstatedir
='${prefix}/var'
808 includedir
='${prefix}/include'
809 oldincludedir
='/usr/include'
810 docdir
='${datarootdir}/doc/${PACKAGE}'
811 infodir
='${datarootdir}/info'
816 libdir
='${exec_prefix}/lib'
817 localedir
='${datarootdir}/locale'
818 mandir
='${datarootdir}/man'
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
826 eval $ac_prev=\
$ac_option
832 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836 # Accept the important Cygnus configure options, so we can diagnose typos.
838 case $ac_dashdash$ac_option in
842 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
844 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
847 -build |
--build |
--buil |
--bui |
--bu)
848 ac_prev
=build_alias
;;
849 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
850 build_alias
=$ac_optarg ;;
852 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
853 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
854 ac_prev
=cache_file
;;
855 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
856 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
857 cache_file
=$ac_optarg ;;
860 cache_file
=config.cache
;;
862 -datadir |
--datadir |
--datadi |
--datad)
864 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
865 datadir
=$ac_optarg ;;
867 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
868 |
--dataroo |
--dataro |
--datar)
869 ac_prev
=datarootdir
;;
870 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
871 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
872 datarootdir
=$ac_optarg ;;
874 -disable-* |
--disable-*)
875 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
878 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
879 { (exit 1); exit 1; }; }
880 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
881 eval enable_
$ac_feature=no
;;
883 -docdir |
--docdir |
--docdi |
--doc |
--do)
885 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
888 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
890 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
893 -enable-* |
--enable-*)
894 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
897 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
898 { (exit 1); exit 1; }; }
899 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
900 eval enable_
$ac_feature=\
$ac_optarg ;;
902 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
903 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
904 |
--exec |
--exe |
--ex)
905 ac_prev
=exec_prefix
;;
906 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
907 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
908 |
--exec=* |
--exe=* |
--ex=*)
909 exec_prefix
=$ac_optarg ;;
911 -gas |
--gas |
--ga |
--g)
912 # Obsolete; use --with-gas.
915 -help |
--help |
--hel |
--he |
-h)
917 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
918 ac_init_help
=recursive
;;
919 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
920 ac_init_help
=short
;;
922 -host |
--host |
--hos |
--ho)
923 ac_prev
=host_alias
;;
924 -host=* |
--host=* |
--hos=* |
--ho=*)
925 host_alias
=$ac_optarg ;;
927 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
929 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
931 htmldir
=$ac_optarg ;;
933 -includedir |
--includedir |
--includedi |
--included |
--include \
934 |
--includ |
--inclu |
--incl |
--inc)
935 ac_prev
=includedir
;;
936 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
937 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
938 includedir
=$ac_optarg ;;
940 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
942 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
943 infodir
=$ac_optarg ;;
945 -libdir |
--libdir |
--libdi |
--libd)
947 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
950 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
951 |
--libexe |
--libex |
--libe)
952 ac_prev
=libexecdir
;;
953 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
954 |
--libexe=* |
--libex=* |
--libe=*)
955 libexecdir
=$ac_optarg ;;
957 -localedir |
--localedir |
--localedi |
--localed |
--locale)
959 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
960 localedir
=$ac_optarg ;;
962 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
963 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
964 ac_prev
=localstatedir
;;
965 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
966 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
967 localstatedir
=$ac_optarg ;;
969 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
971 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
975 # Obsolete; use --without-fp.
978 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
979 |
--no-cr |
--no-c |
-n)
982 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
983 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
986 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
987 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
988 |
--oldin |
--oldi |
--old |
--ol |
--o)
989 ac_prev
=oldincludedir
;;
990 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
991 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
992 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
993 oldincludedir
=$ac_optarg ;;
995 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
997 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1000 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1001 |
--program-pre |
--program-pr |
--program-p)
1002 ac_prev
=program_prefix
;;
1003 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1004 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1005 program_prefix
=$ac_optarg ;;
1007 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1008 |
--program-suf |
--program-su |
--program-s)
1009 ac_prev
=program_suffix
;;
1010 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1011 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1012 program_suffix
=$ac_optarg ;;
1014 -program-transform-name |
--program-transform-name \
1015 |
--program-transform-nam |
--program-transform-na \
1016 |
--program-transform-n |
--program-transform- \
1017 |
--program-transform |
--program-transfor \
1018 |
--program-transfo |
--program-transf \
1019 |
--program-trans |
--program-tran \
1020 |
--progr-tra |
--program-tr |
--program-t)
1021 ac_prev
=program_transform_name
;;
1022 -program-transform-name=* |
--program-transform-name=* \
1023 |
--program-transform-nam=* |
--program-transform-na=* \
1024 |
--program-transform-n=* |
--program-transform-=* \
1025 |
--program-transform=* |
--program-transfor=* \
1026 |
--program-transfo=* |
--program-transf=* \
1027 |
--program-trans=* |
--program-tran=* \
1028 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1029 program_transform_name
=$ac_optarg ;;
1031 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1033 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1034 pdfdir
=$ac_optarg ;;
1036 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1038 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1041 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1042 |
-silent |
--silent |
--silen |
--sile |
--sil)
1045 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1047 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1049 sbindir
=$ac_optarg ;;
1051 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1052 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1053 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1055 ac_prev
=sharedstatedir
;;
1056 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1057 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1058 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1060 sharedstatedir
=$ac_optarg ;;
1062 -site |
--site |
--sit)
1064 -site=* |
--site=* |
--sit=*)
1067 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1069 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1070 srcdir
=$ac_optarg ;;
1072 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1073 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1074 ac_prev
=sysconfdir
;;
1075 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1076 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1077 sysconfdir
=$ac_optarg ;;
1079 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1080 ac_prev
=target_alias
;;
1081 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1082 target_alias
=$ac_optarg ;;
1084 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1087 -version |
--version |
--versio |
--versi |
--vers |
-V)
1088 ac_init_version
=: ;;
1091 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1094 { echo "$as_me: error: invalid package name: $ac_package" >&2
1095 { (exit 1); exit 1; }; }
1096 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1097 eval with_
$ac_package=\
$ac_optarg ;;
1099 -without-* |
--without-*)
1100 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1103 { echo "$as_me: error: invalid package name: $ac_package" >&2
1104 { (exit 1); exit 1; }; }
1105 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1106 eval with_
$ac_package=no
;;
1109 # Obsolete; use --with-x.
1112 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1113 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1114 ac_prev
=x_includes
;;
1115 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1116 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1117 x_includes
=$ac_optarg ;;
1119 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1120 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1121 ac_prev
=x_libraries
;;
1122 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1123 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1124 x_libraries
=$ac_optarg ;;
1126 -*) { echo "$as_me: error: unrecognized option: $ac_option
1127 Try \`$0 --help' for more information." >&2
1128 { (exit 1); exit 1; }; }
1132 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1135 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1136 { (exit 1); exit 1; }; }
1137 eval $ac_envvar=\
$ac_optarg
1138 export $ac_envvar ;;
1141 # FIXME: should be removed in autoconf 3.0.
1142 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1143 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1144 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1145 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1151 if test -n "$ac_prev"; then
1152 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1153 { echo "$as_me: error: missing argument to $ac_option" >&2
1154 { (exit 1); exit 1; }; }
1157 # Be sure to have absolute directory names.
1158 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1159 datadir sysconfdir sharedstatedir localstatedir includedir \
1160 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1161 libdir localedir mandir
1163 eval ac_val
=\$
$ac_var
1165 [\\/$
]* | ?
:[\\/]* ) continue;;
1166 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1168 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1169 { (exit 1); exit 1; }; }
1172 # There might be people who depend on the old broken behavior: `$host'
1173 # used to hold the argument of --host etc.
1174 # FIXME: To remove some day.
1177 target
=$target_alias
1179 # FIXME: To remove some day.
1180 if test "x$host_alias" != x
; then
1181 if test "x$build_alias" = x
; then
1182 cross_compiling
=maybe
1183 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1184 If a cross compiler is detected then cross compile mode will be used." >&2
1185 elif test "x$build_alias" != "x$host_alias"; then
1191 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1193 test "$silent" = yes && exec 6>/dev
/null
1196 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1197 ac_ls_di
=`ls -di .` &&
1198 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1199 { echo "$as_me: error: Working directory cannot be determined" >&2
1200 { (exit 1); exit 1; }; }
1201 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1202 { echo "$as_me: error: pwd does not report name of working directory" >&2
1203 { (exit 1); exit 1; }; }
1206 # Find the source files, if location was not specified.
1207 if test -z "$srcdir"; then
1208 ac_srcdir_defaulted
=yes
1209 # Try the directory containing this script, then the parent directory.
1210 ac_confdir
=`$as_dirname -- "$0" ||
1211 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1212 X"$0" : 'X\(//\)[^/]' \| \
1213 X"$0" : 'X\(//\)$' \| \
1214 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234 if test ! -r "$srcdir/$ac_unique_file"; then
1238 ac_srcdir_defaulted
=no
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1241 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1242 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1243 { (exit 1); exit 1; }; }
1245 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1247 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1248 { (exit 1); exit 1; }; }
1250 # When building in place, set srcdir=.
1251 if test "$ac_abs_confdir" = "$ac_pwd"; then
1254 # Remove unnecessary trailing slashes from srcdir.
1255 # Double slashes in file names in object file debugging info
1256 # mess up M-x gdb in Emacs.
1258 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1260 for ac_var
in $ac_precious_vars; do
1261 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1262 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1263 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1264 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1268 # Report the --help message.
1270 if test "$ac_init_help" = "long"; then
1271 # Omit some internal or obsolete options to make the list less imposing.
1272 # This message is too long to be a string in the A/UX 3.1 sh.
1274 \`configure' configures this package to adapt to many kinds of systems.
1276 Usage: $0 [OPTION]... [VAR=VALUE]...
1278 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1279 VAR=VALUE. See below for descriptions of some of the useful variables.
1281 Defaults for the options are specified in brackets.
1284 -h, --help display this help and exit
1285 --help=short display options specific to this package
1286 --help=recursive display the short help of all the included packages
1287 -V, --version display version information and exit
1288 -q, --quiet, --silent do not print \`checking...' messages
1289 --cache-file=FILE cache test results in FILE [disabled]
1290 -C, --config-cache alias for \`--cache-file=config.cache'
1291 -n, --no-create do not create output files
1292 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1294 Installation directories:
1295 --prefix=PREFIX install architecture-independent files in PREFIX
1296 [$ac_default_prefix]
1297 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1300 By default, \`make install' will install all the files in
1301 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1302 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1303 for instance \`--prefix=\$HOME'.
1305 For better control, use the options below.
1307 Fine tuning of the installation directories:
1308 --bindir=DIR user executables [EPREFIX/bin]
1309 --sbindir=DIR system admin executables [EPREFIX/sbin]
1310 --libexecdir=DIR program executables [EPREFIX/libexec]
1311 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1312 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1313 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1314 --libdir=DIR object code libraries [EPREFIX/lib]
1315 --includedir=DIR C header files [PREFIX/include]
1316 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1317 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1318 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1319 --infodir=DIR info documentation [DATAROOTDIR/info]
1320 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1321 --mandir=DIR man documentation [DATAROOTDIR/man]
1322 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1323 --htmldir=DIR html documentation [DOCDIR]
1324 --dvidir=DIR dvi documentation [DOCDIR]
1325 --pdfdir=DIR pdf documentation [DOCDIR]
1326 --psdir=DIR ps documentation [DOCDIR]
1332 --x-includes=DIR X include files are
in DIR
1333 --x-libraries=DIR X library files are
in DIR
1336 --build=BUILD configure
for building on BUILD
[guessed
]
1337 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1341 if test -n "$ac_init_help"; then
1346 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1347 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1348 --disable-fastalloc omit fast allocator
for small objects
1349 --enable-experimental support new style rewriting code
1350 --enable-macosx-extensions support new style rewriting code
1351 --enable-qt replace X11 by Qt interface
1352 --enable-cocoa replace X11 by Cocoa interface
1353 --enable-debug=ARG
install a debugging
enable executable
-ggdb
1354 --enable-assert exit on failed assertions
in code
1355 --enable-warnings print warning messages during compilation
1356 --enable-optimize=ARG compile with optimizations guessed
1359 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1360 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1361 --with-x use the X Window System
1362 --with-iconv=DIR where to
find iconv system
1363 --with-freetype=ARG with freetype support ARG
=linked
1364 --with-cairo=ARG with cairo support ARG
=no
1365 --with-imlib2=ARG with imlib2 support ARG
=no
1366 --with-axel=ARG with axel support ARG
=no
1367 --with-qt Path to Qt
[Look
in PATH and
/usr
/local
/Trolltech
]
1369 Some influential environment variables
:
1370 CC C compiler
command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1373 nonstandard directory
<lib dir
>
1374 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1375 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1376 you have headers
in a nonstandard directory
<include dir
>
1377 CXX C
++ compiler
command
1378 CXXFLAGS C
++ compiler flags
1379 CXXCPP C
++ preprocessor
1380 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1382 TMPDIR A temporary directory with
write access
[/tmp
]
1384 Use these variables to override the choices made by
`configure' or to help
1385 it to find libraries and programs with nonstandard names/locations.
1391 if test "$ac_init_help" = "recursive"; then
1392 # If there are subdirs, report their specific --help.
1393 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1394 test -d "$ac_dir" || continue
1398 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1401 # A ".." for each directory in $ac_dir_suffix.
1402 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1403 case $ac_top_builddir_sub in
1404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1408 ac_abs_top_builddir=$ac_pwd
1409 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1410 # for backward compatibility:
1411 ac_top_builddir=$ac_top_build_prefix
1414 .) # We are building in place.
1416 ac_top_srcdir=$ac_top_builddir_sub
1417 ac_abs_top_srcdir=$ac_pwd ;;
1418 [\\/]* | ?:[\\/]* ) # Absolute name.
1419 ac_srcdir=$srcdir$ac_dir_suffix;
1420 ac_top_srcdir=$srcdir
1421 ac_abs_top_srcdir=$srcdir ;;
1423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1424 ac_top_srcdir=$ac_top_build_prefix$srcdir
1425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1427 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1429 cd "$ac_dir" || { ac_status=$?; continue; }
1430 # Check for guested configure.
1431 if test -f "$ac_srcdir/configure.gnu"; then
1433 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1434 elif test -f "$ac_srcdir/configure"; then
1436 $SHELL "$ac_srcdir/configure" --help=recursive
1438 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1440 cd "$ac_pwd" || { ac_status=$?; break; }
1444 test -n "$ac_init_help" && exit $ac_status
1445 if $ac_init_version; then
1448 generated by GNU Autoconf 2.61
1450 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1451 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1452 This configure script is free software; the Free Software Foundation
1453 gives unlimited permission to copy, distribute and modify it.
1457 cat >config.log <<_ACEOF
1458 This file contains any messages produced by compilers while
1459 running configure, to aid debugging if configure makes a mistake.
1461 It was created by $as_me, which was
1462 generated by GNU Autoconf 2.61. Invocation command line was
1474 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1475 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1476 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1477 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1478 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1480 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1481 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1483 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1484 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1485 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1486 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1487 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1488 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1489 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497 test -z "$as_dir" && as_dir=.
1498 echo "PATH: $as_dir"
1514 # Keep a trace of the command line.
1515 # Strip out --no-create and --no-recursion so they do not pile up.
1516 # Strip out --silent because we don't want to record it for future runs.
1517 # Also quote any args containing shell meta-characters.
1518 # Make two passes to allow for proper duplicate-argument suppression.
1522 ac_must_keep_next=false
1528 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1530 | -silent | --silent | --silen | --sile | --sil)
1533 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1536 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1538 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1539 if test $ac_must_keep_next = true; then
1540 ac_must_keep_next=false # Got value, back to normal.
1543 *=* | --config-cache | -C | -disable-* | --disable-* \
1544 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1545 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1546 | -with-* | --with-* | -without-* | --without-* | --x)
1547 case "$ac_configure_args0 " in
1548 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1551 -* ) ac_must_keep_next=true ;;
1554 ac_configure_args="$ac_configure_args '$ac_arg'"
1559 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1560 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1562 # When interrupted or exit'd, cleanup temporary files, and complete
1563 # config.log. We remove comments because anyway the quotes in there
1564 # would cause problems or look ugly.
1565 # WARNING: Use '\'' to represent an apostrophe within the trap.
1566 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1567 trap 'exit_status=$?
1568 # Save into config.log some information that might help in debugging.
1573 ## ---------------- ##
1574 ## Cache variables. ##
1575 ## ---------------- ##
1578 # The following way of writing the cache mishandles newlines in values,
1580 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1581 eval ac_val=\$$ac_var
1585 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1586 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1589 _ | IFS | as_nl) ;; #(
1590 *) $as_unset $ac_var ;;
1595 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1596 *${as_nl}ac_space=\ *)
1598 "s/'\''/'\''\\\\'\'''\''/g;
1599 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1610 ## ----------------- ##
1611 ## Output variables. ##
1612 ## ----------------- ##
1615 for ac_var in $ac_subst_vars
1617 eval ac_val=\$$ac_var
1619 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1621 echo "$ac_var='\''$ac_val'\''"
1625 if test -n "$ac_subst_files"; then
1627 ## ------------------- ##
1628 ## File substitutions. ##
1629 ## ------------------- ##
1632 for ac_var in $ac_subst_files
1634 eval ac_val=\$$ac_var
1636 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1638 echo "$ac_var='\''$ac_val'\''"
1643 if test -s confdefs.h; then
1653 test "$ac_signal" != 0 &&
1654 echo "$as_me: caught signal $ac_signal"
1655 echo "$as_me: exit $exit_status"
1657 rm -f core *.core core.conftest.* &&
1658 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1661 for ac_signal in 1 2 13 15; do
1662 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1666 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1667 rm -f -r conftest* confdefs.h
1669 # Predefined preprocessor variables.
1671 cat >>confdefs.h <<_ACEOF
1672 #define PACKAGE_NAME "$PACKAGE_NAME"
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_STRING "$PACKAGE_STRING"
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1696 # Let the site file select an alternate cache file if it wants to.
1697 # Prefer explicitly selected file to automatically selected ones.
1698 if test -n "$CONFIG_SITE"; then
1699 set x "$CONFIG_SITE"
1700 elif test "x$prefix" != xNONE; then
1701 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1703 set x "$ac_default_prefix/share/config.site" \
1704 "$ac_default_prefix/etc/config.site"
1709 if test -r "$ac_site_file"; then
1710 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1711 echo "$as_me: loading site script $ac_site_file" >&6;}
1712 sed 's/^/| /' "$ac_site_file" >&5
1717 if test -r "$cache_file"; then
1718 # Some versions of bash will fail to source /dev/null (special
1719 # files actually), so we avoid doing that.
1720 if test -f "$cache_file"; then
1721 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1722 echo "$as_me: loading cache $cache_file" >&6;}
1724 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1725 *) . "./$cache_file";;
1729 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1730 echo "$as_me: creating cache $cache_file" >&6;}
1734 # Check that the precious variables saved in the cache have kept the same
1736 ac_cache_corrupted=false
1737 for ac_var in $ac_precious_vars; do
1738 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1739 eval ac_new_set=\$ac_env_${ac_var}_set
1740 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1741 eval ac_new_val=\$ac_env_${ac_var}_value
1742 case $ac_old_set,$ac_new_set in
1744 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1745 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1746 ac_cache_corrupted=: ;;
1748 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1749 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1750 ac_cache_corrupted=: ;;
1753 if test "x$ac_old_val" != "x$ac_new_val"; then
1754 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1755 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1756 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1757 echo "$as_me: former value
: $ac_old_val" >&2;}
1758 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1759 echo "$as_me: current value
: $ac_new_val" >&2;}
1760 ac_cache_corrupted=:
1763 # Pass precious variables to config.status.
1764 if test "$ac_new_set" = set; then
1766 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1767 *) ac_arg=$ac_var=$ac_new_val ;;
1769 case " $ac_configure_args " in
1770 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1771 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1775 if $ac_cache_corrupted; then
1776 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1777 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1778 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1779 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1780 { (exit 1); exit 1; }; }
1800 ac_cpp='$CPP $CPPFLAGS'
1801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1806 ac_config_headers="$ac_config_headers src/System/config.h:src/System/config.in"
1810 DEVEL_VERSION="1.0.7.2"
1812 STABLE_VERSION="1.0.7"
1814 WINDOWS_VERSION="1.0.5"
1822 #--------------------------------------------------------------------
1823 # Checks for C++ compiler
1824 #--------------------------------------------------------------------
1827 ac_cpp='$CPP $CPPFLAGS'
1828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1831 if test -n "$ac_tool_prefix"; then
1832 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1833 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1836 if test "${ac_cv_prog_CC+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1839 if test -n "$CC"; then
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1849 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 if test -n "$CC"; then
1861 { echo "$as_me:$LINENO: result: $CC" >&5
1862 echo "${ECHO_T}$CC" >&6; }
1864 { echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6; }
1870 if test -z "$ac_cv_prog_CC"; then
1872 # Extract the first word of "gcc", so it can be a program name with args.
1873 set dummy gcc; ac_word=$2
1874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1876 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 if test -n "$ac_ct_CC"; then
1880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1889 ac_cv_prog_ac_ct_CC="gcc"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1900 if test -n "$ac_ct_CC"; then
1901 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1902 echo "${ECHO_T}$ac_ct_CC" >&6; }
1904 { echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6; }
1908 if test "x$ac_ct_CC" = x; then
1911 case $cross_compiling:$ac_tool_warned in
1913 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1914 whose name does not start with the host triplet. If you think this
1915 configuration is useful to you, please write to autoconf@gnu.org." >&5
1916 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1917 whose name does not start with the host triplet. If you think this
1918 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1919 ac_tool_warned=yes ;;
1927 if test -z "$CC"; then
1928 if test -n "$ac_tool_prefix"; then
1929 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1930 set dummy ${ac_tool_prefix}cc; ac_word=$2
1931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1933 if test "${ac_cv_prog_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 if test -n "$CC"; then
1937 ac_cv_prog_CC="$CC" # Let the user override the test.
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 test -z "$as_dir" && as_dir=.
1944 for ac_exec_ext in '' $ac_executable_extensions; do
1945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1946 ac_cv_prog_CC="${ac_tool_prefix}cc"
1947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 if test -n "$CC"; then
1958 { echo "$as_me:$LINENO: result: $CC" >&5
1959 echo "${ECHO_T}$CC" >&6; }
1961 { echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6; }
1968 if test -z "$CC"; then
1969 # Extract the first word of "cc", so it can be a program name with args.
1970 set dummy cc; ac_word=$2
1971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1973 if test "${ac_cv_prog_CC+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 if test -n "$CC"; then
1977 ac_cv_prog_CC="$CC" # Let the user override the test.
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1987 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1988 ac_prog_rejected=yes
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 if test $ac_prog_rejected = yes; then
2000 # We found a bogon in the path, so make sure we never use it.
2001 set dummy $ac_cv_prog_CC
2003 if test $# != 0; then
2004 # We chose a different compiler from the bogus one.
2005 # However, it has the same basename, so the bogon will be chosen
2006 # first if we set CC to just the basename; use the full file name.
2008 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2014 if test -n "$CC"; then
2015 { echo "$as_me:$LINENO: result: $CC" >&5
2016 echo "${ECHO_T}$CC" >&6; }
2018 { echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6; }
2024 if test -z "$CC"; then
2025 if test -n "$ac_tool_prefix"; then
2026 for ac_prog in cl.exe
2028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2032 if test "${ac_cv_prog_CC+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 if test -n "$CC"; then
2036 ac_cv_prog_CC="$CC" # Let the user override the test.
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2045 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 if test -n "$CC"; then
2057 { echo "$as_me:$LINENO: result: $CC" >&5
2058 echo "${ECHO_T}$CC" >&6; }
2060 { echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6; }
2065 test -n "$CC" && break
2068 if test -z "$CC"; then
2070 for ac_prog in cl.exe
2072 # Extract the first word of "$ac_prog", so it can be a program name with args.
2073 set dummy $ac_prog; ac_word=$2
2074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 if test -n "$ac_ct_CC"; then
2080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2089 ac_cv_prog_ac_ct_CC="$ac_prog"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100 if test -n "$ac_ct_CC"; then
2101 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102 echo "${ECHO_T}$ac_ct_CC" >&6; }
2104 { echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6; }
2109 test -n "$ac_ct_CC" && break
2112 if test "x$ac_ct_CC" = x; then
2115 case $cross_compiling:$ac_tool_warned in
2117 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2118 whose name does not start with the host triplet. If you think this
2119 configuration is useful to you, please write to autoconf@gnu.org." >&5
2120 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2121 whose name does not start with the host triplet. If you think this
2122 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2123 ac_tool_warned=yes ;;
2132 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2133 See \`config.log
' for more details." >&5
2134 echo "$as_me: error: no acceptable C compiler found in \$PATH
2135 See \`config.log' for more details.
" >&2;}
2136 { (exit 1); exit 1; }; }
2138 # Provide some information about the compiler.
2139 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2140 ac_compiler=`set X $ac_compile; echo $2`
2141 { (ac_try="$ac_compiler --version >&5"
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2147 (eval "$ac_compiler --version >&5") 2>&5
2149 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2150 (exit $ac_status); }
2151 { (ac_try="$ac_compiler -v >&5"
2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154 *) ac_try_echo=$ac_try;;
2156 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2157 (eval "$ac_compiler -v >&5") 2>&5
2159 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2160 (exit $ac_status); }
2161 { (ac_try="$ac_compiler -V >&5"
2163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164 *) ac_try_echo=$ac_try;;
2166 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2167 (eval "$ac_compiler -V >&5") 2>&5
2169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2170 (exit $ac_status); }
2172 cat >conftest.$ac_ext <<_ACEOF
2175 cat confdefs.h >>conftest.$ac_ext
2176 cat >>conftest.$ac_ext <<_ACEOF
2177 /* end confdefs.h. */
2187 ac_clean_files_save=$ac_clean_files
2188 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2189 # Try to create an executable without -o first, disregard a.out.
2190 # It will help us diagnose broken compilers, and finding out an intuition
2192 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2193 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2194 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2196 # List of possible output files, starting from the most likely.
2197 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2198 # only as a last resort. b.out is created by i960 compilers.
2199 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2201 # The IRIX 6 linker writes into existing files which may not be
2202 # executable, retaining their permissions. Remove them first so a
2203 # subsequent execution test works.
2205 for ac_file in $ac_files
2208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2209 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2214 if { (ac_try="$ac_link_default"
2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217 *) ac_try_echo=$ac_try;;
2219 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2220 (eval "$ac_link_default") 2>&5
2222 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2223 (exit $ac_status); }; then
2224 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2225 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2226 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2227 # so that the user can short-circuit this test for compilers unknown to
2229 for ac_file in $ac_files ''
2231 test -f "$ac_file" || continue
2233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2236 # We found the default executable, but exeext='' is most
2240 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2242 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2244 # We set ac_cv_exeext here because the later test for it is not
2245 # safe: cross compilers may not add the suffix if given an `-o'
2246 # argument, so we may need to know it at that point already.
2247 # Even if this section looks crufty: it has the advantage of
2254 test "$ac_cv_exeext" = no && ac_cv_exeext=
2260 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2261 echo "${ECHO_T}$ac_file" >&6; }
2262 if test -z "$ac_file"; then
2263 echo "$as_me: failed program was
:" >&5
2264 sed 's/^/| /' conftest.$ac_ext >&5
2266 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2267 See \
`config.log' for more details." >&5
2268 echo "$as_me: error: C compiler cannot create executables
2269 See \`config.log
' for more details." >&2;}
2270 { (exit 77); exit 77; }; }
2273 ac_exeext=$ac_cv_exeext
2275 # Check that the compiler produces executables we can run. If not, either
2276 # the compiler is broken, or we cross compile.
2277 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2278 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2279 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2280 # If not cross compiling, check that we can run a simple program.
2281 if test "$cross_compiling" != yes; then
2282 if { ac_try='.
/$ac_file'
2283 { (case "(($ac_try" in
2284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2285 *) ac_try_echo=$ac_try;;
2287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2288 (eval "$ac_try") 2>&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; }; then
2294 if test "$cross_compiling" = maybe; then
2297 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2298 If you meant to cross compile, use \`--host'.
2299 See \
`config.log' for more details." >&5
2300 echo "$as_me: error: cannot run C compiled programs.
2301 If you meant to cross compile, use \`--host'.
2302 See \`config.log' for more details.
" >&2;}
2303 { (exit 1); exit 1; }; }
2307 { echo "$as_me:$LINENO: result
: yes" >&5
2308 echo "${ECHO_T}yes" >&6; }
2310 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2311 ac_clean_files=$ac_clean_files_save
2312 # Check that the compiler produces executables we can run. If not, either
2313 # the compiler is broken, or we cross compile.
2314 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2315 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2316 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2317 echo "${ECHO_T}$cross_compiling" >&6; }
2319 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2320 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2321 if { (ac_try="$ac_link"
2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324 *) ac_try_echo=$ac_try;;
2326 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2327 (eval "$ac_link") 2>&5
2329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2330 (exit $ac_status); }; then
2331 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2332 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2333 # work properly (i.e., refer to `conftest.exe'), while it won't with
2335 for ac_file in conftest.exe conftest conftest.*; do
2336 test -f "$ac_file" || continue
2338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2339 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2345 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2346 See \
`config.log' for more details." >&5
2347 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2348 See \`config.log
' for more details." >&2;}
2349 { (exit 1); exit 1; }; }
2352 rm -f conftest$ac_cv_exeext
2353 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2354 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2356 rm -f conftest.$ac_ext
2357 EXEEXT=$ac_cv_exeext
2359 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2360 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2361 if test "${ac_cv_objext+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 cat >conftest.$ac_ext <<_ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2379 rm -f conftest.o conftest.obj
2380 if { (ac_try="$ac_compile"
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386 (eval "$ac_compile") 2>&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; then
2390 for ac_file in conftest.o conftest.obj conftest.*; do
2391 test -f "$ac_file" || continue;
2393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2394 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2399 echo "$as_me: failed program was:" >&5
2400 sed 's
/^
/|
/' conftest.$ac_ext >&5
2402 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2403 See \`config.log' for more details.
" >&5
2404 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2405 See \
`config.log' for more details." >&2;}
2406 { (exit 1); exit 1; }; }
2409 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2411 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2412 echo "${ECHO_T}$ac_cv_objext" >&6; }
2413 OBJEXT=$ac_cv_objext
2415 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2416 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2417 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 cat >conftest.$ac_ext <<_ACEOF
2423 cat confdefs.h >>conftest.$ac_ext
2424 cat >>conftest.$ac_ext <<_ACEOF
2425 /* end confdefs.h. */
2438 rm -f conftest.$ac_objext
2439 if { (ac_try="$ac_compile"
2441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2442 *) ac_try_echo
=$ac_try;;
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_compile") 2>conftest.er1
2447 grep -v '^ *+' conftest.er1
>conftest.err
2449 cat conftest.err
>&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } && {
2452 test -z "$ac_c_werror_flag" ||
2453 test ! -s conftest.err
2454 } && test -s conftest.
$ac_objext; then
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.
$ac_ext >&5
2463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2464 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2467 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2468 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2469 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2470 ac_test_CFLAGS
=${CFLAGS+set}
2471 ac_save_CFLAGS
=$CFLAGS
2472 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2473 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_cc_g+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 ac_save_c_werror_flag
=$ac_c_werror_flag
2478 ac_c_werror_flag
=yes
2481 cat >conftest.
$ac_ext <<_ACEOF
2484 cat confdefs.h
>>conftest.
$ac_ext
2485 cat >>conftest.
$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2496 rm -f conftest.
$ac_objext
2497 if { (ac_try
="$ac_compile"
2499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503 (eval "$ac_compile") 2>conftest.er1
2505 grep -v '^ *+' conftest.er1 >conftest.err
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } && {
2510 test -z "$ac_c_werror_flag" ||
2511 test ! -s conftest.err
2512 } && test -s conftest.$ac_objext; then
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2519 cat >conftest.$ac_ext <<_ACEOF
2522 cat confdefs.h >>conftest.$ac_ext
2523 cat >>conftest.$ac_ext <<_ACEOF
2524 /* end confdefs.h. */
2534 rm -f conftest.$ac_objext
2535 if { (ac_try="$ac_compile"
2537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2538 *) ac_try_echo
=$ac_try;;
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_compile") 2>conftest.er1
2543 grep -v '^ *+' conftest.er1
>conftest.err
2545 cat conftest.err
>&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); } && {
2548 test -z "$ac_c_werror_flag" ||
2549 test ! -s conftest.err
2550 } && test -s conftest.
$ac_objext; then
2553 echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.
$ac_ext >&5
2556 ac_c_werror_flag
=$ac_save_c_werror_flag
2558 cat >conftest.
$ac_ext <<_ACEOF
2561 cat confdefs.h
>>conftest.
$ac_ext
2562 cat >>conftest.
$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2573 rm -f conftest.
$ac_objext
2574 if { (ac_try
="$ac_compile"
2576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_compile") 2>conftest.er1
2582 grep -v '^ *+' conftest.er1 >conftest.err
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } && {
2587 test -z "$ac_c_werror_flag" ||
2588 test ! -s conftest.err
2589 } && test -s conftest.$ac_objext; then
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 ac_c_werror_flag=$ac_save_c_werror_flag
2607 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2608 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2609 if test "$ac_test_CFLAGS" = set; then
2610 CFLAGS=$ac_save_CFLAGS
2611 elif test $ac_cv_prog_cc_g = yes; then
2612 if test "$GCC" = yes; then
2618 if test "$GCC" = yes; then
2624 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2625 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2626 if test "${ac_cv_prog_cc_c89+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 ac_cv_prog_cc_c89=no
2631 cat >conftest.$ac_ext <<_ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2639 #include <sys/types.h>
2640 #include <sys/stat.h>
2641 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2642 struct buf { int x; };
2643 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2644 static char *e (p, i)
2650 static char *f (char * (*g) (char **, int), char **p, ...)
2655 s = g (p, va_arg (v,int));
2660 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2661 function prototypes and stuff, but not '\xHH' hex character constants.
2662 These don't provoke an error unfortunately, instead are silently treated
2663 as 'x'. The following induces an error, until -std is added to get
2664 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2665 array size at least. It's necessary to write '\x00'==0 to get something
2666 that's true only with -std. */
2667 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2669 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2670 inside strings and character constants. */
2672 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2674 int test (int i, double x);
2675 struct s1 {int (*f) (int a);};
2676 struct s2 {int (*f) (double a);};
2677 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2683 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2688 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2689 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2691 CC="$ac_save_CC $ac_arg"
2692 rm -f conftest.$ac_objext
2693 if { (ac_try="$ac_compile"
2695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2696 *) ac_try_echo
=$ac_try;;
2698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699 (eval "$ac_compile") 2>conftest.er1
2701 grep -v '^ *+' conftest.er1
>conftest.err
2703 cat conftest.err
>&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } && {
2706 test -z "$ac_c_werror_flag" ||
2707 test ! -s conftest.err
2708 } && test -s conftest.
$ac_objext; then
2709 ac_cv_prog_cc_c89
=$ac_arg
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.
$ac_ext >&5
2717 rm -f core conftest.err conftest.
$ac_objext
2718 test "x$ac_cv_prog_cc_c89" != "xno" && break
2720 rm -f conftest.
$ac_ext
2725 case "x$ac_cv_prog_cc_c89" in
2727 { echo "$as_me:$LINENO: result: none needed" >&5
2728 echo "${ECHO_T}none needed" >&6; } ;;
2730 { echo "$as_me:$LINENO: result: unsupported" >&5
2731 echo "${ECHO_T}unsupported" >&6; } ;;
2733 CC
="$CC $ac_cv_prog_cc_c89"
2734 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2735 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2740 ac_cpp
='$CPP $CPPFLAGS'
2741 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2746 ac_cpp
='$CXXCPP $CPPFLAGS'
2747 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2750 if test -z "$CXX"; then
2751 if test -n "$CCC"; then
2754 if test -n "$ac_tool_prefix"; then
2755 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2758 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2761 if test "${ac_cv_prog_CXX+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 if test -n "$CXX"; then
2765 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2771 test -z "$as_dir" && as_dir
=.
2772 for ac_exec_ext
in '' $ac_executable_extensions; do
2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 if test -n "$CXX"; then
2786 { echo "$as_me:$LINENO: result: $CXX" >&5
2787 echo "${ECHO_T}$CXX" >&6; }
2789 { echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6; }
2794 test -n "$CXX" && break
2797 if test -z "$CXX"; then
2799 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2801 # Extract the first word of "$ac_prog", so it can be a program name with args.
2802 set dummy
$ac_prog; ac_word
=$2
2803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2805 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 if test -n "$ac_ct_CXX"; then
2809 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2811 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2815 test -z "$as_dir" && as_dir
=.
2816 for ac_exec_ext
in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2829 if test -n "$ac_ct_CXX"; then
2830 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2831 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2833 { echo "$as_me:$LINENO: result: no" >&5
2834 echo "${ECHO_T}no" >&6; }
2838 test -n "$ac_ct_CXX" && break
2841 if test "x$ac_ct_CXX" = x
; then
2844 case $cross_compiling:$ac_tool_warned in
2846 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2847 whose name does not start with the host triplet. If you think this
2848 configuration is useful to you, please write to autoconf@gnu.org." >&5
2849 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2850 whose name does not start with the host triplet. If you think this
2851 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2852 ac_tool_warned
=yes ;;
2860 # Provide some information about the compiler.
2861 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2862 ac_compiler
=`set X $ac_compile; echo $2`
2863 { (ac_try
="$ac_compiler --version >&5"
2865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869 (eval "$ac_compiler --version >&5") 2>&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }
2873 { (ac_try="$ac_compiler -v >&5"
2875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2876 *) ac_try_echo
=$ac_try;;
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_compiler -v >&5") 2>&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }
2883 { (ac_try
="$ac_compiler -V >&5"
2885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler -V >&5") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2894 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2895 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2896 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 cat >conftest.$ac_ext <<_ACEOF
2902 cat confdefs.h >>conftest.$ac_ext
2903 cat >>conftest.$ac_ext <<_ACEOF
2904 /* end confdefs.h. */
2917 rm -f conftest.$ac_objext
2918 if { (ac_try="$ac_compile"
2920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2921 *) ac_try_echo
=$ac_try;;
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_compile") 2>conftest.er1
2926 grep -v '^ *+' conftest.er1
>conftest.err
2928 cat conftest.err
>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } && {
2931 test -z "$ac_cxx_werror_flag" ||
2932 test ! -s conftest.err
2933 } && test -s conftest.
$ac_objext; then
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.
$ac_ext >&5
2942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2943 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2946 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2947 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2948 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2949 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2950 ac_save_CXXFLAGS
=$CXXFLAGS
2951 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2952 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_cxx_g+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
2957 ac_cxx_werror_flag
=yes
2960 cat >conftest.
$ac_ext <<_ACEOF
2963 cat confdefs.h
>>conftest.
$ac_ext
2964 cat >>conftest.
$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2975 rm -f conftest.
$ac_objext
2976 if { (ac_try
="$ac_compile"
2978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compile") 2>conftest.er1
2984 grep -v '^ *+' conftest.er1 >conftest.err
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } && {
2989 test -z "$ac_cxx_werror_flag" ||
2990 test ! -s conftest.err
2991 } && test -s conftest.$ac_objext; then
2992 ac_cv_prog_cxx_g=yes
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2998 cat >conftest.$ac_ext <<_ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3013 rm -f conftest.$ac_objext
3014 if { (ac_try="$ac_compile"
3016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3017 *) ac_try_echo
=$ac_try;;
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_compile") 2>conftest.er1
3022 grep -v '^ *+' conftest.er1
>conftest.err
3024 cat conftest.err
>&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } && {
3027 test -z "$ac_cxx_werror_flag" ||
3028 test ! -s conftest.err
3029 } && test -s conftest.
$ac_objext; then
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.
$ac_ext >&5
3035 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3037 cat >conftest.
$ac_ext <<_ACEOF
3040 cat confdefs.h
>>conftest.
$ac_ext
3041 cat >>conftest.
$ac_ext <<_ACEOF
3042 /* end confdefs.h. */
3052 rm -f conftest.
$ac_objext
3053 if { (ac_try
="$ac_compile"
3055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_compile") 2>conftest.er1
3061 grep -v '^ *+' conftest.er1 >conftest.err
3063 cat conftest.err >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } && {
3066 test -z "$ac_cxx_werror_flag" ||
3067 test ! -s conftest.err
3068 } && test -s conftest.$ac_objext; then
3069 ac_cv_prog_cxx_g=yes
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3086 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3087 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3088 if test "$ac_test_CXXFLAGS" = set; then
3089 CXXFLAGS=$ac_save_CXXFLAGS
3090 elif test $ac_cv_prog_cxx_g = yes; then
3091 if test "$GXX" = yes; then
3097 if test "$GXX" = yes; then
3104 ac_cpp='$CPP $CPPFLAGS'
3105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110 ac_cpp='$CXXCPP $CPPFLAGS'
3111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3117 { echo "$as_me:$LINENO: checking whether GNU C++ compiler is default" >&5
3118 echo $ECHO_N "checking whether GNU C++ compiler is default... $ECHO_C" >&6; }
3121 GCC_VERSION=`$CC -dumpversion`
3122 GXX_VERSION=`$CXX -dumpversion`
3123 { echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6; }
3125 { echo "$as_me:$LINENO: checking version of gcc" >&5
3126 echo $ECHO_N "checking version of gcc... $ECHO_C" >&6; }
3127 { echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
3128 echo "${ECHO_T}$GCC_VERSION" >&6; }
3129 { echo "$as_me:$LINENO: checking version of g++" >&5
3130 echo $ECHO_N "checking version of g++... $ECHO_C" >&6; }
3131 { echo "$as_me:$LINENO: result: $GXX_VERSION" >&5
3132 echo "${ECHO_T}$GXX_VERSION" >&6; }
3133 case "$GXX_VERSION" in
3135 echo "old style GNU compiler"
3136 cat >>confdefs.h <<\_ACEOF
3137 #define OLD_GNU_COMPILER
3146 { echo "$as_me:$LINENO: result: no" >&5
3147 echo "${ECHO_T}no" >&6; }
3148 { echo "$as_me:$LINENO: WARNING: cannot find GNU C++ compiler" >&5
3149 echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
3153 #--------------------------------------------------------------------
3155 #--------------------------------------------------------------------
3158 ## The GUILE_FLAGS macro.
3159 ## First, let's just see if we can find Guile at all.
3160 { echo "$as_me:$LINENO: checking for Guile" >&5
3161 echo $ECHO_N "checking for Guile... $ECHO_C" >&6; }
3162 guile-config link > /dev/null || {
3163 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
3166 GUILE_ORIGINAL_CFLAGS="`guile-config compile
`"
3167 GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
3168 GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
3169 GUILE_LDFLAGS="`guile-config link
`"
3170 GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir
` -lguile -lreadline -ltermcap"
3173 { echo "$as_me:$LINENO: result: yes" >&5
3174 echo "${ECHO_T}yes" >&6; }
3176 { echo "$as_me:$LINENO: checking version of guile" >&5
3177 echo $ECHO_N "checking version of guile... $ECHO_C" >&6; }
3178 GUILE_VERSION=`guile
--version |
grep 'Guile \([0-9]\)' |
sed 's/Guile \([0-9]*\)/\1/'`
3179 { echo "$as_me:$LINENO: result: $GUILE_VERSION" >&5
3180 echo "${ECHO_T}$GUILE_VERSION" >&6; }
3182 case "$GUILE_VERSION" in
3183 1.0* | 1.1* | 1.2* | 1.3* | 1.4* | 1.5*)
3184 CONFIG_GUILE_SERIAL="A"
3187 CONFIG_GUILE_SERIAL="B"
3190 CONFIG_GUILE_SERIAL="C"
3195 #--------------------------------------------------------------------
3196 # Checks for standard functionality
3197 #--------------------------------------------------------------------
3201 { echo "$as_me:$LINENO: checking for C++-compatible X header files" >&5
3202 echo $ECHO_N "checking for C++-compatible X header files... $ECHO_C" >&6; }
3203 ac_save_cppflags="$CPPFLAGS"
3204 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3205 cat >conftest.$ac_ext <<_ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3211 #include <X11/Xlib.h>
3212 #include <X11/Xutil.h>
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3225 *) ac_try_echo
=$ac_try;;
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_compile") 2>conftest.er1
3230 grep -v '^ *+' conftest.er1
>conftest.err
3232 cat conftest.err
>&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } && {
3235 test -z "$ac_cxx_werror_flag" ||
3236 test ! -s conftest.err
3237 } && test -s conftest.
$ac_objext; then
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.
$ac_ext >&5
3247 /usr
/X11R
6/include \
3248 /usr
/X11R
5/include \
3249 /usr
/X11R
4/include \
3252 /usr
/include
/X11R6 \
3253 /usr
/include
/X11R5 \
3254 /usr
/include
/X11R4 \
3256 /usr
/local
/X11
/include \
3257 /usr
/local
/X11R
6/include \
3258 /usr
/local
/X11R
5/include \
3259 /usr
/local
/X11R
4/include \
3261 /usr
/local
/include
/X11 \
3262 /usr
/local
/include
/X11R6 \
3263 /usr
/local
/include
/X11R5 \
3264 /usr
/local
/include
/X11R4 \
3268 /usr
/XFree86
/include
/X11 \
3271 /usr
/local
/include \
3272 /usr
/unsupported
/include \
3273 /usr
/athena
/include \
3274 /usr
/local
/x11r
5/include \
3275 /usr
/lpp
/Xamples
/include \
3277 /usr
/openwin
/include \
3278 /usr
/openwin
/share
/include \
3281 if test -r "$ac_dir/X11/Xlib.h"; then
3282 tm_x_includes
=$ac_dir
3286 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3287 < "$tm_x_includes/X11/Xlib.h" > X11
/Xlib.h
3288 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3289 < "$tm_x_includes/X11/Xutil.h" > X11
/Xutil.h
3290 X_CFLAGS
="-I.. $X_CFLAGS"
3294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3295 CPPFLAGS
="$ac_save_cppflags"
3298 ac_cpp
='$CXXCPP $CPPFLAGS'
3299 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3302 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3303 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3304 if test -z "$CXXCPP"; then
3305 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 # Double quotes because CXXCPP needs to be expanded
3309 for CXXCPP
in "$CXX -E" "/lib/cpp"
3312 for ac_cxx_preproc_warn_flag
in '' yes
3314 # Use a header file that comes with gcc, so configuring glibc
3315 # with a fresh cross-compiler works.
3316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3317 # <limits.h> exists even on freestanding compilers.
3318 # On the NeXT, cc -E runs the code through the compiler's parser,
3319 # not just through cpp. "Syntax error" is here to catch this case.
3320 cat >conftest.
$ac_ext <<_ACEOF
3323 cat confdefs.h
>>conftest.
$ac_ext
3324 cat >>conftest.
$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3327 # include <limits.h>
3329 # include <assert.h>
3333 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3341 grep -v '^ *+' conftest.er1 >conftest.err
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } >/dev/null && {
3346 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3347 test ! -s conftest.err
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 # Broken: fails on valid input.
3358 rm -f conftest.err conftest.$ac_ext
3360 # OK, works on sane cases. Now check whether nonexistent headers
3361 # can be detected and how.
3362 cat >conftest.$ac_ext <<_ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3368 #include <ac_nonexistent.h>
3370 if { (ac_try="$ac_cpp conftest.$ac_ext"
3372 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3373 *) ac_try_echo
=$ac_try;;
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3378 grep -v '^ *+' conftest.er1
>conftest.err
3380 cat conftest.err
>&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } >/dev
/null
&& {
3383 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3384 test ! -s conftest.err
3386 # Broken: success on invalid input.
3389 echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.
$ac_ext >&5
3392 # Passes both tests.
3397 rm -f conftest.err conftest.
$ac_ext
3400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3401 rm -f conftest.err conftest.
$ac_ext
3402 if $ac_preproc_ok; then
3407 ac_cv_prog_CXXCPP
=$CXXCPP
3410 CXXCPP
=$ac_cv_prog_CXXCPP
3412 ac_cv_prog_CXXCPP
=$CXXCPP
3414 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
3415 echo "${ECHO_T}$CXXCPP" >&6; }
3417 for ac_cxx_preproc_warn_flag
in '' yes
3419 # Use a header file that comes with gcc, so configuring glibc
3420 # with a fresh cross-compiler works.
3421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3422 # <limits.h> exists even on freestanding compilers.
3423 # On the NeXT, cc -E runs the code through the compiler's parser,
3424 # not just through cpp. "Syntax error" is here to catch this case.
3425 cat >conftest.
$ac_ext <<_ACEOF
3428 cat confdefs.h
>>conftest.
$ac_ext
3429 cat >>conftest.
$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3432 # include <limits.h>
3434 # include <assert.h>
3438 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3446 grep -v '^ *+' conftest.er1 >conftest.err
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } >/dev/null && {
3451 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3452 test ! -s conftest.err
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3459 # Broken: fails on valid input.
3463 rm -f conftest.err conftest.$ac_ext
3465 # OK, works on sane cases. Now check whether nonexistent headers
3466 # can be detected and how.
3467 cat >conftest.$ac_ext <<_ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3473 #include <ac_nonexistent.h>
3475 if { (ac_try="$ac_cpp conftest.$ac_ext"
3477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3478 *) ac_try_echo
=$ac_try;;
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3483 grep -v '^ *+' conftest.er1
>conftest.err
3485 cat conftest.err
>&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } >/dev
/null
&& {
3488 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3489 test ! -s conftest.err
3491 # Broken: success on invalid input.
3494 echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.
$ac_ext >&5
3497 # Passes both tests.
3502 rm -f conftest.err conftest.
$ac_ext
3505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3506 rm -f conftest.err conftest.
$ac_ext
3507 if $ac_preproc_ok; then
3510 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3511 See \`config.log' for more details." >&5
3512 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3513 See \`config.log' for more details." >&2;}
3514 { (exit 1); exit 1; }; }
3518 ac_cpp
='$CXXCPP $CPPFLAGS'
3519 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3524 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3525 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3526 if test "${ac_cv_path_GREP+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 # Extract the first word of "grep ggrep" to use in msg output
3530 if test -z "$GREP"; then
3531 set dummy
grep ggrep
; ac_prog_name
=$2
3532 if test "${ac_cv_path_GREP+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 ac_path_GREP_found
=false
3536 # Loop through the user's path and test for each of PROGNAME-LIST
3537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3538 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3541 test -z "$as_dir" && as_dir
=.
3542 for ac_prog
in grep ggrep
; do
3543 for ac_exec_ext
in '' $ac_executable_extensions; do
3544 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3545 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3546 # Check for GNU ac_path_GREP and select it if it is found.
3547 # Check for GNU $ac_path_GREP
3548 case `"$ac_path_GREP" --version 2>&1` in
3550 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3553 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3556 cat "conftest.in" "conftest.in" >"conftest.tmp"
3557 mv "conftest.tmp" "conftest.in"
3558 cp "conftest.in" "conftest.nl"
3559 echo 'GREP' >> "conftest.nl"
3560 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3561 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3562 ac_count
=`expr $ac_count + 1`
3563 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3564 # Best one so far, save it but keep looking for a better one
3565 ac_cv_path_GREP
="$ac_path_GREP"
3566 ac_path_GREP_max
=$ac_count
3568 # 10*(2^10) chars as input seems more than enough
3569 test $ac_count -gt 10 && break
3571 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3575 $ac_path_GREP_found && break 3
3585 GREP
="$ac_cv_path_GREP"
3586 if test -z "$GREP"; then
3587 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3588 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3589 { (exit 1); exit 1; }; }
3593 ac_cv_path_GREP
=$GREP
3598 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3599 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3600 GREP
="$ac_cv_path_GREP"
3603 { echo "$as_me:$LINENO: checking for egrep" >&5
3604 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3605 if test "${ac_cv_path_EGREP+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3609 then ac_cv_path_EGREP
="$GREP -E"
3611 # Extract the first word of "egrep" to use in msg output
3612 if test -z "$EGREP"; then
3613 set dummy
egrep; ac_prog_name
=$2
3614 if test "${ac_cv_path_EGREP+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 ac_path_EGREP_found
=false
3618 # Loop through the user's path and test for each of PROGNAME-LIST
3619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3620 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3623 test -z "$as_dir" && as_dir
=.
3624 for ac_prog
in egrep; do
3625 for ac_exec_ext
in '' $ac_executable_extensions; do
3626 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3627 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3628 # Check for GNU ac_path_EGREP and select it if it is found.
3629 # Check for GNU $ac_path_EGREP
3630 case `"$ac_path_EGREP" --version 2>&1` in
3632 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3635 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3638 cat "conftest.in" "conftest.in" >"conftest.tmp"
3639 mv "conftest.tmp" "conftest.in"
3640 cp "conftest.in" "conftest.nl"
3641 echo 'EGREP' >> "conftest.nl"
3642 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3643 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3644 ac_count
=`expr $ac_count + 1`
3645 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3646 # Best one so far, save it but keep looking for a better one
3647 ac_cv_path_EGREP
="$ac_path_EGREP"
3648 ac_path_EGREP_max
=$ac_count
3650 # 10*(2^10) chars as input seems more than enough
3651 test $ac_count -gt 10 && break
3653 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3657 $ac_path_EGREP_found && break 3
3667 EGREP
="$ac_cv_path_EGREP"
3668 if test -z "$EGREP"; then
3669 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3670 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3671 { (exit 1); exit 1; }; }
3675 ac_cv_path_EGREP
=$EGREP
3681 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3682 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3683 EGREP
="$ac_cv_path_EGREP"
3686 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3687 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3688 if test "${ac_cv_header_stdc+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 cat >conftest.
$ac_ext <<_ACEOF
3694 cat confdefs.h
>>conftest.
$ac_ext
3695 cat >>conftest.
$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3710 rm -f conftest.
$ac_objext
3711 if { (ac_try
="$ac_compile"
3713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717 (eval "$ac_compile") 2>conftest.er1
3719 grep -v '^ *+' conftest.er1 >conftest.err
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } && {
3724 test -z "$ac_cxx_werror_flag" ||
3725 test ! -s conftest.err
3726 } && test -s conftest.$ac_objext; then
3727 ac_cv_header_stdc=yes
3729 echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3732 ac_cv_header_stdc=no
3735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 if test $ac_cv_header_stdc = yes; then
3738 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3739 cat >conftest.$ac_ext <<_ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3749 $EGREP "memchr" >/dev/null 2>&1; then
3752 ac_cv_header_stdc=no
3758 if test $ac_cv_header_stdc = yes; then
3759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3760 cat >conftest.$ac_ext <<_ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3770 $EGREP "free" >/dev/null 2>&1; then
3773 ac_cv_header_stdc=no
3779 if test $ac_cv_header_stdc = yes; then
3780 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3781 if test "$cross_compiling" = yes; then
3784 cat >conftest.$ac_ext <<_ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3792 #if ((' ' & 0x0FF) == 0x020)
3793 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3794 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3796 # define ISLOWER(c) \
3797 (('a' <= (c) && (c) <= 'i') \
3798 || ('j' <= (c) && (c) <= 'r') \
3799 || ('s' <= (c) && (c) <= 'z'))
3800 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3803 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3808 for (i = 0; i < 256; i++)
3809 if (XOR (islower (i), ISLOWER (i))
3810 || toupper (i) != TOUPPER (i))
3815 rm -f conftest$ac_exeext
3816 if { (ac_try="$ac_link"
3818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3819 *) ac_try_echo
=$ac_try;;
3821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_link") 2>&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3826 { (case "(($ac_try" in
3827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831 (eval "$ac_try") 2>&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; }; then
3837 echo "$as_me: program exited with status $ac_status" >&5
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3842 ac_cv_header_stdc=no
3844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3850 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3851 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3852 if test $ac_cv_header_stdc = yes; then
3854 cat >>confdefs.h <<\_ACEOF
3855 #define STDC_HEADERS 1
3860 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3870 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3871 inttypes.h stdint.h unistd.h
3873 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 cat >conftest.$ac_ext <<_ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3885 $ac_includes_default
3887 #include <$ac_header>
3889 rm -f conftest.$ac_objext
3890 if { (ac_try="$ac_compile"
3892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3893 *) ac_try_echo
=$ac_try;;
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_compile") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1
>conftest.err
3900 cat conftest.err
>&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && {
3903 test -z "$ac_cxx_werror_flag" ||
3904 test ! -s conftest.err
3905 } && test -s conftest.
$ac_objext; then
3906 eval "$as_ac_Header=yes"
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.
$ac_ext >&5
3911 eval "$as_ac_Header=no"
3914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3916 ac_res
=`eval echo '${'$as_ac_Header'}'`
3917 { echo "$as_me:$LINENO: result: $ac_res" >&5
3918 echo "${ECHO_T}$ac_res" >&6; }
3919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3920 cat >>confdefs.h
<<_ACEOF
3921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3929 { echo "$as_me:$LINENO: checking for FILE" >&5
3930 echo $ECHO_N "checking for FILE... $ECHO_C" >&6; }
3931 if test "${ac_cv_type_FILE+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 cat >conftest.
$ac_ext <<_ACEOF
3937 cat confdefs.h
>>conftest.
$ac_ext
3938 cat >>conftest.
$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3940 $ac_includes_default
3941 typedef FILE ac__type_new_;
3945 if ((ac__type_new_ *) 0)
3947 if (sizeof (ac__type_new_))
3953 rm -f conftest.
$ac_objext
3954 if { (ac_try
="$ac_compile"
3956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_compile") 2>conftest.er1
3962 grep -v '^ *+' conftest.er1 >conftest.err
3964 cat conftest.err >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } && {
3967 test -z "$ac_cxx_werror_flag" ||
3968 test ! -s conftest.err
3969 } && test -s conftest.$ac_objext; then
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3980 { echo "$as_me:$LINENO: result: $ac_cv_type_FILE" >&5
3981 echo "${ECHO_T}$ac_cv_type_FILE" >&6; }
3982 if test $ac_cv_type_FILE = yes; then
3984 cat >>confdefs.h <<_ACEOF
3991 { echo "$as_me:$LINENO: checking for intptr_t" >&5
3992 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
3993 if test "${ac_cv_type_intptr_t+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 cat >conftest.$ac_ext <<_ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4002 $ac_includes_default
4003 typedef intptr_t ac__type_new_;
4007 if ((ac__type_new_ *) 0)
4009 if (sizeof (ac__type_new_))
4015 rm -f conftest.$ac_objext
4016 if { (ac_try="$ac_compile"
4018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4019 *) ac_try_echo
=$ac_try;;
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022 (eval "$ac_compile") 2>conftest.er1
4024 grep -v '^ *+' conftest.er1
>conftest.err
4026 cat conftest.err
>&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } && {
4029 test -z "$ac_cxx_werror_flag" ||
4030 test ! -s conftest.err
4031 } && test -s conftest.
$ac_objext; then
4032 ac_cv_type_intptr_t
=yes
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.
$ac_ext >&5
4037 ac_cv_type_intptr_t
=no
4040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4042 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
4043 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
4044 if test $ac_cv_type_intptr_t = yes; then
4046 cat >>confdefs.h
<<_ACEOF
4047 #define HAVE_INTPTR_T 1
4053 { echo "$as_me:$LINENO: checking for time_t" >&5
4054 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
4055 if test "${ac_cv_type_time_t+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 cat >conftest.
$ac_ext <<_ACEOF
4061 cat confdefs.h
>>conftest.
$ac_ext
4062 cat >>conftest.
$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4064 $ac_includes_default
4065 typedef time_t ac__type_new_;
4069 if ((ac__type_new_ *) 0)
4071 if (sizeof (ac__type_new_))
4077 rm -f conftest.
$ac_objext
4078 if { (ac_try
="$ac_compile"
4080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_compile") 2>conftest.er1
4086 grep -v '^ *+' conftest.er1 >conftest.err
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } && {
4091 test -z "$ac_cxx_werror_flag" ||
4092 test ! -s conftest.err
4093 } && test -s conftest.$ac_objext; then
4094 ac_cv_type_time_t=yes
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4099 ac_cv_type_time_t=no
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
4105 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
4106 if test $ac_cv_type_time_t = yes; then
4108 cat >>confdefs.h <<_ACEOF
4109 #define HAVE_TIME_T 1
4115 { echo "$as_me:$LINENO: checking for X" >&5
4116 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4119 # Check whether --with-x was given.
4120 if test "${with_x+set}" = set; then
4124 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4125 if test "x$with_x" = xno; then
4126 # The user explicitly disabled X.
4129 case $x_includes,$x_libraries in #(
4130 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4131 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4132 { (exit 1); exit 1; }; };; #(
4133 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 # One or both of the vars are not set, and there is no cached value.
4137 ac_x_includes=no ac_x_libraries=no
4138 rm -f -r conftest.dir
4139 if mkdir conftest.dir; then
4141 cat >Imakefile <<'_ACEOF'
4143 @echo incroot='${INCROOT}'
4145 @echo usrlibdir='${USRLIBDIR}'
4147 @echo libdir='${LIBDIR}'
4149 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4150 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4151 for ac_var in incroot usrlibdir libdir; do
4152 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
4154 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4155 for ac_extension in a so sl; do
4156 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4157 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4158 ac_im_usrlibdir=$ac_im_libdir; break
4161 # Screen out bogus values from the imake configuration. They are
4162 # bogus both because they are the default anyway, and because
4163 # using them would break gcc on systems where it needs fixed includes.
4164 case $ac_im_incroot in
4165 /usr/include) ac_x_includes= ;;
4166 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4168 case $ac_im_usrlibdir in
4170 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4174 rm -f -r conftest.dir
4177 # Standard set of common directories for X headers.
4178 # Check X11 before X11Rn because it is often a symlink to the current release.
4190 /usr/local/X11/include
4191 /usr/local/X11R6/include
4192 /usr/local/X11R5/include
4193 /usr/local/X11R4/include
4195 /usr/local/include/X11
4196 /usr/local/include/X11R6
4197 /usr/local/include/X11R5
4198 /usr/local/include/X11R4
4202 /usr/XFree86/include/X11
4206 /usr/unsupported/include
4208 /usr/local/x11r5/include
4209 /usr/lpp/Xamples/include
4211 /usr/openwin/include
4212 /usr/openwin/share/include'
4214 if test "$ac_x_includes" = no; then
4215 # Guess where to find include files, by looking for Xlib.h.
4216 # First, try using that file with no special directory specified.
4217 cat >conftest.$ac_ext <<_ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #include <X11/Xlib.h>
4225 if { (ac_try="$ac_cpp conftest.$ac_ext"
4227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4228 *) ac_try_echo
=$ac_try;;
4230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4233 grep -v '^ *+' conftest.er1
>conftest.err
4235 cat conftest.err
>&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } >/dev
/null
&& {
4238 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4239 test ! -s conftest.err
4241 # We can compile using X headers with no special include directory.
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.
$ac_ext >&5
4247 for ac_dir
in $ac_x_header_dirs; do
4248 if test -r "$ac_dir/X11/Xlib.h"; then
4249 ac_x_includes
=$ac_dir
4255 rm -f conftest.err conftest.
$ac_ext
4256 fi # $ac_x_includes = no
4258 if test "$ac_x_libraries" = no
; then
4259 # Check for the libraries.
4260 # See if we find them without any special options.
4261 # Don't add to $LIBS permanently.
4264 cat >conftest.
$ac_ext <<_ACEOF
4267 cat confdefs.h
>>conftest.
$ac_ext
4268 cat >>conftest.
$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 #include <X11/Xlib.h>
4279 rm -f conftest.
$ac_objext conftest
$ac_exeext
4280 if { (ac_try
="$ac_link"
4282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_link") 2>conftest.er1
4288 grep -v '^ *+' conftest.er1 >conftest.err
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } && {
4293 test -z "$ac_cxx_werror_flag" ||
4294 test ! -s conftest.err
4295 } && test -s conftest$ac_exeext &&
4296 $as_test_x conftest$ac_exeext; then
4298 # We can link X programs with no special library path.
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4305 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
4307 # Don't even attempt the hair of trying to link an X program!
4308 for ac_extension in a so sl; do
4309 if test -r "$ac_dir/libX11.$ac_extension"; then
4310 ac_x_libraries=$ac_dir
4317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4318 conftest$ac_exeext conftest.$ac_ext
4319 fi # $ac_x_libraries = no
4321 case $ac_x_includes,$ac_x_libraries in #(
4323 # Didn't find X, or a directory has "'" in its name.
4324 ac_cv_have_x="have_x=no";; #(
4326 # Record where we found X for the cache.
4327 ac_cv_have_x="have_x=yes\
4328 ac_x_includes='$ac_x_includes'\
4329 ac_x_libraries='$ac_x_libraries'"
4335 eval "$ac_cv_have_x"
4338 if test "$have_x" != yes; then
4339 { echo "$as_me:$LINENO: result: $have_x" >&5
4340 echo "${ECHO_T}$have_x" >&6; }
4343 # If each of the values was on the command line, it overrides each guess.
4344 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4345 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4346 # Update the cache value to reflect the command line values.
4347 ac_cv_have_x="have_x=yes\
4348 ac_x_includes='$x_includes'\
4349 ac_x_libraries='$x_libraries'"
4350 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4351 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4354 if test "$no_x" = yes; then
4355 # Not all programs may use this symbol, but it does not hurt to define it.
4357 cat >>confdefs.h <<\_ACEOF
4358 #define X_DISPLAY_MISSING 1
4361 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4363 if test -n "$x_includes"; then
4364 X_CFLAGS="$X_CFLAGS -I$x_includes"
4367 # It would also be nice to do this for all -L options, not just this one.
4368 if test -n "$x_libraries"; then
4369 X_LIBS="$X_LIBS -L$x_libraries"
4370 # For Solaris; some versions of Sun CC require a space after -R and
4371 # others require no space. Words are not sufficient . . . .
4372 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4373 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4374 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4375 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
4376 ac_cxx_werror_flag=yes
4377 cat >conftest.$ac_ext <<_ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4392 rm -f conftest.$ac_objext conftest$ac_exeext
4393 if { (ac_try="$ac_link"
4395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4396 *) ac_try_echo
=$ac_try;;
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_link") 2>conftest.er1
4401 grep -v '^ *+' conftest.er1
>conftest.err
4403 cat conftest.err
>&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } && {
4406 test -z "$ac_cxx_werror_flag" ||
4407 test ! -s conftest.err
4408 } && test -s conftest
$ac_exeext &&
4409 $as_test_x conftest
$ac_exeext; then
4410 { echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6; }
4412 X_LIBS
="$X_LIBS -R$x_libraries"
4414 echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.
$ac_ext >&5
4417 LIBS
="$ac_xsave_LIBS -R $x_libraries"
4418 cat >conftest.
$ac_ext <<_ACEOF
4421 cat confdefs.h
>>conftest.
$ac_ext
4422 cat >>conftest.
$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4433 rm -f conftest.
$ac_objext conftest
$ac_exeext
4434 if { (ac_try
="$ac_link"
4436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4440 (eval "$ac_link") 2>conftest.er1
4442 grep -v '^ *+' conftest.er1 >conftest.err
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } && {
4447 test -z "$ac_cxx_werror_flag" ||
4448 test ! -s conftest.err
4449 } && test -s conftest$ac_exeext &&
4450 $as_test_x conftest$ac_exeext; then
4451 { echo "$as_me:$LINENO: result: yes" >&5
4452 echo "${ECHO_T}yes" >&6; }
4453 X_LIBS="$X_LIBS -R $x_libraries"
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4458 { echo "$as_me:$LINENO: result: neither works" >&5
4459 echo "${ECHO_T}neither works" >&6; }
4462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4463 conftest$ac_exeext conftest.$ac_ext
4466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4467 conftest$ac_exeext conftest.$ac_ext
4468 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
4472 # Check for system-dependent libraries X programs must link with.
4473 # Do this before checking for the system-independent R6 libraries
4474 # (-lICE), since we may need -lsocket or whatever for X linking.
4476 if test "$ISC" = yes; then
4477 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4479 # Martyn Johnson says this is needed for Ultrix, if the X
4480 # libraries were built with DECnet support. And Karl Berry says
4481 # the Alpha needs dnet_stub (dnet does not exist).
4482 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4483 cat >conftest.$ac_ext <<_ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4490 /* Override any GCC internal prototype to avoid an error.
4491 Use char because int might match the return type of a GCC
4492 builtin and then its argument prototype would still apply. */
4496 char XOpenDisplay ();
4500 return XOpenDisplay ();
4505 rm -f conftest.$ac_objext conftest$ac_exeext
4506 if { (ac_try="$ac_link"
4508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4509 *) ac_try_echo
=$ac_try;;
4511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512 (eval "$ac_link") 2>conftest.er1
4514 grep -v '^ *+' conftest.er1
>conftest.err
4516 cat conftest.err
>&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } && {
4519 test -z "$ac_cxx_werror_flag" ||
4520 test ! -s conftest.err
4521 } && test -s conftest
$ac_exeext &&
4522 $as_test_x conftest
$ac_exeext; then
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.
$ac_ext >&5
4528 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4529 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4530 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 ac_check_lib_save_LIBS
=$LIBS
4535 cat >conftest.
$ac_ext <<_ACEOF
4538 cat confdefs.h
>>conftest.
$ac_ext
4539 cat >>conftest.
$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4542 /* Override any GCC internal prototype to avoid an error.
4543 Use char because int might match the return type of a GCC
4544 builtin and then its argument prototype would still apply. */
4552 return dnet_ntoa ();
4557 rm -f conftest.
$ac_objext conftest
$ac_exeext
4558 if { (ac_try
="$ac_link"
4560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564 (eval "$ac_link") 2>conftest.er1
4566 grep -v '^ *+' conftest.er1 >conftest.err
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } && {
4571 test -z "$ac_cxx_werror_flag" ||
4572 test ! -s conftest.err
4573 } && test -s conftest$ac_exeext &&
4574 $as_test_x conftest$ac_exeext; then
4575 ac_cv_lib_dnet_dnet_ntoa=yes
4577 echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4580 ac_cv_lib_dnet_dnet_ntoa=no
4583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4584 conftest$ac_exeext conftest.$ac_ext
4585 LIBS=$ac_check_lib_save_LIBS
4587 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4588 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4589 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4590 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4593 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4594 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4595 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4596 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 ac_check_lib_save_LIBS=$LIBS
4600 LIBS="-ldnet_stub $LIBS"
4601 cat >conftest.$ac_ext <<_ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4608 /* Override any GCC internal prototype to avoid an error.
4609 Use char because int might match the return type of a GCC
4610 builtin and then its argument prototype would still apply. */
4618 return dnet_ntoa ();
4623 rm -f conftest.$ac_objext conftest$ac_exeext
4624 if { (ac_try="$ac_link"
4626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4627 *) ac_try_echo
=$ac_try;;
4629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4630 (eval "$ac_link") 2>conftest.er1
4632 grep -v '^ *+' conftest.er1
>conftest.err
4634 cat conftest.err
>&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } && {
4637 test -z "$ac_cxx_werror_flag" ||
4638 test ! -s conftest.err
4639 } && test -s conftest
$ac_exeext &&
4640 $as_test_x conftest
$ac_exeext; then
4641 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
4643 echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.
$ac_ext >&5
4646 ac_cv_lib_dnet_stub_dnet_ntoa
=no
4649 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4650 conftest
$ac_exeext conftest.
$ac_ext
4651 LIBS
=$ac_check_lib_save_LIBS
4653 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4654 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4655 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4656 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
4662 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4663 conftest
$ac_exeext conftest.
$ac_ext
4664 LIBS
="$ac_xsave_LIBS"
4666 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4667 # to get the SysV transport functions.
4668 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4670 # The nsl library prevents programs from opening the X display
4671 # on Irix 5.2, according to T.E. Dickey.
4672 # The functions gethostbyname, getservbyname, and inet_addr are
4673 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4674 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4675 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4676 if test "${ac_cv_func_gethostbyname+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 cat >conftest.
$ac_ext <<_ACEOF
4682 cat confdefs.h
>>conftest.
$ac_ext
4683 cat >>conftest.
$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4685 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4687 #define gethostbyname innocuous_gethostbyname
4689 /* System header to define __stub macros and hopefully few prototypes,
4690 which can conflict with char gethostbyname (); below.
4691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4692 <limits.h> exists even on freestanding compilers. */
4695 # include <limits.h>
4697 # include <assert.h>
4700 #undef gethostbyname
4702 /* Override any GCC internal prototype to avoid an error.
4703 Use char because int might match the return type of a GCC
4704 builtin and then its argument prototype would still apply. */
4708 char gethostbyname ();
4709 /* The GNU C library defines this for functions which it implements
4710 to always fail with ENOSYS. Some functions are actually named
4711 something starting with __ and the normal name is an alias. */
4712 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4719 return gethostbyname ();
4724 rm -f conftest.
$ac_objext conftest
$ac_exeext
4725 if { (ac_try
="$ac_link"
4727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_link") 2>conftest.er1
4733 grep -v '^ *+' conftest.er1 >conftest.err
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } && {
4738 test -z "$ac_cxx_werror_flag" ||
4739 test ! -s conftest.err
4740 } && test -s conftest$ac_exeext &&
4741 $as_test_x conftest$ac_exeext; then
4742 ac_cv_func_gethostbyname=yes
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4747 ac_cv_func_gethostbyname=no
4750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4751 conftest$ac_exeext conftest.$ac_ext
4753 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4754 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4756 if test $ac_cv_func_gethostbyname = no; then
4757 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4758 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4759 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 ac_check_lib_save_LIBS=$LIBS
4764 cat >conftest.$ac_ext <<_ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4771 /* Override any GCC internal prototype to avoid an error.
4772 Use char because int might match the return type of a GCC
4773 builtin and then its argument prototype would still apply. */
4777 char gethostbyname ();
4781 return gethostbyname ();
4786 rm -f conftest.$ac_objext conftest$ac_exeext
4787 if { (ac_try="$ac_link"
4789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4790 *) ac_try_echo
=$ac_try;;
4792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4793 (eval "$ac_link") 2>conftest.er1
4795 grep -v '^ *+' conftest.er1
>conftest.err
4797 cat conftest.err
>&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } && {
4800 test -z "$ac_cxx_werror_flag" ||
4801 test ! -s conftest.err
4802 } && test -s conftest
$ac_exeext &&
4803 $as_test_x conftest
$ac_exeext; then
4804 ac_cv_lib_nsl_gethostbyname
=yes
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.
$ac_ext >&5
4809 ac_cv_lib_nsl_gethostbyname
=no
4812 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4813 conftest
$ac_exeext conftest.
$ac_ext
4814 LIBS
=$ac_check_lib_save_LIBS
4816 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4817 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4818 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4819 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4822 if test $ac_cv_lib_nsl_gethostbyname = no
; then
4823 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4824 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4825 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 ac_check_lib_save_LIBS
=$LIBS
4830 cat >conftest.
$ac_ext <<_ACEOF
4833 cat confdefs.h
>>conftest.
$ac_ext
4834 cat >>conftest.
$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4837 /* Override any GCC internal prototype to avoid an error.
4838 Use char because int might match the return type of a GCC
4839 builtin and then its argument prototype would still apply. */
4843 char gethostbyname ();
4847 return gethostbyname ();
4852 rm -f conftest.
$ac_objext conftest
$ac_exeext
4853 if { (ac_try
="$ac_link"
4855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859 (eval "$ac_link") 2>conftest.er1
4861 grep -v '^ *+' conftest.er1 >conftest.err
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } && {
4866 test -z "$ac_cxx_werror_flag" ||
4867 test ! -s conftest.err
4868 } && test -s conftest$ac_exeext &&
4869 $as_test_x conftest$ac_exeext; then
4870 ac_cv_lib_bsd_gethostbyname=yes
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4875 ac_cv_lib_bsd_gethostbyname=no
4878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4879 conftest$ac_exeext conftest.$ac_ext
4880 LIBS=$ac_check_lib_save_LIBS
4882 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4883 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4884 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4885 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4891 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4892 # socket/setsockopt and other routines are undefined under SCO ODT
4893 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4894 # on later versions), says Simon Leinen: it contains gethostby*
4895 # variants that don't use the name server (or something). -lsocket
4896 # must be given before -lnsl if both are needed. We assume that
4897 # if connect needs -lnsl, so does gethostbyname.
4898 { echo "$as_me:$LINENO: checking for connect" >&5
4899 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4900 if test "${ac_cv_func_connect+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 cat >conftest.$ac_ext <<_ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4911 #define connect innocuous_connect
4913 /* System header to define __stub macros and hopefully few prototypes,
4914 which can conflict with char connect (); below.
4915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4916 <limits.h> exists even on freestanding compilers. */
4919 # include <limits.h>
4921 # include <assert.h>
4926 /* Override any GCC internal prototype to avoid an error.
4927 Use char because int might match the return type of a GCC
4928 builtin and then its argument prototype would still apply. */
4933 /* The GNU C library defines this for functions which it implements
4934 to always fail with ENOSYS. Some functions are actually named
4935 something starting with __ and the normal name is an alias. */
4936 #if defined __stub_connect || defined __stub___connect
4948 rm -f conftest.$ac_objext conftest$ac_exeext
4949 if { (ac_try="$ac_link"
4951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4952 *) ac_try_echo
=$ac_try;;
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_link") 2>conftest.er1
4957 grep -v '^ *+' conftest.er1
>conftest.err
4959 cat conftest.err
>&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } && {
4962 test -z "$ac_cxx_werror_flag" ||
4963 test ! -s conftest.err
4964 } && test -s conftest
$ac_exeext &&
4965 $as_test_x conftest
$ac_exeext; then
4966 ac_cv_func_connect
=yes
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.
$ac_ext >&5
4971 ac_cv_func_connect
=no
4974 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4975 conftest
$ac_exeext conftest.
$ac_ext
4977 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4978 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4980 if test $ac_cv_func_connect = no
; then
4981 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4982 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4983 if test "${ac_cv_lib_socket_connect+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 ac_check_lib_save_LIBS
=$LIBS
4987 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4988 cat >conftest.
$ac_ext <<_ACEOF
4991 cat confdefs.h
>>conftest.
$ac_ext
4992 cat >>conftest.
$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4995 /* Override any GCC internal prototype to avoid an error.
4996 Use char because int might match the return type of a GCC
4997 builtin and then its argument prototype would still apply. */
5010 rm -f conftest.
$ac_objext conftest
$ac_exeext
5011 if { (ac_try
="$ac_link"
5013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5014 *) ac_try_echo=$ac_try;;
5016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017 (eval "$ac_link") 2>conftest.er1
5019 grep -v '^ *+' conftest.er1 >conftest.err
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } && {
5024 test -z "$ac_cxx_werror_flag" ||
5025 test ! -s conftest.err
5026 } && test -s conftest$ac_exeext &&
5027 $as_test_x conftest$ac_exeext; then
5028 ac_cv_lib_socket_connect=yes
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5033 ac_cv_lib_socket_connect=no
5036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5037 conftest$ac_exeext conftest.$ac_ext
5038 LIBS=$ac_check_lib_save_LIBS
5040 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5041 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5042 if test $ac_cv_lib_socket_connect = yes; then
5043 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5048 # Guillermo Gomez says -lposix is necessary on A/UX.
5049 { echo "$as_me:$LINENO: checking for remove" >&5
5050 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5051 if test "${ac_cv_func_remove+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 cat >conftest.$ac_ext <<_ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5062 #define remove innocuous_remove
5064 /* System header to define __stub macros and hopefully few prototypes,
5065 which can conflict with char remove (); below.
5066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5067 <limits.h> exists even on freestanding compilers. */
5070 # include <limits.h>
5072 # include <assert.h>
5077 /* Override any GCC internal prototype to avoid an error.
5078 Use char because int might match the return type of a GCC
5079 builtin and then its argument prototype would still apply. */
5084 /* The GNU C library defines this for functions which it implements
5085 to always fail with ENOSYS. Some functions are actually named
5086 something starting with __ and the normal name is an alias. */
5087 #if defined __stub_remove || defined __stub___remove
5099 rm -f conftest.$ac_objext conftest$ac_exeext
5100 if { (ac_try="$ac_link"
5102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5103 *) ac_try_echo
=$ac_try;;
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_link") 2>conftest.er1
5108 grep -v '^ *+' conftest.er1
>conftest.err
5110 cat conftest.err
>&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } && {
5113 test -z "$ac_cxx_werror_flag" ||
5114 test ! -s conftest.err
5115 } && test -s conftest
$ac_exeext &&
5116 $as_test_x conftest
$ac_exeext; then
5117 ac_cv_func_remove
=yes
5119 echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.
$ac_ext >&5
5122 ac_cv_func_remove
=no
5125 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5126 conftest
$ac_exeext conftest.
$ac_ext
5128 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5129 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5131 if test $ac_cv_func_remove = no
; then
5132 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5133 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5134 if test "${ac_cv_lib_posix_remove+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 ac_check_lib_save_LIBS
=$LIBS
5138 LIBS
="-lposix $LIBS"
5139 cat >conftest.
$ac_ext <<_ACEOF
5142 cat confdefs.h
>>conftest.
$ac_ext
5143 cat >>conftest.
$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5146 /* Override any GCC internal prototype to avoid an error.
5147 Use char because int might match the return type of a GCC
5148 builtin and then its argument prototype would still apply. */
5161 rm -f conftest.
$ac_objext conftest
$ac_exeext
5162 if { (ac_try
="$ac_link"
5164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5165 *) ac_try_echo=$ac_try;;
5167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5168 (eval "$ac_link") 2>conftest.er1
5170 grep -v '^ *+' conftest.er1 >conftest.err
5172 cat conftest.err >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } && {
5175 test -z "$ac_cxx_werror_flag" ||
5176 test ! -s conftest.err
5177 } && test -s conftest$ac_exeext &&
5178 $as_test_x conftest$ac_exeext; then
5179 ac_cv_lib_posix_remove=yes
5181 echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5184 ac_cv_lib_posix_remove=no
5187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5188 conftest$ac_exeext conftest.$ac_ext
5189 LIBS=$ac_check_lib_save_LIBS
5191 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5192 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5193 if test $ac_cv_lib_posix_remove = yes; then
5194 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5199 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5200 { echo "$as_me:$LINENO: checking for shmat" >&5
5201 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5202 if test "${ac_cv_func_shmat+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 cat >conftest.$ac_ext <<_ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5211 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5213 #define shmat innocuous_shmat
5215 /* System header to define __stub macros and hopefully few prototypes,
5216 which can conflict with char shmat (); below.
5217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5218 <limits.h> exists even on freestanding compilers. */
5221 # include <limits.h>
5223 # include <assert.h>
5228 /* Override any GCC internal prototype to avoid an error.
5229 Use char because int might match the return type of a GCC
5230 builtin and then its argument prototype would still apply. */
5235 /* The GNU C library defines this for functions which it implements
5236 to always fail with ENOSYS. Some functions are actually named
5237 something starting with __ and the normal name is an alias. */
5238 #if defined __stub_shmat || defined __stub___shmat
5250 rm -f conftest.$ac_objext conftest$ac_exeext
5251 if { (ac_try="$ac_link"
5253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5254 *) ac_try_echo
=$ac_try;;
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_link") 2>conftest.er1
5259 grep -v '^ *+' conftest.er1
>conftest.err
5261 cat conftest.err
>&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_cxx_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest
$ac_exeext &&
5267 $as_test_x conftest
$ac_exeext; then
5268 ac_cv_func_shmat
=yes
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.
$ac_ext >&5
5276 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5277 conftest
$ac_exeext conftest.
$ac_ext
5279 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5280 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5282 if test $ac_cv_func_shmat = no
; then
5283 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5284 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5285 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 ac_check_lib_save_LIBS
=$LIBS
5290 cat >conftest.
$ac_ext <<_ACEOF
5293 cat confdefs.h
>>conftest.
$ac_ext
5294 cat >>conftest.
$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5297 /* Override any GCC internal prototype to avoid an error.
5298 Use char because int might match the return type of a GCC
5299 builtin and then its argument prototype would still apply. */
5312 rm -f conftest.
$ac_objext conftest
$ac_exeext
5313 if { (ac_try
="$ac_link"
5315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_link") 2>conftest.er1
5321 grep -v '^ *+' conftest.er1 >conftest.err
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } && {
5326 test -z "$ac_cxx_werror_flag" ||
5327 test ! -s conftest.err
5328 } && test -s conftest$ac_exeext &&
5329 $as_test_x conftest$ac_exeext; then
5330 ac_cv_lib_ipc_shmat=yes
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5335 ac_cv_lib_ipc_shmat=no
5338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5339 conftest$ac_exeext conftest.$ac_ext
5340 LIBS=$ac_check_lib_save_LIBS
5342 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5343 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5344 if test $ac_cv_lib_ipc_shmat = yes; then
5345 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5351 # Check for libraries that X11R6 Xt/Xaw programs need.
5352 ac_save_LDFLAGS=$LDFLAGS
5353 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5354 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5355 # check for ICE first), but we must link in the order -lSM -lICE or
5356 # we get undefined symbols. So assume we have SM if we have ICE.
5357 # These have to be linked with before -lX11, unlike the other
5358 # libraries we check for below, so use a different variable.
5359 # John Interrante, Karl Berry
5360 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5361 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5362 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 ac_check_lib_save_LIBS=$LIBS
5366 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5367 cat >conftest.$ac_ext <<_ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5374 /* Override any GCC internal prototype to avoid an error.
5375 Use char because int might match the return type of a GCC
5376 builtin and then its argument prototype would still apply. */
5380 char IceConnectionNumber ();
5384 return IceConnectionNumber ();
5389 rm -f conftest.$ac_objext conftest$ac_exeext
5390 if { (ac_try="$ac_link"
5392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5393 *) ac_try_echo
=$ac_try;;
5395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396 (eval "$ac_link") 2>conftest.er1
5398 grep -v '^ *+' conftest.er1
>conftest.err
5400 cat conftest.err
>&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } && {
5403 test -z "$ac_cxx_werror_flag" ||
5404 test ! -s conftest.err
5405 } && test -s conftest
$ac_exeext &&
5406 $as_test_x conftest
$ac_exeext; then
5407 ac_cv_lib_ICE_IceConnectionNumber
=yes
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.
$ac_ext >&5
5412 ac_cv_lib_ICE_IceConnectionNumber
=no
5415 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5416 conftest
$ac_exeext conftest.
$ac_ext
5417 LIBS
=$ac_check_lib_save_LIBS
5419 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5420 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5421 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5422 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
5425 LDFLAGS
=$ac_save_LDFLAGS
5431 for ac_header
in pty.h util.h
5433 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5434 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5437 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 ac_res
=`eval echo '${'$as_ac_Header'}'`
5441 { echo "$as_me:$LINENO: result: $ac_res" >&5
5442 echo "${ECHO_T}$ac_res" >&6; }
5444 # Is the header compilable?
5445 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5447 cat >conftest.
$ac_ext <<_ACEOF
5450 cat confdefs.h
>>conftest.
$ac_ext
5451 cat >>conftest.
$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 $ac_includes_default
5454 #include <$ac_header>
5456 rm -f conftest.
$ac_objext
5457 if { (ac_try
="$ac_compile"
5459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463 (eval "$ac_compile") 2>conftest.er1
5465 grep -v '^ *+' conftest.er1 >conftest.err
5467 cat conftest.err >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } && {
5470 test -z "$ac_cxx_werror_flag" ||
5471 test ! -s conftest.err
5472 } && test -s conftest.$ac_objext; then
5473 ac_header_compiler=yes
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5478 ac_header_compiler=no
5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5483 echo "${ECHO_T}$ac_header_compiler" >&6; }
5485 # Is the header present?
5486 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5488 cat >conftest.$ac_ext <<_ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5494 #include <$ac_header>
5496 if { (ac_try="$ac_cpp conftest.$ac_ext"
5498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5499 *) ac_try_echo
=$ac_try;;
5501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5504 grep -v '^ *+' conftest.er1
>conftest.err
5506 cat conftest.err
>&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } >/dev
/null
&& {
5509 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5510 test ! -s conftest.err
5512 ac_header_preproc
=yes
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.
$ac_ext >&5
5517 ac_header_preproc
=no
5520 rm -f conftest.err conftest.
$ac_ext
5521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5522 echo "${ECHO_T}$ac_header_preproc" >&6; }
5524 # So? What about this header?
5525 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5531 ac_header_preproc
=yes
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5551 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 eval "$as_ac_Header=\$ac_header_preproc"
5556 ac_res
=`eval echo '${'$as_ac_Header'}'`
5557 { echo "$as_me:$LINENO: result: $ac_res" >&5
5558 echo "${ECHO_T}$ac_res" >&6; }
5561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5562 cat >>confdefs.h
<<_ACEOF
5563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5571 for ac_func
in gettimeofday
5573 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5576 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 cat >conftest.
$ac_ext <<_ACEOF
5582 cat confdefs.h
>>conftest.
$ac_ext
5583 cat >>conftest.
$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5587 #define $ac_func innocuous_$ac_func
5589 /* System header to define __stub macros and hopefully few prototypes,
5590 which can conflict with char $ac_func (); below.
5591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5592 <limits.h> exists even on freestanding compilers. */
5595 # include <limits.h>
5597 # include <assert.h>
5602 /* Override any GCC internal prototype to avoid an error.
5603 Use char because int might match the return type of a GCC
5604 builtin and then its argument prototype would still apply. */
5609 /* The GNU C library defines this for functions which it implements
5610 to always fail with ENOSYS. Some functions are actually named
5611 something starting with __ and the normal name is an alias. */
5612 #if defined __stub_$ac_func || defined __stub___$ac_func
5624 rm -f conftest.
$ac_objext conftest
$ac_exeext
5625 if { (ac_try
="$ac_link"
5627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631 (eval "$ac_link") 2>conftest.er1
5633 grep -v '^ *+' conftest.er1 >conftest.err
5635 cat conftest.err >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } && {
5638 test -z "$ac_cxx_werror_flag" ||
5639 test ! -s conftest.err
5640 } && test -s conftest$ac_exeext &&
5641 $as_test_x conftest$ac_exeext; then
5642 eval "$as_ac_var=yes"
5644 echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5647 eval "$as_ac_var=no"
5650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5651 conftest$ac_exeext conftest.$ac_ext
5653 ac_res=`eval echo '${'$as_ac_var'}'`
5654 { echo "$as_me:$LINENO: result: $ac_res" >&5
5655 echo "${ECHO_T}$ac_res" >&6; }
5656 if test `eval echo '${'$as_ac_var'}'` = yes; then
5657 cat >>confdefs.h <<_ACEOF
5658 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5665 #--------------------------------------------------------------------
5666 # Checks for dl library
5667 #--------------------------------------------------------------------
5669 { echo "$as_me:$LINENO: checking for dlopen" >&5
5670 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
5671 if test "${ac_cv_func_dlopen+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 cat >conftest.$ac_ext <<_ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
5681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5682 #define dlopen innocuous_dlopen
5684 /* System header to define __stub macros and hopefully few prototypes,
5685 which can conflict with char dlopen (); below.
5686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5687 <limits.h> exists even on freestanding compilers. */
5690 # include <limits.h>
5692 # include <assert.h>
5697 /* Override any GCC internal prototype to avoid an error.
5698 Use char because int might match the return type of a GCC
5699 builtin and then its argument prototype would still apply. */
5704 /* The GNU C library defines this for functions which it implements
5705 to always fail with ENOSYS. Some functions are actually named
5706 something starting with __ and the normal name is an alias. */
5707 #if defined __stub_dlopen || defined __stub___dlopen
5719 rm -f conftest.$ac_objext conftest$ac_exeext
5720 if { (ac_try="$ac_link"
5722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5723 *) ac_try_echo
=$ac_try;;
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_link") 2>conftest.er1
5728 grep -v '^ *+' conftest.er1
>conftest.err
5730 cat conftest.err
>&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } && {
5733 test -z "$ac_cxx_werror_flag" ||
5734 test ! -s conftest.err
5735 } && test -s conftest
$ac_exeext &&
5736 $as_test_x conftest
$ac_exeext; then
5737 ac_cv_func_dlopen
=yes
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.
$ac_ext >&5
5742 ac_cv_func_dlopen
=no
5745 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5746 conftest
$ac_exeext conftest.
$ac_ext
5748 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
5749 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
5751 if test "$ac_cv_func_dl" = "yes"; then
5753 cat >>confdefs.h
<<\_ACEOF
5754 #define DYNAMIC_LINKING 1
5759 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5760 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5761 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 ac_check_lib_save_LIBS
=$LIBS
5766 cat >conftest.
$ac_ext <<_ACEOF
5769 cat confdefs.h
>>conftest.
$ac_ext
5770 cat >>conftest.
$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5773 /* Override any GCC internal prototype to avoid an error.
5774 Use char because int might match the return type of a GCC
5775 builtin and then its argument prototype would still apply. */
5788 rm -f conftest.
$ac_objext conftest
$ac_exeext
5789 if { (ac_try
="$ac_link"
5791 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_link") 2>conftest.er1
5797 grep -v '^ *+' conftest.er1 >conftest.err
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } && {
5802 test -z "$ac_cxx_werror_flag" ||
5803 test ! -s conftest.err
5804 } && test -s conftest$ac_exeext &&
5805 $as_test_x conftest$ac_exeext; then
5806 ac_cv_lib_dl_dlopen=yes
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 ac_cv_lib_dl_dlopen=no
5814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5815 conftest$ac_exeext conftest.$ac_ext
5816 LIBS=$ac_check_lib_save_LIBS
5818 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5819 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5820 if test $ac_cv_lib_dl_dlopen = yes; then
5821 cat >>confdefs.h <<_ACEOF
5822 #define HAVE_LIBDL 1
5829 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5831 for ac_func in dlopen
5833 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 cat >conftest.$ac_ext <<_ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5847 #define $ac_func innocuous_$ac_func
5849 /* System header to define __stub macros and hopefully few prototypes,
5850 which can conflict with char $ac_func (); below.
5851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5852 <limits.h> exists even on freestanding compilers. */
5855 # include <limits.h>
5857 # include <assert.h>
5862 /* Override any GCC internal prototype to avoid an error.
5863 Use char because int might match the return type of a GCC
5864 builtin and then its argument prototype would still apply. */
5869 /* The GNU C library defines this for functions which it implements
5870 to always fail with ENOSYS. Some functions are actually named
5871 something starting with __ and the normal name is an alias. */
5872 #if defined __stub_$ac_func || defined __stub___$ac_func
5884 rm -f conftest.$ac_objext conftest$ac_exeext
5885 if { (ac_try="$ac_link"
5887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5888 *) ac_try_echo
=$ac_try;;
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_link") 2>conftest.er1
5893 grep -v '^ *+' conftest.er1
>conftest.err
5895 cat conftest.err
>&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } && {
5898 test -z "$ac_cxx_werror_flag" ||
5899 test ! -s conftest.err
5900 } && test -s conftest
$ac_exeext &&
5901 $as_test_x conftest
$ac_exeext; then
5902 eval "$as_ac_var=yes"
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.
$ac_ext >&5
5907 eval "$as_ac_var=no"
5910 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5911 conftest
$ac_exeext conftest.
$ac_ext
5913 ac_res
=`eval echo '${'$as_ac_var'}'`
5914 { echo "$as_me:$LINENO: result: $ac_res" >&5
5915 echo "${ECHO_T}$ac_res" >&6; }
5916 if test `eval echo '${'$as_ac_var'}'` = yes; then
5917 cat >>confdefs.h
<<_ACEOF
5918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5926 cat >>confdefs.h
<<\_ACEOF
5927 #define DYNAMIC_LINKING 1
5932 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
5933 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
5934 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 ac_check_lib_save_LIBS
=$LIBS
5939 cat >conftest.
$ac_ext <<_ACEOF
5942 cat confdefs.h
>>conftest.
$ac_ext
5943 cat >>conftest.
$ac_ext <<_ACEOF
5944 /* end confdefs.h. */
5946 /* Override any GCC internal prototype to avoid an error.
5947 Use char because int might match the return type of a GCC
5948 builtin and then its argument prototype would still apply. */
5961 rm -f conftest.
$ac_objext conftest
$ac_exeext
5962 if { (ac_try
="$ac_link"
5964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_link") 2>conftest.er1
5970 grep -v '^ *+' conftest.er1 >conftest.err
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && {
5975 test -z "$ac_cxx_werror_flag" ||
5976 test ! -s conftest.err
5977 } && test -s conftest$ac_exeext &&
5978 $as_test_x conftest$ac_exeext; then
5979 ac_cv_lib_dld_dld_link=yes
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5984 ac_cv_lib_dld_dld_link=no
5987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5988 conftest$ac_exeext conftest.$ac_ext
5989 LIBS=$ac_check_lib_save_LIBS
5991 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
5992 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
5993 if test $ac_cv_lib_dld_dld_link = yes; then
5994 cat >>confdefs.h <<_ACEOF
5995 #define HAVE_LIBDLD 1
6002 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
6005 cat >>confdefs.h <<\_ACEOF
6006 #define DYNAMIC_LINKING 1
6011 for ac_func in shl_load
6013 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6014 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6016 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 cat >conftest.$ac_ext <<_ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6027 #define $ac_func innocuous_$ac_func
6029 /* System header to define __stub macros and hopefully few prototypes,
6030 which can conflict with char $ac_func (); below.
6031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6032 <limits.h> exists even on freestanding compilers. */
6035 # include <limits.h>
6037 # include <assert.h>
6042 /* Override any GCC internal prototype to avoid an error.
6043 Use char because int might match the return type of a GCC
6044 builtin and then its argument prototype would still apply. */
6049 /* The GNU C library defines this for functions which it implements
6050 to always fail with ENOSYS. Some functions are actually named
6051 something starting with __ and the normal name is an alias. */
6052 #if defined __stub_$ac_func || defined __stub___$ac_func
6064 rm -f conftest.$ac_objext conftest$ac_exeext
6065 if { (ac_try="$ac_link"
6067 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6068 *) ac_try_echo
=$ac_try;;
6070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_link") 2>conftest.er1
6073 grep -v '^ *+' conftest.er1
>conftest.err
6075 cat conftest.err
>&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } && {
6078 test -z "$ac_cxx_werror_flag" ||
6079 test ! -s conftest.err
6080 } && test -s conftest
$ac_exeext &&
6081 $as_test_x conftest
$ac_exeext; then
6082 eval "$as_ac_var=yes"
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.
$ac_ext >&5
6087 eval "$as_ac_var=no"
6090 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6091 conftest
$ac_exeext conftest.
$ac_ext
6093 ac_res
=`eval echo '${'$as_ac_var'}'`
6094 { echo "$as_me:$LINENO: result: $ac_res" >&5
6095 echo "${ECHO_T}$ac_res" >&6; }
6096 if test `eval echo '${'$as_ac_var'}'` = yes; then
6097 cat >>confdefs.h
<<_ACEOF
6098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6104 if test "$ac_cv_func_shl_load" = "yes"; then
6107 cat >>confdefs.h
<<\_ACEOF
6108 #define DYNAMIC_LINKING 1
6113 for ac_func
in dlopen
6115 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6118 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 cat >conftest.
$ac_ext <<_ACEOF
6124 cat confdefs.h
>>conftest.
$ac_ext
6125 cat >>conftest.
$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6129 #define $ac_func innocuous_$ac_func
6131 /* System header to define __stub macros and hopefully few prototypes,
6132 which can conflict with char $ac_func (); below.
6133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6134 <limits.h> exists even on freestanding compilers. */
6137 # include <limits.h>
6139 # include <assert.h>
6144 /* Override any GCC internal prototype to avoid an error.
6145 Use char because int might match the return type of a GCC
6146 builtin and then its argument prototype would still apply. */
6151 /* The GNU C library defines this for functions which it implements
6152 to always fail with ENOSYS. Some functions are actually named
6153 something starting with __ and the normal name is an alias. */
6154 #if defined __stub_$ac_func || defined __stub___$ac_func
6166 rm -f conftest.
$ac_objext conftest
$ac_exeext
6167 if { (ac_try
="$ac_link"
6169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_link") 2>conftest.er1
6175 grep -v '^ *+' conftest.er1 >conftest.err
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } && {
6180 test -z "$ac_cxx_werror_flag" ||
6181 test ! -s conftest.err
6182 } && test -s conftest$ac_exeext &&
6183 $as_test_x conftest$ac_exeext; then
6184 eval "$as_ac_var=yes"
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6189 eval "$as_ac_var=no"
6192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6193 conftest$ac_exeext conftest.$ac_ext
6195 ac_res=`eval echo '${'$as_ac_var'}'`
6196 { echo "$as_me:$LINENO: result: $ac_res" >&5
6197 echo "${ECHO_T}$ac_res" >&6; }
6198 if test `eval echo '${'$as_ac_var'}'` = yes; then
6199 cat >>confdefs.h <<_ACEOF
6200 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6206 if test "$ac_cv_func_dlopen" = "yes"; then
6208 cat >>confdefs.h <<\_ACEOF
6209 #define DYNAMIC_LINKING 1
6219 #--------------------------------------------------------------------
6220 # Checks for iconv library
6221 #--------------------------------------------------------------------
6224 # Check whether --with-iconv was given.
6225 if test "${with_iconv+set}" = set; then
6226 withval=$with_iconv;
6231 # Modified from GNOME's libxml2 configure.in
6234 ac_cpp='$CPP $CPPFLAGS'
6235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6238 # compile C to avoid the 'const char**' problem
6239 SAVE_CPPFLAGS="$CPPFLAGS"
6240 SAVE_LDFLAGS="$LDFLAGS"
6242 if test "$with_iconv" = "no" ; then
6243 { echo "$as_me:$LINENO: result: disabling iconv support" >&5
6244 echo "${ECHO_T}disabling iconv support" >&6; }
6246 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
6247 CPPFLAGS="-I$with_iconv/include" # for AC_TRY_LINK
6248 ICONV_CFLAGS="-I$with_iconv/include"
6249 ICONV_LDFLAGS="-L$with_iconv/lib"
6253 ac_cpp='$CPP $CPPFLAGS'
6254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6257 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6258 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6259 # On Suns, sometimes $CPP names a directory.
6260 if test -n "$CPP" && test -d "$CPP"; then
6263 if test -z "$CPP"; then
6264 if test "${ac_cv_prog_CPP+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 # Double quotes because CPP needs to be expanded
6268 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6271 for ac_c_preproc_warn_flag in '' yes
6273 # Use a header file that comes with gcc, so configuring glibc
6274 # with a fresh cross-compiler works.
6275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6276 # <limits.h> exists even on freestanding compilers.
6277 # On the NeXT, cc -E runs the code through the compiler's parser,
6278 # not just through cpp. "Syntax error" is here to catch this case.
6279 cat >conftest.$ac_ext <<_ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6286 # include <limits.h>
6288 # include <assert.h>
6292 if { (ac_try="$ac_cpp conftest.$ac_ext"
6294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6295 *) ac_try_echo
=$ac_try;;
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6300 grep -v '^ *+' conftest.er1
>conftest.err
6302 cat conftest.err
>&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } >/dev
/null
&& {
6305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6306 test ! -s conftest.err
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.
$ac_ext >&5
6313 # Broken: fails on valid input.
6317 rm -f conftest.err conftest.
$ac_ext
6319 # OK, works on sane cases. Now check whether nonexistent headers
6320 # can be detected and how.
6321 cat >conftest.
$ac_ext <<_ACEOF
6324 cat confdefs.h
>>conftest.
$ac_ext
6325 cat >>conftest.
$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 #include <ac_nonexistent.h>
6329 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6337 grep -v '^ *+' conftest.er1 >conftest.err
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } >/dev/null && {
6342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6345 # Broken: success on invalid input.
6348 echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6351 # Passes both tests.
6356 rm -f conftest.err conftest.$ac_ext
6359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6360 rm -f conftest.err conftest.
$ac_ext
6361 if $ac_preproc_ok; then
6373 { echo "$as_me:$LINENO: result: $CPP" >&5
6374 echo "${ECHO_T}$CPP" >&6; }
6376 for ac_c_preproc_warn_flag
in '' yes
6378 # Use a header file that comes with gcc, so configuring glibc
6379 # with a fresh cross-compiler works.
6380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6381 # <limits.h> exists even on freestanding compilers.
6382 # On the NeXT, cc -E runs the code through the compiler's parser,
6383 # not just through cpp. "Syntax error" is here to catch this case.
6384 cat >conftest.
$ac_ext <<_ACEOF
6387 cat confdefs.h
>>conftest.
$ac_ext
6388 cat >>conftest.
$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6391 # include <limits.h>
6393 # include <assert.h>
6397 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6405 grep -v '^ *+' conftest.er1 >conftest.err
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } >/dev/null && {
6410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6411 test ! -s conftest.err
6415 echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6418 # Broken: fails on valid input.
6422 rm -f conftest.err conftest.$ac_ext
6424 # OK, works on sane cases. Now check whether nonexistent headers
6425 # can be detected and how.
6426 cat >conftest.$ac_ext <<_ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6432 #include <ac_nonexistent.h>
6434 if { (ac_try="$ac_cpp conftest.$ac_ext"
6436 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6437 *) ac_try_echo
=$ac_try;;
6439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6442 grep -v '^ *+' conftest.er1
>conftest.err
6444 cat conftest.err
>&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } >/dev
/null
&& {
6447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6448 test ! -s conftest.err
6450 # Broken: success on invalid input.
6453 echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.
$ac_ext >&5
6456 # Passes both tests.
6461 rm -f conftest.err conftest.
$ac_ext
6464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6465 rm -f conftest.err conftest.
$ac_ext
6466 if $ac_preproc_ok; then
6469 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6470 See \`config.log' for more details." >&5
6471 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6472 See \`config.log' for more details." >&2;}
6473 { (exit 1); exit 1; }; }
6477 ac_cpp
='$CPP $CPPFLAGS'
6478 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6480 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6483 if test "${ac_cv_header_iconv_h+set}" = set; then
6484 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6485 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6486 if test "${ac_cv_header_iconv_h+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6490 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6492 # Is the header compilable?
6493 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
6494 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
6495 cat >conftest.
$ac_ext <<_ACEOF
6498 cat confdefs.h
>>conftest.
$ac_ext
6499 cat >>conftest.
$ac_ext <<_ACEOF
6500 /* end confdefs.h. */
6501 $ac_includes_default
6504 rm -f conftest.
$ac_objext
6505 if { (ac_try
="$ac_compile"
6507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_compile") 2>conftest.er1
6513 grep -v '^ *+' conftest.er1 >conftest.err
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && {
6518 test -z "$ac_c_werror_flag" ||
6519 test ! -s conftest.err
6520 } && test -s conftest.$ac_objext; then
6521 ac_header_compiler=yes
6523 echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6526 ac_header_compiler=no
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6531 echo "${ECHO_T}$ac_header_compiler" >&6; }
6533 # Is the header present?
6534 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
6535 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
6536 cat >conftest.$ac_ext <<_ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6544 if { (ac_try="$ac_cpp conftest.$ac_ext"
6546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6547 *) ac_try_echo
=$ac_try;;
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6552 grep -v '^ *+' conftest.er1
>conftest.err
6554 cat conftest.err
>&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } >/dev
/null
&& {
6557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6558 test ! -s conftest.err
6560 ac_header_preproc
=yes
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.
$ac_ext >&5
6565 ac_header_preproc
=no
6568 rm -f conftest.err conftest.
$ac_ext
6569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6570 echo "${ECHO_T}$ac_header_preproc" >&6; }
6572 # So? What about this header?
6573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6575 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
6576 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6577 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
6578 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
6579 ac_header_preproc
=yes
6582 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
6583 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
6584 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
6585 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
6586 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
6587 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
6588 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
6589 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
6590 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
6591 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
6592 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
6593 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
6597 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6598 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6599 if test "${ac_cv_header_iconv_h+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 ac_cv_header_iconv_h
=$ac_header_preproc
6604 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6605 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6608 if test $ac_cv_header_iconv_h = yes; then
6609 { echo "$as_me:$LINENO: checking for iconv" >&5
6610 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6612 cat >conftest.
$ac_ext <<_ACEOF
6615 cat confdefs.h
>>conftest.
$ac_ext
6616 cat >>conftest.
$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6626 iconv_t cd = iconv_open ("","");
6627 iconv (cd, NULL, NULL, NULL, NULL);
6633 rm -f conftest.
$ac_objext conftest
$ac_exeext
6634 if { (ac_try
="$ac_link"
6636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6637 *) ac_try_echo=$ac_try;;
6639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6640 (eval "$ac_link") 2>conftest.er1
6642 grep -v '^ *+' conftest.er1 >conftest.err
6644 cat conftest.err >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } && {
6647 test -z "$ac_c_werror_flag" ||
6648 test ! -s conftest.err
6649 } && test -s conftest$ac_exeext &&
6650 $as_test_x conftest$ac_exeext; then
6652 { echo "$as_me:$LINENO: result: yes" >&5
6653 echo "${ECHO_T}yes" >&6; }
6655 cat >>confdefs.h <<\_ACEOF
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6665 { echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6; }
6667 { echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
6668 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6; }
6669 LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
6670 LIBS="-liconv" # for AC_TRY_LINK
6671 cat >conftest.$ac_ext <<_ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6685 iconv_t cd = iconv_open ("","");
6686 iconv (cd, NULL, NULL, NULL, NULL);
6692 rm -f conftest.$ac_objext conftest$ac_exeext
6693 if { (ac_try="$ac_link"
6695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6696 *) ac_try_echo
=$ac_try;;
6698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699 (eval "$ac_link") 2>conftest.er1
6701 grep -v '^ *+' conftest.er1
>conftest.err
6703 cat conftest.err
>&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); } && {
6706 test -z "$ac_c_werror_flag" ||
6707 test ! -s conftest.err
6708 } && test -s conftest
$ac_exeext &&
6709 $as_test_x conftest
$ac_exeext; then
6711 { echo "$as_me:$LINENO: result: yes" >&5
6712 echo "${ECHO_T}yes" >&6; }
6714 cat >>confdefs.h
<<\_ACEOF
6718 ICONV_LDFLAGS
="${ICONV_LDFLAGS} -liconv"
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.
$ac_ext >&5
6725 { echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6; }
6727 { echo "$as_me:$LINENO: WARNING: absence of iconv may crash HTML import" >&5
6728 echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
6732 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6733 conftest
$ac_exeext conftest.
$ac_ext
6736 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6737 conftest
$ac_exeext conftest.
$ac_ext
6743 CPPFLAGS
="$SAVE_CPPFLAGS"
6744 LDFLAGS
="$SAVE_LDFLAGS"
6747 ac_cpp
='$CXXCPP $CPPFLAGS'
6748 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6749 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6750 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6751 # restore C++ language
6756 #--------------------------------------------------------------------
6757 # Checks for freetype library
6758 #--------------------------------------------------------------------
6761 # Check whether --with-freetype was given.
6762 if test "${with_freetype+set}" = set; then
6763 withval
=$with_freetype;
6767 SAVE_CPPFLAGS
="$CPPFLAGS"
6768 SAVE_LDFLAGS
="$LDFLAGS"
6770 if test "$with_freetype" = "no" ; then
6771 { echo "$as_me:$LINENO: result: disabling freetype support" >&5
6772 echo "${ECHO_T}disabling freetype support" >&6; }
6774 CPPFLAGS
=`freetype-config --cflags`
6775 LIBS
=`freetype-config --libs`
6776 if test "${ac_cv_header_ft2build_h+set}" = set; then
6777 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6778 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6779 if test "${ac_cv_header_ft2build_h+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6783 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6785 # Is the header compilable?
6786 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
6787 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
6788 cat >conftest.
$ac_ext <<_ACEOF
6791 cat confdefs.h
>>conftest.
$ac_ext
6792 cat >>conftest.
$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 $ac_includes_default
6795 #include <ft2build.h>
6797 rm -f conftest.
$ac_objext
6798 if { (ac_try
="$ac_compile"
6800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6801 *) ac_try_echo=$ac_try;;
6803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6804 (eval "$ac_compile") 2>conftest.er1
6806 grep -v '^ *+' conftest.er1 >conftest.err
6808 cat conftest.err >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } && {
6811 test -z "$ac_cxx_werror_flag" ||
6812 test ! -s conftest.err
6813 } && test -s conftest.$ac_objext; then
6814 ac_header_compiler=yes
6816 echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6819 ac_header_compiler=no
6822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6824 echo "${ECHO_T}$ac_header_compiler" >&6; }
6826 # Is the header present?
6827 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
6828 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
6829 cat >conftest.$ac_ext <<_ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 #include <ft2build.h>
6837 if { (ac_try="$ac_cpp conftest.$ac_ext"
6839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6840 *) ac_try_echo
=$ac_try;;
6842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6845 grep -v '^ *+' conftest.er1
>conftest.err
6847 cat conftest.err
>&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } >/dev
/null
&& {
6850 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6851 test ! -s conftest.err
6853 ac_header_preproc
=yes
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.
$ac_ext >&5
6858 ac_header_preproc
=no
6861 rm -f conftest.err conftest.
$ac_ext
6862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6863 echo "${ECHO_T}$ac_header_preproc" >&6; }
6865 # So? What about this header?
6866 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6868 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
6869 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6870 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
6871 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
6872 ac_header_preproc
=yes
6875 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
6876 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
6877 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
6878 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
6879 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
6880 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
6881 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
6882 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
6883 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
6884 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
6885 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
6886 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
6890 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6891 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6892 if test "${ac_cv_header_ft2build_h+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 ac_cv_header_ft2build_h
=$ac_header_preproc
6897 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6898 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6901 if test $ac_cv_header_ft2build_h = yes; then
6902 { echo "$as_me:$LINENO: checking for freetype" >&5
6903 echo $ECHO_N "checking for freetype... $ECHO_C" >&6; }
6904 cat >conftest.
$ac_ext <<_ACEOF
6907 cat confdefs.h
>>conftest.
$ac_ext
6908 cat >>conftest.
$ac_ext <<_ACEOF
6909 /* end confdefs.h. */
6911 #include <ft2build.h>
6912 #include FT_FREETYPE_H
6918 FT_Library ft_library;
6919 (void) FT_Init_FreeType (&ft_library);
6925 rm -f conftest.
$ac_objext conftest
$ac_exeext
6926 if { (ac_try
="$ac_link"
6928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6929 *) ac_try_echo=$ac_try;;
6931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6932 (eval "$ac_link") 2>conftest.er1
6934 grep -v '^ *+' conftest.er1 >conftest.err
6936 cat conftest.err >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } && {
6939 test -z "$ac_cxx_werror_flag" ||
6940 test ! -s conftest.err
6941 } && test -s conftest$ac_exeext &&
6942 $as_test_x conftest$ac_exeext; then
6944 { echo "$as_me:$LINENO: result: yes" >&5
6945 echo "${ECHO_T}yes" >&6; }
6947 cat >>confdefs.h <<\_ACEOF
6948 #define USE_FREETYPE 1
6951 FREETYPE_CFLAGS="$CPPFLAGS"
6952 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
6953 FREETYPE_LDFLAGS="$LIBS"
6955 cat >>confdefs.h <<\_ACEOF
6956 #define LINKED_FREETYPE 1
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6966 { echo "$as_me:$LINENO: result: no" >&5
6967 echo "${ECHO_T}no" >&6; }
6970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6971 conftest$ac_exeext conftest.$ac_ext
6977 CPPFLAGS="$SAVE_CPPFLAGS"
6978 LDFLAGS="$SAVE_LDFLAGS"
6984 #--------------------------------------------------------------------
6985 # Checks for Cairo library
6986 #--------------------------------------------------------------------
6989 # Check whether --with-cairo was given.
6990 if test "${with_cairo+set}" = set; then
6991 withval=$with_cairo;
6995 SAVE_CPPFLAGS="$CPPFLAGS"
6996 SAVE_LDFLAGS="$LDFLAGS"
6998 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
6999 { echo "$as_me:$LINENO: result: disabling cairo support" >&5
7000 echo "${ECHO_T}disabling cairo support" >&6; }
7002 CPPFLAGS=`pkg-config
--cflags cairo
`
7003 LIBS=`pkg-config
--libs cairo
`
7004 if test "${ac_cv_header_cairo_h+set}" = set; then
7005 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7006 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7007 if test "${ac_cv_header_cairo_h+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7011 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7013 # Is the header compilable?
7014 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
7015 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
7016 cat >conftest.$ac_ext <<_ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 $ac_includes_default
7025 rm -f conftest.$ac_objext
7026 if { (ac_try="$ac_compile"
7028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7029 *) ac_try_echo
=$ac_try;;
7031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7032 (eval "$ac_compile") 2>conftest.er1
7034 grep -v '^ *+' conftest.er1
>conftest.err
7036 cat conftest.err
>&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } && {
7039 test -z "$ac_cxx_werror_flag" ||
7040 test ! -s conftest.err
7041 } && test -s conftest.
$ac_objext; then
7042 ac_header_compiler
=yes
7044 echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.
$ac_ext >&5
7047 ac_header_compiler
=no
7050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7052 echo "${ECHO_T}$ac_header_compiler" >&6; }
7054 # Is the header present?
7055 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
7056 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
7057 cat >conftest.
$ac_ext <<_ACEOF
7060 cat confdefs.h
>>conftest.
$ac_ext
7061 cat >>conftest.
$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7065 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7073 grep -v '^ *+' conftest.er1 >conftest.err
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } >/dev/null && {
7078 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7079 test ! -s conftest.err
7081 ac_header_preproc=yes
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7086 ac_header_preproc=no
7089 rm -f conftest.err conftest.$ac_ext
7090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7091 echo "${ECHO_T}$ac_header_preproc" >&6; }
7093 # So? What about this header?
7094 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7096 { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
7097 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7098 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
7099 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
7100 ac_header_preproc=yes
7103 { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
7104 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
7105 { echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
7106 echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
7107 { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
7108 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
7109 { echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
7110 echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
7111 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
7112 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
7113 { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
7114 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
7118 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7119 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7120 if test "${ac_cv_header_cairo_h+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 ac_cv_header_cairo_h=$ac_header_preproc
7125 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7126 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7129 if test $ac_cv_header_cairo_h = yes; then
7130 { echo "$as_me:$LINENO: checking for cairo" >&5
7131 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
7132 cat >conftest.$ac_ext <<_ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7145 cairo_surface_t *surface;
7146 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
7152 rm -f conftest.$ac_objext conftest$ac_exeext
7153 if { (ac_try="$ac_link"
7155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7156 *) ac_try_echo
=$ac_try;;
7158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159 (eval "$ac_link") 2>conftest.er1
7161 grep -v '^ *+' conftest.er1
>conftest.err
7163 cat conftest.err
>&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } && {
7166 test -z "$ac_cxx_werror_flag" ||
7167 test ! -s conftest.err
7168 } && test -s conftest
$ac_exeext &&
7169 $as_test_x conftest
$ac_exeext; then
7171 { echo "$as_me:$LINENO: result: yes" >&5
7172 echo "${ECHO_T}yes" >&6; }
7174 cat >>confdefs.h
<<\_ACEOF
7178 CAIRO_CFLAGS
="$CPPFLAGS"
7179 if test "$with_cairo" = "linked" ; then
7180 CAIRO_LDFLAGS
="$LIBS"
7182 cat >>confdefs.h
<<\_ACEOF
7183 #define LINKED_CAIRO 1
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.
$ac_ext >&5
7193 { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7197 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7198 conftest
$ac_exeext conftest.
$ac_ext
7204 CPPFLAGS
="$SAVE_CPPFLAGS"
7205 LDFLAGS
="$SAVE_LDFLAGS"
7211 #--------------------------------------------------------------------
7212 # Checks for Imlib2 library
7213 #--------------------------------------------------------------------
7216 # Check whether --with-imlib2 was given.
7217 if test "${with_imlib2+set}" = set; then
7218 withval
=$with_imlib2;
7222 SAVE_CPPFLAGS
="$CPPFLAGS"
7223 SAVE_LDFLAGS
="$LDFLAGS"
7225 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
7226 { echo "$as_me:$LINENO: result: disabling imlib2 support" >&5
7227 echo "${ECHO_T}disabling imlib2 support" >&6; }
7229 CPPFLAGS
=`imlib2-config --cflags`
7230 LIBS
=`imlib2-config --libs`
7231 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7232 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7233 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7234 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7238 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7240 # Is the header compilable?
7241 { echo "$as_me:$LINENO: checking Imlib2.h usability" >&5
7242 echo $ECHO_N "checking Imlib2.h usability... $ECHO_C" >&6; }
7243 cat >conftest.
$ac_ext <<_ACEOF
7246 cat confdefs.h
>>conftest.
$ac_ext
7247 cat >>conftest.
$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7249 $ac_includes_default
7252 rm -f conftest.
$ac_objext
7253 if { (ac_try
="$ac_compile"
7255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7256 *) ac_try_echo=$ac_try;;
7258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7259 (eval "$ac_compile") 2>conftest.er1
7261 grep -v '^ *+' conftest.er1 >conftest.err
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && {
7266 test -z "$ac_cxx_werror_flag" ||
7267 test ! -s conftest.err
7268 } && test -s conftest.$ac_objext; then
7269 ac_header_compiler=yes
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7274 ac_header_compiler=no
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7279 echo "${ECHO_T}$ac_header_compiler" >&6; }
7281 # Is the header present?
7282 { echo "$as_me:$LINENO: checking Imlib2.h presence" >&5
7283 echo $ECHO_N "checking Imlib2.h presence... $ECHO_C" >&6; }
7284 cat >conftest.$ac_ext <<_ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7292 if { (ac_try="$ac_cpp conftest.$ac_ext"
7294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7295 *) ac_try_echo
=$ac_try;;
7297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7300 grep -v '^ *+' conftest.er1
>conftest.err
7302 cat conftest.err
>&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } >/dev
/null
&& {
7305 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7306 test ! -s conftest.err
7308 ac_header_preproc
=yes
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.
$ac_ext >&5
7313 ac_header_preproc
=no
7316 rm -f conftest.err conftest.
$ac_ext
7317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7318 echo "${ECHO_T}$ac_header_preproc" >&6; }
7320 # So? What about this header?
7321 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7323 { echo "$as_me:$LINENO: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&5
7324 echo "$as_me: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7325 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the compiler's result" >&5
7326 echo "$as_me: WARNING: Imlib2.h: proceeding with the compiler's result" >&2;}
7327 ac_header_preproc
=yes
7330 { echo "$as_me:$LINENO: WARNING: Imlib2.h: present but cannot be compiled" >&5
7331 echo "$as_me: WARNING: Imlib2.h: present but cannot be compiled" >&2;}
7332 { echo "$as_me:$LINENO: WARNING: Imlib2.h: check for missing prerequisite headers?" >&5
7333 echo "$as_me: WARNING: Imlib2.h: check for missing prerequisite headers?" >&2;}
7334 { echo "$as_me:$LINENO: WARNING: Imlib2.h: see the Autoconf documentation" >&5
7335 echo "$as_me: WARNING: Imlib2.h: see the Autoconf documentation" >&2;}
7336 { echo "$as_me:$LINENO: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&5
7337 echo "$as_me: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&2;}
7338 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&5
7339 echo "$as_me: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&2;}
7340 { echo "$as_me:$LINENO: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&5
7341 echo "$as_me: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&2;}
7345 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7346 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7347 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 ac_cv_header_Imlib2_h
=$ac_header_preproc
7352 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7353 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7356 if test $ac_cv_header_Imlib2_h = yes; then
7357 { echo "$as_me:$LINENO: checking for imlib2" >&5
7358 echo $ECHO_N "checking for imlib2... $ECHO_C" >&6; }
7359 cat >conftest.
$ac_ext <<_ACEOF
7362 cat confdefs.h
>>conftest.
$ac_ext
7363 cat >>conftest.
$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7366 #include <X11/Xlib.h>
7375 Imlib_Image image= imlib_load_image("");
7381 rm -f conftest.
$ac_objext conftest
$ac_exeext
7382 if { (ac_try
="$ac_link"
7384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_link") 2>conftest.er1
7390 grep -v '^ *+' conftest.er1 >conftest.err
7392 cat conftest.err >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_cxx_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest$ac_exeext &&
7398 $as_test_x conftest$ac_exeext; then
7400 { echo "$as_me:$LINENO: result: yes" >&5
7401 echo "${ECHO_T}yes" >&6; }
7403 cat >>confdefs.h <<\_ACEOF
7404 #define USE_IMLIB2 1
7407 IMLIB2_CFLAGS="$CPPFLAGS"
7408 if test "$with_imlib2" = "linked" ; then
7409 IMLIB2_LDFLAGS="$LIBS"
7411 cat >>confdefs.h <<\_ACEOF
7412 #define LINKED_IMLIB2 1
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7422 { echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6; }
7426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7427 conftest$ac_exeext conftest.$ac_ext
7433 CPPFLAGS="$SAVE_CPPFLAGS"
7434 LDFLAGS="$SAVE_LDFLAGS"
7440 #--------------------------------------------------------------------
7441 # Checks for Axel library
7442 #--------------------------------------------------------------------
7445 # Check whether --with-axel was given.
7446 if test "${with_axel+set}" = set; then
7451 SAVE_CPPFLAGS="$CPPFLAGS"
7452 SAVE_LDFLAGS="$LDFLAGS"
7454 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
7455 { echo "$as_me:$LINENO: result: disabling axel support" >&5
7456 echo "${ECHO_T}disabling axel support" >&6; }
7458 CPPFLAGS=`axel-config
--cflags`
7459 LIBS=`axel-config
--libs`
7460 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7461 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7462 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7463 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7467 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7469 # Is the header compilable?
7470 { echo "$as_me:$LINENO: checking QGui/Viewer.h usability" >&5
7471 echo $ECHO_N "checking QGui/Viewer.h usability... $ECHO_C" >&6; }
7472 cat >conftest.$ac_ext <<_ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7478 $ac_includes_default
7479 #include <QGui/Viewer.h>
7481 rm -f conftest.$ac_objext
7482 if { (ac_try="$ac_compile"
7484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7485 *) ac_try_echo
=$ac_try;;
7487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7488 (eval "$ac_compile") 2>conftest.er1
7490 grep -v '^ *+' conftest.er1
>conftest.err
7492 cat conftest.err
>&5
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); } && {
7495 test -z "$ac_cxx_werror_flag" ||
7496 test ! -s conftest.err
7497 } && test -s conftest.
$ac_objext; then
7498 ac_header_compiler
=yes
7500 echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.
$ac_ext >&5
7503 ac_header_compiler
=no
7506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7508 echo "${ECHO_T}$ac_header_compiler" >&6; }
7510 # Is the header present?
7511 { echo "$as_me:$LINENO: checking QGui/Viewer.h presence" >&5
7512 echo $ECHO_N "checking QGui/Viewer.h presence... $ECHO_C" >&6; }
7513 cat >conftest.
$ac_ext <<_ACEOF
7516 cat confdefs.h
>>conftest.
$ac_ext
7517 cat >>conftest.
$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519 #include <QGui/Viewer.h>
7521 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7524 *) ac_try_echo=$ac_try;;
7526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7529 grep -v '^ *+' conftest.er1 >conftest.err
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } >/dev/null && {
7534 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7535 test ! -s conftest.err
7537 ac_header_preproc=yes
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7542 ac_header_preproc=no
7545 rm -f conftest.err conftest.$ac_ext
7546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7547 echo "${ECHO_T}$ac_header_preproc" >&6; }
7549 # So? What about this header?
7550 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7552 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&5
7553 echo "$as_me: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7554 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&5
7555 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&2;}
7556 ac_header_preproc=yes
7559 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: present but cannot be compiled" >&5
7560 echo "$as_me: WARNING: QGui/Viewer.h: present but cannot be compiled" >&2;}
7561 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&5
7562 echo "$as_me: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&2;}
7563 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&5
7564 echo "$as_me: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&2;}
7565 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&5
7566 echo "$as_me: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&2;}
7567 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&5
7568 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&2;}
7569 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&5
7570 echo "$as_me: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&2;}
7574 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7575 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7576 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 ac_cv_header_QGui_Viewer_h=$ac_header_preproc
7581 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7582 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7585 if test $ac_cv_header_QGui_Viewer_h = yes; then
7586 { echo "$as_me:$LINENO: checking for axel" >&5
7587 echo $ECHO_N "checking for axel... $ECHO_C" >&6; }
7588 cat >conftest.$ac_ext <<_ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7595 #include <QGui/Viewer.h>
7607 rm -f conftest.$ac_objext conftest$ac_exeext
7608 if { (ac_try="$ac_link"
7610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7611 *) ac_try_echo
=$ac_try;;
7613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7614 (eval "$ac_link") 2>conftest.er1
7616 grep -v '^ *+' conftest.er1
>conftest.err
7618 cat conftest.err
>&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } && {
7621 test -z "$ac_cxx_werror_flag" ||
7622 test ! -s conftest.err
7623 } && test -s conftest
$ac_exeext &&
7624 $as_test_x conftest
$ac_exeext; then
7626 { echo "$as_me:$LINENO: result: yes" >&5
7627 echo "${ECHO_T}yes" >&6; }
7629 cat >>confdefs.h
<<\_ACEOF
7633 AXEL_CFLAGS
="$CPPFLAGS"
7634 if test "$with_axel" = "linked" ; then
7635 AXEL_LDFLAGS
="$LIBS"
7637 cat >>confdefs.h
<<\_ACEOF
7638 #define LINKED_AXEL 1
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.
$ac_ext >&5
7648 { echo "$as_me:$LINENO: result: no" >&5
7649 echo "${ECHO_T}no" >&6; }
7652 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7653 conftest
$ac_exeext conftest.
$ac_ext
7659 CPPFLAGS
="$SAVE_CPPFLAGS"
7660 LDFLAGS
="$SAVE_LDFLAGS"
7666 #--------------------------------------------------------------------
7667 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
7668 #--------------------------------------------------------------------
7670 { echo "$as_me:$LINENO: checking whether ... arguments behave correctly" >&5
7671 echo $ECHO_N "checking whether ... arguments behave correctly... $ECHO_C" >&6; }
7672 CXXFLAGS
="`guile-config compile`"
7673 cat >conftest.
$ac_ext <<_ACEOF
7676 cat confdefs.h
>>conftest.
$ac_ext
7677 cat >>conftest.
$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7680 #include <guile/gh.h>
7681 #include <libguile.h>
7682 typedef SCM (*FN)(...);
7683 static SCM identity (SCM x) { return x; }
7684 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
7695 rm -f conftest.
$ac_objext
7696 if { (ac_try
="$ac_compile"
7698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702 (eval "$ac_compile") 2>conftest.er1
7704 grep -v '^ *+' conftest.er1 >conftest.err
7706 cat conftest.err >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && {
7709 test -z "$ac_cxx_werror_flag" ||
7710 test ! -s conftest.err
7711 } && test -s conftest.$ac_objext; then
7714 cat >>confdefs.h <<\_ACEOF
7718 { echo "$as_me:$LINENO: result: yes" >&5
7719 echo "${ECHO_T}yes" >&6; }
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7726 { echo "$as_me:$LINENO: result: no" >&5
7727 echo "${ECHO_T}no" >&6; }
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 { echo "$as_me:$LINENO: checking the size_t of guile strings" >&5
7735 echo $ECHO_N "checking the size_t of guile strings... $ECHO_C" >&6; }
7736 CXXFLAGS="`guile-config compile
`"
7737 cat >conftest.$ac_ext <<_ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7744 #include <guile/gh.h>
7745 #include <libguile.h>
7746 void print_string (SCM s) {
7748 char* r= gh_scm2newstr (s, &len_r); }
7759 rm -f conftest.$ac_objext
7760 if { (ac_try="$ac_compile"
7762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7763 *) ac_try_echo
=$ac_try;;
7765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7766 (eval "$ac_compile") 2>conftest.er1
7768 grep -v '^ *+' conftest.er1
>conftest.err
7770 cat conftest.err
>&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && {
7773 test -z "$ac_cxx_werror_flag" ||
7774 test ! -s conftest.err
7775 } && test -s conftest.
$ac_objext; then
7778 cat >>confdefs.h
<<\_ACEOF
7779 #define guile_str_size_t int
7782 { echo "$as_me:$LINENO: result: int" >&5
7783 echo "${ECHO_T}int" >&6; }
7786 echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.
$ac_ext >&5
7791 cat >>confdefs.h
<<\_ACEOF
7792 #define guile_str_size_t size_t
7795 { echo "$as_me:$LINENO: result: size_t" >&5
7796 echo "${ECHO_T}size_t" >&6; }
7800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7803 { echo "$as_me:$LINENO: checking if statically linking with guile works" >&5
7804 echo $ECHO_N "checking if statically linking with guile works... $ECHO_C" >&6; }
7805 CPPFLAGS
="$GUILE_CFLAGS"
7807 LIBS
="$GUILE_LDFLAGS"
7808 cat >conftest.
$ac_ext <<_ACEOF
7811 cat confdefs.h
>>conftest.
$ac_ext
7812 cat >>conftest.
$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7815 #include <guile/gh.h>
7823 static void my_main (int argc, char** argv) {}
7824 static void install_guile () {
7826 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7828 gh_enter (0, NULL, my_main);
7832 dummy::install_guile ();
7838 rm -f conftest.
$ac_objext conftest
$ac_exeext
7839 if { (ac_try
="$ac_link"
7841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_link") 2>conftest.er1
7847 grep -v '^ *+' conftest.er1 >conftest.err
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } && {
7852 test -z "$ac_cxx_werror_flag" ||
7853 test ! -s conftest.err
7854 } && test -s conftest$ac_exeext &&
7855 $as_test_x conftest$ac_exeext; then
7856 tm_link_guile_static="yes"
7858 echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7861 tm_link_guile_static="no"
7864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7865 conftest$ac_exeext conftest.$ac_ext
7867 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static\"" >&5
7868 echo "${ECHO_T}\"$tm_link_guile_static\"" >&6; }
7869 if test "$tm_link_guile_static" = "no" ; then
7870 { echo "$as_me:$LINENO: checking if it works with -lltdl" >&5
7871 echo $ECHO_N "checking if it works with -lltdl... $ECHO_C" >&6; }
7872 LIBS="$GUILE_LDFLAGS -lltdl"
7873 cat >conftest.$ac_ext <<_ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7880 #include <guile/gh.h>
7888 static void my_main (int argc, char** argv) {}
7889 static void install_guile () {
7891 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7893 gh_enter (0, NULL, my_main);
7897 dummy::install_guile ();
7903 rm -f conftest.$ac_objext conftest$ac_exeext
7904 if { (ac_try="$ac_link"
7906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7907 *) ac_try_echo
=$ac_try;;
7909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910 (eval "$ac_link") 2>conftest.er1
7912 grep -v '^ *+' conftest.er1
>conftest.err
7914 cat conftest.err
>&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } && {
7917 test -z "$ac_cxx_werror_flag" ||
7918 test ! -s conftest.err
7919 } && test -s conftest
$ac_exeext &&
7920 $as_test_x conftest
$ac_exeext; then
7921 tm_link_guile_static_ltdl
="yes"
7923 echo "$as_me: failed program was:" >&5
7924 sed 's/^/| /' conftest.
$ac_ext >&5
7926 tm_link_guile_static_ltdl
="no"
7929 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7930 conftest
$ac_exeext conftest.
$ac_ext
7932 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl\"" >&5
7933 echo "${ECHO_T}\"$tm_link_guile_static_ltdl\"" >&6; }
7934 if test "$tm_link_guile_static_ltdl" = "yes" ; then
7935 GUILE_LDFLAGS
="$GUILE_LDFLAGS -lltdl"
7937 { echo "$as_me:$LINENO: checking if it works with -lltdl -ldl" >&5
7938 echo $ECHO_N "checking if it works with -lltdl -ldl... $ECHO_C" >&6; }
7939 LIBS
="$GUILE_LDFLAGS -lltdl -ldl"
7940 cat >conftest.
$ac_ext <<_ACEOF
7943 cat confdefs.h
>>conftest.
$ac_ext
7944 cat >>conftest.
$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7947 #include <guile/gh.h>
7955 static void my_main (int argc, char** argv) {}
7956 static void install_guile () {
7958 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7960 gh_enter (0, NULL, my_main);
7964 dummy::install_guile ();
7970 rm -f conftest.
$ac_objext conftest
$ac_exeext
7971 if { (ac_try
="$ac_link"
7973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_link") 2>conftest.er1
7979 grep -v '^ *+' conftest.er1 >conftest.err
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_cxx_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest$ac_exeext &&
7987 $as_test_x conftest$ac_exeext; then
7988 tm_link_guile_static_ltdl_ldl="yes"
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7993 tm_link_guile_static_ltdl_ldl="no"
7996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7997 conftest$ac_exeext conftest.$ac_ext
7999 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
8000 echo "${ECHO_T}\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
8001 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
8002 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
8004 { echo "$as_me:$LINENO: WARNING: unable to link statically with guile" >&5
8005 echo "$as_me: WARNING: unable to link statically with guile" >&2;}
8013 #--------------------------------------------------------------------
8014 # Handle different systems case by case
8015 #--------------------------------------------------------------------
8017 CONFIG_OS="GNU_LINUX"
8018 CONFIG_OS_SUFFIX="gnu-linux"
8021 CONFIG_CXXTEMPLATE=""
8022 CONFIG_STD_SETENV="#define STD_SETENV"
8024 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
8025 CONFIG_CHMOD="chmod -f"
8026 CONFIG_CXXOPTIMIZE="-O2"
8027 CONFIG_BSTATIC="-Wl,-Bstatic"
8028 CONFIG_BSHARED="-Wl,-Bdynamic"
8030 CONFIG_BPATH="-Wl,-rpath,"
8031 CONFIG_WORD_LENGTH="4"
8032 CONFIG_WORD_LENGTH_INC="3"
8033 CONFIG_WORD_MASK="0xfffffffc"
8034 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
8036 X11_CFLAGS="$X_CFLAGS"
8037 X11_LDFLAGS="$X_LIBS -lXext -lX11"
8039 { echo "$as_me:$LINENO: checking if we are on a 64-bits computer" >&5
8040 echo $ECHO_N "checking if we are on a 64-bits computer... $ECHO_C" >&6; }
8041 if test "$cross_compiling" = yes; then
8042 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8043 See \`config.log
' for more details." >&5
8044 echo "$as_me: error: cannot run test program while cross compiling
8045 See \`config.log' for more details.
" >&2;}
8046 { (exit 1); exit 1; }; }
8048 cat >conftest.$ac_ext <<_ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8058 return(sizeof(void*))
8063 rm -f conftest$ac_exeext
8064 if { (ac_try="$ac_link"
8066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067 *) ac_try_echo=$ac_try;;
8069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8070 (eval "$ac_link") 2>&5
8072 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8074 { (case "(($ac_try" in
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_try") 2>&5
8081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8082 (exit $ac_status); }; }; then
8085 echo "$as_me: program exited with status
$ac_status" >&5
8086 echo "$as_me: failed program was
:" >&5
8087 sed 's/^/| /' conftest.$ac_ext >&5
8092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8096 if test "$void_size" = "8"; then
8097 { echo "$as_me:$LINENO: result
: yes" >&5
8098 echo "${ECHO_T}yes" >&6; }
8099 CONFIG_WORD_LENGTH="8"
8100 CONFIG_WORD_LENGTH_INC="7"
8101 CONFIG_WORD_MASK="0xfffffffffffffff8"
8102 CONFIG_MAX_FAST="264 // WORD_LENGTH
more than power of
2"
8104 { echo "$as_me:$LINENO: result
: no
" >&5
8105 echo "${ECHO_T}no
" >&6; }
8109 for ac_dir in "$srcdir" "$srcdir/..
" "$srcdir/..
/..
"; do
8110 if test -f "$ac_dir/install-sh
"; then
8112 ac_install_sh="$ac_aux_dir/install-sh
-c"
8114 elif test -f "$ac_dir/install.sh
"; then
8116 ac_install_sh="$ac_aux_dir/install.sh
-c"
8118 elif test -f "$ac_dir/shtool
"; then
8120 ac_install_sh="$ac_aux_dir/shtool
install -c"
8124 if test -z "$ac_aux_dir"; then
8125 { { echo "$as_me:$LINENO: error
: cannot
find install-sh or
install.sh
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" >&5
8126 echo "$as_me: error
: cannot
find install-sh or
install.sh
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" >&2;}
8127 { (exit 1); exit 1; }; }
8130 # These three variables are undocumented and unsupported,
8131 # and are intended to be withdrawn in a future Autoconf release.
8132 # They can cause serious problems if a builder's source tree is in a directory
8133 # whose full name contains unusual characters.
8134 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
8135 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
8136 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
8139 # Make sure we can run config.sub.
8140 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
8141 { { echo "$as_me:$LINENO: error
: cannot run
$SHELL $ac_aux_dir/config.sub
" >&5
8142 echo "$as_me: error
: cannot run
$SHELL $ac_aux_dir/config.sub
" >&2;}
8143 { (exit 1); exit 1; }; }
8145 { echo "$as_me:$LINENO: checking build system
type" >&5
8146 echo $ECHO_N "checking build system
type...
$ECHO_C" >&6; }
8147 if test "${ac_cv_build+set}" = set; then
8148 echo $ECHO_N "(cached
) $ECHO_C" >&6
8150 ac_build_alias=$build_alias
8151 test "x
$ac_build_alias" = x &&
8152 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
8153 test "x
$ac_build_alias" = x &&
8154 { { echo "$as_me:$LINENO: error
: cannot guess build
type; you must specify one
" >&5
8155 echo "$as_me: error
: cannot guess build
type; you must specify one
" >&2;}
8156 { (exit 1); exit 1; }; }
8157 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
8158 { { echo "$as_me:$LINENO: error
: $SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" >&5
8159 echo "$as_me: error
: $SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" >&2;}
8160 { (exit 1); exit 1; }; }
8163 { echo "$as_me:$LINENO: result
: $ac_cv_build" >&5
8164 echo "${ECHO_T}$ac_cv_build" >&6; }
8165 case $ac_cv_build in
8167 *) { { echo "$as_me:$LINENO: error
: invalid value of canonical build
" >&5
8168 echo "$as_me: error
: invalid value of canonical build
" >&2;}
8169 { (exit 1); exit 1; }; };;
8172 ac_save_IFS=$IFS; IFS='-'
8178 # Remember, the first character of IFS is used to create $*,
8179 # except with old shells:
8182 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
8185 { echo "$as_me:$LINENO: checking
host system
type" >&5
8186 echo $ECHO_N "checking
host system
type...
$ECHO_C" >&6; }
8187 if test "${ac_cv_host+set}" = set; then
8188 echo $ECHO_N "(cached
) $ECHO_C" >&6
8190 if test "x
$host_alias" = x; then
8191 ac_cv_host=$ac_cv_build
8193 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
8194 { { echo "$as_me:$LINENO: error
: $SHELL $ac_aux_dir/config.sub
$host_alias failed
" >&5
8195 echo "$as_me: error
: $SHELL $ac_aux_dir/config.sub
$host_alias failed
" >&2;}
8196 { (exit 1); exit 1; }; }
8200 { echo "$as_me:$LINENO: result
: $ac_cv_host" >&5
8201 echo "${ECHO_T}$ac_cv_host" >&6; }
8204 *) { { echo "$as_me:$LINENO: error
: invalid value of canonical
host" >&5
8205 echo "$as_me: error
: invalid value of canonical
host" >&2;}
8206 { (exit 1); exit 1; }; };;
8209 ac_save_IFS=$IFS; IFS='-'
8215 # Remember, the first character of IFS is used to create $*,
8216 # except with old shells:
8219 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8223 i*86-*-linux* | x86_64-*-linux*)
8224 { echo "$as_me:$LINENO: result
: final adjustments
for an Intel or AMD GNU
/Linux
host" >&5
8225 echo "${ECHO_T}final adjustments
for an Intel or AMD GNU
/Linux
host" >&6; }
8226 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8228 i*86-*-freebsd* | x86_64-*-freebsd*)
8229 { echo "$as_me:$LINENO: result
: final adjustments
for an Intel or AMD GNU
/BSD
host" >&5
8230 echo "${ECHO_T}final adjustments
for an Intel or AMD GNU
/BSD
host" >&6; }
8231 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8234 { echo "$as_me:$LINENO: result
: final adjustments
for an Intel or AMS Solaris
host" >&5
8235 echo "${ECHO_T}final adjustments
for an Intel or AMS Solaris
host" >&6; }
8236 CONFIG_CXXOPTIMIZE="-O3"
8237 CONFIG_BPATH="-Wl,-R,"
8238 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8241 { echo "$as_me:$LINENO: result
: final adjustments
for cygwin
host" >&5
8242 echo "${ECHO_T}final adjustments
for cygwin
host" >&6; }
8244 CONFIG_BFLAGS="-Wl,-stack,8388608"
8245 # CXX="export CYGWIN
=check_case
:strict
; $CXX"
8249 echo "$ac_t""final adjustments
for a MacOS
host" 1>&6
8251 CONFIG_CXXFLAGS="-I${prefix}/include
"
8253 CONFIG_BFLAGS="-framework Cocoa
"
8256 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH
"
8259 echo "$ac_t""final adjustments
for a generic Darwin
host" 1>&6
8260 CONFIG_CXXFLAGS="-I${prefix}/include
"
8264 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH
"
8267 { echo "$as_me:$LINENO: result
: final adjustments
for a PowerPC
/GNU-linux
host" >&5
8268 echo "${ECHO_T}final adjustments
for a PowerPC
/GNU-linux
host" >&6; }
8269 CONFIG_OS="POWERPC_GNU_LINUX
"
8270 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8273 { echo "$as_me:$LINENO: result
: final adjustments
for a SUN
/solaris
host" >&5
8274 echo "${ECHO_T}final adjustments
for a SUN
/solaris
host" >&6; }
8276 CONFIG_OS_SUFFIX="sun
"
8279 CONFIG_BPATH="-Wl,-R,"
8280 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8281 CONFIG_WORD_LENGTH="8"
8282 CONFIG_WORD_LENGTH_INC="7"
8283 CONFIG_WORD_MASK="0xfffffff8"
8284 CONFIG_MAX_FAST="264 // WORD_LENGTH
more than power of
2"
8285 CONFIG_STD_SETENV=""
8288 { echo "$as_me:$LINENO: result
: final adjustments
for a Sparc
host running GNU
/Linux
" >&5
8289 echo "${ECHO_T}final adjustments
for a Sparc
host running GNU
/Linux
" >&6; }
8290 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8291 CONFIG_WORD_LENGTH="8"
8292 CONFIG_WORD_LENGTH_INC="7"
8293 CONFIG_WORD_MASK="0xfffffff8"
8294 CONFIG_MAX_FAST="264 // WORD_LENGTH
more than power of
2"
8295 CONFIG_STD_SETENV=""
8298 { echo "$as_me:$LINENO: result
: final adjustments
for a DEC
/alpha
host" >&5
8299 echo "${ECHO_T}final adjustments
for a DEC
/alpha
host" >&6; }
8301 CONFIG_BSHARED="-shared"
8302 CONFIG_STD_SETENV=""
8305 { echo "$as_me:$LINENO: result
: final adjustments
for an Alpha GNU
/Linux
host" >&5
8306 echo "${ECHO_T}final adjustments
for an Alpha GNU
/Linux
host" >&6; }
8308 CONFIG_BSHARED="-shared"
8311 { echo "$as_me:$LINENO: result
: final adjustments
for an IBM S
/390 GNU
/Linux
host" >&5
8312 echo "${ECHO_T}final adjustments
for an IBM S
/390 GNU
/Linux
host" >&6; }
8313 CONFIG_STD_SETENV=""
8316 { echo "$as_me:$LINENO: result
: final adjustments
for an Itanium GNU
/Linux
host" >&5
8317 echo "${ECHO_T}final adjustments
for an Itanium GNU
/Linux
host" >&6; }
8319 CONFIG_BSHARED="-shared"
8322 { echo "$as_me:$LINENO: result
: final adjustments
for an HP PA_RISC GNU
/Linux
host" >&5
8323 echo "${ECHO_T}final adjustments
for an HP PA_RISC GNU
/Linux
host" >&6; }
8324 CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
8326 CONFIG_BSHARED="-shared"
8329 echo "$ac_t""final adjustments
for a SGI
/Irix
host" 1>&6
8336 X11_LDFLAGS="$X_LIBS -lX11"
8337 CONFIG_WORD_MASK="0xfffffff8"
8338 CONFIG_STD_SETENV=""
8339 CONFIG_CHMOD="chmod"
8340 CONFIG_LIB_PATH="LD_LIBRARYN32_PATH
"
8342 m68k-*-linux* | mips-*-linux* | mipsel-*-linux* | arm*-*-linux*)
8343 { echo "$as_me:$LINENO: result
: final adjustments
for a supported GNU
/Linux
host" >&5
8344 echo "${ECHO_T}final adjustments
for a supported GNU
/Linux
host" >&6; }
8347 { echo "$as_me:$LINENO: result
: final adjustments
for a generic GNU
/Linux
host" >&5
8348 echo "${ECHO_T}final adjustments
for a generic GNU
/Linux
host" >&6; }
8351 { echo "$as_me:$LINENO: result
: final adjustments
for a generic
host" >&5
8352 echo "${ECHO_T}final adjustments
for a generic
host" >&6; }
8356 #--------------------------------------------------------------------
8357 # Temporary fix for link problem
8358 #--------------------------------------------------------------------
8360 case "$GXX_VERSION" in
8362 CONFIG_BSTATIC="-static"
8363 CONFIG_BSHARED="-dynamic"
8367 #--------------------------------------------------------------------
8368 # Memory allocation options
8369 #--------------------------------------------------------------------
8371 # Check whether --enable-fastalloc was given.
8372 if test "${enable_fastalloc+set}" = set; then
8373 enableval=$enable_fastalloc;
8375 enable_fastalloc="yes"
8378 case "$enable_fastalloc" in
8382 { echo "$as_me:$LINENO: result
: disabling fast allocator
for small objects
" >&5
8383 echo "${ECHO_T}disabling fast allocator
for small objects
" >&6; }
8385 cat >>confdefs.h <<\_ACEOF
8386 #define NO_FAST_ALLOC 1
8391 { { echo "$as_me:$LINENO: error
: bad option
--enable-fastalloc=$enable_fastalloc" >&5
8392 echo "$as_me: error
: bad option
--enable-fastalloc=$enable_fastalloc" >&2;}
8393 { (exit 1); exit 1; }; }
8397 #--------------------------------------------------------------------
8398 # Experimental options
8399 #--------------------------------------------------------------------
8401 # Check whether --enable-experimental was given.
8402 if test "${enable_experimental+set}" = set; then
8403 enableval=$enable_experimental;
8405 enable_experimental="no
"
8408 case "$enable_experimental" in
8410 { echo "$as_me:$LINENO: result
: enabling experimental style rewriting code
" >&5
8411 echo "${ECHO_T}enabling experimental style rewriting code
" >&6; }
8413 cat >>confdefs.h <<\_ACEOF
8414 #define EXPERIMENTAL 1
8417 CONFIG_EXPERIMENTAL="Memorizer Environment Evaluate
"
8420 { echo "$as_me:$LINENO: result
: disabling experimental style rewriting code
" >&5
8421 echo "${ECHO_T}disabling experimental style rewriting code
" >&6; }
8422 CONFIG_EXPERIMENTAL=""
8425 { { echo "$as_me:$LINENO: error
: bad option
--enable-experimental=$enable_experimental" >&5
8426 echo "$as_me: error
: bad option
--enable-experimental=$enable_experimental" >&2;}
8427 { (exit 1); exit 1; }; }
8432 #--------------------------------------------------------------------
8433 # MacOS X extensions (spellchecker, image loading)
8434 #--------------------------------------------------------------------
8436 # Check whether --enable-macosx-extensions was given.
8437 if test "${enable_macosx_extensions+set}" = set; then
8438 enableval=$enable_macosx_extensions;
8440 enable_macosx_extensions="no
"
8443 case "$enable_macosx_extensions" in
8445 { echo "$as_me:$LINENO: result
: enabling Mac OSX extensions
" >&5
8446 echo "${ECHO_T}enabling Mac OSX extensions
" >&6; }
8448 cat >>confdefs.h <<\_ACEOF
8449 #define MACOSX_EXTENSIONS 1
8452 CONFIG_MACOS="MacOS
"
8455 { echo "$as_me:$LINENO: result
: disabling Mac OSX extensions
" >&5
8456 echo "${ECHO_T}disabling Mac OSX extensions
" >&6; }
8460 { { echo "$as_me:$LINENO: error
: bad option
--enable-macosx-extensions=$enable_macosx_extensions" >&5
8461 echo "$as_me: error
: bad option
--enable-macosx-extensions=$enable_macosx_extensions" >&2;}
8462 { (exit 1); exit 1; }; }
8467 #--------------------------------------------------------------------
8469 #--------------------------------------------------------------------
8475 # Check whether --enable-qt was given.
8476 if test "${enable_qt+set}" = set; then
8477 enableval=$enable_qt;
8483 case "$enable_qt" in
8486 if test -r "/c
/Qt
"; then
8488 qt_bin="`dirname $MOC`"
8489 qt_home="`dirname $qt_bin`"
8490 qt_version="`basename $qt_home`"
8491 qt_parent="`dirname $qt_home`"
8492 QT_CPPFLAGS="-I$qt_home/mkspecs
/macx-g
++ -I$qt_home/include
/QtCore
-I$qt_home/include
/QtGui
-I$qt_home/include
-I/$qt_home/include
/ActiveQt
-I.
"
8493 QT_CXXFLAGS="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
8494 QT_LDFLAGS="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows
"
8495 QT_LIBS="-L'c:/Qt/$qt_version/lib' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
8496 if test "$qt_parent" != "/c
/Qt
"; then
8504 test x"$TROLL" != x && echo 'ViM rox emacs.'
8507 # Check whether --with-qt was given.
8508 if test "${with_qt+set}" = set; then
8509 withval=$with_qt; QT_PATH=$withval
8516 if test -d /usr/local/Trolltech; then
8517 # Try to find the latest version.
8518 tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
8519 | xargs | sed 's/ */:/g'`
8523 for ac_prog in qmake
8525 # Extract the first word of "$ac_prog", so it can be a program name with args.
8526 set dummy $ac_prog; ac_word=$2
8527 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8528 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8529 if test "${ac_cv_path_QMAKE+set}" = set; then
8530 echo $ECHO_N "(cached
) $ECHO_C" >&6
8534 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
8539 for as_dir in $as_dummy
8542 test -z "$as_dir" && as_dir=.
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8545 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
8546 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8556 QMAKE=$ac_cv_path_QMAKE
8557 if test -n "$QMAKE"; then
8558 { echo "$as_me:$LINENO: result
: $QMAKE" >&5
8559 echo "${ECHO_T}$QMAKE" >&6; }
8561 { echo "$as_me:$LINENO: result
: no
" >&5
8562 echo "${ECHO_T}no
" >&6; }
8566 test -n "$QMAKE" && break
8568 test -n "$QMAKE" || QMAKE="missing
"
8570 if test x"$QMAKE" = xmissing; then
8571 { { echo "$as_me:$LINENO: error
: Cannot
find qmake
in your PATH. Try using
--with-qt.
" >&5
8572 echo "$as_me: error
: Cannot
find qmake
in your PATH. Try using
--with-qt.
" >&2;}
8573 { (exit 1); exit 1; }; }
8576 # Find moc (Meta Object Compiler).
8579 # Extract the first word of "$ac_prog", so it can be a program name with args.
8580 set dummy $ac_prog; ac_word=$2
8581 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8582 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8583 if test "${ac_cv_path_MOC+set}" = set; then
8584 echo $ECHO_N "(cached
) $ECHO_C" >&6
8588 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
8593 for as_dir in $as_dummy
8596 test -z "$as_dir" && as_dir=.
8597 for ac_exec_ext in '' $ac_executable_extensions; do
8598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8599 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
8600 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8611 if test -n "$MOC"; then
8612 { echo "$as_me:$LINENO: result
: $MOC" >&5
8613 echo "${ECHO_T}$MOC" >&6; }
8615 { echo "$as_me:$LINENO: result
: no
" >&5
8616 echo "${ECHO_T}no
" >&6; }
8620 test -n "$MOC" && break
8622 test -n "$MOC" || MOC="missing
"
8624 if test x"$MOC" = xmissing; then
8625 { { echo "$as_me:$LINENO: error
: Cannot
find moc
(Meta Object Compiler
) in your PATH. Try using
--with-qt.
" >&5
8626 echo "$as_me: error
: Cannot
find moc
(Meta Object Compiler
) in your PATH. Try using
--with-qt.
" >&2;}
8627 { (exit 1); exit 1; }; }
8630 # Find uic (User Interface Compiler).
8633 # Extract the first word of "$ac_prog", so it can be a program name with args.
8634 set dummy $ac_prog; ac_word=$2
8635 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8636 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8637 if test "${ac_cv_path_UIC+set}" = set; then
8638 echo $ECHO_N "(cached
) $ECHO_C" >&6
8642 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
8645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
8647 for as_dir in $as_dummy
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8653 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
8654 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8665 if test -n "$UIC"; then
8666 { echo "$as_me:$LINENO: result
: $UIC" >&5
8667 echo "${ECHO_T}$UIC" >&6; }
8669 { echo "$as_me:$LINENO: result
: no
" >&5
8670 echo "${ECHO_T}no
" >&6; }
8674 test -n "$UIC" && break
8676 test -n "$UIC" || UIC="missing
"
8678 if test x"$UIC" = xmissing; then
8679 { { echo "$as_me:$LINENO: error
: Cannot
find uic
(User Interface Compiler
) in your PATH. Try using
--with-qt.
" >&5
8680 echo "$as_me: error
: Cannot
find uic
(User Interface Compiler
) in your PATH. Try using
--with-qt.
" >&2;}
8681 { (exit 1); exit 1; }; }
8684 # Find rcc (Qt Resource Compiler).
8687 # Extract the first word of "$ac_prog", so it can be a program name with args.
8688 set dummy $ac_prog; ac_word=$2
8689 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8690 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8691 if test "${ac_cv_path_RCC+set}" = set; then
8692 echo $ECHO_N "(cached
) $ECHO_C" >&6
8696 ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
8699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
8701 for as_dir in $as_dummy
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8707 ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
8708 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8719 if test -n "$RCC"; then
8720 { echo "$as_me:$LINENO: result
: $RCC" >&5
8721 echo "${ECHO_T}$RCC" >&6; }
8723 { echo "$as_me:$LINENO: result
: no
" >&5
8724 echo "${ECHO_T}no
" >&6; }
8728 test -n "$RCC" && break
8730 test -n "$RCC" || RCC="false
"
8732 if test x"$UIC" = xfalse; then
8733 { echo "$as_me:$LINENO: WARNING
: Cannot
find rcc
(Qt Resource Compiler
) in your PATH. Try using
--with-qt.
" >&5
8734 echo "$as_me: WARNING
: Cannot
find rcc
(Qt Resource Compiler
) in your PATH. Try using
--with-qt.
" >&2;}
8737 # If we don't know the path to Qt, guess it from the path to qmake.
8738 if test x"$QT_PATH" = x; then
8739 QT_PATH=`dirname "$QMAKE"`
8741 if test x"$QT_PATH" = x; then
8742 { { echo "$as_me:$LINENO: error
: Cannot
find the path to your Qt
install. Use
--with-qt.
" >&5
8743 echo "$as_me: error
: Cannot
find the path to your Qt
install. Use
--with-qt.
" >&2;}
8744 { (exit 1); exit 1; }; }
8748 # Get ready to build a test-app with Qt.
8750 # Look for a writable temporary directory.
8752 if test x"$TMPDIR" = x || test ! -d "$TMPDIR" || test ! -w "$TMPDIR"; then
8753 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR
($TMPDIR)" \
8755 for i in /tmp /var/tmp; do
8756 if test -d "$i" && test -w "$i"; then
8759 echo "$as_me:$LINENO: setting TMPDIR
=$TMPDIR" >&5
8765 # Kludge!! QMake has a very strange behavior. For instance, if you
8766 # install Qt under your $HOME and run QMake somewhere else under your
8767 # $HOME, it will try to be clever and produce Makefiles with relative
8768 # include paths. In order to avoid this, we will test QMake from a
8769 # temporary directory (usually /tmp). Note that this problem was only
8770 # observed with Qt 4.
8771 my_configure_pwd=`pwd`
8772 my_tmpdir="$TMPDIR/conftest$$.dir
"
8773 test -d "$my_tmpdir" || mkdir "$my_tmpdir"
8774 if test -w "$my_tmpdir" && cd "$my_tmpdir"
8778 { { echo "$as_me:$LINENO: error
: Cannot
cd to or
write in $my_tmpdir" >&5
8779 echo "$as_me: error
: Cannot
cd to or
write in $my_tmpdir" >&2;}
8780 { (exit 1); exit 1; }; }
8782 cat >conftest.h <<_ASEOF
8785 class Foo: public QObject
8792 void setValue(int value);
8794 void valueChanged(int newValue);
8800 cat >conftest.cpp <<_ASEOF
8801 #include "conftest.h
"
8805 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
8808 void Foo::setValue(int value)
8818 if $QMAKE -project; then :; else
8819 { { echo "$as_me:$LINENO: error
: Calling
$QMAKE -project failed.
" >&5
8820 echo "$as_me: error
: Calling
$QMAKE -project failed.
" >&2;}
8821 { (exit 1); exit 1; }; }
8824 # Find the .pro file generated by qmake.
8825 pro_file='conftest.dir.pro'
8826 test -f $pro_file || pro_file=`echo *.pro`
8827 if test -f "$pro_file"; then :; else
8828 { { echo "$as_me:$LINENO: error
: Can
't find the .pro file generated by Qmake." >&5
8829 echo "$as_me: error: Can't
find the .pro
file generated by Qmake.
" >&2;}
8830 { (exit 1); exit 1; }; }
8839 echo "$as_me:$LINENO: Invoking
$QMAKE on
$pro_file" >&5
8840 sed 's/^/| /' "$pro_file" >&5
8842 additional_qmake_flags=""
8845 additional_qmake_flags="-spec macx-g
++"
8849 if $QMAKE ${additional_qmake_flags} ; then :; else
8850 { { echo "$as_me:$LINENO: error
: Calling
$QMAKE failed.
" >&5
8851 echo "$as_me: error
: Calling
$QMAKE failed.
" >&2;}
8852 { (exit 1); exit 1; }; }
8854 # Try to compile a simple Qt app.
8855 { echo "$as_me:$LINENO: checking whether we can build a simple Qt app
" >&5
8856 echo $ECHO_N "checking whether we can build a simple Qt app...
$ECHO_C" >&6; }
8857 if test "${at_cv_qt_build+set}" = set; then
8858 echo $ECHO_N "(cached
) $ECHO_C" >&6
8863 if $MAKE >&5 2>&1; then
8864 at_cv_qt_build='ok, looks like Qt 4'
8866 echo "$as_me:$LINENO: Build failed
, trying to
#include <qobject.h> \
8868 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
8869 if $MAKE >&5 2>&1; then
8870 at_cv_qt_build='ok, looks like Qt 3'
8872 # Sometimes (such as on Debian) build will fail because Qt hasn't been
8873 # installed in debug mode and qmake tries (by default) to build apps in
8874 # debug mode => Try again in release mode.
8875 echo "$as_me:$LINENO: Build failed
, trying to enforce release mode
" \
8878 # Tweak the value of CONFIG in the .pro file for +release.
8881 for at_mod in +release; do
8882 at_mod=`echo "$at_mod" | sed 's/^-//; tough
8891 echo "$qt_conf" | sed 1d >>"$pro_file"
8894 sed 's/<qobject.h>/<QObject>/' conftest.h > tmp.h && mv tmp.h conftest.h
8895 if $MAKE >&5 2>&1; then
8896 at_cv_qt_build='ok, looks like Qt 4, release mode forced'
8898 echo "$as_me:$LINENO: Build failed
, trying to
#include <qobject.h> \
8900 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
8901 if $MAKE >&5 2>&1; then
8902 at_cv_qt_build='ok, looks like Qt 3, release mode forced'
8905 echo "$as_me:$LINENO: failed program was
:" >&5
8906 sed 's/^/| /' conftest.h >&5
8907 echo "$as_me:$LINENO: failed program was
:" >&5
8908 sed 's/^/| /' conftest.cpp >&5
8909 fi # if make with Qt3-style #include and release mode forced.
8910 fi # if make with Qt4-style #include and release mode forced.
8911 fi # if make with Qt3-style #include.
8912 fi # if make with Qt4-style #include.
8915 { echo "$as_me:$LINENO: result
: $at_cv_qt_build" >&5
8916 echo "${ECHO_T}$at_cv_qt_build" >&6; }
8917 if test x"$at_cv_qt_build" = xko; then
8918 { { echo "$as_me:$LINENO: error
: Cannot build a
test Qt program
" >&5
8919 echo "$as_me: error
: Cannot build a
test Qt program
" >&2;}
8920 { (exit 1); exit 1; }; }
8922 QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
8925 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
8926 # It starts by removing the beginning of the line, removing references to
8927 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
8928 # all variable uses by QT_.
8929 qt_sed_filter='s///;
8932 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
8934 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
8935 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
8936 # Makefile.Release. The reason is that the main difference is that release
8937 # uses -Os and debug -g. We can override -Os by passing another -O but we
8938 # usually don't override -g.
8939 if test -f Makefile.Release; then
8940 at_mfile='Makefile.Release'
8944 if test -f $at_mfile; then :; else
8945 cd "$my_configure_pwd"
8946 { { echo "$as_me:$LINENO: error
: Cannot
find the Makefile generated by qmake.
" >&5
8947 echo "$as_me: error
: Cannot
find the Makefile generated by qmake.
" >&2;}
8948 { (exit 1); exit 1; }; }
8951 # Find the DEFINES of Qt (should have been named CPPFLAGS).
8952 { echo "$as_me:$LINENO: checking
for the DEFINES to use with Qt
" >&5
8953 echo $ECHO_N "checking
for the DEFINES to use with Qt...
$ECHO_C" >&6; }
8954 if test "${at_cv_env_QT_DEFINES+set}" = set; then
8955 echo $ECHO_N "(cached
) $ECHO_C" >&6
8957 at_cv_env_QT_DEFINES=`sed "/^DEFINES
[^A-Z
]*=/!d
;$qt_sed_filter" $at_mfile`
8959 { echo "$as_me:$LINENO: result
: $at_cv_env_QT_DEFINES" >&5
8960 echo "${ECHO_T}$at_cv_env_QT_DEFINES" >&6; }
8961 QT_DEFINES=$at_cv_env_QT_DEFINES
8964 # Find the CFLAGS of Qt (We can use Qt in C?!)
8965 { echo "$as_me:$LINENO: checking
for the CFLAGS to use with Qt
" >&5
8966 echo $ECHO_N "checking
for the CFLAGS to use with Qt...
$ECHO_C" >&6; }
8967 if test "${at_cv_env_QT_CFLAGS+set}" = set; then
8968 echo $ECHO_N "(cached
) $ECHO_C" >&6
8970 at_cv_env_QT_CFLAGS=`sed "/^CFLAGS
[^A-Za-z
]*=/!d
;$qt_sed_filter" $at_mfile`
8972 { echo "$as_me:$LINENO: result
: $at_cv_env_QT_CFLAGS" >&5
8973 echo "${ECHO_T}$at_cv_env_QT_CFLAGS" >&6; }
8974 QT_CFLAGS=$at_cv_env_QT_CFLAGS
8977 # Find the CXXFLAGS of Qt.
8978 { echo "$as_me:$LINENO: checking
for the CXXFLAGS to use with Qt
" >&5
8979 echo $ECHO_N "checking
for the CXXFLAGS to use with Qt...
$ECHO_C" >&6; }
8980 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then
8981 echo $ECHO_N "(cached
) $ECHO_C" >&6
8983 at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS
[^A-Za-z
]*=/!d
;$qt_sed_filter" $at_mfile`
8985 { echo "$as_me:$LINENO: result
: $at_cv_env_QT_CXXFLAGS" >&5
8986 echo "${ECHO_T}$at_cv_env_QT_CXXFLAGS" >&6; }
8987 QT_CXXFLAGS=$at_cv_env_QT_CXXFLAGS
8990 # Find the INCPATH of Qt.
8991 { echo "$as_me:$LINENO: checking
for the INCPATH to use with Qt
" >&5
8992 echo $ECHO_N "checking
for the INCPATH to use with Qt...
$ECHO_C" >&6; }
8993 if test "${at_cv_env_QT_INCPATH+set}" = set; then
8994 echo $ECHO_N "(cached
) $ECHO_C" >&6
8996 at_cv_env_QT_INCPATH=`sed "/^INCPATH
[^A-Z
]*=/!d
;$qt_sed_filter" $at_mfile`
8998 { echo "$as_me:$LINENO: result
: $at_cv_env_QT_INCPATH" >&5
8999 echo "${ECHO_T}$at_cv_env_QT_INCPATH" >&6; }
9000 QT_INCPATH=$at_cv_env_QT_INCPATH
9003 QT_CPPFLAGS="$at_cv_env_QT_DEFINES $at_cv_env_QT_INCPATH"
9006 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
9007 { echo "$as_me:$LINENO: checking
for the LDFLAGS to use with Qt
" >&5
9008 echo $ECHO_N "checking
for the LDFLAGS to use with Qt...
$ECHO_C" >&6; }
9009 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then
9010 echo $ECHO_N "(cached
) $ECHO_C" >&6
9012 at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS
[^A-Za-z
]*=/!d
;$qt_sed_filter" $at_mfile`
9014 { echo "$as_me:$LINENO: result
: $at_cv_env_QT_LDFLAGS" >&5
9015 echo "${ECHO_T}$at_cv_env_QT_LDFLAGS" >&6; }
9016 QT_LFLAGS=$at_cv_env_QT_LDFLAGS
9018 QT_LDFLAGS=$at_cv_env_QT_LDFLAGS
9021 { echo "$as_me:$LINENO: checking whether
host operating system is Darwin
" >&5
9022 echo $ECHO_N "checking whether
host operating system is Darwin...
$ECHO_C" >&6; }
9029 { echo "$as_me:$LINENO: result
: $at_darwin" >&5
9030 echo "${ECHO_T}$at_darwin" >&6; }
9032 # Find the LIBS of Qt.
9033 { echo "$as_me:$LINENO: checking
for the LIBS to use with Qt
" >&5
9034 echo $ECHO_N "checking
for the LIBS to use with Qt...
$ECHO_C" >&6; }
9035 if test "${at_cv_env_QT_LIBS+set}" = set; then
9036 echo $ECHO_N "(cached
) $ECHO_C" >&6
9038 at_cv_env_QT_LIBS=`sed "/^LIBS
[^A-Za-z
]*=/!d
;$qt_sed_filter" $at_mfile`
9039 if test x$at_darwin = xyes; then
9040 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
9041 # -F properly. The "bug
" has been fixed on 22 October 2006
9042 # by Peter O'Gorman but we provide backward compatibility here.
9043 at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
9044 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
9048 { echo "$as_me:$LINENO: result
: $at_cv_env_QT_LIBS" >&5
9049 echo "${ECHO_T}$at_cv_env_QT_LIBS" >&6; }
9050 QT_LIBS=$at_cv_env_QT_LIBS
9053 cd "$my_configure_pwd" || echo 'WTF!'
9058 if test x"$at_cv_qt_build" = xko; then
9059 { { echo "$as_me:$LINENO: error
: cannot
find Qt
!" >&5
9060 echo "$as_me: error
: cannot
find Qt
!" >&2;}
9061 { (exit 1); exit 1; }; }
9063 { echo "$as_me:$LINENO: result
: enabling experimental Qt port
" >&5
9064 echo "${ECHO_T}enabling experimental Qt port
" >&6; }
9069 { echo "$as_me:$LINENO: result
: disabling experimental Qt port
" >&5
9070 echo "${ECHO_T}disabling experimental Qt port
" >&6; }
9073 { { echo "$as_me:$LINENO: error
: bad option
--enable-qt=$enable_qt" >&5
9074 echo "$as_me: error
: bad option
--enable-qt=$enable_qt" >&2;}
9075 { (exit 1); exit 1; }; }
9079 # Check whether --enable-cocoa was given.
9080 if test "${enable_cocoa+set}" = set; then
9081 enableval=$enable_cocoa;
9086 case "$enable_cocoa" in
9088 { echo "$as_me:$LINENO: result
: enabling experimental Cocoa port
" >&5
9089 echo "${ECHO_T}enabling experimental Cocoa port
" >&6; }
9091 COCOA_LDFLAGS="-framework Cocoa
"
9095 { echo "$as_me:$LINENO: result
: disabling experimental Cocoa port
" >&5
9096 echo "${ECHO_T}disabling experimental Cocoa port
" >&6; }
9099 { { echo "$as_me:$LINENO: error
: bad option
--enable-cocoa=$enable_cocoa" >&5
9100 echo "$as_me: error
: bad option
--enable-cocoa=$enable_cocoa" >&2;}
9101 { (exit 1); exit 1; }; }
9105 case "$CONFIG_GUI" in
9107 CONFIG_X11="X11 Widkit Ghostscript
"
9109 cat >>confdefs.h <<\_ACEOF
9110 #define X11TEXMACS 1
9115 CONFIG_COCOA="Cocoa
"
9117 cat >>confdefs.h <<\_ACEOF
9118 #define AQUATEXMACS 1
9125 cat >>confdefs.h <<\_ACEOF
9142 #--------------------------------------------------------------------
9144 #--------------------------------------------------------------------
9146 STD_DEBUG_FLAGS="-fno-rtti -fno-exceptions"
9147 if test "$enable_cocoa" = "yes"; then
9148 STD_DEBUG_FLAGS="-fno-exceptions"
9151 { echo "$as_me:$LINENO: checking
if compiler supports
$STD_DEBUG_FLAGS" >&5
9152 echo $ECHO_N "checking
if compiler supports
$STD_DEBUG_FLAGS...
$ECHO_C" >&6; }
9153 CXXFLAGS="$STD_DEBUG_FLAGS"
9154 cat >conftest.$ac_ext <<_ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9161 int some_variable = 0;
9172 rm -f conftest.$ac_objext
9173 if { (ac_try="$ac_compile"
9175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9176 *) ac_try_echo=$ac_try;;
9178 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9179 (eval "$ac_compile") 2>conftest.er1
9181 grep -v '^ *+' conftest.er1 >conftest.err
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9185 (exit $ac_status); } && {
9186 test -z "$ac_cxx_werror_flag" ||
9187 test ! -s conftest.err
9188 } && test -s conftest.$ac_objext; then
9190 CONFIG_CXXDIALECT="$STD_DEBUG_FLAGS"
9191 { echo "$as_me:$LINENO: result
: yes" >&5
9192 echo "${ECHO_T}yes" >&6; }
9195 echo "$as_me: failed program was
:" >&5
9196 sed 's/^/| /' conftest.$ac_ext >&5
9199 CONFIG_CXXDIALECT=""
9200 { echo "$as_me:$LINENO: result
: no
" >&5
9201 echo "${ECHO_T}no
" >&6; }
9205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9209 # Check whether --enable-debug was given.
9210 if test "${enable_debug+set}" = set; then
9211 enableval=$enable_debug;
9217 if test "$enable_debug" = "yes"; then
9218 if test "$GXX" = "yes"; then
9219 enable_debug="-ggdb"
9225 if test "$enable_debug" = "no
"; then
9226 { echo "$as_me:$LINENO: result
: disabling debugging
" >&5
9227 echo "${ECHO_T}disabling debugging
" >&6; }
9228 CONFIG_STRIP="strip
"
9230 optimize_default="yes"
9232 { echo "$as_me:$LINENO: result
: enabling debugging
, $enable_debug" >&5
9233 echo "${ECHO_T}enabling debugging
, $enable_debug" >&6; }
9235 CONFIG_CXXDEBUG="$enable_debug"
9236 optimize_default="no
"
9239 # Check whether --enable-assert was given.
9240 if test "${enable_assert+set}" = set; then
9241 enableval=$enable_assert;
9247 if test "$enable_assert" = "no
"; then
9248 { echo "$as_me:$LINENO: result
: disabling assertion checking
" >&5
9249 echo "${ECHO_T}disabling assertion checking
" >&6; }
9251 { echo "$as_me:$LINENO: result
: enabling assertion checking
" >&5
9252 echo "${ECHO_T}enabling assertion checking
" >&6; }
9254 cat >>confdefs.h <<\_ACEOF
9255 #define DEBUG_ASSERT 1
9260 #--------------------------------------------------------------------
9262 #--------------------------------------------------------------------
9264 case "$GXX_VERSION" in
9266 CONFIG_CXXWARNING="";
9269 CONFIG_CXXWARNING="-Wall -Wno-return-type"
9273 # Check whether --enable-warnings was given.
9274 if test "${enable_warnings+set}" = set; then
9275 enableval=$enable_warnings;
9277 enable_warnings="yes"
9280 case "$enable_warnings" in
9282 { echo "$as_me:$LINENO: result
: enabling warning flags
$CONFIG_CXXWARNING" >&5
9283 echo "${ECHO_T}enabling warning flags
$CONFIG_CXXWARNING" >&6; } ;;
9285 CONFIG_CXXWARNING=""
9286 { echo "$as_me:$LINENO: result
: disabling warning flags
" >&5
9287 echo "${ECHO_T}disabling warning flags
" >&6; } ;;
9289 CONFIG_CXXWARNING="$enable_warnings"
9290 { echo "$as_me:$LINENO: result
: enabling warning flags
$CONFIG_CXXWARNING" >&5
9291 echo "${ECHO_T}enabling warning flags
$CONFIG_CXXWARNING" >&6; } ;;
9294 #--------------------------------------------------------------------
9295 # Optimization options
9296 #--------------------------------------------------------------------
9298 if test "$optimize_default" = "yes"; then
9299 case "$GXX_VERSION" in
9300 3.3.3 | 3.3.4 | 4.*)
9302 2.96 | 3.0 | 3.0.* | 3.1 | 3.1.* | 3.2 | 3.2.* | 3.3 | 3.3.*)
9304 i*86-*-linux-gnu* | i*86-*-freebsd*)
9305 { echo "$as_me:$LINENO: WARNING
: using g
++ 3.
*, optimize without inline by default
" >&5
9306 echo "$as_me: WARNING
: using g
++ 3.
*, optimize without inline by default
" >&2;}
9307 optimize_default="no-inline
"
9310 { echo "$as_me:$LINENO: WARNING
: using g
++ 3.
*, optimize without inline by default
" >&5
9311 echo "$as_me: WARNING
: using g
++ 3.
*, optimize without inline by default
" >&2;}
9312 optimize_default="no-inline
"
9319 # Check whether --enable-optimize was given.
9320 if test "${enable_optimize+set}" = set; then
9321 enableval=$enable_optimize;
9323 enable_optimize="$optimize_default"
9327 case "$enable_optimize" in
9329 # keep optimization options
9330 { echo "$as_me:$LINENO: result
: enabling optimizations
, $CONFIG_CXXOPTIMIZE" >&5
9331 echo "${ECHO_T}enabling optimizations
, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9333 optimize_no_inline="-fno-default-inline -fno-inline"
9334 CONFIG_CXXOPTIMIZE="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
9335 { echo "$as_me:$LINENO: result
: enabling optimizations
, $CONFIG_CXXOPTIMIZE" >&5
9336 echo "${ECHO_T}enabling optimizations
, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9338 CONFIG_CXXOPTIMIZE=""
9339 { echo "$as_me:$LINENO: result
: disabling optimizations
" >&5
9340 echo "${ECHO_T}disabling optimizations
" >&6; } ;;
9342 CONFIG_CXXOPTIMIZE="$enable_optimize"
9343 { echo "$as_me:$LINENO: result
: customizing optimizations
, $enable_optimize" >&5
9344 echo "${ECHO_T}customizing optimizations
, $enable_optimize" >&6; } ;;
9347 #--------------------------------------------------------------------
9348 # Substitute TeXmacs specific configuration parameters
9349 #--------------------------------------------------------------------
9372 #--------------------------------------------------------------------
9373 # Default paths for installation
9374 #--------------------------------------------------------------------
9376 if test "$prefix" = ""; then
9379 if test "$prefix" = "NONE
"; then
9382 if test "$exec_prefix" = ""; then
9383 exec_prefix='${prefix}'
9385 if test "$exec_prefix" = "NONE
"; then
9386 exec_prefix='${prefix}'
9388 if test "$exec_prefix" = '${prefix}'; then
9389 exec_prefix='${prefix}'
9391 if test "$includedir" = ""; then
9392 includedir='${prefix}/include'
9394 if test "$includedir" = "NONE
"; then
9395 includedir='${prefix}/include'
9397 if test "$includedir" = '${prefix}/include'; then
9398 includedir='${prefix}/include'
9400 if test "$libdir" = ""; then
9401 libdir='${exec_prefix}/lib'
9403 if test "$libdir" = "NONE
"; then
9404 libdir='${exec_prefix}/lib'
9406 if test "$libdir" = '${exec_prefix}/lib'; then
9407 libdir='${exec_prefix}/lib'
9409 if test "$bindir" = ""; then
9410 bindir='${exec_prefix}/bin'
9412 if test "$bindir" = "NONE
"; then
9413 bindir=${exec_prefix}/bin
9415 if test "$bindir" = '${exec_prefix}/bin'; then
9416 bindir='${exec_prefix}/bin'
9418 if test "$datarootdir" = ""; then
9419 datarootdir='${prefix}/share'
9421 if test "$datarootdir" = "NONE
"; then
9422 datarootdir='${prefix}/share'
9424 if test "$datarootdir" = '${prefix}/share'; then
9425 datarootdir='${prefix}/share'
9427 if test "$datadir" = ""; then
9428 datadir='${prefix}/share'
9430 if test "$datadir" = "NONE
"; then
9431 datadir='${prefix}/share'
9433 if test "$datadir" = '${prefix}/share'; then
9434 datadir='${prefix}/share'
9436 if test "$mandir" = ""; then
9437 mandir='${datarootdir}/man'
9439 if test "$mandir" = "NONE
"; then
9440 mandir='${datarootdir}/man'
9442 if test "$mandir" = '${datarootdir}/man'; then
9443 mandir='${datarootdir}/man'
9445 if test "$libexecdir" = ""; then
9446 libexecdir='${exec_prefix}/libexec'
9448 if test "$libexecdir" = "NONE
"; then
9449 libexecdir='${exec_prefix}/libexec'
9451 if test "$libexecdir" = '${exec_prefix}/libexec'; then
9452 libexecdir='${exec_prefix}/libexec'
9458 tmsrc=${curdir}/${tmdir}
9459 tmbin=${libexecdir}/${tmdir}
9460 tmdata=${datadir}/${tmdir}
9467 if test "$DEVEL_RELEASE" = "1"; then
9468 tmtgz=${PACKAGE}-${DEVEL_VERSION}
9470 tmtgz=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
9472 tmrpm=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
9473 if test "$STABLE_RELEASE" = "1"; then
9474 tmstgz=${PACKAGE}-${STABLE_VERSION}
9476 tmstgz=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
9478 tmsrpm=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
9479 if test "$WINDOWS_RELEASE" = "1"; then
9480 tmwin=wintexmacs-${WINDOWS_VERSION}
9482 tmwin=wintexmacs-${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
9490 #--------------------------------------------------------------------
9492 #--------------------------------------------------------------------
9494 ac_config_files="$ac_config_files Makefile
:Makefile.
in src
/makefile
:src
/makefile.
in src
/System
/tm_configure.hpp
:src
/System
/tm_configure.
in misc
/admin
/admin.makefile
:misc
/admin
/admin.makefile.
in misc
/doxygen
/Doxyfile
:misc
/doxygen
/Doxyfile.
in misc
/man
/texmacs
.1:misc
/man
/texmacs
.1.
in misc
/rpm
/TeXmacs.spec
:misc
/rpm
/TeXmacs.spec.
in misc
/scripts
/fig2ps
:misc
/scripts
/fig2ps.
in misc
/scripts
/texmacs
:misc
/scripts
/texmacs.
in TeXmacs
/examples
/plugins
/dynlink
/Makefile
:TeXmacs
/examples
/plugins
/dynlink
/Makefile.
in"
9496 cat >confcache <<\_ACEOF
9497 # This file is a shell script that caches the results of configure
9498 # tests run on this system so they can be shared between configure
9499 # scripts and configure runs, see configure's option --config-cache.
9500 # It is not useful on other systems. If it contains results you don't
9501 # want to keep, you may remove or edit it.
9503 # config.status only pays attention to the cache file if you give it
9504 # the --recheck option to rerun configure.
9506 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9507 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9512 # The following way of writing the cache mishandles newlines in values,
9513 # but we know of no workaround that is simple, portable, and efficient.
9514 # So, we kill variables containing newlines.
9515 # Ultrix sh set writes to stderr and can't be redirected directly,
9516 # and sets the high bit in the cache file unless we assign to the vars.
9518 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9519 eval ac_val=\$$ac_var
9523 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
9524 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
9527 _ | IFS | as_nl) ;; #(
9528 *) $as_unset $ac_var ;;
9534 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9535 *${as_nl}ac_space=\ *)
9536 # `set' does not quote correctly, so add quotes (double-quote
9537 # substitution turns \\\\ into \\, and sed turns \\ into \).
9540 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
9543 # `set' quotes correctly as required by POSIX, so do not add quotes.
9544 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
9553 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9555 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9557 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9558 if test -w "$cache_file"; then
9559 test "x
$cache_file" != "x
/dev
/null
" &&
9560 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
9561 echo "$as_me: updating cache
$cache_file" >&6;}
9562 cat confcache >$cache_file
9564 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
9565 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
9570 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
9571 # Let make expand exec_prefix.
9572 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
9574 DEFS=-DHAVE_CONFIG_H
9578 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
9579 # 1. Remove the extension, and $U if already installed.
9580 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9581 ac_i=`echo "$ac_i" | sed "$ac_script"`
9582 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9583 # will be set to the directory where LIBOBJS objects are built.
9584 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
9585 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
9589 LTLIBOBJS=$ac_ltlibobjs
9593 : ${CONFIG_STATUS=./config.status}
9594 ac_clean_files_save=$ac_clean_files
9595 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9596 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
9597 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
9598 cat >$CONFIG_STATUS <<_ACEOF
9600 # Generated by $as_me.
9601 # Run this file to recreate the current configuration.
9602 # Compiler output produced by configure, useful for debugging
9603 # configure, is in config.log if it exists.
9608 SHELL=\${CONFIG_SHELL-$SHELL}
9611 cat >>$CONFIG_STATUS <<\_ACEOF
9612 ## --------------------- ##
9613 ## M4sh Initialization. ##
9614 ## --------------------- ##
9616 # Be more Bourne compatible
9617 DUALCASE=1; export DUALCASE # for MKS sh
9618 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9621 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9622 # is contrary to our usage. Disable this feature.
9623 alias -g '${1+"$@"}'='"$@
"'
9624 setopt NO_GLOB_SUBST
9626 case `(set -o) 2>/dev/null` in
9627 *posix*) set -o posix ;;
9636 # Avoid depending upon Character Ranges.
9637 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9638 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9639 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9640 as_cr_digits='0123456789'
9641 as_cr_alnum=$as_cr_Letters$as_cr_digits
9643 # The user is always right.
9644 if test "${PATH_SEPARATOR+set}" != set; then
9645 echo "#! /bin/sh" >conf$$.sh
9646 echo "exit 0" >>conf$$.sh
9648 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9656 # Support unset when possible.
9657 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
9665 # We need space, tab and new line, in precisely that order. Quoting is
9666 # there to prevent editors from complaining about space-tab.
9667 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9668 # splitting by setting IFS to empty value.)
9673 # Find who we are. Look in the path if we contain no directory separator.
9675 *[\\/]* ) as_myself
=$0 ;;
9676 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9680 test -z "$as_dir" && as_dir
=.
9681 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
9687 # We did not find ourselves, most probably we were run as `sh COMMAND'
9688 # in which case we are not to be found in the path.
9689 if test "x$as_myself" = x
; then
9692 if test ! -f "$as_myself"; then
9693 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9694 { (exit 1); exit 1; }
9697 # Work around bugs in pre-3.0 UWIN ksh.
9698 for as_var
in ENV MAIL MAILPATH
9699 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
9707 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9708 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9709 LC_TELEPHONE LC_TIME
9711 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9712 eval $as_var=C
; export $as_var
9714 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
9718 # Required to use basename.
9719 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9720 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9726 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9727 as_basename
=basename
9733 # Name of the executable.
9734 as_me
=`$as_basename -- "$0" ||
9735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9736 X"$0" : 'X\(//\)$' \| \
9737 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9739 sed '/^.*\/\([^/][^/]*\)\/*$/{
9760 test "x$as_lineno_1" != "x$as_lineno_2" &&
9761 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
9763 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9764 # uniformly replaced by the line number. The first 'sed' inserts a
9765 # line-number line after each line using $LINENO; the second 'sed'
9766 # does the real work. The second script uses 'N' to pair each
9767 # line-number line with the line containing $LINENO, and appends
9768 # trailing '-' during substitution so that $LINENO is not a special
9770 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9771 # scripts with optimization help from Paolo Bonzini. Blame Lee
9772 # E. McMahon (1931-1989) for sed's syntax. :-)
9784 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9788 chmod +x
"$as_me.lineno" ||
9789 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9790 { (exit 1); exit 1; }; }
9792 # Don't try to exec as it changes $[0], causing all sort of problems
9793 # (the dirname of $[0] is not the place where we might find the
9794 # original and so on. Autoconf is especially sensitive to this).
9796 # Exit status is that of the last command.
9801 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9807 ECHO_C
= ECHO_N
= ECHO_T
=
9810 case `echo 'x\c'` in
9811 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9818 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9819 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9825 rm -f conf$$ conf$$.exe conf$$.
file
9826 if test -d conf$$.dir
; then
9827 rm -f conf$$.dir
/conf$$.
file
9833 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9835 # ... but there are two gotchas:
9836 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9837 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9838 # In both cases, we have to default to `cp -p'.
9839 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
9841 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9846 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9847 rmdir conf$$.dir
2>/dev
/null
9849 if mkdir
-p .
2>/dev
/null
; then
9852 test -d .
/-p && rmdir .
/-p
9856 if test -x / >/dev
/null
2>&1; then
9859 if ls -dL / >/dev
/null
2>&1; then
9866 if test -d "$1"; then
9872 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9873 ???[sx]*):;;*)false;;esac;fi
9877 as_executable_p
=$as_test_x
9879 # Sed expression to map a string onto a valid CPP name.
9880 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9882 # Sed expression to map a string onto a valid variable name.
9883 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9888 # Save the log message, to keep $[0] and so on meaningful, and to
9889 # report actual input values of CONFIG_FILES etc. instead of their
9890 # values after options handling.
9892 This file was extended by $as_me, which was
9893 generated by GNU Autoconf 2.61. Invocation command line was
9895 CONFIG_FILES = $CONFIG_FILES
9896 CONFIG_HEADERS = $CONFIG_HEADERS
9897 CONFIG_LINKS = $CONFIG_LINKS
9898 CONFIG_COMMANDS = $CONFIG_COMMANDS
9901 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9906 cat >>$CONFIG_STATUS <<_ACEOF
9907 # Files that config.status was made for.
9908 config_files="$ac_config_files"
9909 config_headers="$ac_config_headers"
9913 cat >>$CONFIG_STATUS <<\_ACEOF
9915 \`$as_me' instantiates files from templates according to the
9916 current configuration.
9918 Usage: $0 [OPTIONS] [FILE]...
9920 -h, --help print this help, then exit
9921 -V, --version print version number and configuration settings, then exit
9922 -q, --quiet do not print progress messages
9923 -d, --debug don't remove temporary files
9924 --recheck update $as_me by reconfiguring in the same conditions
9925 --file=FILE[:TEMPLATE]
9926 instantiate the configuration file FILE
9927 --header=FILE[:TEMPLATE]
9928 instantiate the configuration header FILE
9930 Configuration files:
9933 Configuration headers:
9936 Report bugs to <bug-autoconf@gnu.org>."
9939 cat >>$CONFIG_STATUS <<_ACEOF
9942 configured by $0, generated by GNU Autoconf 2.61,
9943 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9945 Copyright (C) 2006 Free Software Foundation, Inc.
9946 This config.status script is free software; the Free Software Foundation
9947 gives unlimited permission to copy, distribute and modify it."
9953 cat >>$CONFIG_STATUS <<\_ACEOF
9954 # If no file are specified by the user, then we need to provide default
9955 # value. By we need to know if files were specified by the user.
9961 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9962 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9973 # Handling of the options.
9974 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9976 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9977 echo "$ac_cs_version"; exit ;;
9978 --debug |
--debu |
--deb |
--de |
--d |
-d )
9980 --file |
--fil |
--fi |
--f )
9982 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
9983 ac_need_defaults
=false
;;
9984 --header |
--heade |
--head |
--hea )
9986 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
9987 ac_need_defaults
=false
;;
9989 # Conflict between --help and --header
9990 { echo "$as_me: error: ambiguous option: $1
9991 Try \`$0 --help' for more information." >&2
9992 { (exit 1); exit 1; }; };;
9993 --help |
--hel |
-h )
9994 echo "$ac_cs_usage"; exit ;;
9995 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9996 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10000 -*) { echo "$as_me: error: unrecognized option: $1
10001 Try \`$0 --help' for more information." >&2
10002 { (exit 1); exit 1; }; } ;;
10004 *) ac_config_targets
="$ac_config_targets $1"
10005 ac_need_defaults
=false
;;
10011 ac_configure_extra_args
=
10013 if $ac_cs_silent; then
10015 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10019 cat >>$CONFIG_STATUS <<_ACEOF
10020 if \$ac_cs_recheck; then
10021 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10022 CONFIG_SHELL=$SHELL
10023 export CONFIG_SHELL
10024 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10028 cat >>$CONFIG_STATUS <<\_ACEOF
10032 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10033 ## Running $as_me. ##
10039 cat >>$CONFIG_STATUS <<_ACEOF
10042 cat >>$CONFIG_STATUS <<\_ACEOF
10044 # Handling of arguments.
10045 for ac_config_target
in $ac_config_targets
10047 case $ac_config_target in
10048 "src/System/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
10049 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile:Makefile.in" ;;
10050 "src/makefile") CONFIG_FILES
="$CONFIG_FILES src/makefile:src/makefile.in" ;;
10051 "src/System/tm_configure.hpp") CONFIG_FILES
="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
10052 "misc/admin/admin.makefile") CONFIG_FILES
="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
10053 "misc/doxygen/Doxyfile") CONFIG_FILES
="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
10054 "misc/man/texmacs.1") CONFIG_FILES
="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
10055 "misc/rpm/TeXmacs.spec") CONFIG_FILES
="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
10056 "misc/scripts/fig2ps") CONFIG_FILES
="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
10057 "misc/scripts/texmacs") CONFIG_FILES
="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
10058 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES
="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
10060 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10061 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10062 { (exit 1); exit 1; }; };;
10067 # If the user did not use the arguments to specify the items to instantiate,
10068 # then the envvar interface is used. Set only those that are not.
10069 # We use the long form for the default assignment because of an extremely
10070 # bizarre bug on SunOS 4.1.3.
10071 if $ac_need_defaults; then
10072 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10073 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10076 # Have a temporary directory for convenience. Make it in the build tree
10077 # simply because there is no reason against having it here, and in addition,
10078 # creating and moving files from /tmp can sometimes cause problems.
10079 # Hook for its removal unless debugging.
10080 # Note that there is a small window in which the directory will not be cleaned:
10081 # after its creation but before its name has been assigned to `$tmp'.
10085 trap 'exit_status=$?
10086 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10088 trap '{ (exit 1); exit 1; }' 1 2 13 15
10090 # Create a (secure) tmp directory for tmp files.
10093 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10094 test -n "$tmp" && test -d "$tmp"
10097 tmp
=.
/conf$$
-$RANDOM
10098 (umask 077 && mkdir
"$tmp")
10101 echo "$me: cannot create a temporary directory in ." >&2
10102 { (exit 1); exit 1; }
10106 # Set up the sed scripts for CONFIG_FILES section.
10109 # No need to generate the scripts if there are no CONFIG_FILES.
10110 # This happens for instance when ./config.status config.h
10111 if test -n "$CONFIG_FILES"; then
10118 for ac_last_try
in false false false false false
:; do
10119 cat >conf$
$subs.
sed <<_ACEOF
10120 SHELL!$SHELL$ac_delim
10121 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10122 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10123 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10124 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10125 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10126 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10127 exec_prefix!$exec_prefix$ac_delim
10128 prefix!$prefix$ac_delim
10129 program_transform_name!$program_transform_name$ac_delim
10130 bindir!$bindir$ac_delim
10131 sbindir!$sbindir$ac_delim
10132 libexecdir!$libexecdir$ac_delim
10133 datarootdir!$datarootdir$ac_delim
10134 datadir!$datadir$ac_delim
10135 sysconfdir!$sysconfdir$ac_delim
10136 sharedstatedir!$sharedstatedir$ac_delim
10137 localstatedir!$localstatedir$ac_delim
10138 includedir!$includedir$ac_delim
10139 oldincludedir!$oldincludedir$ac_delim
10140 docdir!$docdir$ac_delim
10141 infodir!$infodir$ac_delim
10142 htmldir!$htmldir$ac_delim
10143 dvidir!$dvidir$ac_delim
10144 pdfdir!$pdfdir$ac_delim
10145 psdir!$psdir$ac_delim
10146 libdir!$libdir$ac_delim
10147 localedir!$localedir$ac_delim
10148 mandir!$mandir$ac_delim
10149 DEFS!$DEFS$ac_delim
10150 ECHO_C!$ECHO_C$ac_delim
10151 ECHO_N!$ECHO_N$ac_delim
10152 ECHO_T!$ECHO_T$ac_delim
10153 LIBS!$LIBS$ac_delim
10154 build_alias!$build_alias$ac_delim
10155 host_alias!$host_alias$ac_delim
10156 target_alias!$target_alias$ac_delim
10157 PACKAGE!$PACKAGE$ac_delim
10158 DEVEL_VERSION!$DEVEL_VERSION$ac_delim
10159 DEVEL_RELEASE!$DEVEL_RELEASE$ac_delim
10160 STABLE_VERSION!$STABLE_VERSION$ac_delim
10161 STABLE_RELEASE!$STABLE_RELEASE$ac_delim
10163 CFLAGS!$CFLAGS$ac_delim
10164 LDFLAGS!$LDFLAGS$ac_delim
10165 CPPFLAGS!$CPPFLAGS$ac_delim
10166 ac_ct_CC!$ac_ct_CC$ac_delim
10167 EXEEXT!$EXEEXT$ac_delim
10168 OBJEXT!$OBJEXT$ac_delim
10170 CXXFLAGS!$CXXFLAGS$ac_delim
10171 ac_ct_CXX!$ac_ct_CXX$ac_delim
10172 GUILE_CFLAGS!$GUILE_CFLAGS$ac_delim
10173 GUILE_LDFLAGS!$GUILE_LDFLAGS$ac_delim
10174 CONFIG_GUILE_SERIAL!$CONFIG_GUILE_SERIAL$ac_delim
10175 CXXCPP!$CXXCPP$ac_delim
10176 GREP!$GREP$ac_delim
10177 EGREP!$EGREP$ac_delim
10178 XMKMF!$XMKMF$ac_delim
10179 X_CFLAGS!$X_CFLAGS$ac_delim
10180 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
10181 X_LIBS!$X_LIBS$ac_delim
10182 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
10183 CONFIG_BDL!$CONFIG_BDL$ac_delim
10185 ICONV_CFLAGS!$ICONV_CFLAGS$ac_delim
10186 ICONV_LDFLAGS!$ICONV_LDFLAGS$ac_delim
10187 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
10188 FREETYPE_LDFLAGS!$FREETYPE_LDFLAGS$ac_delim
10189 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
10190 CAIRO_LDFLAGS!$CAIRO_LDFLAGS$ac_delim
10191 IMLIB2_CFLAGS!$IMLIB2_CFLAGS$ac_delim
10192 IMLIB2_LDFLAGS!$IMLIB2_LDFLAGS$ac_delim
10193 AXEL_CFLAGS!$AXEL_CFLAGS$ac_delim
10194 AXEL_LDFLAGS!$AXEL_LDFLAGS$ac_delim
10195 build!$build$ac_delim
10196 build_cpu!$build_cpu$ac_delim
10197 build_vendor!$build_vendor$ac_delim
10198 build_os!$build_os$ac_delim
10199 host!$host$ac_delim
10200 host_cpu!$host_cpu$ac_delim
10201 host_vendor!$host_vendor$ac_delim
10202 host_os!$host_os$ac_delim
10203 CONFIG_EXPERIMENTAL!$CONFIG_EXPERIMENTAL$ac_delim
10204 CONFIG_MACOS!$CONFIG_MACOS$ac_delim
10205 QMAKE!$QMAKE$ac_delim
10209 QT_PATH!$QT_PATH$ac_delim
10210 TMPDIR!$TMPDIR$ac_delim
10211 QT_VERSION_MAJOR!$QT_VERSION_MAJOR$ac_delim
10212 QT_DEFINES!$QT_DEFINES$ac_delim
10213 QT_CFLAGS!$QT_CFLAGS$ac_delim
10214 QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
10215 QT_INCPATH!$QT_INCPATH$ac_delim
10216 QT_CPPFLAGS!$QT_CPPFLAGS$ac_delim
10219 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10221 elif $ac_last_try; then
10222 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10223 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10224 { (exit 1); exit 1; }; }
10226 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
10230 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10231 if test -n "$ac_eof"; then
10232 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
10233 ac_eof
=`expr $ac_eof + 1`
10236 cat >>$CONFIG_STATUS <<_ACEOF
10237 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10238 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10241 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10242 s/^/s,@/; s/!/@,|#_!!_#|/
10245 s/'"$ac_delim"'$/,g/; t
10247 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10248 ' >>$CONFIG_STATUS <conf$
$subs.
sed
10249 rm -f conf$
$subs.
sed
10250 cat >>$CONFIG_STATUS <<_ACEOF
10256 for ac_last_try
in false false false false false
:; do
10257 cat >conf$
$subs.
sed <<_ACEOF
10258 QT_LFLAGS!$QT_LFLAGS$ac_delim
10259 QT_LDFLAGS!$QT_LDFLAGS$ac_delim
10260 QT_LIBS!$QT_LIBS$ac_delim
10261 X11_CFLAGS!$X11_CFLAGS$ac_delim
10262 X11_LDFLAGS!$X11_LDFLAGS$ac_delim
10263 COCOA_CFLAGS!$COCOA_CFLAGS$ac_delim
10264 COCOA_LDFLAGS!$COCOA_LDFLAGS$ac_delim
10265 CONFIG_X11!$CONFIG_X11$ac_delim
10266 CONFIG_COCOA!$CONFIG_COCOA$ac_delim
10267 CONFIG_QT!$CONFIG_QT$ac_delim
10268 CONFIG_GUI!$CONFIG_GUI$ac_delim
10269 CONFIG_CXXDIALECT!$CONFIG_CXXDIALECT$ac_delim
10270 CONFIG_OS!$CONFIG_OS$ac_delim
10271 CONFIG_OS_SUFFIX!$CONFIG_OS_SUFFIX$ac_delim
10272 CONFIG_CXXWARNING!$CONFIG_CXXWARNING$ac_delim
10273 CONFIG_CXXTEMPLATE!$CONFIG_CXXTEMPLATE$ac_delim
10274 CONFIG_CXXOPTIMIZE!$CONFIG_CXXOPTIMIZE$ac_delim
10275 CONFIG_CXXDEBUG!$CONFIG_CXXDEBUG$ac_delim
10276 CONFIG_BFLAGS!$CONFIG_BFLAGS$ac_delim
10277 CONFIG_BSTATIC!$CONFIG_BSTATIC$ac_delim
10278 CONFIG_BSHARED!$CONFIG_BSHARED$ac_delim
10279 CONFIG_BPATH!$CONFIG_BPATH$ac_delim
10280 CONFIG_WORD_LENGTH!$CONFIG_WORD_LENGTH$ac_delim
10281 CONFIG_WORD_LENGTH_INC!$CONFIG_WORD_LENGTH_INC$ac_delim
10282 CONFIG_WORD_MASK!$CONFIG_WORD_MASK$ac_delim
10283 CONFIG_MAX_FAST!$CONFIG_MAX_FAST$ac_delim
10284 CONFIG_CXXFLAGS!$CONFIG_CXXFLAGS$ac_delim
10285 CONFIG_STD_SETENV!$CONFIG_STD_SETENV$ac_delim
10286 CONFIG_SO!$CONFIG_SO$ac_delim
10287 CONFIG_LIB_PATH!$CONFIG_LIB_PATH$ac_delim
10288 CONFIG_STRIP!$CONFIG_STRIP$ac_delim
10289 CONFIG_CHMOD!$CONFIG_CHMOD$ac_delim
10290 tmorig!$tmorig$ac_delim
10291 tmdir!$tmdir$ac_delim
10292 tmsrc!$tmsrc$ac_delim
10293 tmbin!$tmbin$ac_delim
10294 tmdata!$tmdata$ac_delim
10295 tmtgz!$tmtgz$ac_delim
10296 tmrpm!$tmrpm$ac_delim
10297 tmstgz!$tmstgz$ac_delim
10298 tmsrpm!$tmsrpm$ac_delim
10299 tmwin!$tmwin$ac_delim
10300 LIBOBJS!$LIBOBJS$ac_delim
10301 LTLIBOBJS!$LTLIBOBJS$ac_delim
10304 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 44; then
10306 elif $ac_last_try; then
10307 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10308 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10309 { (exit 1); exit 1; }; }
10311 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
10315 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10316 if test -n "$ac_eof"; then
10317 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
10318 ac_eof
=`expr $ac_eof + 1`
10321 cat >>$CONFIG_STATUS <<_ACEOF
10322 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10326 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10327 s/^/s,@/; s/!/@,|#_!!_#|/
10330 s/'"$ac_delim"'$/,g/; t
10332 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10333 ' >>$CONFIG_STATUS <conf$
$subs.
sed
10334 rm -f conf$
$subs.
sed
10335 cat >>$CONFIG_STATUS <<_ACEOF
10342 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10343 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10344 # trailing colons and then remove the whole line if VPATH becomes empty
10345 # (actually we leave an empty line to preserve line numbers).
10346 if test "x$srcdir" = x.
; then
10347 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
10348 s/:*\$(srcdir):*/:/
10349 s/:*\${srcdir}:*/:/
10351 s/^\([^=]*=[ ]*\):*/\1/
10357 cat >>$CONFIG_STATUS <<\_ACEOF
10358 fi # test -n "$CONFIG_FILES"
10361 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
10364 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10366 case $ac_mode$ac_tag in
10368 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10369 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10370 { (exit 1); exit 1; }; };;
10371 :[FH
]-) ac_tag
=-:-;;
10372 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10389 -) ac_f
="$tmp/stdin";;
10390 *) # Look for the file first in the build tree, then in the source tree
10391 # (if the path is not absolute). The absolute path cannot be DOS-style,
10392 # because $ac_f cannot contain `:'.
10396 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10398 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10399 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10400 { (exit 1); exit 1; }; };;
10402 ac_file_inputs
="$ac_file_inputs $ac_f"
10405 # Let's still pretend it is `configure' which instantiates (i.e., don't
10406 # use $as_me), people would be surprised to read:
10407 # /* config.h. Generated by config.status. */
10408 configure_input
="Generated from "`IFS=:
10409 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10410 if test x
"$ac_file" != x-
; then
10411 configure_input
="$ac_file. $configure_input"
10412 { echo "$as_me:$LINENO: creating $ac_file" >&5
10413 echo "$as_me: creating $ac_file" >&6;}
10417 *:-:* |
*:-) cat >"$tmp/stdin";;
10422 ac_dir
=`$as_dirname -- "$ac_file" ||
10423 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10424 X"$ac_file" : 'X\(//\)[^/]' \| \
10425 X"$ac_file" : 'X\(//\)$' \| \
10426 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10432 /^X\(\/\/\)[^/].*/{
10447 -*) as_dir
=.
/$as_dir;;
10449 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
10453 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10454 *) as_qdir
=$as_dir;;
10456 as_dirs
="'$as_qdir' $as_dirs"
10457 as_dir
=`$as_dirname -- "$as_dir" ||
10458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10459 X"$as_dir" : 'X\(//\)[^/]' \| \
10460 X"$as_dir" : 'X\(//\)$' \| \
10461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10467 /^X\(\/\/\)[^/].*/{
10480 test -d "$as_dir" && break
10482 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10483 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10484 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10485 { (exit 1); exit 1; }; }; }
10489 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10491 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10492 # A ".." for each directory in $ac_dir_suffix.
10493 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10494 case $ac_top_builddir_sub in
10495 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10496 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10499 ac_abs_top_builddir
=$ac_pwd
10500 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10501 # for backward compatibility:
10502 ac_top_builddir
=$ac_top_build_prefix
10505 .
) # We are building in place.
10507 ac_top_srcdir
=$ac_top_builddir_sub
10508 ac_abs_top_srcdir
=$ac_pwd ;;
10509 [\\/]* | ?
:[\\/]* ) # Absolute name.
10510 ac_srcdir
=$srcdir$ac_dir_suffix;
10511 ac_top_srcdir
=$srcdir
10512 ac_abs_top_srcdir
=$srcdir ;;
10513 *) # Relative name.
10514 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10515 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10516 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10518 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10529 cat >>$CONFIG_STATUS <<\_ACEOF
10530 # If the template does not know about datarootdir, expand it.
10531 # FIXME: This hack should be removed a few years after 2.60.
10532 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10534 case `sed -n '/datarootdir/ {
10543 ' $ac_file_inputs` in
10544 *datarootdir
*) ac_datarootdir_seen
=yes;;
10545 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
10546 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10547 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10549 cat >>$CONFIG_STATUS <<_ACEOF
10550 ac_datarootdir_hack='
10551 s&@datadir@&$datadir&g
10552 s&@docdir@&$docdir&g
10553 s&@infodir@&$infodir&g
10554 s&@localedir@&$localedir&g
10555 s&@mandir@&$mandir&g
10556 s&\\\${datarootdir}&$datarootdir&g' ;;
10560 # Neutralize VPATH when `$srcdir' = `.'.
10561 # Shell code in configure.ac might set extrasub.
10562 # FIXME: do we really want to maintain this feature?
10563 cat >>$CONFIG_STATUS <<_ACEOF
10567 cat >>$CONFIG_STATUS <<\_ACEOF
10569 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10570 s
&@configure_input@
&$configure_input&;t t
10571 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10572 s
&@srcdir@
&$ac_srcdir&;t t
10573 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10574 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10575 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10576 s
&@builddir@
&$ac_builddir&;t t
10577 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10578 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10579 $ac_datarootdir_hack
10580 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
10582 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10583 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
10584 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
10585 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10586 which seems to be undefined. Please make sure it is defined." >&5
10587 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10588 which seems to be undefined. Please make sure it is defined." >&2;}
10592 -) cat "$tmp/out"; rm -f "$tmp/out";;
10593 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10602 # Transform confdefs.h into a sed script `conftest.defines', that
10603 # substitutes the proper values into config.h.in to produce config.h.
10604 rm -f conftest.defines conftest.
tail
10605 # First, append a space to every undef/define line, to ease matching.
10606 echo 's/$/ /' >conftest.defines
10607 # Then, protect against being on the right side of a sed subst, or in
10608 # an unquoted here document, in config.status. If some macros were
10609 # called several times there might be several #defines for the same
10610 # symbol, which is useless. But do not sort them, since the last
10611 # AC_DEFINE must be honored.
10612 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
10613 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10614 # NAME is the cpp macro being defined, VALUE is the value it is being given.
10615 # PARAMS is the parameter list in the macro definition--in most cases, it's
10616 # just an empty string.
10617 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
10618 ac_dB
='\\)[ (].*,\\1define\\2'
10626 s/^[ ]*#[ ]*define[ ][ ]*//
10631 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10632 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10633 ' >>conftest.defines
10635 # Remove the space that was appended to ease matching.
10636 # Then replace #undef with comments. This is necessary, for
10637 # example, in the case of _POSIX_SOURCE, which is predefined and required
10638 # on some systems where configure will not decide to define it.
10639 # (The regexp can be short, since the line contains either #define or #undef.)
10641 s,^[ #]*u.*,/* & */,' >>conftest.defines
10643 # Break up conftest.defines:
10644 ac_max_sed_lines
=50
10646 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10647 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10648 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10650 ac_in
='$ac_file_inputs'
10651 ac_out
='"$tmp/out1"'
10652 ac_nxt
='"$tmp/out2"'
10656 # Write a here document:
10657 cat >>$CONFIG_STATUS <<_ACEOF
10658 # First, check the format of the line:
10659 cat >"\$tmp/defines.sed" <<\\CEOF
10660 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
10661 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
10665 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
10667 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10668 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
10669 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
10670 grep . conftest.
tail >/dev
/null ||
break
10671 rm -f conftest.defines
10672 mv conftest.
tail conftest.defines
10674 rm -f conftest.defines conftest.
tail
10676 echo "ac_result=$ac_in" >>$CONFIG_STATUS
10677 cat >>$CONFIG_STATUS <<\_ACEOF
10678 if test x
"$ac_file" != x-
; then
10679 echo "/* $configure_input */" >"$tmp/config.h"
10680 cat "$ac_result" >>"$tmp/config.h"
10681 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
10682 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10683 echo "$as_me: $ac_file is unchanged" >&6;}
10686 mv "$tmp/config.h" $ac_file
10689 echo "/* $configure_input */"
10701 { (exit 0); exit 0; }
10703 chmod +x
$CONFIG_STATUS
10704 ac_clean_files
=$ac_clean_files_save
10707 # configure is writing to config.log, and then calls config.status.
10708 # config.status does its own redirection, appending to config.log.
10709 # Unfortunately, on DOS this fails, as config.log is still kept open
10710 # by configure, so config.status won't be able to write to it; its
10711 # output is simply discarded. So we exec the FD to /dev/null,
10712 # effectively closing config.log, so it can be properly (re)opened and
10713 # appended to by config.status. When coming back to configure, we
10714 # need to make the FD available again.
10715 if test "$no_create" != yes; then
10717 ac_config_status_args
=
10718 test "$silent" = yes &&
10719 ac_config_status_args
="$ac_config_status_args --quiet"
10721 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10723 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10724 # would make configure fail if this is the last instruction.
10725 $ac_cs_success ||
{ (exit 1); exit 1; }