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
743 CONFIG_WORD_LENGTH_INC
753 CONFIG_NATIVE_ARCH_TAG
767 ac_precious_vars
='build_alias
784 # Initialize some variables set by options.
786 ac_init_version
=false
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
796 program_transform_name
=s
,x
,x
,
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir
='${exec_prefix}/bin'
811 sbindir
='${exec_prefix}/sbin'
812 libexecdir
='${exec_prefix}/libexec'
813 datarootdir
='${prefix}/share'
814 datadir
='${datarootdir}'
815 sysconfdir
='${prefix}/etc'
816 sharedstatedir
='${prefix}/com'
817 localstatedir
='${prefix}/var'
818 includedir
='${prefix}/include'
819 oldincludedir
='/usr/include'
820 docdir
='${datarootdir}/doc/${PACKAGE}'
821 infodir
='${datarootdir}/info'
826 libdir
='${exec_prefix}/lib'
827 localedir
='${datarootdir}/locale'
828 mandir
='${datarootdir}/man'
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\
$ac_option
842 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 # Accept the important Cygnus configure options, so we can diagnose typos.
848 case $ac_dashdash$ac_option in
852 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
854 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
857 -build |
--build |
--buil |
--bui |
--bu)
858 ac_prev
=build_alias
;;
859 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
860 build_alias
=$ac_optarg ;;
862 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
863 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
864 ac_prev
=cache_file
;;
865 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
866 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
867 cache_file
=$ac_optarg ;;
870 cache_file
=config.cache
;;
872 -datadir |
--datadir |
--datadi |
--datad)
874 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
875 datadir
=$ac_optarg ;;
877 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
878 |
--dataroo |
--dataro |
--datar)
879 ac_prev
=datarootdir
;;
880 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
881 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
882 datarootdir
=$ac_optarg ;;
884 -disable-* |
--disable-*)
885 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
888 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
889 { (exit 1); exit 1; }; }
890 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
891 eval enable_
$ac_feature=no
;;
893 -docdir |
--docdir |
--docdi |
--doc |
--do)
895 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
898 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
900 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
903 -enable-* |
--enable-*)
904 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
907 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
908 { (exit 1); exit 1; }; }
909 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
910 eval enable_
$ac_feature=\
$ac_optarg ;;
912 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
913 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
914 |
--exec |
--exe |
--ex)
915 ac_prev
=exec_prefix
;;
916 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
917 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
918 |
--exec=* |
--exe=* |
--ex=*)
919 exec_prefix
=$ac_optarg ;;
921 -gas |
--gas |
--ga |
--g)
922 # Obsolete; use --with-gas.
925 -help |
--help |
--hel |
--he |
-h)
927 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
928 ac_init_help
=recursive
;;
929 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
930 ac_init_help
=short
;;
932 -host |
--host |
--hos |
--ho)
933 ac_prev
=host_alias
;;
934 -host=* |
--host=* |
--hos=* |
--ho=*)
935 host_alias
=$ac_optarg ;;
937 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
939 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
941 htmldir
=$ac_optarg ;;
943 -includedir |
--includedir |
--includedi |
--included |
--include \
944 |
--includ |
--inclu |
--incl |
--inc)
945 ac_prev
=includedir
;;
946 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
947 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
948 includedir
=$ac_optarg ;;
950 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
952 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
953 infodir
=$ac_optarg ;;
955 -libdir |
--libdir |
--libdi |
--libd)
957 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
960 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
961 |
--libexe |
--libex |
--libe)
962 ac_prev
=libexecdir
;;
963 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
964 |
--libexe=* |
--libex=* |
--libe=*)
965 libexecdir
=$ac_optarg ;;
967 -localedir |
--localedir |
--localedi |
--localed |
--locale)
969 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
970 localedir
=$ac_optarg ;;
972 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
973 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
974 ac_prev
=localstatedir
;;
975 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
976 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
977 localstatedir
=$ac_optarg ;;
979 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
981 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
985 # Obsolete; use --without-fp.
988 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
989 |
--no-cr |
--no-c |
-n)
992 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
993 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
996 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
997 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
998 |
--oldin |
--oldi |
--old |
--ol |
--o)
999 ac_prev
=oldincludedir
;;
1000 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1001 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1002 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1003 oldincludedir
=$ac_optarg ;;
1005 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1007 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1008 prefix
=$ac_optarg ;;
1010 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1011 |
--program-pre |
--program-pr |
--program-p)
1012 ac_prev
=program_prefix
;;
1013 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1014 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1015 program_prefix
=$ac_optarg ;;
1017 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1018 |
--program-suf |
--program-su |
--program-s)
1019 ac_prev
=program_suffix
;;
1020 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1021 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1022 program_suffix
=$ac_optarg ;;
1024 -program-transform-name |
--program-transform-name \
1025 |
--program-transform-nam |
--program-transform-na \
1026 |
--program-transform-n |
--program-transform- \
1027 |
--program-transform |
--program-transfor \
1028 |
--program-transfo |
--program-transf \
1029 |
--program-trans |
--program-tran \
1030 |
--progr-tra |
--program-tr |
--program-t)
1031 ac_prev
=program_transform_name
;;
1032 -program-transform-name=* |
--program-transform-name=* \
1033 |
--program-transform-nam=* |
--program-transform-na=* \
1034 |
--program-transform-n=* |
--program-transform-=* \
1035 |
--program-transform=* |
--program-transfor=* \
1036 |
--program-transfo=* |
--program-transf=* \
1037 |
--program-trans=* |
--program-tran=* \
1038 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1039 program_transform_name
=$ac_optarg ;;
1041 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1043 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1044 pdfdir
=$ac_optarg ;;
1046 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1048 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1051 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1052 |
-silent |
--silent |
--silen |
--sile |
--sil)
1055 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1057 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1059 sbindir
=$ac_optarg ;;
1061 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1062 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1063 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1065 ac_prev
=sharedstatedir
;;
1066 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1067 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1068 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1070 sharedstatedir
=$ac_optarg ;;
1072 -site |
--site |
--sit)
1074 -site=* |
--site=* |
--sit=*)
1077 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1079 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1080 srcdir
=$ac_optarg ;;
1082 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1083 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1084 ac_prev
=sysconfdir
;;
1085 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1086 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1087 sysconfdir
=$ac_optarg ;;
1089 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1090 ac_prev
=target_alias
;;
1091 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1092 target_alias
=$ac_optarg ;;
1094 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1097 -version |
--version |
--versio |
--versi |
--vers |
-V)
1098 ac_init_version
=: ;;
1101 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1104 { echo "$as_me: error: invalid package name: $ac_package" >&2
1105 { (exit 1); exit 1; }; }
1106 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1107 eval with_
$ac_package=\
$ac_optarg ;;
1109 -without-* |
--without-*)
1110 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1113 { echo "$as_me: error: invalid package name: $ac_package" >&2
1114 { (exit 1); exit 1; }; }
1115 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1116 eval with_
$ac_package=no
;;
1119 # Obsolete; use --with-x.
1122 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1123 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1124 ac_prev
=x_includes
;;
1125 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1126 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1127 x_includes
=$ac_optarg ;;
1129 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1130 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1131 ac_prev
=x_libraries
;;
1132 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1133 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1134 x_libraries
=$ac_optarg ;;
1136 -*) { echo "$as_me: error: unrecognized option: $ac_option
1137 Try \`$0 --help' for more information." >&2
1138 { (exit 1); exit 1; }; }
1142 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1145 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1146 { (exit 1); exit 1; }; }
1147 eval $ac_envvar=\
$ac_optarg
1148 export $ac_envvar ;;
1151 # FIXME: should be removed in autoconf 3.0.
1152 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1154 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1161 if test -n "$ac_prev"; then
1162 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1163 { echo "$as_me: error: missing argument to $ac_option" >&2
1164 { (exit 1); exit 1; }; }
1167 # Be sure to have absolute directory names.
1168 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1169 datadir sysconfdir sharedstatedir localstatedir includedir \
1170 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1171 libdir localedir mandir
1173 eval ac_val
=\$
$ac_var
1175 [\\/$
]* | ?
:[\\/]* ) continue;;
1176 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1178 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1179 { (exit 1); exit 1; }; }
1182 # There might be people who depend on the old broken behavior: `$host'
1183 # used to hold the argument of --host etc.
1184 # FIXME: To remove some day.
1187 target
=$target_alias
1189 # FIXME: To remove some day.
1190 if test "x$host_alias" != x
; then
1191 if test "x$build_alias" = x
; then
1192 cross_compiling
=maybe
1193 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1194 If a cross compiler is detected then cross compile mode will be used." >&2
1195 elif test "x$build_alias" != "x$host_alias"; then
1201 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1203 test "$silent" = yes && exec 6>/dev
/null
1206 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1207 ac_ls_di
=`ls -di .` &&
1208 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1209 { echo "$as_me: error: Working directory cannot be determined" >&2
1210 { (exit 1); exit 1; }; }
1211 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1212 { echo "$as_me: error: pwd does not report name of working directory" >&2
1213 { (exit 1); exit 1; }; }
1216 # Find the source files, if location was not specified.
1217 if test -z "$srcdir"; then
1218 ac_srcdir_defaulted
=yes
1219 # Try the directory containing this script, then the parent directory.
1220 ac_confdir
=`$as_dirname -- "$0" ||
1221 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1222 X"$0" : 'X\(//\)[^/]' \| \
1223 X"$0" : 'X\(//\)$' \| \
1224 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1248 ac_srcdir_defaulted
=no
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1251 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1252 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1253 { (exit 1); exit 1; }; }
1255 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1257 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1258 { (exit 1); exit 1; }; }
1260 # When building in place, set srcdir=.
1261 if test "$ac_abs_confdir" = "$ac_pwd"; then
1264 # Remove unnecessary trailing slashes from srcdir.
1265 # Double slashes in file names in object file debugging info
1266 # mess up M-x gdb in Emacs.
1268 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270 for ac_var
in $ac_precious_vars; do
1271 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1272 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1273 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1274 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1278 # Report the --help message.
1280 if test "$ac_init_help" = "long"; then
1281 # Omit some internal or obsolete options to make the list less imposing.
1282 # This message is too long to be a string in the A/UX 3.1 sh.
1284 \`configure' configures this package to adapt to many kinds of systems.
1286 Usage: $0 [OPTION]... [VAR=VALUE]...
1288 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1289 VAR=VALUE. See below for descriptions of some of the useful variables.
1291 Defaults for the options are specified in brackets.
1294 -h, --help display this help and exit
1295 --help=short display options specific to this package
1296 --help=recursive display the short help of all the included packages
1297 -V, --version display version information and exit
1298 -q, --quiet, --silent do not print \`checking...' messages
1299 --cache-file=FILE cache test results in FILE [disabled]
1300 -C, --config-cache alias for \`--cache-file=config.cache'
1301 -n, --no-create do not create output files
1302 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1304 Installation directories:
1305 --prefix=PREFIX install architecture-independent files in PREFIX
1306 [$ac_default_prefix]
1307 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1310 By default, \`make install' will install all the files in
1311 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1312 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1313 for instance \`--prefix=\$HOME'.
1315 For better control, use the options below.
1317 Fine tuning of the installation directories:
1318 --bindir=DIR user executables [EPREFIX/bin]
1319 --sbindir=DIR system admin executables [EPREFIX/sbin]
1320 --libexecdir=DIR program executables [EPREFIX/libexec]
1321 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1322 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1323 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1324 --libdir=DIR object code libraries [EPREFIX/lib]
1325 --includedir=DIR C header files [PREFIX/include]
1326 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1327 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1328 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1329 --infodir=DIR info documentation [DATAROOTDIR/info]
1330 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1331 --mandir=DIR man documentation [DATAROOTDIR/man]
1332 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1333 --htmldir=DIR html documentation [DOCDIR]
1334 --dvidir=DIR dvi documentation [DOCDIR]
1335 --pdfdir=DIR pdf documentation [DOCDIR]
1336 --psdir=DIR ps documentation [DOCDIR]
1342 --x-includes=DIR X include files are
in DIR
1343 --x-libraries=DIR X library files are
in DIR
1346 --build=BUILD configure
for building on BUILD
[guessed
]
1347 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1351 if test -n "$ac_init_help"; then
1356 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1357 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1358 --disable-fastalloc omit fast allocator
for small objects
1359 --enable-experimental support new style rewriting code
1360 --enable-macosx-extensions support new style rewriting code
1361 --enable-pdf-renderer use experimental PDF renderer
for pdf
export
1362 --enable-qt replace X11 by Qt interface
1363 --enable-cocoa replace X11 by Cocoa interface
1364 --enable-debug=ARG
install a debugging
enable executable
-ggdb
1365 --enable-assert exit on failed assertions
in code
1366 --enable-warnings print warning messages during compilation
1367 --enable-optimize=ARG compile with optimizations guessed
1370 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1371 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1372 --with-x use the X Window System
1373 --with-iconv=DIR where to
find iconv system
1374 --with-freetype=ARG with freetype support ARG
=linked
1375 --with-cairo=ARG with cairo support ARG
=no
1376 --with-imlib2=ARG with imlib2 support ARG
=no
1377 --with-axel=ARG with axel support ARG
=no
1378 --with-gs=ARG with ghostscript support ARG
=yes
1379 --with-qt Path to Qt
[Look
in PATH and
/usr
/local
/Trolltech
]
1381 Some influential environment variables
:
1382 CC C compiler
command
1383 CFLAGS C compiler flags
1384 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1385 nonstandard directory
<lib dir
>
1386 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1387 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1388 you have headers
in a nonstandard directory
<include dir
>
1389 CXX C
++ compiler
command
1390 CXXFLAGS C
++ compiler flags
1391 CXXCPP C
++ preprocessor
1392 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1394 TMPDIR A temporary directory with
write access
[/tmp
]
1396 Use these variables to override the choices made by
`configure' or to help
1397 it to find libraries and programs with nonstandard names/locations.
1403 if test "$ac_init_help" = "recursive"; then
1404 # If there are subdirs, report their specific --help.
1405 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1406 test -d "$ac_dir" || continue
1410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1413 # A ".." for each directory in $ac_dir_suffix.
1414 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1415 case $ac_top_builddir_sub in
1416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1420 ac_abs_top_builddir=$ac_pwd
1421 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1422 # for backward compatibility:
1423 ac_top_builddir=$ac_top_build_prefix
1426 .) # We are building in place.
1428 ac_top_srcdir=$ac_top_builddir_sub
1429 ac_abs_top_srcdir=$ac_pwd ;;
1430 [\\/]* | ?:[\\/]* ) # Absolute name.
1431 ac_srcdir=$srcdir$ac_dir_suffix;
1432 ac_top_srcdir=$srcdir
1433 ac_abs_top_srcdir=$srcdir ;;
1435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1436 ac_top_srcdir=$ac_top_build_prefix$srcdir
1437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1441 cd "$ac_dir" || { ac_status=$?; continue; }
1442 # Check for guested configure.
1443 if test -f "$ac_srcdir/configure.gnu"; then
1445 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1446 elif test -f "$ac_srcdir/configure"; then
1448 $SHELL "$ac_srcdir/configure" --help=recursive
1450 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1452 cd "$ac_pwd" || { ac_status=$?; break; }
1456 test -n "$ac_init_help" && exit $ac_status
1457 if $ac_init_version; then
1460 generated by GNU Autoconf 2.61
1462 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1463 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1464 This configure script is free software; the Free Software Foundation
1465 gives unlimited permission to copy, distribute and modify it.
1469 cat >config.log <<_ACEOF
1470 This file contains any messages produced by compilers while
1471 running configure, to aid debugging if configure makes a mistake.
1473 It was created by $as_me, which was
1474 generated by GNU Autoconf 2.61. Invocation command line was
1486 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1487 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1488 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1489 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1490 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1492 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1493 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1495 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1496 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1497 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1498 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1499 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1500 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1501 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1509 test -z "$as_dir" && as_dir=.
1510 echo "PATH: $as_dir"
1526 # Keep a trace of the command line.
1527 # Strip out --no-create and --no-recursion so they do not pile up.
1528 # Strip out --silent because we don't want to record it for future runs.
1529 # Also quote any args containing shell meta-characters.
1530 # Make two passes to allow for proper duplicate-argument suppression.
1534 ac_must_keep_next=false
1540 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1542 | -silent | --silent | --silen | --sile | --sil)
1545 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1548 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1550 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1551 if test $ac_must_keep_next = true; then
1552 ac_must_keep_next=false # Got value, back to normal.
1555 *=* | --config-cache | -C | -disable-* | --disable-* \
1556 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1557 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1558 | -with-* | --with-* | -without-* | --without-* | --x)
1559 case "$ac_configure_args0 " in
1560 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1563 -* ) ac_must_keep_next=true ;;
1566 ac_configure_args="$ac_configure_args '$ac_arg'"
1571 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1572 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1574 # When interrupted or exit'd, cleanup temporary files, and complete
1575 # config.log. We remove comments because anyway the quotes in there
1576 # would cause problems or look ugly.
1577 # WARNING: Use '\'' to represent an apostrophe within the trap.
1578 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1579 trap 'exit_status=$?
1580 # Save into config.log some information that might help in debugging.
1585 ## ---------------- ##
1586 ## Cache variables. ##
1587 ## ---------------- ##
1590 # The following way of writing the cache mishandles newlines in values,
1592 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1593 eval ac_val=\$$ac_var
1597 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1598 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1601 _ | IFS | as_nl) ;; #(
1602 *) $as_unset $ac_var ;;
1607 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1608 *${as_nl}ac_space=\ *)
1610 "s/'\''/'\''\\\\'\'''\''/g;
1611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1614 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1622 ## ----------------- ##
1623 ## Output variables. ##
1624 ## ----------------- ##
1627 for ac_var in $ac_subst_vars
1629 eval ac_val=\$$ac_var
1631 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1633 echo "$ac_var='\''$ac_val'\''"
1637 if test -n "$ac_subst_files"; then
1639 ## ------------------- ##
1640 ## File substitutions. ##
1641 ## ------------------- ##
1644 for ac_var in $ac_subst_files
1646 eval ac_val=\$$ac_var
1648 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1650 echo "$ac_var='\''$ac_val'\''"
1655 if test -s confdefs.h; then
1665 test "$ac_signal" != 0 &&
1666 echo "$as_me: caught signal $ac_signal"
1667 echo "$as_me: exit $exit_status"
1669 rm -f core *.core core.conftest.* &&
1670 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1673 for ac_signal in 1 2 13 15; do
1674 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1678 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1679 rm -f -r conftest* confdefs.h
1681 # Predefined preprocessor variables.
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_NAME "$PACKAGE_NAME"
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_STRING "$PACKAGE_STRING"
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1708 # Let the site file select an alternate cache file if it wants to.
1709 # Prefer explicitly selected file to automatically selected ones.
1710 if test -n "$CONFIG_SITE"; then
1711 set x "$CONFIG_SITE"
1712 elif test "x$prefix" != xNONE; then
1713 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1715 set x "$ac_default_prefix/share/config.site" \
1716 "$ac_default_prefix/etc/config.site"
1721 if test -r "$ac_site_file"; then
1722 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1723 echo "$as_me: loading site script $ac_site_file" >&6;}
1724 sed 's/^/| /' "$ac_site_file" >&5
1729 if test -r "$cache_file"; then
1730 # Some versions of bash will fail to source /dev/null (special
1731 # files actually), so we avoid doing that.
1732 if test -f "$cache_file"; then
1733 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1734 echo "$as_me: loading cache $cache_file" >&6;}
1736 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1737 *) . "./$cache_file";;
1741 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1742 echo "$as_me: creating cache $cache_file" >&6;}
1746 # Check that the precious variables saved in the cache have kept the same
1748 ac_cache_corrupted=false
1749 for ac_var in $ac_precious_vars; do
1750 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1751 eval ac_new_set=\$ac_env_${ac_var}_set
1752 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1753 eval ac_new_val=\$ac_env_${ac_var}_value
1754 case $ac_old_set,$ac_new_set in
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1757 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1758 ac_cache_corrupted=: ;;
1760 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1761 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1762 ac_cache_corrupted=: ;;
1765 if test "x$ac_old_val" != "x$ac_new_val"; then
1766 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1767 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1768 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1769 echo "$as_me: former value
: $ac_old_val" >&2;}
1770 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1771 echo "$as_me: current value
: $ac_new_val" >&2;}
1772 ac_cache_corrupted=:
1775 # Pass precious variables to config.status.
1776 if test "$ac_new_set" = set; then
1778 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1779 *) ac_arg=$ac_var=$ac_new_val ;;
1781 case " $ac_configure_args " in
1782 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1783 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1787 if $ac_cache_corrupted; then
1788 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1789 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1790 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1791 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1792 { (exit 1); exit 1; }; }
1812 ac_cpp='$CPP $CPPFLAGS'
1813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1818 ac_config_headers="$ac_config_headers src/System/config.h:src/System/config.in"
1821 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1822 if test -f "$ac_dir/install-sh"; then
1824 ac_install_sh="$ac_aux_dir/install-sh -c"
1826 elif test -f "$ac_dir/install.sh"; then
1828 ac_install_sh="$ac_aux_dir/install.sh -c"
1830 elif test -f "$ac_dir/shtool"; then
1832 ac_install_sh="$ac_aux_dir/shtool install -c"
1836 if test -z "$ac_aux_dir"; then
1837 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1838 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1839 { (exit 1); exit 1; }; }
1842 # These three variables are undocumented and unsupported,
1843 # and are intended to be withdrawn in a future Autoconf release.
1844 # They can cause serious problems if a builder's source tree is in a directory
1845 # whose full name contains unusual characters.
1846 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1847 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1848 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1851 # Make sure we can run config.sub.
1852 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1853 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1854 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1855 { (exit 1); exit 1; }; }
1857 { echo "$as_me:$LINENO: checking build system type" >&5
1858 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1859 if test "${ac_cv_build+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 ac_build_alias=$build_alias
1863 test "x$ac_build_alias" = x &&
1864 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1865 test "x$ac_build_alias" = x &&
1866 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1867 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1868 { (exit 1); exit 1; }; }
1869 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1870 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1871 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1872 { (exit 1); exit 1; }; }
1875 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1876 echo "${ECHO_T}$ac_cv_build" >&6; }
1877 case $ac_cv_build in
1879 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1880 echo "$as_me: error: invalid value of canonical build" >&2;}
1881 { (exit 1); exit 1; }; };;
1884 ac_save_IFS=$IFS; IFS='-'
1890 # Remember, the first character of IFS is used to create $*,
1891 # except with old shells:
1894 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1897 { echo "$as_me:$LINENO: checking host system type" >&5
1898 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1899 if test "${ac_cv_host+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 if test "x$host_alias" = x; then
1903 ac_cv_host=$ac_cv_build
1905 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1906 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1907 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1908 { (exit 1); exit 1; }; }
1912 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1913 echo "${ECHO_T}$ac_cv_host" >&6; }
1916 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1917 echo "$as_me: error: invalid value of canonical host" >&2;}
1918 { (exit 1); exit 1; }; };;
1921 ac_save_IFS=$IFS; IFS='-'
1927 # Remember, the first character of IFS is used to create $*,
1928 # except with old shells:
1931 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1936 DEVEL_VERSION="1.0.7.4"
1938 STABLE_VERSION="1.0.7"
1940 WINDOWS_VERSION="1.0.5"
1948 #--------------------------------------------------------------------
1949 # Checks for C++ compiler
1950 #--------------------------------------------------------------------
1953 ac_cpp='$CPP $CPPFLAGS'
1954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1957 if test -n "$ac_tool_prefix"; then
1958 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1959 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1962 if test "${ac_cv_prog_CC+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 if test -n "$CC"; then
1966 ac_cv_prog_CC="$CC" # Let the user override the test.
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 test -z "$as_dir" && as_dir=.
1973 for ac_exec_ext in '' $ac_executable_extensions; do
1974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1975 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 if test -n "$CC"; then
1987 { echo "$as_me:$LINENO: result: $CC" >&5
1988 echo "${ECHO_T}$CC" >&6; }
1990 { echo "$as_me:$LINENO: result: no" >&5
1991 echo "${ECHO_T}no" >&6; }
1996 if test -z "$ac_cv_prog_CC"; then
1998 # Extract the first word of "gcc", so it can be a program name with args.
1999 set dummy gcc; ac_word=$2
2000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2005 if test -n "$ac_ct_CC"; then
2006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2015 ac_cv_prog_ac_ct_CC="gcc"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2026 if test -n "$ac_ct_CC"; then
2027 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2028 echo "${ECHO_T}$ac_ct_CC" >&6; }
2030 { echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6; }
2034 if test "x$ac_ct_CC" = x; then
2037 case $cross_compiling:$ac_tool_warned in
2039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2040 whose name does not start with the host triplet. If you think this
2041 configuration is useful to you, please write to autoconf@gnu.org." >&5
2042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2043 whose name does not start with the host triplet. If you think this
2044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2045 ac_tool_warned=yes ;;
2053 if test -z "$CC"; then
2054 if test -n "$ac_tool_prefix"; then
2055 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2056 set dummy ${ac_tool_prefix}cc; ac_word=$2
2057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2059 if test "${ac_cv_prog_CC+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 if test -n "$CC"; then
2063 ac_cv_prog_CC="$CC" # Let the user override the test.
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2072 ac_cv_prog_CC="${ac_tool_prefix}cc"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 if test -n "$CC"; then
2084 { echo "$as_me:$LINENO: result: $CC" >&5
2085 echo "${ECHO_T}$CC" >&6; }
2087 { echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6; }
2094 if test -z "$CC"; then
2095 # Extract the first word of "cc", so it can be a program name with args.
2096 set dummy cc; ac_word=$2
2097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2099 if test "${ac_cv_prog_CC+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 if test -n "$CC"; then
2103 ac_cv_prog_CC="$CC" # Let the user override the test.
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2113 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2114 ac_prog_rejected=yes
2118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 if test $ac_prog_rejected = yes; then
2126 # We found a bogon in the path, so make sure we never use it.
2127 set dummy $ac_cv_prog_CC
2129 if test $# != 0; then
2130 # We chose a different compiler from the bogus one.
2131 # However, it has the same basename, so the bogon will be chosen
2132 # first if we set CC to just the basename; use the full file name.
2134 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2140 if test -n "$CC"; then
2141 { echo "$as_me:$LINENO: result: $CC" >&5
2142 echo "${ECHO_T}$CC" >&6; }
2144 { echo "$as_me:$LINENO: result: no" >&5
2145 echo "${ECHO_T}no" >&6; }
2150 if test -z "$CC"; then
2151 if test -n "$ac_tool_prefix"; then
2152 for ac_prog in cl.exe
2154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158 if test "${ac_cv_prog_CC+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 if test -n "$CC"; then
2162 ac_cv_prog_CC="$CC" # Let the user override the test.
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 if test -n "$CC"; then
2183 { echo "$as_me:$LINENO: result: $CC" >&5
2184 echo "${ECHO_T}$CC" >&6; }
2186 { echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6; }
2191 test -n "$CC" && break
2194 if test -z "$CC"; then
2196 for ac_prog in cl.exe
2198 # Extract the first word of "$ac_prog", so it can be a program name with args.
2199 set dummy $ac_prog; ac_word=$2
2200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 if test -n "$ac_ct_CC"; then
2206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2215 ac_cv_prog_ac_ct_CC="$ac_prog"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2226 if test -n "$ac_ct_CC"; then
2227 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2228 echo "${ECHO_T}$ac_ct_CC" >&6; }
2230 { echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6; }
2235 test -n "$ac_ct_CC" && break
2238 if test "x$ac_ct_CC" = x; then
2241 case $cross_compiling:$ac_tool_warned in
2243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2244 whose name does not start with the host triplet. If you think this
2245 configuration is useful to you, please write to autoconf@gnu.org." >&5
2246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2247 whose name does not start with the host triplet. If you think this
2248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2249 ac_tool_warned=yes ;;
2258 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2259 See \`config.log
' for more details." >&5
2260 echo "$as_me: error: no acceptable C compiler found in \$PATH
2261 See \`config.log' for more details.
" >&2;}
2262 { (exit 1); exit 1; }; }
2264 # Provide some information about the compiler.
2265 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2266 ac_compiler=`set X $ac_compile; echo $2`
2267 { (ac_try="$ac_compiler --version >&5"
2269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2273 (eval "$ac_compiler --version >&5") 2>&5
2275 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2276 (exit $ac_status); }
2277 { (ac_try="$ac_compiler -v >&5"
2279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2280 *) ac_try_echo=$ac_try;;
2282 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2283 (eval "$ac_compiler -v >&5") 2>&5
2285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2286 (exit $ac_status); }
2287 { (ac_try="$ac_compiler -V >&5"
2289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2290 *) ac_try_echo=$ac_try;;
2292 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2293 (eval "$ac_compiler -V >&5") 2>&5
2295 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2296 (exit $ac_status); }
2298 cat >conftest.$ac_ext <<_ACEOF
2301 cat confdefs.h >>conftest.$ac_ext
2302 cat >>conftest.$ac_ext <<_ACEOF
2303 /* end confdefs.h. */
2313 ac_clean_files_save=$ac_clean_files
2314 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2315 # Try to create an executable without -o first, disregard a.out.
2316 # It will help us diagnose broken compilers, and finding out an intuition
2318 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2319 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2320 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2322 # List of possible output files, starting from the most likely.
2323 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2324 # only as a last resort. b.out is created by i960 compilers.
2325 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2327 # The IRIX 6 linker writes into existing files which may not be
2328 # executable, retaining their permissions. Remove them first so a
2329 # subsequent execution test works.
2331 for ac_file in $ac_files
2334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2335 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2340 if { (ac_try="$ac_link_default"
2342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343 *) ac_try_echo=$ac_try;;
2345 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2346 (eval "$ac_link_default") 2>&5
2348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2349 (exit $ac_status); }; then
2350 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2351 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2352 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2353 # so that the user can short-circuit this test for compilers unknown to
2355 for ac_file in $ac_files ''
2357 test -f "$ac_file" || continue
2359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2362 # We found the default executable, but exeext='' is most
2366 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2368 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2370 # We set ac_cv_exeext here because the later test for it is not
2371 # safe: cross compilers may not add the suffix if given an `-o'
2372 # argument, so we may need to know it at that point already.
2373 # Even if this section looks crufty: it has the advantage of
2380 test "$ac_cv_exeext" = no && ac_cv_exeext=
2386 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2387 echo "${ECHO_T}$ac_file" >&6; }
2388 if test -z "$ac_file"; then
2389 echo "$as_me: failed program was
:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2392 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2393 See \
`config.log' for more details." >&5
2394 echo "$as_me: error: C compiler cannot create executables
2395 See \`config.log
' for more details." >&2;}
2396 { (exit 77); exit 77; }; }
2399 ac_exeext=$ac_cv_exeext
2401 # Check that the compiler produces executables we can run. If not, either
2402 # the compiler is broken, or we cross compile.
2403 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2404 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2405 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2406 # If not cross compiling, check that we can run a simple program.
2407 if test "$cross_compiling" != yes; then
2408 if { ac_try='.
/$ac_file'
2409 { (case "(($ac_try" in
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414 (eval "$ac_try") 2>&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2420 if test "$cross_compiling" = maybe; then
2423 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2424 If you meant to cross compile, use \`--host'.
2425 See \
`config.log' for more details." >&5
2426 echo "$as_me: error: cannot run C compiled programs.
2427 If you meant to cross compile, use \`--host'.
2428 See \`config.log' for more details.
" >&2;}
2429 { (exit 1); exit 1; }; }
2433 { echo "$as_me:$LINENO: result
: yes" >&5
2434 echo "${ECHO_T}yes" >&6; }
2436 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2437 ac_clean_files=$ac_clean_files_save
2438 # Check that the compiler produces executables we can run. If not, either
2439 # the compiler is broken, or we cross compile.
2440 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2441 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2442 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2443 echo "${ECHO_T}$cross_compiling" >&6; }
2445 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2446 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2447 if { (ac_try="$ac_link"
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2452 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2453 (eval "$ac_link") 2>&5
2455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2456 (exit $ac_status); }; then
2457 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2458 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2459 # work properly (i.e., refer to `conftest.exe'), while it won't with
2461 for ac_file in conftest.exe conftest conftest.*; do
2462 test -f "$ac_file" || continue
2464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2465 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2471 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2472 See \
`config.log' for more details." >&5
2473 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2474 See \`config.log
' for more details." >&2;}
2475 { (exit 1); exit 1; }; }
2478 rm -f conftest$ac_cv_exeext
2479 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2480 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2482 rm -f conftest.$ac_ext
2483 EXEEXT=$ac_cv_exeext
2485 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2486 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2487 if test "${ac_cv_objext+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 cat >conftest.$ac_ext <<_ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h. */
2505 rm -f conftest.o conftest.obj
2506 if { (ac_try="$ac_compile"
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_compile") 2>&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; then
2516 for ac_file in conftest.o conftest.obj conftest.*; do
2517 test -f "$ac_file" || continue;
2519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2520 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2525 echo "$as_me: failed program was:" >&5
2526 sed 's
/^
/|
/' conftest.$ac_ext >&5
2528 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2529 See \`config.log' for more details.
" >&5
2530 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2531 See \
`config.log' for more details." >&2;}
2532 { (exit 1); exit 1; }; }
2535 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2537 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2538 echo "${ECHO_T}$ac_cv_objext" >&6; }
2539 OBJEXT=$ac_cv_objext
2541 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2542 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2543 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 cat >conftest.$ac_ext <<_ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2564 rm -f conftest.$ac_objext
2565 if { (ac_try="$ac_compile"
2567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2568 *) ac_try_echo
=$ac_try;;
2570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571 (eval "$ac_compile") 2>conftest.er1
2573 grep -v '^ *+' conftest.er1
>conftest.err
2575 cat conftest.err
>&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } && {
2578 test -z "$ac_c_werror_flag" ||
2579 test ! -s conftest.err
2580 } && test -s conftest.
$ac_objext; then
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.
$ac_ext >&5
2589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2590 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2593 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2594 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2595 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2596 ac_test_CFLAGS
=${CFLAGS+set}
2597 ac_save_CFLAGS
=$CFLAGS
2598 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2599 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_cc_g+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 ac_save_c_werror_flag
=$ac_c_werror_flag
2604 ac_c_werror_flag
=yes
2607 cat >conftest.
$ac_ext <<_ACEOF
2610 cat confdefs.h
>>conftest.
$ac_ext
2611 cat >>conftest.
$ac_ext <<_ACEOF
2612 /* end confdefs.h. */
2622 rm -f conftest.
$ac_objext
2623 if { (ac_try
="$ac_compile"
2625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2626 *) ac_try_echo=$ac_try;;
2628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2629 (eval "$ac_compile") 2>conftest.er1
2631 grep -v '^ *+' conftest.er1 >conftest.err
2633 cat conftest.err >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } && {
2636 test -z "$ac_c_werror_flag" ||
2637 test ! -s conftest.err
2638 } && test -s conftest.$ac_objext; then
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2645 cat >conftest.$ac_ext <<_ACEOF
2648 cat confdefs.h >>conftest.$ac_ext
2649 cat >>conftest.$ac_ext <<_ACEOF
2650 /* end confdefs.h. */
2660 rm -f conftest.$ac_objext
2661 if { (ac_try="$ac_compile"
2663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2664 *) ac_try_echo
=$ac_try;;
2666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667 (eval "$ac_compile") 2>conftest.er1
2669 grep -v '^ *+' conftest.er1
>conftest.err
2671 cat conftest.err
>&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } && {
2674 test -z "$ac_c_werror_flag" ||
2675 test ! -s conftest.err
2676 } && test -s conftest.
$ac_objext; then
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.
$ac_ext >&5
2682 ac_c_werror_flag
=$ac_save_c_werror_flag
2684 cat >conftest.
$ac_ext <<_ACEOF
2687 cat confdefs.h
>>conftest.
$ac_ext
2688 cat >>conftest.
$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2699 rm -f conftest.
$ac_objext
2700 if { (ac_try
="$ac_compile"
2702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compile") 2>conftest.er1
2708 grep -v '^ *+' conftest.er1 >conftest.err
2710 cat conftest.err >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } && {
2713 test -z "$ac_c_werror_flag" ||
2714 test ! -s conftest.err
2715 } && test -s conftest.$ac_objext; then
2718 echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731 ac_c_werror_flag=$ac_save_c_werror_flag
2733 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2734 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2735 if test "$ac_test_CFLAGS" = set; then
2736 CFLAGS=$ac_save_CFLAGS
2737 elif test $ac_cv_prog_cc_g = yes; then
2738 if test "$GCC" = yes; then
2744 if test "$GCC" = yes; then
2750 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2751 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2752 if test "${ac_cv_prog_cc_c89+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 ac_cv_prog_cc_c89=no
2757 cat >conftest.$ac_ext <<_ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2765 #include <sys/types.h>
2766 #include <sys/stat.h>
2767 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2768 struct buf { int x; };
2769 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2770 static char *e (p, i)
2776 static char *f (char * (*g) (char **, int), char **p, ...)
2781 s = g (p, va_arg (v,int));
2786 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2787 function prototypes and stuff, but not '\xHH' hex character constants.
2788 These don't provoke an error unfortunately, instead are silently treated
2789 as 'x'. The following induces an error, until -std is added to get
2790 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2791 array size at least. It's necessary to write '\x00'==0 to get something
2792 that's true only with -std. */
2793 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2795 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2796 inside strings and character constants. */
2798 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2800 int test (int i, double x);
2801 struct s1 {int (*f) (int a);};
2802 struct s2 {int (*f) (double a);};
2803 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2809 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2814 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2815 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2817 CC="$ac_save_CC $ac_arg"
2818 rm -f conftest.$ac_objext
2819 if { (ac_try="$ac_compile"
2821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2822 *) ac_try_echo
=$ac_try;;
2824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2825 (eval "$ac_compile") 2>conftest.er1
2827 grep -v '^ *+' conftest.er1
>conftest.err
2829 cat conftest.err
>&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } && {
2832 test -z "$ac_c_werror_flag" ||
2833 test ! -s conftest.err
2834 } && test -s conftest.
$ac_objext; then
2835 ac_cv_prog_cc_c89
=$ac_arg
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.
$ac_ext >&5
2843 rm -f core conftest.err conftest.
$ac_objext
2844 test "x$ac_cv_prog_cc_c89" != "xno" && break
2846 rm -f conftest.
$ac_ext
2851 case "x$ac_cv_prog_cc_c89" in
2853 { echo "$as_me:$LINENO: result: none needed" >&5
2854 echo "${ECHO_T}none needed" >&6; } ;;
2856 { echo "$as_me:$LINENO: result: unsupported" >&5
2857 echo "${ECHO_T}unsupported" >&6; } ;;
2859 CC
="$CC $ac_cv_prog_cc_c89"
2860 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2861 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2866 ac_cpp
='$CPP $CPPFLAGS'
2867 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2872 ac_cpp
='$CXXCPP $CPPFLAGS'
2873 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2876 if test -z "$CXX"; then
2877 if test -n "$CCC"; then
2880 if test -n "$ac_tool_prefix"; then
2881 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2884 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2887 if test "${ac_cv_prog_CXX+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 if test -n "$CXX"; then
2891 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2897 test -z "$as_dir" && as_dir
=.
2898 for ac_exec_ext
in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 if test -n "$CXX"; then
2912 { echo "$as_me:$LINENO: result: $CXX" >&5
2913 echo "${ECHO_T}$CXX" >&6; }
2915 { echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6; }
2920 test -n "$CXX" && break
2923 if test -z "$CXX"; then
2925 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2927 # Extract the first word of "$ac_prog", so it can be a program name with args.
2928 set dummy
$ac_prog; ac_word
=$2
2929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2931 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 if test -n "$ac_ct_CXX"; then
2935 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2941 test -z "$as_dir" && as_dir
=.
2942 for ac_exec_ext
in '' $ac_executable_extensions; do
2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2955 if test -n "$ac_ct_CXX"; then
2956 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2957 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2959 { echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6; }
2964 test -n "$ac_ct_CXX" && break
2967 if test "x$ac_ct_CXX" = x
; then
2970 case $cross_compiling:$ac_tool_warned in
2972 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2973 whose name does not start with the host triplet. If you think this
2974 configuration is useful to you, please write to autoconf@gnu.org." >&5
2975 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2976 whose name does not start with the host triplet. If you think this
2977 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2978 ac_tool_warned
=yes ;;
2986 # Provide some information about the compiler.
2987 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2988 ac_compiler
=`set X $ac_compile; echo $2`
2989 { (ac_try
="$ac_compiler --version >&5"
2991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_compiler --version >&5") 2>&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }
2999 { (ac_try="$ac_compiler -v >&5"
3001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3002 *) ac_try_echo
=$ac_try;;
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_compiler -v >&5") 2>&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3009 { (ac_try
="$ac_compiler -V >&5"
3011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_compiler -V >&5") 2>&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }
3020 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3021 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3022 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 cat >conftest.$ac_ext <<_ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3043 rm -f conftest.$ac_objext
3044 if { (ac_try="$ac_compile"
3046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3047 *) ac_try_echo
=$ac_try;;
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_compile") 2>conftest.er1
3052 grep -v '^ *+' conftest.er1
>conftest.err
3054 cat conftest.err
>&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } && {
3057 test -z "$ac_cxx_werror_flag" ||
3058 test ! -s conftest.err
3059 } && test -s conftest.
$ac_objext; then
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.
$ac_ext >&5
3068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3069 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3072 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3073 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3074 GXX
=`test $ac_compiler_gnu = yes && echo yes`
3075 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3076 ac_save_CXXFLAGS
=$CXXFLAGS
3077 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3078 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3079 if test "${ac_cv_prog_cxx_g+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3083 ac_cxx_werror_flag
=yes
3086 cat >conftest.
$ac_ext <<_ACEOF
3089 cat confdefs.h
>>conftest.
$ac_ext
3090 cat >>conftest.
$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3101 rm -f conftest.
$ac_objext
3102 if { (ac_try
="$ac_compile"
3104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_compile") 2>conftest.er1
3110 grep -v '^ *+' conftest.er1 >conftest.err
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } && {
3115 test -z "$ac_cxx_werror_flag" ||
3116 test ! -s conftest.err
3117 } && test -s conftest.$ac_objext; then
3118 ac_cv_prog_cxx_g=yes
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3124 cat >conftest.$ac_ext <<_ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3139 rm -f conftest.$ac_objext
3140 if { (ac_try="$ac_compile"
3142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3143 *) ac_try_echo
=$ac_try;;
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_compile") 2>conftest.er1
3148 grep -v '^ *+' conftest.er1
>conftest.err
3150 cat conftest.err
>&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } && {
3153 test -z "$ac_cxx_werror_flag" ||
3154 test ! -s conftest.err
3155 } && test -s conftest.
$ac_objext; then
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.
$ac_ext >&5
3161 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3163 cat >conftest.
$ac_ext <<_ACEOF
3166 cat confdefs.h
>>conftest.
$ac_ext
3167 cat >>conftest.
$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3178 rm -f conftest.
$ac_objext
3179 if { (ac_try
="$ac_compile"
3181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_compile") 2>conftest.er1
3187 grep -v '^ *+' conftest.er1 >conftest.err
3189 cat conftest.err >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } && {
3192 test -z "$ac_cxx_werror_flag" ||
3193 test ! -s conftest.err
3194 } && test -s conftest.$ac_objext; then
3195 ac_cv_prog_cxx_g=yes
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3212 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3213 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3214 if test "$ac_test_CXXFLAGS" = set; then
3215 CXXFLAGS=$ac_save_CXXFLAGS
3216 elif test $ac_cv_prog_cxx_g = yes; then
3217 if test "$GXX" = yes; then
3223 if test "$GXX" = yes; then
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236 ac_cpp='$CXXCPP $CPPFLAGS'
3237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3243 { echo "$as_me:$LINENO: checking whether GNU C++ compiler is default" >&5
3244 echo $ECHO_N "checking whether GNU C++ compiler is default... $ECHO_C" >&6; }
3247 GCC_VERSION=`$CC -dumpversion`
3248 GXX_VERSION=`$CXX -dumpversion`
3249 { echo "$as_me:$LINENO: result: yes" >&5
3250 echo "${ECHO_T}yes" >&6; }
3251 { echo "$as_me:$LINENO: checking version of gcc" >&5
3252 echo $ECHO_N "checking version of gcc... $ECHO_C" >&6; }
3253 { echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
3254 echo "${ECHO_T}$GCC_VERSION" >&6; }
3255 { echo "$as_me:$LINENO: checking version of g++" >&5
3256 echo $ECHO_N "checking version of g++... $ECHO_C" >&6; }
3257 { echo "$as_me:$LINENO: result: $GXX_VERSION" >&5
3258 echo "${ECHO_T}$GXX_VERSION" >&6; }
3259 case "$GXX_VERSION" in
3261 echo "old style GNU compiler"
3262 cat >>confdefs.h <<\_ACEOF
3263 #define OLD_GNU_COMPILER
3272 { echo "$as_me:$LINENO: result: no" >&5
3273 echo "${ECHO_T}no" >&6; }
3274 { echo "$as_me:$LINENO: WARNING: cannot find GNU C++ compiler" >&5
3275 echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
3279 #--------------------------------------------------------------------
3281 #--------------------------------------------------------------------
3283 if test -z "$GUILE_CFLAGS" -a -z "$GUILE_LDFLAGS"; then
3285 ## The GUILE_FLAGS macro.
3286 ## First, let's just see if we can find Guile at all.
3287 { echo "$as_me:$LINENO: checking for Guile" >&5
3288 echo $ECHO_N "checking for Guile... $ECHO_C" >&6; }
3289 guile-config link > /dev/null || {
3290 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
3293 GUILE_ORIGINAL_CFLAGS="`guile-config compile
`"
3294 GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
3295 GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
3296 GUILE_LDFLAGS="`guile-config link
`"
3297 GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir
` -lguile -lreadline -ltermcap"
3300 { echo "$as_me:$LINENO: result: yes" >&5
3301 echo "${ECHO_T}yes" >&6; }
3304 { echo "$as_me:$LINENO: checking version of guile" >&5
3305 echo $ECHO_N "checking version of guile... $ECHO_C" >&6; }
3306 if test -z "$GUILE_VERSION" ; then
3307 GUILE_VERSION=`guile
--version |
grep 'Guile \([0-9]\)' |
sed 's/Guile \([0-9]*\)/\1/'`
3309 { echo "$as_me:$LINENO: result: $GUILE_VERSION" >&5
3310 echo "${ECHO_T}$GUILE_VERSION" >&6; }
3312 case "$GUILE_VERSION" in
3313 1.0* | 1.1* | 1.2* | 1.3* | 1.4* | 1.5*)
3314 CONFIG_GUILE_SERIAL="A"
3317 CONFIG_GUILE_SERIAL="B"
3320 CONFIG_GUILE_SERIAL="C"
3325 #--------------------------------------------------------------------
3326 # Checks for standard functionality
3327 #--------------------------------------------------------------------
3331 { echo "$as_me:$LINENO: checking for C++-compatible X header files" >&5
3332 echo $ECHO_N "checking for C++-compatible X header files... $ECHO_C" >&6; }
3333 ac_save_cppflags="$CPPFLAGS"
3334 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3335 cat >conftest.$ac_ext <<_ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 #include <X11/Xlib.h>
3342 #include <X11/Xutil.h>
3351 rm -f conftest.$ac_objext
3352 if { (ac_try="$ac_compile"
3354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3355 *) ac_try_echo
=$ac_try;;
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_compile") 2>conftest.er1
3360 grep -v '^ *+' conftest.er1
>conftest.err
3362 cat conftest.err
>&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); } && {
3365 test -z "$ac_cxx_werror_flag" ||
3366 test ! -s conftest.err
3367 } && test -s conftest.
$ac_objext; then
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.
$ac_ext >&5
3377 /usr
/X11R
6/include \
3378 /usr
/X11R
5/include \
3379 /usr
/X11R
4/include \
3382 /usr
/include
/X11R6 \
3383 /usr
/include
/X11R5 \
3384 /usr
/include
/X11R4 \
3386 /usr
/local
/X11
/include \
3387 /usr
/local
/X11R
6/include \
3388 /usr
/local
/X11R
5/include \
3389 /usr
/local
/X11R
4/include \
3391 /usr
/local
/include
/X11 \
3392 /usr
/local
/include
/X11R6 \
3393 /usr
/local
/include
/X11R5 \
3394 /usr
/local
/include
/X11R4 \
3398 /usr
/XFree86
/include
/X11 \
3401 /usr
/local
/include \
3402 /usr
/unsupported
/include \
3403 /usr
/athena
/include \
3404 /usr
/local
/x11r
5/include \
3405 /usr
/lpp
/Xamples
/include \
3407 /usr
/openwin
/include \
3408 /usr
/openwin
/share
/include \
3411 if test -r "$ac_dir/X11/Xlib.h"; then
3412 tm_x_includes
=$ac_dir
3416 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3417 < "$tm_x_includes/X11/Xlib.h" > X11
/Xlib.h
3418 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3419 < "$tm_x_includes/X11/Xutil.h" > X11
/Xutil.h
3420 X_CFLAGS
="-I.. $X_CFLAGS"
3424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3425 CPPFLAGS
="$ac_save_cppflags"
3428 ac_cpp
='$CXXCPP $CPPFLAGS'
3429 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3432 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3433 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3434 if test -z "$CXXCPP"; then
3435 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 # Double quotes because CXXCPP needs to be expanded
3439 for CXXCPP
in "$CXX -E" "/lib/cpp"
3442 for ac_cxx_preproc_warn_flag
in '' yes
3444 # Use a header file that comes with gcc, so configuring glibc
3445 # with a fresh cross-compiler works.
3446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3447 # <limits.h> exists even on freestanding compilers.
3448 # On the NeXT, cc -E runs the code through the compiler's parser,
3449 # not just through cpp. "Syntax error" is here to catch this case.
3450 cat >conftest.
$ac_ext <<_ACEOF
3453 cat confdefs.h
>>conftest.
$ac_ext
3454 cat >>conftest.
$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3457 # include <limits.h>
3459 # include <assert.h>
3463 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3471 grep -v '^ *+' conftest.er1 >conftest.err
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } >/dev/null && {
3476 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3477 test ! -s conftest.err
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3484 # Broken: fails on valid input.
3488 rm -f conftest.err conftest.$ac_ext
3490 # OK, works on sane cases. Now check whether nonexistent headers
3491 # can be detected and how.
3492 cat >conftest.$ac_ext <<_ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3498 #include <ac_nonexistent.h>
3500 if { (ac_try="$ac_cpp conftest.$ac_ext"
3502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3503 *) ac_try_echo
=$ac_try;;
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3508 grep -v '^ *+' conftest.er1
>conftest.err
3510 cat conftest.err
>&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } >/dev
/null
&& {
3513 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3514 test ! -s conftest.err
3516 # Broken: success on invalid input.
3519 echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.
$ac_ext >&5
3522 # Passes both tests.
3527 rm -f conftest.err conftest.
$ac_ext
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.err conftest.
$ac_ext
3532 if $ac_preproc_ok; then
3537 ac_cv_prog_CXXCPP
=$CXXCPP
3540 CXXCPP
=$ac_cv_prog_CXXCPP
3542 ac_cv_prog_CXXCPP
=$CXXCPP
3544 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
3545 echo "${ECHO_T}$CXXCPP" >&6; }
3547 for ac_cxx_preproc_warn_flag
in '' yes
3549 # Use a header file that comes with gcc, so configuring glibc
3550 # with a fresh cross-compiler works.
3551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3552 # <limits.h> exists even on freestanding compilers.
3553 # On the NeXT, cc -E runs the code through the compiler's parser,
3554 # not just through cpp. "Syntax error" is here to catch this case.
3555 cat >conftest.
$ac_ext <<_ACEOF
3558 cat confdefs.h
>>conftest.
$ac_ext
3559 cat >>conftest.
$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3562 # include <limits.h>
3564 # include <assert.h>
3568 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3576 grep -v '^ *+' conftest.er1 >conftest.err
3578 cat conftest.err >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } >/dev/null && {
3581 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3582 test ! -s conftest.err
3586 echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3589 # Broken: fails on valid input.
3593 rm -f conftest.err conftest.$ac_ext
3595 # OK, works on sane cases. Now check whether nonexistent headers
3596 # can be detected and how.
3597 cat >conftest.$ac_ext <<_ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 #include <ac_nonexistent.h>
3605 if { (ac_try="$ac_cpp conftest.$ac_ext"
3607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3608 *) ac_try_echo
=$ac_try;;
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3613 grep -v '^ *+' conftest.er1
>conftest.err
3615 cat conftest.err
>&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } >/dev
/null
&& {
3618 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3619 test ! -s conftest.err
3621 # Broken: success on invalid input.
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.
$ac_ext >&5
3627 # Passes both tests.
3632 rm -f conftest.err conftest.
$ac_ext
3635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3636 rm -f conftest.err conftest.
$ac_ext
3637 if $ac_preproc_ok; then
3640 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3641 See \`config.log' for more details." >&5
3642 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3643 See \`config.log' for more details." >&2;}
3644 { (exit 1); exit 1; }; }
3648 ac_cpp
='$CXXCPP $CPPFLAGS'
3649 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3654 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3655 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3656 if test "${ac_cv_path_GREP+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 # Extract the first word of "grep ggrep" to use in msg output
3660 if test -z "$GREP"; then
3661 set dummy
grep ggrep
; ac_prog_name
=$2
3662 if test "${ac_cv_path_GREP+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 ac_path_GREP_found
=false
3666 # Loop through the user's path and test for each of PROGNAME-LIST
3667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3668 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3671 test -z "$as_dir" && as_dir
=.
3672 for ac_prog
in grep ggrep
; do
3673 for ac_exec_ext
in '' $ac_executable_extensions; do
3674 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3675 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3676 # Check for GNU ac_path_GREP and select it if it is found.
3677 # Check for GNU $ac_path_GREP
3678 case `"$ac_path_GREP" --version 2>&1` in
3680 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3683 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3686 cat "conftest.in" "conftest.in" >"conftest.tmp"
3687 mv "conftest.tmp" "conftest.in"
3688 cp "conftest.in" "conftest.nl"
3689 echo 'GREP' >> "conftest.nl"
3690 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3691 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3692 ac_count
=`expr $ac_count + 1`
3693 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3694 # Best one so far, save it but keep looking for a better one
3695 ac_cv_path_GREP
="$ac_path_GREP"
3696 ac_path_GREP_max
=$ac_count
3698 # 10*(2^10) chars as input seems more than enough
3699 test $ac_count -gt 10 && break
3701 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3705 $ac_path_GREP_found && break 3
3715 GREP
="$ac_cv_path_GREP"
3716 if test -z "$GREP"; then
3717 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3718 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3719 { (exit 1); exit 1; }; }
3723 ac_cv_path_GREP
=$GREP
3728 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3729 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3730 GREP
="$ac_cv_path_GREP"
3733 { echo "$as_me:$LINENO: checking for egrep" >&5
3734 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3735 if test "${ac_cv_path_EGREP+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3739 then ac_cv_path_EGREP
="$GREP -E"
3741 # Extract the first word of "egrep" to use in msg output
3742 if test -z "$EGREP"; then
3743 set dummy
egrep; ac_prog_name
=$2
3744 if test "${ac_cv_path_EGREP+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 ac_path_EGREP_found
=false
3748 # Loop through the user's path and test for each of PROGNAME-LIST
3749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3750 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3753 test -z "$as_dir" && as_dir
=.
3754 for ac_prog
in egrep; do
3755 for ac_exec_ext
in '' $ac_executable_extensions; do
3756 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3757 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3758 # Check for GNU ac_path_EGREP and select it if it is found.
3759 # Check for GNU $ac_path_EGREP
3760 case `"$ac_path_EGREP" --version 2>&1` in
3762 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3765 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3768 cat "conftest.in" "conftest.in" >"conftest.tmp"
3769 mv "conftest.tmp" "conftest.in"
3770 cp "conftest.in" "conftest.nl"
3771 echo 'EGREP' >> "conftest.nl"
3772 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3773 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3774 ac_count
=`expr $ac_count + 1`
3775 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3776 # Best one so far, save it but keep looking for a better one
3777 ac_cv_path_EGREP
="$ac_path_EGREP"
3778 ac_path_EGREP_max
=$ac_count
3780 # 10*(2^10) chars as input seems more than enough
3781 test $ac_count -gt 10 && break
3783 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3787 $ac_path_EGREP_found && break 3
3797 EGREP
="$ac_cv_path_EGREP"
3798 if test -z "$EGREP"; then
3799 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3800 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3801 { (exit 1); exit 1; }; }
3805 ac_cv_path_EGREP
=$EGREP
3811 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3812 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3813 EGREP
="$ac_cv_path_EGREP"
3816 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3817 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3818 if test "${ac_cv_header_stdc+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 cat >conftest.
$ac_ext <<_ACEOF
3824 cat confdefs.h
>>conftest.
$ac_ext
3825 cat >>conftest.
$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3840 rm -f conftest.
$ac_objext
3841 if { (ac_try
="$ac_compile"
3843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3847 (eval "$ac_compile") 2>conftest.er1
3849 grep -v '^ *+' conftest.er1 >conftest.err
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } && {
3854 test -z "$ac_cxx_werror_flag" ||
3855 test ! -s conftest.err
3856 } && test -s conftest.$ac_objext; then
3857 ac_cv_header_stdc=yes
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 ac_cv_header_stdc=no
3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867 if test $ac_cv_header_stdc = yes; then
3868 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3869 cat >conftest.$ac_ext <<_ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3879 $EGREP "memchr" >/dev/null 2>&1; then
3882 ac_cv_header_stdc=no
3888 if test $ac_cv_header_stdc = yes; then
3889 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3890 cat >conftest.$ac_ext <<_ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3900 $EGREP "free" >/dev/null 2>&1; then
3903 ac_cv_header_stdc=no
3909 if test $ac_cv_header_stdc = yes; then
3910 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3911 if test "$cross_compiling" = yes; then
3914 cat >conftest.$ac_ext <<_ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3922 #if ((' ' & 0x0FF) == 0x020)
3923 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3924 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3926 # define ISLOWER(c) \
3927 (('a' <= (c) && (c) <= 'i') \
3928 || ('j' <= (c) && (c) <= 'r') \
3929 || ('s' <= (c) && (c) <= 'z'))
3930 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3933 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3938 for (i = 0; i < 256; i++)
3939 if (XOR (islower (i), ISLOWER (i))
3940 || toupper (i) != TOUPPER (i))
3945 rm -f conftest$ac_exeext
3946 if { (ac_try="$ac_link"
3948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3949 *) ac_try_echo
=$ac_try;;
3951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_link") 2>&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3956 { (case "(($ac_try" in
3957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_try") 2>&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; }; then
3967 echo "$as_me: program exited with status $ac_status" >&5
3968 echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3972 ac_cv_header_stdc=no
3974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3980 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3981 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3982 if test $ac_cv_header_stdc = yes; then
3984 cat >>confdefs.h <<\_ACEOF
3985 #define STDC_HEADERS 1
3990 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4000 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4001 inttypes.h stdint.h unistd.h
4003 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 cat >conftest.$ac_ext <<_ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 $ac_includes_default
4017 #include <$ac_header>
4019 rm -f conftest.$ac_objext
4020 if { (ac_try="$ac_compile"
4022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4023 *) ac_try_echo
=$ac_try;;
4025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4026 (eval "$ac_compile") 2>conftest.er1
4028 grep -v '^ *+' conftest.er1
>conftest.err
4030 cat conftest.err
>&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } && {
4033 test -z "$ac_cxx_werror_flag" ||
4034 test ! -s conftest.err
4035 } && test -s conftest.
$ac_objext; then
4036 eval "$as_ac_Header=yes"
4038 echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.
$ac_ext >&5
4041 eval "$as_ac_Header=no"
4044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4046 ac_res
=`eval echo '${'$as_ac_Header'}'`
4047 { echo "$as_me:$LINENO: result: $ac_res" >&5
4048 echo "${ECHO_T}$ac_res" >&6; }
4049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4050 cat >>confdefs.h
<<_ACEOF
4051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4059 { echo "$as_me:$LINENO: checking for FILE" >&5
4060 echo $ECHO_N "checking for FILE... $ECHO_C" >&6; }
4061 if test "${ac_cv_type_FILE+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 cat >conftest.
$ac_ext <<_ACEOF
4067 cat confdefs.h
>>conftest.
$ac_ext
4068 cat >>conftest.
$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 $ac_includes_default
4071 typedef FILE ac__type_new_;
4075 if ((ac__type_new_ *) 0)
4077 if (sizeof (ac__type_new_))
4083 rm -f conftest.
$ac_objext
4084 if { (ac_try
="$ac_compile"
4086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_compile") 2>conftest.er1
4092 grep -v '^ *+' conftest.er1 >conftest.err
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } && {
4097 test -z "$ac_cxx_werror_flag" ||
4098 test ! -s conftest.err
4099 } && test -s conftest.$ac_objext; then
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 { echo "$as_me:$LINENO: result: $ac_cv_type_FILE" >&5
4111 echo "${ECHO_T}$ac_cv_type_FILE" >&6; }
4112 if test $ac_cv_type_FILE = yes; then
4114 cat >>confdefs.h <<_ACEOF
4121 { echo "$as_me:$LINENO: checking for intptr_t" >&5
4122 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
4123 if test "${ac_cv_type_intptr_t+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 cat >conftest.$ac_ext <<_ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4132 $ac_includes_default
4133 typedef intptr_t ac__type_new_;
4137 if ((ac__type_new_ *) 0)
4139 if (sizeof (ac__type_new_))
4145 rm -f conftest.$ac_objext
4146 if { (ac_try="$ac_compile"
4148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4149 *) ac_try_echo
=$ac_try;;
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_compile") 2>conftest.er1
4154 grep -v '^ *+' conftest.er1
>conftest.err
4156 cat conftest.err
>&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } && {
4159 test -z "$ac_cxx_werror_flag" ||
4160 test ! -s conftest.err
4161 } && test -s conftest.
$ac_objext; then
4162 ac_cv_type_intptr_t
=yes
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.
$ac_ext >&5
4167 ac_cv_type_intptr_t
=no
4170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4172 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
4173 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
4174 if test $ac_cv_type_intptr_t = yes; then
4176 cat >>confdefs.h
<<_ACEOF
4177 #define HAVE_INTPTR_T 1
4183 { echo "$as_me:$LINENO: checking for time_t" >&5
4184 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
4185 if test "${ac_cv_type_time_t+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 cat >conftest.
$ac_ext <<_ACEOF
4191 cat confdefs.h
>>conftest.
$ac_ext
4192 cat >>conftest.
$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4194 $ac_includes_default
4195 typedef time_t ac__type_new_;
4199 if ((ac__type_new_ *) 0)
4201 if (sizeof (ac__type_new_))
4207 rm -f conftest.
$ac_objext
4208 if { (ac_try
="$ac_compile"
4210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_compile") 2>conftest.er1
4216 grep -v '^ *+' conftest.er1 >conftest.err
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } && {
4221 test -z "$ac_cxx_werror_flag" ||
4222 test ! -s conftest.err
4223 } && test -s conftest.$ac_objext; then
4224 ac_cv_type_time_t=yes
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4229 ac_cv_type_time_t=no
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
4235 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
4236 if test $ac_cv_type_time_t = yes; then
4238 cat >>confdefs.h <<_ACEOF
4239 #define HAVE_TIME_T 1
4245 { echo "$as_me:$LINENO: checking for X" >&5
4246 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4249 # Check whether --with-x was given.
4250 if test "${with_x+set}" = set; then
4254 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4255 if test "x$with_x" = xno; then
4256 # The user explicitly disabled X.
4259 case $x_includes,$x_libraries in #(
4260 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4261 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4262 { (exit 1); exit 1; }; };; #(
4263 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 # One or both of the vars are not set, and there is no cached value.
4267 ac_x_includes=no ac_x_libraries=no
4268 rm -f -r conftest.dir
4269 if mkdir conftest.dir; then
4271 cat >Imakefile <<'_ACEOF'
4273 @echo incroot='${INCROOT}'
4275 @echo usrlibdir='${USRLIBDIR}'
4277 @echo libdir='${LIBDIR}'
4279 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4280 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4281 for ac_var in incroot usrlibdir libdir; do
4282 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
4284 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4285 for ac_extension in a so sl dylib la dll; do
4286 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4287 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4288 ac_im_usrlibdir=$ac_im_libdir; break
4291 # Screen out bogus values from the imake configuration. They are
4292 # bogus both because they are the default anyway, and because
4293 # using them would break gcc on systems where it needs fixed includes.
4294 case $ac_im_incroot in
4295 /usr/include) ac_x_includes= ;;
4296 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4298 case $ac_im_usrlibdir in
4300 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4304 rm -f -r conftest.dir
4307 # Standard set of common directories for X headers.
4308 # Check X11 before X11Rn because it is often a symlink to the current release.
4320 /usr/local/X11/include
4321 /usr/local/X11R6/include
4322 /usr/local/X11R5/include
4323 /usr/local/X11R4/include
4325 /usr/local/include/X11
4326 /usr/local/include/X11R6
4327 /usr/local/include/X11R5
4328 /usr/local/include/X11R4
4332 /usr/XFree86/include/X11
4336 /usr/unsupported/include
4338 /usr/local/x11r5/include
4339 /usr/lpp/Xamples/include
4341 /usr/openwin/include
4342 /usr/openwin/share/include'
4344 if test "$ac_x_includes" = no; then
4345 # Guess where to find include files, by looking for Xlib.h.
4346 # First, try using that file with no special directory specified.
4347 cat >conftest.$ac_ext <<_ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4353 #include <X11/Xlib.h>
4355 if { (ac_try="$ac_cpp conftest.$ac_ext"
4357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4358 *) ac_try_echo
=$ac_try;;
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4363 grep -v '^ *+' conftest.er1
>conftest.err
4365 cat conftest.err
>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } >/dev
/null
&& {
4368 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4369 test ! -s conftest.err
4371 # We can compile using X headers with no special include directory.
4374 echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.
$ac_ext >&5
4377 for ac_dir
in $ac_x_header_dirs; do
4378 if test -r "$ac_dir/X11/Xlib.h"; then
4379 ac_x_includes
=$ac_dir
4385 rm -f conftest.err conftest.
$ac_ext
4386 fi # $ac_x_includes = no
4388 if test "$ac_x_libraries" = no
; then
4389 # Check for the libraries.
4390 # See if we find them without any special options.
4391 # Don't add to $LIBS permanently.
4394 cat >conftest.
$ac_ext <<_ACEOF
4397 cat confdefs.h
>>conftest.
$ac_ext
4398 cat >>conftest.
$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 #include <X11/Xlib.h>
4409 rm -f conftest.
$ac_objext conftest
$ac_exeext
4410 if { (ac_try
="$ac_link"
4412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4416 (eval "$ac_link") 2>conftest.er1
4418 grep -v '^ *+' conftest.er1 >conftest.err
4420 cat conftest.err >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } && {
4423 test -z "$ac_cxx_werror_flag" ||
4424 test ! -s conftest.err
4425 } && test -s conftest$ac_exeext &&
4426 $as_test_x conftest$ac_exeext; then
4428 # We can link X programs with no special library path.
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4435 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
4437 # Don't even attempt the hair of trying to link an X program!
4438 for ac_extension in a so sl dylib la dll; do
4439 if test -r "$ac_dir/libX11.$ac_extension"; then
4440 ac_x_libraries=$ac_dir
4447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4448 conftest$ac_exeext conftest.$ac_ext
4449 fi # $ac_x_libraries = no
4451 case $ac_x_includes,$ac_x_libraries in #(
4453 # Didn't find X, or a directory has "'" in its name.
4454 ac_cv_have_x="have_x=no";; #(
4456 # Record where we found X for the cache.
4457 ac_cv_have_x="have_x=yes\
4458 ac_x_includes='$ac_x_includes'\
4459 ac_x_libraries='$ac_x_libraries'"
4465 eval "$ac_cv_have_x"
4468 if test "$have_x" != yes; then
4469 { echo "$as_me:$LINENO: result: $have_x" >&5
4470 echo "${ECHO_T}$have_x" >&6; }
4473 # If each of the values was on the command line, it overrides each guess.
4474 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4475 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4476 # Update the cache value to reflect the command line values.
4477 ac_cv_have_x="have_x=yes\
4478 ac_x_includes='$x_includes'\
4479 ac_x_libraries='$x_libraries'"
4480 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4481 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4484 if test "$no_x" = yes; then
4485 # Not all programs may use this symbol, but it does not hurt to define it.
4487 cat >>confdefs.h <<\_ACEOF
4488 #define X_DISPLAY_MISSING 1
4491 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4493 if test -n "$x_includes"; then
4494 X_CFLAGS="$X_CFLAGS -I$x_includes"
4497 # It would also be nice to do this for all -L options, not just this one.
4498 if test -n "$x_libraries"; then
4499 X_LIBS="$X_LIBS -L$x_libraries"
4500 # For Solaris; some versions of Sun CC require a space after -R and
4501 # others require no space. Words are not sufficient . . . .
4502 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4503 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4504 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4505 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
4506 ac_cxx_werror_flag=yes
4507 cat >conftest.$ac_ext <<_ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4522 rm -f conftest.$ac_objext conftest$ac_exeext
4523 if { (ac_try="$ac_link"
4525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4526 *) ac_try_echo
=$ac_try;;
4528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529 (eval "$ac_link") 2>conftest.er1
4531 grep -v '^ *+' conftest.er1
>conftest.err
4533 cat conftest.err
>&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } && {
4536 test -z "$ac_cxx_werror_flag" ||
4537 test ! -s conftest.err
4538 } && test -s conftest
$ac_exeext &&
4539 $as_test_x conftest
$ac_exeext; then
4540 { echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6; }
4542 X_LIBS
="$X_LIBS -R$x_libraries"
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.
$ac_ext >&5
4547 LIBS
="$ac_xsave_LIBS -R $x_libraries"
4548 cat >conftest.
$ac_ext <<_ACEOF
4551 cat confdefs.h
>>conftest.
$ac_ext
4552 cat >>conftest.
$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4563 rm -f conftest.
$ac_objext conftest
$ac_exeext
4564 if { (ac_try
="$ac_link"
4566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_link") 2>conftest.er1
4572 grep -v '^ *+' conftest.er1 >conftest.err
4574 cat conftest.err >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } && {
4577 test -z "$ac_cxx_werror_flag" ||
4578 test ! -s conftest.err
4579 } && test -s conftest$ac_exeext &&
4580 $as_test_x conftest$ac_exeext; then
4581 { echo "$as_me:$LINENO: result: yes" >&5
4582 echo "${ECHO_T}yes" >&6; }
4583 X_LIBS="$X_LIBS -R $x_libraries"
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 { echo "$as_me:$LINENO: result: neither works" >&5
4589 echo "${ECHO_T}neither works" >&6; }
4592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4593 conftest$ac_exeext conftest.$ac_ext
4596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4597 conftest$ac_exeext conftest.$ac_ext
4598 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
4602 # Check for system-dependent libraries X programs must link with.
4603 # Do this before checking for the system-independent R6 libraries
4604 # (-lICE), since we may need -lsocket or whatever for X linking.
4606 if test "$ISC" = yes; then
4607 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4609 # Martyn Johnson says this is needed for Ultrix, if the X
4610 # libraries were built with DECnet support. And Karl Berry says
4611 # the Alpha needs dnet_stub (dnet does not exist).
4612 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4613 cat >conftest.$ac_ext <<_ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4620 /* Override any GCC internal prototype to avoid an error.
4621 Use char because int might match the return type of a GCC
4622 builtin and then its argument prototype would still apply. */
4626 char XOpenDisplay ();
4630 return XOpenDisplay ();
4635 rm -f conftest.$ac_objext conftest$ac_exeext
4636 if { (ac_try="$ac_link"
4638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4639 *) ac_try_echo
=$ac_try;;
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642 (eval "$ac_link") 2>conftest.er1
4644 grep -v '^ *+' conftest.er1
>conftest.err
4646 cat conftest.err
>&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } && {
4649 test -z "$ac_cxx_werror_flag" ||
4650 test ! -s conftest.err
4651 } && test -s conftest
$ac_exeext &&
4652 $as_test_x conftest
$ac_exeext; then
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.
$ac_ext >&5
4658 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4659 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4660 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 ac_check_lib_save_LIBS
=$LIBS
4665 cat >conftest.
$ac_ext <<_ACEOF
4668 cat confdefs.h
>>conftest.
$ac_ext
4669 cat >>conftest.
$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4672 /* Override any GCC internal prototype to avoid an error.
4673 Use char because int might match the return type of a GCC
4674 builtin and then its argument prototype would still apply. */
4682 return dnet_ntoa ();
4687 rm -f conftest.
$ac_objext conftest
$ac_exeext
4688 if { (ac_try
="$ac_link"
4690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694 (eval "$ac_link") 2>conftest.er1
4696 grep -v '^ *+' conftest.er1 >conftest.err
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } && {
4701 test -z "$ac_cxx_werror_flag" ||
4702 test ! -s conftest.err
4703 } && test -s conftest$ac_exeext &&
4704 $as_test_x conftest$ac_exeext; then
4705 ac_cv_lib_dnet_dnet_ntoa=yes
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4710 ac_cv_lib_dnet_dnet_ntoa=no
4713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4714 conftest$ac_exeext conftest.$ac_ext
4715 LIBS=$ac_check_lib_save_LIBS
4717 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4718 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4719 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4720 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4723 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4724 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4725 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4726 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 ac_check_lib_save_LIBS=$LIBS
4730 LIBS="-ldnet_stub $LIBS"
4731 cat >conftest.$ac_ext <<_ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4738 /* Override any GCC internal prototype to avoid an error.
4739 Use char because int might match the return type of a GCC
4740 builtin and then its argument prototype would still apply. */
4748 return dnet_ntoa ();
4753 rm -f conftest.$ac_objext conftest$ac_exeext
4754 if { (ac_try="$ac_link"
4756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4757 *) ac_try_echo
=$ac_try;;
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760 (eval "$ac_link") 2>conftest.er1
4762 grep -v '^ *+' conftest.er1
>conftest.err
4764 cat conftest.err
>&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } && {
4767 test -z "$ac_cxx_werror_flag" ||
4768 test ! -s conftest.err
4769 } && test -s conftest
$ac_exeext &&
4770 $as_test_x conftest
$ac_exeext; then
4771 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
4773 echo "$as_me: failed program was:" >&5
4774 sed 's/^/| /' conftest.
$ac_ext >&5
4776 ac_cv_lib_dnet_stub_dnet_ntoa
=no
4779 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4780 conftest
$ac_exeext conftest.
$ac_ext
4781 LIBS
=$ac_check_lib_save_LIBS
4783 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4784 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4785 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4786 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
4792 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4793 conftest
$ac_exeext conftest.
$ac_ext
4794 LIBS
="$ac_xsave_LIBS"
4796 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4797 # to get the SysV transport functions.
4798 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4800 # The nsl library prevents programs from opening the X display
4801 # on Irix 5.2, according to T.E. Dickey.
4802 # The functions gethostbyname, getservbyname, and inet_addr are
4803 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4804 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4805 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4806 if test "${ac_cv_func_gethostbyname+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 cat >conftest.
$ac_ext <<_ACEOF
4812 cat confdefs.h
>>conftest.
$ac_ext
4813 cat >>conftest.
$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4815 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4817 #define gethostbyname innocuous_gethostbyname
4819 /* System header to define __stub macros and hopefully few prototypes,
4820 which can conflict with char gethostbyname (); below.
4821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4822 <limits.h> exists even on freestanding compilers. */
4825 # include <limits.h>
4827 # include <assert.h>
4830 #undef gethostbyname
4832 /* Override any GCC internal prototype to avoid an error.
4833 Use char because int might match the return type of a GCC
4834 builtin and then its argument prototype would still apply. */
4838 char gethostbyname ();
4839 /* The GNU C library defines this for functions which it implements
4840 to always fail with ENOSYS. Some functions are actually named
4841 something starting with __ and the normal name is an alias. */
4842 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4849 return gethostbyname ();
4854 rm -f conftest.
$ac_objext conftest
$ac_exeext
4855 if { (ac_try
="$ac_link"
4857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4861 (eval "$ac_link") 2>conftest.er1
4863 grep -v '^ *+' conftest.er1 >conftest.err
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } && {
4868 test -z "$ac_cxx_werror_flag" ||
4869 test ! -s conftest.err
4870 } && test -s conftest$ac_exeext &&
4871 $as_test_x conftest$ac_exeext; then
4872 ac_cv_func_gethostbyname=yes
4874 echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4877 ac_cv_func_gethostbyname=no
4880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4881 conftest$ac_exeext conftest.$ac_ext
4883 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4884 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4886 if test $ac_cv_func_gethostbyname = no; then
4887 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4888 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4889 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 ac_check_lib_save_LIBS=$LIBS
4894 cat >conftest.$ac_ext <<_ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4901 /* Override any GCC internal prototype to avoid an error.
4902 Use char because int might match the return type of a GCC
4903 builtin and then its argument prototype would still apply. */
4907 char gethostbyname ();
4911 return gethostbyname ();
4916 rm -f conftest.$ac_objext conftest$ac_exeext
4917 if { (ac_try="$ac_link"
4919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4920 *) ac_try_echo
=$ac_try;;
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_link") 2>conftest.er1
4925 grep -v '^ *+' conftest.er1
>conftest.err
4927 cat conftest.err
>&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } && {
4930 test -z "$ac_cxx_werror_flag" ||
4931 test ! -s conftest.err
4932 } && test -s conftest
$ac_exeext &&
4933 $as_test_x conftest
$ac_exeext; then
4934 ac_cv_lib_nsl_gethostbyname
=yes
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.
$ac_ext >&5
4939 ac_cv_lib_nsl_gethostbyname
=no
4942 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4943 conftest
$ac_exeext conftest.
$ac_ext
4944 LIBS
=$ac_check_lib_save_LIBS
4946 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4947 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4948 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4949 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4952 if test $ac_cv_lib_nsl_gethostbyname = no
; then
4953 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4954 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4955 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 ac_check_lib_save_LIBS
=$LIBS
4960 cat >conftest.
$ac_ext <<_ACEOF
4963 cat confdefs.h
>>conftest.
$ac_ext
4964 cat >>conftest.
$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4967 /* Override any GCC internal prototype to avoid an error.
4968 Use char because int might match the return type of a GCC
4969 builtin and then its argument prototype would still apply. */
4973 char gethostbyname ();
4977 return gethostbyname ();
4982 rm -f conftest.
$ac_objext conftest
$ac_exeext
4983 if { (ac_try
="$ac_link"
4985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989 (eval "$ac_link") 2>conftest.er1
4991 grep -v '^ *+' conftest.er1 >conftest.err
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } && {
4996 test -z "$ac_cxx_werror_flag" ||
4997 test ! -s conftest.err
4998 } && test -s conftest$ac_exeext &&
4999 $as_test_x conftest$ac_exeext; then
5000 ac_cv_lib_bsd_gethostbyname=yes
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5005 ac_cv_lib_bsd_gethostbyname=no
5008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5009 conftest$ac_exeext conftest.$ac_ext
5010 LIBS=$ac_check_lib_save_LIBS
5012 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5013 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
5014 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5015 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5021 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5022 # socket/setsockopt and other routines are undefined under SCO ODT
5023 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5024 # on later versions), says Simon Leinen: it contains gethostby*
5025 # variants that don't use the name server (or something). -lsocket
5026 # must be given before -lnsl if both are needed. We assume that
5027 # if connect needs -lnsl, so does gethostbyname.
5028 { echo "$as_me:$LINENO: checking for connect" >&5
5029 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5030 if test "${ac_cv_func_connect+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 cat >conftest.$ac_ext <<_ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5039 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5041 #define connect innocuous_connect
5043 /* System header to define __stub macros and hopefully few prototypes,
5044 which can conflict with char connect (); below.
5045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5046 <limits.h> exists even on freestanding compilers. */
5049 # include <limits.h>
5051 # include <assert.h>
5056 /* Override any GCC internal prototype to avoid an error.
5057 Use char because int might match the return type of a GCC
5058 builtin and then its argument prototype would still apply. */
5063 /* The GNU C library defines this for functions which it implements
5064 to always fail with ENOSYS. Some functions are actually named
5065 something starting with __ and the normal name is an alias. */
5066 #if defined __stub_connect || defined __stub___connect
5078 rm -f conftest.$ac_objext conftest$ac_exeext
5079 if { (ac_try="$ac_link"
5081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5082 *) ac_try_echo
=$ac_try;;
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085 (eval "$ac_link") 2>conftest.er1
5087 grep -v '^ *+' conftest.er1
>conftest.err
5089 cat conftest.err
>&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } && {
5092 test -z "$ac_cxx_werror_flag" ||
5093 test ! -s conftest.err
5094 } && test -s conftest
$ac_exeext &&
5095 $as_test_x conftest
$ac_exeext; then
5096 ac_cv_func_connect
=yes
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.
$ac_ext >&5
5101 ac_cv_func_connect
=no
5104 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5105 conftest
$ac_exeext conftest.
$ac_ext
5107 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5108 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
5110 if test $ac_cv_func_connect = no
; then
5111 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5112 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
5113 if test "${ac_cv_lib_socket_connect+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 ac_check_lib_save_LIBS
=$LIBS
5117 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
5118 cat >conftest.
$ac_ext <<_ACEOF
5121 cat confdefs.h
>>conftest.
$ac_ext
5122 cat >>conftest.
$ac_ext <<_ACEOF
5123 /* end confdefs.h. */
5125 /* Override any GCC internal prototype to avoid an error.
5126 Use char because int might match the return type of a GCC
5127 builtin and then its argument prototype would still apply. */
5140 rm -f conftest.
$ac_objext conftest
$ac_exeext
5141 if { (ac_try
="$ac_link"
5143 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5144 *) ac_try_echo=$ac_try;;
5146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5147 (eval "$ac_link") 2>conftest.er1
5149 grep -v '^ *+' conftest.er1 >conftest.err
5151 cat conftest.err >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } && {
5154 test -z "$ac_cxx_werror_flag" ||
5155 test ! -s conftest.err
5156 } && test -s conftest$ac_exeext &&
5157 $as_test_x conftest$ac_exeext; then
5158 ac_cv_lib_socket_connect=yes
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5163 ac_cv_lib_socket_connect=no
5166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5167 conftest$ac_exeext conftest.$ac_ext
5168 LIBS=$ac_check_lib_save_LIBS
5170 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5171 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5172 if test $ac_cv_lib_socket_connect = yes; then
5173 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5178 # Guillermo Gomez says -lposix is necessary on A/UX.
5179 { echo "$as_me:$LINENO: checking for remove" >&5
5180 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5181 if test "${ac_cv_func_remove+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 cat >conftest.$ac_ext <<_ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5192 #define remove innocuous_remove
5194 /* System header to define __stub macros and hopefully few prototypes,
5195 which can conflict with char remove (); below.
5196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5197 <limits.h> exists even on freestanding compilers. */
5200 # include <limits.h>
5202 # include <assert.h>
5207 /* Override any GCC internal prototype to avoid an error.
5208 Use char because int might match the return type of a GCC
5209 builtin and then its argument prototype would still apply. */
5214 /* The GNU C library defines this for functions which it implements
5215 to always fail with ENOSYS. Some functions are actually named
5216 something starting with __ and the normal name is an alias. */
5217 #if defined __stub_remove || defined __stub___remove
5229 rm -f conftest.$ac_objext conftest$ac_exeext
5230 if { (ac_try="$ac_link"
5232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5233 *) ac_try_echo
=$ac_try;;
5235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5236 (eval "$ac_link") 2>conftest.er1
5238 grep -v '^ *+' conftest.er1
>conftest.err
5240 cat conftest.err
>&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } && {
5243 test -z "$ac_cxx_werror_flag" ||
5244 test ! -s conftest.err
5245 } && test -s conftest
$ac_exeext &&
5246 $as_test_x conftest
$ac_exeext; then
5247 ac_cv_func_remove
=yes
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.
$ac_ext >&5
5252 ac_cv_func_remove
=no
5255 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5256 conftest
$ac_exeext conftest.
$ac_ext
5258 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5259 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5261 if test $ac_cv_func_remove = no
; then
5262 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5263 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5264 if test "${ac_cv_lib_posix_remove+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 ac_check_lib_save_LIBS
=$LIBS
5268 LIBS
="-lposix $LIBS"
5269 cat >conftest.
$ac_ext <<_ACEOF
5272 cat confdefs.h
>>conftest.
$ac_ext
5273 cat >>conftest.
$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5276 /* Override any GCC internal prototype to avoid an error.
5277 Use char because int might match the return type of a GCC
5278 builtin and then its argument prototype would still apply. */
5291 rm -f conftest.
$ac_objext conftest
$ac_exeext
5292 if { (ac_try
="$ac_link"
5294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298 (eval "$ac_link") 2>conftest.er1
5300 grep -v '^ *+' conftest.er1 >conftest.err
5302 cat conftest.err >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } && {
5305 test -z "$ac_cxx_werror_flag" ||
5306 test ! -s conftest.err
5307 } && test -s conftest$ac_exeext &&
5308 $as_test_x conftest$ac_exeext; then
5309 ac_cv_lib_posix_remove=yes
5311 echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5314 ac_cv_lib_posix_remove=no
5317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5318 conftest$ac_exeext conftest.$ac_ext
5319 LIBS=$ac_check_lib_save_LIBS
5321 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5322 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5323 if test $ac_cv_lib_posix_remove = yes; then
5324 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5329 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5330 { echo "$as_me:$LINENO: checking for shmat" >&5
5331 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5332 if test "${ac_cv_func_shmat+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 cat >conftest.$ac_ext <<_ACEOF
5338 cat confdefs.h >>conftest.$ac_ext
5339 cat >>conftest.$ac_ext <<_ACEOF
5340 /* end confdefs.h. */
5341 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5343 #define shmat innocuous_shmat
5345 /* System header to define __stub macros and hopefully few prototypes,
5346 which can conflict with char shmat (); below.
5347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5348 <limits.h> exists even on freestanding compilers. */
5351 # include <limits.h>
5353 # include <assert.h>
5358 /* Override any GCC internal prototype to avoid an error.
5359 Use char because int might match the return type of a GCC
5360 builtin and then its argument prototype would still apply. */
5365 /* The GNU C library defines this for functions which it implements
5366 to always fail with ENOSYS. Some functions are actually named
5367 something starting with __ and the normal name is an alias. */
5368 #if defined __stub_shmat || defined __stub___shmat
5380 rm -f conftest.$ac_objext conftest$ac_exeext
5381 if { (ac_try="$ac_link"
5383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5384 *) ac_try_echo
=$ac_try;;
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_link") 2>conftest.er1
5389 grep -v '^ *+' conftest.er1
>conftest.err
5391 cat conftest.err
>&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } && {
5394 test -z "$ac_cxx_werror_flag" ||
5395 test ! -s conftest.err
5396 } && test -s conftest
$ac_exeext &&
5397 $as_test_x conftest
$ac_exeext; then
5398 ac_cv_func_shmat
=yes
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.
$ac_ext >&5
5406 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5407 conftest
$ac_exeext conftest.
$ac_ext
5409 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5410 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5412 if test $ac_cv_func_shmat = no
; then
5413 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5414 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5415 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 ac_check_lib_save_LIBS
=$LIBS
5420 cat >conftest.
$ac_ext <<_ACEOF
5423 cat confdefs.h
>>conftest.
$ac_ext
5424 cat >>conftest.
$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5427 /* Override any GCC internal prototype to avoid an error.
5428 Use char because int might match the return type of a GCC
5429 builtin and then its argument prototype would still apply. */
5442 rm -f conftest.
$ac_objext conftest
$ac_exeext
5443 if { (ac_try
="$ac_link"
5445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_link") 2>conftest.er1
5451 grep -v '^ *+' conftest.er1 >conftest.err
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } && {
5456 test -z "$ac_cxx_werror_flag" ||
5457 test ! -s conftest.err
5458 } && test -s conftest$ac_exeext &&
5459 $as_test_x conftest$ac_exeext; then
5460 ac_cv_lib_ipc_shmat=yes
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 ac_cv_lib_ipc_shmat=no
5468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5469 conftest$ac_exeext conftest.$ac_ext
5470 LIBS=$ac_check_lib_save_LIBS
5472 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5473 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5474 if test $ac_cv_lib_ipc_shmat = yes; then
5475 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5481 # Check for libraries that X11R6 Xt/Xaw programs need.
5482 ac_save_LDFLAGS=$LDFLAGS
5483 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5484 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5485 # check for ICE first), but we must link in the order -lSM -lICE or
5486 # we get undefined symbols. So assume we have SM if we have ICE.
5487 # These have to be linked with before -lX11, unlike the other
5488 # libraries we check for below, so use a different variable.
5489 # John Interrante, Karl Berry
5490 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5491 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5492 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 ac_check_lib_save_LIBS=$LIBS
5496 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5497 cat >conftest.$ac_ext <<_ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5504 /* Override any GCC internal prototype to avoid an error.
5505 Use char because int might match the return type of a GCC
5506 builtin and then its argument prototype would still apply. */
5510 char IceConnectionNumber ();
5514 return IceConnectionNumber ();
5519 rm -f conftest.$ac_objext conftest$ac_exeext
5520 if { (ac_try="$ac_link"
5522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5523 *) ac_try_echo
=$ac_try;;
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_link") 2>conftest.er1
5528 grep -v '^ *+' conftest.er1
>conftest.err
5530 cat conftest.err
>&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } && {
5533 test -z "$ac_cxx_werror_flag" ||
5534 test ! -s conftest.err
5535 } && test -s conftest
$ac_exeext &&
5536 $as_test_x conftest
$ac_exeext; then
5537 ac_cv_lib_ICE_IceConnectionNumber
=yes
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.
$ac_ext >&5
5542 ac_cv_lib_ICE_IceConnectionNumber
=no
5545 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5546 conftest
$ac_exeext conftest.
$ac_ext
5547 LIBS
=$ac_check_lib_save_LIBS
5549 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5550 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5551 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5552 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
5555 LDFLAGS
=$ac_save_LDFLAGS
5561 for ac_header
in pty.h util.h
5563 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5564 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5567 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 ac_res
=`eval echo '${'$as_ac_Header'}'`
5571 { echo "$as_me:$LINENO: result: $ac_res" >&5
5572 echo "${ECHO_T}$ac_res" >&6; }
5574 # Is the header compilable?
5575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5577 cat >conftest.
$ac_ext <<_ACEOF
5580 cat confdefs.h
>>conftest.
$ac_ext
5581 cat >>conftest.
$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 $ac_includes_default
5584 #include <$ac_header>
5586 rm -f conftest.
$ac_objext
5587 if { (ac_try
="$ac_compile"
5589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_compile") 2>conftest.er1
5595 grep -v '^ *+' conftest.er1 >conftest.err
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } && {
5600 test -z "$ac_cxx_werror_flag" ||
5601 test ! -s conftest.err
5602 } && test -s conftest.$ac_objext; then
5603 ac_header_compiler=yes
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 ac_header_compiler=no
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5613 echo "${ECHO_T}$ac_header_compiler" >&6; }
5615 # Is the header present?
5616 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5618 cat >conftest.$ac_ext <<_ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 #include <$ac_header>
5626 if { (ac_try="$ac_cpp conftest.$ac_ext"
5628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5629 *) ac_try_echo
=$ac_try;;
5631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5634 grep -v '^ *+' conftest.er1
>conftest.err
5636 cat conftest.err
>&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } >/dev
/null
&& {
5639 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5640 test ! -s conftest.err
5642 ac_header_preproc
=yes
5644 echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.
$ac_ext >&5
5647 ac_header_preproc
=no
5650 rm -f conftest.err conftest.
$ac_ext
5651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5652 echo "${ECHO_T}$ac_header_preproc" >&6; }
5654 # So? What about this header?
5655 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5661 ac_header_preproc
=yes
5664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5681 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5684 eval "$as_ac_Header=\$ac_header_preproc"
5686 ac_res
=`eval echo '${'$as_ac_Header'}'`
5687 { echo "$as_me:$LINENO: result: $ac_res" >&5
5688 echo "${ECHO_T}$ac_res" >&6; }
5691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5692 cat >>confdefs.h
<<_ACEOF
5693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5701 for ac_func
in gettimeofday
5703 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5706 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 cat >conftest.
$ac_ext <<_ACEOF
5712 cat confdefs.h
>>conftest.
$ac_ext
5713 cat >>conftest.
$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5717 #define $ac_func innocuous_$ac_func
5719 /* System header to define __stub macros and hopefully few prototypes,
5720 which can conflict with char $ac_func (); below.
5721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5722 <limits.h> exists even on freestanding compilers. */
5725 # include <limits.h>
5727 # include <assert.h>
5732 /* Override any GCC internal prototype to avoid an error.
5733 Use char because int might match the return type of a GCC
5734 builtin and then its argument prototype would still apply. */
5739 /* The GNU C library defines this for functions which it implements
5740 to always fail with ENOSYS. Some functions are actually named
5741 something starting with __ and the normal name is an alias. */
5742 #if defined __stub_$ac_func || defined __stub___$ac_func
5754 rm -f conftest.
$ac_objext conftest
$ac_exeext
5755 if { (ac_try
="$ac_link"
5757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761 (eval "$ac_link") 2>conftest.er1
5763 grep -v '^ *+' conftest.er1 >conftest.err
5765 cat conftest.err >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } && {
5768 test -z "$ac_cxx_werror_flag" ||
5769 test ! -s conftest.err
5770 } && test -s conftest$ac_exeext &&
5771 $as_test_x conftest$ac_exeext; then
5772 eval "$as_ac_var=yes"
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5777 eval "$as_ac_var=no"
5780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5781 conftest$ac_exeext conftest.$ac_ext
5783 ac_res=`eval echo '${'$as_ac_var'}'`
5784 { echo "$as_me:$LINENO: result: $ac_res" >&5
5785 echo "${ECHO_T}$ac_res" >&6; }
5786 if test `eval echo '${'$as_ac_var'}'` = yes; then
5787 cat >>confdefs.h <<_ACEOF
5788 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5795 #--------------------------------------------------------------------
5796 # Checks for dl library
5797 #--------------------------------------------------------------------
5799 { echo "$as_me:$LINENO: checking for dlopen" >&5
5800 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
5801 if test "${ac_cv_func_dlopen+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 cat >conftest.$ac_ext <<_ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
5811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5812 #define dlopen innocuous_dlopen
5814 /* System header to define __stub macros and hopefully few prototypes,
5815 which can conflict with char dlopen (); below.
5816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5817 <limits.h> exists even on freestanding compilers. */
5820 # include <limits.h>
5822 # include <assert.h>
5827 /* Override any GCC internal prototype to avoid an error.
5828 Use char because int might match the return type of a GCC
5829 builtin and then its argument prototype would still apply. */
5834 /* The GNU C library defines this for functions which it implements
5835 to always fail with ENOSYS. Some functions are actually named
5836 something starting with __ and the normal name is an alias. */
5837 #if defined __stub_dlopen || defined __stub___dlopen
5849 rm -f conftest.$ac_objext conftest$ac_exeext
5850 if { (ac_try="$ac_link"
5852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5853 *) ac_try_echo
=$ac_try;;
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_link") 2>conftest.er1
5858 grep -v '^ *+' conftest.er1
>conftest.err
5860 cat conftest.err
>&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } && {
5863 test -z "$ac_cxx_werror_flag" ||
5864 test ! -s conftest.err
5865 } && test -s conftest
$ac_exeext &&
5866 $as_test_x conftest
$ac_exeext; then
5867 ac_cv_func_dlopen
=yes
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.
$ac_ext >&5
5872 ac_cv_func_dlopen
=no
5875 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5876 conftest
$ac_exeext conftest.
$ac_ext
5878 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
5879 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
5881 if test "$ac_cv_func_dl" = "yes"; then
5883 cat >>confdefs.h
<<\_ACEOF
5884 #define DYNAMIC_LINKING 1
5889 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5890 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5891 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 ac_check_lib_save_LIBS
=$LIBS
5896 cat >conftest.
$ac_ext <<_ACEOF
5899 cat confdefs.h
>>conftest.
$ac_ext
5900 cat >>conftest.
$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5903 /* Override any GCC internal prototype to avoid an error.
5904 Use char because int might match the return type of a GCC
5905 builtin and then its argument prototype would still apply. */
5918 rm -f conftest.
$ac_objext conftest
$ac_exeext
5919 if { (ac_try
="$ac_link"
5921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_link") 2>conftest.er1
5927 grep -v '^ *+' conftest.er1 >conftest.err
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } && {
5932 test -z "$ac_cxx_werror_flag" ||
5933 test ! -s conftest.err
5934 } && test -s conftest$ac_exeext &&
5935 $as_test_x conftest$ac_exeext; then
5936 ac_cv_lib_dl_dlopen=yes
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5941 ac_cv_lib_dl_dlopen=no
5944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5945 conftest$ac_exeext conftest.$ac_ext
5946 LIBS=$ac_check_lib_save_LIBS
5948 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5949 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5950 if test $ac_cv_lib_dl_dlopen = yes; then
5951 cat >>confdefs.h <<_ACEOF
5952 #define HAVE_LIBDL 1
5959 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5961 for ac_func in dlopen
5963 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5964 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5966 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 cat >conftest.$ac_ext <<_ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5977 #define $ac_func innocuous_$ac_func
5979 /* System header to define __stub macros and hopefully few prototypes,
5980 which can conflict with char $ac_func (); below.
5981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5982 <limits.h> exists even on freestanding compilers. */
5985 # include <limits.h>
5987 # include <assert.h>
5992 /* Override any GCC internal prototype to avoid an error.
5993 Use char because int might match the return type of a GCC
5994 builtin and then its argument prototype would still apply. */
5999 /* The GNU C library defines this for functions which it implements
6000 to always fail with ENOSYS. Some functions are actually named
6001 something starting with __ and the normal name is an alias. */
6002 #if defined __stub_$ac_func || defined __stub___$ac_func
6014 rm -f conftest.$ac_objext conftest$ac_exeext
6015 if { (ac_try="$ac_link"
6017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6018 *) ac_try_echo
=$ac_try;;
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_link") 2>conftest.er1
6023 grep -v '^ *+' conftest.er1
>conftest.err
6025 cat conftest.err
>&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } && {
6028 test -z "$ac_cxx_werror_flag" ||
6029 test ! -s conftest.err
6030 } && test -s conftest
$ac_exeext &&
6031 $as_test_x conftest
$ac_exeext; then
6032 eval "$as_ac_var=yes"
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.
$ac_ext >&5
6037 eval "$as_ac_var=no"
6040 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6041 conftest
$ac_exeext conftest.
$ac_ext
6043 ac_res
=`eval echo '${'$as_ac_var'}'`
6044 { echo "$as_me:$LINENO: result: $ac_res" >&5
6045 echo "${ECHO_T}$ac_res" >&6; }
6046 if test `eval echo '${'$as_ac_var'}'` = yes; then
6047 cat >>confdefs.h
<<_ACEOF
6048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6056 cat >>confdefs.h
<<\_ACEOF
6057 #define DYNAMIC_LINKING 1
6062 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6063 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
6064 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 ac_check_lib_save_LIBS
=$LIBS
6069 cat >conftest.
$ac_ext <<_ACEOF
6072 cat confdefs.h
>>conftest.
$ac_ext
6073 cat >>conftest.
$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6076 /* Override any GCC internal prototype to avoid an error.
6077 Use char because int might match the return type of a GCC
6078 builtin and then its argument prototype would still apply. */
6091 rm -f conftest.
$ac_objext conftest
$ac_exeext
6092 if { (ac_try
="$ac_link"
6094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_link") 2>conftest.er1
6100 grep -v '^ *+' conftest.er1 >conftest.err
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } && {
6105 test -z "$ac_cxx_werror_flag" ||
6106 test ! -s conftest.err
6107 } && test -s conftest$ac_exeext &&
6108 $as_test_x conftest$ac_exeext; then
6109 ac_cv_lib_dld_dld_link=yes
6111 echo "$as_me: failed program was:" >&5
6112 sed 's/^/| /' conftest.$ac_ext >&5
6114 ac_cv_lib_dld_dld_link=no
6117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6118 conftest$ac_exeext conftest.$ac_ext
6119 LIBS=$ac_check_lib_save_LIBS
6121 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6122 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
6123 if test $ac_cv_lib_dld_dld_link = yes; then
6124 cat >>confdefs.h <<_ACEOF
6125 #define HAVE_LIBDLD 1
6132 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
6135 cat >>confdefs.h <<\_ACEOF
6136 #define DYNAMIC_LINKING 1
6141 for ac_func in shl_load
6143 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 cat >conftest.$ac_ext <<_ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6157 #define $ac_func innocuous_$ac_func
6159 /* System header to define __stub macros and hopefully few prototypes,
6160 which can conflict with char $ac_func (); below.
6161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6162 <limits.h> exists even on freestanding compilers. */
6165 # include <limits.h>
6167 # include <assert.h>
6172 /* Override any GCC internal prototype to avoid an error.
6173 Use char because int might match the return type of a GCC
6174 builtin and then its argument prototype would still apply. */
6179 /* The GNU C library defines this for functions which it implements
6180 to always fail with ENOSYS. Some functions are actually named
6181 something starting with __ and the normal name is an alias. */
6182 #if defined __stub_$ac_func || defined __stub___$ac_func
6194 rm -f conftest.$ac_objext conftest$ac_exeext
6195 if { (ac_try="$ac_link"
6197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6198 *) ac_try_echo
=$ac_try;;
6200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_link") 2>conftest.er1
6203 grep -v '^ *+' conftest.er1
>conftest.err
6205 cat conftest.err
>&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } && {
6208 test -z "$ac_cxx_werror_flag" ||
6209 test ! -s conftest.err
6210 } && test -s conftest
$ac_exeext &&
6211 $as_test_x conftest
$ac_exeext; then
6212 eval "$as_ac_var=yes"
6214 echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.
$ac_ext >&5
6217 eval "$as_ac_var=no"
6220 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6221 conftest
$ac_exeext conftest.
$ac_ext
6223 ac_res
=`eval echo '${'$as_ac_var'}'`
6224 { echo "$as_me:$LINENO: result: $ac_res" >&5
6225 echo "${ECHO_T}$ac_res" >&6; }
6226 if test `eval echo '${'$as_ac_var'}'` = yes; then
6227 cat >>confdefs.h
<<_ACEOF
6228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6234 if test "$ac_cv_func_shl_load" = "yes"; then
6237 cat >>confdefs.h
<<\_ACEOF
6238 #define DYNAMIC_LINKING 1
6243 for ac_func
in dlopen
6245 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6248 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 cat >conftest.
$ac_ext <<_ACEOF
6254 cat confdefs.h
>>conftest.
$ac_ext
6255 cat >>conftest.
$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6259 #define $ac_func innocuous_$ac_func
6261 /* System header to define __stub macros and hopefully few prototypes,
6262 which can conflict with char $ac_func (); below.
6263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6264 <limits.h> exists even on freestanding compilers. */
6267 # include <limits.h>
6269 # include <assert.h>
6274 /* Override any GCC internal prototype to avoid an error.
6275 Use char because int might match the return type of a GCC
6276 builtin and then its argument prototype would still apply. */
6281 /* The GNU C library defines this for functions which it implements
6282 to always fail with ENOSYS. Some functions are actually named
6283 something starting with __ and the normal name is an alias. */
6284 #if defined __stub_$ac_func || defined __stub___$ac_func
6296 rm -f conftest.
$ac_objext conftest
$ac_exeext
6297 if { (ac_try
="$ac_link"
6299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_link") 2>conftest.er1
6305 grep -v '^ *+' conftest.er1 >conftest.err
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } && {
6310 test -z "$ac_cxx_werror_flag" ||
6311 test ! -s conftest.err
6312 } && test -s conftest$ac_exeext &&
6313 $as_test_x conftest$ac_exeext; then
6314 eval "$as_ac_var=yes"
6316 echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6319 eval "$as_ac_var=no"
6322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6323 conftest$ac_exeext conftest.$ac_ext
6325 ac_res=`eval echo '${'$as_ac_var'}'`
6326 { echo "$as_me:$LINENO: result: $ac_res" >&5
6327 echo "${ECHO_T}$ac_res" >&6; }
6328 if test `eval echo '${'$as_ac_var'}'` = yes; then
6329 cat >>confdefs.h <<_ACEOF
6330 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6336 if test "$ac_cv_func_dlopen" = "yes"; then
6338 cat >>confdefs.h <<\_ACEOF
6339 #define DYNAMIC_LINKING 1
6349 #--------------------------------------------------------------------
6350 # Checks for iconv library
6351 #--------------------------------------------------------------------
6354 # Check whether --with-iconv was given.
6355 if test "${with_iconv+set}" = set; then
6356 withval=$with_iconv;
6361 # Modified from GNOME's libxml2 configure.in
6364 ac_cpp='$CPP $CPPFLAGS'
6365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6368 # compile C to avoid the 'const char**' problem
6370 SAVE_CPPFLAGS="$CPPFLAGS"
6371 SAVE_LDFLAGS="$LDFLAGS"
6373 if test "$with_iconv" = "no" ; then
6374 { echo "$as_me:$LINENO: result: disabling iconv support" >&5
6375 echo "${ECHO_T}disabling iconv support" >&6; }
6377 if test -n "$ICONV_CFLAGS" -a -n "$ICONV_LDFLAGS"; then
6378 CPPFLAGS="$ICONV_CFLAGS" # for AC_TRY_LINK
6379 LDFLAGS="$ICONV_LDFLAGS"
6381 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
6382 CPPFLAGS="-I$with_iconv/include" # for AC_TRY_LINK
6383 LDFLAGS="-L$with_iconv/lib"
6384 ICONV_CFLAGS="-I$with_iconv/include"
6385 ICONV_LDFLAGS="-L$with_iconv/lib"
6389 ac_cpp='$CPP $CPPFLAGS'
6390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6393 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6394 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6395 # On Suns, sometimes $CPP names a directory.
6396 if test -n "$CPP" && test -d "$CPP"; then
6399 if test -z "$CPP"; then
6400 if test "${ac_cv_prog_CPP+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 # Double quotes because CPP needs to be expanded
6404 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6407 for ac_c_preproc_warn_flag in '' yes
6409 # Use a header file that comes with gcc, so configuring glibc
6410 # with a fresh cross-compiler works.
6411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6412 # <limits.h> exists even on freestanding compilers.
6413 # On the NeXT, cc -E runs the code through the compiler's parser,
6414 # not just through cpp. "Syntax error" is here to catch this case.
6415 cat >conftest.$ac_ext <<_ACEOF
6418 cat confdefs.h >>conftest.$ac_ext
6419 cat >>conftest.$ac_ext <<_ACEOF
6420 /* end confdefs.h. */
6422 # include <limits.h>
6424 # include <assert.h>
6428 if { (ac_try="$ac_cpp conftest.$ac_ext"
6430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6431 *) ac_try_echo
=$ac_try;;
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6436 grep -v '^ *+' conftest.er1
>conftest.err
6438 cat conftest.err
>&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } >/dev
/null
&& {
6441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6442 test ! -s conftest.err
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.
$ac_ext >&5
6449 # Broken: fails on valid input.
6453 rm -f conftest.err conftest.
$ac_ext
6455 # OK, works on sane cases. Now check whether nonexistent headers
6456 # can be detected and how.
6457 cat >conftest.
$ac_ext <<_ACEOF
6460 cat confdefs.h
>>conftest.
$ac_ext
6461 cat >>conftest.
$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463 #include <ac_nonexistent.h>
6465 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6468 *) ac_try_echo=$ac_try;;
6470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6473 grep -v '^ *+' conftest.er1 >conftest.err
6475 cat conftest.err >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } >/dev/null && {
6478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6479 test ! -s conftest.err
6481 # Broken: success on invalid input.
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6487 # Passes both tests.
6492 rm -f conftest.err conftest.$ac_ext
6495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6496 rm -f conftest.err conftest.
$ac_ext
6497 if $ac_preproc_ok; then
6509 { echo "$as_me:$LINENO: result: $CPP" >&5
6510 echo "${ECHO_T}$CPP" >&6; }
6512 for ac_c_preproc_warn_flag
in '' yes
6514 # Use a header file that comes with gcc, so configuring glibc
6515 # with a fresh cross-compiler works.
6516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6517 # <limits.h> exists even on freestanding compilers.
6518 # On the NeXT, cc -E runs the code through the compiler's parser,
6519 # not just through cpp. "Syntax error" is here to catch this case.
6520 cat >conftest.
$ac_ext <<_ACEOF
6523 cat confdefs.h
>>conftest.
$ac_ext
6524 cat >>conftest.
$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6527 # include <limits.h>
6529 # include <assert.h>
6533 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6541 grep -v '^ *+' conftest.er1 >conftest.err
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } >/dev/null && {
6546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6551 echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6554 # Broken: fails on valid input.
6558 rm -f conftest.err conftest.$ac_ext
6560 # OK, works on sane cases. Now check whether nonexistent headers
6561 # can be detected and how.
6562 cat >conftest.$ac_ext <<_ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 #include <ac_nonexistent.h>
6570 if { (ac_try="$ac_cpp conftest.$ac_ext"
6572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6573 *) ac_try_echo
=$ac_try;;
6575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6578 grep -v '^ *+' conftest.er1
>conftest.err
6580 cat conftest.err
>&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } >/dev
/null
&& {
6583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6586 # Broken: success on invalid input.
6589 echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.
$ac_ext >&5
6592 # Passes both tests.
6597 rm -f conftest.err conftest.
$ac_ext
6600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6601 rm -f conftest.err conftest.
$ac_ext
6602 if $ac_preproc_ok; then
6605 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6606 See \`config.log' for more details." >&5
6607 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6608 See \`config.log' for more details." >&2;}
6609 { (exit 1); exit 1; }; }
6613 ac_cpp
='$CPP $CPPFLAGS'
6614 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6615 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6616 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6619 if test "${ac_cv_header_iconv_h+set}" = set; then
6620 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6621 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6622 if test "${ac_cv_header_iconv_h+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6626 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6628 # Is the header compilable?
6629 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
6630 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
6631 cat >conftest.
$ac_ext <<_ACEOF
6634 cat confdefs.h
>>conftest.
$ac_ext
6635 cat >>conftest.
$ac_ext <<_ACEOF
6636 /* end confdefs.h. */
6637 $ac_includes_default
6640 rm -f conftest.
$ac_objext
6641 if { (ac_try
="$ac_compile"
6643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6644 *) ac_try_echo=$ac_try;;
6646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6647 (eval "$ac_compile") 2>conftest.er1
6649 grep -v '^ *+' conftest.er1 >conftest.err
6651 cat conftest.err >&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } && {
6654 test -z "$ac_c_werror_flag" ||
6655 test ! -s conftest.err
6656 } && test -s conftest.$ac_objext; then
6657 ac_header_compiler=yes
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6662 ac_header_compiler=no
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6667 echo "${ECHO_T}$ac_header_compiler" >&6; }
6669 # Is the header present?
6670 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
6671 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
6672 cat >conftest.$ac_ext <<_ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6680 if { (ac_try="$ac_cpp conftest.$ac_ext"
6682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6683 *) ac_try_echo
=$ac_try;;
6685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6688 grep -v '^ *+' conftest.er1
>conftest.err
6690 cat conftest.err
>&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } >/dev
/null
&& {
6693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6694 test ! -s conftest.err
6696 ac_header_preproc
=yes
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.
$ac_ext >&5
6701 ac_header_preproc
=no
6704 rm -f conftest.err conftest.
$ac_ext
6705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6706 echo "${ECHO_T}$ac_header_preproc" >&6; }
6708 # So? What about this header?
6709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6711 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
6712 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6713 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
6714 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
6715 ac_header_preproc
=yes
6718 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
6719 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
6720 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
6721 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
6722 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
6723 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
6724 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
6725 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
6726 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
6727 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
6728 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
6729 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
6733 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6734 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6735 if test "${ac_cv_header_iconv_h+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 ac_cv_header_iconv_h
=$ac_header_preproc
6740 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6741 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6744 if test $ac_cv_header_iconv_h = yes; then
6745 { echo "$as_me:$LINENO: checking for iconv" >&5
6746 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6748 cat >conftest.
$ac_ext <<_ACEOF
6751 cat confdefs.h
>>conftest.
$ac_ext
6752 cat >>conftest.
$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6762 iconv_t cd = iconv_open ("","");
6763 iconv (cd, NULL, NULL, NULL, NULL);
6769 rm -f conftest.
$ac_objext conftest
$ac_exeext
6770 if { (ac_try
="$ac_link"
6772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776 (eval "$ac_link") 2>conftest.er1
6778 grep -v '^ *+' conftest.er1 >conftest.err
6780 cat conftest.err >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } && {
6783 test -z "$ac_c_werror_flag" ||
6784 test ! -s conftest.err
6785 } && test -s conftest$ac_exeext &&
6786 $as_test_x conftest$ac_exeext; then
6788 { echo "$as_me:$LINENO: result: yes" >&5
6789 echo "${ECHO_T}yes" >&6; }
6791 cat >>confdefs.h <<\_ACEOF
6797 echo "$as_me: failed program was:" >&5
6798 sed 's/^/| /' conftest.$ac_ext >&5
6801 { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6803 { echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
6804 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6; }
6805 # LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
6806 LIBS="-liconv" # for AC_TRY_LINK
6807 cat >conftest.$ac_ext <<_ACEOF
6810 cat confdefs.h >>conftest.$ac_ext
6811 cat >>conftest.$ac_ext <<_ACEOF
6812 /* end confdefs.h. */
6821 iconv_t cd = iconv_open ("","");
6822 iconv (cd, NULL, NULL, NULL, NULL);
6828 rm -f conftest.$ac_objext conftest$ac_exeext
6829 if { (ac_try="$ac_link"
6831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6832 *) ac_try_echo
=$ac_try;;
6834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6835 (eval "$ac_link") 2>conftest.er1
6837 grep -v '^ *+' conftest.er1
>conftest.err
6839 cat conftest.err
>&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } && {
6842 test -z "$ac_c_werror_flag" ||
6843 test ! -s conftest.err
6844 } && test -s conftest
$ac_exeext &&
6845 $as_test_x conftest
$ac_exeext; then
6847 { echo "$as_me:$LINENO: result: yes" >&5
6848 echo "${ECHO_T}yes" >&6; }
6850 cat >>confdefs.h
<<\_ACEOF
6854 ICONV_LDFLAGS
="${ICONV_LDFLAGS/-liconv} -liconv"
6857 echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.
$ac_ext >&5
6861 { echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6; }
6863 { echo "$as_me:$LINENO: WARNING: absence of iconv may crash HTML import" >&5
6864 echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
6868 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6869 conftest
$ac_exeext conftest.
$ac_ext
6872 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6873 conftest
$ac_exeext conftest.
$ac_ext
6879 CPPFLAGS
="$SAVE_CPPFLAGS"
6880 LDFLAGS
="$SAVE_LDFLAGS"
6883 ac_cpp
='$CXXCPP $CPPFLAGS'
6884 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6887 # restore C++ language
6891 #--------------------------------------------------------------------
6892 # Checks for freetype library
6893 #--------------------------------------------------------------------
6896 # Check whether --with-freetype was given.
6897 if test "${with_freetype+set}" = set; then
6898 withval
=$with_freetype;
6902 SAVE_CPPFLAGS
="$CPPFLAGS"
6903 SAVE_LDFLAGS
="$LDFLAGS"
6905 if test "$with_freetype" = "no" ; then
6906 { echo "$as_me:$LINENO: result: disabling freetype support" >&5
6907 echo "${ECHO_T}disabling freetype support" >&6; }
6909 if test -z "$FREETYPE_CFLAGS"; then
6910 FREETYPE_CFLAGS
=`freetype-config --cflags`
6912 CPPFLAGS
="$CPPFLAGS $FREETYPE_CFLAGS"
6913 if test -z "$FREETYPE_LDFLAGS"; then
6914 FREETYPE_LDFLAGS
=`freetype-config --libs`
6916 LIBS
="$LDFLAGS $FREETYPE_LDFLAGS"
6917 if test "${ac_cv_header_ft2build_h+set}" = set; then
6918 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6919 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6920 if test "${ac_cv_header_ft2build_h+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6924 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6926 # Is the header compilable?
6927 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
6928 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
6929 cat >conftest.
$ac_ext <<_ACEOF
6932 cat confdefs.h
>>conftest.
$ac_ext
6933 cat >>conftest.
$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 $ac_includes_default
6936 #include <ft2build.h>
6938 rm -f conftest.
$ac_objext
6939 if { (ac_try
="$ac_compile"
6941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945 (eval "$ac_compile") 2>conftest.er1
6947 grep -v '^ *+' conftest.er1 >conftest.err
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } && {
6952 test -z "$ac_cxx_werror_flag" ||
6953 test ! -s conftest.err
6954 } && test -s conftest.$ac_objext; then
6955 ac_header_compiler=yes
6957 echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6960 ac_header_compiler=no
6963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6965 echo "${ECHO_T}$ac_header_compiler" >&6; }
6967 # Is the header present?
6968 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
6969 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
6970 cat >conftest.$ac_ext <<_ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6976 #include <ft2build.h>
6978 if { (ac_try="$ac_cpp conftest.$ac_ext"
6980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6981 *) ac_try_echo
=$ac_try;;
6983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6986 grep -v '^ *+' conftest.er1
>conftest.err
6988 cat conftest.err
>&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } >/dev
/null
&& {
6991 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6992 test ! -s conftest.err
6994 ac_header_preproc
=yes
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.
$ac_ext >&5
6999 ac_header_preproc
=no
7002 rm -f conftest.err conftest.
$ac_ext
7003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7004 echo "${ECHO_T}$ac_header_preproc" >&6; }
7006 # So? What about this header?
7007 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7009 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
7010 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7011 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
7012 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
7013 ac_header_preproc
=yes
7016 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
7017 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
7018 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
7019 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
7020 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
7021 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
7022 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
7023 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
7024 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
7025 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
7026 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
7027 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
7031 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
7032 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
7033 if test "${ac_cv_header_ft2build_h+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 ac_cv_header_ft2build_h
=$ac_header_preproc
7038 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
7039 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
7042 if test $ac_cv_header_ft2build_h = yes; then
7043 { echo "$as_me:$LINENO: checking for freetype" >&5
7044 echo $ECHO_N "checking for freetype... $ECHO_C" >&6; }
7045 cat >conftest.
$ac_ext <<_ACEOF
7048 cat confdefs.h
>>conftest.
$ac_ext
7049 cat >>conftest.
$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7052 #include <ft2build.h>
7053 #include FT_FREETYPE_H
7059 FT_Library ft_library;
7060 (void) FT_Init_FreeType (&ft_library);
7066 rm -f conftest.
$ac_objext conftest
$ac_exeext
7067 if { (ac_try
="$ac_link"
7069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_link") 2>conftest.er1
7075 grep -v '^ *+' conftest.er1 >conftest.err
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } && {
7080 test -z "$ac_cxx_werror_flag" ||
7081 test ! -s conftest.err
7082 } && test -s conftest$ac_exeext &&
7083 $as_test_x conftest$ac_exeext; then
7085 { echo "$as_me:$LINENO: result: yes" >&5
7086 echo "${ECHO_T}yes" >&6; }
7088 cat >>confdefs.h <<\_ACEOF
7089 #define USE_FREETYPE 1
7092 FREETYPE_CFLAGS="$CPPFLAGS"
7093 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
7094 FREETYPE_LDFLAGS="$LIBS"
7096 cat >>confdefs.h <<\_ACEOF
7097 #define LINKED_FREETYPE 1
7103 echo "$as_me: failed program was:" >&5
7104 sed 's/^/| /' conftest.$ac_ext >&5
7107 { echo "$as_me:$LINENO: result: no" >&5
7108 echo "${ECHO_T}no" >&6; }
7111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7112 conftest$ac_exeext conftest.$ac_ext
7118 CPPFLAGS="$SAVE_CPPFLAGS"
7119 LDFLAGS="$SAVE_LDFLAGS"
7125 #--------------------------------------------------------------------
7126 # Checks for Cairo library
7127 #--------------------------------------------------------------------
7130 # Check whether --with-cairo was given.
7131 if test "${with_cairo+set}" = set; then
7132 withval=$with_cairo;
7136 SAVE_CPPFLAGS="$CPPFLAGS"
7137 SAVE_LDFLAGS="$LDFLAGS"
7139 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
7140 { echo "$as_me:$LINENO: result: disabling cairo support" >&5
7141 echo "${ECHO_T}disabling cairo support" >&6; }
7143 CPPFLAGS=`pkg-config
--cflags cairo
`
7144 LIBS=`pkg-config
--libs cairo
`
7145 if test "${ac_cv_header_cairo_h+set}" = set; then
7146 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7147 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7148 if test "${ac_cv_header_cairo_h+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7152 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7154 # Is the header compilable?
7155 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
7156 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
7157 cat >conftest.$ac_ext <<_ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7163 $ac_includes_default
7166 rm -f conftest.$ac_objext
7167 if { (ac_try="$ac_compile"
7169 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7170 *) ac_try_echo
=$ac_try;;
7172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7173 (eval "$ac_compile") 2>conftest.er1
7175 grep -v '^ *+' conftest.er1
>conftest.err
7177 cat conftest.err
>&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } && {
7180 test -z "$ac_cxx_werror_flag" ||
7181 test ! -s conftest.err
7182 } && test -s conftest.
$ac_objext; then
7183 ac_header_compiler
=yes
7185 echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.
$ac_ext >&5
7188 ac_header_compiler
=no
7191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7193 echo "${ECHO_T}$ac_header_compiler" >&6; }
7195 # Is the header present?
7196 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
7197 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
7198 cat >conftest.
$ac_ext <<_ACEOF
7201 cat confdefs.h
>>conftest.
$ac_ext
7202 cat >>conftest.
$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7206 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7209 *) ac_try_echo=$ac_try;;
7211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7214 grep -v '^ *+' conftest.er1 >conftest.err
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } >/dev/null && {
7219 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7220 test ! -s conftest.err
7222 ac_header_preproc=yes
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7227 ac_header_preproc=no
7230 rm -f conftest.err conftest.$ac_ext
7231 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7232 echo "${ECHO_T}$ac_header_preproc" >&6; }
7234 # So? What about this header?
7235 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7237 { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
7238 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7239 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
7240 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
7241 ac_header_preproc=yes
7244 { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
7245 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
7246 { echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
7247 echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
7248 { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
7249 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
7250 { echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
7251 echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
7252 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
7253 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
7254 { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
7255 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
7259 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7260 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7261 if test "${ac_cv_header_cairo_h+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 ac_cv_header_cairo_h=$ac_header_preproc
7266 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7267 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7270 if test $ac_cv_header_cairo_h = yes; then
7271 { echo "$as_me:$LINENO: checking for cairo" >&5
7272 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
7273 cat >conftest.$ac_ext <<_ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7286 cairo_surface_t *surface;
7287 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
7293 rm -f conftest.$ac_objext conftest$ac_exeext
7294 if { (ac_try="$ac_link"
7296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7297 *) ac_try_echo
=$ac_try;;
7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300 (eval "$ac_link") 2>conftest.er1
7302 grep -v '^ *+' conftest.er1
>conftest.err
7304 cat conftest.err
>&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_cxx_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest
$ac_exeext &&
7310 $as_test_x conftest
$ac_exeext; then
7312 { echo "$as_me:$LINENO: result: yes" >&5
7313 echo "${ECHO_T}yes" >&6; }
7315 cat >>confdefs.h
<<\_ACEOF
7319 CAIRO_CFLAGS
="$CPPFLAGS"
7320 if test "$with_cairo" = "linked" ; then
7321 CAIRO_LDFLAGS
="$LIBS"
7323 cat >>confdefs.h
<<\_ACEOF
7324 #define LINKED_CAIRO 1
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.
$ac_ext >&5
7334 { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7338 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7339 conftest
$ac_exeext conftest.
$ac_ext
7345 CPPFLAGS
="$SAVE_CPPFLAGS"
7346 LDFLAGS
="$SAVE_LDFLAGS"
7352 #--------------------------------------------------------------------
7353 # Checks for Imlib2 library
7354 #--------------------------------------------------------------------
7357 # Check whether --with-imlib2 was given.
7358 if test "${with_imlib2+set}" = set; then
7359 withval
=$with_imlib2;
7363 SAVE_CPPFLAGS
="$CPPFLAGS"
7364 SAVE_LDFLAGS
="$LDFLAGS"
7366 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
7367 { echo "$as_me:$LINENO: result: disabling imlib2 support" >&5
7368 echo "${ECHO_T}disabling imlib2 support" >&6; }
7370 CPPFLAGS
=`imlib2-config --cflags`
7371 LIBS
=`imlib2-config --libs`
7372 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7373 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7374 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7375 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7379 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7381 # Is the header compilable?
7382 { echo "$as_me:$LINENO: checking Imlib2.h usability" >&5
7383 echo $ECHO_N "checking Imlib2.h usability... $ECHO_C" >&6; }
7384 cat >conftest.
$ac_ext <<_ACEOF
7387 cat confdefs.h
>>conftest.
$ac_ext
7388 cat >>conftest.
$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 $ac_includes_default
7393 rm -f conftest.
$ac_objext
7394 if { (ac_try
="$ac_compile"
7396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7397 *) ac_try_echo=$ac_try;;
7399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7400 (eval "$ac_compile") 2>conftest.er1
7402 grep -v '^ *+' conftest.er1 >conftest.err
7404 cat conftest.err >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } && {
7407 test -z "$ac_cxx_werror_flag" ||
7408 test ! -s conftest.err
7409 } && test -s conftest.$ac_objext; then
7410 ac_header_compiler=yes
7412 echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7415 ac_header_compiler=no
7418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7420 echo "${ECHO_T}$ac_header_compiler" >&6; }
7422 # Is the header present?
7423 { echo "$as_me:$LINENO: checking Imlib2.h presence" >&5
7424 echo $ECHO_N "checking Imlib2.h presence... $ECHO_C" >&6; }
7425 cat >conftest.$ac_ext <<_ACEOF
7428 cat confdefs.h >>conftest.$ac_ext
7429 cat >>conftest.$ac_ext <<_ACEOF
7430 /* end confdefs.h. */
7433 if { (ac_try="$ac_cpp conftest.$ac_ext"
7435 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7436 *) ac_try_echo
=$ac_try;;
7438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7441 grep -v '^ *+' conftest.er1
>conftest.err
7443 cat conftest.err
>&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } >/dev
/null
&& {
7446 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7447 test ! -s conftest.err
7449 ac_header_preproc
=yes
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.
$ac_ext >&5
7454 ac_header_preproc
=no
7457 rm -f conftest.err conftest.
$ac_ext
7458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7459 echo "${ECHO_T}$ac_header_preproc" >&6; }
7461 # So? What about this header?
7462 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7464 { echo "$as_me:$LINENO: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&5
7465 echo "$as_me: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7466 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the compiler's result" >&5
7467 echo "$as_me: WARNING: Imlib2.h: proceeding with the compiler's result" >&2;}
7468 ac_header_preproc
=yes
7471 { echo "$as_me:$LINENO: WARNING: Imlib2.h: present but cannot be compiled" >&5
7472 echo "$as_me: WARNING: Imlib2.h: present but cannot be compiled" >&2;}
7473 { echo "$as_me:$LINENO: WARNING: Imlib2.h: check for missing prerequisite headers?" >&5
7474 echo "$as_me: WARNING: Imlib2.h: check for missing prerequisite headers?" >&2;}
7475 { echo "$as_me:$LINENO: WARNING: Imlib2.h: see the Autoconf documentation" >&5
7476 echo "$as_me: WARNING: Imlib2.h: see the Autoconf documentation" >&2;}
7477 { echo "$as_me:$LINENO: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&5
7478 echo "$as_me: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&2;}
7479 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&5
7480 echo "$as_me: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&2;}
7481 { echo "$as_me:$LINENO: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&5
7482 echo "$as_me: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&2;}
7486 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7487 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7488 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 ac_cv_header_Imlib2_h
=$ac_header_preproc
7493 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7494 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7497 if test $ac_cv_header_Imlib2_h = yes; then
7498 { echo "$as_me:$LINENO: checking for imlib2" >&5
7499 echo $ECHO_N "checking for imlib2... $ECHO_C" >&6; }
7500 cat >conftest.
$ac_ext <<_ACEOF
7503 cat confdefs.h
>>conftest.
$ac_ext
7504 cat >>conftest.
$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7507 #include <X11/Xlib.h>
7516 Imlib_Image image= imlib_load_image("");
7522 rm -f conftest.
$ac_objext conftest
$ac_exeext
7523 if { (ac_try
="$ac_link"
7525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7526 *) ac_try_echo=$ac_try;;
7528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7529 (eval "$ac_link") 2>conftest.er1
7531 grep -v '^ *+' conftest.er1 >conftest.err
7533 cat conftest.err >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } && {
7536 test -z "$ac_cxx_werror_flag" ||
7537 test ! -s conftest.err
7538 } && test -s conftest$ac_exeext &&
7539 $as_test_x conftest$ac_exeext; then
7541 { echo "$as_me:$LINENO: result: yes" >&5
7542 echo "${ECHO_T}yes" >&6; }
7544 cat >>confdefs.h <<\_ACEOF
7545 #define USE_IMLIB2 1
7548 IMLIB2_CFLAGS="$CPPFLAGS"
7549 if test "$with_imlib2" = "linked" ; then
7550 IMLIB2_LDFLAGS="$LIBS"
7552 cat >>confdefs.h <<\_ACEOF
7553 #define LINKED_IMLIB2 1
7559 echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7563 { echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6; }
7567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7568 conftest$ac_exeext conftest.$ac_ext
7574 CPPFLAGS="$SAVE_CPPFLAGS"
7575 LDFLAGS="$SAVE_LDFLAGS"
7581 #--------------------------------------------------------------------
7582 # Checks for Axel library
7583 #--------------------------------------------------------------------
7586 # Check whether --with-axel was given.
7587 if test "${with_axel+set}" = set; then
7592 SAVE_CPPFLAGS="$CPPFLAGS"
7593 SAVE_LDFLAGS="$LDFLAGS"
7595 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
7596 { echo "$as_me:$LINENO: result: disabling axel support" >&5
7597 echo "${ECHO_T}disabling axel support" >&6; }
7599 CPPFLAGS=`axel-config
--cflags`
7600 LIBS=`axel-config
--libs`
7601 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7602 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7603 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7604 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7608 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7610 # Is the header compilable?
7611 { echo "$as_me:$LINENO: checking QGui/Viewer.h usability" >&5
7612 echo $ECHO_N "checking QGui/Viewer.h usability... $ECHO_C" >&6; }
7613 cat >conftest.$ac_ext <<_ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7619 $ac_includes_default
7620 #include <QGui/Viewer.h>
7622 rm -f conftest.$ac_objext
7623 if { (ac_try="$ac_compile"
7625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7626 *) ac_try_echo
=$ac_try;;
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_compile") 2>conftest.er1
7631 grep -v '^ *+' conftest.er1
>conftest.err
7633 cat conftest.err
>&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && {
7636 test -z "$ac_cxx_werror_flag" ||
7637 test ! -s conftest.err
7638 } && test -s conftest.
$ac_objext; then
7639 ac_header_compiler
=yes
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.
$ac_ext >&5
7644 ac_header_compiler
=no
7647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7649 echo "${ECHO_T}$ac_header_compiler" >&6; }
7651 # Is the header present?
7652 { echo "$as_me:$LINENO: checking QGui/Viewer.h presence" >&5
7653 echo $ECHO_N "checking QGui/Viewer.h presence... $ECHO_C" >&6; }
7654 cat >conftest.
$ac_ext <<_ACEOF
7657 cat confdefs.h
>>conftest.
$ac_ext
7658 cat >>conftest.
$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7660 #include <QGui/Viewer.h>
7662 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7665 *) ac_try_echo=$ac_try;;
7667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7670 grep -v '^ *+' conftest.er1 >conftest.err
7672 cat conftest.err >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } >/dev/null && {
7675 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7676 test ! -s conftest.err
7678 ac_header_preproc=yes
7680 echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7683 ac_header_preproc=no
7686 rm -f conftest.err conftest.$ac_ext
7687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7688 echo "${ECHO_T}$ac_header_preproc" >&6; }
7690 # So? What about this header?
7691 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7693 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&5
7694 echo "$as_me: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&5
7696 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&2;}
7697 ac_header_preproc=yes
7700 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: present but cannot be compiled" >&5
7701 echo "$as_me: WARNING: QGui/Viewer.h: present but cannot be compiled" >&2;}
7702 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&5
7703 echo "$as_me: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&2;}
7704 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&5
7705 echo "$as_me: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&2;}
7706 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&5
7707 echo "$as_me: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&2;}
7708 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&5
7709 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&2;}
7710 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&5
7711 echo "$as_me: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&2;}
7715 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7716 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7717 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 ac_cv_header_QGui_Viewer_h=$ac_header_preproc
7722 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7723 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7726 if test $ac_cv_header_QGui_Viewer_h = yes; then
7727 { echo "$as_me:$LINENO: checking for axel" >&5
7728 echo $ECHO_N "checking for axel... $ECHO_C" >&6; }
7729 cat >conftest.$ac_ext <<_ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7736 #include <QGui/Viewer.h>
7748 rm -f conftest.$ac_objext conftest$ac_exeext
7749 if { (ac_try="$ac_link"
7751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7752 *) ac_try_echo
=$ac_try;;
7754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7755 (eval "$ac_link") 2>conftest.er1
7757 grep -v '^ *+' conftest.er1
>conftest.err
7759 cat conftest.err
>&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && {
7762 test -z "$ac_cxx_werror_flag" ||
7763 test ! -s conftest.err
7764 } && test -s conftest
$ac_exeext &&
7765 $as_test_x conftest
$ac_exeext; then
7767 { echo "$as_me:$LINENO: result: yes" >&5
7768 echo "${ECHO_T}yes" >&6; }
7770 cat >>confdefs.h
<<\_ACEOF
7774 AXEL_CFLAGS
="$CPPFLAGS"
7775 if test "$with_axel" = "linked" ; then
7776 AXEL_LDFLAGS
="$LIBS"
7778 cat >>confdefs.h
<<\_ACEOF
7779 #define LINKED_AXEL 1
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.
$ac_ext >&5
7789 { echo "$as_me:$LINENO: result: no" >&5
7790 echo "${ECHO_T}no" >&6; }
7793 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7794 conftest
$ac_exeext conftest.
$ac_ext
7800 CPPFLAGS
="$SAVE_CPPFLAGS"
7801 LDFLAGS
="$SAVE_LDFLAGS"
7807 #--------------------------------------------------------------------
7808 # Checks for ghostscript library
7809 #--------------------------------------------------------------------
7812 # Check whether --with-gs was given.
7813 if test "${with_gs+set}" = set; then
7818 if test "$with_gs" = "no" ; then
7819 { echo "$as_me:$LINENO: result: disabling ghostscript support" >&5
7820 echo "${ECHO_T}disabling ghostscript support" >&6; }
7824 GS_EXE
="gswin32c.exe"
7825 GS_DLL
="gsdll32.dll"
7826 # Extract the first word of "${GS_EXE}", so it can be a program name with args.
7827 set dummy
${GS_EXE}; ac_word
=$2
7828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7830 if test "${ac_cv_prog_HAS_GS_EXE+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 if test -n "$HAS_GS_EXE"; then
7834 ac_cv_prog_HAS_GS_EXE
="$HAS_GS_EXE" # Let the user override the test.
7836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7840 test -z "$as_dir" && as_dir
=.
7841 for ac_exec_ext
in '' $ac_executable_extensions; do
7842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7843 ac_cv_prog_HAS_GS_EXE
="yes"
7844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 test -z "$ac_cv_prog_HAS_GS_EXE" && ac_cv_prog_HAS_GS_EXE
="no"
7854 HAS_GS_EXE
=$ac_cv_prog_HAS_GS_EXE
7855 if test -n "$HAS_GS_EXE"; then
7856 { echo "$as_me:$LINENO: result: $HAS_GS_EXE" >&5
7857 echo "${ECHO_T}$HAS_GS_EXE" >&6; }
7859 { echo "$as_me:$LINENO: result: no" >&5
7860 echo "${ECHO_T}no" >&6; }
7864 # Extract the first word of "${GS_DLL}", so it can be a program name with args.
7865 set dummy
${GS_DLL}; ac_word
=$2
7866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7868 if test "${ac_cv_prog_HAS_GS_LIB+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 if test -n "$HAS_GS_LIB"; then
7872 ac_cv_prog_HAS_GS_LIB
="$HAS_GS_LIB" # Let the user override the test.
7874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7878 test -z "$as_dir" && as_dir
=.
7879 for ac_exec_ext
in '' $ac_executable_extensions; do
7880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7881 ac_cv_prog_HAS_GS_LIB
="yes"
7882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7889 test -z "$ac_cv_prog_HAS_GS_LIB" && ac_cv_prog_HAS_GS_LIB
="no"
7892 HAS_GS_LIB
=$ac_cv_prog_HAS_GS_LIB
7893 if test -n "$HAS_GS_LIB"; then
7894 { echo "$as_me:$LINENO: result: $HAS_GS_LIB" >&5
7895 echo "${ECHO_T}$HAS_GS_LIB" >&6; }
7897 { echo "$as_me:$LINENO: result: no" >&5
7898 echo "${ECHO_T}no" >&6; }
7904 # Extract the first word of "gs", so it can be a program name with args.
7905 set dummy gs
; ac_word
=$2
7906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7908 if test "${ac_cv_prog_HAS_GS_EXE+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 if test -n "$HAS_GS_EXE"; then
7912 ac_cv_prog_HAS_GS_EXE
="$HAS_GS_EXE" # Let the user override the test.
7914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7918 test -z "$as_dir" && as_dir
=.
7919 for ac_exec_ext
in '' $ac_executable_extensions; do
7920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7921 ac_cv_prog_HAS_GS_EXE
="yes"
7922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7929 test -z "$ac_cv_prog_HAS_GS_EXE" && ac_cv_prog_HAS_GS_EXE
="no"
7932 HAS_GS_EXE
=$ac_cv_prog_HAS_GS_EXE
7933 if test -n "$HAS_GS_EXE"; then
7934 { echo "$as_me:$LINENO: result: $HAS_GS_EXE" >&5
7935 echo "${ECHO_T}$HAS_GS_EXE" >&6; }
7937 { echo "$as_me:$LINENO: result: no" >&5
7938 echo "${ECHO_T}no" >&6; }
7945 if test "x${HAS_GS_EXE}" = "xyes" -a "x${HAS_GS_LIB}" = "xyes"; then
7947 cat >>confdefs.h
<<\_ACEOF
7951 CONFIG_GS
="Ghostscript"
7956 { echo "$as_me:$LINENO: result: disabling ghostscript support" >&5
7957 echo "${ECHO_T}disabling ghostscript support" >&6; }
7961 #--------------------------------------------------------------------
7962 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
7963 #--------------------------------------------------------------------
7965 { echo "$as_me:$LINENO: checking whether ... arguments behave correctly" >&5
7966 echo $ECHO_N "checking whether ... arguments behave correctly... $ECHO_C" >&6; }
7967 if test -z "$GUILE_CFLAGS"; then
7968 CXXFLAGS
="`guile-config compile`"
7970 CXXFLAGS
="$GUILE_CFLAGS"
7972 cat >conftest.
$ac_ext <<_ACEOF
7975 cat confdefs.h
>>conftest.
$ac_ext
7976 cat >>conftest.
$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7979 #include <guile/gh.h>
7980 #include <libguile.h>
7981 typedef SCM (*FN)(...);
7982 static SCM identity (SCM x) { return x; }
7983 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
7994 rm -f conftest.
$ac_objext
7995 if { (ac_try
="$ac_compile"
7997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_compile") 2>conftest.er1
8003 grep -v '^ *+' conftest.er1 >conftest.err
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_cxx_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest.$ac_objext; then
8013 cat >>confdefs.h <<\_ACEOF
8017 { echo "$as_me:$LINENO: result: yes" >&5
8018 echo "${ECHO_T}yes" >&6; }
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8025 { echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6; }
8030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033 { echo "$as_me:$LINENO: checking the size_t of guile strings" >&5
8034 echo $ECHO_N "checking the size_t of guile strings... $ECHO_C" >&6; }
8035 if test -z "$GUILE_CFLAGS"; then
8036 CXXFLAGS="`guile-config compile
`"
8038 CXXFLAGS="$GUILE_CFLAGS"
8040 cat >conftest.$ac_ext <<_ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8047 #include <guile/gh.h>
8048 #include <libguile.h>
8049 void print_string (SCM s) {
8051 char* r= gh_scm2newstr (s, &len_r); }
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8065 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8066 *) ac_try_echo
=$ac_try;;
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_compile") 2>conftest.er1
8071 grep -v '^ *+' conftest.er1
>conftest.err
8073 cat conftest.err
>&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } && {
8076 test -z "$ac_cxx_werror_flag" ||
8077 test ! -s conftest.err
8078 } && test -s conftest.
$ac_objext; then
8081 cat >>confdefs.h
<<\_ACEOF
8082 #define guile_str_size_t int
8085 { echo "$as_me:$LINENO: result: int" >&5
8086 echo "${ECHO_T}int" >&6; }
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.
$ac_ext >&5
8094 cat >>confdefs.h
<<\_ACEOF
8095 #define guile_str_size_t size_t
8098 { echo "$as_me:$LINENO: result: size_t" >&5
8099 echo "${ECHO_T}size_t" >&6; }
8103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8106 { echo "$as_me:$LINENO: checking if statically linking with guile works" >&5
8107 echo $ECHO_N "checking if statically linking with guile works... $ECHO_C" >&6; }
8108 SAVE_CPPFLAGS
="$CPPFLAGS"
8109 SAVE_LDFLAGS
="$LDFLAGS"
8111 CPPFLAGS
="$GUILE_CFLAGS"
8113 LIBS
="$GUILE_LDFLAGS"
8114 cat >conftest.
$ac_ext <<_ACEOF
8117 cat confdefs.h
>>conftest.
$ac_ext
8118 cat >>conftest.
$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8121 #include <guile/gh.h>
8129 static void my_main (int argc, char** argv) {}
8130 static void install_guile () {
8132 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
8134 gh_enter (0, NULL, my_main);
8138 dummy::install_guile ();
8144 rm -f conftest.
$ac_objext conftest
$ac_exeext
8145 if { (ac_try
="$ac_link"
8147 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_link") 2>conftest.er1
8153 grep -v '^ *+' conftest.er1 >conftest.err
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_cxx_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest$ac_exeext &&
8161 $as_test_x conftest$ac_exeext; then
8162 tm_link_guile_static="yes"
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8167 tm_link_guile_static="no"
8170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8171 conftest$ac_exeext conftest.$ac_ext
8173 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static\"" >&5
8174 echo "${ECHO_T}\"$tm_link_guile_static\"" >&6; }
8175 if test "$tm_link_guile_static" = "no" ; then
8176 { echo "$as_me:$LINENO: checking if it works with -lltdl" >&5
8177 echo $ECHO_N "checking if it works with -lltdl... $ECHO_C" >&6; }
8178 LIBS="$GUILE_LDFLAGS -lltdl"
8179 cat >conftest.$ac_ext <<_ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8186 #include <guile/gh.h>
8194 static void my_main (int argc, char** argv) {}
8195 static void install_guile () {
8197 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
8199 gh_enter (0, NULL, my_main);
8203 dummy::install_guile ();
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (ac_try="$ac_link"
8212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8213 *) ac_try_echo
=$ac_try;;
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_link") 2>conftest.er1
8218 grep -v '^ *+' conftest.er1
>conftest.err
8220 cat conftest.err
>&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } && {
8223 test -z "$ac_cxx_werror_flag" ||
8224 test ! -s conftest.err
8225 } && test -s conftest
$ac_exeext &&
8226 $as_test_x conftest
$ac_exeext; then
8227 tm_link_guile_static_ltdl
="yes"
8229 echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.
$ac_ext >&5
8232 tm_link_guile_static_ltdl
="no"
8235 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8236 conftest
$ac_exeext conftest.
$ac_ext
8238 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl\"" >&5
8239 echo "${ECHO_T}\"$tm_link_guile_static_ltdl\"" >&6; }
8240 if test "$tm_link_guile_static_ltdl" = "yes" ; then
8241 GUILE_LDFLAGS
="$GUILE_LDFLAGS -lltdl"
8243 { echo "$as_me:$LINENO: checking if it works with -lltdl -ldl" >&5
8244 echo $ECHO_N "checking if it works with -lltdl -ldl... $ECHO_C" >&6; }
8245 LIBS
="$GUILE_LDFLAGS -lltdl -ldl"
8246 cat >conftest.
$ac_ext <<_ACEOF
8249 cat confdefs.h
>>conftest.
$ac_ext
8250 cat >>conftest.
$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8253 #include <guile/gh.h>
8261 static void my_main (int argc, char** argv) {}
8262 static void install_guile () {
8264 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
8266 gh_enter (0, NULL, my_main);
8270 dummy::install_guile ();
8276 rm -f conftest.
$ac_objext conftest
$ac_exeext
8277 if { (ac_try
="$ac_link"
8279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8280 *) ac_try_echo=$ac_try;;
8282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283 (eval "$ac_link") 2>conftest.er1
8285 grep -v '^ *+' conftest.er1 >conftest.err
8287 cat conftest.err >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } && {
8290 test -z "$ac_cxx_werror_flag" ||
8291 test ! -s conftest.err
8292 } && test -s conftest$ac_exeext &&
8293 $as_test_x conftest$ac_exeext; then
8294 tm_link_guile_static_ltdl_ldl="yes"
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8299 tm_link_guile_static_ltdl_ldl="no"
8302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8303 conftest$ac_exeext conftest.$ac_ext
8305 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
8306 echo "${ECHO_T}\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
8307 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
8308 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
8310 { echo "$as_me:$LINENO: WARNING: unable to link statically with guile" >&5
8311 echo "$as_me: WARNING: unable to link statically with guile" >&2;}
8315 CPPFLAGS="$SAVE_CPPFLAGS"
8316 LDFLAGS="$SAVE_LDFLAGS"
8319 #--------------------------------------------------------------------
8320 # Handle different systems case by case
8321 #--------------------------------------------------------------------
8323 CONFIG_OS="GNU_LINUX"
8324 CONFIG_OS_SUFFIX="gnu-linux"
8325 CONFIG_OS_COMPAT="Unix"
8328 CONFIG_CXXTEMPLATE=""
8329 CONFIG_STD_SETENV="#define STD_SETENV"
8331 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
8332 CONFIG_CHMOD="chmod -f"
8333 CONFIG_CXXOPTIMIZE="-O2"
8334 CONFIG_BSTATIC="-Wl,-Bstatic"
8335 CONFIG_BSHARED="-Wl,-Bdynamic"
8337 CONFIG_BPATH="-Wl,-rpath,"
8339 CONFIG_WORD_LENGTH="4"
8340 CONFIG_WORD_LENGTH_INC="3"
8341 CONFIG_WORD_MASK="0xfffffffc"
8342 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
8343 # tweak for XCode project
8344 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH"
8346 X11_CFLAGS="$X_CFLAGS"
8347 X11_LDFLAGS="$X_LIBS -lXext -lX11"
8349 { echo "$as_me:$LINENO: checking for void *" >&5
8350 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8351 if test "${ac_cv_type_void_p+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 cat >conftest.$ac_ext <<_ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 $ac_includes_default
8361 typedef void * ac__type_new_;
8365 if ((ac__type_new_ *) 0)
8367 if (sizeof (ac__type_new_))
8373 rm -f conftest.$ac_objext
8374 if { (ac_try="$ac_compile"
8376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8377 *) ac_try_echo
=$ac_try;;
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380 (eval "$ac_compile") 2>conftest.er1
8382 grep -v '^ *+' conftest.er1
>conftest.err
8384 cat conftest.err
>&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } && {
8387 test -z "$ac_cxx_werror_flag" ||
8388 test ! -s conftest.err
8389 } && test -s conftest.
$ac_objext; then
8390 ac_cv_type_void_p
=yes
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.
$ac_ext >&5
8395 ac_cv_type_void_p
=no
8398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8400 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8401 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8403 # The cast to long int works around a bug in the HP C Compiler
8404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8406 # This bug is HP SR number 8606223364.
8407 { echo "$as_me:$LINENO: checking size of void *" >&5
8408 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8409 if test "${ac_cv_sizeof_void_p+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 if test "$cross_compiling" = yes; then
8413 # Depending upon the size, compute the lo and hi bounds.
8414 cat >conftest.
$ac_ext <<_ACEOF
8417 cat confdefs.h
>>conftest.
$ac_ext
8418 cat >>conftest.
$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8420 $ac_includes_default
8421 typedef void * ac__type_sizeof_;
8425 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8432 rm -f conftest.
$ac_objext
8433 if { (ac_try
="$ac_compile"
8435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_compile") 2>conftest.er1
8441 grep -v '^ *+' conftest.er1 >conftest.err
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } && {
8446 test -z "$ac_cxx_werror_flag" ||
8447 test ! -s conftest.err
8448 } && test -s conftest.$ac_objext; then
8451 cat >conftest.$ac_ext <<_ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457 $ac_includes_default
8458 typedef void * ac__type_sizeof_;
8462 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8469 rm -f conftest.$ac_objext
8470 if { (ac_try="$ac_compile"
8472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8473 *) ac_try_echo
=$ac_try;;
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_compile") 2>conftest.er1
8478 grep -v '^ *+' conftest.er1
>conftest.err
8480 cat conftest.err
>&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } && {
8483 test -z "$ac_cxx_werror_flag" ||
8484 test ! -s conftest.err
8485 } && test -s conftest.
$ac_objext; then
8486 ac_hi
=$ac_mid; break
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.
$ac_ext >&5
8491 ac_lo
=`expr $ac_mid + 1`
8492 if test $ac_lo -le $ac_mid; then
8496 ac_mid
=`expr 2 '*' $ac_mid + 1`
8499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.
$ac_ext >&5
8505 cat >conftest.
$ac_ext <<_ACEOF
8508 cat confdefs.h
>>conftest.
$ac_ext
8509 cat >>conftest.
$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8511 $ac_includes_default
8512 typedef void * ac__type_sizeof_;
8516 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8523 rm -f conftest.
$ac_objext
8524 if { (ac_try
="$ac_compile"
8526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530 (eval "$ac_compile") 2>conftest.er1
8532 grep -v '^ *+' conftest.er1 >conftest.err
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } && {
8537 test -z "$ac_cxx_werror_flag" ||
8538 test ! -s conftest.err
8539 } && test -s conftest.$ac_objext; then
8542 cat >conftest.$ac_ext <<_ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8548 $ac_includes_default
8549 typedef void * ac__type_sizeof_;
8553 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8560 rm -f conftest.$ac_objext
8561 if { (ac_try="$ac_compile"
8563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8564 *) ac_try_echo
=$ac_try;;
8566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567 (eval "$ac_compile") 2>conftest.er1
8569 grep -v '^ *+' conftest.er1
>conftest.err
8571 cat conftest.err
>&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } && {
8574 test -z "$ac_cxx_werror_flag" ||
8575 test ! -s conftest.err
8576 } && test -s conftest.
$ac_objext; then
8577 ac_lo
=$ac_mid; break
8579 echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.
$ac_ext >&5
8582 ac_hi
=`expr '(' $ac_mid ')' - 1`
8583 if test $ac_mid -le $ac_hi; then
8587 ac_mid
=`expr 2 '*' $ac_mid`
8590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8593 echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.
$ac_ext >&5
8599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8603 # Binary search between lo and hi bounds.
8604 while test "x$ac_lo" != "x$ac_hi"; do
8605 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8606 cat >conftest.
$ac_ext <<_ACEOF
8609 cat confdefs.h
>>conftest.
$ac_ext
8610 cat >>conftest.
$ac_ext <<_ACEOF
8611 /* end confdefs.h. */
8612 $ac_includes_default
8613 typedef void * ac__type_sizeof_;
8617 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8624 rm -f conftest.
$ac_objext
8625 if { (ac_try
="$ac_compile"
8627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_compile") 2>conftest.er1
8633 grep -v '^ *+' conftest.er1 >conftest.err
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } && {
8638 test -z "$ac_cxx_werror_flag" ||
8639 test ! -s conftest.err
8640 } && test -s conftest.$ac_objext; then
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8646 ac_lo=`expr '(' $ac_mid ')' + 1`
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8653 '') if test "$ac_cv_type_void_p" = yes; then
8654 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8655 See \`config.log
' for more details." >&5
8656 echo "$as_me: error: cannot compute sizeof (void *)
8657 See \`config.log' for more details.
" >&2;}
8658 { (exit 77); exit 77; }; }
8660 ac_cv_sizeof_void_p=0
8664 cat >conftest.$ac_ext <<_ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8670 $ac_includes_default
8671 typedef void * ac__type_sizeof_;
8672 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8673 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8680 FILE *f = fopen ("conftest.val
", "w
");
8683 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8685 long int i = longval ();
8686 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8688 fprintf (f, "%ld
\n", i);
8692 unsigned long int i = ulongval ();
8693 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8695 fprintf (f, "%lu
\n", i);
8697 return ferror (f) || fclose (f) != 0;
8703 rm -f conftest$ac_exeext
8704 if { (ac_try="$ac_link"
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8709 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_link") 2>&5
8712 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8714 { (case "(($ac_try" in
8715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8718 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8719 (eval "$ac_try") 2>&5
8721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 ac_cv_sizeof_void_p=`cat conftest.val`
8725 echo "$as_me: program exited with status
$ac_status" >&5
8726 echo "$as_me: failed program was
:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8730 if test "$ac_cv_type_void_p" = yes; then
8731 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8732 See \
`config.log' for more details." >&5
8733 echo "$as_me: error: cannot compute sizeof (void *)
8734 See \`config.log
' for more details." >&2;}
8735 { (exit 77); exit 77; }; }
8737 ac_cv_sizeof_void_p=0
8740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8744 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8745 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8749 cat >>confdefs.h <<_ACEOF
8750 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8754 { echo "$as_me:$LINENO: checking if we are on a 64-bits computer" >&5
8755 echo $ECHO_N "checking if we are on a 64-bits computer... $ECHO_C" >&6; }
8756 if test "$ac_cv_sizeof_void_p" = "8"; then
8757 { echo "$as_me:$LINENO: result: yes" >&5
8758 echo "${ECHO_T}yes" >&6; }
8759 CONFIG_WORD_LENGTH="8"
8760 CONFIG_WORD_LENGTH_INC="7"
8761 CONFIG_WORD_MASK="0xfffffffffffffff8"
8762 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8764 { echo "$as_me:$LINENO: result: no" >&5
8765 echo "${ECHO_T}no" >&6; }
8769 i*86-*-linux* | x86_64-*-linux*)
8770 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
8771 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/Linux host" >&6; }
8772 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8774 i*86-*-freebsd* | x86_64-*-freebsd*)
8775 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
8776 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/BSD host" >&6; }
8777 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8780 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMS Solaris host" >&5
8781 echo "${ECHO_T}final adjustments for an Intel or AMS Solaris host" >&6; }
8782 CONFIG_CXXOPTIMIZE="-O3"
8783 CONFIG_BPATH="-Wl,-R,"
8784 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8787 { echo "$as_me:$LINENO: result: final adjustments for mingw host" >&5
8788 echo "${ECHO_T}final adjustments for mingw host" >&6; }
8789 CONFIG_OS_COMPAT="Windows"
8790 CONFIG_LDRT="-lmingw32 -lmingwex -mwindows"
8793 { echo "$as_me:$LINENO: result: final adjustments for cygwin host" >&5
8794 echo "${ECHO_T}final adjustments for cygwin host" >&6; }
8796 CONFIG_BFLAGS="-Wl,-stack,8388608"
8797 # CXX="export CYGWIN=check_case:strict; $CXX"
8801 echo "$ac_t""final adjustments for a MacOS host" 1>&6
8803 CONFIG_CXXFLAGS="-I${prefix}/include"
8805 CONFIG_BFLAGS="-framework Cocoa"
8808 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
8811 echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
8812 CONFIG_CXXFLAGS="-I${prefix}/include"
8816 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
8819 { echo "$as_me:$LINENO: result: final adjustments for a PowerPC/GNU-linux host" >&5
8820 echo "${ECHO_T}final adjustments for a PowerPC/GNU-linux host" >&6; }
8821 CONFIG_OS="POWERPC_GNU_LINUX"
8822 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8825 { echo "$as_me:$LINENO: result: final adjustments for a SUN/solaris host" >&5
8826 echo "${ECHO_T}final adjustments for a SUN/solaris host" >&6; }
8828 CONFIG_OS_SUFFIX="sun"
8831 CONFIG_BPATH="-Wl,-R,"
8832 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8833 CONFIG_WORD_LENGTH="8"
8834 CONFIG_WORD_LENGTH_INC="7"
8835 CONFIG_WORD_MASK="0xfffffff8"
8836 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8837 CONFIG_STD_SETENV=""
8840 { echo "$as_me:$LINENO: result: final adjustments for a Sparc host running GNU/Linux" >&5
8841 echo "${ECHO_T}final adjustments for a Sparc host running GNU/Linux" >&6; }
8842 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8843 CONFIG_WORD_LENGTH="8"
8844 CONFIG_WORD_LENGTH_INC="7"
8845 CONFIG_WORD_MASK="0xfffffff8"
8846 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8847 CONFIG_STD_SETENV=""
8850 { echo "$as_me:$LINENO: result: final adjustments for a DEC/alpha host" >&5
8851 echo "${ECHO_T}final adjustments for a DEC/alpha host" >&6; }
8853 CONFIG_BSHARED="-shared"
8854 CONFIG_STD_SETENV=""
8857 { echo "$as_me:$LINENO: result: final adjustments for an Alpha GNU/Linux host" >&5
8858 echo "${ECHO_T}final adjustments for an Alpha GNU/Linux host" >&6; }
8860 CONFIG_BSHARED="-shared"
8863 { echo "$as_me:$LINENO: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
8864 echo "${ECHO_T}final adjustments for an IBM S/390 GNU/Linux host" >&6; }
8865 CONFIG_STD_SETENV=""
8868 { echo "$as_me:$LINENO: result: final adjustments for an Itanium GNU/Linux host" >&5
8869 echo "${ECHO_T}final adjustments for an Itanium GNU/Linux host" >&6; }
8871 CONFIG_BSHARED="-shared"
8874 { echo "$as_me:$LINENO: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
8875 echo "${ECHO_T}final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
8876 CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
8878 CONFIG_BSHARED="-shared"
8881 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
8888 X11_LDFLAGS="$X_LIBS -lX11"
8889 CONFIG_WORD_MASK="0xfffffff8"
8890 CONFIG_STD_SETENV=""
8891 CONFIG_CHMOD="chmod"
8892 CONFIG_LIB_PATH="LD_LIBRARYN32_PATH"
8894 m68k-*-linux* | mips-*-linux* | mipsel-*-linux* | arm*-*-linux*)
8895 { echo "$as_me:$LINENO: result: final adjustments for a supported GNU/Linux host" >&5
8896 echo "${ECHO_T}final adjustments for a supported GNU/Linux host" >&6; }
8899 { echo "$as_me:$LINENO: result: final adjustments for a generic GNU/Linux host" >&5
8900 echo "${ECHO_T}final adjustments for a generic GNU/Linux host" >&6; }
8903 { echo "$as_me:$LINENO: result: final adjustments for a generic host" >&5
8904 echo "${ECHO_T}final adjustments for a generic host" >&6; }
8910 echo "$ac_t""Xcode 3.2 project tweak (only MacOSX 10.6)" 1>&6
8911 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH_ACTUAL"
8915 #--------------------------------------------------------------------
8916 # Temporary fix for link problem
8917 #--------------------------------------------------------------------
8919 case "$GXX_VERSION" in
8921 CONFIG_BSTATIC="-static"
8922 CONFIG_BSHARED="-dynamic"
8926 #--------------------------------------------------------------------
8927 # Memory allocation options
8928 #--------------------------------------------------------------------
8930 # Check whether --enable-fastalloc was given.
8931 if test "${enable_fastalloc+set}" = set; then
8932 enableval=$enable_fastalloc;
8934 enable_fastalloc="yes"
8937 case "$enable_fastalloc" in
8941 { echo "$as_me:$LINENO: result: disabling fast allocator for small objects" >&5
8942 echo "${ECHO_T}disabling fast allocator for small objects" >&6; }
8944 cat >>confdefs.h <<\_ACEOF
8945 #define NO_FAST_ALLOC 1
8950 { { echo "$as_me:$LINENO: error: bad option --enable-fastalloc=$enable_fastalloc" >&5
8951 echo "$as_me: error: bad option --enable-fastalloc=$enable_fastalloc" >&2;}
8952 { (exit 1); exit 1; }; }
8956 #--------------------------------------------------------------------
8957 # Experimental options
8958 #--------------------------------------------------------------------
8960 # Check whether --enable-experimental was given.
8961 if test "${enable_experimental+set}" = set; then
8962 enableval=$enable_experimental;
8964 enable_experimental="no"
8967 case "$enable_experimental" in
8969 { echo "$as_me:$LINENO: result: enabling experimental style rewriting code" >&5
8970 echo "${ECHO_T}enabling experimental style rewriting code" >&6; }
8972 cat >>confdefs.h <<\_ACEOF
8973 #define EXPERIMENTAL 1
8976 CONFIG_EXPERIMENTAL="Memorizer Environment Evaluate"
8979 { echo "$as_me:$LINENO: result: disabling experimental style rewriting code" >&5
8980 echo "${ECHO_T}disabling experimental style rewriting code" >&6; }
8981 CONFIG_EXPERIMENTAL=""
8984 { { echo "$as_me:$LINENO: error: bad option --enable-experimental=$enable_experimental" >&5
8985 echo "$as_me: error: bad option --enable-experimental=$enable_experimental" >&2;}
8986 { (exit 1); exit 1; }; }
8991 #--------------------------------------------------------------------
8992 # MacOS X extensions (spellchecker, image loading)
8993 #--------------------------------------------------------------------
8995 # Check whether --enable-macosx-extensions was given.
8996 if test "${enable_macosx_extensions+set}" = set; then
8997 enableval=$enable_macosx_extensions;
8999 enable_macosx_extensions="no"
9002 case "$enable_macosx_extensions" in
9004 { echo "$as_me:$LINENO: result: enabling Mac OSX extensions" >&5
9005 echo "${ECHO_T}enabling Mac OSX extensions" >&6; }
9007 cat >>confdefs.h <<\_ACEOF
9008 #define MACOSX_EXTENSIONS 1
9011 CONFIG_MACOS="MacOS"
9014 { echo "$as_me:$LINENO: result: disabling Mac OSX extensions" >&5
9015 echo "${ECHO_T}disabling Mac OSX extensions" >&6; }
9019 { { echo "$as_me:$LINENO: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&5
9020 echo "$as_me: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&2;}
9021 { (exit 1); exit 1; }; }
9026 #--------------------------------------------------------------------
9027 # Experimental PDF renderer
9028 #--------------------------------------------------------------------
9030 # Check whether --enable-pdf-renderer was given.
9031 if test "${enable_pdf_renderer+set}" = set; then
9032 enableval=$enable_pdf_renderer;
9034 enable_pdf_renderer="no"
9037 case "$enable_pdf_renderer" in
9039 { echo "$as_me:$LINENO: result: enabling experimental PDF renderer" >&5
9040 echo "${ECHO_T}enabling experimental PDF renderer" >&6; }
9042 cat >>confdefs.h <<\_ACEOF
9043 #define PDF_RENDERER 1
9046 CONFIG_PDF="Pdf Pdf/dvipdfmx"
9049 { echo "$as_me:$LINENO: result: disabling experimental PDF renderer" >&5
9050 echo "${ECHO_T}disabling experimental PDF renderer" >&6; }
9054 { { echo "$as_me:$LINENO: error: bad option --enable-pdf-renderer=$enable_pdf_renderer" >&5
9055 echo "$as_me: error: bad option --enable-pdf-renderer=$enable_pdf_renderer" >&2;}
9056 { (exit 1); exit 1; }; }
9061 #--------------------------------------------------------------------
9063 #--------------------------------------------------------------------
9069 # Check whether --enable-qt was given.
9070 if test "${enable_qt+set}" = set; then
9071 enableval=$enable_qt;
9077 case "$enable_qt" in
9080 if test -r "/c/Qt"; then
9082 qt_bin="`dirname $MOC`"
9083 qt_home="`dirname $qt_bin`"
9084 qt_version="`basename $qt_home`"
9085 qt_parent="`dirname $qt_home`"
9086 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."
9087 QT_CXXFLAGS="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
9088 QT_LDFLAGS="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows"
9089 QT_LIBS="-L'c
:/Qt
/$qt_version/lib
' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
9090 if test "$qt_parent" != "/c/Qt"; then
9098 test x"$TROLL" != x && echo 'ViM rox emacs.
'
9101 # Check whether --with-qt was given.
9102 if test "${with_qt+set}" = set; then
9103 withval=$with_qt; QT_PATH=$withval
9110 if test -d /usr/local/Trolltech; then
9111 # Try to find the latest version.
9112 tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
9113 | xargs | sed 's
/ */:/g
'`
9117 if test -z "$QMAKE"; then
9118 for ac_prog in qmake
9120 # Extract the first word of "$ac_prog", so it can be a program name with args.
9121 set dummy $ac_prog; ac_word=$2
9122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9124 if test "${ac_cv_path_QMAKE+set}" = set; then
9125 echo $ECHO_N "(cached) $ECHO_C" >&6
9129 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
9134 for as_dir in $as_dummy
9137 test -z "$as_dir" && as_dir=.
9138 for ac_exec_ext in '' $ac_executable_extensions; do
9139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9140 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
9141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9151 QMAKE=$ac_cv_path_QMAKE
9152 if test -n "$QMAKE"; then
9153 { echo "$as_me:$LINENO: result: $QMAKE" >&5
9154 echo "${ECHO_T}$QMAKE" >&6; }
9156 { echo "$as_me:$LINENO: result: no" >&5
9157 echo "${ECHO_T}no" >&6; }
9161 test -n "$QMAKE" && break
9163 test -n "$QMAKE" || QMAKE="missing"
9166 { echo "$as_me:$LINENO: checking for the QMAKE to use with Qt" >&5
9167 echo $ECHO_N "checking for the QMAKE to use with Qt... $ECHO_C" >&6; }
9168 { echo "$as_me:$LINENO: result: $QMAKE" >&5
9169 echo "${ECHO_T}$QMAKE" >&6; }
9171 if test x"$QMAKE" = xmissing; then
9172 { { echo "$as_me:$LINENO: error: Cannot find qmake in your PATH. Try using --with-qt." >&5
9173 echo "$as_me: error: Cannot find qmake in your PATH. Try using --with-qt." >&2;}
9174 { (exit 1); exit 1; }; }
9177 # Find moc (Meta Object Compiler).
9178 if test -z "$MOC"; then
9181 # Extract the first word of "$ac_prog", so it can be a program name with args.
9182 set dummy $ac_prog; ac_word=$2
9183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9185 if test "${ac_cv_path_MOC+set}" = set; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
9193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9194 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9195 for as_dir in $as_dummy
9198 test -z "$as_dir" && as_dir=.
9199 for ac_exec_ext in '' $ac_executable_extensions; do
9200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9201 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
9202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9213 if test -n "$MOC"; then
9214 { echo "$as_me:$LINENO: result: $MOC" >&5
9215 echo "${ECHO_T}$MOC" >&6; }
9217 { echo "$as_me:$LINENO: result: no" >&5
9218 echo "${ECHO_T}no" >&6; }
9222 test -n "$MOC" && break
9224 test -n "$MOC" || MOC="missing"
9227 { echo "$as_me:$LINENO: checking for the MOC to use with Qt" >&5
9228 echo $ECHO_N "checking for the MOC to use with Qt... $ECHO_C" >&6; }
9229 { echo "$as_me:$LINENO: result: $MOC" >&5
9230 echo "${ECHO_T}$MOC" >&6; }
9232 if test x"$MOC" = xmissing; then
9233 { { echo "$as_me:$LINENO: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&5
9234 echo "$as_me: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&2;}
9235 { (exit 1); exit 1; }; }
9238 # Find uic (User Interface Compiler).
9239 if test -z "$UIC"; then
9242 # Extract the first word of "$ac_prog", so it can be a program name with args.
9243 set dummy $ac_prog; ac_word=$2
9244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9246 if test "${ac_cv_path_UIC+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
9254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9256 for as_dir in $as_dummy
9259 test -z "$as_dir" && as_dir=.
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9262 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
9263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9274 if test -n "$UIC"; then
9275 { echo "$as_me:$LINENO: result: $UIC" >&5
9276 echo "${ECHO_T}$UIC" >&6; }
9278 { echo "$as_me:$LINENO: result: no" >&5
9279 echo "${ECHO_T}no" >&6; }
9283 test -n "$UIC" && break
9285 test -n "$UIC" || UIC="missing"
9288 { echo "$as_me:$LINENO: checking for the UIC to use with Qt" >&5
9289 echo $ECHO_N "checking for the UIC to use with Qt... $ECHO_C" >&6; }
9290 { echo "$as_me:$LINENO: result: $UIC" >&5
9291 echo "${ECHO_T}$UIC" >&6; }
9293 if test x"$UIC" = xmissing; then
9294 { { echo "$as_me:$LINENO: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&5
9295 echo "$as_me: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&2;}
9296 { (exit 1); exit 1; }; }
9299 # Find rcc (Qt Resource Compiler).
9302 # Extract the first word of "$ac_prog", so it can be a program name with args.
9303 set dummy $ac_prog; ac_word=$2
9304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9306 if test "${ac_cv_path_RCC+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
9314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9315 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9316 for as_dir in $as_dummy
9319 test -z "$as_dir" && as_dir=.
9320 for ac_exec_ext in '' $ac_executable_extensions; do
9321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9322 ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
9323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9334 if test -n "$RCC"; then
9335 { echo "$as_me:$LINENO: result: $RCC" >&5
9336 echo "${ECHO_T}$RCC" >&6; }
9338 { echo "$as_me:$LINENO: result: no" >&5
9339 echo "${ECHO_T}no" >&6; }
9343 test -n "$RCC" && break
9345 test -n "$RCC" || RCC="false"
9347 if test x"$UIC" = xfalse; then
9348 { echo "$as_me:$LINENO: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
9349 echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
9352 # If we don't know the path to Qt
, guess it from the path to qmake.
9353 if test x
"$QT_PATH" = x
; then
9354 QT_PATH
=`dirname "$QMAKE"`
9356 if test x
"$QT_PATH" = x
; then
9357 { { echo "$as_me:$LINENO: error: Cannot find the path to your Qt install. Use --with-qt." >&5
9358 echo "$as_me: error: Cannot find the path to your Qt install. Use --with-qt." >&2;}
9359 { (exit 1); exit 1; }; }
9362 { echo "$as_me:$LINENO: checking for the QT_PATH to use with Qt" >&5
9363 echo $ECHO_N "checking for the QT_PATH to use with Qt... $ECHO_C" >&6; }
9364 { echo "$as_me:$LINENO: result: $QT_PATH" >&5
9365 echo "${ECHO_T}$QT_PATH" >&6; }
9367 # Get ready to build a test-app with Qt.
9369 # Look for a writable temporary directory.
9371 if test x
"$TMPDIR" = x ||
test ! -d "$TMPDIR" ||
test ! -w "$TMPDIR"; then
9372 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
9374 for i
in /tmp
/var
/tmp
; do
9375 if test -d "$i" && test -w "$i"; then
9378 echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
9384 # Kludge!! QMake has a very strange behavior. For instance, if you
9385 # install Qt under your $HOME and run QMake somewhere else under your
9386 # $HOME, it will try to be clever and produce Makefiles with relative
9387 # include paths. In order to avoid this, we will test QMake from a
9388 # temporary directory (usually /tmp). Note that this problem was only
9389 # observed with Qt 4.
9390 my_configure_pwd
=`pwd`
9391 my_tmpdir
="$TMPDIR/conftest$$.dir"
9392 test -d "$my_tmpdir" || mkdir
"$my_tmpdir"
9393 if test -w "$my_tmpdir" && cd "$my_tmpdir"
9397 { { echo "$as_me:$LINENO: error: Cannot cd to or write in $my_tmpdir" >&5
9398 echo "$as_me: error: Cannot cd to or write in $my_tmpdir" >&2;}
9399 { (exit 1); exit 1; }; }
9401 cat >conftest.h
<<_ASEOF
9404 class Foo: public QObject
9411 void setValue(int value);
9413 void valueChanged(int newValue);
9419 cat >conftest.cpp
<<_ASEOF
9420 #include "conftest.h"
9424 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
9427 void Foo::setValue(int value)
9437 if $QMAKE -project; then :; else
9438 { { echo "$as_me:$LINENO: error: Calling $QMAKE -project failed." >&5
9439 echo "$as_me: error: Calling $QMAKE -project failed." >&2;}
9440 { (exit 1); exit 1; }; }
9443 # Find the .pro file generated by qmake.
9444 pro_file
='conftest.dir.pro'
9445 test -f $pro_file || pro_file
=`echo *.pro`
9446 if test -f "$pro_file"; then :; else
9447 { { echo "$as_me:$LINENO: error: Can't find the .pro file generated by Qmake." >&5
9448 echo "$as_me: error: Can't find the .pro file generated by Qmake." >&2;}
9449 { (exit 1); exit 1; }; }
9458 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
9459 sed 's/^/| /' "$pro_file" >&5
9461 additional_qmake_flags
=""
9464 additional_qmake_flags
="-spec macx-g++"
9468 if $QMAKE ${additional_qmake_flags} ; then :; else
9469 { { echo "$as_me:$LINENO: error: Calling $QMAKE failed." >&5
9470 echo "$as_me: error: Calling $QMAKE failed." >&2;}
9471 { (exit 1); exit 1; }; }
9473 # Try to compile a simple Qt app.
9474 { echo "$as_me:$LINENO: checking whether we can build a simple Qt app" >&5
9475 echo $ECHO_N "checking whether we can build a simple Qt app... $ECHO_C" >&6; }
9476 if test "${at_cv_qt_build+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 if $MAKE >&5 2>&1; then
9483 at_cv_qt_build
='ok, looks like Qt 4'
9485 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9487 sed 's/<QObject>/<qobject.h>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
9488 if $MAKE >&5 2>&1; then
9489 at_cv_qt_build
='ok, looks like Qt 3'
9491 # Sometimes (such as on Debian) build will fail because Qt hasn't been
9492 # installed in debug mode and qmake tries (by default) to build apps in
9493 # debug mode => Try again in release mode.
9494 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
9497 # Tweak the value of CONFIG in the .pro file for +release.
9500 for at_mod
in +release
; do
9501 at_mod
=`echo "$at_mod" | sed 's/^-//; tough
9510 echo "$qt_conf" |
sed 1d
>>"$pro_file"
9513 sed 's/<qobject.h>/<QObject>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
9514 if $MAKE >&5 2>&1; then
9515 at_cv_qt_build
='ok, looks like Qt 4, release mode forced'
9517 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9519 sed 's/<QObject>/<qobject.h>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
9520 if $MAKE >&5 2>&1; then
9521 at_cv_qt_build
='ok, looks like Qt 3, release mode forced'
9524 echo "$as_me:$LINENO: failed program was:" >&5
9525 sed 's/^/| /' conftest.h
>&5
9526 echo "$as_me:$LINENO: failed program was:" >&5
9527 sed 's/^/| /' conftest.cpp
>&5
9528 fi # if make with Qt3-style #include and release mode forced.
9529 fi # if make with Qt4-style #include and release mode forced.
9530 fi # if make with Qt3-style #include.
9531 fi # if make with Qt4-style #include.
9534 { echo "$as_me:$LINENO: result: $at_cv_qt_build" >&5
9535 echo "${ECHO_T}$at_cv_qt_build" >&6; }
9536 if test x
"$at_cv_qt_build" = xko
; then
9537 { { echo "$as_me:$LINENO: error: Cannot build a test Qt program" >&5
9538 echo "$as_me: error: Cannot build a test Qt program" >&2;}
9539 { (exit 1); exit 1; }; }
9541 QT_VERSION_MAJOR
=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
9544 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
9545 # It starts by removing the beginning of the line, removing references to
9546 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
9547 # all variable uses by QT_.
9548 qt_sed_filter
='s///;
9551 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
9553 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
9554 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
9555 # Makefile.Release. The reason is that the main difference is that release
9556 # uses -Os and debug -g. We can override -Os by passing another -O but we
9557 # usually don't override -g.
9558 if test -f Makefile.Release
; then
9559 at_mfile
='Makefile.Release'
9563 if test -f $at_mfile; then :; else
9564 cd "$my_configure_pwd"
9565 { { echo "$as_me:$LINENO: error: Cannot find the Makefile generated by qmake." >&5
9566 echo "$as_me: error: Cannot find the Makefile generated by qmake." >&2;}
9567 { (exit 1); exit 1; }; }
9570 # Find the DEFINES of Qt (should have been named CPPFLAGS).
9571 if test -z "$QT_DEFINES"; then
9572 { echo "$as_me:$LINENO: checking for the DEFINES to use with Qt" >&5
9573 echo $ECHO_N "checking for the DEFINES to use with Qt... $ECHO_C" >&6; }
9574 if test "${at_cv_env_QT_DEFINES+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 at_cv_env_QT_DEFINES
=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9579 { echo "$as_me:$LINENO: result: $at_cv_env_QT_DEFINES" >&5
9580 echo "${ECHO_T}$at_cv_env_QT_DEFINES" >&6; }
9581 QT_DEFINES
="$at_cv_env_QT_DEFINES"
9584 { echo "$as_me:$LINENO: checking for the QT_DEFINES to use with Qt" >&5
9585 echo $ECHO_N "checking for the QT_DEFINES to use with Qt... $ECHO_C" >&6; }
9586 { echo "$as_me:$LINENO: result: $QT_DEFINES" >&5
9587 echo "${ECHO_T}$QT_DEFINES" >&6; }
9589 # Find the CFLAGS of Qt (We can use Qt in C?!)
9590 if test -z "$QT_CFLAGS"; then
9591 { echo "$as_me:$LINENO: checking for the CFLAGS to use with Qt" >&5
9592 echo $ECHO_N "checking for the CFLAGS to use with Qt... $ECHO_C" >&6; }
9593 if test "${at_cv_env_QT_CFLAGS+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 at_cv_env_QT_CFLAGS
=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9598 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CFLAGS" >&5
9599 echo "${ECHO_T}$at_cv_env_QT_CFLAGS" >&6; }
9600 QT_CFLAGS
="$at_cv_env_QT_CFLAGS"
9603 { echo "$as_me:$LINENO: checking for the QT_CFLAGS to use with Qt" >&5
9604 echo $ECHO_N "checking for the QT_CFLAGS to use with Qt... $ECHO_C" >&6; }
9605 { echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
9606 echo "${ECHO_T}$QT_CFLAGS" >&6; }
9608 # Find the CXXFLAGS of Qt.
9609 if test -z "$QT_CXXFLAGS"; then
9610 { echo "$as_me:$LINENO: checking for the CXXFLAGS to use with Qt" >&5
9611 echo $ECHO_N "checking for the CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9612 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9615 at_cv_env_QT_CXXFLAGS
=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9617 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CXXFLAGS" >&5
9618 echo "${ECHO_T}$at_cv_env_QT_CXXFLAGS" >&6; }
9619 QT_CXXFLAGS
="$at_cv_env_QT_CXXFLAGS"
9622 { echo "$as_me:$LINENO: checking for the QT_CXXFLAGS to use with Qt" >&5
9623 echo $ECHO_N "checking for the QT_CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9624 { echo "$as_me:$LINENO: result: $QT_CXXFLAGS" >&5
9625 echo "${ECHO_T}$QT_CXXFLAGS" >&6; }
9627 # Find the INCPATH of Qt.
9628 if test -z "$QT_INCPATH"; then
9629 { echo "$as_me:$LINENO: checking for the INCPATH to use with Qt" >&5
9630 echo $ECHO_N "checking for the INCPATH to use with Qt... $ECHO_C" >&6; }
9631 if test "${at_cv_env_QT_INCPATH+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 at_cv_env_QT_INCPATH
=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9636 { echo "$as_me:$LINENO: result: $at_cv_env_QT_INCPATH" >&5
9637 echo "${ECHO_T}$at_cv_env_QT_INCPATH" >&6; }
9638 QT_INCPATH
="$at_cv_env_QT_INCPATH"
9641 { echo "$as_me:$LINENO: checking for the QT_INCPATH to use with Qt" >&5
9642 echo $ECHO_N "checking for the QT_INCPATH to use with Qt... $ECHO_C" >&6; }
9643 { echo "$as_me:$LINENO: result: $QT_INCPATH" >&5
9644 echo "${ECHO_T}$QT_INCPATH" >&6; }
9646 QT_CPPFLAGS
="$QT_DEFINES $QT_INCPATH"
9649 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
9650 if test -z "$QT_LDFLAGS"; then
9651 { echo "$as_me:$LINENO: checking for the LDFLAGS to use with Qt" >&5
9652 echo $ECHO_N "checking for the LDFLAGS to use with Qt... $ECHO_C" >&6; }
9653 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 at_cv_env_QT_LDFLAGS
=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9658 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LDFLAGS" >&5
9659 echo "${ECHO_T}$at_cv_env_QT_LDFLAGS" >&6; }
9660 QT_LDFLAGS
="$at_cv_env_QT_LDFLAGS"
9663 QT_LFLAGS
=$QT_LDFLAGS
9665 { echo "$as_me:$LINENO: checking for the QT_LDFLAGS to use with Qt" >&5
9666 echo $ECHO_N "checking for the QT_LDFLAGS to use with Qt... $ECHO_C" >&6; }
9667 { echo "$as_me:$LINENO: result: $QT_LDFLAGS" >&5
9668 echo "${ECHO_T}$QT_LDFLAGS" >&6; }
9670 { echo "$as_me:$LINENO: checking whether host operating system is Darwin" >&5
9671 echo $ECHO_N "checking whether host operating system is Darwin... $ECHO_C" >&6; }
9678 { echo "$as_me:$LINENO: result: $at_darwin" >&5
9679 echo "${ECHO_T}$at_darwin" >&6; }
9681 # Find the LIBS of Qt.
9682 if test -z "$QT_LIBS"; then
9683 { echo "$as_me:$LINENO: checking for the LIBS to use with Qt" >&5
9684 echo $ECHO_N "checking for the LIBS to use with Qt... $ECHO_C" >&6; }
9685 if test "${at_cv_env_QT_LIBS+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 at_cv_env_QT_LIBS
=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9689 if test x
$at_darwin = xyes
; then
9690 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
9691 # -F properly. The "bug" has been fixed on 22 October 2006
9692 # by Peter O'Gorman but we provide backward compatibility here.
9693 at_cv_env_QT_LIBS
=`echo "$at_cv_env_QT_LIBS" \
9694 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
9698 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LIBS" >&5
9699 echo "${ECHO_T}$at_cv_env_QT_LIBS" >&6; }
9700 QT_LIBS
="$at_cv_env_QT_LIBS"
9703 { echo "$as_me:$LINENO: checking for the QT_LIBS to use with Qt" >&5
9704 echo $ECHO_N "checking for the QT_LIBS to use with Qt... $ECHO_C" >&6; }
9705 { echo "$as_me:$LINENO: result: $QT_LIBS" >&5
9706 echo "${ECHO_T}$QT_LIBS" >&6; }
9708 cd "$my_configure_pwd" ||
echo 'WTF!'
9713 if test x
"$at_cv_qt_build" = xko
; then
9714 { { echo "$as_me:$LINENO: error: cannot find Qt!" >&5
9715 echo "$as_me: error: cannot find Qt!" >&2;}
9716 { (exit 1); exit 1; }; }
9718 { echo "$as_me:$LINENO: result: enabling experimental Qt port" >&5
9719 echo "${ECHO_T}enabling experimental Qt port" >&6; }
9724 { echo "$as_me:$LINENO: result: disabling experimental Qt port" >&5
9725 echo "${ECHO_T}disabling experimental Qt port" >&6; }
9728 { { echo "$as_me:$LINENO: error: bad option --enable-qt=$enable_qt" >&5
9729 echo "$as_me: error: bad option --enable-qt=$enable_qt" >&2;}
9730 { (exit 1); exit 1; }; }
9734 # Check whether --enable-cocoa was given.
9735 if test "${enable_cocoa+set}" = set; then
9736 enableval
=$enable_cocoa;
9741 case "$enable_cocoa" in
9743 { echo "$as_me:$LINENO: result: enabling experimental Cocoa port" >&5
9744 echo "${ECHO_T}enabling experimental Cocoa port" >&6; }
9746 COCOA_LDFLAGS
="-framework Cocoa"
9750 { echo "$as_me:$LINENO: result: disabling experimental Cocoa port" >&5
9751 echo "${ECHO_T}disabling experimental Cocoa port" >&6; }
9754 { { echo "$as_me:$LINENO: error: bad option --enable-cocoa=$enable_cocoa" >&5
9755 echo "$as_me: error: bad option --enable-cocoa=$enable_cocoa" >&2;}
9756 { (exit 1); exit 1; }; }
9760 case "$CONFIG_GUI" in
9762 CONFIG_X11
="X11 Widkit"
9763 if test "x${CONFIG_GS}" != "xGhostscript"; then
9764 CONFIG_X11
="$CONFIG_X11 Ghostscript"
9766 CONFIG_GUI_DEFINE
="X11TEXMACS"
9767 # AC_DEFINE(X11TEXMACS, 1, [Use standard X11 port])
9770 CONFIG_COCOA
="Cocoa"
9771 CONFIG_GUI_DEFINE
="AQUATEXMACS"
9772 # AC_DEFINE(AQUATEXMACS, 1, [Enable experimental Cocoa port])
9776 CONFIG_GUI_DEFINE
="QTTEXMACS"
9777 # AC_DEFINE(QTTEXMACS, 1, [Enable experimental Qt port])
9794 #--------------------------------------------------------------------
9796 #--------------------------------------------------------------------
9798 STD_DEBUG_FLAGS
="-fno-rtti -fno-exceptions"
9799 if test "$enable_cocoa" = "yes"; then
9800 STD_DEBUG_FLAGS
="-fno-exceptions"
9803 { echo "$as_me:$LINENO: checking if compiler supports $STD_DEBUG_FLAGS" >&5
9804 echo $ECHO_N "checking if compiler supports $STD_DEBUG_FLAGS... $ECHO_C" >&6; }
9805 CXXFLAGS
="$STD_DEBUG_FLAGS"
9806 cat >conftest.
$ac_ext <<_ACEOF
9809 cat confdefs.h
>>conftest.
$ac_ext
9810 cat >>conftest.
$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9813 int some_variable = 0;
9824 rm -f conftest.
$ac_objext
9825 if { (ac_try
="$ac_compile"
9827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831 (eval "$ac_compile") 2>conftest.er1
9833 grep -v '^ *+' conftest.er1 >conftest.err
9835 cat conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } && {
9838 test -z "$ac_cxx_werror_flag" ||
9839 test ! -s conftest.err
9840 } && test -s conftest.$ac_objext; then
9842 CONFIG_CXXDIALECT="$STD_DEBUG_FLAGS"
9843 { echo "$as_me:$LINENO: result: yes" >&5
9844 echo "${ECHO_T}yes" >&6; }
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9851 CONFIG_CXXDIALECT=""
9852 { echo "$as_me:$LINENO: result: no" >&5
9853 echo "${ECHO_T}no" >&6; }
9857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861 # Check whether --enable-debug was given.
9862 if test "${enable_debug+set}" = set; then
9863 enableval=$enable_debug;
9869 if test "$enable_debug" = "yes"; then
9870 if test "$GXX" = "yes"; then
9871 enable_debug="-ggdb"
9877 if test "$enable_debug" = "no"; then
9878 { echo "$as_me:$LINENO: result: disabling debugging" >&5
9879 echo "${ECHO_T}disabling debugging" >&6; }
9880 CONFIG_STRIP="strip"
9882 optimize_default="yes"
9884 { echo "$as_me:$LINENO: result: enabling debugging, $enable_debug" >&5
9885 echo "${ECHO_T}enabling debugging, $enable_debug" >&6; }
9887 CONFIG_CXXDEBUG="$enable_debug"
9888 optimize_default="no"
9891 # Check whether --enable-assert was given.
9892 if test "${enable_assert+set}" = set; then
9893 enableval=$enable_assert;
9899 if test "$enable_assert" = "no"; then
9900 { echo "$as_me:$LINENO: result: disabling assertion checking" >&5
9901 echo "${ECHO_T}disabling assertion checking" >&6; }
9903 { echo "$as_me:$LINENO: result: enabling assertion checking" >&5
9904 echo "${ECHO_T}enabling assertion checking" >&6; }
9906 cat >>confdefs.h <<\_ACEOF
9907 #define DEBUG_ASSERT 1
9912 #--------------------------------------------------------------------
9914 #--------------------------------------------------------------------
9916 case "$GXX_VERSION" in
9918 CONFIG_CXXWARNING="";
9921 CONFIG_CXXWARNING="-Wall -Wno-return-type"
9925 # Check whether --enable-warnings was given.
9926 if test "${enable_warnings+set}" = set; then
9927 enableval=$enable_warnings;
9929 enable_warnings="yes"
9932 case "$enable_warnings" in
9934 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9935 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9937 CONFIG_CXXWARNING=""
9938 { echo "$as_me:$LINENO: result: disabling warning flags" >&5
9939 echo "${ECHO_T}disabling warning flags" >&6; } ;;
9941 CONFIG_CXXWARNING="$enable_warnings"
9942 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9943 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9946 #--------------------------------------------------------------------
9947 # Optimization options
9948 #--------------------------------------------------------------------
9950 if test "$optimize_default" = "yes"; then
9951 case "$GXX_VERSION" in
9952 3.3.3 | 3.3.4 | 4.*)
9954 2.96 | 3.0 | 3.0.* | 3.1 | 3.1.* | 3.2 | 3.2.* | 3.3 | 3.3.*)
9956 i*86-*-linux-gnu* | i*86-*-freebsd*)
9957 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9958 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9959 optimize_default="no-inline"
9962 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9963 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9964 optimize_default="no-inline"
9971 # Check whether --enable-optimize was given.
9972 if test "${enable_optimize+set}" = set; then
9973 enableval=$enable_optimize;
9975 enable_optimize="$optimize_default"
9979 case "$enable_optimize" in
9981 # keep optimization options
9982 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9983 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9985 optimize_no_inline="-fno-default-inline -fno-inline"
9986 CONFIG_CXXOPTIMIZE="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
9987 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9988 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9990 CONFIG_CXXOPTIMIZE=""
9991 { echo "$as_me:$LINENO: result: disabling optimizations" >&5
9992 echo "${ECHO_T}disabling optimizations" >&6; } ;;
9994 CONFIG_CXXOPTIMIZE="$enable_optimize"
9995 { echo "$as_me:$LINENO: result: customizing optimizations, $enable_optimize" >&5
9996 echo "${ECHO_T}customizing optimizations, $enable_optimize" >&6; } ;;
9999 #--------------------------------------------------------------------
10000 # Substitute TeXmacs specific configuration parameters
10001 #--------------------------------------------------------------------
10027 #--------------------------------------------------------------------
10028 # Default paths for installation
10029 #--------------------------------------------------------------------
10031 if test "$prefix" = ""; then
10034 if test "$prefix" = "NONE"; then
10037 if test "$exec_prefix" = ""; then
10038 exec_prefix='${prefix}'
10040 if test "$exec_prefix" = "NONE"; then
10041 exec_prefix='${prefix}'
10043 if test "$exec_prefix" = '${prefix}'; then
10044 exec_prefix='${prefix}'
10046 if test "$includedir" = ""; then
10047 includedir='${prefix}/include'
10049 if test "$includedir" = "NONE"; then
10050 includedir='${prefix}/include'
10052 if test "$includedir" = '${prefix}/include'; then
10053 includedir='${prefix}/include'
10055 if test "$libdir" = ""; then
10056 libdir='${exec_prefix}/lib'
10058 if test "$libdir" = "NONE"; then
10059 libdir='${exec_prefix}/lib'
10061 if test "$libdir" = '${exec_prefix}/lib'; then
10062 libdir='${exec_prefix}/lib'
10064 if test "$bindir" = ""; then
10065 bindir='${exec_prefix}/bin'
10067 if test "$bindir" = "NONE"; then
10068 bindir=${exec_prefix}/bin
10070 if test "$bindir" = '${exec_prefix}/bin'; then
10071 bindir='${exec_prefix}/bin'
10073 if test "$datarootdir" = ""; then
10074 datarootdir='${prefix}/share'
10076 if test "$datarootdir" = "NONE"; then
10077 datarootdir='${prefix}/share'
10079 if test "$datarootdir" = '${prefix}/share'; then
10080 datarootdir='${prefix}/share'
10082 if test "$datadir" = ""; then
10083 datadir='${prefix}/share'
10085 if test "$datadir" = "NONE"; then
10086 datadir='${prefix}/share'
10088 if test "$datadir" = '${prefix}/share'; then
10089 datadir='${prefix}/share'
10091 if test "$mandir" = ""; then
10092 mandir='${datarootdir}/man'
10094 if test "$mandir" = "NONE"; then
10095 mandir='${datarootdir}/man'
10097 if test "$mandir" = '${datarootdir}/man'; then
10098 mandir='${datarootdir}/man'
10100 if test "$libexecdir" = ""; then
10101 libexecdir='${exec_prefix}/libexec'
10103 if test "$libexecdir" = "NONE"; then
10104 libexecdir='${exec_prefix}/libexec'
10106 if test "$libexecdir" = '${exec_prefix}/libexec'; then
10107 libexecdir='${exec_prefix}/libexec'
10113 tmsrc=${curdir}/${tmdir}
10114 tmbin=${libexecdir}/${tmdir}
10115 tmdata=${datadir}/${tmdir}
10122 if test "$DEVEL_RELEASE" = "1"; then
10123 tmtgz=${PACKAGE}-${DEVEL_VERSION}
10125 tmtgz=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
10127 tmrpm=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
10128 if test "$STABLE_RELEASE" = "1"; then
10129 tmstgz=${PACKAGE}-${STABLE_VERSION}
10131 tmstgz=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
10133 tmsrpm=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
10134 if test "$WINDOWS_RELEASE" = "1"; then
10135 tmwin=wintexmacs-${WINDOWS_VERSION}
10137 tmwin=wintexmacs-${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
10145 #--------------------------------------------------------------------
10147 #--------------------------------------------------------------------
10149 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 misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in"
10151 cat >confcache <<\_ACEOF
10152 # This file is a shell script that caches the results of configure
10153 # tests run on this system so they can be shared between configure
10154 # scripts and configure runs, see configure's option --config-cache.
10155 # It is not useful on other systems. If it contains results you don't
10156 # want to keep, you may remove or edit it.
10158 # config.status only pays attention to the cache file if you give it
10159 # the --recheck option to rerun configure.
10161 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10162 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10163 # following values.
10167 # The following way of writing the cache mishandles newlines in values,
10168 # but we know of no workaround that is simple, portable, and efficient.
10169 # So, we kill variables containing newlines.
10170 # Ultrix sh set writes to stderr and can't be redirected directly,
10171 # and sets the high bit in the cache file unless we assign to the vars.
10173 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10174 eval ac_val
=\$
$ac_var
10178 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10179 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10182 _ | IFS | as_nl
) ;; #(
10183 *) $as_unset $ac_var ;;
10189 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10190 *${as_nl}ac_space
=\
*)
10191 # `set' does not quote correctly, so add quotes (double-quote
10192 # substitution turns \\\\ into \\, and sed turns \\ into \).
10195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10198 # `set' quotes correctly as required by POSIX, so do not add quotes.
10199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10208 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10210 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10212 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10213 if test -w "$cache_file"; then
10214 test "x$cache_file" != "x/dev/null" &&
10215 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10216 echo "$as_me: updating cache $cache_file" >&6;}
10217 cat confcache
>$cache_file
10219 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10220 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10225 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10226 # Let make expand exec_prefix.
10227 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10229 DEFS
=-DHAVE_CONFIG_H
10233 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10234 # 1. Remove the extension, and $U if already installed.
10235 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10236 ac_i
=`echo "$ac_i" | sed "$ac_script"`
10237 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10238 # will be set to the directory where LIBOBJS objects are built.
10239 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10240 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10242 LIBOBJS
=$ac_libobjs
10244 LTLIBOBJS
=$ac_ltlibobjs
10248 : ${CONFIG_STATUS=./config.status}
10249 ac_clean_files_save
=$ac_clean_files
10250 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10251 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10252 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10253 cat >$CONFIG_STATUS <<_ACEOF
10255 # Generated by $as_me.
10256 # Run this file to recreate the current configuration.
10257 # Compiler output produced by configure, useful for debugging
10258 # configure, is in config.log if it exists.
10261 ac_cs_recheck=false
10263 SHELL=\${CONFIG_SHELL-$SHELL}
10266 cat >>$CONFIG_STATUS <<\_ACEOF
10267 ## --------------------- ##
10268 ## M4sh Initialization. ##
10269 ## --------------------- ##
10271 # Be more Bourne compatible
10272 DUALCASE
=1; export DUALCASE
# for MKS sh
10273 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
10276 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10277 # is contrary to our usage. Disable this feature.
10278 alias -g '${1+"$@"}'='"$@"'
10279 setopt NO_GLOB_SUBST
10281 case `(set -o) 2>/dev/null` in
10282 *posix
*) set -o posix
;;
10291 # Avoid depending upon Character Ranges.
10292 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10293 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10294 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10295 as_cr_digits
='0123456789'
10296 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10298 # The user is always right.
10299 if test "${PATH_SEPARATOR+set}" != set; then
10300 echo "#! /bin/sh" >conf$$.sh
10301 echo "exit 0" >>conf$$.sh
10303 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10311 # Support unset when possible.
10312 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
10320 # We need space, tab and new line, in precisely that order. Quoting is
10321 # there to prevent editors from complaining about space-tab.
10322 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10323 # splitting by setting IFS to empty value.)
10328 # Find who we are. Look in the path if we contain no directory separator.
10330 *[\\/]* ) as_myself
=$0 ;;
10331 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10332 for as_dir
in $PATH
10335 test -z "$as_dir" && as_dir
=.
10336 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
10342 # We did not find ourselves, most probably we were run as `sh COMMAND'
10343 # in which case we are not to be found in the path.
10344 if test "x$as_myself" = x
; then
10347 if test ! -f "$as_myself"; then
10348 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10349 { (exit 1); exit 1; }
10352 # Work around bugs in pre-3.0 UWIN ksh.
10353 for as_var
in ENV MAIL MAILPATH
10354 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10362 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10363 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10364 LC_TELEPHONE LC_TIME
10366 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10367 eval $as_var=C
; export $as_var
10369 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10373 # Required to use basename.
10374 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10375 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10381 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10382 as_basename
=basename
10388 # Name of the executable.
10389 as_me
=`$as_basename -- "$0" ||
10390 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10391 X"$0" : 'X\(//\)$' \| \
10392 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10394 sed '/^.*\/\([^/][^/]*\)\/*$/{
10413 as_lineno_1
=$LINENO
10414 as_lineno_2
=$LINENO
10415 test "x$as_lineno_1" != "x$as_lineno_2" &&
10416 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
10418 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10419 # uniformly replaced by the line number. The first 'sed' inserts a
10420 # line-number line after each line using $LINENO; the second 'sed'
10421 # does the real work. The second script uses 'N' to pair each
10422 # line-number line with the line containing $LINENO, and appends
10423 # trailing '-' during substitution so that $LINENO is not a special
10424 # case at line end.
10425 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10426 # scripts with optimization help from Paolo Bonzini. Blame Lee
10427 # E. McMahon (1931-1989) for sed's syntax. :-)
10439 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10442 ' >$as_me.lineno
&&
10443 chmod +x
"$as_me.lineno" ||
10444 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10445 { (exit 1); exit 1; }; }
10447 # Don't try to exec as it changes $[0], causing all sort of problems
10448 # (the dirname of $[0] is not the place where we might find the
10449 # original and so on. Autoconf is especially sensitive to this).
10450 .
"./$as_me.lineno"
10451 # Exit status is that of the last command.
10456 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10462 ECHO_C
= ECHO_N
= ECHO_T
=
10463 case `echo -n x` in
10465 case `echo 'x\c'` in
10466 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10473 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10474 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10480 rm -f conf$$ conf$$.exe conf$$.
file
10481 if test -d conf$$.dir
; then
10482 rm -f conf$$.dir
/conf$$.
file
10488 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10490 # ... but there are two gotchas:
10491 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10492 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10493 # In both cases, we have to default to `cp -p'.
10494 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10496 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10501 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10502 rmdir conf$$.dir
2>/dev
/null
10504 if mkdir
-p .
2>/dev
/null
; then
10507 test -d .
/-p && rmdir .
/-p
10511 if test -x / >/dev
/null
2>&1; then
10512 as_test_x
='test -x'
10514 if ls -dL / >/dev
/null
2>&1; then
10521 if test -d "$1"; then
10527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10528 ???[sx]*):;;*)false;;esac;fi
10532 as_executable_p
=$as_test_x
10534 # Sed expression to map a string onto a valid CPP name.
10535 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10537 # Sed expression to map a string onto a valid variable name.
10538 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10543 # Save the log message, to keep $[0] and so on meaningful, and to
10544 # report actual input values of CONFIG_FILES etc. instead of their
10545 # values after options handling.
10547 This file was extended by $as_me, which was
10548 generated by GNU Autoconf 2.61. Invocation command line was
10550 CONFIG_FILES = $CONFIG_FILES
10551 CONFIG_HEADERS = $CONFIG_HEADERS
10552 CONFIG_LINKS = $CONFIG_LINKS
10553 CONFIG_COMMANDS = $CONFIG_COMMANDS
10556 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10561 cat >>$CONFIG_STATUS <<_ACEOF
10562 # Files that config.status was made for.
10563 config_files="$ac_config_files"
10564 config_headers="$ac_config_headers"
10568 cat >>$CONFIG_STATUS <<\_ACEOF
10570 \`$as_me' instantiates files from templates according to the
10571 current configuration.
10573 Usage: $0 [OPTIONS] [FILE]...
10575 -h, --help print this help, then exit
10576 -V, --version print version number and configuration settings, then exit
10577 -q, --quiet do not print progress messages
10578 -d, --debug don't remove temporary files
10579 --recheck update $as_me by reconfiguring in the same conditions
10580 --file=FILE[:TEMPLATE]
10581 instantiate the configuration file FILE
10582 --header=FILE[:TEMPLATE]
10583 instantiate the configuration header FILE
10585 Configuration files:
10588 Configuration headers:
10591 Report bugs to <bug-autoconf@gnu.org>."
10594 cat >>$CONFIG_STATUS <<_ACEOF
10597 configured by $0, generated by GNU Autoconf 2.61,
10598 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10600 Copyright (C) 2006 Free Software Foundation, Inc.
10601 This config.status script is free software; the Free Software Foundation
10602 gives unlimited permission to copy, distribute and modify it."
10608 cat >>$CONFIG_STATUS <<\_ACEOF
10609 # If no file are specified by the user, then we need to provide default
10610 # value. By we need to know if files were specified by the user.
10616 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10617 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10628 # Handling of the options.
10629 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10631 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10632 echo "$ac_cs_version"; exit ;;
10633 --debug |
--debu |
--deb |
--de |
--d |
-d )
10635 --file |
--fil |
--fi |
--f )
10637 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
10638 ac_need_defaults
=false
;;
10639 --header |
--heade |
--head |
--hea )
10641 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
10642 ac_need_defaults
=false
;;
10644 # Conflict between --help and --header
10645 { echo "$as_me: error: ambiguous option: $1
10646 Try \`$0 --help' for more information." >&2
10647 { (exit 1); exit 1; }; };;
10648 --help |
--hel |
-h )
10649 echo "$ac_cs_usage"; exit ;;
10650 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10651 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10654 # This is an error.
10655 -*) { echo "$as_me: error: unrecognized option: $1
10656 Try \`$0 --help' for more information." >&2
10657 { (exit 1); exit 1; }; } ;;
10659 *) ac_config_targets
="$ac_config_targets $1"
10660 ac_need_defaults
=false
;;
10666 ac_configure_extra_args
=
10668 if $ac_cs_silent; then
10670 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10674 cat >>$CONFIG_STATUS <<_ACEOF
10675 if \$ac_cs_recheck; then
10676 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10677 CONFIG_SHELL=$SHELL
10678 export CONFIG_SHELL
10679 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10683 cat >>$CONFIG_STATUS <<\_ACEOF
10687 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10688 ## Running $as_me. ##
10694 cat >>$CONFIG_STATUS <<_ACEOF
10697 cat >>$CONFIG_STATUS <<\_ACEOF
10699 # Handling of arguments.
10700 for ac_config_target
in $ac_config_targets
10702 case $ac_config_target in
10703 "src/System/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
10704 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile:Makefile.in" ;;
10705 "src/makefile") CONFIG_FILES
="$CONFIG_FILES src/makefile:src/makefile.in" ;;
10706 "src/System/tm_configure.hpp") CONFIG_FILES
="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
10707 "misc/admin/admin.makefile") CONFIG_FILES
="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
10708 "misc/doxygen/Doxyfile") CONFIG_FILES
="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
10709 "misc/man/texmacs.1") CONFIG_FILES
="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
10710 "misc/rpm/TeXmacs.spec") CONFIG_FILES
="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
10711 "misc/scripts/fig2ps") CONFIG_FILES
="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
10712 "misc/scripts/texmacs") CONFIG_FILES
="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
10713 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES
="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
10714 "misc/bundle/Base.xcconfig") CONFIG_FILES
="$CONFIG_FILES misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in" ;;
10716 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10717 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10718 { (exit 1); exit 1; }; };;
10723 # If the user did not use the arguments to specify the items to instantiate,
10724 # then the envvar interface is used. Set only those that are not.
10725 # We use the long form for the default assignment because of an extremely
10726 # bizarre bug on SunOS 4.1.3.
10727 if $ac_need_defaults; then
10728 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10729 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10732 # Have a temporary directory for convenience. Make it in the build tree
10733 # simply because there is no reason against having it here, and in addition,
10734 # creating and moving files from /tmp can sometimes cause problems.
10735 # Hook for its removal unless debugging.
10736 # Note that there is a small window in which the directory will not be cleaned:
10737 # after its creation but before its name has been assigned to `$tmp'.
10741 trap 'exit_status=$?
10742 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10744 trap '{ (exit 1); exit 1; }' 1 2 13 15
10746 # Create a (secure) tmp directory for tmp files.
10749 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10750 test -n "$tmp" && test -d "$tmp"
10753 tmp
=.
/conf$$
-$RANDOM
10754 (umask 077 && mkdir
"$tmp")
10757 echo "$me: cannot create a temporary directory in ." >&2
10758 { (exit 1); exit 1; }
10762 # Set up the sed scripts for CONFIG_FILES section.
10765 # No need to generate the scripts if there are no CONFIG_FILES.
10766 # This happens for instance when ./config.status config.h
10767 if test -n "$CONFIG_FILES"; then
10774 for ac_last_try
in false false false false false
:; do
10775 cat >conf$
$subs.
sed <<_ACEOF
10776 SHELL!$SHELL$ac_delim
10777 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10778 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10779 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10780 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10781 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10782 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10783 exec_prefix!$exec_prefix$ac_delim
10784 prefix!$prefix$ac_delim
10785 program_transform_name!$program_transform_name$ac_delim
10786 bindir!$bindir$ac_delim
10787 sbindir!$sbindir$ac_delim
10788 libexecdir!$libexecdir$ac_delim
10789 datarootdir!$datarootdir$ac_delim
10790 datadir!$datadir$ac_delim
10791 sysconfdir!$sysconfdir$ac_delim
10792 sharedstatedir!$sharedstatedir$ac_delim
10793 localstatedir!$localstatedir$ac_delim
10794 includedir!$includedir$ac_delim
10795 oldincludedir!$oldincludedir$ac_delim
10796 docdir!$docdir$ac_delim
10797 infodir!$infodir$ac_delim
10798 htmldir!$htmldir$ac_delim
10799 dvidir!$dvidir$ac_delim
10800 pdfdir!$pdfdir$ac_delim
10801 psdir!$psdir$ac_delim
10802 libdir!$libdir$ac_delim
10803 localedir!$localedir$ac_delim
10804 mandir!$mandir$ac_delim
10805 DEFS!$DEFS$ac_delim
10806 ECHO_C!$ECHO_C$ac_delim
10807 ECHO_N!$ECHO_N$ac_delim
10808 ECHO_T!$ECHO_T$ac_delim
10809 LIBS!$LIBS$ac_delim
10810 build_alias!$build_alias$ac_delim
10811 host_alias!$host_alias$ac_delim
10812 target_alias!$target_alias$ac_delim
10813 build!$build$ac_delim
10814 build_cpu!$build_cpu$ac_delim
10815 build_vendor!$build_vendor$ac_delim
10816 build_os!$build_os$ac_delim
10817 host!$host$ac_delim
10818 host_cpu!$host_cpu$ac_delim
10819 host_vendor!$host_vendor$ac_delim
10820 host_os!$host_os$ac_delim
10821 PACKAGE!$PACKAGE$ac_delim
10822 DEVEL_VERSION!$DEVEL_VERSION$ac_delim
10823 DEVEL_RELEASE!$DEVEL_RELEASE$ac_delim
10824 STABLE_VERSION!$STABLE_VERSION$ac_delim
10825 STABLE_RELEASE!$STABLE_RELEASE$ac_delim
10827 CFLAGS!$CFLAGS$ac_delim
10828 LDFLAGS!$LDFLAGS$ac_delim
10829 CPPFLAGS!$CPPFLAGS$ac_delim
10830 ac_ct_CC!$ac_ct_CC$ac_delim
10831 EXEEXT!$EXEEXT$ac_delim
10832 OBJEXT!$OBJEXT$ac_delim
10834 CXXFLAGS!$CXXFLAGS$ac_delim
10835 ac_ct_CXX!$ac_ct_CXX$ac_delim
10836 GUILE_CFLAGS!$GUILE_CFLAGS$ac_delim
10837 GUILE_LDFLAGS!$GUILE_LDFLAGS$ac_delim
10838 CONFIG_GUILE_SERIAL!$CONFIG_GUILE_SERIAL$ac_delim
10839 CXXCPP!$CXXCPP$ac_delim
10840 GREP!$GREP$ac_delim
10841 EGREP!$EGREP$ac_delim
10842 XMKMF!$XMKMF$ac_delim
10843 X_CFLAGS!$X_CFLAGS$ac_delim
10844 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
10845 X_LIBS!$X_LIBS$ac_delim
10846 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
10847 CONFIG_BDL!$CONFIG_BDL$ac_delim
10849 ICONV_CFLAGS!$ICONV_CFLAGS$ac_delim
10850 ICONV_LDFLAGS!$ICONV_LDFLAGS$ac_delim
10851 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
10852 FREETYPE_LDFLAGS!$FREETYPE_LDFLAGS$ac_delim
10853 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
10854 CAIRO_LDFLAGS!$CAIRO_LDFLAGS$ac_delim
10855 IMLIB2_CFLAGS!$IMLIB2_CFLAGS$ac_delim
10856 IMLIB2_LDFLAGS!$IMLIB2_LDFLAGS$ac_delim
10857 AXEL_CFLAGS!$AXEL_CFLAGS$ac_delim
10858 AXEL_LDFLAGS!$AXEL_LDFLAGS$ac_delim
10859 HAS_GS_EXE!$HAS_GS_EXE$ac_delim
10860 HAS_GS_LIB!$HAS_GS_LIB$ac_delim
10861 CONFIG_GS!$CONFIG_GS$ac_delim
10862 GS_EXE!$GS_EXE$ac_delim
10863 GS_DLL!$GS_DLL$ac_delim
10864 CONFIG_EXPERIMENTAL!$CONFIG_EXPERIMENTAL$ac_delim
10865 CONFIG_MACOS!$CONFIG_MACOS$ac_delim
10866 CONFIG_PDF!$CONFIG_PDF$ac_delim
10867 QMAKE!$QMAKE$ac_delim
10871 QT_PATH!$QT_PATH$ac_delim
10872 TMPDIR!$TMPDIR$ac_delim
10875 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10877 elif $ac_last_try; then
10878 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10879 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10880 { (exit 1); exit 1; }; }
10882 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
10886 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10887 if test -n "$ac_eof"; then
10888 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
10889 ac_eof
=`expr $ac_eof + 1`
10892 cat >>$CONFIG_STATUS <<_ACEOF
10893 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10894 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10897 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10898 s/^/s,@/; s/!/@,|#_!!_#|/
10901 s/'"$ac_delim"'$/,g/; t
10903 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10904 ' >>$CONFIG_STATUS <conf$
$subs.
sed
10905 rm -f conf$
$subs.
sed
10906 cat >>$CONFIG_STATUS <<_ACEOF
10912 for ac_last_try
in false false false false false
:; do
10913 cat >conf$
$subs.
sed <<_ACEOF
10914 QT_VERSION_MAJOR!$QT_VERSION_MAJOR$ac_delim
10915 QT_DEFINES!$QT_DEFINES$ac_delim
10916 QT_CFLAGS!$QT_CFLAGS$ac_delim
10917 QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
10918 QT_INCPATH!$QT_INCPATH$ac_delim
10919 QT_CPPFLAGS!$QT_CPPFLAGS$ac_delim
10920 QT_LDFLAGS!$QT_LDFLAGS$ac_delim
10921 QT_LFLAGS!$QT_LFLAGS$ac_delim
10922 QT_LIBS!$QT_LIBS$ac_delim
10923 X11_CFLAGS!$X11_CFLAGS$ac_delim
10924 X11_LDFLAGS!$X11_LDFLAGS$ac_delim
10925 COCOA_CFLAGS!$COCOA_CFLAGS$ac_delim
10926 COCOA_LDFLAGS!$COCOA_LDFLAGS$ac_delim
10927 CONFIG_X11!$CONFIG_X11$ac_delim
10928 CONFIG_COCOA!$CONFIG_COCOA$ac_delim
10929 CONFIG_QT!$CONFIG_QT$ac_delim
10930 CONFIG_GUI!$CONFIG_GUI$ac_delim
10931 CONFIG_GUI_DEFINE!$CONFIG_GUI_DEFINE$ac_delim
10932 CONFIG_CXXDIALECT!$CONFIG_CXXDIALECT$ac_delim
10933 CONFIG_OS!$CONFIG_OS$ac_delim
10934 CONFIG_OS_SUFFIX!$CONFIG_OS_SUFFIX$ac_delim
10935 CONFIG_OS_COMPAT!$CONFIG_OS_COMPAT$ac_delim
10936 CONFIG_CXXWARNING!$CONFIG_CXXWARNING$ac_delim
10937 CONFIG_CXXTEMPLATE!$CONFIG_CXXTEMPLATE$ac_delim
10938 CONFIG_CXXOPTIMIZE!$CONFIG_CXXOPTIMIZE$ac_delim
10939 CONFIG_CXXDEBUG!$CONFIG_CXXDEBUG$ac_delim
10940 CONFIG_BFLAGS!$CONFIG_BFLAGS$ac_delim
10941 CONFIG_BSTATIC!$CONFIG_BSTATIC$ac_delim
10942 CONFIG_BSHARED!$CONFIG_BSHARED$ac_delim
10943 CONFIG_BPATH!$CONFIG_BPATH$ac_delim
10944 CONFIG_WORD_LENGTH!$CONFIG_WORD_LENGTH$ac_delim
10945 CONFIG_WORD_LENGTH_INC!$CONFIG_WORD_LENGTH_INC$ac_delim
10946 CONFIG_WORD_MASK!$CONFIG_WORD_MASK$ac_delim
10947 CONFIG_MAX_FAST!$CONFIG_MAX_FAST$ac_delim
10948 CONFIG_CXXFLAGS!$CONFIG_CXXFLAGS$ac_delim
10949 CONFIG_STD_SETENV!$CONFIG_STD_SETENV$ac_delim
10950 CONFIG_SO!$CONFIG_SO$ac_delim
10951 CONFIG_LIB_PATH!$CONFIG_LIB_PATH$ac_delim
10952 CONFIG_STRIP!$CONFIG_STRIP$ac_delim
10953 CONFIG_CHMOD!$CONFIG_CHMOD$ac_delim
10954 CONFIG_LDRT!$CONFIG_LDRT$ac_delim
10955 CONFIG_NATIVE_ARCH_TAG!$CONFIG_NATIVE_ARCH_TAG$ac_delim
10956 tmorig!$tmorig$ac_delim
10957 tmdir!$tmdir$ac_delim
10958 tmsrc!$tmsrc$ac_delim
10959 tmbin!$tmbin$ac_delim
10960 tmdata!$tmdata$ac_delim
10961 tmtgz!$tmtgz$ac_delim
10962 tmrpm!$tmrpm$ac_delim
10963 tmstgz!$tmstgz$ac_delim
10964 tmsrpm!$tmsrpm$ac_delim
10965 tmwin!$tmwin$ac_delim
10966 LIBOBJS!$LIBOBJS$ac_delim
10967 LTLIBOBJS!$LTLIBOBJS$ac_delim
10970 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
10972 elif $ac_last_try; then
10973 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10974 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10975 { (exit 1); exit 1; }; }
10977 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
10981 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10982 if test -n "$ac_eof"; then
10983 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
10984 ac_eof
=`expr $ac_eof + 1`
10987 cat >>$CONFIG_STATUS <<_ACEOF
10988 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10989 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10992 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10993 s/^/s,@/; s/!/@,|#_!!_#|/
10996 s/'"$ac_delim"'$/,g/; t
10998 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10999 ' >>$CONFIG_STATUS <conf$
$subs.
sed
11000 rm -f conf$
$subs.
sed
11001 cat >>$CONFIG_STATUS <<_ACEOF
11008 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11009 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11010 # trailing colons and then remove the whole line if VPATH becomes empty
11011 # (actually we leave an empty line to preserve line numbers).
11012 if test "x$srcdir" = x.
; then
11013 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
11014 s/:*\$(srcdir):*/:/
11015 s/:*\${srcdir}:*/:/
11017 s/^\([^=]*=[ ]*\):*/\1/
11023 cat >>$CONFIG_STATUS <<\_ACEOF
11024 fi # test -n "$CONFIG_FILES"
11027 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
11030 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11032 case $ac_mode$ac_tag in
11034 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11035 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11036 { (exit 1); exit 1; }; };;
11037 :[FH
]-) ac_tag
=-:-;;
11038 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11055 -) ac_f
="$tmp/stdin";;
11056 *) # Look for the file first in the build tree, then in the source tree
11057 # (if the path is not absolute). The absolute path cannot be DOS-style,
11058 # because $ac_f cannot contain `:'.
11062 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11064 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11065 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11066 { (exit 1); exit 1; }; };;
11068 ac_file_inputs
="$ac_file_inputs $ac_f"
11071 # Let's still pretend it is `configure' which instantiates (i.e., don't
11072 # use $as_me), people would be surprised to read:
11073 # /* config.h. Generated by config.status. */
11074 configure_input
="Generated from "`IFS=:
11075 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11076 if test x
"$ac_file" != x-
; then
11077 configure_input
="$ac_file. $configure_input"
11078 { echo "$as_me:$LINENO: creating $ac_file" >&5
11079 echo "$as_me: creating $ac_file" >&6;}
11083 *:-:* |
*:-) cat >"$tmp/stdin";;
11088 ac_dir
=`$as_dirname -- "$ac_file" ||
11089 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11090 X"$ac_file" : 'X\(//\)[^/]' \| \
11091 X"$ac_file" : 'X\(//\)$' \| \
11092 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11098 /^X\(\/\/\)[^/].*/{
11113 -*) as_dir
=.
/$as_dir;;
11115 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
11119 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11120 *) as_qdir
=$as_dir;;
11122 as_dirs
="'$as_qdir' $as_dirs"
11123 as_dir
=`$as_dirname -- "$as_dir" ||
11124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11125 X"$as_dir" : 'X\(//\)[^/]' \| \
11126 X"$as_dir" : 'X\(//\)$' \| \
11127 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11133 /^X\(\/\/\)[^/].*/{
11146 test -d "$as_dir" && break
11148 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11149 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11150 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11151 { (exit 1); exit 1; }; }; }
11155 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11157 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11158 # A ".." for each directory in $ac_dir_suffix.
11159 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11160 case $ac_top_builddir_sub in
11161 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11162 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11165 ac_abs_top_builddir
=$ac_pwd
11166 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11167 # for backward compatibility:
11168 ac_top_builddir
=$ac_top_build_prefix
11171 .
) # We are building in place.
11173 ac_top_srcdir
=$ac_top_builddir_sub
11174 ac_abs_top_srcdir
=$ac_pwd ;;
11175 [\\/]* | ?
:[\\/]* ) # Absolute name.
11176 ac_srcdir
=$srcdir$ac_dir_suffix;
11177 ac_top_srcdir
=$srcdir
11178 ac_abs_top_srcdir
=$srcdir ;;
11179 *) # Relative name.
11180 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11181 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11182 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11184 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11195 cat >>$CONFIG_STATUS <<\_ACEOF
11196 # If the template does not know about datarootdir, expand it.
11197 # FIXME: This hack should be removed a few years after 2.60.
11198 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11200 case `sed -n '/datarootdir/ {
11209 ' $ac_file_inputs` in
11210 *datarootdir
*) ac_datarootdir_seen
=yes;;
11211 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11212 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11213 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11215 cat >>$CONFIG_STATUS <<_ACEOF
11216 ac_datarootdir_hack='
11217 s&@datadir@&$datadir&g
11218 s&@docdir@&$docdir&g
11219 s&@infodir@&$infodir&g
11220 s&@localedir@&$localedir&g
11221 s&@mandir@&$mandir&g
11222 s&\\\${datarootdir}&$datarootdir&g' ;;
11226 # Neutralize VPATH when `$srcdir' = `.'.
11227 # Shell code in configure.ac might set extrasub.
11228 # FIXME: do we really want to maintain this feature?
11229 cat >>$CONFIG_STATUS <<_ACEOF
11233 cat >>$CONFIG_STATUS <<\_ACEOF
11235 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11236 s
&@configure_input@
&$configure_input&;t t
11237 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11238 s
&@srcdir@
&$ac_srcdir&;t t
11239 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11240 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11241 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11242 s
&@builddir@
&$ac_builddir&;t t
11243 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11244 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11245 $ac_datarootdir_hack
11246 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
11248 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11249 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
11250 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
11251 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11252 which seems to be undefined. Please make sure it is defined." >&5
11253 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11254 which seems to be undefined. Please make sure it is defined." >&2;}
11258 -) cat "$tmp/out"; rm -f "$tmp/out";;
11259 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11268 # Transform confdefs.h into a sed script `conftest.defines', that
11269 # substitutes the proper values into config.h.in to produce config.h.
11270 rm -f conftest.defines conftest.
tail
11271 # First, append a space to every undef/define line, to ease matching.
11272 echo 's/$/ /' >conftest.defines
11273 # Then, protect against being on the right side of a sed subst, or in
11274 # an unquoted here document, in config.status. If some macros were
11275 # called several times there might be several #defines for the same
11276 # symbol, which is useless. But do not sort them, since the last
11277 # AC_DEFINE must be honored.
11278 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
11279 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11280 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11281 # PARAMS is the parameter list in the macro definition--in most cases, it's
11282 # just an empty string.
11283 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11284 ac_dB
='\\)[ (].*,\\1define\\2'
11292 s/^[ ]*#[ ]*define[ ][ ]*//
11297 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11298 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11299 ' >>conftest.defines
11301 # Remove the space that was appended to ease matching.
11302 # Then replace #undef with comments. This is necessary, for
11303 # example, in the case of _POSIX_SOURCE, which is predefined and required
11304 # on some systems where configure will not decide to define it.
11305 # (The regexp can be short, since the line contains either #define or #undef.)
11307 s,^[ #]*u.*,/* & */,' >>conftest.defines
11309 # Break up conftest.defines:
11310 ac_max_sed_lines
=50
11312 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11313 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11314 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11316 ac_in
='$ac_file_inputs'
11317 ac_out
='"$tmp/out1"'
11318 ac_nxt
='"$tmp/out2"'
11322 # Write a here document:
11323 cat >>$CONFIG_STATUS <<_ACEOF
11324 # First, check the format of the line:
11325 cat >"\$tmp/defines.sed" <<\\CEOF
11326 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11327 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11331 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
11333 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11334 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
11335 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
11336 grep . conftest.
tail >/dev
/null ||
break
11337 rm -f conftest.defines
11338 mv conftest.
tail conftest.defines
11340 rm -f conftest.defines conftest.
tail
11342 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11343 cat >>$CONFIG_STATUS <<\_ACEOF
11344 if test x
"$ac_file" != x-
; then
11345 echo "/* $configure_input */" >"$tmp/config.h"
11346 cat "$ac_result" >>"$tmp/config.h"
11347 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
11348 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11349 echo "$as_me: $ac_file is unchanged" >&6;}
11352 mv "$tmp/config.h" $ac_file
11355 echo "/* $configure_input */"
11367 { (exit 0); exit 0; }
11369 chmod +x
$CONFIG_STATUS
11370 ac_clean_files
=$ac_clean_files_save
11373 # configure is writing to config.log, and then calls config.status.
11374 # config.status does its own redirection, appending to config.log.
11375 # Unfortunately, on DOS this fails, as config.log is still kept open
11376 # by configure, so config.status won't be able to write to it; its
11377 # output is simply discarded. So we exec the FD to /dev/null,
11378 # effectively closing config.log, so it can be properly (re)opened and
11379 # appended to by config.status. When coming back to configure, we
11380 # need to make the FD available again.
11381 if test "$no_create" != yes; then
11383 ac_config_status_args
=
11384 test "$silent" = yes &&
11385 ac_config_status_args
="$ac_config_status_args --quiet"
11387 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11389 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11390 # would make configure fail if this is the last instruction.
11391 $ac_cs_success ||
{ (exit 1); exit 1; }