New configure file
[texmacs.git] / src / configure
blobdc414c815e410c6727f941fa79551c97bf9327d6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
615 ac_subst_vars='SHELL
616 PATH_SEPARATOR
617 PACKAGE_NAME
618 PACKAGE_TARNAME
619 PACKAGE_VERSION
620 PACKAGE_STRING
621 PACKAGE_BUGREPORT
622 exec_prefix
623 prefix
624 program_transform_name
625 bindir
626 sbindir
627 libexecdir
628 datarootdir
629 datadir
630 sysconfdir
631 sharedstatedir
632 localstatedir
633 includedir
634 oldincludedir
635 docdir
636 infodir
637 htmldir
638 dvidir
639 pdfdir
640 psdir
641 libdir
642 localedir
643 mandir
644 DEFS
645 ECHO_C
646 ECHO_N
647 ECHO_T
648 LIBS
649 build_alias
650 host_alias
651 target_alias
652 PACKAGE
653 DEVEL_VERSION
654 DEVEL_RELEASE
655 STABLE_VERSION
656 STABLE_RELEASE
658 CFLAGS
659 LDFLAGS
660 CPPFLAGS
661 ac_ct_CC
662 EXEEXT
663 OBJEXT
665 CXXFLAGS
666 ac_ct_CXX
667 GUILE_CFLAGS
668 GUILE_LDFLAGS
669 CONFIG_GUILE_SERIAL
670 CXXCPP
671 GREP
672 EGREP
673 XMKMF
674 X_CFLAGS
675 X_PRE_LIBS
676 X_LIBS
677 X_EXTRA_LIBS
678 CONFIG_BDL
680 ICONV_CFLAGS
681 ICONV_LDFLAGS
682 FREETYPE_CFLAGS
683 FREETYPE_LDFLAGS
684 CAIRO_CFLAGS
685 CAIRO_LDFLAGS
686 IMLIB2_CFLAGS
687 IMLIB2_LDFLAGS
688 AXEL_CFLAGS
689 AXEL_LDFLAGS
690 build
691 build_cpu
692 build_vendor
693 build_os
694 host
695 host_cpu
696 host_vendor
697 host_os
698 CONFIG_EXPERIMENTAL
699 CONFIG_MACOS
700 QMAKE
704 QT_PATH
705 TMPDIR
706 QT_VERSION_MAJOR
707 QT_DEFINES
708 QT_CFLAGS
709 QT_CXXFLAGS
710 QT_INCPATH
711 QT_CPPFLAGS
712 QT_LDFLAGS
713 QT_LFLAGS
714 QT_LIBS
715 X11_CFLAGS
716 X11_LDFLAGS
717 COCOA_CFLAGS
718 COCOA_LDFLAGS
719 CONFIG_X11
720 CONFIG_COCOA
721 CONFIG_QT
722 CONFIG_GUI
723 CONFIG_CXXDIALECT
724 CONFIG_OS
725 CONFIG_OS_SUFFIX
726 CONFIG_CXXWARNING
727 CONFIG_CXXTEMPLATE
728 CONFIG_CXXOPTIMIZE
729 CONFIG_CXXDEBUG
730 CONFIG_BFLAGS
731 CONFIG_BSTATIC
732 CONFIG_BSHARED
733 CONFIG_BPATH
734 CONFIG_WORD_LENGTH
735 CONFIG_WORD_LENGTH_INC
736 CONFIG_WORD_MASK
737 CONFIG_MAX_FAST
738 CONFIG_CXXFLAGS
739 CONFIG_STD_SETENV
740 CONFIG_SO
741 CONFIG_LIB_PATH
742 CONFIG_STRIP
743 CONFIG_CHMOD
744 LDRT
745 tmorig
746 tmdir
747 tmsrc
748 tmbin
749 tmdata
750 tmtgz
751 tmrpm
752 tmstgz
753 tmsrpm
754 tmwin
755 LIBOBJS
756 LTLIBOBJS'
757 ac_subst_files=''
758 ac_precious_vars='build_alias
759 host_alias
760 target_alias
762 CFLAGS
763 LDFLAGS
764 LIBS
765 CPPFLAGS
767 CXXFLAGS
769 CXXCPP
770 XMKMF
772 TMPDIR'
775 # Initialize some variables set by options.
776 ac_init_help=
777 ac_init_version=false
778 # The variables have the same names as the options, with
779 # dashes changed to underlines.
780 cache_file=/dev/null
781 exec_prefix=NONE
782 no_create=
783 no_recursion=
784 prefix=NONE
785 program_prefix=NONE
786 program_suffix=NONE
787 program_transform_name=s,x,x,
788 silent=
789 site=
790 srcdir=
791 verbose=
792 x_includes=NONE
793 x_libraries=NONE
795 # Installation directory options.
796 # These are left unexpanded so users can "make install exec_prefix=/foo"
797 # and all the variables that are supposed to be based on exec_prefix
798 # by default will actually change.
799 # Use braces instead of parens because sh, perl, etc. also accept them.
800 # (The list follows the same order as the GNU Coding Standards.)
801 bindir='${exec_prefix}/bin'
802 sbindir='${exec_prefix}/sbin'
803 libexecdir='${exec_prefix}/libexec'
804 datarootdir='${prefix}/share'
805 datadir='${datarootdir}'
806 sysconfdir='${prefix}/etc'
807 sharedstatedir='${prefix}/com'
808 localstatedir='${prefix}/var'
809 includedir='${prefix}/include'
810 oldincludedir='/usr/include'
811 docdir='${datarootdir}/doc/${PACKAGE}'
812 infodir='${datarootdir}/info'
813 htmldir='${docdir}'
814 dvidir='${docdir}'
815 pdfdir='${docdir}'
816 psdir='${docdir}'
817 libdir='${exec_prefix}/lib'
818 localedir='${datarootdir}/locale'
819 mandir='${datarootdir}/man'
821 ac_prev=
822 ac_dashdash=
823 for ac_option
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\$ac_option
828 ac_prev=
829 continue
832 case $ac_option in
833 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834 *) ac_optarg=yes ;;
835 esac
837 # Accept the important Cygnus configure options, so we can diagnose typos.
839 case $ac_dashdash$ac_option in
841 ac_dashdash=yes ;;
843 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 ac_prev=bindir ;;
845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846 bindir=$ac_optarg ;;
848 -build | --build | --buil | --bui | --bu)
849 ac_prev=build_alias ;;
850 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851 build_alias=$ac_optarg ;;
853 -cache-file | --cache-file | --cache-fil | --cache-fi \
854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855 ac_prev=cache_file ;;
856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858 cache_file=$ac_optarg ;;
860 --config-cache | -C)
861 cache_file=config.cache ;;
863 -datadir | --datadir | --datadi | --datad)
864 ac_prev=datadir ;;
865 -datadir=* | --datadir=* | --datadi=* | --datad=*)
866 datadir=$ac_optarg ;;
868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869 | --dataroo | --dataro | --datar)
870 ac_prev=datarootdir ;;
871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873 datarootdir=$ac_optarg ;;
875 -disable-* | --disable-*)
876 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
879 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
880 { (exit 1); exit 1; }; }
881 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
882 eval enable_$ac_feature=no ;;
884 -docdir | --docdir | --docdi | --doc | --do)
885 ac_prev=docdir ;;
886 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
887 docdir=$ac_optarg ;;
889 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
890 ac_prev=dvidir ;;
891 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
892 dvidir=$ac_optarg ;;
894 -enable-* | --enable-*)
895 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
898 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
899 { (exit 1); exit 1; }; }
900 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
901 eval enable_$ac_feature=\$ac_optarg ;;
903 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905 | --exec | --exe | --ex)
906 ac_prev=exec_prefix ;;
907 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909 | --exec=* | --exe=* | --ex=*)
910 exec_prefix=$ac_optarg ;;
912 -gas | --gas | --ga | --g)
913 # Obsolete; use --with-gas.
914 with_gas=yes ;;
916 -help | --help | --hel | --he | -h)
917 ac_init_help=long ;;
918 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919 ac_init_help=recursive ;;
920 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921 ac_init_help=short ;;
923 -host | --host | --hos | --ho)
924 ac_prev=host_alias ;;
925 -host=* | --host=* | --hos=* | --ho=*)
926 host_alias=$ac_optarg ;;
928 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929 ac_prev=htmldir ;;
930 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931 | --ht=*)
932 htmldir=$ac_optarg ;;
934 -includedir | --includedir | --includedi | --included | --include \
935 | --includ | --inclu | --incl | --inc)
936 ac_prev=includedir ;;
937 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938 | --includ=* | --inclu=* | --incl=* | --inc=*)
939 includedir=$ac_optarg ;;
941 -infodir | --infodir | --infodi | --infod | --info | --inf)
942 ac_prev=infodir ;;
943 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944 infodir=$ac_optarg ;;
946 -libdir | --libdir | --libdi | --libd)
947 ac_prev=libdir ;;
948 -libdir=* | --libdir=* | --libdi=* | --libd=*)
949 libdir=$ac_optarg ;;
951 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952 | --libexe | --libex | --libe)
953 ac_prev=libexecdir ;;
954 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955 | --libexe=* | --libex=* | --libe=*)
956 libexecdir=$ac_optarg ;;
958 -localedir | --localedir | --localedi | --localed | --locale)
959 ac_prev=localedir ;;
960 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961 localedir=$ac_optarg ;;
963 -localstatedir | --localstatedir | --localstatedi | --localstated \
964 | --localstate | --localstat | --localsta | --localst | --locals)
965 ac_prev=localstatedir ;;
966 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968 localstatedir=$ac_optarg ;;
970 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971 ac_prev=mandir ;;
972 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973 mandir=$ac_optarg ;;
975 -nfp | --nfp | --nf)
976 # Obsolete; use --without-fp.
977 with_fp=no ;;
979 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980 | --no-cr | --no-c | -n)
981 no_create=yes ;;
983 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985 no_recursion=yes ;;
987 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989 | --oldin | --oldi | --old | --ol | --o)
990 ac_prev=oldincludedir ;;
991 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994 oldincludedir=$ac_optarg ;;
996 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997 ac_prev=prefix ;;
998 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999 prefix=$ac_optarg ;;
1001 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002 | --program-pre | --program-pr | --program-p)
1003 ac_prev=program_prefix ;;
1004 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006 program_prefix=$ac_optarg ;;
1008 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009 | --program-suf | --program-su | --program-s)
1010 ac_prev=program_suffix ;;
1011 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013 program_suffix=$ac_optarg ;;
1015 -program-transform-name | --program-transform-name \
1016 | --program-transform-nam | --program-transform-na \
1017 | --program-transform-n | --program-transform- \
1018 | --program-transform | --program-transfor \
1019 | --program-transfo | --program-transf \
1020 | --program-trans | --program-tran \
1021 | --progr-tra | --program-tr | --program-t)
1022 ac_prev=program_transform_name ;;
1023 -program-transform-name=* | --program-transform-name=* \
1024 | --program-transform-nam=* | --program-transform-na=* \
1025 | --program-transform-n=* | --program-transform-=* \
1026 | --program-transform=* | --program-transfor=* \
1027 | --program-transfo=* | --program-transf=* \
1028 | --program-trans=* | --program-tran=* \
1029 | --progr-tra=* | --program-tr=* | --program-t=*)
1030 program_transform_name=$ac_optarg ;;
1032 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033 ac_prev=pdfdir ;;
1034 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035 pdfdir=$ac_optarg ;;
1037 -psdir | --psdir | --psdi | --psd | --ps)
1038 ac_prev=psdir ;;
1039 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040 psdir=$ac_optarg ;;
1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043 | -silent | --silent | --silen | --sile | --sil)
1044 silent=yes ;;
1046 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047 ac_prev=sbindir ;;
1048 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049 | --sbi=* | --sb=*)
1050 sbindir=$ac_optarg ;;
1052 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054 | --sharedst | --shareds | --shared | --share | --shar \
1055 | --sha | --sh)
1056 ac_prev=sharedstatedir ;;
1057 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060 | --sha=* | --sh=*)
1061 sharedstatedir=$ac_optarg ;;
1063 -site | --site | --sit)
1064 ac_prev=site ;;
1065 -site=* | --site=* | --sit=*)
1066 site=$ac_optarg ;;
1068 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069 ac_prev=srcdir ;;
1070 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071 srcdir=$ac_optarg ;;
1073 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074 | --syscon | --sysco | --sysc | --sys | --sy)
1075 ac_prev=sysconfdir ;;
1076 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078 sysconfdir=$ac_optarg ;;
1080 -target | --target | --targe | --targ | --tar | --ta | --t)
1081 ac_prev=target_alias ;;
1082 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083 target_alias=$ac_optarg ;;
1085 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086 verbose=yes ;;
1088 -version | --version | --versio | --versi | --vers | -V)
1089 ac_init_version=: ;;
1091 -with-* | --with-*)
1092 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1095 { echo "$as_me: error: invalid package name: $ac_package" >&2
1096 { (exit 1); exit 1; }; }
1097 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1098 eval with_$ac_package=\$ac_optarg ;;
1100 -without-* | --without-*)
1101 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1109 --x)
1110 # Obsolete; use --with-x.
1111 with_x=yes ;;
1113 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1114 | --x-incl | --x-inc | --x-in | --x-i)
1115 ac_prev=x_includes ;;
1116 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1117 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1118 x_includes=$ac_optarg ;;
1120 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1121 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1122 ac_prev=x_libraries ;;
1123 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1124 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1125 x_libraries=$ac_optarg ;;
1127 -*) { echo "$as_me: error: unrecognized option: $ac_option
1128 Try \`$0 --help' for more information." >&2
1129 { (exit 1); exit 1; }; }
1132 *=*)
1133 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1136 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1137 { (exit 1); exit 1; }; }
1138 eval $ac_envvar=\$ac_optarg
1139 export $ac_envvar ;;
1142 # FIXME: should be removed in autoconf 3.0.
1143 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1144 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1145 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1146 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1149 esac
1150 done
1152 if test -n "$ac_prev"; then
1153 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1154 { echo "$as_me: error: missing argument to $ac_option" >&2
1155 { (exit 1); exit 1; }; }
1158 # Be sure to have absolute directory names.
1159 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1160 datadir sysconfdir sharedstatedir localstatedir includedir \
1161 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1162 libdir localedir mandir
1164 eval ac_val=\$$ac_var
1165 case $ac_val in
1166 [\\/$]* | ?:[\\/]* ) continue;;
1167 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1168 esac
1169 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1170 { (exit 1); exit 1; }; }
1171 done
1173 # There might be people who depend on the old broken behavior: `$host'
1174 # used to hold the argument of --host etc.
1175 # FIXME: To remove some day.
1176 build=$build_alias
1177 host=$host_alias
1178 target=$target_alias
1180 # FIXME: To remove some day.
1181 if test "x$host_alias" != x; then
1182 if test "x$build_alias" = x; then
1183 cross_compiling=maybe
1184 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1185 If a cross compiler is detected then cross compile mode will be used." >&2
1186 elif test "x$build_alias" != "x$host_alias"; then
1187 cross_compiling=yes
1191 ac_tool_prefix=
1192 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1194 test "$silent" = yes && exec 6>/dev/null
1197 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1198 ac_ls_di=`ls -di .` &&
1199 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1200 { echo "$as_me: error: Working directory cannot be determined" >&2
1201 { (exit 1); exit 1; }; }
1202 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1203 { echo "$as_me: error: pwd does not report name of working directory" >&2
1204 { (exit 1); exit 1; }; }
1207 # Find the source files, if location was not specified.
1208 if test -z "$srcdir"; then
1209 ac_srcdir_defaulted=yes
1210 # Try the directory containing this script, then the parent directory.
1211 ac_confdir=`$as_dirname -- "$0" ||
1212 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1213 X"$0" : 'X\(//\)[^/]' \| \
1214 X"$0" : 'X\(//\)$' \| \
1215 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1216 echo X"$0" |
1217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1218 s//\1/
1221 /^X\(\/\/\)[^/].*/{
1222 s//\1/
1225 /^X\(\/\/\)$/{
1226 s//\1/
1229 /^X\(\/\).*/{
1230 s//\1/
1233 s/.*/./; q'`
1234 srcdir=$ac_confdir
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1236 srcdir=..
1238 else
1239 ac_srcdir_defaulted=no
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1243 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1244 { (exit 1); exit 1; }; }
1246 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1247 ac_abs_confdir=`(
1248 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1249 { (exit 1); exit 1; }; }
1250 pwd)`
1251 # When building in place, set srcdir=.
1252 if test "$ac_abs_confdir" = "$ac_pwd"; then
1253 srcdir=.
1255 # Remove unnecessary trailing slashes from srcdir.
1256 # Double slashes in file names in object file debugging info
1257 # mess up M-x gdb in Emacs.
1258 case $srcdir in
1259 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1260 esac
1261 for ac_var in $ac_precious_vars; do
1262 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1263 eval ac_env_${ac_var}_value=\$${ac_var}
1264 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1265 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1266 done
1269 # Report the --help message.
1271 if test "$ac_init_help" = "long"; then
1272 # Omit some internal or obsolete options to make the list less imposing.
1273 # This message is too long to be a string in the A/UX 3.1 sh.
1274 cat <<_ACEOF
1275 \`configure' configures this package to adapt to many kinds of systems.
1277 Usage: $0 [OPTION]... [VAR=VALUE]...
1279 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1280 VAR=VALUE. See below for descriptions of some of the useful variables.
1282 Defaults for the options are specified in brackets.
1284 Configuration:
1285 -h, --help display this help and exit
1286 --help=short display options specific to this package
1287 --help=recursive display the short help of all the included packages
1288 -V, --version display version information and exit
1289 -q, --quiet, --silent do not print \`checking...' messages
1290 --cache-file=FILE cache test results in FILE [disabled]
1291 -C, --config-cache alias for \`--cache-file=config.cache'
1292 -n, --no-create do not create output files
1293 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1295 Installation directories:
1296 --prefix=PREFIX install architecture-independent files in PREFIX
1297 [$ac_default_prefix]
1298 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1299 [PREFIX]
1301 By default, \`make install' will install all the files in
1302 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1303 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1304 for instance \`--prefix=\$HOME'.
1306 For better control, use the options below.
1308 Fine tuning of the installation directories:
1309 --bindir=DIR user executables [EPREFIX/bin]
1310 --sbindir=DIR system admin executables [EPREFIX/sbin]
1311 --libexecdir=DIR program executables [EPREFIX/libexec]
1312 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1313 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1314 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1315 --libdir=DIR object code libraries [EPREFIX/lib]
1316 --includedir=DIR C header files [PREFIX/include]
1317 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1318 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1319 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1320 --infodir=DIR info documentation [DATAROOTDIR/info]
1321 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1322 --mandir=DIR man documentation [DATAROOTDIR/man]
1323 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1324 --htmldir=DIR html documentation [DOCDIR]
1325 --dvidir=DIR dvi documentation [DOCDIR]
1326 --pdfdir=DIR pdf documentation [DOCDIR]
1327 --psdir=DIR ps documentation [DOCDIR]
1328 _ACEOF
1330 cat <<\_ACEOF
1332 X features:
1333 --x-includes=DIR X include files are in DIR
1334 --x-libraries=DIR X library files are in DIR
1336 System types:
1337 --build=BUILD configure for building on BUILD [guessed]
1338 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1339 _ACEOF
1342 if test -n "$ac_init_help"; then
1344 cat <<\_ACEOF
1346 Optional Features:
1347 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1348 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1349 --disable-fastalloc omit fast allocator for small objects
1350 --enable-experimental support new style rewriting code
1351 --enable-macosx-extensions support new style rewriting code
1352 --enable-qt replace X11 by Qt interface
1353 --enable-cocoa replace X11 by Cocoa interface
1354 --enable-debug=ARG install a debugging enable executable -ggdb
1355 --enable-assert exit on failed assertions in code
1356 --enable-warnings print warning messages during compilation
1357 --enable-optimize=ARG compile with optimizations guessed
1359 Optional Packages:
1360 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1361 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1362 --with-x use the X Window System
1363 --with-iconv=DIR where to find iconv system
1364 --with-freetype=ARG with freetype support ARG=linked
1365 --with-cairo=ARG with cairo support ARG=no
1366 --with-imlib2=ARG with imlib2 support ARG=no
1367 --with-axel=ARG with axel support ARG=no
1368 --with-qt Path to Qt [Look in PATH and /usr/local/Trolltech]
1370 Some influential environment variables:
1371 CC C compiler command
1372 CFLAGS C compiler flags
1373 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1374 nonstandard directory <lib dir>
1375 LIBS libraries to pass to the linker, e.g. -l<library>
1376 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1377 you have headers in a nonstandard directory <include dir>
1378 CXX C++ compiler command
1379 CXXFLAGS C++ compiler flags
1380 CXXCPP C++ preprocessor
1381 XMKMF Path to xmkmf, Makefile generator for X Window System
1382 CPP C preprocessor
1383 TMPDIR A temporary directory with write access [/tmp]
1385 Use these variables to override the choices made by `configure' or to help
1386 it to find libraries and programs with nonstandard names/locations.
1388 _ACEOF
1389 ac_status=$?
1392 if test "$ac_init_help" = "recursive"; then
1393 # If there are subdirs, report their specific --help.
1394 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1395 test -d "$ac_dir" || continue
1396 ac_builddir=.
1398 case "$ac_dir" in
1399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1402 # A ".." for each directory in $ac_dir_suffix.
1403 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1404 case $ac_top_builddir_sub in
1405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1407 esac ;;
1408 esac
1409 ac_abs_top_builddir=$ac_pwd
1410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1411 # for backward compatibility:
1412 ac_top_builddir=$ac_top_build_prefix
1414 case $srcdir in
1415 .) # We are building in place.
1416 ac_srcdir=.
1417 ac_top_srcdir=$ac_top_builddir_sub
1418 ac_abs_top_srcdir=$ac_pwd ;;
1419 [\\/]* | ?:[\\/]* ) # Absolute name.
1420 ac_srcdir=$srcdir$ac_dir_suffix;
1421 ac_top_srcdir=$srcdir
1422 ac_abs_top_srcdir=$srcdir ;;
1423 *) # Relative name.
1424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1425 ac_top_srcdir=$ac_top_build_prefix$srcdir
1426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1427 esac
1428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1430 cd "$ac_dir" || { ac_status=$?; continue; }
1431 # Check for guested configure.
1432 if test -f "$ac_srcdir/configure.gnu"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1435 elif test -f "$ac_srcdir/configure"; then
1436 echo &&
1437 $SHELL "$ac_srcdir/configure" --help=recursive
1438 else
1439 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1440 fi || ac_status=$?
1441 cd "$ac_pwd" || { ac_status=$?; break; }
1442 done
1445 test -n "$ac_init_help" && exit $ac_status
1446 if $ac_init_version; then
1447 cat <<\_ACEOF
1448 configure
1449 generated by GNU Autoconf 2.61
1451 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1452 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1453 This configure script is free software; the Free Software Foundation
1454 gives unlimited permission to copy, distribute and modify it.
1455 _ACEOF
1456 exit
1458 cat >config.log <<_ACEOF
1459 This file contains any messages produced by compilers while
1460 running configure, to aid debugging if configure makes a mistake.
1462 It was created by $as_me, which was
1463 generated by GNU Autoconf 2.61. Invocation command line was
1465 $ $0 $@
1467 _ACEOF
1468 exec 5>>config.log
1470 cat <<_ASUNAME
1471 ## --------- ##
1472 ## Platform. ##
1473 ## --------- ##
1475 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1476 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1477 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1478 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1479 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1481 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1482 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1484 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1485 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1486 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1487 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1488 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1489 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1490 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1492 _ASUNAME
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 for as_dir in $PATH
1497 IFS=$as_save_IFS
1498 test -z "$as_dir" && as_dir=.
1499 echo "PATH: $as_dir"
1500 done
1501 IFS=$as_save_IFS
1503 } >&5
1505 cat >&5 <<_ACEOF
1508 ## ----------- ##
1509 ## Core tests. ##
1510 ## ----------- ##
1512 _ACEOF
1515 # Keep a trace of the command line.
1516 # Strip out --no-create and --no-recursion so they do not pile up.
1517 # Strip out --silent because we don't want to record it for future runs.
1518 # Also quote any args containing shell meta-characters.
1519 # Make two passes to allow for proper duplicate-argument suppression.
1520 ac_configure_args=
1521 ac_configure_args0=
1522 ac_configure_args1=
1523 ac_must_keep_next=false
1524 for ac_pass in 1 2
1526 for ac_arg
1528 case $ac_arg in
1529 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1531 | -silent | --silent | --silen | --sile | --sil)
1532 continue ;;
1533 *\'*)
1534 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1535 esac
1536 case $ac_pass in
1537 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1539 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1540 if test $ac_must_keep_next = true; then
1541 ac_must_keep_next=false # Got value, back to normal.
1542 else
1543 case $ac_arg in
1544 *=* | --config-cache | -C | -disable-* | --disable-* \
1545 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1546 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1547 | -with-* | --with-* | -without-* | --without-* | --x)
1548 case "$ac_configure_args0 " in
1549 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1550 esac
1552 -* ) ac_must_keep_next=true ;;
1553 esac
1555 ac_configure_args="$ac_configure_args '$ac_arg'"
1557 esac
1558 done
1559 done
1560 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1561 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1563 # When interrupted or exit'd, cleanup temporary files, and complete
1564 # config.log. We remove comments because anyway the quotes in there
1565 # would cause problems or look ugly.
1566 # WARNING: Use '\'' to represent an apostrophe within the trap.
1567 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1568 trap 'exit_status=$?
1569 # Save into config.log some information that might help in debugging.
1571 echo
1573 cat <<\_ASBOX
1574 ## ---------------- ##
1575 ## Cache variables. ##
1576 ## ---------------- ##
1577 _ASBOX
1578 echo
1579 # The following way of writing the cache mishandles newlines in values,
1581 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1582 eval ac_val=\$$ac_var
1583 case $ac_val in #(
1584 *${as_nl}*)
1585 case $ac_var in #(
1586 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1587 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1588 esac
1589 case $ac_var in #(
1590 _ | IFS | as_nl) ;; #(
1591 *) $as_unset $ac_var ;;
1592 esac ;;
1593 esac
1594 done
1595 (set) 2>&1 |
1596 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1597 *${as_nl}ac_space=\ *)
1598 sed -n \
1599 "s/'\''/'\''\\\\'\'''\''/g;
1600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1601 ;; #(
1603 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1605 esac |
1606 sort
1608 echo
1610 cat <<\_ASBOX
1611 ## ----------------- ##
1612 ## Output variables. ##
1613 ## ----------------- ##
1614 _ASBOX
1615 echo
1616 for ac_var in $ac_subst_vars
1618 eval ac_val=\$$ac_var
1619 case $ac_val in
1620 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1621 esac
1622 echo "$ac_var='\''$ac_val'\''"
1623 done | sort
1624 echo
1626 if test -n "$ac_subst_files"; then
1627 cat <<\_ASBOX
1628 ## ------------------- ##
1629 ## File substitutions. ##
1630 ## ------------------- ##
1631 _ASBOX
1632 echo
1633 for ac_var in $ac_subst_files
1635 eval ac_val=\$$ac_var
1636 case $ac_val in
1637 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1638 esac
1639 echo "$ac_var='\''$ac_val'\''"
1640 done | sort
1641 echo
1644 if test -s confdefs.h; then
1645 cat <<\_ASBOX
1646 ## ----------- ##
1647 ## confdefs.h. ##
1648 ## ----------- ##
1649 _ASBOX
1650 echo
1651 cat confdefs.h
1652 echo
1654 test "$ac_signal" != 0 &&
1655 echo "$as_me: caught signal $ac_signal"
1656 echo "$as_me: exit $exit_status"
1657 } >&5
1658 rm -f core *.core core.conftest.* &&
1659 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1660 exit $exit_status
1662 for ac_signal in 1 2 13 15; do
1663 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1664 done
1665 ac_signal=0
1667 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1668 rm -f -r conftest* confdefs.h
1670 # Predefined preprocessor variables.
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_NAME "$PACKAGE_NAME"
1674 _ACEOF
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1679 _ACEOF
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1684 _ACEOF
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_STRING "$PACKAGE_STRING"
1689 _ACEOF
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1694 _ACEOF
1697 # Let the site file select an alternate cache file if it wants to.
1698 # Prefer explicitly selected file to automatically selected ones.
1699 if test -n "$CONFIG_SITE"; then
1700 set x "$CONFIG_SITE"
1701 elif test "x$prefix" != xNONE; then
1702 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1703 else
1704 set x "$ac_default_prefix/share/config.site" \
1705 "$ac_default_prefix/etc/config.site"
1707 shift
1708 for ac_site_file
1710 if test -r "$ac_site_file"; then
1711 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1712 echo "$as_me: loading site script $ac_site_file" >&6;}
1713 sed 's/^/| /' "$ac_site_file" >&5
1714 . "$ac_site_file"
1716 done
1718 if test -r "$cache_file"; then
1719 # Some versions of bash will fail to source /dev/null (special
1720 # files actually), so we avoid doing that.
1721 if test -f "$cache_file"; then
1722 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1723 echo "$as_me: loading cache $cache_file" >&6;}
1724 case $cache_file in
1725 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1726 *) . "./$cache_file";;
1727 esac
1729 else
1730 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1731 echo "$as_me: creating cache $cache_file" >&6;}
1732 >$cache_file
1735 # Check that the precious variables saved in the cache have kept the same
1736 # value.
1737 ac_cache_corrupted=false
1738 for ac_var in $ac_precious_vars; do
1739 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1740 eval ac_new_set=\$ac_env_${ac_var}_set
1741 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1742 eval ac_new_val=\$ac_env_${ac_var}_value
1743 case $ac_old_set,$ac_new_set in
1744 set,)
1745 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1746 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1747 ac_cache_corrupted=: ;;
1748 ,set)
1749 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1750 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1751 ac_cache_corrupted=: ;;
1752 ,);;
1754 if test "x$ac_old_val" != "x$ac_new_val"; then
1755 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1756 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1757 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1758 echo "$as_me: former value: $ac_old_val" >&2;}
1759 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1760 echo "$as_me: current value: $ac_new_val" >&2;}
1761 ac_cache_corrupted=:
1762 fi;;
1763 esac
1764 # Pass precious variables to config.status.
1765 if test "$ac_new_set" = set; then
1766 case $ac_new_val in
1767 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1768 *) ac_arg=$ac_var=$ac_new_val ;;
1769 esac
1770 case " $ac_configure_args " in
1771 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1772 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1773 esac
1775 done
1776 if $ac_cache_corrupted; then
1777 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1778 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1779 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1780 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1781 { (exit 1); exit 1; }; }
1800 ac_ext=c
1801 ac_cpp='$CPP $CPPFLAGS'
1802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1807 ac_config_headers="$ac_config_headers src/System/config.h:src/System/config.in"
1810 PACKAGE="TeXmacs"
1811 DEVEL_VERSION="1.0.7.2"
1812 DEVEL_RELEASE="1"
1813 STABLE_VERSION="1.0.7"
1814 STABLE_RELEASE="1"
1815 WINDOWS_VERSION="1.0.5"
1816 WINDOWS_RELEASE="1"
1823 #--------------------------------------------------------------------
1824 # Checks for C++ compiler
1825 #--------------------------------------------------------------------
1827 ac_ext=c
1828 ac_cpp='$CPP $CPPFLAGS'
1829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832 if test -n "$ac_tool_prefix"; then
1833 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1834 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1837 if test "${ac_cv_prog_CC+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1839 else
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1842 else
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 for as_dir in $PATH
1846 IFS=$as_save_IFS
1847 test -z "$as_dir" && as_dir=.
1848 for ac_exec_ext in '' $ac_executable_extensions; do
1849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1850 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852 break 2
1854 done
1855 done
1856 IFS=$as_save_IFS
1860 CC=$ac_cv_prog_CC
1861 if test -n "$CC"; then
1862 { echo "$as_me:$LINENO: result: $CC" >&5
1863 echo "${ECHO_T}$CC" >&6; }
1864 else
1865 { echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6; }
1871 if test -z "$ac_cv_prog_CC"; then
1872 ac_ct_CC=$CC
1873 # Extract the first word of "gcc", so it can be a program name with args.
1874 set dummy gcc; ac_word=$2
1875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1877 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880 if test -n "$ac_ct_CC"; then
1881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1890 ac_cv_prog_ac_ct_CC="gcc"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 break 2
1894 done
1895 done
1896 IFS=$as_save_IFS
1900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6; }
1904 else
1905 { echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6; }
1909 if test "x$ac_ct_CC" = x; then
1910 CC=""
1911 else
1912 case $cross_compiling:$ac_tool_warned in
1913 yes:)
1914 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1915 whose name does not start with the host triplet. If you think this
1916 configuration is useful to you, please write to autoconf@gnu.org." >&5
1917 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1918 whose name does not start with the host triplet. If you think this
1919 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1920 ac_tool_warned=yes ;;
1921 esac
1922 CC=$ac_ct_CC
1924 else
1925 CC="$ac_cv_prog_CC"
1928 if test -z "$CC"; then
1929 if test -n "$ac_tool_prefix"; then
1930 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1931 set dummy ${ac_tool_prefix}cc; ac_word=$2
1932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1934 if test "${ac_cv_prog_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937 if test -n "$CC"; then
1938 ac_cv_prog_CC="$CC" # Let the user override the test.
1939 else
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1947 ac_cv_prog_CC="${ac_tool_prefix}cc"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 break 2
1951 done
1952 done
1953 IFS=$as_save_IFS
1957 CC=$ac_cv_prog_CC
1958 if test -n "$CC"; then
1959 { echo "$as_me:$LINENO: result: $CC" >&5
1960 echo "${ECHO_T}$CC" >&6; }
1961 else
1962 { echo "$as_me:$LINENO: result: no" >&5
1963 echo "${ECHO_T}no" >&6; }
1969 if test -z "$CC"; then
1970 # Extract the first word of "cc", so it can be a program name with args.
1971 set dummy cc; ac_word=$2
1972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977 if test -n "$CC"; then
1978 ac_cv_prog_CC="$CC" # Let the user override the test.
1979 else
1980 ac_prog_rejected=no
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1988 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1989 ac_prog_rejected=yes
1990 continue
1992 ac_cv_prog_CC="cc"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 break 2
1996 done
1997 done
1998 IFS=$as_save_IFS
2000 if test $ac_prog_rejected = yes; then
2001 # We found a bogon in the path, so make sure we never use it.
2002 set dummy $ac_cv_prog_CC
2003 shift
2004 if test $# != 0; then
2005 # We chose a different compiler from the bogus one.
2006 # However, it has the same basename, so the bogon will be chosen
2007 # first if we set CC to just the basename; use the full file name.
2008 shift
2009 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2014 CC=$ac_cv_prog_CC
2015 if test -n "$CC"; then
2016 { echo "$as_me:$LINENO: result: $CC" >&5
2017 echo "${ECHO_T}$CC" >&6; }
2018 else
2019 { echo "$as_me:$LINENO: result: no" >&5
2020 echo "${ECHO_T}no" >&6; }
2025 if test -z "$CC"; then
2026 if test -n "$ac_tool_prefix"; then
2027 for ac_prog in cl.exe
2029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2050 done
2051 done
2052 IFS=$as_save_IFS
2056 CC=$ac_cv_prog_CC
2057 if test -n "$CC"; then
2058 { echo "$as_me:$LINENO: result: $CC" >&5
2059 echo "${ECHO_T}$CC" >&6; }
2060 else
2061 { echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6; }
2066 test -n "$CC" && break
2067 done
2069 if test -z "$CC"; then
2070 ac_ct_CC=$CC
2071 for ac_prog in cl.exe
2073 # Extract the first word of "$ac_prog", so it can be a program name with args.
2074 set dummy $ac_prog; ac_word=$2
2075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080 if test -n "$ac_ct_CC"; then
2081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082 else
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2086 IFS=$as_save_IFS
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2090 ac_cv_prog_ac_ct_CC="$ac_prog"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 break 2
2094 done
2095 done
2096 IFS=$as_save_IFS
2100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2101 if test -n "$ac_ct_CC"; then
2102 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2103 echo "${ECHO_T}$ac_ct_CC" >&6; }
2104 else
2105 { echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6; }
2110 test -n "$ac_ct_CC" && break
2111 done
2113 if test "x$ac_ct_CC" = x; then
2114 CC=""
2115 else
2116 case $cross_compiling:$ac_tool_warned in
2117 yes:)
2118 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2119 whose name does not start with the host triplet. If you think this
2120 configuration is useful to you, please write to autoconf@gnu.org." >&5
2121 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2122 whose name does not start with the host triplet. If you think this
2123 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2124 ac_tool_warned=yes ;;
2125 esac
2126 CC=$ac_ct_CC
2133 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2134 See \`config.log' for more details." >&5
2135 echo "$as_me: error: no acceptable C compiler found in \$PATH
2136 See \`config.log' for more details." >&2;}
2137 { (exit 1); exit 1; }; }
2139 # Provide some information about the compiler.
2140 echo "$as_me:$LINENO: checking for C compiler version" >&5
2141 ac_compiler=`set X $ac_compile; echo $2`
2142 { (ac_try="$ac_compiler --version >&5"
2143 case "(($ac_try" in
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2146 esac
2147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2148 (eval "$ac_compiler --version >&5") 2>&5
2149 ac_status=$?
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }
2152 { (ac_try="$ac_compiler -v >&5"
2153 case "(($ac_try" in
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2156 esac
2157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2158 (eval "$ac_compiler -v >&5") 2>&5
2159 ac_status=$?
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }
2162 { (ac_try="$ac_compiler -V >&5"
2163 case "(($ac_try" in
2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165 *) ac_try_echo=$ac_try;;
2166 esac
2167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2168 (eval "$ac_compiler -V >&5") 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }
2173 cat >conftest.$ac_ext <<_ACEOF
2174 /* confdefs.h. */
2175 _ACEOF
2176 cat confdefs.h >>conftest.$ac_ext
2177 cat >>conftest.$ac_ext <<_ACEOF
2178 /* end confdefs.h. */
2181 main ()
2185 return 0;
2187 _ACEOF
2188 ac_clean_files_save=$ac_clean_files
2189 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2190 # Try to create an executable without -o first, disregard a.out.
2191 # It will help us diagnose broken compilers, and finding out an intuition
2192 # of exeext.
2193 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2194 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2195 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2197 # List of possible output files, starting from the most likely.
2198 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2199 # only as a last resort. b.out is created by i960 compilers.
2200 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2202 # The IRIX 6 linker writes into existing files which may not be
2203 # executable, retaining their permissions. Remove them first so a
2204 # subsequent execution test works.
2205 ac_rmfiles=
2206 for ac_file in $ac_files
2208 case $ac_file in
2209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2210 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2211 esac
2212 done
2213 rm -f $ac_rmfiles
2215 if { (ac_try="$ac_link_default"
2216 case "(($ac_try" in
2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2219 esac
2220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2221 (eval "$ac_link_default") 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; then
2225 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2226 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2227 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2228 # so that the user can short-circuit this test for compilers unknown to
2229 # Autoconf.
2230 for ac_file in $ac_files ''
2232 test -f "$ac_file" || continue
2233 case $ac_file in
2234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2236 [ab].out )
2237 # We found the default executable, but exeext='' is most
2238 # certainly right.
2239 break;;
2240 *.* )
2241 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2242 then :; else
2243 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2245 # We set ac_cv_exeext here because the later test for it is not
2246 # safe: cross compilers may not add the suffix if given an `-o'
2247 # argument, so we may need to know it at that point already.
2248 # Even if this section looks crufty: it has the advantage of
2249 # actually working.
2250 break;;
2252 break;;
2253 esac
2254 done
2255 test "$ac_cv_exeext" = no && ac_cv_exeext=
2257 else
2258 ac_file=''
2261 { echo "$as_me:$LINENO: result: $ac_file" >&5
2262 echo "${ECHO_T}$ac_file" >&6; }
2263 if test -z "$ac_file"; then
2264 echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2267 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: C compiler cannot create executables
2270 See \`config.log' for more details." >&2;}
2271 { (exit 77); exit 77; }; }
2274 ac_exeext=$ac_cv_exeext
2276 # Check that the compiler produces executables we can run. If not, either
2277 # the compiler is broken, or we cross compile.
2278 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2279 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2280 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2281 # If not cross compiling, check that we can run a simple program.
2282 if test "$cross_compiling" != yes; then
2283 if { ac_try='./$ac_file'
2284 { (case "(($ac_try" in
2285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2286 *) ac_try_echo=$ac_try;;
2287 esac
2288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2289 (eval "$ac_try") 2>&5
2290 ac_status=$?
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; }; then
2293 cross_compiling=no
2294 else
2295 if test "$cross_compiling" = maybe; then
2296 cross_compiling=yes
2297 else
2298 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2299 If you meant to cross compile, use \`--host'.
2300 See \`config.log' for more details." >&5
2301 echo "$as_me: error: cannot run C compiled programs.
2302 If you meant to cross compile, use \`--host'.
2303 See \`config.log' for more details." >&2;}
2304 { (exit 1); exit 1; }; }
2308 { echo "$as_me:$LINENO: result: yes" >&5
2309 echo "${ECHO_T}yes" >&6; }
2311 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2312 ac_clean_files=$ac_clean_files_save
2313 # Check that the compiler produces executables we can run. If not, either
2314 # the compiler is broken, or we cross compile.
2315 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2316 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2317 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2318 echo "${ECHO_T}$cross_compiling" >&6; }
2320 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2321 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2322 if { (ac_try="$ac_link"
2323 case "(($ac_try" in
2324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325 *) ac_try_echo=$ac_try;;
2326 esac
2327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2328 (eval "$ac_link") 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; then
2332 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2333 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2334 # work properly (i.e., refer to `conftest.exe'), while it won't with
2335 # `rm'.
2336 for ac_file in conftest.exe conftest conftest.*; do
2337 test -f "$ac_file" || continue
2338 case $ac_file in
2339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2340 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2341 break;;
2342 * ) break;;
2343 esac
2344 done
2345 else
2346 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2349 See \`config.log' for more details." >&2;}
2350 { (exit 1); exit 1; }; }
2353 rm -f conftest$ac_cv_exeext
2354 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2355 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2357 rm -f conftest.$ac_ext
2358 EXEEXT=$ac_cv_exeext
2359 ac_exeext=$EXEEXT
2360 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2361 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2362 if test "${ac_cv_objext+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365 cat >conftest.$ac_ext <<_ACEOF
2366 /* confdefs.h. */
2367 _ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h. */
2373 main ()
2377 return 0;
2379 _ACEOF
2380 rm -f conftest.o conftest.obj
2381 if { (ac_try="$ac_compile"
2382 case "(($ac_try" in
2383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2384 *) ac_try_echo=$ac_try;;
2385 esac
2386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2387 (eval "$ac_compile") 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; then
2391 for ac_file in conftest.o conftest.obj conftest.*; do
2392 test -f "$ac_file" || continue;
2393 case $ac_file in
2394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2395 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2396 break;;
2397 esac
2398 done
2399 else
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2403 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2404 See \`config.log' for more details." >&5
2405 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2406 See \`config.log' for more details." >&2;}
2407 { (exit 1); exit 1; }; }
2410 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2412 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2413 echo "${ECHO_T}$ac_cv_objext" >&6; }
2414 OBJEXT=$ac_cv_objext
2415 ac_objext=$OBJEXT
2416 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2417 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2418 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 else
2421 cat >conftest.$ac_ext <<_ACEOF
2422 /* confdefs.h. */
2423 _ACEOF
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h. */
2429 main ()
2431 #ifndef __GNUC__
2432 choke me
2433 #endif
2436 return 0;
2438 _ACEOF
2439 rm -f conftest.$ac_objext
2440 if { (ac_try="$ac_compile"
2441 case "(($ac_try" in
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2444 esac
2445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2446 (eval "$ac_compile") 2>conftest.er1
2447 ac_status=$?
2448 grep -v '^ *+' conftest.er1 >conftest.err
2449 rm -f conftest.er1
2450 cat conftest.err >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } && {
2453 test -z "$ac_c_werror_flag" ||
2454 test ! -s conftest.err
2455 } && test -s conftest.$ac_objext; then
2456 ac_compiler_gnu=yes
2457 else
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2461 ac_compiler_gnu=no
2464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2468 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2469 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2470 GCC=`test $ac_compiler_gnu = yes && echo yes`
2471 ac_test_CFLAGS=${CFLAGS+set}
2472 ac_save_CFLAGS=$CFLAGS
2473 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2474 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2475 if test "${ac_cv_prog_cc_g+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478 ac_save_c_werror_flag=$ac_c_werror_flag
2479 ac_c_werror_flag=yes
2480 ac_cv_prog_cc_g=no
2481 CFLAGS="-g"
2482 cat >conftest.$ac_ext <<_ACEOF
2483 /* confdefs.h. */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2490 main ()
2494 return 0;
2496 _ACEOF
2497 rm -f conftest.$ac_objext
2498 if { (ac_try="$ac_compile"
2499 case "(($ac_try" in
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2502 esac
2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504 (eval "$ac_compile") 2>conftest.er1
2505 ac_status=$?
2506 grep -v '^ *+' conftest.er1 >conftest.err
2507 rm -f conftest.er1
2508 cat conftest.err >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } && {
2511 test -z "$ac_c_werror_flag" ||
2512 test ! -s conftest.err
2513 } && test -s conftest.$ac_objext; then
2514 ac_cv_prog_cc_g=yes
2515 else
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2519 CFLAGS=""
2520 cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h. */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2528 main ()
2532 return 0;
2534 _ACEOF
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2537 case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_compile") 2>conftest.er1
2543 ac_status=$?
2544 grep -v '^ *+' conftest.er1 >conftest.err
2545 rm -f conftest.er1
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } && {
2549 test -z "$ac_c_werror_flag" ||
2550 test ! -s conftest.err
2551 } && test -s conftest.$ac_objext; then
2553 else
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 ac_c_werror_flag=$ac_save_c_werror_flag
2558 CFLAGS="-g"
2559 cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h. */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2567 main ()
2571 return 0;
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (ac_try="$ac_compile"
2576 case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2579 esac
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compile") 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } && {
2588 test -z "$ac_c_werror_flag" ||
2589 test ! -s conftest.err
2590 } && test -s conftest.$ac_objext; then
2591 ac_cv_prog_cc_g=yes
2592 else
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 ac_c_werror_flag=$ac_save_c_werror_flag
2608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2609 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2610 if test "$ac_test_CFLAGS" = set; then
2611 CFLAGS=$ac_save_CFLAGS
2612 elif test $ac_cv_prog_cc_g = yes; then
2613 if test "$GCC" = yes; then
2614 CFLAGS="-g -O2"
2615 else
2616 CFLAGS="-g"
2618 else
2619 if test "$GCC" = yes; then
2620 CFLAGS="-O2"
2621 else
2622 CFLAGS=
2625 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2626 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_cc_c89+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630 ac_cv_prog_cc_c89=no
2631 ac_save_CC=$CC
2632 cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h. */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2638 #include <stdarg.h>
2639 #include <stdio.h>
2640 #include <sys/types.h>
2641 #include <sys/stat.h>
2642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2643 struct buf { int x; };
2644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2645 static char *e (p, i)
2646 char **p;
2647 int i;
2649 return p[i];
2651 static char *f (char * (*g) (char **, int), char **p, ...)
2653 char *s;
2654 va_list v;
2655 va_start (v,p);
2656 s = g (p, va_arg (v,int));
2657 va_end (v);
2658 return s;
2661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2662 function prototypes and stuff, but not '\xHH' hex character constants.
2663 These don't provoke an error unfortunately, instead are silently treated
2664 as 'x'. The following induces an error, until -std is added to get
2665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2666 array size at least. It's necessary to write '\x00'==0 to get something
2667 that's true only with -std. */
2668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2671 inside strings and character constants. */
2672 #define FOO(x) 'x'
2673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2675 int test (int i, double x);
2676 struct s1 {int (*f) (int a);};
2677 struct s2 {int (*f) (double a);};
2678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2679 int argc;
2680 char **argv;
2682 main ()
2684 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2686 return 0;
2688 _ACEOF
2689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2690 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2692 CC="$ac_save_CC $ac_arg"
2693 rm -f conftest.$ac_objext
2694 if { (ac_try="$ac_compile"
2695 case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compile") 2>conftest.er1
2701 ac_status=$?
2702 grep -v '^ *+' conftest.er1 >conftest.err
2703 rm -f conftest.er1
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } && {
2707 test -z "$ac_c_werror_flag" ||
2708 test ! -s conftest.err
2709 } && test -s conftest.$ac_objext; then
2710 ac_cv_prog_cc_c89=$ac_arg
2711 else
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2718 rm -f core conftest.err conftest.$ac_objext
2719 test "x$ac_cv_prog_cc_c89" != "xno" && break
2720 done
2721 rm -f conftest.$ac_ext
2722 CC=$ac_save_CC
2725 # AC_CACHE_VAL
2726 case "x$ac_cv_prog_cc_c89" in
2728 { echo "$as_me:$LINENO: result: none needed" >&5
2729 echo "${ECHO_T}none needed" >&6; } ;;
2730 xno)
2731 { echo "$as_me:$LINENO: result: unsupported" >&5
2732 echo "${ECHO_T}unsupported" >&6; } ;;
2734 CC="$CC $ac_cv_prog_cc_c89"
2735 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2736 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2737 esac
2740 ac_ext=c
2741 ac_cpp='$CPP $CPPFLAGS'
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746 ac_ext=cpp
2747 ac_cpp='$CXXCPP $CPPFLAGS'
2748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2751 if test -z "$CXX"; then
2752 if test -n "$CCC"; then
2753 CXX=$CCC
2754 else
2755 if test -n "$ac_tool_prefix"; then
2756 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2759 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2762 if test "${ac_cv_prog_CXX+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765 if test -n "$CXX"; then
2766 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2779 done
2780 done
2781 IFS=$as_save_IFS
2785 CXX=$ac_cv_prog_CXX
2786 if test -n "$CXX"; then
2787 { echo "$as_me:$LINENO: result: $CXX" >&5
2788 echo "${ECHO_T}$CXX" >&6; }
2789 else
2790 { echo "$as_me:$LINENO: result: no" >&5
2791 echo "${ECHO_T}no" >&6; }
2795 test -n "$CXX" && break
2796 done
2798 if test -z "$CXX"; then
2799 ac_ct_CXX=$CXX
2800 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2802 # Extract the first word of "$ac_prog", so it can be a program name with args.
2803 set dummy $ac_prog; ac_word=$2
2804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2806 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809 if test -n "$ac_ct_CXX"; then
2810 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819 ac_cv_prog_ac_ct_CXX="$ac_prog"
2820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 break 2
2823 done
2824 done
2825 IFS=$as_save_IFS
2829 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2830 if test -n "$ac_ct_CXX"; then
2831 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2832 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2833 else
2834 { echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6; }
2839 test -n "$ac_ct_CXX" && break
2840 done
2842 if test "x$ac_ct_CXX" = x; then
2843 CXX="g++"
2844 else
2845 case $cross_compiling:$ac_tool_warned in
2846 yes:)
2847 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2848 whose name does not start with the host triplet. If you think this
2849 configuration is useful to you, please write to autoconf@gnu.org." >&5
2850 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2851 whose name does not start with the host triplet. If you think this
2852 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2853 ac_tool_warned=yes ;;
2854 esac
2855 CXX=$ac_ct_CXX
2861 # Provide some information about the compiler.
2862 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2863 ac_compiler=`set X $ac_compile; echo $2`
2864 { (ac_try="$ac_compiler --version >&5"
2865 case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2868 esac
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870 (eval "$ac_compiler --version >&5") 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }
2874 { (ac_try="$ac_compiler -v >&5"
2875 case "(($ac_try" in
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2878 esac
2879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880 (eval "$ac_compiler -v >&5") 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }
2884 { (ac_try="$ac_compiler -V >&5"
2885 case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888 esac
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_compiler -V >&5") 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2895 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2896 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2897 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900 cat >conftest.$ac_ext <<_ACEOF
2901 /* confdefs.h. */
2902 _ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2908 main ()
2910 #ifndef __GNUC__
2911 choke me
2912 #endif
2915 return 0;
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (ac_try="$ac_compile"
2920 case "(($ac_try" in
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2923 esac
2924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925 (eval "$ac_compile") 2>conftest.er1
2926 ac_status=$?
2927 grep -v '^ *+' conftest.er1 >conftest.err
2928 rm -f conftest.er1
2929 cat conftest.err >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } && {
2932 test -z "$ac_cxx_werror_flag" ||
2933 test ! -s conftest.err
2934 } && test -s conftest.$ac_objext; then
2935 ac_compiler_gnu=yes
2936 else
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2940 ac_compiler_gnu=no
2943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2944 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2947 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2948 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2949 GXX=`test $ac_compiler_gnu = yes && echo yes`
2950 ac_test_CXXFLAGS=${CXXFLAGS+set}
2951 ac_save_CXXFLAGS=$CXXFLAGS
2952 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2953 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2954 if test "${ac_cv_prog_cxx_g+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2958 ac_cxx_werror_flag=yes
2959 ac_cv_prog_cxx_g=no
2960 CXXFLAGS="-g"
2961 cat >conftest.$ac_ext <<_ACEOF
2962 /* confdefs.h. */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2969 main ()
2973 return 0;
2975 _ACEOF
2976 rm -f conftest.$ac_objext
2977 if { (ac_try="$ac_compile"
2978 case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981 esac
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compile") 2>conftest.er1
2984 ac_status=$?
2985 grep -v '^ *+' conftest.er1 >conftest.err
2986 rm -f conftest.er1
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } && {
2990 test -z "$ac_cxx_werror_flag" ||
2991 test ! -s conftest.err
2992 } && test -s conftest.$ac_objext; then
2993 ac_cv_prog_cxx_g=yes
2994 else
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 CXXFLAGS=""
2999 cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h. */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3007 main ()
3011 return 0;
3013 _ACEOF
3014 rm -f conftest.$ac_objext
3015 if { (ac_try="$ac_compile"
3016 case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_compile") 2>conftest.er1
3022 ac_status=$?
3023 grep -v '^ *+' conftest.er1 >conftest.err
3024 rm -f conftest.er1
3025 cat conftest.err >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } && {
3028 test -z "$ac_cxx_werror_flag" ||
3029 test ! -s conftest.err
3030 } && test -s conftest.$ac_objext; then
3032 else
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3036 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3037 CXXFLAGS="-g"
3038 cat >conftest.$ac_ext <<_ACEOF
3039 /* confdefs.h. */
3040 _ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h. */
3046 main ()
3050 return 0;
3052 _ACEOF
3053 rm -f conftest.$ac_objext
3054 if { (ac_try="$ac_compile"
3055 case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058 esac
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_compile") 2>conftest.er1
3061 ac_status=$?
3062 grep -v '^ *+' conftest.er1 >conftest.err
3063 rm -f conftest.er1
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } && {
3067 test -z "$ac_cxx_werror_flag" ||
3068 test ! -s conftest.err
3069 } && test -s conftest.$ac_objext; then
3070 ac_cv_prog_cxx_g=yes
3071 else
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3087 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3088 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3089 if test "$ac_test_CXXFLAGS" = set; then
3090 CXXFLAGS=$ac_save_CXXFLAGS
3091 elif test $ac_cv_prog_cxx_g = yes; then
3092 if test "$GXX" = yes; then
3093 CXXFLAGS="-g -O2"
3094 else
3095 CXXFLAGS="-g"
3097 else
3098 if test "$GXX" = yes; then
3099 CXXFLAGS="-O2"
3100 else
3101 CXXFLAGS=
3104 ac_ext=c
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110 ac_ext=cpp
3111 ac_cpp='$CXXCPP $CPPFLAGS'
3112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3118 { echo "$as_me:$LINENO: checking whether GNU C++ compiler is default" >&5
3119 echo $ECHO_N "checking whether GNU C++ compiler is default... $ECHO_C" >&6; }
3120 case "$GXX" in
3121 yes )
3122 GCC_VERSION=`$CC -dumpversion`
3123 GXX_VERSION=`$CXX -dumpversion`
3124 { echo "$as_me:$LINENO: result: yes" >&5
3125 echo "${ECHO_T}yes" >&6; }
3126 { echo "$as_me:$LINENO: checking version of gcc" >&5
3127 echo $ECHO_N "checking version of gcc... $ECHO_C" >&6; }
3128 { echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
3129 echo "${ECHO_T}$GCC_VERSION" >&6; }
3130 { echo "$as_me:$LINENO: checking version of g++" >&5
3131 echo $ECHO_N "checking version of g++... $ECHO_C" >&6; }
3132 { echo "$as_me:$LINENO: result: $GXX_VERSION" >&5
3133 echo "${ECHO_T}$GXX_VERSION" >&6; }
3134 case "$GXX_VERSION" in
3135 0* | 1* | 2*)
3136 echo "old style GNU compiler"
3137 cat >>confdefs.h <<\_ACEOF
3138 #define OLD_GNU_COMPILER
3139 _ACEOF
3142 esac
3145 GCC_VERSION="none"
3146 GXX_VERSION="none"
3147 { echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6; }
3149 { echo "$as_me:$LINENO: WARNING: cannot find GNU C++ compiler" >&5
3150 echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
3152 esac
3154 #--------------------------------------------------------------------
3155 # Checks for Guile
3156 #--------------------------------------------------------------------
3158 if test -z "$GUILE_CFLAGS" -a -z "$GUILE_LDFLAGS"; then
3160 ## The GUILE_FLAGS macro.
3161 ## First, let's just see if we can find Guile at all.
3162 { echo "$as_me:$LINENO: checking for Guile" >&5
3163 echo $ECHO_N "checking for Guile... $ECHO_C" >&6; }
3164 guile-config link > /dev/null || {
3165 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
3166 exit 1
3168 GUILE_ORIGINAL_CFLAGS="`guile-config compile`"
3169 GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
3170 GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
3171 GUILE_LDFLAGS="`guile-config link`"
3172 GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir` -lguile -lreadline -ltermcap"
3175 { echo "$as_me:$LINENO: result: yes" >&5
3176 echo "${ECHO_T}yes" >&6; }
3179 { echo "$as_me:$LINENO: checking version of guile" >&5
3180 echo $ECHO_N "checking version of guile... $ECHO_C" >&6; }
3181 if test -z "$GUILE_VERSION" ; then
3182 GUILE_VERSION=`guile --version | grep 'Guile \([0-9]\)' | sed 's/Guile \([0-9]*\)/\1/'`
3184 { echo "$as_me:$LINENO: result: $GUILE_VERSION" >&5
3185 echo "${ECHO_T}$GUILE_VERSION" >&6; }
3187 case "$GUILE_VERSION" in
3188 1.0* | 1.1* | 1.2* | 1.3* | 1.4* | 1.5*)
3189 CONFIG_GUILE_SERIAL="A"
3191 1.6* | 1.7*)
3192 CONFIG_GUILE_SERIAL="B"
3195 CONFIG_GUILE_SERIAL="C"
3197 esac
3200 #--------------------------------------------------------------------
3201 # Checks for standard functionality
3202 #--------------------------------------------------------------------
3206 { echo "$as_me:$LINENO: checking for C++-compatible X header files" >&5
3207 echo $ECHO_N "checking for C++-compatible X header files... $ECHO_C" >&6; }
3208 ac_save_cppflags="$CPPFLAGS"
3209 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3210 cat >conftest.$ac_ext <<_ACEOF
3211 /* confdefs.h. */
3212 _ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3216 #include <X11/Xlib.h>
3217 #include <X11/Xutil.h>
3219 main ()
3223 return 0;
3225 _ACEOF
3226 rm -f conftest.$ac_objext
3227 if { (ac_try="$ac_compile"
3228 case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } && {
3240 test -z "$ac_cxx_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.$ac_objext; then
3243 echo yes
3244 else
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 rm -rf X11
3249 mkdir X11
3250 for ac_dir in \
3251 /usr/X11/include \
3252 /usr/X11R6/include \
3253 /usr/X11R5/include \
3254 /usr/X11R4/include \
3256 /usr/include/X11 \
3257 /usr/include/X11R6 \
3258 /usr/include/X11R5 \
3259 /usr/include/X11R4 \
3261 /usr/local/X11/include \
3262 /usr/local/X11R6/include \
3263 /usr/local/X11R5/include \
3264 /usr/local/X11R4/include \
3266 /usr/local/include/X11 \
3267 /usr/local/include/X11R6 \
3268 /usr/local/include/X11R5 \
3269 /usr/local/include/X11R4 \
3271 /usr/X386/include \
3272 /usr/x386/include \
3273 /usr/XFree86/include/X11 \
3275 /usr/include \
3276 /usr/local/include \
3277 /usr/unsupported/include \
3278 /usr/athena/include \
3279 /usr/local/x11r5/include \
3280 /usr/lpp/Xamples/include \
3282 /usr/openwin/include \
3283 /usr/openwin/share/include \
3286 if test -r "$ac_dir/X11/Xlib.h"; then
3287 tm_x_includes=$ac_dir
3288 break
3290 done
3291 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3292 < "$tm_x_includes/X11/Xlib.h" > X11/Xlib.h
3293 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3294 < "$tm_x_includes/X11/Xutil.h" > X11/Xutil.h
3295 X_CFLAGS="-I.. $X_CFLAGS"
3296 echo "no; fixing"
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 CPPFLAGS="$ac_save_cppflags"
3302 ac_ext=cpp
3303 ac_cpp='$CXXCPP $CPPFLAGS'
3304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3307 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3308 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3309 if test -z "$CXXCPP"; then
3310 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313 # Double quotes because CXXCPP needs to be expanded
3314 for CXXCPP in "$CXX -E" "/lib/cpp"
3316 ac_preproc_ok=false
3317 for ac_cxx_preproc_warn_flag in '' yes
3319 # Use a header file that comes with gcc, so configuring glibc
3320 # with a fresh cross-compiler works.
3321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3322 # <limits.h> exists even on freestanding compilers.
3323 # On the NeXT, cc -E runs the code through the compiler's parser,
3324 # not just through cpp. "Syntax error" is here to catch this case.
3325 cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h. */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3331 #ifdef __STDC__
3332 # include <limits.h>
3333 #else
3334 # include <assert.h>
3335 #endif
3336 Syntax error
3337 _ACEOF
3338 if { (ac_try="$ac_cpp conftest.$ac_ext"
3339 case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342 esac
3343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } >/dev/null && {
3351 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3352 test ! -s conftest.err
3353 }; then
3355 else
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 # Broken: fails on valid input.
3360 continue
3363 rm -f conftest.err conftest.$ac_ext
3365 # OK, works on sane cases. Now check whether nonexistent headers
3366 # can be detected and how.
3367 cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h. */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 #include <ac_nonexistent.h>
3374 _ACEOF
3375 if { (ac_try="$ac_cpp conftest.$ac_ext"
3376 case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3382 ac_status=$?
3383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } >/dev/null && {
3388 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3389 test ! -s conftest.err
3390 }; then
3391 # Broken: success on invalid input.
3392 continue
3393 else
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 # Passes both tests.
3398 ac_preproc_ok=:
3399 break
3402 rm -f conftest.err conftest.$ac_ext
3404 done
3405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3406 rm -f conftest.err conftest.$ac_ext
3407 if $ac_preproc_ok; then
3408 break
3411 done
3412 ac_cv_prog_CXXCPP=$CXXCPP
3415 CXXCPP=$ac_cv_prog_CXXCPP
3416 else
3417 ac_cv_prog_CXXCPP=$CXXCPP
3419 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
3420 echo "${ECHO_T}$CXXCPP" >&6; }
3421 ac_preproc_ok=false
3422 for ac_cxx_preproc_warn_flag in '' yes
3424 # Use a header file that comes with gcc, so configuring glibc
3425 # with a fresh cross-compiler works.
3426 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3427 # <limits.h> exists even on freestanding compilers.
3428 # On the NeXT, cc -E runs the code through the compiler's parser,
3429 # not just through cpp. "Syntax error" is here to catch this case.
3430 cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h. */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3436 #ifdef __STDC__
3437 # include <limits.h>
3438 #else
3439 # include <assert.h>
3440 #endif
3441 Syntax error
3442 _ACEOF
3443 if { (ac_try="$ac_cpp conftest.$ac_ext"
3444 case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447 esac
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3450 ac_status=$?
3451 grep -v '^ *+' conftest.er1 >conftest.err
3452 rm -f conftest.er1
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } >/dev/null && {
3456 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3457 test ! -s conftest.err
3458 }; then
3460 else
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3464 # Broken: fails on valid input.
3465 continue
3468 rm -f conftest.err conftest.$ac_ext
3470 # OK, works on sane cases. Now check whether nonexistent headers
3471 # can be detected and how.
3472 cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h. */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 #include <ac_nonexistent.h>
3479 _ACEOF
3480 if { (ac_try="$ac_cpp conftest.$ac_ext"
3481 case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484 esac
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3487 ac_status=$?
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } >/dev/null && {
3493 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3494 test ! -s conftest.err
3495 }; then
3496 # Broken: success on invalid input.
3497 continue
3498 else
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3502 # Passes both tests.
3503 ac_preproc_ok=:
3504 break
3507 rm -f conftest.err conftest.$ac_ext
3509 done
3510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3511 rm -f conftest.err conftest.$ac_ext
3512 if $ac_preproc_ok; then
3514 else
3515 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3516 See \`config.log' for more details." >&5
3517 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3518 See \`config.log' for more details." >&2;}
3519 { (exit 1); exit 1; }; }
3522 ac_ext=cpp
3523 ac_cpp='$CXXCPP $CPPFLAGS'
3524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3529 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3530 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3531 if test "${ac_cv_path_GREP+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 else
3534 # Extract the first word of "grep ggrep" to use in msg output
3535 if test -z "$GREP"; then
3536 set dummy grep ggrep; ac_prog_name=$2
3537 if test "${ac_cv_path_GREP+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540 ac_path_GREP_found=false
3541 # Loop through the user's path and test for each of PROGNAME-LIST
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_prog in grep ggrep; do
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3550 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3551 # Check for GNU ac_path_GREP and select it if it is found.
3552 # Check for GNU $ac_path_GREP
3553 case `"$ac_path_GREP" --version 2>&1` in
3554 *GNU*)
3555 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3557 ac_count=0
3558 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3559 while :
3561 cat "conftest.in" "conftest.in" >"conftest.tmp"
3562 mv "conftest.tmp" "conftest.in"
3563 cp "conftest.in" "conftest.nl"
3564 echo 'GREP' >> "conftest.nl"
3565 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3566 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3567 ac_count=`expr $ac_count + 1`
3568 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3569 # Best one so far, save it but keep looking for a better one
3570 ac_cv_path_GREP="$ac_path_GREP"
3571 ac_path_GREP_max=$ac_count
3573 # 10*(2^10) chars as input seems more than enough
3574 test $ac_count -gt 10 && break
3575 done
3576 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3577 esac
3580 $ac_path_GREP_found && break 3
3581 done
3582 done
3584 done
3585 IFS=$as_save_IFS
3590 GREP="$ac_cv_path_GREP"
3591 if test -z "$GREP"; then
3592 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3593 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3594 { (exit 1); exit 1; }; }
3597 else
3598 ac_cv_path_GREP=$GREP
3603 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3604 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3605 GREP="$ac_cv_path_GREP"
3608 { echo "$as_me:$LINENO: checking for egrep" >&5
3609 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3610 if test "${ac_cv_path_EGREP+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 else
3613 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3614 then ac_cv_path_EGREP="$GREP -E"
3615 else
3616 # Extract the first word of "egrep" to use in msg output
3617 if test -z "$EGREP"; then
3618 set dummy egrep; ac_prog_name=$2
3619 if test "${ac_cv_path_EGREP+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622 ac_path_EGREP_found=false
3623 # Loop through the user's path and test for each of PROGNAME-LIST
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 for ac_prog in egrep; do
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3632 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3633 # Check for GNU ac_path_EGREP and select it if it is found.
3634 # Check for GNU $ac_path_EGREP
3635 case `"$ac_path_EGREP" --version 2>&1` in
3636 *GNU*)
3637 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3639 ac_count=0
3640 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3641 while :
3643 cat "conftest.in" "conftest.in" >"conftest.tmp"
3644 mv "conftest.tmp" "conftest.in"
3645 cp "conftest.in" "conftest.nl"
3646 echo 'EGREP' >> "conftest.nl"
3647 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3649 ac_count=`expr $ac_count + 1`
3650 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3651 # Best one so far, save it but keep looking for a better one
3652 ac_cv_path_EGREP="$ac_path_EGREP"
3653 ac_path_EGREP_max=$ac_count
3655 # 10*(2^10) chars as input seems more than enough
3656 test $ac_count -gt 10 && break
3657 done
3658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3659 esac
3662 $ac_path_EGREP_found && break 3
3663 done
3664 done
3666 done
3667 IFS=$as_save_IFS
3672 EGREP="$ac_cv_path_EGREP"
3673 if test -z "$EGREP"; then
3674 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3675 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3676 { (exit 1); exit 1; }; }
3679 else
3680 ac_cv_path_EGREP=$EGREP
3686 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3687 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3688 EGREP="$ac_cv_path_EGREP"
3691 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3692 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3693 if test "${ac_cv_header_stdc+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696 cat >conftest.$ac_ext <<_ACEOF
3697 /* confdefs.h. */
3698 _ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3702 #include <stdlib.h>
3703 #include <stdarg.h>
3704 #include <string.h>
3705 #include <float.h>
3708 main ()
3712 return 0;
3714 _ACEOF
3715 rm -f conftest.$ac_objext
3716 if { (ac_try="$ac_compile"
3717 case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720 esac
3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722 (eval "$ac_compile") 2>conftest.er1
3723 ac_status=$?
3724 grep -v '^ *+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } && {
3729 test -z "$ac_cxx_werror_flag" ||
3730 test ! -s conftest.err
3731 } && test -s conftest.$ac_objext; then
3732 ac_cv_header_stdc=yes
3733 else
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3737 ac_cv_header_stdc=no
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 if test $ac_cv_header_stdc = yes; then
3743 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3744 cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h. */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3750 #include <string.h>
3752 _ACEOF
3753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3754 $EGREP "memchr" >/dev/null 2>&1; then
3756 else
3757 ac_cv_header_stdc=no
3759 rm -f conftest*
3763 if test $ac_cv_header_stdc = yes; then
3764 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3765 cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h. */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3771 #include <stdlib.h>
3773 _ACEOF
3774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3775 $EGREP "free" >/dev/null 2>&1; then
3777 else
3778 ac_cv_header_stdc=no
3780 rm -f conftest*
3784 if test $ac_cv_header_stdc = yes; then
3785 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3786 if test "$cross_compiling" = yes; then
3788 else
3789 cat >conftest.$ac_ext <<_ACEOF
3790 /* confdefs.h. */
3791 _ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3795 #include <ctype.h>
3796 #include <stdlib.h>
3797 #if ((' ' & 0x0FF) == 0x020)
3798 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3799 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3800 #else
3801 # define ISLOWER(c) \
3802 (('a' <= (c) && (c) <= 'i') \
3803 || ('j' <= (c) && (c) <= 'r') \
3804 || ('s' <= (c) && (c) <= 'z'))
3805 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3806 #endif
3808 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3810 main ()
3812 int i;
3813 for (i = 0; i < 256; i++)
3814 if (XOR (islower (i), ISLOWER (i))
3815 || toupper (i) != TOUPPER (i))
3816 return 2;
3817 return 0;
3819 _ACEOF
3820 rm -f conftest$ac_exeext
3821 if { (ac_try="$ac_link"
3822 case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_link") 2>&5
3828 ac_status=$?
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3831 { (case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834 esac
3835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836 (eval "$ac_try") 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3841 else
3842 echo "$as_me: program exited with status $ac_status" >&5
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3846 ( exit $ac_status )
3847 ac_cv_header_stdc=no
3849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3855 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3856 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3857 if test $ac_cv_header_stdc = yes; then
3859 cat >>confdefs.h <<\_ACEOF
3860 #define STDC_HEADERS 1
3861 _ACEOF
3865 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3875 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3876 inttypes.h stdint.h unistd.h
3878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884 cat >conftest.$ac_ext <<_ACEOF
3885 /* confdefs.h. */
3886 _ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3890 $ac_includes_default
3892 #include <$ac_header>
3893 _ACEOF
3894 rm -f conftest.$ac_objext
3895 if { (ac_try="$ac_compile"
3896 case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3899 esac
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901 (eval "$ac_compile") 2>conftest.er1
3902 ac_status=$?
3903 grep -v '^ *+' conftest.er1 >conftest.err
3904 rm -f conftest.er1
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } && {
3908 test -z "$ac_cxx_werror_flag" ||
3909 test ! -s conftest.err
3910 } && test -s conftest.$ac_objext; then
3911 eval "$as_ac_Header=yes"
3912 else
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3916 eval "$as_ac_Header=no"
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921 ac_res=`eval echo '${'$as_ac_Header'}'`
3922 { echo "$as_me:$LINENO: result: $ac_res" >&5
3923 echo "${ECHO_T}$ac_res" >&6; }
3924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3925 cat >>confdefs.h <<_ACEOF
3926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3927 _ACEOF
3931 done
3934 { echo "$as_me:$LINENO: checking for FILE" >&5
3935 echo $ECHO_N "checking for FILE... $ECHO_C" >&6; }
3936 if test "${ac_cv_type_FILE+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939 cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h. */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3945 $ac_includes_default
3946 typedef FILE ac__type_new_;
3948 main ()
3950 if ((ac__type_new_ *) 0)
3951 return 0;
3952 if (sizeof (ac__type_new_))
3953 return 0;
3955 return 0;
3957 _ACEOF
3958 rm -f conftest.$ac_objext
3959 if { (ac_try="$ac_compile"
3960 case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3963 esac
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965 (eval "$ac_compile") 2>conftest.er1
3966 ac_status=$?
3967 grep -v '^ *+' conftest.er1 >conftest.err
3968 rm -f conftest.er1
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } && {
3972 test -z "$ac_cxx_werror_flag" ||
3973 test ! -s conftest.err
3974 } && test -s conftest.$ac_objext; then
3975 ac_cv_type_FILE=yes
3976 else
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 ac_cv_type_FILE=no
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 { echo "$as_me:$LINENO: result: $ac_cv_type_FILE" >&5
3986 echo "${ECHO_T}$ac_cv_type_FILE" >&6; }
3987 if test $ac_cv_type_FILE = yes; then
3989 cat >>confdefs.h <<_ACEOF
3990 #define HAVE_FILE 1
3991 _ACEOF
3996 { echo "$as_me:$LINENO: checking for intptr_t" >&5
3997 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
3998 if test "${ac_cv_type_intptr_t+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001 cat >conftest.$ac_ext <<_ACEOF
4002 /* confdefs.h. */
4003 _ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4007 $ac_includes_default
4008 typedef intptr_t ac__type_new_;
4010 main ()
4012 if ((ac__type_new_ *) 0)
4013 return 0;
4014 if (sizeof (ac__type_new_))
4015 return 0;
4017 return 0;
4019 _ACEOF
4020 rm -f conftest.$ac_objext
4021 if { (ac_try="$ac_compile"
4022 case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4025 esac
4026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027 (eval "$ac_compile") 2>conftest.er1
4028 ac_status=$?
4029 grep -v '^ *+' conftest.er1 >conftest.err
4030 rm -f conftest.er1
4031 cat conftest.err >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } && {
4034 test -z "$ac_cxx_werror_flag" ||
4035 test ! -s conftest.err
4036 } && test -s conftest.$ac_objext; then
4037 ac_cv_type_intptr_t=yes
4038 else
4039 echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4042 ac_cv_type_intptr_t=no
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
4048 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
4049 if test $ac_cv_type_intptr_t = yes; then
4051 cat >>confdefs.h <<_ACEOF
4052 #define HAVE_INTPTR_T 1
4053 _ACEOF
4058 { echo "$as_me:$LINENO: checking for time_t" >&5
4059 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
4060 if test "${ac_cv_type_time_t+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063 cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h. */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 $ac_includes_default
4070 typedef time_t ac__type_new_;
4072 main ()
4074 if ((ac__type_new_ *) 0)
4075 return 0;
4076 if (sizeof (ac__type_new_))
4077 return 0;
4079 return 0;
4081 _ACEOF
4082 rm -f conftest.$ac_objext
4083 if { (ac_try="$ac_compile"
4084 case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087 esac
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_compile") 2>conftest.er1
4090 ac_status=$?
4091 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -f conftest.er1
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } && {
4096 test -z "$ac_cxx_werror_flag" ||
4097 test ! -s conftest.err
4098 } && test -s conftest.$ac_objext; then
4099 ac_cv_type_time_t=yes
4100 else
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 ac_cv_type_time_t=no
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
4110 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
4111 if test $ac_cv_type_time_t = yes; then
4113 cat >>confdefs.h <<_ACEOF
4114 #define HAVE_TIME_T 1
4115 _ACEOF
4120 { echo "$as_me:$LINENO: checking for X" >&5
4121 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4124 # Check whether --with-x was given.
4125 if test "${with_x+set}" = set; then
4126 withval=$with_x;
4129 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4130 if test "x$with_x" = xno; then
4131 # The user explicitly disabled X.
4132 have_x=disabled
4133 else
4134 case $x_includes,$x_libraries in #(
4135 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4136 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4137 { (exit 1); exit 1; }; };; #(
4138 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141 # One or both of the vars are not set, and there is no cached value.
4142 ac_x_includes=no ac_x_libraries=no
4143 rm -f -r conftest.dir
4144 if mkdir conftest.dir; then
4145 cd conftest.dir
4146 cat >Imakefile <<'_ACEOF'
4147 incroot:
4148 @echo incroot='${INCROOT}'
4149 usrlibdir:
4150 @echo usrlibdir='${USRLIBDIR}'
4151 libdir:
4152 @echo libdir='${LIBDIR}'
4153 _ACEOF
4154 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4155 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4156 for ac_var in incroot usrlibdir libdir; do
4157 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4158 done
4159 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4160 for ac_extension in a so sl; do
4161 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4162 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4163 ac_im_usrlibdir=$ac_im_libdir; break
4165 done
4166 # Screen out bogus values from the imake configuration. They are
4167 # bogus both because they are the default anyway, and because
4168 # using them would break gcc on systems where it needs fixed includes.
4169 case $ac_im_incroot in
4170 /usr/include) ac_x_includes= ;;
4171 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4172 esac
4173 case $ac_im_usrlibdir in
4174 /usr/lib | /lib) ;;
4175 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4176 esac
4178 cd ..
4179 rm -f -r conftest.dir
4182 # Standard set of common directories for X headers.
4183 # Check X11 before X11Rn because it is often a symlink to the current release.
4184 ac_x_header_dirs='
4185 /usr/X11/include
4186 /usr/X11R6/include
4187 /usr/X11R5/include
4188 /usr/X11R4/include
4190 /usr/include/X11
4191 /usr/include/X11R6
4192 /usr/include/X11R5
4193 /usr/include/X11R4
4195 /usr/local/X11/include
4196 /usr/local/X11R6/include
4197 /usr/local/X11R5/include
4198 /usr/local/X11R4/include
4200 /usr/local/include/X11
4201 /usr/local/include/X11R6
4202 /usr/local/include/X11R5
4203 /usr/local/include/X11R4
4205 /usr/X386/include
4206 /usr/x386/include
4207 /usr/XFree86/include/X11
4209 /usr/include
4210 /usr/local/include
4211 /usr/unsupported/include
4212 /usr/athena/include
4213 /usr/local/x11r5/include
4214 /usr/lpp/Xamples/include
4216 /usr/openwin/include
4217 /usr/openwin/share/include'
4219 if test "$ac_x_includes" = no; then
4220 # Guess where to find include files, by looking for Xlib.h.
4221 # First, try using that file with no special directory specified.
4222 cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h. */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 #include <X11/Xlib.h>
4229 _ACEOF
4230 if { (ac_try="$ac_cpp conftest.$ac_ext"
4231 case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234 esac
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4237 ac_status=$?
4238 grep -v '^ *+' conftest.er1 >conftest.err
4239 rm -f conftest.er1
4240 cat conftest.err >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } >/dev/null && {
4243 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4244 test ! -s conftest.err
4245 }; then
4246 # We can compile using X headers with no special include directory.
4247 ac_x_includes=
4248 else
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4252 for ac_dir in $ac_x_header_dirs; do
4253 if test -r "$ac_dir/X11/Xlib.h"; then
4254 ac_x_includes=$ac_dir
4255 break
4257 done
4260 rm -f conftest.err conftest.$ac_ext
4261 fi # $ac_x_includes = no
4263 if test "$ac_x_libraries" = no; then
4264 # Check for the libraries.
4265 # See if we find them without any special options.
4266 # Don't add to $LIBS permanently.
4267 ac_save_LIBS=$LIBS
4268 LIBS="-lX11 $LIBS"
4269 cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h. */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4275 #include <X11/Xlib.h>
4277 main ()
4279 XrmInitialize ()
4281 return 0;
4283 _ACEOF
4284 rm -f conftest.$ac_objext conftest$ac_exeext
4285 if { (ac_try="$ac_link"
4286 case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289 esac
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_link") 2>conftest.er1
4292 ac_status=$?
4293 grep -v '^ *+' conftest.er1 >conftest.err
4294 rm -f conftest.er1
4295 cat conftest.err >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } && {
4298 test -z "$ac_cxx_werror_flag" ||
4299 test ! -s conftest.err
4300 } && test -s conftest$ac_exeext &&
4301 $as_test_x conftest$ac_exeext; then
4302 LIBS=$ac_save_LIBS
4303 # We can link X programs with no special library path.
4304 ac_x_libraries=
4305 else
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4309 LIBS=$ac_save_LIBS
4310 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4312 # Don't even attempt the hair of trying to link an X program!
4313 for ac_extension in a so sl; do
4314 if test -r "$ac_dir/libX11.$ac_extension"; then
4315 ac_x_libraries=$ac_dir
4316 break 2
4318 done
4319 done
4322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4323 conftest$ac_exeext conftest.$ac_ext
4324 fi # $ac_x_libraries = no
4326 case $ac_x_includes,$ac_x_libraries in #(
4327 no,* | *,no | *\'*)
4328 # Didn't find X, or a directory has "'" in its name.
4329 ac_cv_have_x="have_x=no";; #(
4331 # Record where we found X for the cache.
4332 ac_cv_have_x="have_x=yes\
4333 ac_x_includes='$ac_x_includes'\
4334 ac_x_libraries='$ac_x_libraries'"
4335 esac
4337 ;; #(
4338 *) have_x=yes;;
4339 esac
4340 eval "$ac_cv_have_x"
4341 fi # $with_x != no
4343 if test "$have_x" != yes; then
4344 { echo "$as_me:$LINENO: result: $have_x" >&5
4345 echo "${ECHO_T}$have_x" >&6; }
4346 no_x=yes
4347 else
4348 # If each of the values was on the command line, it overrides each guess.
4349 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4350 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4351 # Update the cache value to reflect the command line values.
4352 ac_cv_have_x="have_x=yes\
4353 ac_x_includes='$x_includes'\
4354 ac_x_libraries='$x_libraries'"
4355 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4356 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4359 if test "$no_x" = yes; then
4360 # Not all programs may use this symbol, but it does not hurt to define it.
4362 cat >>confdefs.h <<\_ACEOF
4363 #define X_DISPLAY_MISSING 1
4364 _ACEOF
4366 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4367 else
4368 if test -n "$x_includes"; then
4369 X_CFLAGS="$X_CFLAGS -I$x_includes"
4372 # It would also be nice to do this for all -L options, not just this one.
4373 if test -n "$x_libraries"; then
4374 X_LIBS="$X_LIBS -L$x_libraries"
4375 # For Solaris; some versions of Sun CC require a space after -R and
4376 # others require no space. Words are not sufficient . . . .
4377 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4378 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4379 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4380 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
4381 ac_cxx_werror_flag=yes
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h. */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4390 main ()
4394 return 0;
4396 _ACEOF
4397 rm -f conftest.$ac_objext conftest$ac_exeext
4398 if { (ac_try="$ac_link"
4399 case "(($ac_try" in
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4402 esac
4403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404 (eval "$ac_link") 2>conftest.er1
4405 ac_status=$?
4406 grep -v '^ *+' conftest.er1 >conftest.err
4407 rm -f conftest.er1
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } && {
4411 test -z "$ac_cxx_werror_flag" ||
4412 test ! -s conftest.err
4413 } && test -s conftest$ac_exeext &&
4414 $as_test_x conftest$ac_exeext; then
4415 { echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6; }
4417 X_LIBS="$X_LIBS -R$x_libraries"
4418 else
4419 echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4422 LIBS="$ac_xsave_LIBS -R $x_libraries"
4423 cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h. */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4431 main ()
4435 return 0;
4437 _ACEOF
4438 rm -f conftest.$ac_objext conftest$ac_exeext
4439 if { (ac_try="$ac_link"
4440 case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443 esac
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445 (eval "$ac_link") 2>conftest.er1
4446 ac_status=$?
4447 grep -v '^ *+' conftest.er1 >conftest.err
4448 rm -f conftest.er1
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } && {
4452 test -z "$ac_cxx_werror_flag" ||
4453 test ! -s conftest.err
4454 } && test -s conftest$ac_exeext &&
4455 $as_test_x conftest$ac_exeext; then
4456 { echo "$as_me:$LINENO: result: yes" >&5
4457 echo "${ECHO_T}yes" >&6; }
4458 X_LIBS="$X_LIBS -R $x_libraries"
4459 else
4460 echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4463 { echo "$as_me:$LINENO: result: neither works" >&5
4464 echo "${ECHO_T}neither works" >&6; }
4467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4468 conftest$ac_exeext conftest.$ac_ext
4471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4472 conftest$ac_exeext conftest.$ac_ext
4473 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
4474 LIBS=$ac_xsave_LIBS
4477 # Check for system-dependent libraries X programs must link with.
4478 # Do this before checking for the system-independent R6 libraries
4479 # (-lICE), since we may need -lsocket or whatever for X linking.
4481 if test "$ISC" = yes; then
4482 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4483 else
4484 # Martyn Johnson says this is needed for Ultrix, if the X
4485 # libraries were built with DECnet support. And Karl Berry says
4486 # the Alpha needs dnet_stub (dnet does not exist).
4487 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4488 cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h. */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4495 /* Override any GCC internal prototype to avoid an error.
4496 Use char because int might match the return type of a GCC
4497 builtin and then its argument prototype would still apply. */
4498 #ifdef __cplusplus
4499 extern "C"
4500 #endif
4501 char XOpenDisplay ();
4503 main ()
4505 return XOpenDisplay ();
4507 return 0;
4509 _ACEOF
4510 rm -f conftest.$ac_objext conftest$ac_exeext
4511 if { (ac_try="$ac_link"
4512 case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515 esac
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517 (eval "$ac_link") 2>conftest.er1
4518 ac_status=$?
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } && {
4524 test -z "$ac_cxx_werror_flag" ||
4525 test ! -s conftest.err
4526 } && test -s conftest$ac_exeext &&
4527 $as_test_x conftest$ac_exeext; then
4529 else
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4533 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4534 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4535 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538 ac_check_lib_save_LIBS=$LIBS
4539 LIBS="-ldnet $LIBS"
4540 cat >conftest.$ac_ext <<_ACEOF
4541 /* confdefs.h. */
4542 _ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4547 /* Override any GCC internal prototype to avoid an error.
4548 Use char because int might match the return type of a GCC
4549 builtin and then its argument prototype would still apply. */
4550 #ifdef __cplusplus
4551 extern "C"
4552 #endif
4553 char dnet_ntoa ();
4555 main ()
4557 return dnet_ntoa ();
4559 return 0;
4561 _ACEOF
4562 rm -f conftest.$ac_objext conftest$ac_exeext
4563 if { (ac_try="$ac_link"
4564 case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567 esac
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569 (eval "$ac_link") 2>conftest.er1
4570 ac_status=$?
4571 grep -v '^ *+' conftest.er1 >conftest.err
4572 rm -f conftest.er1
4573 cat conftest.err >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } && {
4576 test -z "$ac_cxx_werror_flag" ||
4577 test ! -s conftest.err
4578 } && test -s conftest$ac_exeext &&
4579 $as_test_x conftest$ac_exeext; then
4580 ac_cv_lib_dnet_dnet_ntoa=yes
4581 else
4582 echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4585 ac_cv_lib_dnet_dnet_ntoa=no
4588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4589 conftest$ac_exeext conftest.$ac_ext
4590 LIBS=$ac_check_lib_save_LIBS
4592 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4593 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4594 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4595 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4598 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4599 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4600 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4601 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604 ac_check_lib_save_LIBS=$LIBS
4605 LIBS="-ldnet_stub $LIBS"
4606 cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h. */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4613 /* Override any GCC internal prototype to avoid an error.
4614 Use char because int might match the return type of a GCC
4615 builtin and then its argument prototype would still apply. */
4616 #ifdef __cplusplus
4617 extern "C"
4618 #endif
4619 char dnet_ntoa ();
4621 main ()
4623 return dnet_ntoa ();
4625 return 0;
4627 _ACEOF
4628 rm -f conftest.$ac_objext conftest$ac_exeext
4629 if { (ac_try="$ac_link"
4630 case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633 esac
4634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635 (eval "$ac_link") 2>conftest.er1
4636 ac_status=$?
4637 grep -v '^ *+' conftest.er1 >conftest.err
4638 rm -f conftest.er1
4639 cat conftest.err >&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && {
4642 test -z "$ac_cxx_werror_flag" ||
4643 test ! -s conftest.err
4644 } && test -s conftest$ac_exeext &&
4645 $as_test_x conftest$ac_exeext; then
4646 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4647 else
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4651 ac_cv_lib_dnet_stub_dnet_ntoa=no
4654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4655 conftest$ac_exeext conftest.$ac_ext
4656 LIBS=$ac_check_lib_save_LIBS
4658 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4659 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4660 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4661 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4668 conftest$ac_exeext conftest.$ac_ext
4669 LIBS="$ac_xsave_LIBS"
4671 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4672 # to get the SysV transport functions.
4673 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4674 # needs -lnsl.
4675 # The nsl library prevents programs from opening the X display
4676 # on Irix 5.2, according to T.E. Dickey.
4677 # The functions gethostbyname, getservbyname, and inet_addr are
4678 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4679 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4680 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4681 if test "${ac_cv_func_gethostbyname+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684 cat >conftest.$ac_ext <<_ACEOF
4685 /* confdefs.h. */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4692 #define gethostbyname innocuous_gethostbyname
4694 /* System header to define __stub macros and hopefully few prototypes,
4695 which can conflict with char gethostbyname (); below.
4696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4697 <limits.h> exists even on freestanding compilers. */
4699 #ifdef __STDC__
4700 # include <limits.h>
4701 #else
4702 # include <assert.h>
4703 #endif
4705 #undef gethostbyname
4707 /* Override any GCC internal prototype to avoid an error.
4708 Use char because int might match the return type of a GCC
4709 builtin and then its argument prototype would still apply. */
4710 #ifdef __cplusplus
4711 extern "C"
4712 #endif
4713 char gethostbyname ();
4714 /* The GNU C library defines this for functions which it implements
4715 to always fail with ENOSYS. Some functions are actually named
4716 something starting with __ and the normal name is an alias. */
4717 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4718 choke me
4719 #endif
4722 main ()
4724 return gethostbyname ();
4726 return 0;
4728 _ACEOF
4729 rm -f conftest.$ac_objext conftest$ac_exeext
4730 if { (ac_try="$ac_link"
4731 case "(($ac_try" in
4732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4734 esac
4735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736 (eval "$ac_link") 2>conftest.er1
4737 ac_status=$?
4738 grep -v '^ *+' conftest.er1 >conftest.err
4739 rm -f conftest.er1
4740 cat conftest.err >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } && {
4743 test -z "$ac_cxx_werror_flag" ||
4744 test ! -s conftest.err
4745 } && test -s conftest$ac_exeext &&
4746 $as_test_x conftest$ac_exeext; then
4747 ac_cv_func_gethostbyname=yes
4748 else
4749 echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4752 ac_cv_func_gethostbyname=no
4755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4756 conftest$ac_exeext conftest.$ac_ext
4758 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4759 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4761 if test $ac_cv_func_gethostbyname = no; then
4762 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4763 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4764 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767 ac_check_lib_save_LIBS=$LIBS
4768 LIBS="-lnsl $LIBS"
4769 cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h. */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4776 /* Override any GCC internal prototype to avoid an error.
4777 Use char because int might match the return type of a GCC
4778 builtin and then its argument prototype would still apply. */
4779 #ifdef __cplusplus
4780 extern "C"
4781 #endif
4782 char gethostbyname ();
4784 main ()
4786 return gethostbyname ();
4788 return 0;
4790 _ACEOF
4791 rm -f conftest.$ac_objext conftest$ac_exeext
4792 if { (ac_try="$ac_link"
4793 case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796 esac
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_link") 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && {
4805 test -z "$ac_cxx_werror_flag" ||
4806 test ! -s conftest.err
4807 } && test -s conftest$ac_exeext &&
4808 $as_test_x conftest$ac_exeext; then
4809 ac_cv_lib_nsl_gethostbyname=yes
4810 else
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4814 ac_cv_lib_nsl_gethostbyname=no
4817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4818 conftest$ac_exeext conftest.$ac_ext
4819 LIBS=$ac_check_lib_save_LIBS
4821 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4822 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4823 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4824 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4827 if test $ac_cv_lib_nsl_gethostbyname = no; then
4828 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4829 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4830 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833 ac_check_lib_save_LIBS=$LIBS
4834 LIBS="-lbsd $LIBS"
4835 cat >conftest.$ac_ext <<_ACEOF
4836 /* confdefs.h. */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4842 /* Override any GCC internal prototype to avoid an error.
4843 Use char because int might match the return type of a GCC
4844 builtin and then its argument prototype would still apply. */
4845 #ifdef __cplusplus
4846 extern "C"
4847 #endif
4848 char gethostbyname ();
4850 main ()
4852 return gethostbyname ();
4854 return 0;
4856 _ACEOF
4857 rm -f conftest.$ac_objext conftest$ac_exeext
4858 if { (ac_try="$ac_link"
4859 case "(($ac_try" in
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4862 esac
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864 (eval "$ac_link") 2>conftest.er1
4865 ac_status=$?
4866 grep -v '^ *+' conftest.er1 >conftest.err
4867 rm -f conftest.er1
4868 cat conftest.err >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } && {
4871 test -z "$ac_cxx_werror_flag" ||
4872 test ! -s conftest.err
4873 } && test -s conftest$ac_exeext &&
4874 $as_test_x conftest$ac_exeext; then
4875 ac_cv_lib_bsd_gethostbyname=yes
4876 else
4877 echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4880 ac_cv_lib_bsd_gethostbyname=no
4883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4884 conftest$ac_exeext conftest.$ac_ext
4885 LIBS=$ac_check_lib_save_LIBS
4887 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4888 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4889 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4890 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4896 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4897 # socket/setsockopt and other routines are undefined under SCO ODT
4898 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4899 # on later versions), says Simon Leinen: it contains gethostby*
4900 # variants that don't use the name server (or something). -lsocket
4901 # must be given before -lnsl if both are needed. We assume that
4902 # if connect needs -lnsl, so does gethostbyname.
4903 { echo "$as_me:$LINENO: checking for connect" >&5
4904 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4905 if test "${ac_cv_func_connect+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h. */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4916 #define connect innocuous_connect
4918 /* System header to define __stub macros and hopefully few prototypes,
4919 which can conflict with char connect (); below.
4920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4921 <limits.h> exists even on freestanding compilers. */
4923 #ifdef __STDC__
4924 # include <limits.h>
4925 #else
4926 # include <assert.h>
4927 #endif
4929 #undef connect
4931 /* Override any GCC internal prototype to avoid an error.
4932 Use char because int might match the return type of a GCC
4933 builtin and then its argument prototype would still apply. */
4934 #ifdef __cplusplus
4935 extern "C"
4936 #endif
4937 char connect ();
4938 /* The GNU C library defines this for functions which it implements
4939 to always fail with ENOSYS. Some functions are actually named
4940 something starting with __ and the normal name is an alias. */
4941 #if defined __stub_connect || defined __stub___connect
4942 choke me
4943 #endif
4946 main ()
4948 return connect ();
4950 return 0;
4952 _ACEOF
4953 rm -f conftest.$ac_objext conftest$ac_exeext
4954 if { (ac_try="$ac_link"
4955 case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958 esac
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_link") 2>conftest.er1
4961 ac_status=$?
4962 grep -v '^ *+' conftest.er1 >conftest.err
4963 rm -f conftest.er1
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } && {
4967 test -z "$ac_cxx_werror_flag" ||
4968 test ! -s conftest.err
4969 } && test -s conftest$ac_exeext &&
4970 $as_test_x conftest$ac_exeext; then
4971 ac_cv_func_connect=yes
4972 else
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 ac_cv_func_connect=no
4979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4980 conftest$ac_exeext conftest.$ac_ext
4982 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4983 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4985 if test $ac_cv_func_connect = no; then
4986 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4987 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4988 if test "${ac_cv_lib_socket_connect+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991 ac_check_lib_save_LIBS=$LIBS
4992 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4993 cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h. */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
5000 /* Override any GCC internal prototype to avoid an error.
5001 Use char because int might match the return type of a GCC
5002 builtin and then its argument prototype would still apply. */
5003 #ifdef __cplusplus
5004 extern "C"
5005 #endif
5006 char connect ();
5008 main ()
5010 return connect ();
5012 return 0;
5014 _ACEOF
5015 rm -f conftest.$ac_objext conftest$ac_exeext
5016 if { (ac_try="$ac_link"
5017 case "(($ac_try" in
5018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5019 *) ac_try_echo=$ac_try;;
5020 esac
5021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5022 (eval "$ac_link") 2>conftest.er1
5023 ac_status=$?
5024 grep -v '^ *+' conftest.er1 >conftest.err
5025 rm -f conftest.er1
5026 cat conftest.err >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } && {
5029 test -z "$ac_cxx_werror_flag" ||
5030 test ! -s conftest.err
5031 } && test -s conftest$ac_exeext &&
5032 $as_test_x conftest$ac_exeext; then
5033 ac_cv_lib_socket_connect=yes
5034 else
5035 echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5038 ac_cv_lib_socket_connect=no
5041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5042 conftest$ac_exeext conftest.$ac_ext
5043 LIBS=$ac_check_lib_save_LIBS
5045 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5046 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5047 if test $ac_cv_lib_socket_connect = yes; then
5048 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5053 # Guillermo Gomez says -lposix is necessary on A/UX.
5054 { echo "$as_me:$LINENO: checking for remove" >&5
5055 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5056 if test "${ac_cv_func_remove+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059 cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h. */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5067 #define remove innocuous_remove
5069 /* System header to define __stub macros and hopefully few prototypes,
5070 which can conflict with char remove (); below.
5071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5072 <limits.h> exists even on freestanding compilers. */
5074 #ifdef __STDC__
5075 # include <limits.h>
5076 #else
5077 # include <assert.h>
5078 #endif
5080 #undef remove
5082 /* Override any GCC internal prototype to avoid an error.
5083 Use char because int might match the return type of a GCC
5084 builtin and then its argument prototype would still apply. */
5085 #ifdef __cplusplus
5086 extern "C"
5087 #endif
5088 char remove ();
5089 /* The GNU C library defines this for functions which it implements
5090 to always fail with ENOSYS. Some functions are actually named
5091 something starting with __ and the normal name is an alias. */
5092 #if defined __stub_remove || defined __stub___remove
5093 choke me
5094 #endif
5097 main ()
5099 return remove ();
5101 return 0;
5103 _ACEOF
5104 rm -f conftest.$ac_objext conftest$ac_exeext
5105 if { (ac_try="$ac_link"
5106 case "(($ac_try" in
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5109 esac
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_link") 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } && {
5118 test -z "$ac_cxx_werror_flag" ||
5119 test ! -s conftest.err
5120 } && test -s conftest$ac_exeext &&
5121 $as_test_x conftest$ac_exeext; then
5122 ac_cv_func_remove=yes
5123 else
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5127 ac_cv_func_remove=no
5130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5131 conftest$ac_exeext conftest.$ac_ext
5133 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5134 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5136 if test $ac_cv_func_remove = no; then
5137 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5138 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5139 if test "${ac_cv_lib_posix_remove+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142 ac_check_lib_save_LIBS=$LIBS
5143 LIBS="-lposix $LIBS"
5144 cat >conftest.$ac_ext <<_ACEOF
5145 /* confdefs.h. */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5151 /* Override any GCC internal prototype to avoid an error.
5152 Use char because int might match the return type of a GCC
5153 builtin and then its argument prototype would still apply. */
5154 #ifdef __cplusplus
5155 extern "C"
5156 #endif
5157 char remove ();
5159 main ()
5161 return remove ();
5163 return 0;
5165 _ACEOF
5166 rm -f conftest.$ac_objext conftest$ac_exeext
5167 if { (ac_try="$ac_link"
5168 case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5171 esac
5172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173 (eval "$ac_link") 2>conftest.er1
5174 ac_status=$?
5175 grep -v '^ *+' conftest.er1 >conftest.err
5176 rm -f conftest.er1
5177 cat conftest.err >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } && {
5180 test -z "$ac_cxx_werror_flag" ||
5181 test ! -s conftest.err
5182 } && test -s conftest$ac_exeext &&
5183 $as_test_x conftest$ac_exeext; then
5184 ac_cv_lib_posix_remove=yes
5185 else
5186 echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5189 ac_cv_lib_posix_remove=no
5192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5193 conftest$ac_exeext conftest.$ac_ext
5194 LIBS=$ac_check_lib_save_LIBS
5196 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5197 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5198 if test $ac_cv_lib_posix_remove = yes; then
5199 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5204 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5205 { echo "$as_me:$LINENO: checking for shmat" >&5
5206 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5207 if test "${ac_cv_func_shmat+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 cat >conftest.$ac_ext <<_ACEOF
5211 /* confdefs.h. */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5218 #define shmat innocuous_shmat
5220 /* System header to define __stub macros and hopefully few prototypes,
5221 which can conflict with char shmat (); below.
5222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5223 <limits.h> exists even on freestanding compilers. */
5225 #ifdef __STDC__
5226 # include <limits.h>
5227 #else
5228 # include <assert.h>
5229 #endif
5231 #undef shmat
5233 /* Override any GCC internal prototype to avoid an error.
5234 Use char because int might match the return type of a GCC
5235 builtin and then its argument prototype would still apply. */
5236 #ifdef __cplusplus
5237 extern "C"
5238 #endif
5239 char shmat ();
5240 /* The GNU C library defines this for functions which it implements
5241 to always fail with ENOSYS. Some functions are actually named
5242 something starting with __ and the normal name is an alias. */
5243 #if defined __stub_shmat || defined __stub___shmat
5244 choke me
5245 #endif
5248 main ()
5250 return shmat ();
5252 return 0;
5254 _ACEOF
5255 rm -f conftest.$ac_objext conftest$ac_exeext
5256 if { (ac_try="$ac_link"
5257 case "(($ac_try" in
5258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259 *) ac_try_echo=$ac_try;;
5260 esac
5261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262 (eval "$ac_link") 2>conftest.er1
5263 ac_status=$?
5264 grep -v '^ *+' conftest.er1 >conftest.err
5265 rm -f conftest.er1
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } && {
5269 test -z "$ac_cxx_werror_flag" ||
5270 test ! -s conftest.err
5271 } && test -s conftest$ac_exeext &&
5272 $as_test_x conftest$ac_exeext; then
5273 ac_cv_func_shmat=yes
5274 else
5275 echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5278 ac_cv_func_shmat=no
5281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5282 conftest$ac_exeext conftest.$ac_ext
5284 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5285 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5287 if test $ac_cv_func_shmat = no; then
5288 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5289 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5290 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293 ac_check_lib_save_LIBS=$LIBS
5294 LIBS="-lipc $LIBS"
5295 cat >conftest.$ac_ext <<_ACEOF
5296 /* confdefs.h. */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5302 /* Override any GCC internal prototype to avoid an error.
5303 Use char because int might match the return type of a GCC
5304 builtin and then its argument prototype would still apply. */
5305 #ifdef __cplusplus
5306 extern "C"
5307 #endif
5308 char shmat ();
5310 main ()
5312 return shmat ();
5314 return 0;
5316 _ACEOF
5317 rm -f conftest.$ac_objext conftest$ac_exeext
5318 if { (ac_try="$ac_link"
5319 case "(($ac_try" in
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5322 esac
5323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324 (eval "$ac_link") 2>conftest.er1
5325 ac_status=$?
5326 grep -v '^ *+' conftest.er1 >conftest.err
5327 rm -f conftest.er1
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } && {
5331 test -z "$ac_cxx_werror_flag" ||
5332 test ! -s conftest.err
5333 } && test -s conftest$ac_exeext &&
5334 $as_test_x conftest$ac_exeext; then
5335 ac_cv_lib_ipc_shmat=yes
5336 else
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5340 ac_cv_lib_ipc_shmat=no
5343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5344 conftest$ac_exeext conftest.$ac_ext
5345 LIBS=$ac_check_lib_save_LIBS
5347 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5348 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5349 if test $ac_cv_lib_ipc_shmat = yes; then
5350 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5356 # Check for libraries that X11R6 Xt/Xaw programs need.
5357 ac_save_LDFLAGS=$LDFLAGS
5358 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5359 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5360 # check for ICE first), but we must link in the order -lSM -lICE or
5361 # we get undefined symbols. So assume we have SM if we have ICE.
5362 # These have to be linked with before -lX11, unlike the other
5363 # libraries we check for below, so use a different variable.
5364 # John Interrante, Karl Berry
5365 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5366 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5367 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370 ac_check_lib_save_LIBS=$LIBS
5371 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5372 cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h. */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5379 /* Override any GCC internal prototype to avoid an error.
5380 Use char because int might match the return type of a GCC
5381 builtin and then its argument prototype would still apply. */
5382 #ifdef __cplusplus
5383 extern "C"
5384 #endif
5385 char IceConnectionNumber ();
5387 main ()
5389 return IceConnectionNumber ();
5391 return 0;
5393 _ACEOF
5394 rm -f conftest.$ac_objext conftest$ac_exeext
5395 if { (ac_try="$ac_link"
5396 case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399 esac
5400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401 (eval "$ac_link") 2>conftest.er1
5402 ac_status=$?
5403 grep -v '^ *+' conftest.er1 >conftest.err
5404 rm -f conftest.er1
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } && {
5408 test -z "$ac_cxx_werror_flag" ||
5409 test ! -s conftest.err
5410 } && test -s conftest$ac_exeext &&
5411 $as_test_x conftest$ac_exeext; then
5412 ac_cv_lib_ICE_IceConnectionNumber=yes
5413 else
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5417 ac_cv_lib_ICE_IceConnectionNumber=no
5420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5421 conftest$ac_exeext conftest.$ac_ext
5422 LIBS=$ac_check_lib_save_LIBS
5424 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5425 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5426 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5427 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5430 LDFLAGS=$ac_save_LDFLAGS
5436 for ac_header in pty.h util.h
5438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 ac_res=`eval echo '${'$as_ac_Header'}'`
5446 { echo "$as_me:$LINENO: result: $ac_res" >&5
5447 echo "${ECHO_T}$ac_res" >&6; }
5448 else
5449 # Is the header compilable?
5450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 $ac_includes_default
5459 #include <$ac_header>
5460 _ACEOF
5461 rm -f conftest.$ac_objext
5462 if { (ac_try="$ac_compile"
5463 case "(($ac_try" in
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5466 esac
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_compile") 2>conftest.er1
5469 ac_status=$?
5470 grep -v '^ *+' conftest.er1 >conftest.err
5471 rm -f conftest.er1
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } && {
5475 test -z "$ac_cxx_werror_flag" ||
5476 test ! -s conftest.err
5477 } && test -s conftest.$ac_objext; then
5478 ac_header_compiler=yes
5479 else
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5483 ac_header_compiler=no
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5488 echo "${ECHO_T}$ac_header_compiler" >&6; }
5490 # Is the header present?
5491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5493 cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h. */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 #include <$ac_header>
5500 _ACEOF
5501 if { (ac_try="$ac_cpp conftest.$ac_ext"
5502 case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505 esac
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5508 ac_status=$?
5509 grep -v '^ *+' conftest.er1 >conftest.err
5510 rm -f conftest.er1
5511 cat conftest.err >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } >/dev/null && {
5514 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5515 test ! -s conftest.err
5516 }; then
5517 ac_header_preproc=yes
5518 else
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5522 ac_header_preproc=no
5525 rm -f conftest.err conftest.$ac_ext
5526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5527 echo "${ECHO_T}$ac_header_preproc" >&6; }
5529 # So? What about this header?
5530 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5531 yes:no: )
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5536 ac_header_preproc=yes
5538 no:yes:* )
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5553 esac
5554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559 eval "$as_ac_Header=\$ac_header_preproc"
5561 ac_res=`eval echo '${'$as_ac_Header'}'`
5562 { echo "$as_me:$LINENO: result: $ac_res" >&5
5563 echo "${ECHO_T}$ac_res" >&6; }
5566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5567 cat >>confdefs.h <<_ACEOF
5568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5569 _ACEOF
5573 done
5576 for ac_func in gettimeofday
5578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584 cat >conftest.$ac_ext <<_ACEOF
5585 /* confdefs.h. */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5592 #define $ac_func innocuous_$ac_func
5594 /* System header to define __stub macros and hopefully few prototypes,
5595 which can conflict with char $ac_func (); below.
5596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5597 <limits.h> exists even on freestanding compilers. */
5599 #ifdef __STDC__
5600 # include <limits.h>
5601 #else
5602 # include <assert.h>
5603 #endif
5605 #undef $ac_func
5607 /* Override any GCC internal prototype to avoid an error.
5608 Use char because int might match the return type of a GCC
5609 builtin and then its argument prototype would still apply. */
5610 #ifdef __cplusplus
5611 extern "C"
5612 #endif
5613 char $ac_func ();
5614 /* The GNU C library defines this for functions which it implements
5615 to always fail with ENOSYS. Some functions are actually named
5616 something starting with __ and the normal name is an alias. */
5617 #if defined __stub_$ac_func || defined __stub___$ac_func
5618 choke me
5619 #endif
5622 main ()
5624 return $ac_func ();
5626 return 0;
5628 _ACEOF
5629 rm -f conftest.$ac_objext conftest$ac_exeext
5630 if { (ac_try="$ac_link"
5631 case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5634 esac
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_link") 2>conftest.er1
5637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
5639 rm -f conftest.er1
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && {
5643 test -z "$ac_cxx_werror_flag" ||
5644 test ! -s conftest.err
5645 } && test -s conftest$ac_exeext &&
5646 $as_test_x conftest$ac_exeext; then
5647 eval "$as_ac_var=yes"
5648 else
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5652 eval "$as_ac_var=no"
5655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5656 conftest$ac_exeext conftest.$ac_ext
5658 ac_res=`eval echo '${'$as_ac_var'}'`
5659 { echo "$as_me:$LINENO: result: $ac_res" >&5
5660 echo "${ECHO_T}$ac_res" >&6; }
5661 if test `eval echo '${'$as_ac_var'}'` = yes; then
5662 cat >>confdefs.h <<_ACEOF
5663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5664 _ACEOF
5667 done
5670 #--------------------------------------------------------------------
5671 # Checks for dl library
5672 #--------------------------------------------------------------------
5674 { echo "$as_me:$LINENO: checking for dlopen" >&5
5675 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
5676 if test "${ac_cv_func_dlopen+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 else
5679 cat >conftest.$ac_ext <<_ACEOF
5680 /* confdefs.h. */
5681 _ACEOF
5682 cat confdefs.h >>conftest.$ac_ext
5683 cat >>conftest.$ac_ext <<_ACEOF
5684 /* end confdefs.h. */
5685 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
5686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5687 #define dlopen innocuous_dlopen
5689 /* System header to define __stub macros and hopefully few prototypes,
5690 which can conflict with char dlopen (); below.
5691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5692 <limits.h> exists even on freestanding compilers. */
5694 #ifdef __STDC__
5695 # include <limits.h>
5696 #else
5697 # include <assert.h>
5698 #endif
5700 #undef dlopen
5702 /* Override any GCC internal prototype to avoid an error.
5703 Use char because int might match the return type of a GCC
5704 builtin and then its argument prototype would still apply. */
5705 #ifdef __cplusplus
5706 extern "C"
5707 #endif
5708 char dlopen ();
5709 /* The GNU C library defines this for functions which it implements
5710 to always fail with ENOSYS. Some functions are actually named
5711 something starting with __ and the normal name is an alias. */
5712 #if defined __stub_dlopen || defined __stub___dlopen
5713 choke me
5714 #endif
5717 main ()
5719 return dlopen ();
5721 return 0;
5723 _ACEOF
5724 rm -f conftest.$ac_objext conftest$ac_exeext
5725 if { (ac_try="$ac_link"
5726 case "(($ac_try" in
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5729 esac
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_link") 2>conftest.er1
5732 ac_status=$?
5733 grep -v '^ *+' conftest.er1 >conftest.err
5734 rm -f conftest.er1
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } && {
5738 test -z "$ac_cxx_werror_flag" ||
5739 test ! -s conftest.err
5740 } && test -s conftest$ac_exeext &&
5741 $as_test_x conftest$ac_exeext; then
5742 ac_cv_func_dlopen=yes
5743 else
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5747 ac_cv_func_dlopen=no
5750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5751 conftest$ac_exeext conftest.$ac_ext
5753 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
5754 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
5756 if test "$ac_cv_func_dl" = "yes"; then
5758 cat >>confdefs.h <<\_ACEOF
5759 #define DYNAMIC_LINKING 1
5760 _ACEOF
5762 else
5764 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5765 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5766 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769 ac_check_lib_save_LIBS=$LIBS
5770 LIBS="-ldl $LIBS"
5771 cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h. */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5778 /* Override any GCC internal prototype to avoid an error.
5779 Use char because int might match the return type of a GCC
5780 builtin and then its argument prototype would still apply. */
5781 #ifdef __cplusplus
5782 extern "C"
5783 #endif
5784 char dlopen ();
5786 main ()
5788 return dlopen ();
5790 return 0;
5792 _ACEOF
5793 rm -f conftest.$ac_objext conftest$ac_exeext
5794 if { (ac_try="$ac_link"
5795 case "(($ac_try" in
5796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5797 *) ac_try_echo=$ac_try;;
5798 esac
5799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5800 (eval "$ac_link") 2>conftest.er1
5801 ac_status=$?
5802 grep -v '^ *+' conftest.er1 >conftest.err
5803 rm -f conftest.er1
5804 cat conftest.err >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } && {
5807 test -z "$ac_cxx_werror_flag" ||
5808 test ! -s conftest.err
5809 } && test -s conftest$ac_exeext &&
5810 $as_test_x conftest$ac_exeext; then
5811 ac_cv_lib_dl_dlopen=yes
5812 else
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5816 ac_cv_lib_dl_dlopen=no
5819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5820 conftest$ac_exeext conftest.$ac_ext
5821 LIBS=$ac_check_lib_save_LIBS
5823 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5824 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5825 if test $ac_cv_lib_dl_dlopen = yes; then
5826 cat >>confdefs.h <<_ACEOF
5827 #define HAVE_LIBDL 1
5828 _ACEOF
5830 LIBS="-ldl $LIBS"
5834 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5836 for ac_func in dlopen
5838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5839 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h. */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5852 #define $ac_func innocuous_$ac_func
5854 /* System header to define __stub macros and hopefully few prototypes,
5855 which can conflict with char $ac_func (); below.
5856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5857 <limits.h> exists even on freestanding compilers. */
5859 #ifdef __STDC__
5860 # include <limits.h>
5861 #else
5862 # include <assert.h>
5863 #endif
5865 #undef $ac_func
5867 /* Override any GCC internal prototype to avoid an error.
5868 Use char because int might match the return type of a GCC
5869 builtin and then its argument prototype would still apply. */
5870 #ifdef __cplusplus
5871 extern "C"
5872 #endif
5873 char $ac_func ();
5874 /* The GNU C library defines this for functions which it implements
5875 to always fail with ENOSYS. Some functions are actually named
5876 something starting with __ and the normal name is an alias. */
5877 #if defined __stub_$ac_func || defined __stub___$ac_func
5878 choke me
5879 #endif
5882 main ()
5884 return $ac_func ();
5886 return 0;
5888 _ACEOF
5889 rm -f conftest.$ac_objext conftest$ac_exeext
5890 if { (ac_try="$ac_link"
5891 case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894 esac
5895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_link") 2>conftest.er1
5897 ac_status=$?
5898 grep -v '^ *+' conftest.er1 >conftest.err
5899 rm -f conftest.er1
5900 cat conftest.err >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } && {
5903 test -z "$ac_cxx_werror_flag" ||
5904 test ! -s conftest.err
5905 } && test -s conftest$ac_exeext &&
5906 $as_test_x conftest$ac_exeext; then
5907 eval "$as_ac_var=yes"
5908 else
5909 echo "$as_me: failed program was:" >&5
5910 sed 's/^/| /' conftest.$ac_ext >&5
5912 eval "$as_ac_var=no"
5915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5916 conftest$ac_exeext conftest.$ac_ext
5918 ac_res=`eval echo '${'$as_ac_var'}'`
5919 { echo "$as_me:$LINENO: result: $ac_res" >&5
5920 echo "${ECHO_T}$ac_res" >&6; }
5921 if test `eval echo '${'$as_ac_var'}'` = yes; then
5922 cat >>confdefs.h <<_ACEOF
5923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5924 _ACEOF
5927 done
5929 CONFIG_BDL="-ldl"
5931 cat >>confdefs.h <<\_ACEOF
5932 #define DYNAMIC_LINKING 1
5933 _ACEOF
5935 else
5937 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
5938 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
5939 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942 ac_check_lib_save_LIBS=$LIBS
5943 LIBS="-ldld $LIBS"
5944 cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h. */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5951 /* Override any GCC internal prototype to avoid an error.
5952 Use char because int might match the return type of a GCC
5953 builtin and then its argument prototype would still apply. */
5954 #ifdef __cplusplus
5955 extern "C"
5956 #endif
5957 char dld_link ();
5959 main ()
5961 return dld_link ();
5963 return 0;
5965 _ACEOF
5966 rm -f conftest.$ac_objext conftest$ac_exeext
5967 if { (ac_try="$ac_link"
5968 case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5971 esac
5972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_link") 2>conftest.er1
5974 ac_status=$?
5975 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1
5977 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } && {
5980 test -z "$ac_cxx_werror_flag" ||
5981 test ! -s conftest.err
5982 } && test -s conftest$ac_exeext &&
5983 $as_test_x conftest$ac_exeext; then
5984 ac_cv_lib_dld_dld_link=yes
5985 else
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5989 ac_cv_lib_dld_dld_link=no
5992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5993 conftest$ac_exeext conftest.$ac_ext
5994 LIBS=$ac_check_lib_save_LIBS
5996 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
5997 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
5998 if test $ac_cv_lib_dld_dld_link = yes; then
5999 cat >>confdefs.h <<_ACEOF
6000 #define HAVE_LIBDLD 1
6001 _ACEOF
6003 LIBS="-ldld $LIBS"
6007 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
6008 CONFIG_BDL="-ldl"
6010 cat >>confdefs.h <<\_ACEOF
6011 #define DYNAMIC_LINKING 1
6012 _ACEOF
6014 else
6016 for ac_func in shl_load
6018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024 cat >conftest.$ac_ext <<_ACEOF
6025 /* confdefs.h. */
6026 _ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6032 #define $ac_func innocuous_$ac_func
6034 /* System header to define __stub macros and hopefully few prototypes,
6035 which can conflict with char $ac_func (); below.
6036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6037 <limits.h> exists even on freestanding compilers. */
6039 #ifdef __STDC__
6040 # include <limits.h>
6041 #else
6042 # include <assert.h>
6043 #endif
6045 #undef $ac_func
6047 /* Override any GCC internal prototype to avoid an error.
6048 Use char because int might match the return type of a GCC
6049 builtin and then its argument prototype would still apply. */
6050 #ifdef __cplusplus
6051 extern "C"
6052 #endif
6053 char $ac_func ();
6054 /* The GNU C library defines this for functions which it implements
6055 to always fail with ENOSYS. Some functions are actually named
6056 something starting with __ and the normal name is an alias. */
6057 #if defined __stub_$ac_func || defined __stub___$ac_func
6058 choke me
6059 #endif
6062 main ()
6064 return $ac_func ();
6066 return 0;
6068 _ACEOF
6069 rm -f conftest.$ac_objext conftest$ac_exeext
6070 if { (ac_try="$ac_link"
6071 case "(($ac_try" in
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6074 esac
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_link") 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } && {
6083 test -z "$ac_cxx_werror_flag" ||
6084 test ! -s conftest.err
6085 } && test -s conftest$ac_exeext &&
6086 $as_test_x conftest$ac_exeext; then
6087 eval "$as_ac_var=yes"
6088 else
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 eval "$as_ac_var=no"
6095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6096 conftest$ac_exeext conftest.$ac_ext
6098 ac_res=`eval echo '${'$as_ac_var'}'`
6099 { echo "$as_me:$LINENO: result: $ac_res" >&5
6100 echo "${ECHO_T}$ac_res" >&6; }
6101 if test `eval echo '${'$as_ac_var'}'` = yes; then
6102 cat >>confdefs.h <<_ACEOF
6103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6104 _ACEOF
6107 done
6109 if test "$ac_cv_func_shl_load" = "yes"; then
6110 CONFIG_BDL="-ldl"
6112 cat >>confdefs.h <<\_ACEOF
6113 #define DYNAMIC_LINKING 1
6114 _ACEOF
6116 else
6118 for ac_func in dlopen
6120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6121 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126 cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h. */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6134 #define $ac_func innocuous_$ac_func
6136 /* System header to define __stub macros and hopefully few prototypes,
6137 which can conflict with char $ac_func (); below.
6138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6139 <limits.h> exists even on freestanding compilers. */
6141 #ifdef __STDC__
6142 # include <limits.h>
6143 #else
6144 # include <assert.h>
6145 #endif
6147 #undef $ac_func
6149 /* Override any GCC internal prototype to avoid an error.
6150 Use char because int might match the return type of a GCC
6151 builtin and then its argument prototype would still apply. */
6152 #ifdef __cplusplus
6153 extern "C"
6154 #endif
6155 char $ac_func ();
6156 /* The GNU C library defines this for functions which it implements
6157 to always fail with ENOSYS. Some functions are actually named
6158 something starting with __ and the normal name is an alias. */
6159 #if defined __stub_$ac_func || defined __stub___$ac_func
6160 choke me
6161 #endif
6164 main ()
6166 return $ac_func ();
6168 return 0;
6170 _ACEOF
6171 rm -f conftest.$ac_objext conftest$ac_exeext
6172 if { (ac_try="$ac_link"
6173 case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176 esac
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_link") 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } && {
6185 test -z "$ac_cxx_werror_flag" ||
6186 test ! -s conftest.err
6187 } && test -s conftest$ac_exeext &&
6188 $as_test_x conftest$ac_exeext; then
6189 eval "$as_ac_var=yes"
6190 else
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6194 eval "$as_ac_var=no"
6197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6198 conftest$ac_exeext conftest.$ac_ext
6200 ac_res=`eval echo '${'$as_ac_var'}'`
6201 { echo "$as_me:$LINENO: result: $ac_res" >&5
6202 echo "${ECHO_T}$ac_res" >&6; }
6203 if test `eval echo '${'$as_ac_var'}'` = yes; then
6204 cat >>confdefs.h <<_ACEOF
6205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6206 _ACEOF
6209 done
6211 if test "$ac_cv_func_dlopen" = "yes"; then
6213 cat >>confdefs.h <<\_ACEOF
6214 #define DYNAMIC_LINKING 1
6215 _ACEOF
6224 #--------------------------------------------------------------------
6225 # Checks for iconv library
6226 #--------------------------------------------------------------------
6229 # Check whether --with-iconv was given.
6230 if test "${with_iconv+set}" = set; then
6231 withval=$with_iconv;
6235 # Check for iconv
6236 # Modified from GNOME's libxml2 configure.in
6238 ac_ext=c
6239 ac_cpp='$CPP $CPPFLAGS'
6240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6243 # compile C to avoid the 'const char**' problem
6244 SAVE_CPPFLAGS="$CPPFLAGS"
6245 SAVE_LDFLAGS="$LDFLAGS"
6246 SAVE_LIBS="$LIBS"
6247 if test "$with_iconv" = "no" ; then
6248 { echo "$as_me:$LINENO: result: disabling iconv support" >&5
6249 echo "${ECHO_T}disabling iconv support" >&6; }
6250 else
6251 if test -n "$ICONV_CFLAGS" -a -n "$ICONV_LDFLAGS"; then
6252 CPPFLAGS="$ICONV_CFLAGS" # for AC_TRY_LINK
6254 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
6255 CPPFLAGS="-I$with_iconv/include" # for AC_TRY_LINK
6256 ICONV_CFLAGS="-I$with_iconv/include"
6257 ICONV_LDFLAGS="-L$with_iconv/lib"
6260 ac_ext=c
6261 ac_cpp='$CPP $CPPFLAGS'
6262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6265 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6266 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6267 # On Suns, sometimes $CPP names a directory.
6268 if test -n "$CPP" && test -d "$CPP"; then
6269 CPP=
6271 if test -z "$CPP"; then
6272 if test "${ac_cv_prog_CPP+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275 # Double quotes because CPP needs to be expanded
6276 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6278 ac_preproc_ok=false
6279 for ac_c_preproc_warn_flag in '' yes
6281 # Use a header file that comes with gcc, so configuring glibc
6282 # with a fresh cross-compiler works.
6283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6284 # <limits.h> exists even on freestanding compilers.
6285 # On the NeXT, cc -E runs the code through the compiler's parser,
6286 # not just through cpp. "Syntax error" is here to catch this case.
6287 cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h. */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6293 #ifdef __STDC__
6294 # include <limits.h>
6295 #else
6296 # include <assert.h>
6297 #endif
6298 Syntax error
6299 _ACEOF
6300 if { (ac_try="$ac_cpp conftest.$ac_ext"
6301 case "(($ac_try" in
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6304 esac
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6307 ac_status=$?
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } >/dev/null && {
6313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6314 test ! -s conftest.err
6315 }; then
6317 else
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6321 # Broken: fails on valid input.
6322 continue
6325 rm -f conftest.err conftest.$ac_ext
6327 # OK, works on sane cases. Now check whether nonexistent headers
6328 # can be detected and how.
6329 cat >conftest.$ac_ext <<_ACEOF
6330 /* confdefs.h. */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 #include <ac_nonexistent.h>
6336 _ACEOF
6337 if { (ac_try="$ac_cpp conftest.$ac_ext"
6338 case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6341 esac
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6344 ac_status=$?
6345 grep -v '^ *+' conftest.er1 >conftest.err
6346 rm -f conftest.er1
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } >/dev/null && {
6350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6351 test ! -s conftest.err
6352 }; then
6353 # Broken: success on invalid input.
6354 continue
6355 else
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6359 # Passes both tests.
6360 ac_preproc_ok=:
6361 break
6364 rm -f conftest.err conftest.$ac_ext
6366 done
6367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6368 rm -f conftest.err conftest.$ac_ext
6369 if $ac_preproc_ok; then
6370 break
6373 done
6374 ac_cv_prog_CPP=$CPP
6377 CPP=$ac_cv_prog_CPP
6378 else
6379 ac_cv_prog_CPP=$CPP
6381 { echo "$as_me:$LINENO: result: $CPP" >&5
6382 echo "${ECHO_T}$CPP" >&6; }
6383 ac_preproc_ok=false
6384 for ac_c_preproc_warn_flag in '' yes
6386 # Use a header file that comes with gcc, so configuring glibc
6387 # with a fresh cross-compiler works.
6388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6389 # <limits.h> exists even on freestanding compilers.
6390 # On the NeXT, cc -E runs the code through the compiler's parser,
6391 # not just through cpp. "Syntax error" is here to catch this case.
6392 cat >conftest.$ac_ext <<_ACEOF
6393 /* confdefs.h. */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 #ifdef __STDC__
6399 # include <limits.h>
6400 #else
6401 # include <assert.h>
6402 #endif
6403 Syntax error
6404 _ACEOF
6405 if { (ac_try="$ac_cpp conftest.$ac_ext"
6406 case "(($ac_try" in
6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6409 esac
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } >/dev/null && {
6418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6419 test ! -s conftest.err
6420 }; then
6422 else
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 # Broken: fails on valid input.
6427 continue
6430 rm -f conftest.err conftest.$ac_ext
6432 # OK, works on sane cases. Now check whether nonexistent headers
6433 # can be detected and how.
6434 cat >conftest.$ac_ext <<_ACEOF
6435 /* confdefs.h. */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6440 #include <ac_nonexistent.h>
6441 _ACEOF
6442 if { (ac_try="$ac_cpp conftest.$ac_ext"
6443 case "(($ac_try" in
6444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6445 *) ac_try_echo=$ac_try;;
6446 esac
6447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6449 ac_status=$?
6450 grep -v '^ *+' conftest.er1 >conftest.err
6451 rm -f conftest.er1
6452 cat conftest.err >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } >/dev/null && {
6455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6456 test ! -s conftest.err
6457 }; then
6458 # Broken: success on invalid input.
6459 continue
6460 else
6461 echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6464 # Passes both tests.
6465 ac_preproc_ok=:
6466 break
6469 rm -f conftest.err conftest.$ac_ext
6471 done
6472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6473 rm -f conftest.err conftest.$ac_ext
6474 if $ac_preproc_ok; then
6476 else
6477 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6478 See \`config.log' for more details." >&5
6479 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6480 See \`config.log' for more details." >&2;}
6481 { (exit 1); exit 1; }; }
6484 ac_ext=c
6485 ac_cpp='$CPP $CPPFLAGS'
6486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6491 if test "${ac_cv_header_iconv_h+set}" = set; then
6492 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6493 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6494 if test "${ac_cv_header_iconv_h+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6498 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6499 else
6500 # Is the header compilable?
6501 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
6502 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
6503 cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h. */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 $ac_includes_default
6510 #include <iconv.h>
6511 _ACEOF
6512 rm -f conftest.$ac_objext
6513 if { (ac_try="$ac_compile"
6514 case "(($ac_try" in
6515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6516 *) ac_try_echo=$ac_try;;
6517 esac
6518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6519 (eval "$ac_compile") 2>conftest.er1
6520 ac_status=$?
6521 grep -v '^ *+' conftest.er1 >conftest.err
6522 rm -f conftest.er1
6523 cat conftest.err >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } && {
6526 test -z "$ac_c_werror_flag" ||
6527 test ! -s conftest.err
6528 } && test -s conftest.$ac_objext; then
6529 ac_header_compiler=yes
6530 else
6531 echo "$as_me: failed program was:" >&5
6532 sed 's/^/| /' conftest.$ac_ext >&5
6534 ac_header_compiler=no
6537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6539 echo "${ECHO_T}$ac_header_compiler" >&6; }
6541 # Is the header present?
6542 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
6543 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
6544 cat >conftest.$ac_ext <<_ACEOF
6545 /* confdefs.h. */
6546 _ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h. */
6550 #include <iconv.h>
6551 _ACEOF
6552 if { (ac_try="$ac_cpp conftest.$ac_ext"
6553 case "(($ac_try" in
6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6556 esac
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6559 ac_status=$?
6560 grep -v '^ *+' conftest.er1 >conftest.err
6561 rm -f conftest.er1
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } >/dev/null && {
6565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6566 test ! -s conftest.err
6567 }; then
6568 ac_header_preproc=yes
6569 else
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6573 ac_header_preproc=no
6576 rm -f conftest.err conftest.$ac_ext
6577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6578 echo "${ECHO_T}$ac_header_preproc" >&6; }
6580 # So? What about this header?
6581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6582 yes:no: )
6583 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
6584 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6585 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
6586 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
6587 ac_header_preproc=yes
6589 no:yes:* )
6590 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
6591 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
6592 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
6593 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
6594 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
6595 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
6596 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
6597 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
6598 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
6599 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
6601 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
6604 esac
6605 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6606 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6607 if test "${ac_cv_header_iconv_h+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 else
6610 ac_cv_header_iconv_h=$ac_header_preproc
6612 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6613 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6616 if test $ac_cv_header_iconv_h = yes; then
6617 { echo "$as_me:$LINENO: checking for iconv" >&5
6618 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6620 cat >conftest.$ac_ext <<_ACEOF
6621 /* confdefs.h. */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6627 #include <stdlib.h>
6628 #include <iconv.h>
6631 main ()
6634 iconv_t cd = iconv_open ("","");
6635 iconv (cd, NULL, NULL, NULL, NULL);
6638 return 0;
6640 _ACEOF
6641 rm -f conftest.$ac_objext conftest$ac_exeext
6642 if { (ac_try="$ac_link"
6643 case "(($ac_try" in
6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6646 esac
6647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648 (eval "$ac_link") 2>conftest.er1
6649 ac_status=$?
6650 grep -v '^ *+' conftest.er1 >conftest.err
6651 rm -f conftest.er1
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } && {
6655 test -z "$ac_c_werror_flag" ||
6656 test ! -s conftest.err
6657 } && test -s conftest$ac_exeext &&
6658 $as_test_x conftest$ac_exeext; then
6660 { echo "$as_me:$LINENO: result: yes" >&5
6661 echo "${ECHO_T}yes" >&6; }
6663 cat >>confdefs.h <<\_ACEOF
6664 #define USE_ICONV 1
6665 _ACEOF
6668 else
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6673 { echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6; }
6675 { echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
6676 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6; }
6677 LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
6678 LIBS="-liconv" # for AC_TRY_LINK
6679 cat >conftest.$ac_ext <<_ACEOF
6680 /* confdefs.h. */
6681 _ACEOF
6682 cat confdefs.h >>conftest.$ac_ext
6683 cat >>conftest.$ac_ext <<_ACEOF
6684 /* end confdefs.h. */
6686 #include <stdlib.h>
6687 #include <iconv.h>
6690 main ()
6693 iconv_t cd = iconv_open ("","");
6694 iconv (cd, NULL, NULL, NULL, NULL);
6697 return 0;
6699 _ACEOF
6700 rm -f conftest.$ac_objext conftest$ac_exeext
6701 if { (ac_try="$ac_link"
6702 case "(($ac_try" in
6703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704 *) ac_try_echo=$ac_try;;
6705 esac
6706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6707 (eval "$ac_link") 2>conftest.er1
6708 ac_status=$?
6709 grep -v '^ *+' conftest.er1 >conftest.err
6710 rm -f conftest.er1
6711 cat conftest.err >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } && {
6714 test -z "$ac_c_werror_flag" ||
6715 test ! -s conftest.err
6716 } && test -s conftest$ac_exeext &&
6717 $as_test_x conftest$ac_exeext; then
6719 { echo "$as_me:$LINENO: result: yes" >&5
6720 echo "${ECHO_T}yes" >&6; }
6722 cat >>confdefs.h <<\_ACEOF
6723 #define USE_ICONV 1
6724 _ACEOF
6726 ICONV_LDFLAGS="${ICONV_LDFLAGS/-liconv} -liconv"
6728 else
6729 echo "$as_me: failed program was:" >&5
6730 sed 's/^/| /' conftest.$ac_ext >&5
6733 { echo "$as_me:$LINENO: result: no" >&5
6734 echo "${ECHO_T}no" >&6; }
6735 { echo "$as_me:$LINENO: WARNING: absence of iconv may crash HTML import" >&5
6736 echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
6740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6741 conftest$ac_exeext conftest.$ac_ext
6744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6745 conftest$ac_exeext conftest.$ac_ext
6751 CPPFLAGS="$SAVE_CPPFLAGS"
6752 LDFLAGS="$SAVE_LDFLAGS"
6753 LIBS="$SAVE_LIBS"
6754 ac_ext=cpp
6755 ac_cpp='$CXXCPP $CPPFLAGS'
6756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6759 # restore C++ language
6763 #--------------------------------------------------------------------
6764 # Checks for freetype library
6765 #--------------------------------------------------------------------
6768 # Check whether --with-freetype was given.
6769 if test "${with_freetype+set}" = set; then
6770 withval=$with_freetype;
6774 SAVE_CPPFLAGS="$CPPFLAGS"
6775 SAVE_LDFLAGS="$LDFLAGS"
6776 SAVE_LIBS="$LIBS"
6777 if test "$with_freetype" = "no" ; then
6778 { echo "$as_me:$LINENO: result: disabling freetype support" >&5
6779 echo "${ECHO_T}disabling freetype support" >&6; }
6780 else
6781 if test -z "$FREETYPE_CFLAGS"; then
6782 FREETYPE_CFLAGS=`freetype-config --cflags`
6784 CPPFLAGS="$FREETYPE_CFLAGS"
6785 if test -z "$FREETYPE_LDFLAGS"; then
6786 FREETYPE_LDFLAGS=`freetype-config --libs`
6788 LIBS="$FREETYPE_LDFLAGS"
6789 if test "${ac_cv_header_ft2build_h+set}" = set; then
6790 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6791 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6792 if test "${ac_cv_header_ft2build_h+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6796 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6797 else
6798 # Is the header compilable?
6799 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
6800 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 $ac_includes_default
6808 #include <ft2build.h>
6809 _ACEOF
6810 rm -f conftest.$ac_objext
6811 if { (ac_try="$ac_compile"
6812 case "(($ac_try" in
6813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814 *) ac_try_echo=$ac_try;;
6815 esac
6816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6817 (eval "$ac_compile") 2>conftest.er1
6818 ac_status=$?
6819 grep -v '^ *+' conftest.er1 >conftest.err
6820 rm -f conftest.er1
6821 cat conftest.err >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } && {
6824 test -z "$ac_cxx_werror_flag" ||
6825 test ! -s conftest.err
6826 } && test -s conftest.$ac_objext; then
6827 ac_header_compiler=yes
6828 else
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6832 ac_header_compiler=no
6835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6837 echo "${ECHO_T}$ac_header_compiler" >&6; }
6839 # Is the header present?
6840 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
6841 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
6842 cat >conftest.$ac_ext <<_ACEOF
6843 /* confdefs.h. */
6844 _ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6848 #include <ft2build.h>
6849 _ACEOF
6850 if { (ac_try="$ac_cpp conftest.$ac_ext"
6851 case "(($ac_try" in
6852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6853 *) ac_try_echo=$ac_try;;
6854 esac
6855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6857 ac_status=$?
6858 grep -v '^ *+' conftest.er1 >conftest.err
6859 rm -f conftest.er1
6860 cat conftest.err >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } >/dev/null && {
6863 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6864 test ! -s conftest.err
6865 }; then
6866 ac_header_preproc=yes
6867 else
6868 echo "$as_me: failed program was:" >&5
6869 sed 's/^/| /' conftest.$ac_ext >&5
6871 ac_header_preproc=no
6874 rm -f conftest.err conftest.$ac_ext
6875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6876 echo "${ECHO_T}$ac_header_preproc" >&6; }
6878 # So? What about this header?
6879 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6880 yes:no: )
6881 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
6882 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6883 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
6884 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
6885 ac_header_preproc=yes
6887 no:yes:* )
6888 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
6889 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
6890 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
6891 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
6892 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
6893 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
6894 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
6895 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
6896 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
6897 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
6898 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
6899 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
6902 esac
6903 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6904 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6905 if test "${ac_cv_header_ft2build_h+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 else
6908 ac_cv_header_ft2build_h=$ac_header_preproc
6910 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6911 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6914 if test $ac_cv_header_ft2build_h = yes; then
6915 { echo "$as_me:$LINENO: checking for freetype" >&5
6916 echo $ECHO_N "checking for freetype... $ECHO_C" >&6; }
6917 cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h. */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6924 #include <ft2build.h>
6925 #include FT_FREETYPE_H
6928 main ()
6931 FT_Library ft_library;
6932 (void) FT_Init_FreeType (&ft_library);
6935 return 0;
6937 _ACEOF
6938 rm -f conftest.$ac_objext conftest$ac_exeext
6939 if { (ac_try="$ac_link"
6940 case "(($ac_try" in
6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6943 esac
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945 (eval "$ac_link") 2>conftest.er1
6946 ac_status=$?
6947 grep -v '^ *+' conftest.er1 >conftest.err
6948 rm -f conftest.er1
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_exeext &&
6955 $as_test_x conftest$ac_exeext; then
6957 { echo "$as_me:$LINENO: result: yes" >&5
6958 echo "${ECHO_T}yes" >&6; }
6960 cat >>confdefs.h <<\_ACEOF
6961 #define USE_FREETYPE 1
6962 _ACEOF
6964 FREETYPE_CFLAGS="$CPPFLAGS"
6965 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
6966 FREETYPE_LDFLAGS="$LIBS"
6968 cat >>confdefs.h <<\_ACEOF
6969 #define LINKED_FREETYPE 1
6970 _ACEOF
6974 else
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6979 { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6984 conftest$ac_exeext conftest.$ac_ext
6990 CPPFLAGS="$SAVE_CPPFLAGS"
6991 LDFLAGS="$SAVE_LDFLAGS"
6992 LIBS="$SAVE_LIBS"
6997 #--------------------------------------------------------------------
6998 # Checks for Cairo library
6999 #--------------------------------------------------------------------
7002 # Check whether --with-cairo was given.
7003 if test "${with_cairo+set}" = set; then
7004 withval=$with_cairo;
7008 SAVE_CPPFLAGS="$CPPFLAGS"
7009 SAVE_LDFLAGS="$LDFLAGS"
7010 SAVE_LIBS="$LIBS"
7011 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
7012 { echo "$as_me:$LINENO: result: disabling cairo support" >&5
7013 echo "${ECHO_T}disabling cairo support" >&6; }
7014 else
7015 CPPFLAGS=`pkg-config --cflags cairo`
7016 LIBS=`pkg-config --libs cairo`
7017 if test "${ac_cv_header_cairo_h+set}" = set; then
7018 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7019 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7020 if test "${ac_cv_header_cairo_h+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7024 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7025 else
7026 # Is the header compilable?
7027 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
7028 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h. */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 $ac_includes_default
7036 #include <cairo.h>
7037 _ACEOF
7038 rm -f conftest.$ac_objext
7039 if { (ac_try="$ac_compile"
7040 case "(($ac_try" in
7041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042 *) ac_try_echo=$ac_try;;
7043 esac
7044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7045 (eval "$ac_compile") 2>conftest.er1
7046 ac_status=$?
7047 grep -v '^ *+' conftest.er1 >conftest.err
7048 rm -f conftest.er1
7049 cat conftest.err >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } && {
7052 test -z "$ac_cxx_werror_flag" ||
7053 test ! -s conftest.err
7054 } && test -s conftest.$ac_objext; then
7055 ac_header_compiler=yes
7056 else
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 ac_header_compiler=no
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7065 echo "${ECHO_T}$ac_header_compiler" >&6; }
7067 # Is the header present?
7068 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
7069 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
7070 cat >conftest.$ac_ext <<_ACEOF
7071 /* confdefs.h. */
7072 _ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7076 #include <cairo.h>
7077 _ACEOF
7078 if { (ac_try="$ac_cpp conftest.$ac_ext"
7079 case "(($ac_try" in
7080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081 *) ac_try_echo=$ac_try;;
7082 esac
7083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7085 ac_status=$?
7086 grep -v '^ *+' conftest.er1 >conftest.err
7087 rm -f conftest.er1
7088 cat conftest.err >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } >/dev/null && {
7091 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7092 test ! -s conftest.err
7093 }; then
7094 ac_header_preproc=yes
7095 else
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7099 ac_header_preproc=no
7102 rm -f conftest.err conftest.$ac_ext
7103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7104 echo "${ECHO_T}$ac_header_preproc" >&6; }
7106 # So? What about this header?
7107 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7108 yes:no: )
7109 { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
7110 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7111 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
7112 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
7113 ac_header_preproc=yes
7115 no:yes:* )
7116 { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
7117 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
7118 { echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
7119 echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
7120 { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
7121 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
7122 { echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
7123 echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
7124 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
7125 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
7126 { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
7127 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
7130 esac
7131 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7132 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7133 if test "${ac_cv_header_cairo_h+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136 ac_cv_header_cairo_h=$ac_header_preproc
7138 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7139 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7142 if test $ac_cv_header_cairo_h = yes; then
7143 { echo "$as_me:$LINENO: checking for cairo" >&5
7144 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
7145 cat >conftest.$ac_ext <<_ACEOF
7146 /* confdefs.h. */
7147 _ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7152 #include <cairo.h>
7155 main ()
7158 cairo_surface_t *surface;
7159 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
7162 return 0;
7164 _ACEOF
7165 rm -f conftest.$ac_objext conftest$ac_exeext
7166 if { (ac_try="$ac_link"
7167 case "(($ac_try" in
7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169 *) ac_try_echo=$ac_try;;
7170 esac
7171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7172 (eval "$ac_link") 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && {
7179 test -z "$ac_cxx_werror_flag" ||
7180 test ! -s conftest.err
7181 } && test -s conftest$ac_exeext &&
7182 $as_test_x conftest$ac_exeext; then
7184 { echo "$as_me:$LINENO: result: yes" >&5
7185 echo "${ECHO_T}yes" >&6; }
7187 cat >>confdefs.h <<\_ACEOF
7188 #define USE_CAIRO 1
7189 _ACEOF
7191 CAIRO_CFLAGS="$CPPFLAGS"
7192 if test "$with_cairo" = "linked" ; then
7193 CAIRO_LDFLAGS="$LIBS"
7195 cat >>confdefs.h <<\_ACEOF
7196 #define LINKED_CAIRO 1
7197 _ACEOF
7201 else
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7206 { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7211 conftest$ac_exeext conftest.$ac_ext
7217 CPPFLAGS="$SAVE_CPPFLAGS"
7218 LDFLAGS="$SAVE_LDFLAGS"
7219 LIBS="$SAVE_LIBS"
7224 #--------------------------------------------------------------------
7225 # Checks for Imlib2 library
7226 #--------------------------------------------------------------------
7229 # Check whether --with-imlib2 was given.
7230 if test "${with_imlib2+set}" = set; then
7231 withval=$with_imlib2;
7235 SAVE_CPPFLAGS="$CPPFLAGS"
7236 SAVE_LDFLAGS="$LDFLAGS"
7237 SAVE_LIBS="$LIBS"
7238 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
7239 { echo "$as_me:$LINENO: result: disabling imlib2 support" >&5
7240 echo "${ECHO_T}disabling imlib2 support" >&6; }
7241 else
7242 CPPFLAGS=`imlib2-config --cflags`
7243 LIBS=`imlib2-config --libs`
7244 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7245 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7246 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7247 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7251 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7252 else
7253 # Is the header compilable?
7254 { echo "$as_me:$LINENO: checking Imlib2.h usability" >&5
7255 echo $ECHO_N "checking Imlib2.h usability... $ECHO_C" >&6; }
7256 cat >conftest.$ac_ext <<_ACEOF
7257 /* confdefs.h. */
7258 _ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7262 $ac_includes_default
7263 #include <Imlib2.h>
7264 _ACEOF
7265 rm -f conftest.$ac_objext
7266 if { (ac_try="$ac_compile"
7267 case "(($ac_try" in
7268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269 *) ac_try_echo=$ac_try;;
7270 esac
7271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7272 (eval "$ac_compile") 2>conftest.er1
7273 ac_status=$?
7274 grep -v '^ *+' conftest.er1 >conftest.err
7275 rm -f conftest.er1
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } && {
7279 test -z "$ac_cxx_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest.$ac_objext; then
7282 ac_header_compiler=yes
7283 else
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7287 ac_header_compiler=no
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7292 echo "${ECHO_T}$ac_header_compiler" >&6; }
7294 # Is the header present?
7295 { echo "$as_me:$LINENO: checking Imlib2.h presence" >&5
7296 echo $ECHO_N "checking Imlib2.h presence... $ECHO_C" >&6; }
7297 cat >conftest.$ac_ext <<_ACEOF
7298 /* confdefs.h. */
7299 _ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h. */
7303 #include <Imlib2.h>
7304 _ACEOF
7305 if { (ac_try="$ac_cpp conftest.$ac_ext"
7306 case "(($ac_try" in
7307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308 *) ac_try_echo=$ac_try;;
7309 esac
7310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7312 ac_status=$?
7313 grep -v '^ *+' conftest.er1 >conftest.err
7314 rm -f conftest.er1
7315 cat conftest.err >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } >/dev/null && {
7318 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7319 test ! -s conftest.err
7320 }; then
7321 ac_header_preproc=yes
7322 else
7323 echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7326 ac_header_preproc=no
7329 rm -f conftest.err conftest.$ac_ext
7330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7331 echo "${ECHO_T}$ac_header_preproc" >&6; }
7333 # So? What about this header?
7334 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7335 yes:no: )
7336 { echo "$as_me:$LINENO: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&5
7337 echo "$as_me: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7338 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the compiler's result" >&5
7339 echo "$as_me: WARNING: Imlib2.h: proceeding with the compiler's result" >&2;}
7340 ac_header_preproc=yes
7342 no:yes:* )
7343 { echo "$as_me:$LINENO: WARNING: Imlib2.h: present but cannot be compiled" >&5
7344 echo "$as_me: WARNING: Imlib2.h: present but cannot be compiled" >&2;}
7345 { echo "$as_me:$LINENO: WARNING: Imlib2.h: check for missing prerequisite headers?" >&5
7346 echo "$as_me: WARNING: Imlib2.h: check for missing prerequisite headers?" >&2;}
7347 { echo "$as_me:$LINENO: WARNING: Imlib2.h: see the Autoconf documentation" >&5
7348 echo "$as_me: WARNING: Imlib2.h: see the Autoconf documentation" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&5
7350 echo "$as_me: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&5
7352 echo "$as_me: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&2;}
7353 { echo "$as_me:$LINENO: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&5
7354 echo "$as_me: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&2;}
7357 esac
7358 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7359 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7360 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363 ac_cv_header_Imlib2_h=$ac_header_preproc
7365 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7366 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7369 if test $ac_cv_header_Imlib2_h = yes; then
7370 { echo "$as_me:$LINENO: checking for imlib2" >&5
7371 echo $ECHO_N "checking for imlib2... $ECHO_C" >&6; }
7372 cat >conftest.$ac_ext <<_ACEOF
7373 /* confdefs.h. */
7374 _ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7379 #include <X11/Xlib.h>
7380 #include <Imlib2.h>
7381 #include <stdio.h>
7382 #include <string.h>
7385 main ()
7388 Imlib_Image image= imlib_load_image("");
7391 return 0;
7393 _ACEOF
7394 rm -f conftest.$ac_objext conftest$ac_exeext
7395 if { (ac_try="$ac_link"
7396 case "(($ac_try" in
7397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398 *) ac_try_echo=$ac_try;;
7399 esac
7400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401 (eval "$ac_link") 2>conftest.er1
7402 ac_status=$?
7403 grep -v '^ *+' conftest.er1 >conftest.err
7404 rm -f conftest.er1
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } && {
7408 test -z "$ac_cxx_werror_flag" ||
7409 test ! -s conftest.err
7410 } && test -s conftest$ac_exeext &&
7411 $as_test_x conftest$ac_exeext; then
7413 { echo "$as_me:$LINENO: result: yes" >&5
7414 echo "${ECHO_T}yes" >&6; }
7416 cat >>confdefs.h <<\_ACEOF
7417 #define USE_IMLIB2 1
7418 _ACEOF
7420 IMLIB2_CFLAGS="$CPPFLAGS"
7421 if test "$with_imlib2" = "linked" ; then
7422 IMLIB2_LDFLAGS="$LIBS"
7424 cat >>confdefs.h <<\_ACEOF
7425 #define LINKED_IMLIB2 1
7426 _ACEOF
7430 else
7431 echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7435 { echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6; }
7439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7440 conftest$ac_exeext conftest.$ac_ext
7446 CPPFLAGS="$SAVE_CPPFLAGS"
7447 LDFLAGS="$SAVE_LDFLAGS"
7448 LIBS="$SAVE_LIBS"
7453 #--------------------------------------------------------------------
7454 # Checks for Axel library
7455 #--------------------------------------------------------------------
7458 # Check whether --with-axel was given.
7459 if test "${with_axel+set}" = set; then
7460 withval=$with_axel;
7464 SAVE_CPPFLAGS="$CPPFLAGS"
7465 SAVE_LDFLAGS="$LDFLAGS"
7466 SAVE_LIBS="$LIBS"
7467 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
7468 { echo "$as_me:$LINENO: result: disabling axel support" >&5
7469 echo "${ECHO_T}disabling axel support" >&6; }
7470 else
7471 CPPFLAGS=`axel-config --cflags`
7472 LIBS=`axel-config --libs`
7473 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7474 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7475 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7476 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7480 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7481 else
7482 # Is the header compilable?
7483 { echo "$as_me:$LINENO: checking QGui/Viewer.h usability" >&5
7484 echo $ECHO_N "checking QGui/Viewer.h usability... $ECHO_C" >&6; }
7485 cat >conftest.$ac_ext <<_ACEOF
7486 /* confdefs.h. */
7487 _ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h. */
7491 $ac_includes_default
7492 #include <QGui/Viewer.h>
7493 _ACEOF
7494 rm -f conftest.$ac_objext
7495 if { (ac_try="$ac_compile"
7496 case "(($ac_try" in
7497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7498 *) ac_try_echo=$ac_try;;
7499 esac
7500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7501 (eval "$ac_compile") 2>conftest.er1
7502 ac_status=$?
7503 grep -v '^ *+' conftest.er1 >conftest.err
7504 rm -f conftest.er1
7505 cat conftest.err >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } && {
7508 test -z "$ac_cxx_werror_flag" ||
7509 test ! -s conftest.err
7510 } && test -s conftest.$ac_objext; then
7511 ac_header_compiler=yes
7512 else
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7516 ac_header_compiler=no
7519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7521 echo "${ECHO_T}$ac_header_compiler" >&6; }
7523 # Is the header present?
7524 { echo "$as_me:$LINENO: checking QGui/Viewer.h presence" >&5
7525 echo $ECHO_N "checking QGui/Viewer.h presence... $ECHO_C" >&6; }
7526 cat >conftest.$ac_ext <<_ACEOF
7527 /* confdefs.h. */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7532 #include <QGui/Viewer.h>
7533 _ACEOF
7534 if { (ac_try="$ac_cpp conftest.$ac_ext"
7535 case "(($ac_try" in
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7538 esac
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7541 ac_status=$?
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } >/dev/null && {
7547 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7548 test ! -s conftest.err
7549 }; then
7550 ac_header_preproc=yes
7551 else
7552 echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.$ac_ext >&5
7555 ac_header_preproc=no
7558 rm -f conftest.err conftest.$ac_ext
7559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7560 echo "${ECHO_T}$ac_header_preproc" >&6; }
7562 # So? What about this header?
7563 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7564 yes:no: )
7565 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&5
7566 echo "$as_me: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7567 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&5
7568 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&2;}
7569 ac_header_preproc=yes
7571 no:yes:* )
7572 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: present but cannot be compiled" >&5
7573 echo "$as_me: WARNING: QGui/Viewer.h: present but cannot be compiled" >&2;}
7574 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&5
7575 echo "$as_me: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&2;}
7576 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&5
7577 echo "$as_me: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&2;}
7578 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&5
7579 echo "$as_me: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&2;}
7580 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&5
7581 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&2;}
7582 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&5
7583 echo "$as_me: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&2;}
7586 esac
7587 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7588 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7589 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592 ac_cv_header_QGui_Viewer_h=$ac_header_preproc
7594 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7595 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7598 if test $ac_cv_header_QGui_Viewer_h = yes; then
7599 { echo "$as_me:$LINENO: checking for axel" >&5
7600 echo $ECHO_N "checking for axel... $ECHO_C" >&6; }
7601 cat >conftest.$ac_ext <<_ACEOF
7602 /* confdefs.h. */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7608 #include <QGui/Viewer.h>
7611 main ()
7614 Viewer viewer(0);
7617 return 0;
7619 _ACEOF
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (ac_try="$ac_link"
7622 case "(($ac_try" in
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7625 esac
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_link") 2>conftest.er1
7628 ac_status=$?
7629 grep -v '^ *+' conftest.er1 >conftest.err
7630 rm -f conftest.er1
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } && {
7634 test -z "$ac_cxx_werror_flag" ||
7635 test ! -s conftest.err
7636 } && test -s conftest$ac_exeext &&
7637 $as_test_x conftest$ac_exeext; then
7639 { echo "$as_me:$LINENO: result: yes" >&5
7640 echo "${ECHO_T}yes" >&6; }
7642 cat >>confdefs.h <<\_ACEOF
7643 #define USE_AXEL 1
7644 _ACEOF
7646 AXEL_CFLAGS="$CPPFLAGS"
7647 if test "$with_axel" = "linked" ; then
7648 AXEL_LDFLAGS="$LIBS"
7650 cat >>confdefs.h <<\_ACEOF
7651 #define LINKED_AXEL 1
7652 _ACEOF
7656 else
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7661 { echo "$as_me:$LINENO: result: no" >&5
7662 echo "${ECHO_T}no" >&6; }
7665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7666 conftest$ac_exeext conftest.$ac_ext
7672 CPPFLAGS="$SAVE_CPPFLAGS"
7673 LDFLAGS="$SAVE_LDFLAGS"
7674 LIBS="$SAVE_LIBS"
7679 #--------------------------------------------------------------------
7680 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
7681 #--------------------------------------------------------------------
7683 { echo "$as_me:$LINENO: checking whether ... arguments behave correctly" >&5
7684 echo $ECHO_N "checking whether ... arguments behave correctly... $ECHO_C" >&6; }
7685 if test -z "$GUILE_CFLAGS"; then
7686 CXXFLAGS="`guile-config compile`"
7687 else
7688 CXXFLAGS="$GUILE_CFLAGS"
7690 cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h. */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7697 #include <guile/gh.h>
7698 #include <libguile.h>
7699 typedef SCM (*FN)(...);
7700 static SCM identity (SCM x) { return x; }
7701 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
7704 main ()
7709 return 0;
7711 _ACEOF
7712 rm -f conftest.$ac_objext
7713 if { (ac_try="$ac_compile"
7714 case "(($ac_try" in
7715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7717 esac
7718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719 (eval "$ac_compile") 2>conftest.er1
7720 ac_status=$?
7721 grep -v '^ *+' conftest.er1 >conftest.err
7722 rm -f conftest.er1
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } && {
7726 test -z "$ac_cxx_werror_flag" ||
7727 test ! -s conftest.err
7728 } && test -s conftest.$ac_objext; then
7731 cat >>confdefs.h <<\_ACEOF
7732 #define DOTS_OK 1
7733 _ACEOF
7735 { echo "$as_me:$LINENO: result: yes" >&5
7736 echo "${ECHO_T}yes" >&6; }
7738 else
7739 echo "$as_me: failed program was:" >&5
7740 sed 's/^/| /' conftest.$ac_ext >&5
7743 { echo "$as_me:$LINENO: result: no" >&5
7744 echo "${ECHO_T}no" >&6; }
7748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 CXXFLAGS=""
7751 { echo "$as_me:$LINENO: checking the size_t of guile strings" >&5
7752 echo $ECHO_N "checking the size_t of guile strings... $ECHO_C" >&6; }
7753 if test -z "$GUILE_CFLAGS"; then
7754 CXXFLAGS="`guile-config compile`"
7755 else
7756 CXXFLAGS="$GUILE_CFLAGS"
7758 cat >conftest.$ac_ext <<_ACEOF
7759 /* confdefs.h. */
7760 _ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7765 #include <guile/gh.h>
7766 #include <libguile.h>
7767 void print_string (SCM s) {
7768 int len_r;
7769 char* r= gh_scm2newstr (s, &len_r); }
7772 main ()
7777 return 0;
7779 _ACEOF
7780 rm -f conftest.$ac_objext
7781 if { (ac_try="$ac_compile"
7782 case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7785 esac
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787 (eval "$ac_compile") 2>conftest.er1
7788 ac_status=$?
7789 grep -v '^ *+' conftest.er1 >conftest.err
7790 rm -f conftest.er1
7791 cat conftest.err >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } && {
7794 test -z "$ac_cxx_werror_flag" ||
7795 test ! -s conftest.err
7796 } && test -s conftest.$ac_objext; then
7799 cat >>confdefs.h <<\_ACEOF
7800 #define guile_str_size_t int
7801 _ACEOF
7803 { echo "$as_me:$LINENO: result: int" >&5
7804 echo "${ECHO_T}int" >&6; }
7806 else
7807 echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7812 cat >>confdefs.h <<\_ACEOF
7813 #define guile_str_size_t size_t
7814 _ACEOF
7816 { echo "$as_me:$LINENO: result: size_t" >&5
7817 echo "${ECHO_T}size_t" >&6; }
7821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822 CXXFLAGS=""
7824 { echo "$as_me:$LINENO: checking if statically linking with guile works" >&5
7825 echo $ECHO_N "checking if statically linking with guile works... $ECHO_C" >&6; }
7826 SAVE_CPPFLAGS="$CPPFLAGS"
7827 SAVE_LDFLAGS="$LDFLAGS"
7828 SAVE_LIBS="$LIBS"
7829 CPPFLAGS="$GUILE_CFLAGS"
7830 LDFLAGS="-static"
7831 LIBS="$GUILE_LDFLAGS"
7832 cat >conftest.$ac_ext <<_ACEOF
7833 /* confdefs.h. */
7834 _ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h. */
7839 #include <guile/gh.h>
7840 $CONFIG_DOTS
7843 main ()
7846 struct dummy {
7847 static void my_main (int argc, char** argv) {}
7848 static void install_guile () {
7849 #ifdef DOTS_OK
7850 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7851 #else
7852 gh_enter (0, NULL, my_main);
7853 #endif
7856 dummy::install_guile ();
7859 return 0;
7861 _ACEOF
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (ac_try="$ac_link"
7864 case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867 esac
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_link") 2>conftest.er1
7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } && {
7876 test -z "$ac_cxx_werror_flag" ||
7877 test ! -s conftest.err
7878 } && test -s conftest$ac_exeext &&
7879 $as_test_x conftest$ac_exeext; then
7880 tm_link_guile_static="yes"
7881 else
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7885 tm_link_guile_static="no"
7888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7889 conftest$ac_exeext conftest.$ac_ext
7891 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static\"" >&5
7892 echo "${ECHO_T}\"$tm_link_guile_static\"" >&6; }
7893 if test "$tm_link_guile_static" = "no" ; then
7894 { echo "$as_me:$LINENO: checking if it works with -lltdl" >&5
7895 echo $ECHO_N "checking if it works with -lltdl... $ECHO_C" >&6; }
7896 LIBS="$GUILE_LDFLAGS -lltdl"
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h. */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7904 #include <guile/gh.h>
7905 $CONFIG_DOTS
7908 main ()
7911 struct dummy {
7912 static void my_main (int argc, char** argv) {}
7913 static void install_guile () {
7914 #ifdef DOTS_OK
7915 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7916 #else
7917 gh_enter (0, NULL, my_main);
7918 #endif
7921 dummy::install_guile ();
7924 return 0;
7926 _ACEOF
7927 rm -f conftest.$ac_objext conftest$ac_exeext
7928 if { (ac_try="$ac_link"
7929 case "(($ac_try" in
7930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931 *) ac_try_echo=$ac_try;;
7932 esac
7933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934 (eval "$ac_link") 2>conftest.er1
7935 ac_status=$?
7936 grep -v '^ *+' conftest.er1 >conftest.err
7937 rm -f conftest.er1
7938 cat conftest.err >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } && {
7941 test -z "$ac_cxx_werror_flag" ||
7942 test ! -s conftest.err
7943 } && test -s conftest$ac_exeext &&
7944 $as_test_x conftest$ac_exeext; then
7945 tm_link_guile_static_ltdl="yes"
7946 else
7947 echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7950 tm_link_guile_static_ltdl="no"
7953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7954 conftest$ac_exeext conftest.$ac_ext
7956 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl\"" >&5
7957 echo "${ECHO_T}\"$tm_link_guile_static_ltdl\"" >&6; }
7958 if test "$tm_link_guile_static_ltdl" = "yes" ; then
7959 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl"
7960 else
7961 { echo "$as_me:$LINENO: checking if it works with -lltdl -ldl" >&5
7962 echo $ECHO_N "checking if it works with -lltdl -ldl... $ECHO_C" >&6; }
7963 LIBS="$GUILE_LDFLAGS -lltdl -ldl"
7964 cat >conftest.$ac_ext <<_ACEOF
7965 /* confdefs.h. */
7966 _ACEOF
7967 cat confdefs.h >>conftest.$ac_ext
7968 cat >>conftest.$ac_ext <<_ACEOF
7969 /* end confdefs.h. */
7971 #include <guile/gh.h>
7972 $CONFIG_DOTS
7975 main ()
7978 struct dummy {
7979 static void my_main (int argc, char** argv) {}
7980 static void install_guile () {
7981 #ifdef DOTS_OK
7982 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7983 #else
7984 gh_enter (0, NULL, my_main);
7985 #endif
7988 dummy::install_guile ();
7991 return 0;
7993 _ACEOF
7994 rm -f conftest.$ac_objext conftest$ac_exeext
7995 if { (ac_try="$ac_link"
7996 case "(($ac_try" in
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
7999 esac
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_link") 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
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_exeext &&
8011 $as_test_x conftest$ac_exeext; then
8012 tm_link_guile_static_ltdl_ldl="yes"
8013 else
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8017 tm_link_guile_static_ltdl_ldl="no"
8020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8021 conftest$ac_exeext conftest.$ac_ext
8023 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
8024 echo "${ECHO_T}\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
8025 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
8026 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
8027 else
8028 { echo "$as_me:$LINENO: WARNING: unable to link statically with guile" >&5
8029 echo "$as_me: WARNING: unable to link statically with guile" >&2;}
8033 CPPFLAGS="$SAVE_CPFLAGS"
8034 LDFLAGS="$SAVE_LDFLAGS"
8035 LIBS="$SAVE_LIBS"
8037 #--------------------------------------------------------------------
8038 # Handle different systems case by case
8039 #--------------------------------------------------------------------
8041 CONFIG_OS="GNU_LINUX"
8042 CONFIG_OS_SUFFIX="gnu-linux"
8043 CONFIG_MACOS=""
8044 CONFIG_CXXFLAGS=""
8045 CONFIG_CXXTEMPLATE=""
8046 CONFIG_STD_SETENV="#define STD_SETENV"
8047 CONFIG_SO="so"
8048 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
8049 CONFIG_CHMOD="chmod -f"
8050 CONFIG_CXXOPTIMIZE="-O2"
8051 CONFIG_BSTATIC="-Wl,-Bstatic"
8052 CONFIG_BSHARED="-Wl,-Bdynamic"
8053 CONFIG_BFLAGS=""
8054 CONFIG_BPATH="-Wl,-rpath,"
8055 CONFIG_WORD_LENGTH="4"
8056 CONFIG_WORD_LENGTH_INC="3"
8057 CONFIG_WORD_MASK="0xfffffffc"
8058 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
8060 X11_CFLAGS="$X_CFLAGS"
8061 X11_LDFLAGS="$X_LIBS -lXext -lX11"
8063 { echo "$as_me:$LINENO: checking for void *" >&5
8064 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8065 if test "${ac_cv_type_void_p+set}" = set; then
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
8067 else
8068 cat >conftest.$ac_ext <<_ACEOF
8069 /* confdefs.h. */
8070 _ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h. */
8074 $ac_includes_default
8075 typedef void * ac__type_new_;
8077 main ()
8079 if ((ac__type_new_ *) 0)
8080 return 0;
8081 if (sizeof (ac__type_new_))
8082 return 0;
8084 return 0;
8086 _ACEOF
8087 rm -f conftest.$ac_objext
8088 if { (ac_try="$ac_compile"
8089 case "(($ac_try" in
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8092 esac
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_compile") 2>conftest.er1
8095 ac_status=$?
8096 grep -v '^ *+' conftest.er1 >conftest.err
8097 rm -f conftest.er1
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } && {
8101 test -z "$ac_cxx_werror_flag" ||
8102 test ! -s conftest.err
8103 } && test -s conftest.$ac_objext; then
8104 ac_cv_type_void_p=yes
8105 else
8106 echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8109 ac_cv_type_void_p=no
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8115 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8117 # The cast to long int works around a bug in the HP C Compiler
8118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8120 # This bug is HP SR number 8606223364.
8121 { echo "$as_me:$LINENO: checking size of void *" >&5
8122 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8123 if test "${ac_cv_sizeof_void_p+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 else
8126 if test "$cross_compiling" = yes; then
8127 # Depending upon the size, compute the lo and hi bounds.
8128 cat >conftest.$ac_ext <<_ACEOF
8129 /* confdefs.h. */
8130 _ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h. */
8134 $ac_includes_default
8135 typedef void * ac__type_sizeof_;
8137 main ()
8139 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8140 test_array [0] = 0
8143 return 0;
8145 _ACEOF
8146 rm -f conftest.$ac_objext
8147 if { (ac_try="$ac_compile"
8148 case "(($ac_try" in
8149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8151 esac
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153 (eval "$ac_compile") 2>conftest.er1
8154 ac_status=$?
8155 grep -v '^ *+' conftest.er1 >conftest.err
8156 rm -f conftest.er1
8157 cat conftest.err >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } && {
8160 test -z "$ac_cxx_werror_flag" ||
8161 test ! -s conftest.err
8162 } && test -s conftest.$ac_objext; then
8163 ac_lo=0 ac_mid=0
8164 while :; do
8165 cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h. */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8171 $ac_includes_default
8172 typedef void * ac__type_sizeof_;
8174 main ()
8176 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8177 test_array [0] = 0
8180 return 0;
8182 _ACEOF
8183 rm -f conftest.$ac_objext
8184 if { (ac_try="$ac_compile"
8185 case "(($ac_try" in
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8188 esac
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_compile") 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && {
8197 test -z "$ac_cxx_werror_flag" ||
8198 test ! -s conftest.err
8199 } && test -s conftest.$ac_objext; then
8200 ac_hi=$ac_mid; break
8201 else
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8205 ac_lo=`expr $ac_mid + 1`
8206 if test $ac_lo -le $ac_mid; then
8207 ac_lo= ac_hi=
8208 break
8210 ac_mid=`expr 2 '*' $ac_mid + 1`
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214 done
8215 else
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8219 cat >conftest.$ac_ext <<_ACEOF
8220 /* confdefs.h. */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225 $ac_includes_default
8226 typedef void * ac__type_sizeof_;
8228 main ()
8230 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8231 test_array [0] = 0
8234 return 0;
8236 _ACEOF
8237 rm -f conftest.$ac_objext
8238 if { (ac_try="$ac_compile"
8239 case "(($ac_try" in
8240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241 *) ac_try_echo=$ac_try;;
8242 esac
8243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244 (eval "$ac_compile") 2>conftest.er1
8245 ac_status=$?
8246 grep -v '^ *+' conftest.er1 >conftest.err
8247 rm -f conftest.er1
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } && {
8251 test -z "$ac_cxx_werror_flag" ||
8252 test ! -s conftest.err
8253 } && test -s conftest.$ac_objext; then
8254 ac_hi=-1 ac_mid=-1
8255 while :; do
8256 cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h. */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 $ac_includes_default
8263 typedef void * ac__type_sizeof_;
8265 main ()
8267 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8268 test_array [0] = 0
8271 return 0;
8273 _ACEOF
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8276 case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_cxx_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.$ac_objext; then
8291 ac_lo=$ac_mid; break
8292 else
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8296 ac_hi=`expr '(' $ac_mid ')' - 1`
8297 if test $ac_mid -le $ac_hi; then
8298 ac_lo= ac_hi=
8299 break
8301 ac_mid=`expr 2 '*' $ac_mid`
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305 done
8306 else
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8310 ac_lo= ac_hi=
8313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317 # Binary search between lo and hi bounds.
8318 while test "x$ac_lo" != "x$ac_hi"; do
8319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8320 cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h. */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8326 $ac_includes_default
8327 typedef void * ac__type_sizeof_;
8329 main ()
8331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8332 test_array [0] = 0
8335 return 0;
8337 _ACEOF
8338 rm -f conftest.$ac_objext
8339 if { (ac_try="$ac_compile"
8340 case "(($ac_try" in
8341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342 *) ac_try_echo=$ac_try;;
8343 esac
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345 (eval "$ac_compile") 2>conftest.er1
8346 ac_status=$?
8347 grep -v '^ *+' conftest.er1 >conftest.err
8348 rm -f conftest.er1
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } && {
8352 test -z "$ac_cxx_werror_flag" ||
8353 test ! -s conftest.err
8354 } && test -s conftest.$ac_objext; then
8355 ac_hi=$ac_mid
8356 else
8357 echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8360 ac_lo=`expr '(' $ac_mid ')' + 1`
8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8364 done
8365 case $ac_lo in
8366 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8367 '') if test "$ac_cv_type_void_p" = yes; then
8368 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8369 See \`config.log' for more details." >&5
8370 echo "$as_me: error: cannot compute sizeof (void *)
8371 See \`config.log' for more details." >&2;}
8372 { (exit 77); exit 77; }; }
8373 else
8374 ac_cv_sizeof_void_p=0
8375 fi ;;
8376 esac
8377 else
8378 cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h. */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 $ac_includes_default
8385 typedef void * ac__type_sizeof_;
8386 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8387 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8388 #include <stdio.h>
8389 #include <stdlib.h>
8391 main ()
8394 FILE *f = fopen ("conftest.val", "w");
8395 if (! f)
8396 return 1;
8397 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8399 long int i = longval ();
8400 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8401 return 1;
8402 fprintf (f, "%ld\n", i);
8404 else
8406 unsigned long int i = ulongval ();
8407 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8408 return 1;
8409 fprintf (f, "%lu\n", i);
8411 return ferror (f) || fclose (f) != 0;
8414 return 0;
8416 _ACEOF
8417 rm -f conftest$ac_exeext
8418 if { (ac_try="$ac_link"
8419 case "(($ac_try" in
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8422 esac
8423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_link") 2>&5
8425 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8428 { (case "(($ac_try" in
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8431 esac
8432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433 (eval "$ac_try") 2>&5
8434 ac_status=$?
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; }; then
8437 ac_cv_sizeof_void_p=`cat conftest.val`
8438 else
8439 echo "$as_me: program exited with status $ac_status" >&5
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 ( exit $ac_status )
8444 if test "$ac_cv_type_void_p" = yes; then
8445 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8446 See \`config.log' for more details." >&5
8447 echo "$as_me: error: cannot compute sizeof (void *)
8448 See \`config.log' for more details." >&2;}
8449 { (exit 77); exit 77; }; }
8450 else
8451 ac_cv_sizeof_void_p=0
8454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8456 rm -f conftest.val
8458 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8459 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8463 cat >>confdefs.h <<_ACEOF
8464 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8465 _ACEOF
8468 { echo "$as_me:$LINENO: checking if we are on a 64-bits computer" >&5
8469 echo $ECHO_N "checking if we are on a 64-bits computer... $ECHO_C" >&6; }
8470 if test "$ac_cv_sizeof_void_p" = "8"; then
8471 { echo "$as_me:$LINENO: result: yes" >&5
8472 echo "${ECHO_T}yes" >&6; }
8473 CONFIG_WORD_LENGTH="8"
8474 CONFIG_WORD_LENGTH_INC="7"
8475 CONFIG_WORD_MASK="0xfffffffffffffff8"
8476 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8477 else
8478 { echo "$as_me:$LINENO: result: no" >&5
8479 echo "${ECHO_T}no" >&6; }
8482 ac_aux_dir=
8483 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
8484 if test -f "$ac_dir/install-sh"; then
8485 ac_aux_dir=$ac_dir
8486 ac_install_sh="$ac_aux_dir/install-sh -c"
8487 break
8488 elif test -f "$ac_dir/install.sh"; then
8489 ac_aux_dir=$ac_dir
8490 ac_install_sh="$ac_aux_dir/install.sh -c"
8491 break
8492 elif test -f "$ac_dir/shtool"; then
8493 ac_aux_dir=$ac_dir
8494 ac_install_sh="$ac_aux_dir/shtool install -c"
8495 break
8497 done
8498 if test -z "$ac_aux_dir"; then
8499 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
8500 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
8501 { (exit 1); exit 1; }; }
8504 # These three variables are undocumented and unsupported,
8505 # and are intended to be withdrawn in a future Autoconf release.
8506 # They can cause serious problems if a builder's source tree is in a directory
8507 # whose full name contains unusual characters.
8508 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
8509 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
8510 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
8513 # Make sure we can run config.sub.
8514 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8515 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
8516 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
8517 { (exit 1); exit 1; }; }
8519 { echo "$as_me:$LINENO: checking build system type" >&5
8520 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
8521 if test "${ac_cv_build+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524 ac_build_alias=$build_alias
8525 test "x$ac_build_alias" = x &&
8526 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
8527 test "x$ac_build_alias" = x &&
8528 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
8529 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
8530 { (exit 1); exit 1; }; }
8531 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8532 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
8533 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
8534 { (exit 1); exit 1; }; }
8537 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
8538 echo "${ECHO_T}$ac_cv_build" >&6; }
8539 case $ac_cv_build in
8540 *-*-*) ;;
8541 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
8542 echo "$as_me: error: invalid value of canonical build" >&2;}
8543 { (exit 1); exit 1; }; };;
8544 esac
8545 build=$ac_cv_build
8546 ac_save_IFS=$IFS; IFS='-'
8547 set x $ac_cv_build
8548 shift
8549 build_cpu=$1
8550 build_vendor=$2
8551 shift; shift
8552 # Remember, the first character of IFS is used to create $*,
8553 # except with old shells:
8554 build_os=$*
8555 IFS=$ac_save_IFS
8556 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
8559 { echo "$as_me:$LINENO: checking host system type" >&5
8560 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
8561 if test "${ac_cv_host+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 else
8564 if test "x$host_alias" = x; then
8565 ac_cv_host=$ac_cv_build
8566 else
8567 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8568 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
8569 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
8570 { (exit 1); exit 1; }; }
8574 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8575 echo "${ECHO_T}$ac_cv_host" >&6; }
8576 case $ac_cv_host in
8577 *-*-*) ;;
8578 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
8579 echo "$as_me: error: invalid value of canonical host" >&2;}
8580 { (exit 1); exit 1; }; };;
8581 esac
8582 host=$ac_cv_host
8583 ac_save_IFS=$IFS; IFS='-'
8584 set x $ac_cv_host
8585 shift
8586 host_cpu=$1
8587 host_vendor=$2
8588 shift; shift
8589 # Remember, the first character of IFS is used to create $*,
8590 # except with old shells:
8591 host_os=$*
8592 IFS=$ac_save_IFS
8593 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8596 case "${host}" in
8597 i*86-*-linux* | x86_64-*-linux*)
8598 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
8599 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/Linux host" >&6; }
8600 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8602 i*86-*-freebsd* | x86_64-*-freebsd*)
8603 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
8604 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/BSD host" >&6; }
8605 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8607 i*86-*-solaris*)
8608 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMS Solaris host" >&5
8609 echo "${ECHO_T}final adjustments for an Intel or AMS Solaris host" >&6; }
8610 CONFIG_CXXOPTIMIZE="-O3"
8611 CONFIG_BPATH="-Wl,-R,"
8612 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8614 *mingw*)
8615 { echo "$as_me:$LINENO: result: final adjustments for mingw host" >&5
8616 echo "${ECHO_T}final adjustments for mingw host" >&6; }
8617 LDRT="-lmingwex"
8619 *-*-cygwin)
8620 { echo "$as_me:$LINENO: result: final adjustments for cygwin host" >&5
8621 echo "${ECHO_T}final adjustments for cygwin host" >&6; }
8622 CONFIG_OS="CYGWIN"
8623 CONFIG_BFLAGS="-Wl,-stack,8388608"
8624 # CXX="export CYGWIN=check_case:strict; $CXX"
8625 # AC_SUBST(CXX)
8627 *apple*darwin*)
8628 echo "$ac_t""final adjustments for a MacOS host" 1>&6
8629 CONFIG_OS="MACOS"
8630 CONFIG_CXXFLAGS="-I${prefix}/include"
8631 CONFIG_BSHARED=""
8632 CONFIG_BFLAGS="-framework Cocoa"
8633 CONFIG_BPATH=""
8634 CONFIG_SO="dylib"
8635 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
8637 *darwin*)
8638 echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
8639 CONFIG_CXXFLAGS="-I${prefix}/include"
8640 CONFIG_BSHARED=""
8641 CONFIG_BPATH=""
8642 CONFIG_SO="dylib"
8643 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
8645 powerpc-*-linux*)
8646 { echo "$as_me:$LINENO: result: final adjustments for a PowerPC/GNU-linux host" >&5
8647 echo "${ECHO_T}final adjustments for a PowerPC/GNU-linux host" >&6; }
8648 CONFIG_OS="POWERPC_GNU_LINUX"
8649 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8651 *sun*)
8652 { echo "$as_me:$LINENO: result: final adjustments for a SUN/solaris host" >&5
8653 echo "${ECHO_T}final adjustments for a SUN/solaris host" >&6; }
8654 CONFIG_OS="SUN"
8655 CONFIG_OS_SUFFIX="sun"
8656 CONFIG_BSTATIC=""
8657 CONFIG_BSHARED=""
8658 CONFIG_BPATH="-Wl,-R,"
8659 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8660 CONFIG_WORD_LENGTH="8"
8661 CONFIG_WORD_LENGTH_INC="7"
8662 CONFIG_WORD_MASK="0xfffffff8"
8663 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8664 CONFIG_STD_SETENV=""
8666 sparc*-*-linux*)
8667 { echo "$as_me:$LINENO: result: final adjustments for a Sparc host running GNU/Linux" >&5
8668 echo "${ECHO_T}final adjustments for a Sparc host running GNU/Linux" >&6; }
8669 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8670 CONFIG_WORD_LENGTH="8"
8671 CONFIG_WORD_LENGTH_INC="7"
8672 CONFIG_WORD_MASK="0xfffffff8"
8673 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8674 CONFIG_STD_SETENV=""
8676 *dec*)
8677 { echo "$as_me:$LINENO: result: final adjustments for a DEC/alpha host" >&5
8678 echo "${ECHO_T}final adjustments for a DEC/alpha host" >&6; }
8679 CONFIG_BSTATIC=""
8680 CONFIG_BSHARED="-shared"
8681 CONFIG_STD_SETENV=""
8683 *alpha*-*-linux*)
8684 { echo "$as_me:$LINENO: result: final adjustments for an Alpha GNU/Linux host" >&5
8685 echo "${ECHO_T}final adjustments for an Alpha GNU/Linux host" >&6; }
8686 CONFIG_BSTATIC=""
8687 CONFIG_BSHARED="-shared"
8689 s390-*-linux*)
8690 { echo "$as_me:$LINENO: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
8691 echo "${ECHO_T}final adjustments for an IBM S/390 GNU/Linux host" >&6; }
8692 CONFIG_STD_SETENV=""
8694 ia64-*-linux*)
8695 { echo "$as_me:$LINENO: result: final adjustments for an Itanium GNU/Linux host" >&5
8696 echo "${ECHO_T}final adjustments for an Itanium GNU/Linux host" >&6; }
8697 CONFIG_BSTATIC=""
8698 CONFIG_BSHARED="-shared"
8700 hppa*-*-linux*)
8701 { echo "$as_me:$LINENO: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
8702 echo "${ECHO_T}final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
8703 CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
8704 CONFIG_BSTATIC=""
8705 CONFIG_BSHARED="-shared"
8707 *sgi-irix*)
8708 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
8709 CONFIG_OS="IRIX"
8710 CONFIG_CXXFLAGS=""
8711 X_LIBS=-L/usr/lib32
8712 CONFIG_BSTATIC=""
8713 CONFIG_BSHARED=""
8714 CONFIG_BPATH=""
8715 X11_LDFLAGS="$X_LIBS -lX11"
8716 CONFIG_WORD_MASK="0xfffffff8"
8717 CONFIG_STD_SETENV=""
8718 CONFIG_CHMOD="chmod"
8719 CONFIG_LIB_PATH="LD_LIBRARYN32_PATH"
8721 m68k-*-linux* | mips-*-linux* | mipsel-*-linux* | arm*-*-linux*)
8722 { echo "$as_me:$LINENO: result: final adjustments for a supported GNU/Linux host" >&5
8723 echo "${ECHO_T}final adjustments for a supported GNU/Linux host" >&6; }
8725 *-linux*)
8726 { echo "$as_me:$LINENO: result: final adjustments for a generic GNU/Linux host" >&5
8727 echo "${ECHO_T}final adjustments for a generic GNU/Linux host" >&6; }
8730 { echo "$as_me:$LINENO: result: final adjustments for a generic host" >&5
8731 echo "${ECHO_T}final adjustments for a generic host" >&6; }
8733 esac
8735 #--------------------------------------------------------------------
8736 # Temporary fix for link problem
8737 #--------------------------------------------------------------------
8739 case "$GXX_VERSION" in
8740 3.* | 4.*)
8741 CONFIG_BSTATIC="-static"
8742 CONFIG_BSHARED="-dynamic"
8744 esac
8746 #--------------------------------------------------------------------
8747 # Memory allocation options
8748 #--------------------------------------------------------------------
8750 # Check whether --enable-fastalloc was given.
8751 if test "${enable_fastalloc+set}" = set; then
8752 enableval=$enable_fastalloc;
8753 else
8754 enable_fastalloc="yes"
8757 case "$enable_fastalloc" in
8758 yes)
8761 { echo "$as_me:$LINENO: result: disabling fast allocator for small objects" >&5
8762 echo "${ECHO_T}disabling fast allocator for small objects" >&6; }
8764 cat >>confdefs.h <<\_ACEOF
8765 #define NO_FAST_ALLOC 1
8766 _ACEOF
8770 { { echo "$as_me:$LINENO: error: bad option --enable-fastalloc=$enable_fastalloc" >&5
8771 echo "$as_me: error: bad option --enable-fastalloc=$enable_fastalloc" >&2;}
8772 { (exit 1); exit 1; }; }
8774 esac
8776 #--------------------------------------------------------------------
8777 # Experimental options
8778 #--------------------------------------------------------------------
8780 # Check whether --enable-experimental was given.
8781 if test "${enable_experimental+set}" = set; then
8782 enableval=$enable_experimental;
8783 else
8784 enable_experimental="no"
8787 case "$enable_experimental" in
8788 yes)
8789 { echo "$as_me:$LINENO: result: enabling experimental style rewriting code" >&5
8790 echo "${ECHO_T}enabling experimental style rewriting code" >&6; }
8792 cat >>confdefs.h <<\_ACEOF
8793 #define EXPERIMENTAL 1
8794 _ACEOF
8796 CONFIG_EXPERIMENTAL="Memorizer Environment Evaluate"
8799 { echo "$as_me:$LINENO: result: disabling experimental style rewriting code" >&5
8800 echo "${ECHO_T}disabling experimental style rewriting code" >&6; }
8801 CONFIG_EXPERIMENTAL=""
8804 { { echo "$as_me:$LINENO: error: bad option --enable-experimental=$enable_experimental" >&5
8805 echo "$as_me: error: bad option --enable-experimental=$enable_experimental" >&2;}
8806 { (exit 1); exit 1; }; }
8808 esac
8811 #--------------------------------------------------------------------
8812 # MacOS X extensions (spellchecker, image loading)
8813 #--------------------------------------------------------------------
8815 # Check whether --enable-macosx-extensions was given.
8816 if test "${enable_macosx_extensions+set}" = set; then
8817 enableval=$enable_macosx_extensions;
8818 else
8819 enable_macosx_extensions="no"
8822 case "$enable_macosx_extensions" in
8823 yes)
8824 { echo "$as_me:$LINENO: result: enabling Mac OSX extensions" >&5
8825 echo "${ECHO_T}enabling Mac OSX extensions" >&6; }
8827 cat >>confdefs.h <<\_ACEOF
8828 #define MACOSX_EXTENSIONS 1
8829 _ACEOF
8831 CONFIG_MACOS="MacOS"
8834 { echo "$as_me:$LINENO: result: disabling Mac OSX extensions" >&5
8835 echo "${ECHO_T}disabling Mac OSX extensions" >&6; }
8836 CONFIG_MACOS=""
8839 { { echo "$as_me:$LINENO: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&5
8840 echo "$as_me: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&2;}
8841 { (exit 1); exit 1; }; }
8843 esac
8846 #--------------------------------------------------------------------
8847 # Gui selection
8848 #--------------------------------------------------------------------
8850 CONFIG_X11=""
8851 CONFIG_COCOA=""
8852 CONFIG_GUI="X11"
8854 # Check whether --enable-qt was given.
8855 if test "${enable_qt+set}" = set; then
8856 enableval=$enable_qt;
8857 else
8858 enable_qt="no"
8862 case "$enable_qt" in
8863 yes)
8865 if test -r "/c/Qt"; then
8866 MOC="`which moc`"
8867 qt_bin="`dirname $MOC`"
8868 qt_home="`dirname $qt_bin`"
8869 qt_version="`basename $qt_home`"
8870 qt_parent="`dirname $qt_home`"
8871 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."
8872 QT_CXXFLAGS="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
8873 QT_LDFLAGS="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows"
8874 QT_LIBS="-L'c:/Qt/$qt_version/lib' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
8875 if test "$qt_parent" != "/c/Qt"; then
8876 at_cv_qt_build="ko"
8878 else
8883 test x"$TROLL" != x && echo 'ViM rox emacs.'
8886 # Check whether --with-qt was given.
8887 if test "${with_qt+set}" = set; then
8888 withval=$with_qt; QT_PATH=$withval
8889 else
8890 QT_PATH=
8894 # Find Qt.
8895 if test -d /usr/local/Trolltech; then
8896 # Try to find the latest version.
8897 tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
8898 | xargs | sed 's/ */:/g'`
8901 # Find qmake.
8902 if test -z "$QMAKE"; then
8903 for ac_prog in qmake
8905 # Extract the first word of "$ac_prog", so it can be a program name with args.
8906 set dummy $ac_prog; ac_word=$2
8907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8909 if test "${ac_cv_path_QMAKE+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 else
8912 case $QMAKE in
8913 [\\/]* | ?:[\\/]*)
8914 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
8917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8918 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
8919 for as_dir in $as_dummy
8921 IFS=$as_save_IFS
8922 test -z "$as_dir" && as_dir=.
8923 for ac_exec_ext in '' $ac_executable_extensions; do
8924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8925 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
8926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8927 break 2
8929 done
8930 done
8931 IFS=$as_save_IFS
8934 esac
8936 QMAKE=$ac_cv_path_QMAKE
8937 if test -n "$QMAKE"; then
8938 { echo "$as_me:$LINENO: result: $QMAKE" >&5
8939 echo "${ECHO_T}$QMAKE" >&6; }
8940 else
8941 { echo "$as_me:$LINENO: result: no" >&5
8942 echo "${ECHO_T}no" >&6; }
8946 test -n "$QMAKE" && break
8947 done
8948 test -n "$QMAKE" || QMAKE="missing"
8950 else
8951 { echo "$as_me:$LINENO: checking for the QMAKE to use with Qt" >&5
8952 echo $ECHO_N "checking for the QMAKE to use with Qt... $ECHO_C" >&6; }
8953 { echo "$as_me:$LINENO: result: $QMAKE" >&5
8954 echo "${ECHO_T}$QMAKE" >&6; }
8956 if test x"$QMAKE" = xmissing; then
8957 { { echo "$as_me:$LINENO: error: Cannot find qmake in your PATH. Try using --with-qt." >&5
8958 echo "$as_me: error: Cannot find qmake in your PATH. Try using --with-qt." >&2;}
8959 { (exit 1); exit 1; }; }
8962 # Find moc (Meta Object Compiler).
8963 if test -z "$MOC"; then
8964 for ac_prog in moc
8966 # Extract the first word of "$ac_prog", so it can be a program name with args.
8967 set dummy $ac_prog; ac_word=$2
8968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8970 if test "${ac_cv_path_MOC+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8972 else
8973 case $MOC in
8974 [\\/]* | ?:[\\/]*)
8975 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
8978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
8980 for as_dir in $as_dummy
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8986 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
8987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8988 break 2
8990 done
8991 done
8992 IFS=$as_save_IFS
8995 esac
8997 MOC=$ac_cv_path_MOC
8998 if test -n "$MOC"; then
8999 { echo "$as_me:$LINENO: result: $MOC" >&5
9000 echo "${ECHO_T}$MOC" >&6; }
9001 else
9002 { echo "$as_me:$LINENO: result: no" >&5
9003 echo "${ECHO_T}no" >&6; }
9007 test -n "$MOC" && break
9008 done
9009 test -n "$MOC" || MOC="missing"
9011 else
9012 { echo "$as_me:$LINENO: checking for the MOC to use with Qt" >&5
9013 echo $ECHO_N "checking for the MOC to use with Qt... $ECHO_C" >&6; }
9014 { echo "$as_me:$LINENO: result: $MOC" >&5
9015 echo "${ECHO_T}$MOC" >&6; }
9017 if test x"$MOC" = xmissing; then
9018 { { echo "$as_me:$LINENO: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&5
9019 echo "$as_me: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&2;}
9020 { (exit 1); exit 1; }; }
9023 # Find uic (User Interface Compiler).
9024 if test -z "$UIC"; then
9025 for ac_prog in uic
9027 # Extract the first word of "$ac_prog", so it can be a program name with args.
9028 set dummy $ac_prog; ac_word=$2
9029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9031 if test "${ac_cv_path_UIC+set}" = set; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 else
9034 case $UIC in
9035 [\\/]* | ?:[\\/]*)
9036 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
9039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9040 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9041 for as_dir in $as_dummy
9043 IFS=$as_save_IFS
9044 test -z "$as_dir" && as_dir=.
9045 for ac_exec_ext in '' $ac_executable_extensions; do
9046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9047 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
9048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9049 break 2
9051 done
9052 done
9053 IFS=$as_save_IFS
9056 esac
9058 UIC=$ac_cv_path_UIC
9059 if test -n "$UIC"; then
9060 { echo "$as_me:$LINENO: result: $UIC" >&5
9061 echo "${ECHO_T}$UIC" >&6; }
9062 else
9063 { echo "$as_me:$LINENO: result: no" >&5
9064 echo "${ECHO_T}no" >&6; }
9068 test -n "$UIC" && break
9069 done
9070 test -n "$UIC" || UIC="missing"
9072 else
9073 { echo "$as_me:$LINENO: checking for the UIC to use with Qt" >&5
9074 echo $ECHO_N "checking for the UIC to use with Qt... $ECHO_C" >&6; }
9075 { echo "$as_me:$LINENO: result: $UIC" >&5
9076 echo "${ECHO_T}$UIC" >&6; }
9078 if test x"$UIC" = xmissing; then
9079 { { echo "$as_me:$LINENO: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&5
9080 echo "$as_me: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&2;}
9081 { (exit 1); exit 1; }; }
9084 # Find rcc (Qt Resource Compiler).
9085 for ac_prog in rcc
9087 # Extract the first word of "$ac_prog", so it can be a program name with args.
9088 set dummy $ac_prog; ac_word=$2
9089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9091 if test "${ac_cv_path_RCC+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 else
9094 case $RCC in
9095 [\\/]* | ?:[\\/]*)
9096 ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
9099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9101 for as_dir in $as_dummy
9103 IFS=$as_save_IFS
9104 test -z "$as_dir" && as_dir=.
9105 for ac_exec_ext in '' $ac_executable_extensions; do
9106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9107 ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
9108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9109 break 2
9111 done
9112 done
9113 IFS=$as_save_IFS
9116 esac
9118 RCC=$ac_cv_path_RCC
9119 if test -n "$RCC"; then
9120 { echo "$as_me:$LINENO: result: $RCC" >&5
9121 echo "${ECHO_T}$RCC" >&6; }
9122 else
9123 { echo "$as_me:$LINENO: result: no" >&5
9124 echo "${ECHO_T}no" >&6; }
9128 test -n "$RCC" && break
9129 done
9130 test -n "$RCC" || RCC="false"
9132 if test x"$UIC" = xfalse; then
9133 { echo "$as_me:$LINENO: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
9134 echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
9137 # If we don't know the path to Qt, guess it from the path to qmake.
9138 if test x"$QT_PATH" = x; then
9139 QT_PATH=`dirname "$QMAKE"`
9141 if test x"$QT_PATH" = x; then
9142 { { echo "$as_me:$LINENO: error: Cannot find the path to your Qt install. Use --with-qt." >&5
9143 echo "$as_me: error: Cannot find the path to your Qt install. Use --with-qt." >&2;}
9144 { (exit 1); exit 1; }; }
9147 { echo "$as_me:$LINENO: checking for the QT_PATH to use with Qt" >&5
9148 echo $ECHO_N "checking for the QT_PATH to use with Qt... $ECHO_C" >&6; }
9149 { echo "$as_me:$LINENO: result: $QT_PATH" >&5
9150 echo "${ECHO_T}$QT_PATH" >&6; }
9152 # Get ready to build a test-app with Qt.
9154 # Look for a writable temporary directory.
9156 if test x"$TMPDIR" = x || test ! -d "$TMPDIR" || test ! -w "$TMPDIR"; then
9157 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
9159 for i in /tmp /var/tmp; do
9160 if test -d "$i" && test -w "$i"; then
9161 TMPDIR=$i
9162 export TMPDIR
9163 echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
9164 break
9166 done
9169 # Kludge!! QMake has a very strange behavior. For instance, if you
9170 # install Qt under your $HOME and run QMake somewhere else under your
9171 # $HOME, it will try to be clever and produce Makefiles with relative
9172 # include paths. In order to avoid this, we will test QMake from a
9173 # temporary directory (usually /tmp). Note that this problem was only
9174 # observed with Qt 4.
9175 my_configure_pwd=`pwd`
9176 my_tmpdir="$TMPDIR/conftest$$.dir"
9177 test -d "$my_tmpdir" || mkdir "$my_tmpdir"
9178 if test -w "$my_tmpdir" && cd "$my_tmpdir"
9179 then
9181 else
9182 { { echo "$as_me:$LINENO: error: Cannot cd to or write in $my_tmpdir" >&5
9183 echo "$as_me: error: Cannot cd to or write in $my_tmpdir" >&2;}
9184 { (exit 1); exit 1; }; }
9186 cat >conftest.h <<_ASEOF
9187 #include <QObject>
9189 class Foo: public QObject
9191 Q_OBJECT;
9192 public:
9193 Foo();
9194 ~Foo() {}
9195 public slots:
9196 void setValue(int value);
9197 signals:
9198 void valueChanged(int newValue);
9199 private:
9200 int value_;
9202 _ASEOF
9204 cat >conftest.cpp <<_ASEOF
9205 #include "conftest.h"
9206 Foo::Foo()
9207 : value_ (42)
9209 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
9212 void Foo::setValue(int value)
9214 value_ = value;
9217 int main()
9219 Foo f;
9221 _ASEOF
9222 if $QMAKE -project; then :; else
9223 { { echo "$as_me:$LINENO: error: Calling $QMAKE -project failed." >&5
9224 echo "$as_me: error: Calling $QMAKE -project failed." >&2;}
9225 { (exit 1); exit 1; }; }
9228 # Find the .pro file generated by qmake.
9229 pro_file='conftest.dir.pro'
9230 test -f $pro_file || pro_file=`echo *.pro`
9231 if test -f "$pro_file"; then :; else
9232 { { echo "$as_me:$LINENO: error: Can't find the .pro file generated by Qmake." >&5
9233 echo "$as_me: error: Can't find the .pro file generated by Qmake." >&2;}
9234 { (exit 1); exit 1; }; }
9243 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
9244 sed 's/^/| /' "$pro_file" >&5
9246 additional_qmake_flags=""
9247 case $host_os in
9248 darwin*)
9249 additional_qmake_flags="-spec macx-g++"
9251 esac
9253 if $QMAKE ${additional_qmake_flags} ; then :; else
9254 { { echo "$as_me:$LINENO: error: Calling $QMAKE failed." >&5
9255 echo "$as_me: error: Calling $QMAKE failed." >&2;}
9256 { (exit 1); exit 1; }; }
9258 # Try to compile a simple Qt app.
9259 { echo "$as_me:$LINENO: checking whether we can build a simple Qt app" >&5
9260 echo $ECHO_N "checking whether we can build a simple Qt app... $ECHO_C" >&6; }
9261 if test "${at_cv_qt_build+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9263 else
9264 at_cv_qt_build=ko
9265 : ${MAKE=make}
9267 if $MAKE >&5 2>&1; then
9268 at_cv_qt_build='ok, looks like Qt 4'
9269 else
9270 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9271 instead" >&5
9272 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
9273 if $MAKE >&5 2>&1; then
9274 at_cv_qt_build='ok, looks like Qt 3'
9275 else
9276 # Sometimes (such as on Debian) build will fail because Qt hasn't been
9277 # installed in debug mode and qmake tries (by default) to build apps in
9278 # debug mode => Try again in release mode.
9279 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
9282 # Tweak the value of CONFIG in the .pro file for +release.
9284 qt_conf=''
9285 for at_mod in +release; do
9286 at_mod=`echo "$at_mod" | sed 's/^-//; tough
9287 s/^+//; beef
9288 :ough
9289 s/^/CONFIG -= /;n
9290 :eef
9291 s/^/CONFIG += /'`
9292 qt_conf="$qt_conf
9293 $at_mod"
9294 done
9295 echo "$qt_conf" | sed 1d >>"$pro_file"
9298 sed 's/<qobject.h>/<QObject>/' conftest.h > tmp.h && mv tmp.h conftest.h
9299 if $MAKE >&5 2>&1; then
9300 at_cv_qt_build='ok, looks like Qt 4, release mode forced'
9301 else
9302 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9303 instead" >&5
9304 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
9305 if $MAKE >&5 2>&1; then
9306 at_cv_qt_build='ok, looks like Qt 3, release mode forced'
9307 else
9308 at_cv_qt_build=ko
9309 echo "$as_me:$LINENO: failed program was:" >&5
9310 sed 's/^/| /' conftest.h >&5
9311 echo "$as_me:$LINENO: failed program was:" >&5
9312 sed 's/^/| /' conftest.cpp >&5
9313 fi # if make with Qt3-style #include and release mode forced.
9314 fi # if make with Qt4-style #include and release mode forced.
9315 fi # if make with Qt3-style #include.
9316 fi # if make with Qt4-style #include.
9319 { echo "$as_me:$LINENO: result: $at_cv_qt_build" >&5
9320 echo "${ECHO_T}$at_cv_qt_build" >&6; }
9321 if test x"$at_cv_qt_build" = xko; then
9322 { { echo "$as_me:$LINENO: error: Cannot build a test Qt program" >&5
9323 echo "$as_me: error: Cannot build a test Qt program" >&2;}
9324 { (exit 1); exit 1; }; }
9326 QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
9329 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
9330 # It starts by removing the beginning of the line, removing references to
9331 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
9332 # all variable uses by QT_.
9333 qt_sed_filter='s///;
9334 s/$(SUBLIBS)//g;
9335 s/^ *//;
9336 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
9338 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
9339 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
9340 # Makefile.Release. The reason is that the main difference is that release
9341 # uses -Os and debug -g. We can override -Os by passing another -O but we
9342 # usually don't override -g.
9343 if test -f Makefile.Release; then
9344 at_mfile='Makefile.Release'
9345 else
9346 at_mfile='Makefile'
9348 if test -f $at_mfile; then :; else
9349 cd "$my_configure_pwd"
9350 { { echo "$as_me:$LINENO: error: Cannot find the Makefile generated by qmake." >&5
9351 echo "$as_me: error: Cannot find the Makefile generated by qmake." >&2;}
9352 { (exit 1); exit 1; }; }
9355 # Find the DEFINES of Qt (should have been named CPPFLAGS).
9356 if test -z "$QT_DEFINES"; then
9357 { echo "$as_me:$LINENO: checking for the DEFINES to use with Qt" >&5
9358 echo $ECHO_N "checking for the DEFINES to use with Qt... $ECHO_C" >&6; }
9359 if test "${at_cv_env_QT_DEFINES+set}" = set; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9361 else
9362 at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9364 { echo "$as_me:$LINENO: result: $at_cv_env_QT_DEFINES" >&5
9365 echo "${ECHO_T}$at_cv_env_QT_DEFINES" >&6; }
9366 QT_DEFINES="$at_cv_env_QT_DEFINES"
9369 { echo "$as_me:$LINENO: checking for the QT_DEFINES to use with Qt" >&5
9370 echo $ECHO_N "checking for the QT_DEFINES to use with Qt... $ECHO_C" >&6; }
9371 { echo "$as_me:$LINENO: result: $QT_DEFINES" >&5
9372 echo "${ECHO_T}$QT_DEFINES" >&6; }
9374 # Find the CFLAGS of Qt (We can use Qt in C?!)
9375 if test -z "$QT_CFLAGS"; then
9376 { echo "$as_me:$LINENO: checking for the CFLAGS to use with Qt" >&5
9377 echo $ECHO_N "checking for the CFLAGS to use with Qt... $ECHO_C" >&6; }
9378 if test "${at_cv_env_QT_CFLAGS+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 else
9381 at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9383 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CFLAGS" >&5
9384 echo "${ECHO_T}$at_cv_env_QT_CFLAGS" >&6; }
9385 QT_CFLAGS="$at_cv_env_QT_CFLAGS"
9388 { echo "$as_me:$LINENO: checking for the QT_CFLAGS to use with Qt" >&5
9389 echo $ECHO_N "checking for the QT_CFLAGS to use with Qt... $ECHO_C" >&6; }
9390 { echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
9391 echo "${ECHO_T}$QT_CFLAGS" >&6; }
9393 # Find the CXXFLAGS of Qt.
9394 if test -z "$QT_CXXFLAGS"; then
9395 { echo "$as_me:$LINENO: checking for the CXXFLAGS to use with Qt" >&5
9396 echo $ECHO_N "checking for the CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9397 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9399 else
9400 at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9402 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CXXFLAGS" >&5
9403 echo "${ECHO_T}$at_cv_env_QT_CXXFLAGS" >&6; }
9404 QT_CXXFLAGS="$at_cv_env_QT_CXXFLAGS"
9407 { echo "$as_me:$LINENO: checking for the QT_CXXFLAGS to use with Qt" >&5
9408 echo $ECHO_N "checking for the QT_CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9409 { echo "$as_me:$LINENO: result: $QT_CXXFLAGS" >&5
9410 echo "${ECHO_T}$QT_CXXFLAGS" >&6; }
9412 # Find the INCPATH of Qt.
9413 if test -z "$QT_INCPATH"; then
9414 { echo "$as_me:$LINENO: checking for the INCPATH to use with Qt" >&5
9415 echo $ECHO_N "checking for the INCPATH to use with Qt... $ECHO_C" >&6; }
9416 if test "${at_cv_env_QT_INCPATH+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419 at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9421 { echo "$as_me:$LINENO: result: $at_cv_env_QT_INCPATH" >&5
9422 echo "${ECHO_T}$at_cv_env_QT_INCPATH" >&6; }
9423 QT_INCPATH="$at_cv_env_QT_INCPATH"
9426 { echo "$as_me:$LINENO: checking for the QT_INCPATH to use with Qt" >&5
9427 echo $ECHO_N "checking for the QT_INCPATH to use with Qt... $ECHO_C" >&6; }
9428 { echo "$as_me:$LINENO: result: $QT_INCPATH" >&5
9429 echo "${ECHO_T}$QT_INCPATH" >&6; }
9431 QT_CPPFLAGS="$QT_DEFINES $QT_INCPATH"
9434 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
9435 if test -z "$QT_LDFLAGS"; then
9436 { echo "$as_me:$LINENO: checking for the LDFLAGS to use with Qt" >&5
9437 echo $ECHO_N "checking for the LDFLAGS to use with Qt... $ECHO_C" >&6; }
9438 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 else
9441 at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9443 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LDFLAGS" >&5
9444 echo "${ECHO_T}$at_cv_env_QT_LDFLAGS" >&6; }
9445 QT_LDFLAGS="$at_cv_env_QT_LDFLAGS"
9448 QT_LFLAGS=$QT_LDFLAGS
9450 { echo "$as_me:$LINENO: checking for the QT_LDFLAGS to use with Qt" >&5
9451 echo $ECHO_N "checking for the QT_LDFLAGS to use with Qt... $ECHO_C" >&6; }
9452 { echo "$as_me:$LINENO: result: $QT_LDFLAGS" >&5
9453 echo "${ECHO_T}$QT_LDFLAGS" >&6; }
9455 { echo "$as_me:$LINENO: checking whether host operating system is Darwin" >&5
9456 echo $ECHO_N "checking whether host operating system is Darwin... $ECHO_C" >&6; }
9457 at_darwin="no"
9458 case $host_os in
9459 darwin*)
9460 at_darwin="yes"
9462 esac
9463 { echo "$as_me:$LINENO: result: $at_darwin" >&5
9464 echo "${ECHO_T}$at_darwin" >&6; }
9466 # Find the LIBS of Qt.
9467 if test -z "$QT_LIBS"; then
9468 { echo "$as_me:$LINENO: checking for the LIBS to use with Qt" >&5
9469 echo $ECHO_N "checking for the LIBS to use with Qt... $ECHO_C" >&6; }
9470 if test "${at_cv_env_QT_LIBS+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9473 at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9474 if test x$at_darwin = xyes; then
9475 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
9476 # -F properly. The "bug" has been fixed on 22 October 2006
9477 # by Peter O'Gorman but we provide backward compatibility here.
9478 at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
9479 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
9483 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LIBS" >&5
9484 echo "${ECHO_T}$at_cv_env_QT_LIBS" >&6; }
9485 QT_LIBS="$at_cv_env_QT_LIBS"
9488 { echo "$as_me:$LINENO: checking for the QT_LIBS to use with Qt" >&5
9489 echo $ECHO_N "checking for the QT_LIBS to use with Qt... $ECHO_C" >&6; }
9490 { echo "$as_me:$LINENO: result: $QT_LIBS" >&5
9491 echo "${ECHO_T}$QT_LIBS" >&6; }
9493 cd "$my_configure_pwd" || echo 'WTF!'
9494 rm -rf "$my_tmpdir"
9498 if test x"$at_cv_qt_build" = xko; then
9499 { { echo "$as_me:$LINENO: error: cannot find Qt!" >&5
9500 echo "$as_me: error: cannot find Qt!" >&2;}
9501 { (exit 1); exit 1; }; }
9502 else
9503 { echo "$as_me:$LINENO: result: enabling experimental Qt port" >&5
9504 echo "${ECHO_T}enabling experimental Qt port" >&6; }
9505 CONFIG_GUI="QT"
9509 { echo "$as_me:$LINENO: result: disabling experimental Qt port" >&5
9510 echo "${ECHO_T}disabling experimental Qt port" >&6; }
9513 { { echo "$as_me:$LINENO: error: bad option --enable-qt=$enable_qt" >&5
9514 echo "$as_me: error: bad option --enable-qt=$enable_qt" >&2;}
9515 { (exit 1); exit 1; }; }
9517 esac
9519 # Check whether --enable-cocoa was given.
9520 if test "${enable_cocoa+set}" = set; then
9521 enableval=$enable_cocoa;
9522 else
9523 enable_cocoa="no"
9526 case "$enable_cocoa" in
9527 yes)
9528 { echo "$as_me:$LINENO: result: enabling experimental Cocoa port" >&5
9529 echo "${ECHO_T}enabling experimental Cocoa port" >&6; }
9530 COCOA_CFLAGS=""
9531 COCOA_LDFLAGS="-framework Cocoa"
9532 CONFIG_GUI="COCOA"
9535 { echo "$as_me:$LINENO: result: disabling experimental Cocoa port" >&5
9536 echo "${ECHO_T}disabling experimental Cocoa port" >&6; }
9539 { { echo "$as_me:$LINENO: error: bad option --enable-cocoa=$enable_cocoa" >&5
9540 echo "$as_me: error: bad option --enable-cocoa=$enable_cocoa" >&2;}
9541 { (exit 1); exit 1; }; }
9543 esac
9545 case "$CONFIG_GUI" in
9546 X11)
9547 CONFIG_X11="X11 Widkit Ghostscript"
9549 cat >>confdefs.h <<\_ACEOF
9550 #define X11TEXMACS 1
9551 _ACEOF
9554 COCOA)
9555 CONFIG_COCOA="Cocoa"
9557 cat >>confdefs.h <<\_ACEOF
9558 #define AQUATEXMACS 1
9559 _ACEOF
9563 CONFIG_QT="Qt"
9565 cat >>confdefs.h <<\_ACEOF
9566 #define QTTEXMACS 1
9567 _ACEOF
9570 esac
9582 #--------------------------------------------------------------------
9583 # Debugging options
9584 #--------------------------------------------------------------------
9586 STD_DEBUG_FLAGS="-fno-rtti -fno-exceptions"
9587 if test "$enable_cocoa" = "yes"; then
9588 STD_DEBUG_FLAGS="-fno-exceptions"
9591 { echo "$as_me:$LINENO: checking if compiler supports $STD_DEBUG_FLAGS" >&5
9592 echo $ECHO_N "checking if compiler supports $STD_DEBUG_FLAGS... $ECHO_C" >&6; }
9593 CXXFLAGS="$STD_DEBUG_FLAGS"
9594 cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h. */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9601 int some_variable = 0;
9604 main ()
9609 return 0;
9611 _ACEOF
9612 rm -f conftest.$ac_objext
9613 if { (ac_try="$ac_compile"
9614 case "(($ac_try" in
9615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616 *) ac_try_echo=$ac_try;;
9617 esac
9618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619 (eval "$ac_compile") 2>conftest.er1
9620 ac_status=$?
9621 grep -v '^ *+' conftest.er1 >conftest.err
9622 rm -f conftest.er1
9623 cat conftest.err >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } && {
9626 test -z "$ac_cxx_werror_flag" ||
9627 test ! -s conftest.err
9628 } && test -s conftest.$ac_objext; then
9630 CONFIG_CXXDIALECT="$STD_DEBUG_FLAGS"
9631 { echo "$as_me:$LINENO: result: yes" >&5
9632 echo "${ECHO_T}yes" >&6; }
9634 else
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9639 CONFIG_CXXDIALECT=""
9640 { echo "$as_me:$LINENO: result: no" >&5
9641 echo "${ECHO_T}no" >&6; }
9645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9646 CXXFLAGS=""
9649 # Check whether --enable-debug was given.
9650 if test "${enable_debug+set}" = set; then
9651 enableval=$enable_debug;
9652 else
9653 enable_debug="no"
9657 if test "$enable_debug" = "yes"; then
9658 if test "$GXX" = "yes"; then
9659 enable_debug="-ggdb"
9660 else
9661 enable_debug="-g3"
9665 if test "$enable_debug" = "no"; then
9666 { echo "$as_me:$LINENO: result: disabling debugging" >&5
9667 echo "${ECHO_T}disabling debugging" >&6; }
9668 CONFIG_STRIP="strip"
9669 CONFIG_CXXDEBUG=""
9670 optimize_default="yes"
9671 else
9672 { echo "$as_me:$LINENO: result: enabling debugging, $enable_debug" >&5
9673 echo "${ECHO_T}enabling debugging, $enable_debug" >&6; }
9674 CONFIG_STRIP="true"
9675 CONFIG_CXXDEBUG="$enable_debug"
9676 optimize_default="no"
9679 # Check whether --enable-assert was given.
9680 if test "${enable_assert+set}" = set; then
9681 enableval=$enable_assert;
9682 else
9683 enable_assert="yes"
9687 if test "$enable_assert" = "no"; then
9688 { echo "$as_me:$LINENO: result: disabling assertion checking" >&5
9689 echo "${ECHO_T}disabling assertion checking" >&6; }
9690 else
9691 { echo "$as_me:$LINENO: result: enabling assertion checking" >&5
9692 echo "${ECHO_T}enabling assertion checking" >&6; }
9694 cat >>confdefs.h <<\_ACEOF
9695 #define DEBUG_ASSERT 1
9696 _ACEOF
9700 #--------------------------------------------------------------------
9701 # Warning options
9702 #--------------------------------------------------------------------
9704 case "$GXX_VERSION" in
9705 none)
9706 CONFIG_CXXWARNING="";
9709 CONFIG_CXXWARNING="-Wall -Wno-return-type"
9711 esac
9713 # Check whether --enable-warnings was given.
9714 if test "${enable_warnings+set}" = set; then
9715 enableval=$enable_warnings;
9716 else
9717 enable_warnings="yes"
9720 case "$enable_warnings" in
9721 yes)
9722 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9723 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9725 CONFIG_CXXWARNING=""
9726 { echo "$as_me:$LINENO: result: disabling warning flags" >&5
9727 echo "${ECHO_T}disabling warning flags" >&6; } ;;
9729 CONFIG_CXXWARNING="$enable_warnings"
9730 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9731 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9732 esac
9734 #--------------------------------------------------------------------
9735 # Optimization options
9736 #--------------------------------------------------------------------
9738 if test "$optimize_default" = "yes"; then
9739 case "$GXX_VERSION" in
9740 3.3.3 | 3.3.4 | 4.*)
9742 2.96 | 3.0 | 3.0.* | 3.1 | 3.1.* | 3.2 | 3.2.* | 3.3 | 3.3.*)
9743 case "${host}" in
9744 i*86-*-linux-gnu* | i*86-*-freebsd*)
9745 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9746 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9747 optimize_default="no-inline"
9750 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9751 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9752 optimize_default="no-inline"
9754 esac
9756 esac
9759 # Check whether --enable-optimize was given.
9760 if test "${enable_optimize+set}" = set; then
9761 enableval=$enable_optimize;
9762 else
9763 enable_optimize="$optimize_default"
9767 case "$enable_optimize" in
9768 yes)
9769 # keep optimization options
9770 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9771 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9772 no-inline)
9773 optimize_no_inline="-fno-default-inline -fno-inline"
9774 CONFIG_CXXOPTIMIZE="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
9775 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9776 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9778 CONFIG_CXXOPTIMIZE=""
9779 { echo "$as_me:$LINENO: result: disabling optimizations" >&5
9780 echo "${ECHO_T}disabling optimizations" >&6; } ;;
9782 CONFIG_CXXOPTIMIZE="$enable_optimize"
9783 { echo "$as_me:$LINENO: result: customizing optimizations, $enable_optimize" >&5
9784 echo "${ECHO_T}customizing optimizations, $enable_optimize" >&6; } ;;
9785 esac
9787 #--------------------------------------------------------------------
9788 # Substitute TeXmacs specific configuration parameters
9789 #--------------------------------------------------------------------
9813 #--------------------------------------------------------------------
9814 # Default paths for installation
9815 #--------------------------------------------------------------------
9817 if test "$prefix" = ""; then
9818 prefix=/usr/local
9820 if test "$prefix" = "NONE"; then
9821 prefix=/usr/local
9823 if test "$exec_prefix" = ""; then
9824 exec_prefix='${prefix}'
9826 if test "$exec_prefix" = "NONE"; then
9827 exec_prefix='${prefix}'
9829 if test "$exec_prefix" = '${prefix}'; then
9830 exec_prefix='${prefix}'
9832 if test "$includedir" = ""; then
9833 includedir='${prefix}/include'
9835 if test "$includedir" = "NONE"; then
9836 includedir='${prefix}/include'
9838 if test "$includedir" = '${prefix}/include'; then
9839 includedir='${prefix}/include'
9841 if test "$libdir" = ""; then
9842 libdir='${exec_prefix}/lib'
9844 if test "$libdir" = "NONE"; then
9845 libdir='${exec_prefix}/lib'
9847 if test "$libdir" = '${exec_prefix}/lib'; then
9848 libdir='${exec_prefix}/lib'
9850 if test "$bindir" = ""; then
9851 bindir='${exec_prefix}/bin'
9853 if test "$bindir" = "NONE"; then
9854 bindir=${exec_prefix}/bin
9856 if test "$bindir" = '${exec_prefix}/bin'; then
9857 bindir='${exec_prefix}/bin'
9859 if test "$datarootdir" = ""; then
9860 datarootdir='${prefix}/share'
9862 if test "$datarootdir" = "NONE"; then
9863 datarootdir='${prefix}/share'
9865 if test "$datarootdir" = '${prefix}/share'; then
9866 datarootdir='${prefix}/share'
9868 if test "$datadir" = ""; then
9869 datadir='${prefix}/share'
9871 if test "$datadir" = "NONE"; then
9872 datadir='${prefix}/share'
9874 if test "$datadir" = '${prefix}/share'; then
9875 datadir='${prefix}/share'
9877 if test "$mandir" = ""; then
9878 mandir='${datarootdir}/man'
9880 if test "$mandir" = "NONE"; then
9881 mandir='${datarootdir}/man'
9883 if test "$mandir" = '${datarootdir}/man'; then
9884 mandir='${datarootdir}/man'
9886 if test "$libexecdir" = ""; then
9887 libexecdir='${exec_prefix}/libexec'
9889 if test "$libexecdir" = "NONE"; then
9890 libexecdir='${exec_prefix}/libexec'
9892 if test "$libexecdir" = '${exec_prefix}/libexec'; then
9893 libexecdir='${exec_prefix}/libexec'
9896 curdir="`pwd`"
9897 tmorig=${curdir}
9898 tmdir=${PACKAGE}
9899 tmsrc=${curdir}/${tmdir}
9900 tmbin=${libexecdir}/${tmdir}
9901 tmdata=${datadir}/${tmdir}
9908 if test "$DEVEL_RELEASE" = "1"; then
9909 tmtgz=${PACKAGE}-${DEVEL_VERSION}
9910 else
9911 tmtgz=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
9913 tmrpm=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
9914 if test "$STABLE_RELEASE" = "1"; then
9915 tmstgz=${PACKAGE}-${STABLE_VERSION}
9916 else
9917 tmstgz=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
9919 tmsrpm=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
9920 if test "$WINDOWS_RELEASE" = "1"; then
9921 tmwin=wintexmacs-${WINDOWS_VERSION}
9922 else
9923 tmwin=wintexmacs-${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
9931 #--------------------------------------------------------------------
9932 # Done
9933 #--------------------------------------------------------------------
9935 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"
9937 cat >confcache <<\_ACEOF
9938 # This file is a shell script that caches the results of configure
9939 # tests run on this system so they can be shared between configure
9940 # scripts and configure runs, see configure's option --config-cache.
9941 # It is not useful on other systems. If it contains results you don't
9942 # want to keep, you may remove or edit it.
9944 # config.status only pays attention to the cache file if you give it
9945 # the --recheck option to rerun configure.
9947 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9948 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9949 # following values.
9951 _ACEOF
9953 # The following way of writing the cache mishandles newlines in values,
9954 # but we know of no workaround that is simple, portable, and efficient.
9955 # So, we kill variables containing newlines.
9956 # Ultrix sh set writes to stderr and can't be redirected directly,
9957 # and sets the high bit in the cache file unless we assign to the vars.
9959 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9960 eval ac_val=\$$ac_var
9961 case $ac_val in #(
9962 *${as_nl}*)
9963 case $ac_var in #(
9964 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9965 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9966 esac
9967 case $ac_var in #(
9968 _ | IFS | as_nl) ;; #(
9969 *) $as_unset $ac_var ;;
9970 esac ;;
9971 esac
9972 done
9974 (set) 2>&1 |
9975 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9976 *${as_nl}ac_space=\ *)
9977 # `set' does not quote correctly, so add quotes (double-quote
9978 # substitution turns \\\\ into \\, and sed turns \\ into \).
9979 sed -n \
9980 "s/'/'\\\\''/g;
9981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9982 ;; #(
9984 # `set' quotes correctly as required by POSIX, so do not add quotes.
9985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9987 esac |
9988 sort
9990 sed '
9991 /^ac_cv_env_/b end
9992 t clear
9993 :clear
9994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9995 t end
9996 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9997 :end' >>confcache
9998 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9999 if test -w "$cache_file"; then
10000 test "x$cache_file" != "x/dev/null" &&
10001 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10002 echo "$as_me: updating cache $cache_file" >&6;}
10003 cat confcache >$cache_file
10004 else
10005 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10006 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10009 rm -f confcache
10011 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10012 # Let make expand exec_prefix.
10013 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10015 DEFS=-DHAVE_CONFIG_H
10017 ac_libobjs=
10018 ac_ltlibobjs=
10019 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10020 # 1. Remove the extension, and $U if already installed.
10021 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10022 ac_i=`echo "$ac_i" | sed "$ac_script"`
10023 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10024 # will be set to the directory where LIBOBJS objects are built.
10025 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10026 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10027 done
10028 LIBOBJS=$ac_libobjs
10030 LTLIBOBJS=$ac_ltlibobjs
10034 : ${CONFIG_STATUS=./config.status}
10035 ac_clean_files_save=$ac_clean_files
10036 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10037 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10038 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10039 cat >$CONFIG_STATUS <<_ACEOF
10040 #! $SHELL
10041 # Generated by $as_me.
10042 # Run this file to recreate the current configuration.
10043 # Compiler output produced by configure, useful for debugging
10044 # configure, is in config.log if it exists.
10046 debug=false
10047 ac_cs_recheck=false
10048 ac_cs_silent=false
10049 SHELL=\${CONFIG_SHELL-$SHELL}
10050 _ACEOF
10052 cat >>$CONFIG_STATUS <<\_ACEOF
10053 ## --------------------- ##
10054 ## M4sh Initialization. ##
10055 ## --------------------- ##
10057 # Be more Bourne compatible
10058 DUALCASE=1; export DUALCASE # for MKS sh
10059 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10060 emulate sh
10061 NULLCMD=:
10062 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10063 # is contrary to our usage. Disable this feature.
10064 alias -g '${1+"$@"}'='"$@"'
10065 setopt NO_GLOB_SUBST
10066 else
10067 case `(set -o) 2>/dev/null` in
10068 *posix*) set -o posix ;;
10069 esac
10076 # PATH needs CR
10077 # Avoid depending upon Character Ranges.
10078 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10079 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10080 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10081 as_cr_digits='0123456789'
10082 as_cr_alnum=$as_cr_Letters$as_cr_digits
10084 # The user is always right.
10085 if test "${PATH_SEPARATOR+set}" != set; then
10086 echo "#! /bin/sh" >conf$$.sh
10087 echo "exit 0" >>conf$$.sh
10088 chmod +x conf$$.sh
10089 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10090 PATH_SEPARATOR=';'
10091 else
10092 PATH_SEPARATOR=:
10094 rm -f conf$$.sh
10097 # Support unset when possible.
10098 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10099 as_unset=unset
10100 else
10101 as_unset=false
10105 # IFS
10106 # We need space, tab and new line, in precisely that order. Quoting is
10107 # there to prevent editors from complaining about space-tab.
10108 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10109 # splitting by setting IFS to empty value.)
10110 as_nl='
10112 IFS=" "" $as_nl"
10114 # Find who we are. Look in the path if we contain no directory separator.
10115 case $0 in
10116 *[\\/]* ) as_myself=$0 ;;
10117 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10118 for as_dir in $PATH
10120 IFS=$as_save_IFS
10121 test -z "$as_dir" && as_dir=.
10122 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10123 done
10124 IFS=$as_save_IFS
10127 esac
10128 # We did not find ourselves, most probably we were run as `sh COMMAND'
10129 # in which case we are not to be found in the path.
10130 if test "x$as_myself" = x; then
10131 as_myself=$0
10133 if test ! -f "$as_myself"; then
10134 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10135 { (exit 1); exit 1; }
10138 # Work around bugs in pre-3.0 UWIN ksh.
10139 for as_var in ENV MAIL MAILPATH
10140 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10141 done
10142 PS1='$ '
10143 PS2='> '
10144 PS4='+ '
10146 # NLS nuisances.
10147 for as_var in \
10148 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10149 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10150 LC_TELEPHONE LC_TIME
10152 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10153 eval $as_var=C; export $as_var
10154 else
10155 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10157 done
10159 # Required to use basename.
10160 if expr a : '\(a\)' >/dev/null 2>&1 &&
10161 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10162 as_expr=expr
10163 else
10164 as_expr=false
10167 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10168 as_basename=basename
10169 else
10170 as_basename=false
10174 # Name of the executable.
10175 as_me=`$as_basename -- "$0" ||
10176 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10177 X"$0" : 'X\(//\)$' \| \
10178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10179 echo X/"$0" |
10180 sed '/^.*\/\([^/][^/]*\)\/*$/{
10181 s//\1/
10184 /^X\/\(\/\/\)$/{
10185 s//\1/
10188 /^X\/\(\/\).*/{
10189 s//\1/
10192 s/.*/./; q'`
10194 # CDPATH.
10195 $as_unset CDPATH
10199 as_lineno_1=$LINENO
10200 as_lineno_2=$LINENO
10201 test "x$as_lineno_1" != "x$as_lineno_2" &&
10202 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10204 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10205 # uniformly replaced by the line number. The first 'sed' inserts a
10206 # line-number line after each line using $LINENO; the second 'sed'
10207 # does the real work. The second script uses 'N' to pair each
10208 # line-number line with the line containing $LINENO, and appends
10209 # trailing '-' during substitution so that $LINENO is not a special
10210 # case at line end.
10211 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10212 # scripts with optimization help from Paolo Bonzini. Blame Lee
10213 # E. McMahon (1931-1989) for sed's syntax. :-)
10214 sed -n '
10216 /[$]LINENO/=
10217 ' <$as_myself |
10218 sed '
10219 s/[$]LINENO.*/&-/
10220 t lineno
10222 :lineno
10224 :loop
10225 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10226 t loop
10227 s/-\n.*//
10228 ' >$as_me.lineno &&
10229 chmod +x "$as_me.lineno" ||
10230 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10231 { (exit 1); exit 1; }; }
10233 # Don't try to exec as it changes $[0], causing all sort of problems
10234 # (the dirname of $[0] is not the place where we might find the
10235 # original and so on. Autoconf is especially sensitive to this).
10236 . "./$as_me.lineno"
10237 # Exit status is that of the last command.
10238 exit
10242 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10243 as_dirname=dirname
10244 else
10245 as_dirname=false
10248 ECHO_C= ECHO_N= ECHO_T=
10249 case `echo -n x` in
10250 -n*)
10251 case `echo 'x\c'` in
10252 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10253 *) ECHO_C='\c';;
10254 esac;;
10256 ECHO_N='-n';;
10257 esac
10259 if expr a : '\(a\)' >/dev/null 2>&1 &&
10260 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10261 as_expr=expr
10262 else
10263 as_expr=false
10266 rm -f conf$$ conf$$.exe conf$$.file
10267 if test -d conf$$.dir; then
10268 rm -f conf$$.dir/conf$$.file
10269 else
10270 rm -f conf$$.dir
10271 mkdir conf$$.dir
10273 echo >conf$$.file
10274 if ln -s conf$$.file conf$$ 2>/dev/null; then
10275 as_ln_s='ln -s'
10276 # ... but there are two gotchas:
10277 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10278 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10279 # In both cases, we have to default to `cp -p'.
10280 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10281 as_ln_s='cp -p'
10282 elif ln conf$$.file conf$$ 2>/dev/null; then
10283 as_ln_s=ln
10284 else
10285 as_ln_s='cp -p'
10287 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10288 rmdir conf$$.dir 2>/dev/null
10290 if mkdir -p . 2>/dev/null; then
10291 as_mkdir_p=:
10292 else
10293 test -d ./-p && rmdir ./-p
10294 as_mkdir_p=false
10297 if test -x / >/dev/null 2>&1; then
10298 as_test_x='test -x'
10299 else
10300 if ls -dL / >/dev/null 2>&1; then
10301 as_ls_L_option=L
10302 else
10303 as_ls_L_option=
10305 as_test_x='
10306 eval sh -c '\''
10307 if test -d "$1"; then
10308 test -d "$1/.";
10309 else
10310 case $1 in
10311 -*)set "./$1";;
10312 esac;
10313 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10314 ???[sx]*):;;*)false;;esac;fi
10315 '\'' sh
10318 as_executable_p=$as_test_x
10320 # Sed expression to map a string onto a valid CPP name.
10321 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10323 # Sed expression to map a string onto a valid variable name.
10324 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10327 exec 6>&1
10329 # Save the log message, to keep $[0] and so on meaningful, and to
10330 # report actual input values of CONFIG_FILES etc. instead of their
10331 # values after options handling.
10332 ac_log="
10333 This file was extended by $as_me, which was
10334 generated by GNU Autoconf 2.61. Invocation command line was
10336 CONFIG_FILES = $CONFIG_FILES
10337 CONFIG_HEADERS = $CONFIG_HEADERS
10338 CONFIG_LINKS = $CONFIG_LINKS
10339 CONFIG_COMMANDS = $CONFIG_COMMANDS
10340 $ $0 $@
10342 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10345 _ACEOF
10347 cat >>$CONFIG_STATUS <<_ACEOF
10348 # Files that config.status was made for.
10349 config_files="$ac_config_files"
10350 config_headers="$ac_config_headers"
10352 _ACEOF
10354 cat >>$CONFIG_STATUS <<\_ACEOF
10355 ac_cs_usage="\
10356 \`$as_me' instantiates files from templates according to the
10357 current configuration.
10359 Usage: $0 [OPTIONS] [FILE]...
10361 -h, --help print this help, then exit
10362 -V, --version print version number and configuration settings, then exit
10363 -q, --quiet do not print progress messages
10364 -d, --debug don't remove temporary files
10365 --recheck update $as_me by reconfiguring in the same conditions
10366 --file=FILE[:TEMPLATE]
10367 instantiate the configuration file FILE
10368 --header=FILE[:TEMPLATE]
10369 instantiate the configuration header FILE
10371 Configuration files:
10372 $config_files
10374 Configuration headers:
10375 $config_headers
10377 Report bugs to <bug-autoconf@gnu.org>."
10379 _ACEOF
10380 cat >>$CONFIG_STATUS <<_ACEOF
10381 ac_cs_version="\\
10382 config.status
10383 configured by $0, generated by GNU Autoconf 2.61,
10384 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10386 Copyright (C) 2006 Free Software Foundation, Inc.
10387 This config.status script is free software; the Free Software Foundation
10388 gives unlimited permission to copy, distribute and modify it."
10390 ac_pwd='$ac_pwd'
10391 srcdir='$srcdir'
10392 _ACEOF
10394 cat >>$CONFIG_STATUS <<\_ACEOF
10395 # If no file are specified by the user, then we need to provide default
10396 # value. By we need to know if files were specified by the user.
10397 ac_need_defaults=:
10398 while test $# != 0
10400 case $1 in
10401 --*=*)
10402 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10403 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10404 ac_shift=:
10407 ac_option=$1
10408 ac_optarg=$2
10409 ac_shift=shift
10411 esac
10413 case $ac_option in
10414 # Handling of the options.
10415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10416 ac_cs_recheck=: ;;
10417 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10418 echo "$ac_cs_version"; exit ;;
10419 --debug | --debu | --deb | --de | --d | -d )
10420 debug=: ;;
10421 --file | --fil | --fi | --f )
10422 $ac_shift
10423 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10424 ac_need_defaults=false;;
10425 --header | --heade | --head | --hea )
10426 $ac_shift
10427 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10428 ac_need_defaults=false;;
10429 --he | --h)
10430 # Conflict between --help and --header
10431 { echo "$as_me: error: ambiguous option: $1
10432 Try \`$0 --help' for more information." >&2
10433 { (exit 1); exit 1; }; };;
10434 --help | --hel | -h )
10435 echo "$ac_cs_usage"; exit ;;
10436 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10437 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10438 ac_cs_silent=: ;;
10440 # This is an error.
10441 -*) { echo "$as_me: error: unrecognized option: $1
10442 Try \`$0 --help' for more information." >&2
10443 { (exit 1); exit 1; }; } ;;
10445 *) ac_config_targets="$ac_config_targets $1"
10446 ac_need_defaults=false ;;
10448 esac
10449 shift
10450 done
10452 ac_configure_extra_args=
10454 if $ac_cs_silent; then
10455 exec 6>/dev/null
10456 ac_configure_extra_args="$ac_configure_extra_args --silent"
10459 _ACEOF
10460 cat >>$CONFIG_STATUS <<_ACEOF
10461 if \$ac_cs_recheck; then
10462 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10463 CONFIG_SHELL=$SHELL
10464 export CONFIG_SHELL
10465 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10468 _ACEOF
10469 cat >>$CONFIG_STATUS <<\_ACEOF
10470 exec 5>>config.log
10472 echo
10473 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10474 ## Running $as_me. ##
10475 _ASBOX
10476 echo "$ac_log"
10477 } >&5
10479 _ACEOF
10480 cat >>$CONFIG_STATUS <<_ACEOF
10481 _ACEOF
10483 cat >>$CONFIG_STATUS <<\_ACEOF
10485 # Handling of arguments.
10486 for ac_config_target in $ac_config_targets
10488 case $ac_config_target in
10489 "src/System/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
10490 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in" ;;
10491 "src/makefile") CONFIG_FILES="$CONFIG_FILES src/makefile:src/makefile.in" ;;
10492 "src/System/tm_configure.hpp") CONFIG_FILES="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
10493 "misc/admin/admin.makefile") CONFIG_FILES="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
10494 "misc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
10495 "misc/man/texmacs.1") CONFIG_FILES="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
10496 "misc/rpm/TeXmacs.spec") CONFIG_FILES="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
10497 "misc/scripts/fig2ps") CONFIG_FILES="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
10498 "misc/scripts/texmacs") CONFIG_FILES="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
10499 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
10500 "misc/bundle/Base.xcconfig") CONFIG_FILES="$CONFIG_FILES misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in" ;;
10502 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10503 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10504 { (exit 1); exit 1; }; };;
10505 esac
10506 done
10509 # If the user did not use the arguments to specify the items to instantiate,
10510 # then the envvar interface is used. Set only those that are not.
10511 # We use the long form for the default assignment because of an extremely
10512 # bizarre bug on SunOS 4.1.3.
10513 if $ac_need_defaults; then
10514 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10515 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10518 # Have a temporary directory for convenience. Make it in the build tree
10519 # simply because there is no reason against having it here, and in addition,
10520 # creating and moving files from /tmp can sometimes cause problems.
10521 # Hook for its removal unless debugging.
10522 # Note that there is a small window in which the directory will not be cleaned:
10523 # after its creation but before its name has been assigned to `$tmp'.
10524 $debug ||
10526 tmp=
10527 trap 'exit_status=$?
10528 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10530 trap '{ (exit 1); exit 1; }' 1 2 13 15
10532 # Create a (secure) tmp directory for tmp files.
10535 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10536 test -n "$tmp" && test -d "$tmp"
10537 } ||
10539 tmp=./conf$$-$RANDOM
10540 (umask 077 && mkdir "$tmp")
10541 } ||
10543 echo "$me: cannot create a temporary directory in ." >&2
10544 { (exit 1); exit 1; }
10548 # Set up the sed scripts for CONFIG_FILES section.
10551 # No need to generate the scripts if there are no CONFIG_FILES.
10552 # This happens for instance when ./config.status config.h
10553 if test -n "$CONFIG_FILES"; then
10555 _ACEOF
10559 ac_delim='%!_!# '
10560 for ac_last_try in false false false false false :; do
10561 cat >conf$$subs.sed <<_ACEOF
10562 SHELL!$SHELL$ac_delim
10563 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10564 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10565 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10566 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10567 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10568 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10569 exec_prefix!$exec_prefix$ac_delim
10570 prefix!$prefix$ac_delim
10571 program_transform_name!$program_transform_name$ac_delim
10572 bindir!$bindir$ac_delim
10573 sbindir!$sbindir$ac_delim
10574 libexecdir!$libexecdir$ac_delim
10575 datarootdir!$datarootdir$ac_delim
10576 datadir!$datadir$ac_delim
10577 sysconfdir!$sysconfdir$ac_delim
10578 sharedstatedir!$sharedstatedir$ac_delim
10579 localstatedir!$localstatedir$ac_delim
10580 includedir!$includedir$ac_delim
10581 oldincludedir!$oldincludedir$ac_delim
10582 docdir!$docdir$ac_delim
10583 infodir!$infodir$ac_delim
10584 htmldir!$htmldir$ac_delim
10585 dvidir!$dvidir$ac_delim
10586 pdfdir!$pdfdir$ac_delim
10587 psdir!$psdir$ac_delim
10588 libdir!$libdir$ac_delim
10589 localedir!$localedir$ac_delim
10590 mandir!$mandir$ac_delim
10591 DEFS!$DEFS$ac_delim
10592 ECHO_C!$ECHO_C$ac_delim
10593 ECHO_N!$ECHO_N$ac_delim
10594 ECHO_T!$ECHO_T$ac_delim
10595 LIBS!$LIBS$ac_delim
10596 build_alias!$build_alias$ac_delim
10597 host_alias!$host_alias$ac_delim
10598 target_alias!$target_alias$ac_delim
10599 PACKAGE!$PACKAGE$ac_delim
10600 DEVEL_VERSION!$DEVEL_VERSION$ac_delim
10601 DEVEL_RELEASE!$DEVEL_RELEASE$ac_delim
10602 STABLE_VERSION!$STABLE_VERSION$ac_delim
10603 STABLE_RELEASE!$STABLE_RELEASE$ac_delim
10604 CC!$CC$ac_delim
10605 CFLAGS!$CFLAGS$ac_delim
10606 LDFLAGS!$LDFLAGS$ac_delim
10607 CPPFLAGS!$CPPFLAGS$ac_delim
10608 ac_ct_CC!$ac_ct_CC$ac_delim
10609 EXEEXT!$EXEEXT$ac_delim
10610 OBJEXT!$OBJEXT$ac_delim
10611 CXX!$CXX$ac_delim
10612 CXXFLAGS!$CXXFLAGS$ac_delim
10613 ac_ct_CXX!$ac_ct_CXX$ac_delim
10614 GUILE_CFLAGS!$GUILE_CFLAGS$ac_delim
10615 GUILE_LDFLAGS!$GUILE_LDFLAGS$ac_delim
10616 CONFIG_GUILE_SERIAL!$CONFIG_GUILE_SERIAL$ac_delim
10617 CXXCPP!$CXXCPP$ac_delim
10618 GREP!$GREP$ac_delim
10619 EGREP!$EGREP$ac_delim
10620 XMKMF!$XMKMF$ac_delim
10621 X_CFLAGS!$X_CFLAGS$ac_delim
10622 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
10623 X_LIBS!$X_LIBS$ac_delim
10624 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
10625 CONFIG_BDL!$CONFIG_BDL$ac_delim
10626 CPP!$CPP$ac_delim
10627 ICONV_CFLAGS!$ICONV_CFLAGS$ac_delim
10628 ICONV_LDFLAGS!$ICONV_LDFLAGS$ac_delim
10629 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
10630 FREETYPE_LDFLAGS!$FREETYPE_LDFLAGS$ac_delim
10631 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
10632 CAIRO_LDFLAGS!$CAIRO_LDFLAGS$ac_delim
10633 IMLIB2_CFLAGS!$IMLIB2_CFLAGS$ac_delim
10634 IMLIB2_LDFLAGS!$IMLIB2_LDFLAGS$ac_delim
10635 AXEL_CFLAGS!$AXEL_CFLAGS$ac_delim
10636 AXEL_LDFLAGS!$AXEL_LDFLAGS$ac_delim
10637 build!$build$ac_delim
10638 build_cpu!$build_cpu$ac_delim
10639 build_vendor!$build_vendor$ac_delim
10640 build_os!$build_os$ac_delim
10641 host!$host$ac_delim
10642 host_cpu!$host_cpu$ac_delim
10643 host_vendor!$host_vendor$ac_delim
10644 host_os!$host_os$ac_delim
10645 CONFIG_EXPERIMENTAL!$CONFIG_EXPERIMENTAL$ac_delim
10646 CONFIG_MACOS!$CONFIG_MACOS$ac_delim
10647 QMAKE!$QMAKE$ac_delim
10648 MOC!$MOC$ac_delim
10649 UIC!$UIC$ac_delim
10650 RCC!$RCC$ac_delim
10651 QT_PATH!$QT_PATH$ac_delim
10652 TMPDIR!$TMPDIR$ac_delim
10653 QT_VERSION_MAJOR!$QT_VERSION_MAJOR$ac_delim
10654 QT_DEFINES!$QT_DEFINES$ac_delim
10655 QT_CFLAGS!$QT_CFLAGS$ac_delim
10656 QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
10657 QT_INCPATH!$QT_INCPATH$ac_delim
10658 QT_CPPFLAGS!$QT_CPPFLAGS$ac_delim
10659 _ACEOF
10661 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10662 break
10663 elif $ac_last_try; then
10664 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10665 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10666 { (exit 1); exit 1; }; }
10667 else
10668 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10670 done
10672 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10673 if test -n "$ac_eof"; then
10674 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10675 ac_eof=`expr $ac_eof + 1`
10678 cat >>$CONFIG_STATUS <<_ACEOF
10679 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10680 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10681 _ACEOF
10682 sed '
10683 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10684 s/^/s,@/; s/!/@,|#_!!_#|/
10687 s/'"$ac_delim"'$/,g/; t
10688 s/$/\\/; p
10689 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10690 ' >>$CONFIG_STATUS <conf$$subs.sed
10691 rm -f conf$$subs.sed
10692 cat >>$CONFIG_STATUS <<_ACEOF
10693 CEOF$ac_eof
10694 _ACEOF
10697 ac_delim='%!_!# '
10698 for ac_last_try in false false false false false :; do
10699 cat >conf$$subs.sed <<_ACEOF
10700 QT_LDFLAGS!$QT_LDFLAGS$ac_delim
10701 QT_LFLAGS!$QT_LFLAGS$ac_delim
10702 QT_LIBS!$QT_LIBS$ac_delim
10703 X11_CFLAGS!$X11_CFLAGS$ac_delim
10704 X11_LDFLAGS!$X11_LDFLAGS$ac_delim
10705 COCOA_CFLAGS!$COCOA_CFLAGS$ac_delim
10706 COCOA_LDFLAGS!$COCOA_LDFLAGS$ac_delim
10707 CONFIG_X11!$CONFIG_X11$ac_delim
10708 CONFIG_COCOA!$CONFIG_COCOA$ac_delim
10709 CONFIG_QT!$CONFIG_QT$ac_delim
10710 CONFIG_GUI!$CONFIG_GUI$ac_delim
10711 CONFIG_CXXDIALECT!$CONFIG_CXXDIALECT$ac_delim
10712 CONFIG_OS!$CONFIG_OS$ac_delim
10713 CONFIG_OS_SUFFIX!$CONFIG_OS_SUFFIX$ac_delim
10714 CONFIG_CXXWARNING!$CONFIG_CXXWARNING$ac_delim
10715 CONFIG_CXXTEMPLATE!$CONFIG_CXXTEMPLATE$ac_delim
10716 CONFIG_CXXOPTIMIZE!$CONFIG_CXXOPTIMIZE$ac_delim
10717 CONFIG_CXXDEBUG!$CONFIG_CXXDEBUG$ac_delim
10718 CONFIG_BFLAGS!$CONFIG_BFLAGS$ac_delim
10719 CONFIG_BSTATIC!$CONFIG_BSTATIC$ac_delim
10720 CONFIG_BSHARED!$CONFIG_BSHARED$ac_delim
10721 CONFIG_BPATH!$CONFIG_BPATH$ac_delim
10722 CONFIG_WORD_LENGTH!$CONFIG_WORD_LENGTH$ac_delim
10723 CONFIG_WORD_LENGTH_INC!$CONFIG_WORD_LENGTH_INC$ac_delim
10724 CONFIG_WORD_MASK!$CONFIG_WORD_MASK$ac_delim
10725 CONFIG_MAX_FAST!$CONFIG_MAX_FAST$ac_delim
10726 CONFIG_CXXFLAGS!$CONFIG_CXXFLAGS$ac_delim
10727 CONFIG_STD_SETENV!$CONFIG_STD_SETENV$ac_delim
10728 CONFIG_SO!$CONFIG_SO$ac_delim
10729 CONFIG_LIB_PATH!$CONFIG_LIB_PATH$ac_delim
10730 CONFIG_STRIP!$CONFIG_STRIP$ac_delim
10731 CONFIG_CHMOD!$CONFIG_CHMOD$ac_delim
10732 LDRT!$LDRT$ac_delim
10733 tmorig!$tmorig$ac_delim
10734 tmdir!$tmdir$ac_delim
10735 tmsrc!$tmsrc$ac_delim
10736 tmbin!$tmbin$ac_delim
10737 tmdata!$tmdata$ac_delim
10738 tmtgz!$tmtgz$ac_delim
10739 tmrpm!$tmrpm$ac_delim
10740 tmstgz!$tmstgz$ac_delim
10741 tmsrpm!$tmsrpm$ac_delim
10742 tmwin!$tmwin$ac_delim
10743 LIBOBJS!$LIBOBJS$ac_delim
10744 LTLIBOBJS!$LTLIBOBJS$ac_delim
10745 _ACEOF
10747 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then
10748 break
10749 elif $ac_last_try; then
10750 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10751 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10752 { (exit 1); exit 1; }; }
10753 else
10754 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10756 done
10758 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10759 if test -n "$ac_eof"; then
10760 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10761 ac_eof=`expr $ac_eof + 1`
10764 cat >>$CONFIG_STATUS <<_ACEOF
10765 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10766 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10767 _ACEOF
10768 sed '
10769 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10770 s/^/s,@/; s/!/@,|#_!!_#|/
10773 s/'"$ac_delim"'$/,g/; t
10774 s/$/\\/; p
10775 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10776 ' >>$CONFIG_STATUS <conf$$subs.sed
10777 rm -f conf$$subs.sed
10778 cat >>$CONFIG_STATUS <<_ACEOF
10779 :end
10780 s/|#_!!_#|//g
10781 CEOF$ac_eof
10782 _ACEOF
10785 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10786 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10787 # trailing colons and then remove the whole line if VPATH becomes empty
10788 # (actually we leave an empty line to preserve line numbers).
10789 if test "x$srcdir" = x.; then
10790 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10791 s/:*\$(srcdir):*/:/
10792 s/:*\${srcdir}:*/:/
10793 s/:*@srcdir@:*/:/
10794 s/^\([^=]*=[ ]*\):*/\1/
10795 s/:*$//
10796 s/^[^=]*=[ ]*$//
10800 cat >>$CONFIG_STATUS <<\_ACEOF
10801 fi # test -n "$CONFIG_FILES"
10804 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
10806 case $ac_tag in
10807 :[FHLC]) ac_mode=$ac_tag; continue;;
10808 esac
10809 case $ac_mode$ac_tag in
10810 :[FHL]*:*);;
10811 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10812 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10813 { (exit 1); exit 1; }; };;
10814 :[FH]-) ac_tag=-:-;;
10815 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10816 esac
10817 ac_save_IFS=$IFS
10818 IFS=:
10819 set x $ac_tag
10820 IFS=$ac_save_IFS
10821 shift
10822 ac_file=$1
10823 shift
10825 case $ac_mode in
10826 :L) ac_source=$1;;
10827 :[FH])
10828 ac_file_inputs=
10829 for ac_f
10831 case $ac_f in
10832 -) ac_f="$tmp/stdin";;
10833 *) # Look for the file first in the build tree, then in the source tree
10834 # (if the path is not absolute). The absolute path cannot be DOS-style,
10835 # because $ac_f cannot contain `:'.
10836 test -f "$ac_f" ||
10837 case $ac_f in
10838 [\\/$]*) false;;
10839 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10840 esac ||
10841 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10842 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10843 { (exit 1); exit 1; }; };;
10844 esac
10845 ac_file_inputs="$ac_file_inputs $ac_f"
10846 done
10848 # Let's still pretend it is `configure' which instantiates (i.e., don't
10849 # use $as_me), people would be surprised to read:
10850 # /* config.h. Generated by config.status. */
10851 configure_input="Generated from "`IFS=:
10852 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10853 if test x"$ac_file" != x-; then
10854 configure_input="$ac_file. $configure_input"
10855 { echo "$as_me:$LINENO: creating $ac_file" >&5
10856 echo "$as_me: creating $ac_file" >&6;}
10859 case $ac_tag in
10860 *:-:* | *:-) cat >"$tmp/stdin";;
10861 esac
10863 esac
10865 ac_dir=`$as_dirname -- "$ac_file" ||
10866 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10867 X"$ac_file" : 'X\(//\)[^/]' \| \
10868 X"$ac_file" : 'X\(//\)$' \| \
10869 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10870 echo X"$ac_file" |
10871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10872 s//\1/
10875 /^X\(\/\/\)[^/].*/{
10876 s//\1/
10879 /^X\(\/\/\)$/{
10880 s//\1/
10883 /^X\(\/\).*/{
10884 s//\1/
10887 s/.*/./; q'`
10888 { as_dir="$ac_dir"
10889 case $as_dir in #(
10890 -*) as_dir=./$as_dir;;
10891 esac
10892 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10893 as_dirs=
10894 while :; do
10895 case $as_dir in #(
10896 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10897 *) as_qdir=$as_dir;;
10898 esac
10899 as_dirs="'$as_qdir' $as_dirs"
10900 as_dir=`$as_dirname -- "$as_dir" ||
10901 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10902 X"$as_dir" : 'X\(//\)[^/]' \| \
10903 X"$as_dir" : 'X\(//\)$' \| \
10904 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10905 echo X"$as_dir" |
10906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10907 s//\1/
10910 /^X\(\/\/\)[^/].*/{
10911 s//\1/
10914 /^X\(\/\/\)$/{
10915 s//\1/
10918 /^X\(\/\).*/{
10919 s//\1/
10922 s/.*/./; q'`
10923 test -d "$as_dir" && break
10924 done
10925 test -z "$as_dirs" || eval "mkdir $as_dirs"
10926 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10927 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10928 { (exit 1); exit 1; }; }; }
10929 ac_builddir=.
10931 case "$ac_dir" in
10932 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10934 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10935 # A ".." for each directory in $ac_dir_suffix.
10936 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10937 case $ac_top_builddir_sub in
10938 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10939 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10940 esac ;;
10941 esac
10942 ac_abs_top_builddir=$ac_pwd
10943 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10944 # for backward compatibility:
10945 ac_top_builddir=$ac_top_build_prefix
10947 case $srcdir in
10948 .) # We are building in place.
10949 ac_srcdir=.
10950 ac_top_srcdir=$ac_top_builddir_sub
10951 ac_abs_top_srcdir=$ac_pwd ;;
10952 [\\/]* | ?:[\\/]* ) # Absolute name.
10953 ac_srcdir=$srcdir$ac_dir_suffix;
10954 ac_top_srcdir=$srcdir
10955 ac_abs_top_srcdir=$srcdir ;;
10956 *) # Relative name.
10957 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10958 ac_top_srcdir=$ac_top_build_prefix$srcdir
10959 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10960 esac
10961 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10964 case $ac_mode in
10967 # CONFIG_FILE
10970 _ACEOF
10972 cat >>$CONFIG_STATUS <<\_ACEOF
10973 # If the template does not know about datarootdir, expand it.
10974 # FIXME: This hack should be removed a few years after 2.60.
10975 ac_datarootdir_hack=; ac_datarootdir_seen=
10977 case `sed -n '/datarootdir/ {
10981 /@datadir@/p
10982 /@docdir@/p
10983 /@infodir@/p
10984 /@localedir@/p
10985 /@mandir@/p
10986 ' $ac_file_inputs` in
10987 *datarootdir*) ac_datarootdir_seen=yes;;
10988 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10989 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10990 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10991 _ACEOF
10992 cat >>$CONFIG_STATUS <<_ACEOF
10993 ac_datarootdir_hack='
10994 s&@datadir@&$datadir&g
10995 s&@docdir@&$docdir&g
10996 s&@infodir@&$infodir&g
10997 s&@localedir@&$localedir&g
10998 s&@mandir@&$mandir&g
10999 s&\\\${datarootdir}&$datarootdir&g' ;;
11000 esac
11001 _ACEOF
11003 # Neutralize VPATH when `$srcdir' = `.'.
11004 # Shell code in configure.ac might set extrasub.
11005 # FIXME: do we really want to maintain this feature?
11006 cat >>$CONFIG_STATUS <<_ACEOF
11007 sed "$ac_vpsub
11008 $extrasub
11009 _ACEOF
11010 cat >>$CONFIG_STATUS <<\_ACEOF
11012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11013 s&@configure_input@&$configure_input&;t t
11014 s&@top_builddir@&$ac_top_builddir_sub&;t t
11015 s&@srcdir@&$ac_srcdir&;t t
11016 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11017 s&@top_srcdir@&$ac_top_srcdir&;t t
11018 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11019 s&@builddir@&$ac_builddir&;t t
11020 s&@abs_builddir@&$ac_abs_builddir&;t t
11021 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11022 $ac_datarootdir_hack
11023 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11025 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11026 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11027 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11028 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11029 which seems to be undefined. Please make sure it is defined." >&5
11030 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11031 which seems to be undefined. Please make sure it is defined." >&2;}
11033 rm -f "$tmp/stdin"
11034 case $ac_file in
11035 -) cat "$tmp/out"; rm -f "$tmp/out";;
11036 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11037 esac
11041 # CONFIG_HEADER
11043 _ACEOF
11045 # Transform confdefs.h into a sed script `conftest.defines', that
11046 # substitutes the proper values into config.h.in to produce config.h.
11047 rm -f conftest.defines conftest.tail
11048 # First, append a space to every undef/define line, to ease matching.
11049 echo 's/$/ /' >conftest.defines
11050 # Then, protect against being on the right side of a sed subst, or in
11051 # an unquoted here document, in config.status. If some macros were
11052 # called several times there might be several #defines for the same
11053 # symbol, which is useless. But do not sort them, since the last
11054 # AC_DEFINE must be honored.
11055 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11056 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11057 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11058 # PARAMS is the parameter list in the macro definition--in most cases, it's
11059 # just an empty string.
11060 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11061 ac_dB='\\)[ (].*,\\1define\\2'
11062 ac_dC=' '
11063 ac_dD=' ,'
11065 uniq confdefs.h |
11066 sed -n '
11067 t rset
11068 :rset
11069 s/^[ ]*#[ ]*define[ ][ ]*//
11070 t ok
11073 s/[\\&,]/\\&/g
11074 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11075 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11076 ' >>conftest.defines
11078 # Remove the space that was appended to ease matching.
11079 # Then replace #undef with comments. This is necessary, for
11080 # example, in the case of _POSIX_SOURCE, which is predefined and required
11081 # on some systems where configure will not decide to define it.
11082 # (The regexp can be short, since the line contains either #define or #undef.)
11083 echo 's/ $//
11084 s,^[ #]*u.*,/* & */,' >>conftest.defines
11086 # Break up conftest.defines:
11087 ac_max_sed_lines=50
11089 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11090 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11091 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11092 # et cetera.
11093 ac_in='$ac_file_inputs'
11094 ac_out='"$tmp/out1"'
11095 ac_nxt='"$tmp/out2"'
11097 while :
11099 # Write a here document:
11100 cat >>$CONFIG_STATUS <<_ACEOF
11101 # First, check the format of the line:
11102 cat >"\$tmp/defines.sed" <<\\CEOF
11103 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11104 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11106 :def
11107 _ACEOF
11108 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11109 echo 'CEOF
11110 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11111 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11112 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11113 grep . conftest.tail >/dev/null || break
11114 rm -f conftest.defines
11115 mv conftest.tail conftest.defines
11116 done
11117 rm -f conftest.defines conftest.tail
11119 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11120 cat >>$CONFIG_STATUS <<\_ACEOF
11121 if test x"$ac_file" != x-; then
11122 echo "/* $configure_input */" >"$tmp/config.h"
11123 cat "$ac_result" >>"$tmp/config.h"
11124 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11125 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11126 echo "$as_me: $ac_file is unchanged" >&6;}
11127 else
11128 rm -f $ac_file
11129 mv "$tmp/config.h" $ac_file
11131 else
11132 echo "/* $configure_input */"
11133 cat "$ac_result"
11135 rm -f "$tmp/out12"
11139 esac
11141 done # for ac_tag
11144 { (exit 0); exit 0; }
11145 _ACEOF
11146 chmod +x $CONFIG_STATUS
11147 ac_clean_files=$ac_clean_files_save
11150 # configure is writing to config.log, and then calls config.status.
11151 # config.status does its own redirection, appending to config.log.
11152 # Unfortunately, on DOS this fails, as config.log is still kept open
11153 # by configure, so config.status won't be able to write to it; its
11154 # output is simply discarded. So we exec the FD to /dev/null,
11155 # effectively closing config.log, so it can be properly (re)opened and
11156 # appended to by config.status. When coming back to configure, we
11157 # need to make the FD available again.
11158 if test "$no_create" != yes; then
11159 ac_cs_success=:
11160 ac_config_status_args=
11161 test "$silent" = yes &&
11162 ac_config_status_args="$ac_config_status_args --quiet"
11163 exec 5>/dev/null
11164 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11165 exec 5>>config.log
11166 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11167 # would make configure fail if this is the last instruction.
11168 $ac_cs_success || { (exit 1); exit 1; }