fix xcode project compatibility issue between 3.1 and 3.2
[texmacs.git] / src / configure
blob562d3ef533ec1ddaa1bb58395b0ecb576219da65
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_GUI_DEFINE
724 CONFIG_CXXDIALECT
725 CONFIG_OS
726 CONFIG_OS_SUFFIX
727 CONFIG_OS_COMPAT
728 CONFIG_CXXWARNING
729 CONFIG_CXXTEMPLATE
730 CONFIG_CXXOPTIMIZE
731 CONFIG_CXXDEBUG
732 CONFIG_BFLAGS
733 CONFIG_BSTATIC
734 CONFIG_BSHARED
735 CONFIG_BPATH
736 CONFIG_WORD_LENGTH
737 CONFIG_WORD_LENGTH_INC
738 CONFIG_WORD_MASK
739 CONFIG_MAX_FAST
740 CONFIG_CXXFLAGS
741 CONFIG_STD_SETENV
742 CONFIG_SO
743 CONFIG_LIB_PATH
744 CONFIG_STRIP
745 CONFIG_CHMOD
746 LDRT
747 CONFIG_NATIVE_ARCH_TAG
748 tmorig
749 tmdir
750 tmsrc
751 tmbin
752 tmdata
753 tmtgz
754 tmrpm
755 tmstgz
756 tmsrpm
757 tmwin
758 LIBOBJS
759 LTLIBOBJS'
760 ac_subst_files=''
761 ac_precious_vars='build_alias
762 host_alias
763 target_alias
765 CFLAGS
766 LDFLAGS
767 LIBS
768 CPPFLAGS
770 CXXFLAGS
772 CXXCPP
773 XMKMF
775 TMPDIR'
778 # Initialize some variables set by options.
779 ac_init_help=
780 ac_init_version=false
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
783 cache_file=/dev/null
784 exec_prefix=NONE
785 no_create=
786 no_recursion=
787 prefix=NONE
788 program_prefix=NONE
789 program_suffix=NONE
790 program_transform_name=s,x,x,
791 silent=
792 site=
793 srcdir=
794 verbose=
795 x_includes=NONE
796 x_libraries=NONE
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir='${exec_prefix}/bin'
805 sbindir='${exec_prefix}/sbin'
806 libexecdir='${exec_prefix}/libexec'
807 datarootdir='${prefix}/share'
808 datadir='${datarootdir}'
809 sysconfdir='${prefix}/etc'
810 sharedstatedir='${prefix}/com'
811 localstatedir='${prefix}/var'
812 includedir='${prefix}/include'
813 oldincludedir='/usr/include'
814 docdir='${datarootdir}/doc/${PACKAGE}'
815 infodir='${datarootdir}/info'
816 htmldir='${docdir}'
817 dvidir='${docdir}'
818 pdfdir='${docdir}'
819 psdir='${docdir}'
820 libdir='${exec_prefix}/lib'
821 localedir='${datarootdir}/locale'
822 mandir='${datarootdir}/man'
824 ac_prev=
825 ac_dashdash=
826 for ac_option
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
830 eval $ac_prev=\$ac_option
831 ac_prev=
832 continue
835 case $ac_option in
836 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 *) ac_optarg=yes ;;
838 esac
840 # Accept the important Cygnus configure options, so we can diagnose typos.
842 case $ac_dashdash$ac_option in
844 ac_dashdash=yes ;;
846 -bindir | --bindir | --bindi | --bind | --bin | --bi)
847 ac_prev=bindir ;;
848 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
849 bindir=$ac_optarg ;;
851 -build | --build | --buil | --bui | --bu)
852 ac_prev=build_alias ;;
853 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
854 build_alias=$ac_optarg ;;
856 -cache-file | --cache-file | --cache-fil | --cache-fi \
857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
858 ac_prev=cache_file ;;
859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
861 cache_file=$ac_optarg ;;
863 --config-cache | -C)
864 cache_file=config.cache ;;
866 -datadir | --datadir | --datadi | --datad)
867 ac_prev=datadir ;;
868 -datadir=* | --datadir=* | --datadi=* | --datad=*)
869 datadir=$ac_optarg ;;
871 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872 | --dataroo | --dataro | --datar)
873 ac_prev=datarootdir ;;
874 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876 datarootdir=$ac_optarg ;;
878 -disable-* | --disable-*)
879 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
882 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
883 { (exit 1); exit 1; }; }
884 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
885 eval enable_$ac_feature=no ;;
887 -docdir | --docdir | --docdi | --doc | --do)
888 ac_prev=docdir ;;
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 docdir=$ac_optarg ;;
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 ac_prev=dvidir ;;
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 dvidir=$ac_optarg ;;
897 -enable-* | --enable-*)
898 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
901 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
902 { (exit 1); exit 1; }; }
903 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
904 eval enable_$ac_feature=\$ac_optarg ;;
906 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908 | --exec | --exe | --ex)
909 ac_prev=exec_prefix ;;
910 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912 | --exec=* | --exe=* | --ex=*)
913 exec_prefix=$ac_optarg ;;
915 -gas | --gas | --ga | --g)
916 # Obsolete; use --with-gas.
917 with_gas=yes ;;
919 -help | --help | --hel | --he | -h)
920 ac_init_help=long ;;
921 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922 ac_init_help=recursive ;;
923 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924 ac_init_help=short ;;
926 -host | --host | --hos | --ho)
927 ac_prev=host_alias ;;
928 -host=* | --host=* | --hos=* | --ho=*)
929 host_alias=$ac_optarg ;;
931 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932 ac_prev=htmldir ;;
933 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934 | --ht=*)
935 htmldir=$ac_optarg ;;
937 -includedir | --includedir | --includedi | --included | --include \
938 | --includ | --inclu | --incl | --inc)
939 ac_prev=includedir ;;
940 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941 | --includ=* | --inclu=* | --incl=* | --inc=*)
942 includedir=$ac_optarg ;;
944 -infodir | --infodir | --infodi | --infod | --info | --inf)
945 ac_prev=infodir ;;
946 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947 infodir=$ac_optarg ;;
949 -libdir | --libdir | --libdi | --libd)
950 ac_prev=libdir ;;
951 -libdir=* | --libdir=* | --libdi=* | --libd=*)
952 libdir=$ac_optarg ;;
954 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955 | --libexe | --libex | --libe)
956 ac_prev=libexecdir ;;
957 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958 | --libexe=* | --libex=* | --libe=*)
959 libexecdir=$ac_optarg ;;
961 -localedir | --localedir | --localedi | --localed | --locale)
962 ac_prev=localedir ;;
963 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964 localedir=$ac_optarg ;;
966 -localstatedir | --localstatedir | --localstatedi | --localstated \
967 | --localstate | --localstat | --localsta | --localst | --locals)
968 ac_prev=localstatedir ;;
969 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971 localstatedir=$ac_optarg ;;
973 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974 ac_prev=mandir ;;
975 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976 mandir=$ac_optarg ;;
978 -nfp | --nfp | --nf)
979 # Obsolete; use --without-fp.
980 with_fp=no ;;
982 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983 | --no-cr | --no-c | -n)
984 no_create=yes ;;
986 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988 no_recursion=yes ;;
990 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992 | --oldin | --oldi | --old | --ol | --o)
993 ac_prev=oldincludedir ;;
994 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997 oldincludedir=$ac_optarg ;;
999 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000 ac_prev=prefix ;;
1001 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002 prefix=$ac_optarg ;;
1004 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005 | --program-pre | --program-pr | --program-p)
1006 ac_prev=program_prefix ;;
1007 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009 program_prefix=$ac_optarg ;;
1011 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012 | --program-suf | --program-su | --program-s)
1013 ac_prev=program_suffix ;;
1014 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016 program_suffix=$ac_optarg ;;
1018 -program-transform-name | --program-transform-name \
1019 | --program-transform-nam | --program-transform-na \
1020 | --program-transform-n | --program-transform- \
1021 | --program-transform | --program-transfor \
1022 | --program-transfo | --program-transf \
1023 | --program-trans | --program-tran \
1024 | --progr-tra | --program-tr | --program-t)
1025 ac_prev=program_transform_name ;;
1026 -program-transform-name=* | --program-transform-name=* \
1027 | --program-transform-nam=* | --program-transform-na=* \
1028 | --program-transform-n=* | --program-transform-=* \
1029 | --program-transform=* | --program-transfor=* \
1030 | --program-transfo=* | --program-transf=* \
1031 | --program-trans=* | --program-tran=* \
1032 | --progr-tra=* | --program-tr=* | --program-t=*)
1033 program_transform_name=$ac_optarg ;;
1035 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036 ac_prev=pdfdir ;;
1037 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038 pdfdir=$ac_optarg ;;
1040 -psdir | --psdir | --psdi | --psd | --ps)
1041 ac_prev=psdir ;;
1042 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043 psdir=$ac_optarg ;;
1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046 | -silent | --silent | --silen | --sile | --sil)
1047 silent=yes ;;
1049 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050 ac_prev=sbindir ;;
1051 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052 | --sbi=* | --sb=*)
1053 sbindir=$ac_optarg ;;
1055 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057 | --sharedst | --shareds | --shared | --share | --shar \
1058 | --sha | --sh)
1059 ac_prev=sharedstatedir ;;
1060 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063 | --sha=* | --sh=*)
1064 sharedstatedir=$ac_optarg ;;
1066 -site | --site | --sit)
1067 ac_prev=site ;;
1068 -site=* | --site=* | --sit=*)
1069 site=$ac_optarg ;;
1071 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072 ac_prev=srcdir ;;
1073 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074 srcdir=$ac_optarg ;;
1076 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077 | --syscon | --sysco | --sysc | --sys | --sy)
1078 ac_prev=sysconfdir ;;
1079 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081 sysconfdir=$ac_optarg ;;
1083 -target | --target | --targe | --targ | --tar | --ta | --t)
1084 ac_prev=target_alias ;;
1085 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086 target_alias=$ac_optarg ;;
1088 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089 verbose=yes ;;
1091 -version | --version | --versio | --versi | --vers | -V)
1092 ac_init_version=: ;;
1094 -with-* | --with-*)
1095 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1098 { echo "$as_me: error: invalid package name: $ac_package" >&2
1099 { (exit 1); exit 1; }; }
1100 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1101 eval with_$ac_package=\$ac_optarg ;;
1103 -without-* | --without-*)
1104 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1107 { echo "$as_me: error: invalid package name: $ac_package" >&2
1108 { (exit 1); exit 1; }; }
1109 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1110 eval with_$ac_package=no ;;
1112 --x)
1113 # Obsolete; use --with-x.
1114 with_x=yes ;;
1116 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1117 | --x-incl | --x-inc | --x-in | --x-i)
1118 ac_prev=x_includes ;;
1119 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1120 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1121 x_includes=$ac_optarg ;;
1123 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1124 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1125 ac_prev=x_libraries ;;
1126 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1127 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1128 x_libraries=$ac_optarg ;;
1130 -*) { echo "$as_me: error: unrecognized option: $ac_option
1131 Try \`$0 --help' for more information." >&2
1132 { (exit 1); exit 1; }; }
1135 *=*)
1136 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1140 { (exit 1); exit 1; }; }
1141 eval $ac_envvar=\$ac_optarg
1142 export $ac_envvar ;;
1145 # FIXME: should be removed in autoconf 3.0.
1146 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1147 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1148 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1149 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1152 esac
1153 done
1155 if test -n "$ac_prev"; then
1156 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1157 { echo "$as_me: error: missing argument to $ac_option" >&2
1158 { (exit 1); exit 1; }; }
1161 # Be sure to have absolute directory names.
1162 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1163 datadir sysconfdir sharedstatedir localstatedir includedir \
1164 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1165 libdir localedir mandir
1167 eval ac_val=\$$ac_var
1168 case $ac_val in
1169 [\\/$]* | ?:[\\/]* ) continue;;
1170 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1171 esac
1172 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1173 { (exit 1); exit 1; }; }
1174 done
1176 # There might be people who depend on the old broken behavior: `$host'
1177 # used to hold the argument of --host etc.
1178 # FIXME: To remove some day.
1179 build=$build_alias
1180 host=$host_alias
1181 target=$target_alias
1183 # FIXME: To remove some day.
1184 if test "x$host_alias" != x; then
1185 if test "x$build_alias" = x; then
1186 cross_compiling=maybe
1187 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1188 If a cross compiler is detected then cross compile mode will be used." >&2
1189 elif test "x$build_alias" != "x$host_alias"; then
1190 cross_compiling=yes
1194 ac_tool_prefix=
1195 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1197 test "$silent" = yes && exec 6>/dev/null
1200 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1201 ac_ls_di=`ls -di .` &&
1202 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1203 { echo "$as_me: error: Working directory cannot be determined" >&2
1204 { (exit 1); exit 1; }; }
1205 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1206 { echo "$as_me: error: pwd does not report name of working directory" >&2
1207 { (exit 1); exit 1; }; }
1210 # Find the source files, if location was not specified.
1211 if test -z "$srcdir"; then
1212 ac_srcdir_defaulted=yes
1213 # Try the directory containing this script, then the parent directory.
1214 ac_confdir=`$as_dirname -- "$0" ||
1215 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1216 X"$0" : 'X\(//\)[^/]' \| \
1217 X"$0" : 'X\(//\)$' \| \
1218 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1219 echo X"$0" |
1220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1221 s//\1/
1224 /^X\(\/\/\)[^/].*/{
1225 s//\1/
1228 /^X\(\/\/\)$/{
1229 s//\1/
1232 /^X\(\/\).*/{
1233 s//\1/
1236 s/.*/./; q'`
1237 srcdir=$ac_confdir
1238 if test ! -r "$srcdir/$ac_unique_file"; then
1239 srcdir=..
1241 else
1242 ac_srcdir_defaulted=no
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1245 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1246 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1247 { (exit 1); exit 1; }; }
1249 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1250 ac_abs_confdir=`(
1251 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1252 { (exit 1); exit 1; }; }
1253 pwd)`
1254 # When building in place, set srcdir=.
1255 if test "$ac_abs_confdir" = "$ac_pwd"; then
1256 srcdir=.
1258 # Remove unnecessary trailing slashes from srcdir.
1259 # Double slashes in file names in object file debugging info
1260 # mess up M-x gdb in Emacs.
1261 case $srcdir in
1262 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1263 esac
1264 for ac_var in $ac_precious_vars; do
1265 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1266 eval ac_env_${ac_var}_value=\$${ac_var}
1267 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1269 done
1272 # Report the --help message.
1274 if test "$ac_init_help" = "long"; then
1275 # Omit some internal or obsolete options to make the list less imposing.
1276 # This message is too long to be a string in the A/UX 3.1 sh.
1277 cat <<_ACEOF
1278 \`configure' configures this package to adapt to many kinds of systems.
1280 Usage: $0 [OPTION]... [VAR=VALUE]...
1282 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1283 VAR=VALUE. See below for descriptions of some of the useful variables.
1285 Defaults for the options are specified in brackets.
1287 Configuration:
1288 -h, --help display this help and exit
1289 --help=short display options specific to this package
1290 --help=recursive display the short help of all the included packages
1291 -V, --version display version information and exit
1292 -q, --quiet, --silent do not print \`checking...' messages
1293 --cache-file=FILE cache test results in FILE [disabled]
1294 -C, --config-cache alias for \`--cache-file=config.cache'
1295 -n, --no-create do not create output files
1296 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1298 Installation directories:
1299 --prefix=PREFIX install architecture-independent files in PREFIX
1300 [$ac_default_prefix]
1301 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1302 [PREFIX]
1304 By default, \`make install' will install all the files in
1305 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1306 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1307 for instance \`--prefix=\$HOME'.
1309 For better control, use the options below.
1311 Fine tuning of the installation directories:
1312 --bindir=DIR user executables [EPREFIX/bin]
1313 --sbindir=DIR system admin executables [EPREFIX/sbin]
1314 --libexecdir=DIR program executables [EPREFIX/libexec]
1315 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1316 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1317 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1318 --libdir=DIR object code libraries [EPREFIX/lib]
1319 --includedir=DIR C header files [PREFIX/include]
1320 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1321 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1322 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1323 --infodir=DIR info documentation [DATAROOTDIR/info]
1324 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1325 --mandir=DIR man documentation [DATAROOTDIR/man]
1326 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1327 --htmldir=DIR html documentation [DOCDIR]
1328 --dvidir=DIR dvi documentation [DOCDIR]
1329 --pdfdir=DIR pdf documentation [DOCDIR]
1330 --psdir=DIR ps documentation [DOCDIR]
1331 _ACEOF
1333 cat <<\_ACEOF
1335 X features:
1336 --x-includes=DIR X include files are in DIR
1337 --x-libraries=DIR X library files are in DIR
1339 System types:
1340 --build=BUILD configure for building on BUILD [guessed]
1341 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1342 _ACEOF
1345 if test -n "$ac_init_help"; then
1347 cat <<\_ACEOF
1349 Optional Features:
1350 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1351 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1352 --disable-fastalloc omit fast allocator for small objects
1353 --enable-experimental support new style rewriting code
1354 --enable-macosx-extensions support new style rewriting code
1355 --enable-qt replace X11 by Qt interface
1356 --enable-cocoa replace X11 by Cocoa interface
1357 --enable-debug=ARG install a debugging enable executable -ggdb
1358 --enable-assert exit on failed assertions in code
1359 --enable-warnings print warning messages during compilation
1360 --enable-optimize=ARG compile with optimizations guessed
1362 Optional Packages:
1363 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1364 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1365 --with-x use the X Window System
1366 --with-iconv=DIR where to find iconv system
1367 --with-freetype=ARG with freetype support ARG=linked
1368 --with-cairo=ARG with cairo support ARG=no
1369 --with-imlib2=ARG with imlib2 support ARG=no
1370 --with-axel=ARG with axel support ARG=no
1371 --with-qt Path to Qt [Look in PATH and /usr/local/Trolltech]
1373 Some influential environment variables:
1374 CC C compiler command
1375 CFLAGS C compiler flags
1376 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1377 nonstandard directory <lib dir>
1378 LIBS libraries to pass to the linker, e.g. -l<library>
1379 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1380 you have headers in a nonstandard directory <include dir>
1381 CXX C++ compiler command
1382 CXXFLAGS C++ compiler flags
1383 CXXCPP C++ preprocessor
1384 XMKMF Path to xmkmf, Makefile generator for X Window System
1385 CPP C preprocessor
1386 TMPDIR A temporary directory with write access [/tmp]
1388 Use these variables to override the choices made by `configure' or to help
1389 it to find libraries and programs with nonstandard names/locations.
1391 _ACEOF
1392 ac_status=$?
1395 if test "$ac_init_help" = "recursive"; then
1396 # If there are subdirs, report their specific --help.
1397 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1398 test -d "$ac_dir" || continue
1399 ac_builddir=.
1401 case "$ac_dir" in
1402 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1405 # A ".." for each directory in $ac_dir_suffix.
1406 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1407 case $ac_top_builddir_sub in
1408 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1409 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1410 esac ;;
1411 esac
1412 ac_abs_top_builddir=$ac_pwd
1413 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1414 # for backward compatibility:
1415 ac_top_builddir=$ac_top_build_prefix
1417 case $srcdir in
1418 .) # We are building in place.
1419 ac_srcdir=.
1420 ac_top_srcdir=$ac_top_builddir_sub
1421 ac_abs_top_srcdir=$ac_pwd ;;
1422 [\\/]* | ?:[\\/]* ) # Absolute name.
1423 ac_srcdir=$srcdir$ac_dir_suffix;
1424 ac_top_srcdir=$srcdir
1425 ac_abs_top_srcdir=$srcdir ;;
1426 *) # Relative name.
1427 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1428 ac_top_srcdir=$ac_top_build_prefix$srcdir
1429 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1430 esac
1431 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1433 cd "$ac_dir" || { ac_status=$?; continue; }
1434 # Check for guested configure.
1435 if test -f "$ac_srcdir/configure.gnu"; then
1436 echo &&
1437 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1438 elif test -f "$ac_srcdir/configure"; then
1439 echo &&
1440 $SHELL "$ac_srcdir/configure" --help=recursive
1441 else
1442 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1443 fi || ac_status=$?
1444 cd "$ac_pwd" || { ac_status=$?; break; }
1445 done
1448 test -n "$ac_init_help" && exit $ac_status
1449 if $ac_init_version; then
1450 cat <<\_ACEOF
1451 configure
1452 generated by GNU Autoconf 2.61
1454 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1455 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1456 This configure script is free software; the Free Software Foundation
1457 gives unlimited permission to copy, distribute and modify it.
1458 _ACEOF
1459 exit
1461 cat >config.log <<_ACEOF
1462 This file contains any messages produced by compilers while
1463 running configure, to aid debugging if configure makes a mistake.
1465 It was created by $as_me, which was
1466 generated by GNU Autoconf 2.61. Invocation command line was
1468 $ $0 $@
1470 _ACEOF
1471 exec 5>>config.log
1473 cat <<_ASUNAME
1474 ## --------- ##
1475 ## Platform. ##
1476 ## --------- ##
1478 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1479 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1480 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1481 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1482 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1484 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1485 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1487 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1488 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1489 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1490 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1491 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1492 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1493 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1495 _ASUNAME
1497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 for as_dir in $PATH
1500 IFS=$as_save_IFS
1501 test -z "$as_dir" && as_dir=.
1502 echo "PATH: $as_dir"
1503 done
1504 IFS=$as_save_IFS
1506 } >&5
1508 cat >&5 <<_ACEOF
1511 ## ----------- ##
1512 ## Core tests. ##
1513 ## ----------- ##
1515 _ACEOF
1518 # Keep a trace of the command line.
1519 # Strip out --no-create and --no-recursion so they do not pile up.
1520 # Strip out --silent because we don't want to record it for future runs.
1521 # Also quote any args containing shell meta-characters.
1522 # Make two passes to allow for proper duplicate-argument suppression.
1523 ac_configure_args=
1524 ac_configure_args0=
1525 ac_configure_args1=
1526 ac_must_keep_next=false
1527 for ac_pass in 1 2
1529 for ac_arg
1531 case $ac_arg in
1532 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1534 | -silent | --silent | --silen | --sile | --sil)
1535 continue ;;
1536 *\'*)
1537 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1538 esac
1539 case $ac_pass in
1540 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1542 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1543 if test $ac_must_keep_next = true; then
1544 ac_must_keep_next=false # Got value, back to normal.
1545 else
1546 case $ac_arg in
1547 *=* | --config-cache | -C | -disable-* | --disable-* \
1548 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1549 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1550 | -with-* | --with-* | -without-* | --without-* | --x)
1551 case "$ac_configure_args0 " in
1552 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1553 esac
1555 -* ) ac_must_keep_next=true ;;
1556 esac
1558 ac_configure_args="$ac_configure_args '$ac_arg'"
1560 esac
1561 done
1562 done
1563 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1564 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1566 # When interrupted or exit'd, cleanup temporary files, and complete
1567 # config.log. We remove comments because anyway the quotes in there
1568 # would cause problems or look ugly.
1569 # WARNING: Use '\'' to represent an apostrophe within the trap.
1570 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1571 trap 'exit_status=$?
1572 # Save into config.log some information that might help in debugging.
1574 echo
1576 cat <<\_ASBOX
1577 ## ---------------- ##
1578 ## Cache variables. ##
1579 ## ---------------- ##
1580 _ASBOX
1581 echo
1582 # The following way of writing the cache mishandles newlines in values,
1584 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1585 eval ac_val=\$$ac_var
1586 case $ac_val in #(
1587 *${as_nl}*)
1588 case $ac_var in #(
1589 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1590 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1591 esac
1592 case $ac_var in #(
1593 _ | IFS | as_nl) ;; #(
1594 *) $as_unset $ac_var ;;
1595 esac ;;
1596 esac
1597 done
1598 (set) 2>&1 |
1599 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1600 *${as_nl}ac_space=\ *)
1601 sed -n \
1602 "s/'\''/'\''\\\\'\'''\''/g;
1603 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1604 ;; #(
1606 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1608 esac |
1609 sort
1611 echo
1613 cat <<\_ASBOX
1614 ## ----------------- ##
1615 ## Output variables. ##
1616 ## ----------------- ##
1617 _ASBOX
1618 echo
1619 for ac_var in $ac_subst_vars
1621 eval ac_val=\$$ac_var
1622 case $ac_val in
1623 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1624 esac
1625 echo "$ac_var='\''$ac_val'\''"
1626 done | sort
1627 echo
1629 if test -n "$ac_subst_files"; then
1630 cat <<\_ASBOX
1631 ## ------------------- ##
1632 ## File substitutions. ##
1633 ## ------------------- ##
1634 _ASBOX
1635 echo
1636 for ac_var in $ac_subst_files
1638 eval ac_val=\$$ac_var
1639 case $ac_val in
1640 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1641 esac
1642 echo "$ac_var='\''$ac_val'\''"
1643 done | sort
1644 echo
1647 if test -s confdefs.h; then
1648 cat <<\_ASBOX
1649 ## ----------- ##
1650 ## confdefs.h. ##
1651 ## ----------- ##
1652 _ASBOX
1653 echo
1654 cat confdefs.h
1655 echo
1657 test "$ac_signal" != 0 &&
1658 echo "$as_me: caught signal $ac_signal"
1659 echo "$as_me: exit $exit_status"
1660 } >&5
1661 rm -f core *.core core.conftest.* &&
1662 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1663 exit $exit_status
1665 for ac_signal in 1 2 13 15; do
1666 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1667 done
1668 ac_signal=0
1670 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1671 rm -f -r conftest* confdefs.h
1673 # Predefined preprocessor variables.
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_NAME "$PACKAGE_NAME"
1677 _ACEOF
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1682 _ACEOF
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1687 _ACEOF
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_STRING "$PACKAGE_STRING"
1692 _ACEOF
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1697 _ACEOF
1700 # Let the site file select an alternate cache file if it wants to.
1701 # Prefer explicitly selected file to automatically selected ones.
1702 if test -n "$CONFIG_SITE"; then
1703 set x "$CONFIG_SITE"
1704 elif test "x$prefix" != xNONE; then
1705 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1706 else
1707 set x "$ac_default_prefix/share/config.site" \
1708 "$ac_default_prefix/etc/config.site"
1710 shift
1711 for ac_site_file
1713 if test -r "$ac_site_file"; then
1714 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1715 echo "$as_me: loading site script $ac_site_file" >&6;}
1716 sed 's/^/| /' "$ac_site_file" >&5
1717 . "$ac_site_file"
1719 done
1721 if test -r "$cache_file"; then
1722 # Some versions of bash will fail to source /dev/null (special
1723 # files actually), so we avoid doing that.
1724 if test -f "$cache_file"; then
1725 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1726 echo "$as_me: loading cache $cache_file" >&6;}
1727 case $cache_file in
1728 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1729 *) . "./$cache_file";;
1730 esac
1732 else
1733 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1734 echo "$as_me: creating cache $cache_file" >&6;}
1735 >$cache_file
1738 # Check that the precious variables saved in the cache have kept the same
1739 # value.
1740 ac_cache_corrupted=false
1741 for ac_var in $ac_precious_vars; do
1742 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1743 eval ac_new_set=\$ac_env_${ac_var}_set
1744 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1745 eval ac_new_val=\$ac_env_${ac_var}_value
1746 case $ac_old_set,$ac_new_set in
1747 set,)
1748 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1749 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1750 ac_cache_corrupted=: ;;
1751 ,set)
1752 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1753 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1754 ac_cache_corrupted=: ;;
1755 ,);;
1757 if test "x$ac_old_val" != "x$ac_new_val"; then
1758 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1759 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1760 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1761 echo "$as_me: former value: $ac_old_val" >&2;}
1762 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1763 echo "$as_me: current value: $ac_new_val" >&2;}
1764 ac_cache_corrupted=:
1765 fi;;
1766 esac
1767 # Pass precious variables to config.status.
1768 if test "$ac_new_set" = set; then
1769 case $ac_new_val in
1770 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1771 *) ac_arg=$ac_var=$ac_new_val ;;
1772 esac
1773 case " $ac_configure_args " in
1774 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1775 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1776 esac
1778 done
1779 if $ac_cache_corrupted; then
1780 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1781 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1782 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1783 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1784 { (exit 1); exit 1; }; }
1803 ac_ext=c
1804 ac_cpp='$CPP $CPPFLAGS'
1805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1810 ac_config_headers="$ac_config_headers src/System/config.h:src/System/config.in"
1813 PACKAGE="TeXmacs"
1814 DEVEL_VERSION="1.0.7.3"
1815 DEVEL_RELEASE="1"
1816 STABLE_VERSION="1.0.7"
1817 STABLE_RELEASE="1"
1818 WINDOWS_VERSION="1.0.5"
1819 WINDOWS_RELEASE="1"
1826 #--------------------------------------------------------------------
1827 # Checks for C++ compiler
1828 #--------------------------------------------------------------------
1830 ac_ext=c
1831 ac_cpp='$CPP $CPPFLAGS'
1832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835 if test -n "$ac_tool_prefix"; then
1836 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1837 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1840 if test "${ac_cv_prog_CC+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 else
1843 if test -n "$CC"; then
1844 ac_cv_prog_CC="$CC" # Let the user override the test.
1845 else
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 for as_dir in $PATH
1849 IFS=$as_save_IFS
1850 test -z "$as_dir" && as_dir=.
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1853 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 break 2
1857 done
1858 done
1859 IFS=$as_save_IFS
1863 CC=$ac_cv_prog_CC
1864 if test -n "$CC"; then
1865 { echo "$as_me:$LINENO: result: $CC" >&5
1866 echo "${ECHO_T}$CC" >&6; }
1867 else
1868 { echo "$as_me:$LINENO: result: no" >&5
1869 echo "${ECHO_T}no" >&6; }
1874 if test -z "$ac_cv_prog_CC"; then
1875 ac_ct_CC=$CC
1876 # Extract the first word of "gcc", so it can be a program name with args.
1877 set dummy gcc; ac_word=$2
1878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883 if test -n "$ac_ct_CC"; then
1884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1885 else
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1889 IFS=$as_save_IFS
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1893 ac_cv_prog_ac_ct_CC="gcc"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895 break 2
1897 done
1898 done
1899 IFS=$as_save_IFS
1903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1904 if test -n "$ac_ct_CC"; then
1905 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1906 echo "${ECHO_T}$ac_ct_CC" >&6; }
1907 else
1908 { echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6; }
1912 if test "x$ac_ct_CC" = x; then
1913 CC=""
1914 else
1915 case $cross_compiling:$ac_tool_warned in
1916 yes:)
1917 { echo "$as_me:$LINENO: 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." >&5
1920 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1921 whose name does not start with the host triplet. If you think this
1922 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1923 ac_tool_warned=yes ;;
1924 esac
1925 CC=$ac_ct_CC
1927 else
1928 CC="$ac_cv_prog_CC"
1931 if test -z "$CC"; then
1932 if test -n "$ac_tool_prefix"; then
1933 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1934 set dummy ${ac_tool_prefix}cc; ac_word=$2
1935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1937 if test "${ac_cv_prog_CC+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940 if test -n "$CC"; then
1941 ac_cv_prog_CC="$CC" # Let the user override the test.
1942 else
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1950 ac_cv_prog_CC="${ac_tool_prefix}cc"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952 break 2
1954 done
1955 done
1956 IFS=$as_save_IFS
1960 CC=$ac_cv_prog_CC
1961 if test -n "$CC"; then
1962 { echo "$as_me:$LINENO: result: $CC" >&5
1963 echo "${ECHO_T}$CC" >&6; }
1964 else
1965 { echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6; }
1972 if test -z "$CC"; then
1973 # Extract the first word of "cc", so it can be a program name with args.
1974 set dummy cc; ac_word=$2
1975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1977 if test "${ac_cv_prog_CC+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 else
1980 if test -n "$CC"; then
1981 ac_cv_prog_CC="$CC" # Let the user override the test.
1982 else
1983 ac_prog_rejected=no
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 for as_dir in $PATH
1987 IFS=$as_save_IFS
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1991 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1992 ac_prog_rejected=yes
1993 continue
1995 ac_cv_prog_CC="cc"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 break 2
1999 done
2000 done
2001 IFS=$as_save_IFS
2003 if test $ac_prog_rejected = yes; then
2004 # We found a bogon in the path, so make sure we never use it.
2005 set dummy $ac_cv_prog_CC
2006 shift
2007 if test $# != 0; then
2008 # We chose a different compiler from the bogus one.
2009 # However, it has the same basename, so the bogon will be chosen
2010 # first if we set CC to just the basename; use the full file name.
2011 shift
2012 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2017 CC=$ac_cv_prog_CC
2018 if test -n "$CC"; then
2019 { echo "$as_me:$LINENO: result: $CC" >&5
2020 echo "${ECHO_T}$CC" >&6; }
2021 else
2022 { echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6; }
2028 if test -z "$CC"; then
2029 if test -n "$ac_tool_prefix"; then
2030 for ac_prog in cl.exe
2032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2036 if test "${ac_cv_prog_CC+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039 if test -n "$CC"; then
2040 ac_cv_prog_CC="$CC" # Let the user override the test.
2041 else
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2049 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 break 2
2053 done
2054 done
2055 IFS=$as_save_IFS
2059 CC=$ac_cv_prog_CC
2060 if test -n "$CC"; then
2061 { echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6; }
2063 else
2064 { echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6; }
2069 test -n "$CC" && break
2070 done
2072 if test -z "$CC"; then
2073 ac_ct_CC=$CC
2074 for ac_prog in cl.exe
2076 # Extract the first word of "$ac_prog", so it can be a program name with args.
2077 set dummy $ac_prog; ac_word=$2
2078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083 if test -n "$ac_ct_CC"; then
2084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2085 else
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2093 ac_cv_prog_ac_ct_CC="$ac_prog"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 break 2
2097 done
2098 done
2099 IFS=$as_save_IFS
2103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104 if test -n "$ac_ct_CC"; then
2105 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106 echo "${ECHO_T}$ac_ct_CC" >&6; }
2107 else
2108 { echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6; }
2113 test -n "$ac_ct_CC" && break
2114 done
2116 if test "x$ac_ct_CC" = x; then
2117 CC=""
2118 else
2119 case $cross_compiling:$ac_tool_warned in
2120 yes:)
2121 { echo "$as_me:$LINENO: 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." >&5
2124 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2125 whose name does not start with the host triplet. If you think this
2126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2127 ac_tool_warned=yes ;;
2128 esac
2129 CC=$ac_ct_CC
2136 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2137 See \`config.log' for more details." >&5
2138 echo "$as_me: error: no acceptable C compiler found in \$PATH
2139 See \`config.log' for more details." >&2;}
2140 { (exit 1); exit 1; }; }
2142 # Provide some information about the compiler.
2143 echo "$as_me:$LINENO: checking for C compiler version" >&5
2144 ac_compiler=`set X $ac_compile; echo $2`
2145 { (ac_try="$ac_compiler --version >&5"
2146 case "(($ac_try" in
2147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2148 *) ac_try_echo=$ac_try;;
2149 esac
2150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2151 (eval "$ac_compiler --version >&5") 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }
2155 { (ac_try="$ac_compiler -v >&5"
2156 case "(($ac_try" in
2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158 *) ac_try_echo=$ac_try;;
2159 esac
2160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2161 (eval "$ac_compiler -v >&5") 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }
2165 { (ac_try="$ac_compiler -V >&5"
2166 case "(($ac_try" in
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2169 esac
2170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2171 (eval "$ac_compiler -V >&5") 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }
2176 cat >conftest.$ac_ext <<_ACEOF
2177 /* confdefs.h. */
2178 _ACEOF
2179 cat confdefs.h >>conftest.$ac_ext
2180 cat >>conftest.$ac_ext <<_ACEOF
2181 /* end confdefs.h. */
2184 main ()
2188 return 0;
2190 _ACEOF
2191 ac_clean_files_save=$ac_clean_files
2192 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2193 # Try to create an executable without -o first, disregard a.out.
2194 # It will help us diagnose broken compilers, and finding out an intuition
2195 # of exeext.
2196 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2197 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2198 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2200 # List of possible output files, starting from the most likely.
2201 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2202 # only as a last resort. b.out is created by i960 compilers.
2203 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2205 # The IRIX 6 linker writes into existing files which may not be
2206 # executable, retaining their permissions. Remove them first so a
2207 # subsequent execution test works.
2208 ac_rmfiles=
2209 for ac_file in $ac_files
2211 case $ac_file in
2212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2213 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2214 esac
2215 done
2216 rm -f $ac_rmfiles
2218 if { (ac_try="$ac_link_default"
2219 case "(($ac_try" in
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2222 esac
2223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2224 (eval "$ac_link_default") 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; then
2228 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2229 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2230 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2231 # so that the user can short-circuit this test for compilers unknown to
2232 # Autoconf.
2233 for ac_file in $ac_files ''
2235 test -f "$ac_file" || continue
2236 case $ac_file in
2237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2239 [ab].out )
2240 # We found the default executable, but exeext='' is most
2241 # certainly right.
2242 break;;
2243 *.* )
2244 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2245 then :; else
2246 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2248 # We set ac_cv_exeext here because the later test for it is not
2249 # safe: cross compilers may not add the suffix if given an `-o'
2250 # argument, so we may need to know it at that point already.
2251 # Even if this section looks crufty: it has the advantage of
2252 # actually working.
2253 break;;
2255 break;;
2256 esac
2257 done
2258 test "$ac_cv_exeext" = no && ac_cv_exeext=
2260 else
2261 ac_file=''
2264 { echo "$as_me:$LINENO: result: $ac_file" >&5
2265 echo "${ECHO_T}$ac_file" >&6; }
2266 if test -z "$ac_file"; then
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2270 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: C compiler cannot create executables
2273 See \`config.log' for more details." >&2;}
2274 { (exit 77); exit 77; }; }
2277 ac_exeext=$ac_cv_exeext
2279 # Check that the compiler produces executables we can run. If not, either
2280 # the compiler is broken, or we cross compile.
2281 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2282 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2283 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2284 # If not cross compiling, check that we can run a simple program.
2285 if test "$cross_compiling" != yes; then
2286 if { ac_try='./$ac_file'
2287 { (case "(($ac_try" in
2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289 *) ac_try_echo=$ac_try;;
2290 esac
2291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2292 (eval "$ac_try") 2>&5
2293 ac_status=$?
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; }; then
2296 cross_compiling=no
2297 else
2298 if test "$cross_compiling" = maybe; then
2299 cross_compiling=yes
2300 else
2301 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2302 If you meant to cross compile, use \`--host'.
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot run C compiled programs.
2305 If you meant to cross compile, use \`--host'.
2306 See \`config.log' for more details." >&2;}
2307 { (exit 1); exit 1; }; }
2311 { echo "$as_me:$LINENO: result: yes" >&5
2312 echo "${ECHO_T}yes" >&6; }
2314 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2315 ac_clean_files=$ac_clean_files_save
2316 # Check that the compiler produces executables we can run. If not, either
2317 # the compiler is broken, or we cross compile.
2318 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2319 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2320 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2321 echo "${ECHO_T}$cross_compiling" >&6; }
2323 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2324 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2325 if { (ac_try="$ac_link"
2326 case "(($ac_try" in
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2329 esac
2330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2331 (eval "$ac_link") 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; then
2335 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2336 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2337 # work properly (i.e., refer to `conftest.exe'), while it won't with
2338 # `rm'.
2339 for ac_file in conftest.exe conftest conftest.*; do
2340 test -f "$ac_file" || continue
2341 case $ac_file in
2342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2343 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2344 break;;
2345 * ) break;;
2346 esac
2347 done
2348 else
2349 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2350 See \`config.log' for more details." >&5
2351 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2352 See \`config.log' for more details." >&2;}
2353 { (exit 1); exit 1; }; }
2356 rm -f conftest$ac_cv_exeext
2357 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2358 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2360 rm -f conftest.$ac_ext
2361 EXEEXT=$ac_cv_exeext
2362 ac_exeext=$EXEEXT
2363 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2364 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2365 if test "${ac_cv_objext+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368 cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h. */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2376 main ()
2380 return 0;
2382 _ACEOF
2383 rm -f conftest.o conftest.obj
2384 if { (ac_try="$ac_compile"
2385 case "(($ac_try" in
2386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387 *) ac_try_echo=$ac_try;;
2388 esac
2389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2390 (eval "$ac_compile") 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; then
2394 for ac_file in conftest.o conftest.obj conftest.*; do
2395 test -f "$ac_file" || continue;
2396 case $ac_file in
2397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2398 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2399 break;;
2400 esac
2401 done
2402 else
2403 echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2406 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2407 See \`config.log' for more details." >&5
2408 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2409 See \`config.log' for more details." >&2;}
2410 { (exit 1); exit 1; }; }
2413 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2415 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2416 echo "${ECHO_T}$ac_cv_objext" >&6; }
2417 OBJEXT=$ac_cv_objext
2418 ac_objext=$OBJEXT
2419 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2420 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2421 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 else
2424 cat >conftest.$ac_ext <<_ACEOF
2425 /* confdefs.h. */
2426 _ACEOF
2427 cat confdefs.h >>conftest.$ac_ext
2428 cat >>conftest.$ac_ext <<_ACEOF
2429 /* end confdefs.h. */
2432 main ()
2434 #ifndef __GNUC__
2435 choke me
2436 #endif
2439 return 0;
2441 _ACEOF
2442 rm -f conftest.$ac_objext
2443 if { (ac_try="$ac_compile"
2444 case "(($ac_try" in
2445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446 *) ac_try_echo=$ac_try;;
2447 esac
2448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2449 (eval "$ac_compile") 2>conftest.er1
2450 ac_status=$?
2451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } && {
2456 test -z "$ac_c_werror_flag" ||
2457 test ! -s conftest.err
2458 } && test -s conftest.$ac_objext; then
2459 ac_compiler_gnu=yes
2460 else
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2464 ac_compiler_gnu=no
2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2471 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2472 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2473 GCC=`test $ac_compiler_gnu = yes && echo yes`
2474 ac_test_CFLAGS=${CFLAGS+set}
2475 ac_save_CFLAGS=$CFLAGS
2476 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2477 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2478 if test "${ac_cv_prog_cc_g+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481 ac_save_c_werror_flag=$ac_c_werror_flag
2482 ac_c_werror_flag=yes
2483 ac_cv_prog_cc_g=no
2484 CFLAGS="-g"
2485 cat >conftest.$ac_ext <<_ACEOF
2486 /* confdefs.h. */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2493 main ()
2497 return 0;
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (ac_try="$ac_compile"
2502 case "(($ac_try" in
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2505 esac
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507 (eval "$ac_compile") 2>conftest.er1
2508 ac_status=$?
2509 grep -v '^ *+' conftest.er1 >conftest.err
2510 rm -f conftest.er1
2511 cat conftest.err >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); } && {
2514 test -z "$ac_c_werror_flag" ||
2515 test ! -s conftest.err
2516 } && test -s conftest.$ac_objext; then
2517 ac_cv_prog_cc_g=yes
2518 else
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2522 CFLAGS=""
2523 cat >conftest.$ac_ext <<_ACEOF
2524 /* confdefs.h. */
2525 _ACEOF
2526 cat confdefs.h >>conftest.$ac_ext
2527 cat >>conftest.$ac_ext <<_ACEOF
2528 /* end confdefs.h. */
2531 main ()
2535 return 0;
2537 _ACEOF
2538 rm -f conftest.$ac_objext
2539 if { (ac_try="$ac_compile"
2540 case "(($ac_try" in
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2543 esac
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545 (eval "$ac_compile") 2>conftest.er1
2546 ac_status=$?
2547 grep -v '^ *+' conftest.er1 >conftest.err
2548 rm -f conftest.er1
2549 cat conftest.err >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } && {
2552 test -z "$ac_c_werror_flag" ||
2553 test ! -s conftest.err
2554 } && test -s conftest.$ac_objext; then
2556 else
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2560 ac_c_werror_flag=$ac_save_c_werror_flag
2561 CFLAGS="-g"
2562 cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h. */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2570 main ()
2574 return 0;
2576 _ACEOF
2577 rm -f conftest.$ac_objext
2578 if { (ac_try="$ac_compile"
2579 case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2582 esac
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>conftest.er1
2585 ac_status=$?
2586 grep -v '^ *+' conftest.er1 >conftest.err
2587 rm -f conftest.er1
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } && {
2591 test -z "$ac_c_werror_flag" ||
2592 test ! -s conftest.err
2593 } && test -s conftest.$ac_objext; then
2594 ac_cv_prog_cc_g=yes
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 ac_c_werror_flag=$ac_save_c_werror_flag
2611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2612 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2613 if test "$ac_test_CFLAGS" = set; then
2614 CFLAGS=$ac_save_CFLAGS
2615 elif test $ac_cv_prog_cc_g = yes; then
2616 if test "$GCC" = yes; then
2617 CFLAGS="-g -O2"
2618 else
2619 CFLAGS="-g"
2621 else
2622 if test "$GCC" = yes; then
2623 CFLAGS="-O2"
2624 else
2625 CFLAGS=
2628 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2629 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_cc_c89+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633 ac_cv_prog_cc_c89=no
2634 ac_save_CC=$CC
2635 cat >conftest.$ac_ext <<_ACEOF
2636 /* confdefs.h. */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h. */
2641 #include <stdarg.h>
2642 #include <stdio.h>
2643 #include <sys/types.h>
2644 #include <sys/stat.h>
2645 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2646 struct buf { int x; };
2647 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2648 static char *e (p, i)
2649 char **p;
2650 int i;
2652 return p[i];
2654 static char *f (char * (*g) (char **, int), char **p, ...)
2656 char *s;
2657 va_list v;
2658 va_start (v,p);
2659 s = g (p, va_arg (v,int));
2660 va_end (v);
2661 return s;
2664 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2665 function prototypes and stuff, but not '\xHH' hex character constants.
2666 These don't provoke an error unfortunately, instead are silently treated
2667 as 'x'. The following induces an error, until -std is added to get
2668 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2669 array size at least. It's necessary to write '\x00'==0 to get something
2670 that's true only with -std. */
2671 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2673 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2674 inside strings and character constants. */
2675 #define FOO(x) 'x'
2676 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2678 int test (int i, double x);
2679 struct s1 {int (*f) (int a);};
2680 struct s2 {int (*f) (double a);};
2681 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2682 int argc;
2683 char **argv;
2685 main ()
2687 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2689 return 0;
2691 _ACEOF
2692 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2693 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2695 CC="$ac_save_CC $ac_arg"
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2698 case "(($ac_try" in
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
2704 ac_status=$?
2705 grep -v '^ *+' conftest.er1 >conftest.err
2706 rm -f conftest.er1
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } && {
2710 test -z "$ac_c_werror_flag" ||
2711 test ! -s conftest.err
2712 } && test -s conftest.$ac_objext; then
2713 ac_cv_prog_cc_c89=$ac_arg
2714 else
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2721 rm -f core conftest.err conftest.$ac_objext
2722 test "x$ac_cv_prog_cc_c89" != "xno" && break
2723 done
2724 rm -f conftest.$ac_ext
2725 CC=$ac_save_CC
2728 # AC_CACHE_VAL
2729 case "x$ac_cv_prog_cc_c89" in
2731 { echo "$as_me:$LINENO: result: none needed" >&5
2732 echo "${ECHO_T}none needed" >&6; } ;;
2733 xno)
2734 { echo "$as_me:$LINENO: result: unsupported" >&5
2735 echo "${ECHO_T}unsupported" >&6; } ;;
2737 CC="$CC $ac_cv_prog_cc_c89"
2738 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2739 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2740 esac
2743 ac_ext=c
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749 ac_ext=cpp
2750 ac_cpp='$CXXCPP $CPPFLAGS'
2751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2754 if test -z "$CXX"; then
2755 if test -n "$CCC"; then
2756 CXX=$CCC
2757 else
2758 if test -n "$ac_tool_prefix"; then
2759 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2765 if test "${ac_cv_prog_CXX+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768 if test -n "$CXX"; then
2769 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2782 done
2783 done
2784 IFS=$as_save_IFS
2788 CXX=$ac_cv_prog_CXX
2789 if test -n "$CXX"; then
2790 { echo "$as_me:$LINENO: result: $CXX" >&5
2791 echo "${ECHO_T}$CXX" >&6; }
2792 else
2793 { echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6; }
2798 test -n "$CXX" && break
2799 done
2801 if test -z "$CXX"; then
2802 ac_ct_CXX=$CXX
2803 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2805 # Extract the first word of "$ac_prog", so it can be a program name with args.
2806 set dummy $ac_prog; ac_word=$2
2807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2809 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812 if test -n "$ac_ct_CXX"; then
2813 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 ac_cv_prog_ac_ct_CXX="$ac_prog"
2823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2826 done
2827 done
2828 IFS=$as_save_IFS
2832 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2833 if test -n "$ac_ct_CXX"; then
2834 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2835 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2836 else
2837 { echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6; }
2842 test -n "$ac_ct_CXX" && break
2843 done
2845 if test "x$ac_ct_CXX" = x; then
2846 CXX="g++"
2847 else
2848 case $cross_compiling:$ac_tool_warned in
2849 yes:)
2850 { echo "$as_me:$LINENO: 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." >&5
2853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2854 whose name does not start with the host triplet. If you think this
2855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2856 ac_tool_warned=yes ;;
2857 esac
2858 CXX=$ac_ct_CXX
2864 # Provide some information about the compiler.
2865 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2866 ac_compiler=`set X $ac_compile; echo $2`
2867 { (ac_try="$ac_compiler --version >&5"
2868 case "(($ac_try" in
2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870 *) ac_try_echo=$ac_try;;
2871 esac
2872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2873 (eval "$ac_compiler --version >&5") 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }
2877 { (ac_try="$ac_compiler -v >&5"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_compiler -v >&5") 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }
2887 { (ac_try="$ac_compiler -V >&5"
2888 case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891 esac
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compiler -V >&5") 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }
2898 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2899 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2900 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903 cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h. */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2911 main ()
2913 #ifndef __GNUC__
2914 choke me
2915 #endif
2918 return 0;
2920 _ACEOF
2921 rm -f conftest.$ac_objext
2922 if { (ac_try="$ac_compile"
2923 case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926 esac
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_compile") 2>conftest.er1
2929 ac_status=$?
2930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } && {
2935 test -z "$ac_cxx_werror_flag" ||
2936 test ! -s conftest.err
2937 } && test -s conftest.$ac_objext; then
2938 ac_compiler_gnu=yes
2939 else
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2943 ac_compiler_gnu=no
2946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2947 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2950 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2951 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2952 GXX=`test $ac_compiler_gnu = yes && echo yes`
2953 ac_test_CXXFLAGS=${CXXFLAGS+set}
2954 ac_save_CXXFLAGS=$CXXFLAGS
2955 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2956 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2957 if test "${ac_cv_prog_cxx_g+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2961 ac_cxx_werror_flag=yes
2962 ac_cv_prog_cxx_g=no
2963 CXXFLAGS="-g"
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2972 main ()
2976 return 0;
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (ac_try="$ac_compile"
2981 case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>conftest.er1
2987 ac_status=$?
2988 grep -v '^ *+' conftest.er1 >conftest.err
2989 rm -f conftest.er1
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } && {
2993 test -z "$ac_cxx_werror_flag" ||
2994 test ! -s conftest.err
2995 } && test -s conftest.$ac_objext; then
2996 ac_cv_prog_cxx_g=yes
2997 else
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3001 CXXFLAGS=""
3002 cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h. */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3010 main ()
3014 return 0;
3016 _ACEOF
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3019 case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } && {
3031 test -z "$ac_cxx_werror_flag" ||
3032 test ! -s conftest.err
3033 } && test -s conftest.$ac_objext; then
3035 else
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3039 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3040 CXXFLAGS="-g"
3041 cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h. */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3049 main ()
3053 return 0;
3055 _ACEOF
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3058 case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061 esac
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compile") 2>conftest.er1
3064 ac_status=$?
3065 grep -v '^ *+' conftest.er1 >conftest.err
3066 rm -f conftest.er1
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } && {
3070 test -z "$ac_cxx_werror_flag" ||
3071 test ! -s conftest.err
3072 } && test -s conftest.$ac_objext; then
3073 ac_cv_prog_cxx_g=yes
3074 else
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3090 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3091 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3092 if test "$ac_test_CXXFLAGS" = set; then
3093 CXXFLAGS=$ac_save_CXXFLAGS
3094 elif test $ac_cv_prog_cxx_g = yes; then
3095 if test "$GXX" = yes; then
3096 CXXFLAGS="-g -O2"
3097 else
3098 CXXFLAGS="-g"
3100 else
3101 if test "$GXX" = yes; then
3102 CXXFLAGS="-O2"
3103 else
3104 CXXFLAGS=
3107 ac_ext=c
3108 ac_cpp='$CPP $CPPFLAGS'
3109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3113 ac_ext=cpp
3114 ac_cpp='$CXXCPP $CPPFLAGS'
3115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3121 { echo "$as_me:$LINENO: checking whether GNU C++ compiler is default" >&5
3122 echo $ECHO_N "checking whether GNU C++ compiler is default... $ECHO_C" >&6; }
3123 case "$GXX" in
3124 yes )
3125 GCC_VERSION=`$CC -dumpversion`
3126 GXX_VERSION=`$CXX -dumpversion`
3127 { echo "$as_me:$LINENO: result: yes" >&5
3128 echo "${ECHO_T}yes" >&6; }
3129 { echo "$as_me:$LINENO: checking version of gcc" >&5
3130 echo $ECHO_N "checking version of gcc... $ECHO_C" >&6; }
3131 { echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
3132 echo "${ECHO_T}$GCC_VERSION" >&6; }
3133 { echo "$as_me:$LINENO: checking version of g++" >&5
3134 echo $ECHO_N "checking version of g++... $ECHO_C" >&6; }
3135 { echo "$as_me:$LINENO: result: $GXX_VERSION" >&5
3136 echo "${ECHO_T}$GXX_VERSION" >&6; }
3137 case "$GXX_VERSION" in
3138 0* | 1* | 2*)
3139 echo "old style GNU compiler"
3140 cat >>confdefs.h <<\_ACEOF
3141 #define OLD_GNU_COMPILER
3142 _ACEOF
3145 esac
3148 GCC_VERSION="none"
3149 GXX_VERSION="none"
3150 { echo "$as_me:$LINENO: result: no" >&5
3151 echo "${ECHO_T}no" >&6; }
3152 { echo "$as_me:$LINENO: WARNING: cannot find GNU C++ compiler" >&5
3153 echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
3155 esac
3157 #--------------------------------------------------------------------
3158 # Checks for Guile
3159 #--------------------------------------------------------------------
3161 if test -z "$GUILE_CFLAGS" -a -z "$GUILE_LDFLAGS"; then
3163 ## The GUILE_FLAGS macro.
3164 ## First, let's just see if we can find Guile at all.
3165 { echo "$as_me:$LINENO: checking for Guile" >&5
3166 echo $ECHO_N "checking for Guile... $ECHO_C" >&6; }
3167 guile-config link > /dev/null || {
3168 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
3169 exit 1
3171 GUILE_ORIGINAL_CFLAGS="`guile-config compile`"
3172 GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
3173 GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
3174 GUILE_LDFLAGS="`guile-config link`"
3175 GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir` -lguile -lreadline -ltermcap"
3178 { echo "$as_me:$LINENO: result: yes" >&5
3179 echo "${ECHO_T}yes" >&6; }
3182 { echo "$as_me:$LINENO: checking version of guile" >&5
3183 echo $ECHO_N "checking version of guile... $ECHO_C" >&6; }
3184 if test -z "$GUILE_VERSION" ; then
3185 GUILE_VERSION=`guile --version | grep 'Guile \([0-9]\)' | sed 's/Guile \([0-9]*\)/\1/'`
3187 { echo "$as_me:$LINENO: result: $GUILE_VERSION" >&5
3188 echo "${ECHO_T}$GUILE_VERSION" >&6; }
3190 case "$GUILE_VERSION" in
3191 1.0* | 1.1* | 1.2* | 1.3* | 1.4* | 1.5*)
3192 CONFIG_GUILE_SERIAL="A"
3194 1.6* | 1.7*)
3195 CONFIG_GUILE_SERIAL="B"
3198 CONFIG_GUILE_SERIAL="C"
3200 esac
3203 #--------------------------------------------------------------------
3204 # Checks for standard functionality
3205 #--------------------------------------------------------------------
3209 { echo "$as_me:$LINENO: checking for C++-compatible X header files" >&5
3210 echo $ECHO_N "checking for C++-compatible X header files... $ECHO_C" >&6; }
3211 ac_save_cppflags="$CPPFLAGS"
3212 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3213 cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h. */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3219 #include <X11/Xlib.h>
3220 #include <X11/Xutil.h>
3222 main ()
3226 return 0;
3228 _ACEOF
3229 rm -f conftest.$ac_objext
3230 if { (ac_try="$ac_compile"
3231 case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_compile") 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } && {
3243 test -z "$ac_cxx_werror_flag" ||
3244 test ! -s conftest.err
3245 } && test -s conftest.$ac_objext; then
3246 echo yes
3247 else
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3251 rm -rf X11
3252 mkdir X11
3253 for ac_dir in \
3254 /usr/X11/include \
3255 /usr/X11R6/include \
3256 /usr/X11R5/include \
3257 /usr/X11R4/include \
3259 /usr/include/X11 \
3260 /usr/include/X11R6 \
3261 /usr/include/X11R5 \
3262 /usr/include/X11R4 \
3264 /usr/local/X11/include \
3265 /usr/local/X11R6/include \
3266 /usr/local/X11R5/include \
3267 /usr/local/X11R4/include \
3269 /usr/local/include/X11 \
3270 /usr/local/include/X11R6 \
3271 /usr/local/include/X11R5 \
3272 /usr/local/include/X11R4 \
3274 /usr/X386/include \
3275 /usr/x386/include \
3276 /usr/XFree86/include/X11 \
3278 /usr/include \
3279 /usr/local/include \
3280 /usr/unsupported/include \
3281 /usr/athena/include \
3282 /usr/local/x11r5/include \
3283 /usr/lpp/Xamples/include \
3285 /usr/openwin/include \
3286 /usr/openwin/share/include \
3289 if test -r "$ac_dir/X11/Xlib.h"; then
3290 tm_x_includes=$ac_dir
3291 break
3293 done
3294 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3295 < "$tm_x_includes/X11/Xlib.h" > X11/Xlib.h
3296 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3297 < "$tm_x_includes/X11/Xutil.h" > X11/Xutil.h
3298 X_CFLAGS="-I.. $X_CFLAGS"
3299 echo "no; fixing"
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 CPPFLAGS="$ac_save_cppflags"
3305 ac_ext=cpp
3306 ac_cpp='$CXXCPP $CPPFLAGS'
3307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3310 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3311 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3312 if test -z "$CXXCPP"; then
3313 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316 # Double quotes because CXXCPP needs to be expanded
3317 for CXXCPP in "$CXX -E" "/lib/cpp"
3319 ac_preproc_ok=false
3320 for ac_cxx_preproc_warn_flag in '' yes
3322 # Use a header file that comes with gcc, so configuring glibc
3323 # with a fresh cross-compiler works.
3324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3325 # <limits.h> exists even on freestanding compilers.
3326 # On the NeXT, cc -E runs the code through the compiler's parser,
3327 # not just through cpp. "Syntax error" is here to catch this case.
3328 cat >conftest.$ac_ext <<_ACEOF
3329 /* confdefs.h. */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3334 #ifdef __STDC__
3335 # include <limits.h>
3336 #else
3337 # include <assert.h>
3338 #endif
3339 Syntax error
3340 _ACEOF
3341 if { (ac_try="$ac_cpp conftest.$ac_ext"
3342 case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3348 ac_status=$?
3349 grep -v '^ *+' conftest.er1 >conftest.err
3350 rm -f conftest.er1
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } >/dev/null && {
3354 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3355 test ! -s conftest.err
3356 }; then
3358 else
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3362 # Broken: fails on valid input.
3363 continue
3366 rm -f conftest.err conftest.$ac_ext
3368 # OK, works on sane cases. Now check whether nonexistent headers
3369 # can be detected and how.
3370 cat >conftest.$ac_ext <<_ACEOF
3371 /* confdefs.h. */
3372 _ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3376 #include <ac_nonexistent.h>
3377 _ACEOF
3378 if { (ac_try="$ac_cpp conftest.$ac_ext"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } >/dev/null && {
3391 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3392 test ! -s conftest.err
3393 }; then
3394 # Broken: success on invalid input.
3395 continue
3396 else
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 # Passes both tests.
3401 ac_preproc_ok=:
3402 break
3405 rm -f conftest.err conftest.$ac_ext
3407 done
3408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3409 rm -f conftest.err conftest.$ac_ext
3410 if $ac_preproc_ok; then
3411 break
3414 done
3415 ac_cv_prog_CXXCPP=$CXXCPP
3418 CXXCPP=$ac_cv_prog_CXXCPP
3419 else
3420 ac_cv_prog_CXXCPP=$CXXCPP
3422 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
3423 echo "${ECHO_T}$CXXCPP" >&6; }
3424 ac_preproc_ok=false
3425 for ac_cxx_preproc_warn_flag in '' yes
3427 # Use a header file that comes with gcc, so configuring glibc
3428 # with a fresh cross-compiler works.
3429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3430 # <limits.h> exists even on freestanding compilers.
3431 # On the NeXT, cc -E runs the code through the compiler's parser,
3432 # not just through cpp. "Syntax error" is here to catch this case.
3433 cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h. */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 #ifdef __STDC__
3440 # include <limits.h>
3441 #else
3442 # include <assert.h>
3443 #endif
3444 Syntax error
3445 _ACEOF
3446 if { (ac_try="$ac_cpp conftest.$ac_ext"
3447 case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3453 ac_status=$?
3454 grep -v '^ *+' conftest.er1 >conftest.err
3455 rm -f conftest.er1
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } >/dev/null && {
3459 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3460 test ! -s conftest.err
3461 }; then
3463 else
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3467 # Broken: fails on valid input.
3468 continue
3471 rm -f conftest.err conftest.$ac_ext
3473 # OK, works on sane cases. Now check whether nonexistent headers
3474 # can be detected and how.
3475 cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h. */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3481 #include <ac_nonexistent.h>
3482 _ACEOF
3483 if { (ac_try="$ac_cpp conftest.$ac_ext"
3484 case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490 ac_status=$?
3491 grep -v '^ *+' conftest.er1 >conftest.err
3492 rm -f conftest.er1
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } >/dev/null && {
3496 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3497 test ! -s conftest.err
3498 }; then
3499 # Broken: success on invalid input.
3500 continue
3501 else
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3505 # Passes both tests.
3506 ac_preproc_ok=:
3507 break
3510 rm -f conftest.err conftest.$ac_ext
3512 done
3513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514 rm -f conftest.err conftest.$ac_ext
3515 if $ac_preproc_ok; then
3517 else
3518 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3519 See \`config.log' for more details." >&5
3520 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3521 See \`config.log' for more details." >&2;}
3522 { (exit 1); exit 1; }; }
3525 ac_ext=cpp
3526 ac_cpp='$CXXCPP $CPPFLAGS'
3527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3532 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3533 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3534 if test "${ac_cv_path_GREP+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537 # Extract the first word of "grep ggrep" to use in msg output
3538 if test -z "$GREP"; then
3539 set dummy grep ggrep; ac_prog_name=$2
3540 if test "${ac_cv_path_GREP+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543 ac_path_GREP_found=false
3544 # Loop through the user's path and test for each of PROGNAME-LIST
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_prog in grep ggrep; do
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3553 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3554 # Check for GNU ac_path_GREP and select it if it is found.
3555 # Check for GNU $ac_path_GREP
3556 case `"$ac_path_GREP" --version 2>&1` in
3557 *GNU*)
3558 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3560 ac_count=0
3561 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3562 while :
3564 cat "conftest.in" "conftest.in" >"conftest.tmp"
3565 mv "conftest.tmp" "conftest.in"
3566 cp "conftest.in" "conftest.nl"
3567 echo 'GREP' >> "conftest.nl"
3568 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3570 ac_count=`expr $ac_count + 1`
3571 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3572 # Best one so far, save it but keep looking for a better one
3573 ac_cv_path_GREP="$ac_path_GREP"
3574 ac_path_GREP_max=$ac_count
3576 # 10*(2^10) chars as input seems more than enough
3577 test $ac_count -gt 10 && break
3578 done
3579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3580 esac
3583 $ac_path_GREP_found && break 3
3584 done
3585 done
3587 done
3588 IFS=$as_save_IFS
3593 GREP="$ac_cv_path_GREP"
3594 if test -z "$GREP"; then
3595 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3596 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3597 { (exit 1); exit 1; }; }
3600 else
3601 ac_cv_path_GREP=$GREP
3606 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3607 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3608 GREP="$ac_cv_path_GREP"
3611 { echo "$as_me:$LINENO: checking for egrep" >&5
3612 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3613 if test "${ac_cv_path_EGREP+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3617 then ac_cv_path_EGREP="$GREP -E"
3618 else
3619 # Extract the first word of "egrep" to use in msg output
3620 if test -z "$EGREP"; then
3621 set dummy egrep; ac_prog_name=$2
3622 if test "${ac_cv_path_EGREP+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625 ac_path_EGREP_found=false
3626 # Loop through the user's path and test for each of PROGNAME-LIST
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
3632 for ac_prog in egrep; do
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3635 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3636 # Check for GNU ac_path_EGREP and select it if it is found.
3637 # Check for GNU $ac_path_EGREP
3638 case `"$ac_path_EGREP" --version 2>&1` in
3639 *GNU*)
3640 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3642 ac_count=0
3643 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3644 while :
3646 cat "conftest.in" "conftest.in" >"conftest.tmp"
3647 mv "conftest.tmp" "conftest.in"
3648 cp "conftest.in" "conftest.nl"
3649 echo 'EGREP' >> "conftest.nl"
3650 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3652 ac_count=`expr $ac_count + 1`
3653 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3654 # Best one so far, save it but keep looking for a better one
3655 ac_cv_path_EGREP="$ac_path_EGREP"
3656 ac_path_EGREP_max=$ac_count
3658 # 10*(2^10) chars as input seems more than enough
3659 test $ac_count -gt 10 && break
3660 done
3661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3662 esac
3665 $ac_path_EGREP_found && break 3
3666 done
3667 done
3669 done
3670 IFS=$as_save_IFS
3675 EGREP="$ac_cv_path_EGREP"
3676 if test -z "$EGREP"; then
3677 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3678 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3679 { (exit 1); exit 1; }; }
3682 else
3683 ac_cv_path_EGREP=$EGREP
3689 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3690 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3691 EGREP="$ac_cv_path_EGREP"
3694 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3695 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3696 if test "${ac_cv_header_stdc+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699 cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h. */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705 #include <stdlib.h>
3706 #include <stdarg.h>
3707 #include <string.h>
3708 #include <float.h>
3711 main ()
3715 return 0;
3717 _ACEOF
3718 rm -f conftest.$ac_objext
3719 if { (ac_try="$ac_compile"
3720 case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723 esac
3724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725 (eval "$ac_compile") 2>conftest.er1
3726 ac_status=$?
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } && {
3732 test -z "$ac_cxx_werror_flag" ||
3733 test ! -s conftest.err
3734 } && test -s conftest.$ac_objext; then
3735 ac_cv_header_stdc=yes
3736 else
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3740 ac_cv_header_stdc=no
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 if test $ac_cv_header_stdc = yes; then
3746 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3747 cat >conftest.$ac_ext <<_ACEOF
3748 /* confdefs.h. */
3749 _ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3753 #include <string.h>
3755 _ACEOF
3756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3757 $EGREP "memchr" >/dev/null 2>&1; then
3759 else
3760 ac_cv_header_stdc=no
3762 rm -f conftest*
3766 if test $ac_cv_header_stdc = yes; then
3767 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3768 cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h. */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 #include <stdlib.h>
3776 _ACEOF
3777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3778 $EGREP "free" >/dev/null 2>&1; then
3780 else
3781 ac_cv_header_stdc=no
3783 rm -f conftest*
3787 if test $ac_cv_header_stdc = yes; then
3788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3789 if test "$cross_compiling" = yes; then
3791 else
3792 cat >conftest.$ac_ext <<_ACEOF
3793 /* confdefs.h. */
3794 _ACEOF
3795 cat confdefs.h >>conftest.$ac_ext
3796 cat >>conftest.$ac_ext <<_ACEOF
3797 /* end confdefs.h. */
3798 #include <ctype.h>
3799 #include <stdlib.h>
3800 #if ((' ' & 0x0FF) == 0x020)
3801 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3802 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3803 #else
3804 # define ISLOWER(c) \
3805 (('a' <= (c) && (c) <= 'i') \
3806 || ('j' <= (c) && (c) <= 'r') \
3807 || ('s' <= (c) && (c) <= 'z'))
3808 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3809 #endif
3811 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3813 main ()
3815 int i;
3816 for (i = 0; i < 256; i++)
3817 if (XOR (islower (i), ISLOWER (i))
3818 || toupper (i) != TOUPPER (i))
3819 return 2;
3820 return 0;
3822 _ACEOF
3823 rm -f conftest$ac_exeext
3824 if { (ac_try="$ac_link"
3825 case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828 esac
3829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830 (eval "$ac_link") 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3834 { (case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837 esac
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_try") 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3844 else
3845 echo "$as_me: program exited with status $ac_status" >&5
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3849 ( exit $ac_status )
3850 ac_cv_header_stdc=no
3852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3858 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3859 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3860 if test $ac_cv_header_stdc = yes; then
3862 cat >>confdefs.h <<\_ACEOF
3863 #define STDC_HEADERS 1
3864 _ACEOF
3868 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3878 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3879 inttypes.h stdint.h unistd.h
3881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887 cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h. */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 $ac_includes_default
3895 #include <$ac_header>
3896 _ACEOF
3897 rm -f conftest.$ac_objext
3898 if { (ac_try="$ac_compile"
3899 case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902 esac
3903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3904 (eval "$ac_compile") 2>conftest.er1
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } && {
3911 test -z "$ac_cxx_werror_flag" ||
3912 test ! -s conftest.err
3913 } && test -s conftest.$ac_objext; then
3914 eval "$as_ac_Header=yes"
3915 else
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3919 eval "$as_ac_Header=no"
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 ac_res=`eval echo '${'$as_ac_Header'}'`
3925 { echo "$as_me:$LINENO: result: $ac_res" >&5
3926 echo "${ECHO_T}$ac_res" >&6; }
3927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3928 cat >>confdefs.h <<_ACEOF
3929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3930 _ACEOF
3934 done
3937 { echo "$as_me:$LINENO: checking for FILE" >&5
3938 echo $ECHO_N "checking for FILE... $ECHO_C" >&6; }
3939 if test "${ac_cv_type_FILE+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942 cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h. */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3948 $ac_includes_default
3949 typedef FILE ac__type_new_;
3951 main ()
3953 if ((ac__type_new_ *) 0)
3954 return 0;
3955 if (sizeof (ac__type_new_))
3956 return 0;
3958 return 0;
3960 _ACEOF
3961 rm -f conftest.$ac_objext
3962 if { (ac_try="$ac_compile"
3963 case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966 esac
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968 (eval "$ac_compile") 2>conftest.er1
3969 ac_status=$?
3970 grep -v '^ *+' conftest.er1 >conftest.err
3971 rm -f conftest.er1
3972 cat conftest.err >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } && {
3975 test -z "$ac_cxx_werror_flag" ||
3976 test ! -s conftest.err
3977 } && test -s conftest.$ac_objext; then
3978 ac_cv_type_FILE=yes
3979 else
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3983 ac_cv_type_FILE=no
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 { echo "$as_me:$LINENO: result: $ac_cv_type_FILE" >&5
3989 echo "${ECHO_T}$ac_cv_type_FILE" >&6; }
3990 if test $ac_cv_type_FILE = yes; then
3992 cat >>confdefs.h <<_ACEOF
3993 #define HAVE_FILE 1
3994 _ACEOF
3999 { echo "$as_me:$LINENO: checking for intptr_t" >&5
4000 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
4001 if test "${ac_cv_type_intptr_t+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 $ac_includes_default
4011 typedef intptr_t ac__type_new_;
4013 main ()
4015 if ((ac__type_new_ *) 0)
4016 return 0;
4017 if (sizeof (ac__type_new_))
4018 return 0;
4020 return 0;
4022 _ACEOF
4023 rm -f conftest.$ac_objext
4024 if { (ac_try="$ac_compile"
4025 case "(($ac_try" in
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4028 esac
4029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4030 (eval "$ac_compile") 2>conftest.er1
4031 ac_status=$?
4032 grep -v '^ *+' conftest.er1 >conftest.err
4033 rm -f conftest.er1
4034 cat conftest.err >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } && {
4037 test -z "$ac_cxx_werror_flag" ||
4038 test ! -s conftest.err
4039 } && test -s conftest.$ac_objext; then
4040 ac_cv_type_intptr_t=yes
4041 else
4042 echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4045 ac_cv_type_intptr_t=no
4048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
4051 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
4052 if test $ac_cv_type_intptr_t = yes; then
4054 cat >>confdefs.h <<_ACEOF
4055 #define HAVE_INTPTR_T 1
4056 _ACEOF
4061 { echo "$as_me:$LINENO: checking for time_t" >&5
4062 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
4063 if test "${ac_cv_type_time_t+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066 cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h. */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4072 $ac_includes_default
4073 typedef time_t ac__type_new_;
4075 main ()
4077 if ((ac__type_new_ *) 0)
4078 return 0;
4079 if (sizeof (ac__type_new_))
4080 return 0;
4082 return 0;
4084 _ACEOF
4085 rm -f conftest.$ac_objext
4086 if { (ac_try="$ac_compile"
4087 case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090 esac
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_compile") 2>conftest.er1
4093 ac_status=$?
4094 grep -v '^ *+' conftest.er1 >conftest.err
4095 rm -f conftest.er1
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } && {
4099 test -z "$ac_cxx_werror_flag" ||
4100 test ! -s conftest.err
4101 } && test -s conftest.$ac_objext; then
4102 ac_cv_type_time_t=yes
4103 else
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4107 ac_cv_type_time_t=no
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
4113 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
4114 if test $ac_cv_type_time_t = yes; then
4116 cat >>confdefs.h <<_ACEOF
4117 #define HAVE_TIME_T 1
4118 _ACEOF
4123 { echo "$as_me:$LINENO: checking for X" >&5
4124 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4127 # Check whether --with-x was given.
4128 if test "${with_x+set}" = set; then
4129 withval=$with_x;
4132 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4133 if test "x$with_x" = xno; then
4134 # The user explicitly disabled X.
4135 have_x=disabled
4136 else
4137 case $x_includes,$x_libraries in #(
4138 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4139 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4140 { (exit 1); exit 1; }; };; #(
4141 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144 # One or both of the vars are not set, and there is no cached value.
4145 ac_x_includes=no ac_x_libraries=no
4146 rm -f -r conftest.dir
4147 if mkdir conftest.dir; then
4148 cd conftest.dir
4149 cat >Imakefile <<'_ACEOF'
4150 incroot:
4151 @echo incroot='${INCROOT}'
4152 usrlibdir:
4153 @echo usrlibdir='${USRLIBDIR}'
4154 libdir:
4155 @echo libdir='${LIBDIR}'
4156 _ACEOF
4157 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4158 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4159 for ac_var in incroot usrlibdir libdir; do
4160 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4161 done
4162 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4163 for ac_extension in a so sl; do
4164 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4165 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4166 ac_im_usrlibdir=$ac_im_libdir; break
4168 done
4169 # Screen out bogus values from the imake configuration. They are
4170 # bogus both because they are the default anyway, and because
4171 # using them would break gcc on systems where it needs fixed includes.
4172 case $ac_im_incroot in
4173 /usr/include) ac_x_includes= ;;
4174 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4175 esac
4176 case $ac_im_usrlibdir in
4177 /usr/lib | /lib) ;;
4178 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4179 esac
4181 cd ..
4182 rm -f -r conftest.dir
4185 # Standard set of common directories for X headers.
4186 # Check X11 before X11Rn because it is often a symlink to the current release.
4187 ac_x_header_dirs='
4188 /usr/X11/include
4189 /usr/X11R6/include
4190 /usr/X11R5/include
4191 /usr/X11R4/include
4193 /usr/include/X11
4194 /usr/include/X11R6
4195 /usr/include/X11R5
4196 /usr/include/X11R4
4198 /usr/local/X11/include
4199 /usr/local/X11R6/include
4200 /usr/local/X11R5/include
4201 /usr/local/X11R4/include
4203 /usr/local/include/X11
4204 /usr/local/include/X11R6
4205 /usr/local/include/X11R5
4206 /usr/local/include/X11R4
4208 /usr/X386/include
4209 /usr/x386/include
4210 /usr/XFree86/include/X11
4212 /usr/include
4213 /usr/local/include
4214 /usr/unsupported/include
4215 /usr/athena/include
4216 /usr/local/x11r5/include
4217 /usr/lpp/Xamples/include
4219 /usr/openwin/include
4220 /usr/openwin/share/include'
4222 if test "$ac_x_includes" = no; then
4223 # Guess where to find include files, by looking for Xlib.h.
4224 # First, try using that file with no special directory specified.
4225 cat >conftest.$ac_ext <<_ACEOF
4226 /* confdefs.h. */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4231 #include <X11/Xlib.h>
4232 _ACEOF
4233 if { (ac_try="$ac_cpp conftest.$ac_ext"
4234 case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4237 esac
4238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4240 ac_status=$?
4241 grep -v '^ *+' conftest.er1 >conftest.err
4242 rm -f conftest.er1
4243 cat conftest.err >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } >/dev/null && {
4246 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4247 test ! -s conftest.err
4248 }; then
4249 # We can compile using X headers with no special include directory.
4250 ac_x_includes=
4251 else
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 for ac_dir in $ac_x_header_dirs; do
4256 if test -r "$ac_dir/X11/Xlib.h"; then
4257 ac_x_includes=$ac_dir
4258 break
4260 done
4263 rm -f conftest.err conftest.$ac_ext
4264 fi # $ac_x_includes = no
4266 if test "$ac_x_libraries" = no; then
4267 # Check for the libraries.
4268 # See if we find them without any special options.
4269 # Don't add to $LIBS permanently.
4270 ac_save_LIBS=$LIBS
4271 LIBS="-lX11 $LIBS"
4272 cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h. */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 #include <X11/Xlib.h>
4280 main ()
4282 XrmInitialize ()
4284 return 0;
4286 _ACEOF
4287 rm -f conftest.$ac_objext conftest$ac_exeext
4288 if { (ac_try="$ac_link"
4289 case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292 esac
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_link") 2>conftest.er1
4295 ac_status=$?
4296 grep -v '^ *+' conftest.er1 >conftest.err
4297 rm -f conftest.er1
4298 cat conftest.err >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } && {
4301 test -z "$ac_cxx_werror_flag" ||
4302 test ! -s conftest.err
4303 } && test -s conftest$ac_exeext &&
4304 $as_test_x conftest$ac_exeext; then
4305 LIBS=$ac_save_LIBS
4306 # We can link X programs with no special library path.
4307 ac_x_libraries=
4308 else
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4312 LIBS=$ac_save_LIBS
4313 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4315 # Don't even attempt the hair of trying to link an X program!
4316 for ac_extension in a so sl; do
4317 if test -r "$ac_dir/libX11.$ac_extension"; then
4318 ac_x_libraries=$ac_dir
4319 break 2
4321 done
4322 done
4325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4326 conftest$ac_exeext conftest.$ac_ext
4327 fi # $ac_x_libraries = no
4329 case $ac_x_includes,$ac_x_libraries in #(
4330 no,* | *,no | *\'*)
4331 # Didn't find X, or a directory has "'" in its name.
4332 ac_cv_have_x="have_x=no";; #(
4334 # Record where we found X for the cache.
4335 ac_cv_have_x="have_x=yes\
4336 ac_x_includes='$ac_x_includes'\
4337 ac_x_libraries='$ac_x_libraries'"
4338 esac
4340 ;; #(
4341 *) have_x=yes;;
4342 esac
4343 eval "$ac_cv_have_x"
4344 fi # $with_x != no
4346 if test "$have_x" != yes; then
4347 { echo "$as_me:$LINENO: result: $have_x" >&5
4348 echo "${ECHO_T}$have_x" >&6; }
4349 no_x=yes
4350 else
4351 # If each of the values was on the command line, it overrides each guess.
4352 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4353 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4354 # Update the cache value to reflect the command line values.
4355 ac_cv_have_x="have_x=yes\
4356 ac_x_includes='$x_includes'\
4357 ac_x_libraries='$x_libraries'"
4358 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4359 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4362 if test "$no_x" = yes; then
4363 # Not all programs may use this symbol, but it does not hurt to define it.
4365 cat >>confdefs.h <<\_ACEOF
4366 #define X_DISPLAY_MISSING 1
4367 _ACEOF
4369 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4370 else
4371 if test -n "$x_includes"; then
4372 X_CFLAGS="$X_CFLAGS -I$x_includes"
4375 # It would also be nice to do this for all -L options, not just this one.
4376 if test -n "$x_libraries"; then
4377 X_LIBS="$X_LIBS -L$x_libraries"
4378 # For Solaris; some versions of Sun CC require a space after -R and
4379 # others require no space. Words are not sufficient . . . .
4380 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4381 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4382 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4383 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
4384 ac_cxx_werror_flag=yes
4385 cat >conftest.$ac_ext <<_ACEOF
4386 /* confdefs.h. */
4387 _ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h. */
4393 main ()
4397 return 0;
4399 _ACEOF
4400 rm -f conftest.$ac_objext conftest$ac_exeext
4401 if { (ac_try="$ac_link"
4402 case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405 esac
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_link") 2>conftest.er1
4408 ac_status=$?
4409 grep -v '^ *+' conftest.er1 >conftest.err
4410 rm -f conftest.er1
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } && {
4414 test -z "$ac_cxx_werror_flag" ||
4415 test ! -s conftest.err
4416 } && test -s conftest$ac_exeext &&
4417 $as_test_x conftest$ac_exeext; then
4418 { echo "$as_me:$LINENO: result: no" >&5
4419 echo "${ECHO_T}no" >&6; }
4420 X_LIBS="$X_LIBS -R$x_libraries"
4421 else
4422 echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4425 LIBS="$ac_xsave_LIBS -R $x_libraries"
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4434 main ()
4438 return 0;
4440 _ACEOF
4441 rm -f conftest.$ac_objext conftest$ac_exeext
4442 if { (ac_try="$ac_link"
4443 case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446 esac
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_link") 2>conftest.er1
4449 ac_status=$?
4450 grep -v '^ *+' conftest.er1 >conftest.err
4451 rm -f conftest.er1
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } && {
4455 test -z "$ac_cxx_werror_flag" ||
4456 test ! -s conftest.err
4457 } && test -s conftest$ac_exeext &&
4458 $as_test_x conftest$ac_exeext; then
4459 { echo "$as_me:$LINENO: result: yes" >&5
4460 echo "${ECHO_T}yes" >&6; }
4461 X_LIBS="$X_LIBS -R $x_libraries"
4462 else
4463 echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466 { echo "$as_me:$LINENO: result: neither works" >&5
4467 echo "${ECHO_T}neither works" >&6; }
4470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4471 conftest$ac_exeext conftest.$ac_ext
4474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4475 conftest$ac_exeext conftest.$ac_ext
4476 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
4477 LIBS=$ac_xsave_LIBS
4480 # Check for system-dependent libraries X programs must link with.
4481 # Do this before checking for the system-independent R6 libraries
4482 # (-lICE), since we may need -lsocket or whatever for X linking.
4484 if test "$ISC" = yes; then
4485 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4486 else
4487 # Martyn Johnson says this is needed for Ultrix, if the X
4488 # libraries were built with DECnet support. And Karl Berry says
4489 # the Alpha needs dnet_stub (dnet does not exist).
4490 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4491 cat >conftest.$ac_ext <<_ACEOF
4492 /* confdefs.h. */
4493 _ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4498 /* Override any GCC internal prototype to avoid an error.
4499 Use char because int might match the return type of a GCC
4500 builtin and then its argument prototype would still apply. */
4501 #ifdef __cplusplus
4502 extern "C"
4503 #endif
4504 char XOpenDisplay ();
4506 main ()
4508 return XOpenDisplay ();
4510 return 0;
4512 _ACEOF
4513 rm -f conftest.$ac_objext conftest$ac_exeext
4514 if { (ac_try="$ac_link"
4515 case "(($ac_try" in
4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4518 esac
4519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4520 (eval "$ac_link") 2>conftest.er1
4521 ac_status=$?
4522 grep -v '^ *+' conftest.er1 >conftest.err
4523 rm -f conftest.er1
4524 cat conftest.err >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } && {
4527 test -z "$ac_cxx_werror_flag" ||
4528 test ! -s conftest.err
4529 } && test -s conftest$ac_exeext &&
4530 $as_test_x conftest$ac_exeext; then
4532 else
4533 echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4536 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4537 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4538 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541 ac_check_lib_save_LIBS=$LIBS
4542 LIBS="-ldnet $LIBS"
4543 cat >conftest.$ac_ext <<_ACEOF
4544 /* confdefs.h. */
4545 _ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4550 /* Override any GCC internal prototype to avoid an error.
4551 Use char because int might match the return type of a GCC
4552 builtin and then its argument prototype would still apply. */
4553 #ifdef __cplusplus
4554 extern "C"
4555 #endif
4556 char dnet_ntoa ();
4558 main ()
4560 return dnet_ntoa ();
4562 return 0;
4564 _ACEOF
4565 rm -f conftest.$ac_objext conftest$ac_exeext
4566 if { (ac_try="$ac_link"
4567 case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570 esac
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_link") 2>conftest.er1
4573 ac_status=$?
4574 grep -v '^ *+' conftest.er1 >conftest.err
4575 rm -f conftest.er1
4576 cat conftest.err >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } && {
4579 test -z "$ac_cxx_werror_flag" ||
4580 test ! -s conftest.err
4581 } && test -s conftest$ac_exeext &&
4582 $as_test_x conftest$ac_exeext; then
4583 ac_cv_lib_dnet_dnet_ntoa=yes
4584 else
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 ac_cv_lib_dnet_dnet_ntoa=no
4591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4592 conftest$ac_exeext conftest.$ac_ext
4593 LIBS=$ac_check_lib_save_LIBS
4595 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4596 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4597 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4598 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4601 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4602 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4603 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4604 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607 ac_check_lib_save_LIBS=$LIBS
4608 LIBS="-ldnet_stub $LIBS"
4609 cat >conftest.$ac_ext <<_ACEOF
4610 /* confdefs.h. */
4611 _ACEOF
4612 cat confdefs.h >>conftest.$ac_ext
4613 cat >>conftest.$ac_ext <<_ACEOF
4614 /* end confdefs.h. */
4616 /* Override any GCC internal prototype to avoid an error.
4617 Use char because int might match the return type of a GCC
4618 builtin and then its argument prototype would still apply. */
4619 #ifdef __cplusplus
4620 extern "C"
4621 #endif
4622 char dnet_ntoa ();
4624 main ()
4626 return dnet_ntoa ();
4628 return 0;
4630 _ACEOF
4631 rm -f conftest.$ac_objext conftest$ac_exeext
4632 if { (ac_try="$ac_link"
4633 case "(($ac_try" in
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4636 esac
4637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638 (eval "$ac_link") 2>conftest.er1
4639 ac_status=$?
4640 grep -v '^ *+' conftest.er1 >conftest.err
4641 rm -f conftest.er1
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } && {
4645 test -z "$ac_cxx_werror_flag" ||
4646 test ! -s conftest.err
4647 } && test -s conftest$ac_exeext &&
4648 $as_test_x conftest$ac_exeext; then
4649 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4650 else
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4654 ac_cv_lib_dnet_stub_dnet_ntoa=no
4657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4658 conftest$ac_exeext conftest.$ac_ext
4659 LIBS=$ac_check_lib_save_LIBS
4661 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4662 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4663 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4664 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4671 conftest$ac_exeext conftest.$ac_ext
4672 LIBS="$ac_xsave_LIBS"
4674 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4675 # to get the SysV transport functions.
4676 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4677 # needs -lnsl.
4678 # The nsl library prevents programs from opening the X display
4679 # on Irix 5.2, according to T.E. Dickey.
4680 # The functions gethostbyname, getservbyname, and inet_addr are
4681 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4682 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4683 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4684 if test "${ac_cv_func_gethostbyname+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687 cat >conftest.$ac_ext <<_ACEOF
4688 /* confdefs.h. */
4689 _ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4693 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4695 #define gethostbyname innocuous_gethostbyname
4697 /* System header to define __stub macros and hopefully few prototypes,
4698 which can conflict with char gethostbyname (); below.
4699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4700 <limits.h> exists even on freestanding compilers. */
4702 #ifdef __STDC__
4703 # include <limits.h>
4704 #else
4705 # include <assert.h>
4706 #endif
4708 #undef gethostbyname
4710 /* Override any GCC internal prototype to avoid an error.
4711 Use char because int might match the return type of a GCC
4712 builtin and then its argument prototype would still apply. */
4713 #ifdef __cplusplus
4714 extern "C"
4715 #endif
4716 char gethostbyname ();
4717 /* The GNU C library defines this for functions which it implements
4718 to always fail with ENOSYS. Some functions are actually named
4719 something starting with __ and the normal name is an alias. */
4720 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4721 choke me
4722 #endif
4725 main ()
4727 return gethostbyname ();
4729 return 0;
4731 _ACEOF
4732 rm -f conftest.$ac_objext conftest$ac_exeext
4733 if { (ac_try="$ac_link"
4734 case "(($ac_try" in
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4737 esac
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739 (eval "$ac_link") 2>conftest.er1
4740 ac_status=$?
4741 grep -v '^ *+' conftest.er1 >conftest.err
4742 rm -f conftest.er1
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } && {
4746 test -z "$ac_cxx_werror_flag" ||
4747 test ! -s conftest.err
4748 } && test -s conftest$ac_exeext &&
4749 $as_test_x conftest$ac_exeext; then
4750 ac_cv_func_gethostbyname=yes
4751 else
4752 echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4755 ac_cv_func_gethostbyname=no
4758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4759 conftest$ac_exeext conftest.$ac_ext
4761 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4762 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4764 if test $ac_cv_func_gethostbyname = no; then
4765 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4766 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4767 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770 ac_check_lib_save_LIBS=$LIBS
4771 LIBS="-lnsl $LIBS"
4772 cat >conftest.$ac_ext <<_ACEOF
4773 /* confdefs.h. */
4774 _ACEOF
4775 cat confdefs.h >>conftest.$ac_ext
4776 cat >>conftest.$ac_ext <<_ACEOF
4777 /* end confdefs.h. */
4779 /* Override any GCC internal prototype to avoid an error.
4780 Use char because int might match the return type of a GCC
4781 builtin and then its argument prototype would still apply. */
4782 #ifdef __cplusplus
4783 extern "C"
4784 #endif
4785 char gethostbyname ();
4787 main ()
4789 return gethostbyname ();
4791 return 0;
4793 _ACEOF
4794 rm -f conftest.$ac_objext conftest$ac_exeext
4795 if { (ac_try="$ac_link"
4796 case "(($ac_try" in
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4799 esac
4800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801 (eval "$ac_link") 2>conftest.er1
4802 ac_status=$?
4803 grep -v '^ *+' conftest.er1 >conftest.err
4804 rm -f conftest.er1
4805 cat conftest.err >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } && {
4808 test -z "$ac_cxx_werror_flag" ||
4809 test ! -s conftest.err
4810 } && test -s conftest$ac_exeext &&
4811 $as_test_x conftest$ac_exeext; then
4812 ac_cv_lib_nsl_gethostbyname=yes
4813 else
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4817 ac_cv_lib_nsl_gethostbyname=no
4820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4821 conftest$ac_exeext conftest.$ac_ext
4822 LIBS=$ac_check_lib_save_LIBS
4824 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4825 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4826 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4827 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4830 if test $ac_cv_lib_nsl_gethostbyname = no; then
4831 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4832 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4833 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836 ac_check_lib_save_LIBS=$LIBS
4837 LIBS="-lbsd $LIBS"
4838 cat >conftest.$ac_ext <<_ACEOF
4839 /* confdefs.h. */
4840 _ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h. */
4845 /* Override any GCC internal prototype to avoid an error.
4846 Use char because int might match the return type of a GCC
4847 builtin and then its argument prototype would still apply. */
4848 #ifdef __cplusplus
4849 extern "C"
4850 #endif
4851 char gethostbyname ();
4853 main ()
4855 return gethostbyname ();
4857 return 0;
4859 _ACEOF
4860 rm -f conftest.$ac_objext conftest$ac_exeext
4861 if { (ac_try="$ac_link"
4862 case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865 esac
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_link") 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && {
4874 test -z "$ac_cxx_werror_flag" ||
4875 test ! -s conftest.err
4876 } && test -s conftest$ac_exeext &&
4877 $as_test_x conftest$ac_exeext; then
4878 ac_cv_lib_bsd_gethostbyname=yes
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4883 ac_cv_lib_bsd_gethostbyname=no
4886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4887 conftest$ac_exeext conftest.$ac_ext
4888 LIBS=$ac_check_lib_save_LIBS
4890 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4891 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4892 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4893 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4899 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4900 # socket/setsockopt and other routines are undefined under SCO ODT
4901 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4902 # on later versions), says Simon Leinen: it contains gethostby*
4903 # variants that don't use the name server (or something). -lsocket
4904 # must be given before -lnsl if both are needed. We assume that
4905 # if connect needs -lnsl, so does gethostbyname.
4906 { echo "$as_me:$LINENO: checking for connect" >&5
4907 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4908 if test "${ac_cv_func_connect+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h. */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4919 #define connect innocuous_connect
4921 /* System header to define __stub macros and hopefully few prototypes,
4922 which can conflict with char connect (); below.
4923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924 <limits.h> exists even on freestanding compilers. */
4926 #ifdef __STDC__
4927 # include <limits.h>
4928 #else
4929 # include <assert.h>
4930 #endif
4932 #undef connect
4934 /* Override any GCC internal prototype to avoid an error.
4935 Use char because int might match the return type of a GCC
4936 builtin and then its argument prototype would still apply. */
4937 #ifdef __cplusplus
4938 extern "C"
4939 #endif
4940 char connect ();
4941 /* The GNU C library defines this for functions which it implements
4942 to always fail with ENOSYS. Some functions are actually named
4943 something starting with __ and the normal name is an alias. */
4944 #if defined __stub_connect || defined __stub___connect
4945 choke me
4946 #endif
4949 main ()
4951 return connect ();
4953 return 0;
4955 _ACEOF
4956 rm -f conftest.$ac_objext conftest$ac_exeext
4957 if { (ac_try="$ac_link"
4958 case "(($ac_try" in
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4961 esac
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_link") 2>conftest.er1
4964 ac_status=$?
4965 grep -v '^ *+' conftest.er1 >conftest.err
4966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } && {
4970 test -z "$ac_cxx_werror_flag" ||
4971 test ! -s conftest.err
4972 } && test -s conftest$ac_exeext &&
4973 $as_test_x conftest$ac_exeext; then
4974 ac_cv_func_connect=yes
4975 else
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4979 ac_cv_func_connect=no
4982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4983 conftest$ac_exeext conftest.$ac_ext
4985 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4986 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4988 if test $ac_cv_func_connect = no; then
4989 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4990 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4991 if test "${ac_cv_lib_socket_connect+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994 ac_check_lib_save_LIBS=$LIBS
4995 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4996 cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h. */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5003 /* Override any GCC internal prototype to avoid an error.
5004 Use char because int might match the return type of a GCC
5005 builtin and then its argument prototype would still apply. */
5006 #ifdef __cplusplus
5007 extern "C"
5008 #endif
5009 char connect ();
5011 main ()
5013 return connect ();
5015 return 0;
5017 _ACEOF
5018 rm -f conftest.$ac_objext conftest$ac_exeext
5019 if { (ac_try="$ac_link"
5020 case "(($ac_try" in
5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5023 esac
5024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025 (eval "$ac_link") 2>conftest.er1
5026 ac_status=$?
5027 grep -v '^ *+' conftest.er1 >conftest.err
5028 rm -f conftest.er1
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } && {
5032 test -z "$ac_cxx_werror_flag" ||
5033 test ! -s conftest.err
5034 } && test -s conftest$ac_exeext &&
5035 $as_test_x conftest$ac_exeext; then
5036 ac_cv_lib_socket_connect=yes
5037 else
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5041 ac_cv_lib_socket_connect=no
5044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5045 conftest$ac_exeext conftest.$ac_ext
5046 LIBS=$ac_check_lib_save_LIBS
5048 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5049 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5050 if test $ac_cv_lib_socket_connect = yes; then
5051 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5056 # Guillermo Gomez says -lposix is necessary on A/UX.
5057 { echo "$as_me:$LINENO: checking for remove" >&5
5058 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5059 if test "${ac_cv_func_remove+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062 cat >conftest.$ac_ext <<_ACEOF
5063 /* confdefs.h. */
5064 _ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5068 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5070 #define remove innocuous_remove
5072 /* System header to define __stub macros and hopefully few prototypes,
5073 which can conflict with char remove (); below.
5074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5075 <limits.h> exists even on freestanding compilers. */
5077 #ifdef __STDC__
5078 # include <limits.h>
5079 #else
5080 # include <assert.h>
5081 #endif
5083 #undef remove
5085 /* Override any GCC internal prototype to avoid an error.
5086 Use char because int might match the return type of a GCC
5087 builtin and then its argument prototype would still apply. */
5088 #ifdef __cplusplus
5089 extern "C"
5090 #endif
5091 char remove ();
5092 /* The GNU C library defines this for functions which it implements
5093 to always fail with ENOSYS. Some functions are actually named
5094 something starting with __ and the normal name is an alias. */
5095 #if defined __stub_remove || defined __stub___remove
5096 choke me
5097 #endif
5100 main ()
5102 return remove ();
5104 return 0;
5106 _ACEOF
5107 rm -f conftest.$ac_objext conftest$ac_exeext
5108 if { (ac_try="$ac_link"
5109 case "(($ac_try" in
5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5112 esac
5113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5114 (eval "$ac_link") 2>conftest.er1
5115 ac_status=$?
5116 grep -v '^ *+' conftest.er1 >conftest.err
5117 rm -f conftest.er1
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } && {
5121 test -z "$ac_cxx_werror_flag" ||
5122 test ! -s conftest.err
5123 } && test -s conftest$ac_exeext &&
5124 $as_test_x conftest$ac_exeext; then
5125 ac_cv_func_remove=yes
5126 else
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5130 ac_cv_func_remove=no
5133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5134 conftest$ac_exeext conftest.$ac_ext
5136 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5137 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5139 if test $ac_cv_func_remove = no; then
5140 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5141 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5142 if test "${ac_cv_lib_posix_remove+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145 ac_check_lib_save_LIBS=$LIBS
5146 LIBS="-lposix $LIBS"
5147 cat >conftest.$ac_ext <<_ACEOF
5148 /* confdefs.h. */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5154 /* Override any GCC internal prototype to avoid an error.
5155 Use char because int might match the return type of a GCC
5156 builtin and then its argument prototype would still apply. */
5157 #ifdef __cplusplus
5158 extern "C"
5159 #endif
5160 char remove ();
5162 main ()
5164 return remove ();
5166 return 0;
5168 _ACEOF
5169 rm -f conftest.$ac_objext conftest$ac_exeext
5170 if { (ac_try="$ac_link"
5171 case "(($ac_try" in
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5174 esac
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_link") 2>conftest.er1
5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } && {
5183 test -z "$ac_cxx_werror_flag" ||
5184 test ! -s conftest.err
5185 } && test -s conftest$ac_exeext &&
5186 $as_test_x conftest$ac_exeext; then
5187 ac_cv_lib_posix_remove=yes
5188 else
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5192 ac_cv_lib_posix_remove=no
5195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5196 conftest$ac_exeext conftest.$ac_ext
5197 LIBS=$ac_check_lib_save_LIBS
5199 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5200 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5201 if test $ac_cv_lib_posix_remove = yes; then
5202 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5207 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5208 { echo "$as_me:$LINENO: checking for shmat" >&5
5209 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5210 if test "${ac_cv_func_shmat+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213 cat >conftest.$ac_ext <<_ACEOF
5214 /* confdefs.h. */
5215 _ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5219 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5221 #define shmat innocuous_shmat
5223 /* System header to define __stub macros and hopefully few prototypes,
5224 which can conflict with char shmat (); below.
5225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5226 <limits.h> exists even on freestanding compilers. */
5228 #ifdef __STDC__
5229 # include <limits.h>
5230 #else
5231 # include <assert.h>
5232 #endif
5234 #undef shmat
5236 /* Override any GCC internal prototype to avoid an error.
5237 Use char because int might match the return type of a GCC
5238 builtin and then its argument prototype would still apply. */
5239 #ifdef __cplusplus
5240 extern "C"
5241 #endif
5242 char shmat ();
5243 /* The GNU C library defines this for functions which it implements
5244 to always fail with ENOSYS. Some functions are actually named
5245 something starting with __ and the normal name is an alias. */
5246 #if defined __stub_shmat || defined __stub___shmat
5247 choke me
5248 #endif
5251 main ()
5253 return shmat ();
5255 return 0;
5257 _ACEOF
5258 rm -f conftest.$ac_objext conftest$ac_exeext
5259 if { (ac_try="$ac_link"
5260 case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263 esac
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_link") 2>conftest.er1
5266 ac_status=$?
5267 grep -v '^ *+' conftest.er1 >conftest.err
5268 rm -f conftest.er1
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } && {
5272 test -z "$ac_cxx_werror_flag" ||
5273 test ! -s conftest.err
5274 } && test -s conftest$ac_exeext &&
5275 $as_test_x conftest$ac_exeext; then
5276 ac_cv_func_shmat=yes
5277 else
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5281 ac_cv_func_shmat=no
5284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5285 conftest$ac_exeext conftest.$ac_ext
5287 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5288 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5290 if test $ac_cv_func_shmat = no; then
5291 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5292 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5293 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296 ac_check_lib_save_LIBS=$LIBS
5297 LIBS="-lipc $LIBS"
5298 cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h. */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5305 /* Override any GCC internal prototype to avoid an error.
5306 Use char because int might match the return type of a GCC
5307 builtin and then its argument prototype would still apply. */
5308 #ifdef __cplusplus
5309 extern "C"
5310 #endif
5311 char shmat ();
5313 main ()
5315 return shmat ();
5317 return 0;
5319 _ACEOF
5320 rm -f conftest.$ac_objext conftest$ac_exeext
5321 if { (ac_try="$ac_link"
5322 case "(($ac_try" in
5323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324 *) ac_try_echo=$ac_try;;
5325 esac
5326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5327 (eval "$ac_link") 2>conftest.er1
5328 ac_status=$?
5329 grep -v '^ *+' conftest.er1 >conftest.err
5330 rm -f conftest.er1
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } && {
5334 test -z "$ac_cxx_werror_flag" ||
5335 test ! -s conftest.err
5336 } && test -s conftest$ac_exeext &&
5337 $as_test_x conftest$ac_exeext; then
5338 ac_cv_lib_ipc_shmat=yes
5339 else
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5343 ac_cv_lib_ipc_shmat=no
5346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5347 conftest$ac_exeext conftest.$ac_ext
5348 LIBS=$ac_check_lib_save_LIBS
5350 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5351 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5352 if test $ac_cv_lib_ipc_shmat = yes; then
5353 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5359 # Check for libraries that X11R6 Xt/Xaw programs need.
5360 ac_save_LDFLAGS=$LDFLAGS
5361 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5362 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5363 # check for ICE first), but we must link in the order -lSM -lICE or
5364 # we get undefined symbols. So assume we have SM if we have ICE.
5365 # These have to be linked with before -lX11, unlike the other
5366 # libraries we check for below, so use a different variable.
5367 # John Interrante, Karl Berry
5368 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5369 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5370 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373 ac_check_lib_save_LIBS=$LIBS
5374 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5375 cat >conftest.$ac_ext <<_ACEOF
5376 /* confdefs.h. */
5377 _ACEOF
5378 cat confdefs.h >>conftest.$ac_ext
5379 cat >>conftest.$ac_ext <<_ACEOF
5380 /* end confdefs.h. */
5382 /* Override any GCC internal prototype to avoid an error.
5383 Use char because int might match the return type of a GCC
5384 builtin and then its argument prototype would still apply. */
5385 #ifdef __cplusplus
5386 extern "C"
5387 #endif
5388 char IceConnectionNumber ();
5390 main ()
5392 return IceConnectionNumber ();
5394 return 0;
5396 _ACEOF
5397 rm -f conftest.$ac_objext conftest$ac_exeext
5398 if { (ac_try="$ac_link"
5399 case "(($ac_try" in
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5402 esac
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_link") 2>conftest.er1
5405 ac_status=$?
5406 grep -v '^ *+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } && {
5411 test -z "$ac_cxx_werror_flag" ||
5412 test ! -s conftest.err
5413 } && test -s conftest$ac_exeext &&
5414 $as_test_x conftest$ac_exeext; then
5415 ac_cv_lib_ICE_IceConnectionNumber=yes
5416 else
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5420 ac_cv_lib_ICE_IceConnectionNumber=no
5423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5424 conftest$ac_exeext conftest.$ac_ext
5425 LIBS=$ac_check_lib_save_LIBS
5427 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5428 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5429 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5430 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5433 LDFLAGS=$ac_save_LDFLAGS
5439 for ac_header in pty.h util.h
5441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 ac_res=`eval echo '${'$as_ac_Header'}'`
5449 { echo "$as_me:$LINENO: result: $ac_res" >&5
5450 echo "${ECHO_T}$ac_res" >&6; }
5451 else
5452 # Is the header compilable?
5453 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 $ac_includes_default
5462 #include <$ac_header>
5463 _ACEOF
5464 rm -f conftest.$ac_objext
5465 if { (ac_try="$ac_compile"
5466 case "(($ac_try" in
5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5469 esac
5470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471 (eval "$ac_compile") 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } && {
5478 test -z "$ac_cxx_werror_flag" ||
5479 test ! -s conftest.err
5480 } && test -s conftest.$ac_objext; then
5481 ac_header_compiler=yes
5482 else
5483 echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5486 ac_header_compiler=no
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5491 echo "${ECHO_T}$ac_header_compiler" >&6; }
5493 # Is the header present?
5494 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5496 cat >conftest.$ac_ext <<_ACEOF
5497 /* confdefs.h. */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5502 #include <$ac_header>
5503 _ACEOF
5504 if { (ac_try="$ac_cpp conftest.$ac_ext"
5505 case "(($ac_try" in
5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507 *) ac_try_echo=$ac_try;;
5508 esac
5509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5511 ac_status=$?
5512 grep -v '^ *+' conftest.er1 >conftest.err
5513 rm -f conftest.er1
5514 cat conftest.err >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } >/dev/null && {
5517 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5518 test ! -s conftest.err
5519 }; then
5520 ac_header_preproc=yes
5521 else
5522 echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.$ac_ext >&5
5525 ac_header_preproc=no
5528 rm -f conftest.err conftest.$ac_ext
5529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5530 echo "${ECHO_T}$ac_header_preproc" >&6; }
5532 # So? What about this header?
5533 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5534 yes:no: )
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5538 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5539 ac_header_preproc=yes
5541 no:yes:* )
5542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5545 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5546 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5547 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5548 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5549 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5553 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5556 esac
5557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 eval "$as_ac_Header=\$ac_header_preproc"
5564 ac_res=`eval echo '${'$as_ac_Header'}'`
5565 { echo "$as_me:$LINENO: result: $ac_res" >&5
5566 echo "${ECHO_T}$ac_res" >&6; }
5569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5570 cat >>confdefs.h <<_ACEOF
5571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5572 _ACEOF
5576 done
5579 for ac_func in gettimeofday
5581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587 cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h. */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5595 #define $ac_func innocuous_$ac_func
5597 /* System header to define __stub macros and hopefully few prototypes,
5598 which can conflict with char $ac_func (); below.
5599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5600 <limits.h> exists even on freestanding compilers. */
5602 #ifdef __STDC__
5603 # include <limits.h>
5604 #else
5605 # include <assert.h>
5606 #endif
5608 #undef $ac_func
5610 /* Override any GCC internal prototype to avoid an error.
5611 Use char because int might match the return type of a GCC
5612 builtin and then its argument prototype would still apply. */
5613 #ifdef __cplusplus
5614 extern "C"
5615 #endif
5616 char $ac_func ();
5617 /* The GNU C library defines this for functions which it implements
5618 to always fail with ENOSYS. Some functions are actually named
5619 something starting with __ and the normal name is an alias. */
5620 #if defined __stub_$ac_func || defined __stub___$ac_func
5621 choke me
5622 #endif
5625 main ()
5627 return $ac_func ();
5629 return 0;
5631 _ACEOF
5632 rm -f conftest.$ac_objext conftest$ac_exeext
5633 if { (ac_try="$ac_link"
5634 case "(($ac_try" in
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5637 esac
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_link") 2>conftest.er1
5640 ac_status=$?
5641 grep -v '^ *+' conftest.er1 >conftest.err
5642 rm -f conftest.er1
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } && {
5646 test -z "$ac_cxx_werror_flag" ||
5647 test ! -s conftest.err
5648 } && test -s conftest$ac_exeext &&
5649 $as_test_x conftest$ac_exeext; then
5650 eval "$as_ac_var=yes"
5651 else
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5655 eval "$as_ac_var=no"
5658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5659 conftest$ac_exeext conftest.$ac_ext
5661 ac_res=`eval echo '${'$as_ac_var'}'`
5662 { echo "$as_me:$LINENO: result: $ac_res" >&5
5663 echo "${ECHO_T}$ac_res" >&6; }
5664 if test `eval echo '${'$as_ac_var'}'` = yes; then
5665 cat >>confdefs.h <<_ACEOF
5666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5667 _ACEOF
5670 done
5673 #--------------------------------------------------------------------
5674 # Checks for dl library
5675 #--------------------------------------------------------------------
5677 { echo "$as_me:$LINENO: checking for dlopen" >&5
5678 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
5679 if test "${ac_cv_func_dlopen+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682 cat >conftest.$ac_ext <<_ACEOF
5683 /* confdefs.h. */
5684 _ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5688 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
5689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5690 #define dlopen innocuous_dlopen
5692 /* System header to define __stub macros and hopefully few prototypes,
5693 which can conflict with char dlopen (); below.
5694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5695 <limits.h> exists even on freestanding compilers. */
5697 #ifdef __STDC__
5698 # include <limits.h>
5699 #else
5700 # include <assert.h>
5701 #endif
5703 #undef dlopen
5705 /* Override any GCC internal prototype to avoid an error.
5706 Use char because int might match the return type of a GCC
5707 builtin and then its argument prototype would still apply. */
5708 #ifdef __cplusplus
5709 extern "C"
5710 #endif
5711 char dlopen ();
5712 /* The GNU C library defines this for functions which it implements
5713 to always fail with ENOSYS. Some functions are actually named
5714 something starting with __ and the normal name is an alias. */
5715 #if defined __stub_dlopen || defined __stub___dlopen
5716 choke me
5717 #endif
5720 main ()
5722 return dlopen ();
5724 return 0;
5726 _ACEOF
5727 rm -f conftest.$ac_objext conftest$ac_exeext
5728 if { (ac_try="$ac_link"
5729 case "(($ac_try" in
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5732 esac
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_link") 2>conftest.er1
5735 ac_status=$?
5736 grep -v '^ *+' conftest.er1 >conftest.err
5737 rm -f conftest.er1
5738 cat conftest.err >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } && {
5741 test -z "$ac_cxx_werror_flag" ||
5742 test ! -s conftest.err
5743 } && test -s conftest$ac_exeext &&
5744 $as_test_x conftest$ac_exeext; then
5745 ac_cv_func_dlopen=yes
5746 else
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5750 ac_cv_func_dlopen=no
5753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5754 conftest$ac_exeext conftest.$ac_ext
5756 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
5757 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
5759 if test "$ac_cv_func_dl" = "yes"; then
5761 cat >>confdefs.h <<\_ACEOF
5762 #define DYNAMIC_LINKING 1
5763 _ACEOF
5765 else
5767 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5768 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5769 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772 ac_check_lib_save_LIBS=$LIBS
5773 LIBS="-ldl $LIBS"
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5781 /* Override any GCC internal prototype to avoid an error.
5782 Use char because int might match the return type of a GCC
5783 builtin and then its argument prototype would still apply. */
5784 #ifdef __cplusplus
5785 extern "C"
5786 #endif
5787 char dlopen ();
5789 main ()
5791 return dlopen ();
5793 return 0;
5795 _ACEOF
5796 rm -f conftest.$ac_objext conftest$ac_exeext
5797 if { (ac_try="$ac_link"
5798 case "(($ac_try" in
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5801 esac
5802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803 (eval "$ac_link") 2>conftest.er1
5804 ac_status=$?
5805 grep -v '^ *+' conftest.er1 >conftest.err
5806 rm -f conftest.er1
5807 cat conftest.err >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } && {
5810 test -z "$ac_cxx_werror_flag" ||
5811 test ! -s conftest.err
5812 } && test -s conftest$ac_exeext &&
5813 $as_test_x conftest$ac_exeext; then
5814 ac_cv_lib_dl_dlopen=yes
5815 else
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5819 ac_cv_lib_dl_dlopen=no
5822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5823 conftest$ac_exeext conftest.$ac_ext
5824 LIBS=$ac_check_lib_save_LIBS
5826 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5828 if test $ac_cv_lib_dl_dlopen = yes; then
5829 cat >>confdefs.h <<_ACEOF
5830 #define HAVE_LIBDL 1
5831 _ACEOF
5833 LIBS="-ldl $LIBS"
5837 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5839 for ac_func in dlopen
5841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847 cat >conftest.$ac_ext <<_ACEOF
5848 /* confdefs.h. */
5849 _ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5855 #define $ac_func innocuous_$ac_func
5857 /* System header to define __stub macros and hopefully few prototypes,
5858 which can conflict with char $ac_func (); below.
5859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5860 <limits.h> exists even on freestanding compilers. */
5862 #ifdef __STDC__
5863 # include <limits.h>
5864 #else
5865 # include <assert.h>
5866 #endif
5868 #undef $ac_func
5870 /* Override any GCC internal prototype to avoid an error.
5871 Use char because int might match the return type of a GCC
5872 builtin and then its argument prototype would still apply. */
5873 #ifdef __cplusplus
5874 extern "C"
5875 #endif
5876 char $ac_func ();
5877 /* The GNU C library defines this for functions which it implements
5878 to always fail with ENOSYS. Some functions are actually named
5879 something starting with __ and the normal name is an alias. */
5880 #if defined __stub_$ac_func || defined __stub___$ac_func
5881 choke me
5882 #endif
5885 main ()
5887 return $ac_func ();
5889 return 0;
5891 _ACEOF
5892 rm -f conftest.$ac_objext conftest$ac_exeext
5893 if { (ac_try="$ac_link"
5894 case "(($ac_try" in
5895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5896 *) ac_try_echo=$ac_try;;
5897 esac
5898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5899 (eval "$ac_link") 2>conftest.er1
5900 ac_status=$?
5901 grep -v '^ *+' conftest.er1 >conftest.err
5902 rm -f conftest.er1
5903 cat conftest.err >&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } && {
5906 test -z "$ac_cxx_werror_flag" ||
5907 test ! -s conftest.err
5908 } && test -s conftest$ac_exeext &&
5909 $as_test_x conftest$ac_exeext; then
5910 eval "$as_ac_var=yes"
5911 else
5912 echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.$ac_ext >&5
5915 eval "$as_ac_var=no"
5918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5919 conftest$ac_exeext conftest.$ac_ext
5921 ac_res=`eval echo '${'$as_ac_var'}'`
5922 { echo "$as_me:$LINENO: result: $ac_res" >&5
5923 echo "${ECHO_T}$ac_res" >&6; }
5924 if test `eval echo '${'$as_ac_var'}'` = yes; then
5925 cat >>confdefs.h <<_ACEOF
5926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5927 _ACEOF
5930 done
5932 CONFIG_BDL="-ldl"
5934 cat >>confdefs.h <<\_ACEOF
5935 #define DYNAMIC_LINKING 1
5936 _ACEOF
5938 else
5940 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
5941 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
5942 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945 ac_check_lib_save_LIBS=$LIBS
5946 LIBS="-ldld $LIBS"
5947 cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h. */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5954 /* Override any GCC internal prototype to avoid an error.
5955 Use char because int might match the return type of a GCC
5956 builtin and then its argument prototype would still apply. */
5957 #ifdef __cplusplus
5958 extern "C"
5959 #endif
5960 char dld_link ();
5962 main ()
5964 return dld_link ();
5966 return 0;
5968 _ACEOF
5969 rm -f conftest.$ac_objext conftest$ac_exeext
5970 if { (ac_try="$ac_link"
5971 case "(($ac_try" in
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5974 esac
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_link") 2>conftest.er1
5977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } && {
5983 test -z "$ac_cxx_werror_flag" ||
5984 test ! -s conftest.err
5985 } && test -s conftest$ac_exeext &&
5986 $as_test_x conftest$ac_exeext; then
5987 ac_cv_lib_dld_dld_link=yes
5988 else
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5992 ac_cv_lib_dld_dld_link=no
5995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5996 conftest$ac_exeext conftest.$ac_ext
5997 LIBS=$ac_check_lib_save_LIBS
5999 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6000 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
6001 if test $ac_cv_lib_dld_dld_link = yes; then
6002 cat >>confdefs.h <<_ACEOF
6003 #define HAVE_LIBDLD 1
6004 _ACEOF
6006 LIBS="-ldld $LIBS"
6010 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
6011 CONFIG_BDL="-ldl"
6013 cat >>confdefs.h <<\_ACEOF
6014 #define DYNAMIC_LINKING 1
6015 _ACEOF
6017 else
6019 for ac_func in shl_load
6021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027 cat >conftest.$ac_ext <<_ACEOF
6028 /* confdefs.h. */
6029 _ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6035 #define $ac_func innocuous_$ac_func
6037 /* System header to define __stub macros and hopefully few prototypes,
6038 which can conflict with char $ac_func (); below.
6039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6040 <limits.h> exists even on freestanding compilers. */
6042 #ifdef __STDC__
6043 # include <limits.h>
6044 #else
6045 # include <assert.h>
6046 #endif
6048 #undef $ac_func
6050 /* Override any GCC internal prototype to avoid an error.
6051 Use char because int might match the return type of a GCC
6052 builtin and then its argument prototype would still apply. */
6053 #ifdef __cplusplus
6054 extern "C"
6055 #endif
6056 char $ac_func ();
6057 /* The GNU C library defines this for functions which it implements
6058 to always fail with ENOSYS. Some functions are actually named
6059 something starting with __ and the normal name is an alias. */
6060 #if defined __stub_$ac_func || defined __stub___$ac_func
6061 choke me
6062 #endif
6065 main ()
6067 return $ac_func ();
6069 return 0;
6071 _ACEOF
6072 rm -f conftest.$ac_objext conftest$ac_exeext
6073 if { (ac_try="$ac_link"
6074 case "(($ac_try" in
6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076 *) ac_try_echo=$ac_try;;
6077 esac
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079 (eval "$ac_link") 2>conftest.er1
6080 ac_status=$?
6081 grep -v '^ *+' conftest.er1 >conftest.err
6082 rm -f conftest.er1
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } && {
6086 test -z "$ac_cxx_werror_flag" ||
6087 test ! -s conftest.err
6088 } && test -s conftest$ac_exeext &&
6089 $as_test_x conftest$ac_exeext; then
6090 eval "$as_ac_var=yes"
6091 else
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6095 eval "$as_ac_var=no"
6098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6099 conftest$ac_exeext conftest.$ac_ext
6101 ac_res=`eval echo '${'$as_ac_var'}'`
6102 { echo "$as_me:$LINENO: result: $ac_res" >&5
6103 echo "${ECHO_T}$ac_res" >&6; }
6104 if test `eval echo '${'$as_ac_var'}'` = yes; then
6105 cat >>confdefs.h <<_ACEOF
6106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6107 _ACEOF
6110 done
6112 if test "$ac_cv_func_shl_load" = "yes"; then
6113 CONFIG_BDL="-ldl"
6115 cat >>confdefs.h <<\_ACEOF
6116 #define DYNAMIC_LINKING 1
6117 _ACEOF
6119 else
6121 for ac_func in dlopen
6123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129 cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h. */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6137 #define $ac_func innocuous_$ac_func
6139 /* System header to define __stub macros and hopefully few prototypes,
6140 which can conflict with char $ac_func (); below.
6141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6142 <limits.h> exists even on freestanding compilers. */
6144 #ifdef __STDC__
6145 # include <limits.h>
6146 #else
6147 # include <assert.h>
6148 #endif
6150 #undef $ac_func
6152 /* Override any GCC internal prototype to avoid an error.
6153 Use char because int might match the return type of a GCC
6154 builtin and then its argument prototype would still apply. */
6155 #ifdef __cplusplus
6156 extern "C"
6157 #endif
6158 char $ac_func ();
6159 /* The GNU C library defines this for functions which it implements
6160 to always fail with ENOSYS. Some functions are actually named
6161 something starting with __ and the normal name is an alias. */
6162 #if defined __stub_$ac_func || defined __stub___$ac_func
6163 choke me
6164 #endif
6167 main ()
6169 return $ac_func ();
6171 return 0;
6173 _ACEOF
6174 rm -f conftest.$ac_objext conftest$ac_exeext
6175 if { (ac_try="$ac_link"
6176 case "(($ac_try" in
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6179 esac
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_link") 2>conftest.er1
6182 ac_status=$?
6183 grep -v '^ *+' conftest.er1 >conftest.err
6184 rm -f conftest.er1
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } && {
6188 test -z "$ac_cxx_werror_flag" ||
6189 test ! -s conftest.err
6190 } && test -s conftest$ac_exeext &&
6191 $as_test_x conftest$ac_exeext; then
6192 eval "$as_ac_var=yes"
6193 else
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6197 eval "$as_ac_var=no"
6200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6201 conftest$ac_exeext conftest.$ac_ext
6203 ac_res=`eval echo '${'$as_ac_var'}'`
6204 { echo "$as_me:$LINENO: result: $ac_res" >&5
6205 echo "${ECHO_T}$ac_res" >&6; }
6206 if test `eval echo '${'$as_ac_var'}'` = yes; then
6207 cat >>confdefs.h <<_ACEOF
6208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6209 _ACEOF
6212 done
6214 if test "$ac_cv_func_dlopen" = "yes"; then
6216 cat >>confdefs.h <<\_ACEOF
6217 #define DYNAMIC_LINKING 1
6218 _ACEOF
6227 #--------------------------------------------------------------------
6228 # Checks for iconv library
6229 #--------------------------------------------------------------------
6232 # Check whether --with-iconv was given.
6233 if test "${with_iconv+set}" = set; then
6234 withval=$with_iconv;
6238 # Check for iconv
6239 # Modified from GNOME's libxml2 configure.in
6241 ac_ext=c
6242 ac_cpp='$CPP $CPPFLAGS'
6243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6246 # compile C to avoid the 'const char**' problem
6248 SAVE_CPPFLAGS="$CPPFLAGS"
6249 SAVE_LDFLAGS="$LDFLAGS"
6250 SAVE_LIBS="$LIBS"
6251 if test "$with_iconv" = "no" ; then
6252 { echo "$as_me:$LINENO: result: disabling iconv support" >&5
6253 echo "${ECHO_T}disabling iconv support" >&6; }
6254 else
6255 if test -n "$ICONV_CFLAGS" -a -n "$ICONV_LDFLAGS"; then
6256 CPPFLAGS="$ICONV_CFLAGS" # for AC_TRY_LINK
6257 LDFLAGS="$ICONV_LDFLAGS"
6259 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
6260 CPPFLAGS="-I$with_iconv/include" # for AC_TRY_LINK
6261 LDFLAGS="-L$with_iconv/lib"
6262 ICONV_CFLAGS="-I$with_iconv/include"
6263 ICONV_LDFLAGS="-L$with_iconv/lib"
6266 ac_ext=c
6267 ac_cpp='$CPP $CPPFLAGS'
6268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6271 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6272 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6273 # On Suns, sometimes $CPP names a directory.
6274 if test -n "$CPP" && test -d "$CPP"; then
6275 CPP=
6277 if test -z "$CPP"; then
6278 if test "${ac_cv_prog_CPP+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281 # Double quotes because CPP needs to be expanded
6282 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6284 ac_preproc_ok=false
6285 for ac_c_preproc_warn_flag in '' yes
6287 # Use a header file that comes with gcc, so configuring glibc
6288 # with a fresh cross-compiler works.
6289 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6290 # <limits.h> exists even on freestanding compilers.
6291 # On the NeXT, cc -E runs the code through the compiler's parser,
6292 # not just through cpp. "Syntax error" is here to catch this case.
6293 cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h. */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 #ifdef __STDC__
6300 # include <limits.h>
6301 #else
6302 # include <assert.h>
6303 #endif
6304 Syntax error
6305 _ACEOF
6306 if { (ac_try="$ac_cpp conftest.$ac_ext"
6307 case "(($ac_try" in
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6310 esac
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6313 ac_status=$?
6314 grep -v '^ *+' conftest.er1 >conftest.err
6315 rm -f conftest.er1
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } >/dev/null && {
6319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6320 test ! -s conftest.err
6321 }; then
6323 else
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6327 # Broken: fails on valid input.
6328 continue
6331 rm -f conftest.err conftest.$ac_ext
6333 # OK, works on sane cases. Now check whether nonexistent headers
6334 # can be detected and how.
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h. */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 #include <ac_nonexistent.h>
6342 _ACEOF
6343 if { (ac_try="$ac_cpp conftest.$ac_ext"
6344 case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347 esac
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } >/dev/null && {
6356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6357 test ! -s conftest.err
6358 }; then
6359 # Broken: success on invalid input.
6360 continue
6361 else
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6365 # Passes both tests.
6366 ac_preproc_ok=:
6367 break
6370 rm -f conftest.err conftest.$ac_ext
6372 done
6373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6374 rm -f conftest.err conftest.$ac_ext
6375 if $ac_preproc_ok; then
6376 break
6379 done
6380 ac_cv_prog_CPP=$CPP
6383 CPP=$ac_cv_prog_CPP
6384 else
6385 ac_cv_prog_CPP=$CPP
6387 { echo "$as_me:$LINENO: result: $CPP" >&5
6388 echo "${ECHO_T}$CPP" >&6; }
6389 ac_preproc_ok=false
6390 for ac_c_preproc_warn_flag in '' yes
6392 # Use a header file that comes with gcc, so configuring glibc
6393 # with a fresh cross-compiler works.
6394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6395 # <limits.h> exists even on freestanding compilers.
6396 # On the NeXT, cc -E runs the code through the compiler's parser,
6397 # not just through cpp. "Syntax error" is here to catch this case.
6398 cat >conftest.$ac_ext <<_ACEOF
6399 /* confdefs.h. */
6400 _ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6404 #ifdef __STDC__
6405 # include <limits.h>
6406 #else
6407 # include <assert.h>
6408 #endif
6409 Syntax error
6410 _ACEOF
6411 if { (ac_try="$ac_cpp conftest.$ac_ext"
6412 case "(($ac_try" in
6413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6415 esac
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6418 ac_status=$?
6419 grep -v '^ *+' conftest.er1 >conftest.err
6420 rm -f conftest.er1
6421 cat conftest.err >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } >/dev/null && {
6424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6425 test ! -s conftest.err
6426 }; then
6428 else
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6432 # Broken: fails on valid input.
6433 continue
6436 rm -f conftest.err conftest.$ac_ext
6438 # OK, works on sane cases. Now check whether nonexistent headers
6439 # can be detected and how.
6440 cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h. */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6446 #include <ac_nonexistent.h>
6447 _ACEOF
6448 if { (ac_try="$ac_cpp conftest.$ac_ext"
6449 case "(($ac_try" in
6450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451 *) ac_try_echo=$ac_try;;
6452 esac
6453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6455 ac_status=$?
6456 grep -v '^ *+' conftest.er1 >conftest.err
6457 rm -f conftest.er1
6458 cat conftest.err >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } >/dev/null && {
6461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6462 test ! -s conftest.err
6463 }; then
6464 # Broken: success on invalid input.
6465 continue
6466 else
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6470 # Passes both tests.
6471 ac_preproc_ok=:
6472 break
6475 rm -f conftest.err conftest.$ac_ext
6477 done
6478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6479 rm -f conftest.err conftest.$ac_ext
6480 if $ac_preproc_ok; then
6482 else
6483 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6484 See \`config.log' for more details." >&5
6485 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6486 See \`config.log' for more details." >&2;}
6487 { (exit 1); exit 1; }; }
6490 ac_ext=c
6491 ac_cpp='$CPP $CPPFLAGS'
6492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6497 if test "${ac_cv_header_iconv_h+set}" = set; then
6498 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6499 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6500 if test "${ac_cv_header_iconv_h+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6504 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6505 else
6506 # Is the header compilable?
6507 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
6508 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
6509 cat >conftest.$ac_ext <<_ACEOF
6510 /* confdefs.h. */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6515 $ac_includes_default
6516 #include <iconv.h>
6517 _ACEOF
6518 rm -f conftest.$ac_objext
6519 if { (ac_try="$ac_compile"
6520 case "(($ac_try" in
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6523 esac
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_compile") 2>conftest.er1
6526 ac_status=$?
6527 grep -v '^ *+' conftest.er1 >conftest.err
6528 rm -f conftest.er1
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } && {
6532 test -z "$ac_c_werror_flag" ||
6533 test ! -s conftest.err
6534 } && test -s conftest.$ac_objext; then
6535 ac_header_compiler=yes
6536 else
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6540 ac_header_compiler=no
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6545 echo "${ECHO_T}$ac_header_compiler" >&6; }
6547 # Is the header present?
6548 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
6549 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
6550 cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h. */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 #include <iconv.h>
6557 _ACEOF
6558 if { (ac_try="$ac_cpp conftest.$ac_ext"
6559 case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6562 esac
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6565 ac_status=$?
6566 grep -v '^ *+' conftest.er1 >conftest.err
6567 rm -f conftest.er1
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } >/dev/null && {
6571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6572 test ! -s conftest.err
6573 }; then
6574 ac_header_preproc=yes
6575 else
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6579 ac_header_preproc=no
6582 rm -f conftest.err conftest.$ac_ext
6583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6584 echo "${ECHO_T}$ac_header_preproc" >&6; }
6586 # So? What about this header?
6587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6588 yes:no: )
6589 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
6590 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6591 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
6592 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
6593 ac_header_preproc=yes
6595 no:yes:* )
6596 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
6597 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
6598 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
6599 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
6601 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
6603 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
6605 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
6607 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
6610 esac
6611 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6612 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6613 if test "${ac_cv_header_iconv_h+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616 ac_cv_header_iconv_h=$ac_header_preproc
6618 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6619 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6622 if test $ac_cv_header_iconv_h = yes; then
6623 { echo "$as_me:$LINENO: checking for iconv" >&5
6624 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6626 cat >conftest.$ac_ext <<_ACEOF
6627 /* confdefs.h. */
6628 _ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6633 #include <stdlib.h>
6634 #include <iconv.h>
6637 main ()
6640 iconv_t cd = iconv_open ("","");
6641 iconv (cd, NULL, NULL, NULL, NULL);
6644 return 0;
6646 _ACEOF
6647 rm -f conftest.$ac_objext conftest$ac_exeext
6648 if { (ac_try="$ac_link"
6649 case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6652 esac
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_link") 2>conftest.er1
6655 ac_status=$?
6656 grep -v '^ *+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && {
6661 test -z "$ac_c_werror_flag" ||
6662 test ! -s conftest.err
6663 } && test -s conftest$ac_exeext &&
6664 $as_test_x conftest$ac_exeext; then
6666 { echo "$as_me:$LINENO: result: yes" >&5
6667 echo "${ECHO_T}yes" >&6; }
6669 cat >>confdefs.h <<\_ACEOF
6670 #define USE_ICONV 1
6671 _ACEOF
6674 else
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6679 { echo "$as_me:$LINENO: result: no" >&5
6680 echo "${ECHO_T}no" >&6; }
6681 { echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
6682 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6; }
6683 # LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
6684 LIBS="-liconv" # for AC_TRY_LINK
6685 cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h. */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6692 #include <stdlib.h>
6693 #include <iconv.h>
6696 main ()
6699 iconv_t cd = iconv_open ("","");
6700 iconv (cd, NULL, NULL, NULL, NULL);
6703 return 0;
6705 _ACEOF
6706 rm -f conftest.$ac_objext conftest$ac_exeext
6707 if { (ac_try="$ac_link"
6708 case "(($ac_try" in
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6711 esac
6712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6713 (eval "$ac_link") 2>conftest.er1
6714 ac_status=$?
6715 grep -v '^ *+' conftest.er1 >conftest.err
6716 rm -f conftest.er1
6717 cat conftest.err >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } && {
6720 test -z "$ac_c_werror_flag" ||
6721 test ! -s conftest.err
6722 } && test -s conftest$ac_exeext &&
6723 $as_test_x conftest$ac_exeext; then
6725 { echo "$as_me:$LINENO: result: yes" >&5
6726 echo "${ECHO_T}yes" >&6; }
6728 cat >>confdefs.h <<\_ACEOF
6729 #define USE_ICONV 1
6730 _ACEOF
6732 ICONV_LDFLAGS="${ICONV_LDFLAGS/-liconv} -liconv"
6734 else
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6739 { echo "$as_me:$LINENO: result: no" >&5
6740 echo "${ECHO_T}no" >&6; }
6741 { echo "$as_me:$LINENO: WARNING: absence of iconv may crash HTML import" >&5
6742 echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
6746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6747 conftest$ac_exeext conftest.$ac_ext
6750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6751 conftest$ac_exeext conftest.$ac_ext
6757 CPPFLAGS="$SAVE_CPPFLAGS"
6758 LDFLAGS="$SAVE_LDFLAGS"
6759 LIBS="$SAVE_LIBS"
6760 ac_ext=cpp
6761 ac_cpp='$CXXCPP $CPPFLAGS'
6762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6765 # restore C++ language
6769 #--------------------------------------------------------------------
6770 # Checks for freetype library
6771 #--------------------------------------------------------------------
6774 # Check whether --with-freetype was given.
6775 if test "${with_freetype+set}" = set; then
6776 withval=$with_freetype;
6780 SAVE_CPPFLAGS="$CPPFLAGS"
6781 SAVE_LDFLAGS="$LDFLAGS"
6782 SAVE_LIBS="$LIBS"
6783 if test "$with_freetype" = "no" ; then
6784 { echo "$as_me:$LINENO: result: disabling freetype support" >&5
6785 echo "${ECHO_T}disabling freetype support" >&6; }
6786 else
6787 if test -z "$FREETYPE_CFLAGS"; then
6788 FREETYPE_CFLAGS=`freetype-config --cflags`
6790 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
6791 if test -z "$FREETYPE_LDFLAGS"; then
6792 FREETYPE_LDFLAGS=`freetype-config --libs`
6794 LIBS="$LDFLAGS $FREETYPE_LDFLAGS"
6795 if test "${ac_cv_header_ft2build_h+set}" = set; then
6796 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6797 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6798 if test "${ac_cv_header_ft2build_h+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6802 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6803 else
6804 # Is the header compilable?
6805 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
6806 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
6807 cat >conftest.$ac_ext <<_ACEOF
6808 /* confdefs.h. */
6809 _ACEOF
6810 cat confdefs.h >>conftest.$ac_ext
6811 cat >>conftest.$ac_ext <<_ACEOF
6812 /* end confdefs.h. */
6813 $ac_includes_default
6814 #include <ft2build.h>
6815 _ACEOF
6816 rm -f conftest.$ac_objext
6817 if { (ac_try="$ac_compile"
6818 case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821 esac
6822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6823 (eval "$ac_compile") 2>conftest.er1
6824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } && {
6830 test -z "$ac_cxx_werror_flag" ||
6831 test ! -s conftest.err
6832 } && test -s conftest.$ac_objext; then
6833 ac_header_compiler=yes
6834 else
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6838 ac_header_compiler=no
6841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6843 echo "${ECHO_T}$ac_header_compiler" >&6; }
6845 # Is the header present?
6846 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
6847 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
6848 cat >conftest.$ac_ext <<_ACEOF
6849 /* confdefs.h. */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 #include <ft2build.h>
6855 _ACEOF
6856 if { (ac_try="$ac_cpp conftest.$ac_ext"
6857 case "(($ac_try" in
6858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6859 *) ac_try_echo=$ac_try;;
6860 esac
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } >/dev/null && {
6869 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6870 test ! -s conftest.err
6871 }; then
6872 ac_header_preproc=yes
6873 else
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 ac_header_preproc=no
6880 rm -f conftest.err conftest.$ac_ext
6881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6882 echo "${ECHO_T}$ac_header_preproc" >&6; }
6884 # So? What about this header?
6885 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6886 yes:no: )
6887 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
6888 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6889 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
6890 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
6891 ac_header_preproc=yes
6893 no:yes:* )
6894 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
6895 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
6896 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
6897 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
6898 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
6899 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
6900 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
6901 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
6902 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
6903 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
6904 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
6905 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
6908 esac
6909 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6910 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6911 if test "${ac_cv_header_ft2build_h+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914 ac_cv_header_ft2build_h=$ac_header_preproc
6916 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6917 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6920 if test $ac_cv_header_ft2build_h = yes; then
6921 { echo "$as_me:$LINENO: checking for freetype" >&5
6922 echo $ECHO_N "checking for freetype... $ECHO_C" >&6; }
6923 cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h. */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6930 #include <ft2build.h>
6931 #include FT_FREETYPE_H
6934 main ()
6937 FT_Library ft_library;
6938 (void) FT_Init_FreeType (&ft_library);
6941 return 0;
6943 _ACEOF
6944 rm -f conftest.$ac_objext conftest$ac_exeext
6945 if { (ac_try="$ac_link"
6946 case "(($ac_try" in
6947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6948 *) ac_try_echo=$ac_try;;
6949 esac
6950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6951 (eval "$ac_link") 2>conftest.er1
6952 ac_status=$?
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && {
6958 test -z "$ac_cxx_werror_flag" ||
6959 test ! -s conftest.err
6960 } && test -s conftest$ac_exeext &&
6961 $as_test_x conftest$ac_exeext; then
6963 { echo "$as_me:$LINENO: result: yes" >&5
6964 echo "${ECHO_T}yes" >&6; }
6966 cat >>confdefs.h <<\_ACEOF
6967 #define USE_FREETYPE 1
6968 _ACEOF
6970 FREETYPE_CFLAGS="$CPPFLAGS"
6971 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
6972 FREETYPE_LDFLAGS="$LIBS"
6974 cat >>confdefs.h <<\_ACEOF
6975 #define LINKED_FREETYPE 1
6976 _ACEOF
6980 else
6981 echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6985 { echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6; }
6989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6990 conftest$ac_exeext conftest.$ac_ext
6996 CPPFLAGS="$SAVE_CPPFLAGS"
6997 LDFLAGS="$SAVE_LDFLAGS"
6998 LIBS="$SAVE_LIBS"
7003 #--------------------------------------------------------------------
7004 # Checks for Cairo library
7005 #--------------------------------------------------------------------
7008 # Check whether --with-cairo was given.
7009 if test "${with_cairo+set}" = set; then
7010 withval=$with_cairo;
7014 SAVE_CPPFLAGS="$CPPFLAGS"
7015 SAVE_LDFLAGS="$LDFLAGS"
7016 SAVE_LIBS="$LIBS"
7017 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
7018 { echo "$as_me:$LINENO: result: disabling cairo support" >&5
7019 echo "${ECHO_T}disabling cairo support" >&6; }
7020 else
7021 CPPFLAGS=`pkg-config --cflags cairo`
7022 LIBS=`pkg-config --libs cairo`
7023 if test "${ac_cv_header_cairo_h+set}" = set; then
7024 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7025 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7026 if test "${ac_cv_header_cairo_h+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7030 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7031 else
7032 # Is the header compilable?
7033 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
7034 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
7035 cat >conftest.$ac_ext <<_ACEOF
7036 /* confdefs.h. */
7037 _ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7041 $ac_includes_default
7042 #include <cairo.h>
7043 _ACEOF
7044 rm -f conftest.$ac_objext
7045 if { (ac_try="$ac_compile"
7046 case "(($ac_try" in
7047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7048 *) ac_try_echo=$ac_try;;
7049 esac
7050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7051 (eval "$ac_compile") 2>conftest.er1
7052 ac_status=$?
7053 grep -v '^ *+' conftest.er1 >conftest.err
7054 rm -f conftest.er1
7055 cat conftest.err >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } && {
7058 test -z "$ac_cxx_werror_flag" ||
7059 test ! -s conftest.err
7060 } && test -s conftest.$ac_objext; then
7061 ac_header_compiler=yes
7062 else
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7066 ac_header_compiler=no
7069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7071 echo "${ECHO_T}$ac_header_compiler" >&6; }
7073 # Is the header present?
7074 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
7075 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
7076 cat >conftest.$ac_ext <<_ACEOF
7077 /* confdefs.h. */
7078 _ACEOF
7079 cat confdefs.h >>conftest.$ac_ext
7080 cat >>conftest.$ac_ext <<_ACEOF
7081 /* end confdefs.h. */
7082 #include <cairo.h>
7083 _ACEOF
7084 if { (ac_try="$ac_cpp conftest.$ac_ext"
7085 case "(($ac_try" in
7086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7087 *) ac_try_echo=$ac_try;;
7088 esac
7089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7091 ac_status=$?
7092 grep -v '^ *+' conftest.er1 >conftest.err
7093 rm -f conftest.er1
7094 cat conftest.err >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } >/dev/null && {
7097 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7098 test ! -s conftest.err
7099 }; then
7100 ac_header_preproc=yes
7101 else
7102 echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.$ac_ext >&5
7105 ac_header_preproc=no
7108 rm -f conftest.err conftest.$ac_ext
7109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7110 echo "${ECHO_T}$ac_header_preproc" >&6; }
7112 # So? What about this header?
7113 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7114 yes:no: )
7115 { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
7116 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7117 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
7118 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
7119 ac_header_preproc=yes
7121 no:yes:* )
7122 { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
7123 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
7124 { echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
7125 echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
7126 { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
7127 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
7128 { echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
7129 echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
7130 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
7131 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
7132 { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
7133 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
7136 esac
7137 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7138 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7139 if test "${ac_cv_header_cairo_h+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142 ac_cv_header_cairo_h=$ac_header_preproc
7144 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7145 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7148 if test $ac_cv_header_cairo_h = yes; then
7149 { echo "$as_me:$LINENO: checking for cairo" >&5
7150 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
7151 cat >conftest.$ac_ext <<_ACEOF
7152 /* confdefs.h. */
7153 _ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7158 #include <cairo.h>
7161 main ()
7164 cairo_surface_t *surface;
7165 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
7168 return 0;
7170 _ACEOF
7171 rm -f conftest.$ac_objext conftest$ac_exeext
7172 if { (ac_try="$ac_link"
7173 case "(($ac_try" in
7174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7176 esac
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178 (eval "$ac_link") 2>conftest.er1
7179 ac_status=$?
7180 grep -v '^ *+' conftest.er1 >conftest.err
7181 rm -f conftest.er1
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } && {
7185 test -z "$ac_cxx_werror_flag" ||
7186 test ! -s conftest.err
7187 } && test -s conftest$ac_exeext &&
7188 $as_test_x conftest$ac_exeext; then
7190 { echo "$as_me:$LINENO: result: yes" >&5
7191 echo "${ECHO_T}yes" >&6; }
7193 cat >>confdefs.h <<\_ACEOF
7194 #define USE_CAIRO 1
7195 _ACEOF
7197 CAIRO_CFLAGS="$CPPFLAGS"
7198 if test "$with_cairo" = "linked" ; then
7199 CAIRO_LDFLAGS="$LIBS"
7201 cat >>confdefs.h <<\_ACEOF
7202 #define LINKED_CAIRO 1
7203 _ACEOF
7207 else
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7212 { echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6; }
7216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7217 conftest$ac_exeext conftest.$ac_ext
7223 CPPFLAGS="$SAVE_CPPFLAGS"
7224 LDFLAGS="$SAVE_LDFLAGS"
7225 LIBS="$SAVE_LIBS"
7230 #--------------------------------------------------------------------
7231 # Checks for Imlib2 library
7232 #--------------------------------------------------------------------
7235 # Check whether --with-imlib2 was given.
7236 if test "${with_imlib2+set}" = set; then
7237 withval=$with_imlib2;
7241 SAVE_CPPFLAGS="$CPPFLAGS"
7242 SAVE_LDFLAGS="$LDFLAGS"
7243 SAVE_LIBS="$LIBS"
7244 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
7245 { echo "$as_me:$LINENO: result: disabling imlib2 support" >&5
7246 echo "${ECHO_T}disabling imlib2 support" >&6; }
7247 else
7248 CPPFLAGS=`imlib2-config --cflags`
7249 LIBS=`imlib2-config --libs`
7250 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7251 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7252 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7253 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7257 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7258 else
7259 # Is the header compilable?
7260 { echo "$as_me:$LINENO: checking Imlib2.h usability" >&5
7261 echo $ECHO_N "checking Imlib2.h usability... $ECHO_C" >&6; }
7262 cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h. */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 $ac_includes_default
7269 #include <Imlib2.h>
7270 _ACEOF
7271 rm -f conftest.$ac_objext
7272 if { (ac_try="$ac_compile"
7273 case "(($ac_try" in
7274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7275 *) ac_try_echo=$ac_try;;
7276 esac
7277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7278 (eval "$ac_compile") 2>conftest.er1
7279 ac_status=$?
7280 grep -v '^ *+' conftest.er1 >conftest.err
7281 rm -f conftest.er1
7282 cat conftest.err >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } && {
7285 test -z "$ac_cxx_werror_flag" ||
7286 test ! -s conftest.err
7287 } && test -s conftest.$ac_objext; then
7288 ac_header_compiler=yes
7289 else
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7293 ac_header_compiler=no
7296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7298 echo "${ECHO_T}$ac_header_compiler" >&6; }
7300 # Is the header present?
7301 { echo "$as_me:$LINENO: checking Imlib2.h presence" >&5
7302 echo $ECHO_N "checking Imlib2.h presence... $ECHO_C" >&6; }
7303 cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h. */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 #include <Imlib2.h>
7310 _ACEOF
7311 if { (ac_try="$ac_cpp conftest.$ac_ext"
7312 case "(($ac_try" in
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7315 esac
7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7318 ac_status=$?
7319 grep -v '^ *+' conftest.er1 >conftest.err
7320 rm -f conftest.er1
7321 cat conftest.err >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } >/dev/null && {
7324 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7325 test ! -s conftest.err
7326 }; then
7327 ac_header_preproc=yes
7328 else
7329 echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7332 ac_header_preproc=no
7335 rm -f conftest.err conftest.$ac_ext
7336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7337 echo "${ECHO_T}$ac_header_preproc" >&6; }
7339 # So? What about this header?
7340 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7341 yes:no: )
7342 { echo "$as_me:$LINENO: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&5
7343 echo "$as_me: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7344 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the compiler's result" >&5
7345 echo "$as_me: WARNING: Imlib2.h: proceeding with the compiler's result" >&2;}
7346 ac_header_preproc=yes
7348 no:yes:* )
7349 { echo "$as_me:$LINENO: WARNING: Imlib2.h: present but cannot be compiled" >&5
7350 echo "$as_me: WARNING: Imlib2.h: present but cannot be compiled" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: Imlib2.h: check for missing prerequisite headers?" >&5
7352 echo "$as_me: WARNING: Imlib2.h: check for missing prerequisite headers?" >&2;}
7353 { echo "$as_me:$LINENO: WARNING: Imlib2.h: see the Autoconf documentation" >&5
7354 echo "$as_me: WARNING: Imlib2.h: see the Autoconf documentation" >&2;}
7355 { echo "$as_me:$LINENO: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&5
7356 echo "$as_me: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&2;}
7357 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&5
7358 echo "$as_me: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&2;}
7359 { echo "$as_me:$LINENO: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&5
7360 echo "$as_me: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&2;}
7363 esac
7364 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7365 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7366 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 else
7369 ac_cv_header_Imlib2_h=$ac_header_preproc
7371 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7372 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7375 if test $ac_cv_header_Imlib2_h = yes; then
7376 { echo "$as_me:$LINENO: checking for imlib2" >&5
7377 echo $ECHO_N "checking for imlib2... $ECHO_C" >&6; }
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7385 #include <X11/Xlib.h>
7386 #include <Imlib2.h>
7387 #include <stdio.h>
7388 #include <string.h>
7391 main ()
7394 Imlib_Image image= imlib_load_image("");
7397 return 0;
7399 _ACEOF
7400 rm -f conftest.$ac_objext conftest$ac_exeext
7401 if { (ac_try="$ac_link"
7402 case "(($ac_try" in
7403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7404 *) ac_try_echo=$ac_try;;
7405 esac
7406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7407 (eval "$ac_link") 2>conftest.er1
7408 ac_status=$?
7409 grep -v '^ *+' conftest.er1 >conftest.err
7410 rm -f conftest.er1
7411 cat conftest.err >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } && {
7414 test -z "$ac_cxx_werror_flag" ||
7415 test ! -s conftest.err
7416 } && test -s conftest$ac_exeext &&
7417 $as_test_x conftest$ac_exeext; then
7419 { echo "$as_me:$LINENO: result: yes" >&5
7420 echo "${ECHO_T}yes" >&6; }
7422 cat >>confdefs.h <<\_ACEOF
7423 #define USE_IMLIB2 1
7424 _ACEOF
7426 IMLIB2_CFLAGS="$CPPFLAGS"
7427 if test "$with_imlib2" = "linked" ; then
7428 IMLIB2_LDFLAGS="$LIBS"
7430 cat >>confdefs.h <<\_ACEOF
7431 #define LINKED_IMLIB2 1
7432 _ACEOF
7436 else
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7441 { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7446 conftest$ac_exeext conftest.$ac_ext
7452 CPPFLAGS="$SAVE_CPPFLAGS"
7453 LDFLAGS="$SAVE_LDFLAGS"
7454 LIBS="$SAVE_LIBS"
7459 #--------------------------------------------------------------------
7460 # Checks for Axel library
7461 #--------------------------------------------------------------------
7464 # Check whether --with-axel was given.
7465 if test "${with_axel+set}" = set; then
7466 withval=$with_axel;
7470 SAVE_CPPFLAGS="$CPPFLAGS"
7471 SAVE_LDFLAGS="$LDFLAGS"
7472 SAVE_LIBS="$LIBS"
7473 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
7474 { echo "$as_me:$LINENO: result: disabling axel support" >&5
7475 echo "${ECHO_T}disabling axel support" >&6; }
7476 else
7477 CPPFLAGS=`axel-config --cflags`
7478 LIBS=`axel-config --libs`
7479 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7480 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7481 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7482 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7486 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7487 else
7488 # Is the header compilable?
7489 { echo "$as_me:$LINENO: checking QGui/Viewer.h usability" >&5
7490 echo $ECHO_N "checking QGui/Viewer.h usability... $ECHO_C" >&6; }
7491 cat >conftest.$ac_ext <<_ACEOF
7492 /* confdefs.h. */
7493 _ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7497 $ac_includes_default
7498 #include <QGui/Viewer.h>
7499 _ACEOF
7500 rm -f conftest.$ac_objext
7501 if { (ac_try="$ac_compile"
7502 case "(($ac_try" in
7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7505 esac
7506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507 (eval "$ac_compile") 2>conftest.er1
7508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_cxx_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest.$ac_objext; then
7517 ac_header_compiler=yes
7518 else
7519 echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.$ac_ext >&5
7522 ac_header_compiler=no
7525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7527 echo "${ECHO_T}$ac_header_compiler" >&6; }
7529 # Is the header present?
7530 { echo "$as_me:$LINENO: checking QGui/Viewer.h presence" >&5
7531 echo $ECHO_N "checking QGui/Viewer.h presence... $ECHO_C" >&6; }
7532 cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h. */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538 #include <QGui/Viewer.h>
7539 _ACEOF
7540 if { (ac_try="$ac_cpp conftest.$ac_ext"
7541 case "(($ac_try" in
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7544 esac
7545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7547 ac_status=$?
7548 grep -v '^ *+' conftest.er1 >conftest.err
7549 rm -f conftest.er1
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } >/dev/null && {
7553 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7554 test ! -s conftest.err
7555 }; then
7556 ac_header_preproc=yes
7557 else
7558 echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7561 ac_header_preproc=no
7564 rm -f conftest.err conftest.$ac_ext
7565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7566 echo "${ECHO_T}$ac_header_preproc" >&6; }
7568 # So? What about this header?
7569 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7570 yes:no: )
7571 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&5
7572 echo "$as_me: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7573 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&5
7574 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&2;}
7575 ac_header_preproc=yes
7577 no:yes:* )
7578 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: present but cannot be compiled" >&5
7579 echo "$as_me: WARNING: QGui/Viewer.h: present but cannot be compiled" >&2;}
7580 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&5
7581 echo "$as_me: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&2;}
7582 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&5
7583 echo "$as_me: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&5
7585 echo "$as_me: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&2;}
7586 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&5
7587 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&2;}
7588 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&5
7589 echo "$as_me: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&2;}
7592 esac
7593 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7594 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7595 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 else
7598 ac_cv_header_QGui_Viewer_h=$ac_header_preproc
7600 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7601 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7604 if test $ac_cv_header_QGui_Viewer_h = yes; then
7605 { echo "$as_me:$LINENO: checking for axel" >&5
7606 echo $ECHO_N "checking for axel... $ECHO_C" >&6; }
7607 cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h. */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7614 #include <QGui/Viewer.h>
7617 main ()
7620 Viewer viewer(0);
7623 return 0;
7625 _ACEOF
7626 rm -f conftest.$ac_objext conftest$ac_exeext
7627 if { (ac_try="$ac_link"
7628 case "(($ac_try" in
7629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630 *) ac_try_echo=$ac_try;;
7631 esac
7632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7633 (eval "$ac_link") 2>conftest.er1
7634 ac_status=$?
7635 grep -v '^ *+' conftest.er1 >conftest.err
7636 rm -f conftest.er1
7637 cat conftest.err >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); } && {
7640 test -z "$ac_cxx_werror_flag" ||
7641 test ! -s conftest.err
7642 } && test -s conftest$ac_exeext &&
7643 $as_test_x conftest$ac_exeext; then
7645 { echo "$as_me:$LINENO: result: yes" >&5
7646 echo "${ECHO_T}yes" >&6; }
7648 cat >>confdefs.h <<\_ACEOF
7649 #define USE_AXEL 1
7650 _ACEOF
7652 AXEL_CFLAGS="$CPPFLAGS"
7653 if test "$with_axel" = "linked" ; then
7654 AXEL_LDFLAGS="$LIBS"
7656 cat >>confdefs.h <<\_ACEOF
7657 #define LINKED_AXEL 1
7658 _ACEOF
7662 else
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.$ac_ext >&5
7667 { echo "$as_me:$LINENO: result: no" >&5
7668 echo "${ECHO_T}no" >&6; }
7671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7672 conftest$ac_exeext conftest.$ac_ext
7678 CPPFLAGS="$SAVE_CPPFLAGS"
7679 LDFLAGS="$SAVE_LDFLAGS"
7680 LIBS="$SAVE_LIBS"
7685 #--------------------------------------------------------------------
7686 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
7687 #--------------------------------------------------------------------
7689 { echo "$as_me:$LINENO: checking whether ... arguments behave correctly" >&5
7690 echo $ECHO_N "checking whether ... arguments behave correctly... $ECHO_C" >&6; }
7691 if test -z "$GUILE_CFLAGS"; then
7692 CXXFLAGS="`guile-config compile`"
7693 else
7694 CXXFLAGS="$GUILE_CFLAGS"
7696 cat >conftest.$ac_ext <<_ACEOF
7697 /* confdefs.h. */
7698 _ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7703 #include <guile/gh.h>
7704 #include <libguile.h>
7705 typedef SCM (*FN)(...);
7706 static SCM identity (SCM x) { return x; }
7707 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
7710 main ()
7715 return 0;
7717 _ACEOF
7718 rm -f conftest.$ac_objext
7719 if { (ac_try="$ac_compile"
7720 case "(($ac_try" in
7721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722 *) ac_try_echo=$ac_try;;
7723 esac
7724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7725 (eval "$ac_compile") 2>conftest.er1
7726 ac_status=$?
7727 grep -v '^ *+' conftest.er1 >conftest.err
7728 rm -f conftest.er1
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } && {
7732 test -z "$ac_cxx_werror_flag" ||
7733 test ! -s conftest.err
7734 } && test -s conftest.$ac_objext; then
7737 cat >>confdefs.h <<\_ACEOF
7738 #define DOTS_OK 1
7739 _ACEOF
7741 { echo "$as_me:$LINENO: result: yes" >&5
7742 echo "${ECHO_T}yes" >&6; }
7744 else
7745 echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7749 { echo "$as_me:$LINENO: result: no" >&5
7750 echo "${ECHO_T}no" >&6; }
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755 CXXFLAGS=""
7757 { echo "$as_me:$LINENO: checking the size_t of guile strings" >&5
7758 echo $ECHO_N "checking the size_t of guile strings... $ECHO_C" >&6; }
7759 if test -z "$GUILE_CFLAGS"; then
7760 CXXFLAGS="`guile-config compile`"
7761 else
7762 CXXFLAGS="$GUILE_CFLAGS"
7764 cat >conftest.$ac_ext <<_ACEOF
7765 /* confdefs.h. */
7766 _ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7771 #include <guile/gh.h>
7772 #include <libguile.h>
7773 void print_string (SCM s) {
7774 int len_r;
7775 char* r= gh_scm2newstr (s, &len_r); }
7778 main ()
7783 return 0;
7785 _ACEOF
7786 rm -f conftest.$ac_objext
7787 if { (ac_try="$ac_compile"
7788 case "(($ac_try" in
7789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7790 *) ac_try_echo=$ac_try;;
7791 esac
7792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7793 (eval "$ac_compile") 2>conftest.er1
7794 ac_status=$?
7795 grep -v '^ *+' conftest.er1 >conftest.err
7796 rm -f conftest.er1
7797 cat conftest.err >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); } && {
7800 test -z "$ac_cxx_werror_flag" ||
7801 test ! -s conftest.err
7802 } && test -s conftest.$ac_objext; then
7805 cat >>confdefs.h <<\_ACEOF
7806 #define guile_str_size_t int
7807 _ACEOF
7809 { echo "$as_me:$LINENO: result: int" >&5
7810 echo "${ECHO_T}int" >&6; }
7812 else
7813 echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7818 cat >>confdefs.h <<\_ACEOF
7819 #define guile_str_size_t size_t
7820 _ACEOF
7822 { echo "$as_me:$LINENO: result: size_t" >&5
7823 echo "${ECHO_T}size_t" >&6; }
7827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7828 CXXFLAGS=""
7830 { echo "$as_me:$LINENO: checking if statically linking with guile works" >&5
7831 echo $ECHO_N "checking if statically linking with guile works... $ECHO_C" >&6; }
7832 SAVE_CPPFLAGS="$CPPFLAGS"
7833 SAVE_LDFLAGS="$LDFLAGS"
7834 SAVE_LIBS="$LIBS"
7835 CPPFLAGS="$GUILE_CFLAGS"
7836 LDFLAGS="-static"
7837 LIBS="$GUILE_LDFLAGS"
7838 cat >conftest.$ac_ext <<_ACEOF
7839 /* confdefs.h. */
7840 _ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7845 #include <guile/gh.h>
7846 $CONFIG_DOTS
7849 main ()
7852 struct dummy {
7853 static void my_main (int argc, char** argv) {}
7854 static void install_guile () {
7855 #ifdef DOTS_OK
7856 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7857 #else
7858 gh_enter (0, NULL, my_main);
7859 #endif
7862 dummy::install_guile ();
7865 return 0;
7867 _ACEOF
7868 rm -f conftest.$ac_objext conftest$ac_exeext
7869 if { (ac_try="$ac_link"
7870 case "(($ac_try" in
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7873 esac
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_link") 2>conftest.er1
7876 ac_status=$?
7877 grep -v '^ *+' conftest.er1 >conftest.err
7878 rm -f conftest.er1
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && {
7882 test -z "$ac_cxx_werror_flag" ||
7883 test ! -s conftest.err
7884 } && test -s conftest$ac_exeext &&
7885 $as_test_x conftest$ac_exeext; then
7886 tm_link_guile_static="yes"
7887 else
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 tm_link_guile_static="no"
7894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7895 conftest$ac_exeext conftest.$ac_ext
7897 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static\"" >&5
7898 echo "${ECHO_T}\"$tm_link_guile_static\"" >&6; }
7899 if test "$tm_link_guile_static" = "no" ; then
7900 { echo "$as_me:$LINENO: checking if it works with -lltdl" >&5
7901 echo $ECHO_N "checking if it works with -lltdl... $ECHO_C" >&6; }
7902 LIBS="$GUILE_LDFLAGS -lltdl"
7903 cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h. */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7910 #include <guile/gh.h>
7911 $CONFIG_DOTS
7914 main ()
7917 struct dummy {
7918 static void my_main (int argc, char** argv) {}
7919 static void install_guile () {
7920 #ifdef DOTS_OK
7921 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7922 #else
7923 gh_enter (0, NULL, my_main);
7924 #endif
7927 dummy::install_guile ();
7930 return 0;
7932 _ACEOF
7933 rm -f conftest.$ac_objext conftest$ac_exeext
7934 if { (ac_try="$ac_link"
7935 case "(($ac_try" in
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7938 esac
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_link") 2>conftest.er1
7941 ac_status=$?
7942 grep -v '^ *+' conftest.er1 >conftest.err
7943 rm -f conftest.er1
7944 cat conftest.err >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } && {
7947 test -z "$ac_cxx_werror_flag" ||
7948 test ! -s conftest.err
7949 } && test -s conftest$ac_exeext &&
7950 $as_test_x conftest$ac_exeext; then
7951 tm_link_guile_static_ltdl="yes"
7952 else
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7956 tm_link_guile_static_ltdl="no"
7959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7960 conftest$ac_exeext conftest.$ac_ext
7962 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl\"" >&5
7963 echo "${ECHO_T}\"$tm_link_guile_static_ltdl\"" >&6; }
7964 if test "$tm_link_guile_static_ltdl" = "yes" ; then
7965 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl"
7966 else
7967 { echo "$as_me:$LINENO: checking if it works with -lltdl -ldl" >&5
7968 echo $ECHO_N "checking if it works with -lltdl -ldl... $ECHO_C" >&6; }
7969 LIBS="$GUILE_LDFLAGS -lltdl -ldl"
7970 cat >conftest.$ac_ext <<_ACEOF
7971 /* confdefs.h. */
7972 _ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7977 #include <guile/gh.h>
7978 $CONFIG_DOTS
7981 main ()
7984 struct dummy {
7985 static void my_main (int argc, char** argv) {}
7986 static void install_guile () {
7987 #ifdef DOTS_OK
7988 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7989 #else
7990 gh_enter (0, NULL, my_main);
7991 #endif
7994 dummy::install_guile ();
7997 return 0;
7999 _ACEOF
8000 rm -f conftest.$ac_objext conftest$ac_exeext
8001 if { (ac_try="$ac_link"
8002 case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005 esac
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_link") 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_cxx_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest$ac_exeext &&
8017 $as_test_x conftest$ac_exeext; then
8018 tm_link_guile_static_ltdl_ldl="yes"
8019 else
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8023 tm_link_guile_static_ltdl_ldl="no"
8026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8027 conftest$ac_exeext conftest.$ac_ext
8029 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
8030 echo "${ECHO_T}\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
8031 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
8032 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
8033 else
8034 { echo "$as_me:$LINENO: WARNING: unable to link statically with guile" >&5
8035 echo "$as_me: WARNING: unable to link statically with guile" >&2;}
8039 CPPFLAGS="$SAVE_CPPFLAGS"
8040 LDFLAGS="$SAVE_LDFLAGS"
8041 LIBS="$SAVE_LIBS"
8043 #--------------------------------------------------------------------
8044 # Handle different systems case by case
8045 #--------------------------------------------------------------------
8047 CONFIG_OS="GNU_LINUX"
8048 CONFIG_OS_SUFFIX="gnu-linux"
8049 CONFIG_OS_COMPAT="Unix"
8050 CONFIG_MACOS=""
8051 CONFIG_CXXFLAGS=""
8052 CONFIG_CXXTEMPLATE=""
8053 CONFIG_STD_SETENV="#define STD_SETENV"
8054 CONFIG_SO="so"
8055 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
8056 CONFIG_CHMOD="chmod -f"
8057 CONFIG_CXXOPTIMIZE="-O2"
8058 CONFIG_BSTATIC="-Wl,-Bstatic"
8059 CONFIG_BSHARED="-Wl,-Bdynamic"
8060 CONFIG_BFLAGS=""
8061 CONFIG_BPATH="-Wl,-rpath,"
8062 CONFIG_WORD_LENGTH="4"
8063 CONFIG_WORD_LENGTH_INC="3"
8064 CONFIG_WORD_MASK="0xfffffffc"
8065 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
8067 # tweak for XCode project
8068 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH"
8071 X11_CFLAGS="$X_CFLAGS"
8072 X11_LDFLAGS="$X_LIBS -lXext -lX11"
8074 { echo "$as_me:$LINENO: checking for void *" >&5
8075 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8076 if test "${ac_cv_type_void_p+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079 cat >conftest.$ac_ext <<_ACEOF
8080 /* confdefs.h. */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 $ac_includes_default
8086 typedef void * ac__type_new_;
8088 main ()
8090 if ((ac__type_new_ *) 0)
8091 return 0;
8092 if (sizeof (ac__type_new_))
8093 return 0;
8095 return 0;
8097 _ACEOF
8098 rm -f conftest.$ac_objext
8099 if { (ac_try="$ac_compile"
8100 case "(($ac_try" in
8101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102 *) ac_try_echo=$ac_try;;
8103 esac
8104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105 (eval "$ac_compile") 2>conftest.er1
8106 ac_status=$?
8107 grep -v '^ *+' conftest.er1 >conftest.err
8108 rm -f conftest.er1
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } && {
8112 test -z "$ac_cxx_werror_flag" ||
8113 test ! -s conftest.err
8114 } && test -s conftest.$ac_objext; then
8115 ac_cv_type_void_p=yes
8116 else
8117 echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.$ac_ext >&5
8120 ac_cv_type_void_p=no
8123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8125 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8126 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8128 # The cast to long int works around a bug in the HP C Compiler
8129 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8130 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8131 # This bug is HP SR number 8606223364.
8132 { echo "$as_me:$LINENO: checking size of void *" >&5
8133 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8134 if test "${ac_cv_sizeof_void_p+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 else
8137 if test "$cross_compiling" = yes; then
8138 # Depending upon the size, compute the lo and hi bounds.
8139 cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h. */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8145 $ac_includes_default
8146 typedef void * ac__type_sizeof_;
8148 main ()
8150 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8151 test_array [0] = 0
8154 return 0;
8156 _ACEOF
8157 rm -f conftest.$ac_objext
8158 if { (ac_try="$ac_compile"
8159 case "(($ac_try" in
8160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161 *) ac_try_echo=$ac_try;;
8162 esac
8163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8164 (eval "$ac_compile") 2>conftest.er1
8165 ac_status=$?
8166 grep -v '^ *+' conftest.er1 >conftest.err
8167 rm -f conftest.er1
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } && {
8171 test -z "$ac_cxx_werror_flag" ||
8172 test ! -s conftest.err
8173 } && test -s conftest.$ac_objext; then
8174 ac_lo=0 ac_mid=0
8175 while :; do
8176 cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h. */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 $ac_includes_default
8183 typedef void * ac__type_sizeof_;
8185 main ()
8187 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8188 test_array [0] = 0
8191 return 0;
8193 _ACEOF
8194 rm -f conftest.$ac_objext
8195 if { (ac_try="$ac_compile"
8196 case "(($ac_try" in
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8199 esac
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_compile") 2>conftest.er1
8202 ac_status=$?
8203 grep -v '^ *+' conftest.er1 >conftest.err
8204 rm -f conftest.er1
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } && {
8208 test -z "$ac_cxx_werror_flag" ||
8209 test ! -s conftest.err
8210 } && test -s conftest.$ac_objext; then
8211 ac_hi=$ac_mid; break
8212 else
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8216 ac_lo=`expr $ac_mid + 1`
8217 if test $ac_lo -le $ac_mid; then
8218 ac_lo= ac_hi=
8219 break
8221 ac_mid=`expr 2 '*' $ac_mid + 1`
8224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225 done
8226 else
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8230 cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h. */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 $ac_includes_default
8237 typedef void * ac__type_sizeof_;
8239 main ()
8241 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8242 test_array [0] = 0
8245 return 0;
8247 _ACEOF
8248 rm -f conftest.$ac_objext
8249 if { (ac_try="$ac_compile"
8250 case "(($ac_try" in
8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8253 esac
8254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255 (eval "$ac_compile") 2>conftest.er1
8256 ac_status=$?
8257 grep -v '^ *+' conftest.er1 >conftest.err
8258 rm -f conftest.er1
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } && {
8262 test -z "$ac_cxx_werror_flag" ||
8263 test ! -s conftest.err
8264 } && test -s conftest.$ac_objext; then
8265 ac_hi=-1 ac_mid=-1
8266 while :; do
8267 cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h. */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8273 $ac_includes_default
8274 typedef void * ac__type_sizeof_;
8276 main ()
8278 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8279 test_array [0] = 0
8282 return 0;
8284 _ACEOF
8285 rm -f conftest.$ac_objext
8286 if { (ac_try="$ac_compile"
8287 case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8290 esac
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_compile") 2>conftest.er1
8293 ac_status=$?
8294 grep -v '^ *+' conftest.er1 >conftest.err
8295 rm -f conftest.er1
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } && {
8299 test -z "$ac_cxx_werror_flag" ||
8300 test ! -s conftest.err
8301 } && test -s conftest.$ac_objext; then
8302 ac_lo=$ac_mid; break
8303 else
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8307 ac_hi=`expr '(' $ac_mid ')' - 1`
8308 if test $ac_mid -le $ac_hi; then
8309 ac_lo= ac_hi=
8310 break
8312 ac_mid=`expr 2 '*' $ac_mid`
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316 done
8317 else
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8321 ac_lo= ac_hi=
8324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 # Binary search between lo and hi bounds.
8329 while test "x$ac_lo" != "x$ac_hi"; do
8330 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8331 cat >conftest.$ac_ext <<_ACEOF
8332 /* confdefs.h. */
8333 _ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 $ac_includes_default
8338 typedef void * ac__type_sizeof_;
8340 main ()
8342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8343 test_array [0] = 0
8346 return 0;
8348 _ACEOF
8349 rm -f conftest.$ac_objext
8350 if { (ac_try="$ac_compile"
8351 case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_compile") 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && {
8363 test -z "$ac_cxx_werror_flag" ||
8364 test ! -s conftest.err
8365 } && test -s conftest.$ac_objext; then
8366 ac_hi=$ac_mid
8367 else
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8371 ac_lo=`expr '(' $ac_mid ')' + 1`
8374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8375 done
8376 case $ac_lo in
8377 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8378 '') if test "$ac_cv_type_void_p" = yes; then
8379 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8380 See \`config.log' for more details." >&5
8381 echo "$as_me: error: cannot compute sizeof (void *)
8382 See \`config.log' for more details." >&2;}
8383 { (exit 77); exit 77; }; }
8384 else
8385 ac_cv_sizeof_void_p=0
8386 fi ;;
8387 esac
8388 else
8389 cat >conftest.$ac_ext <<_ACEOF
8390 /* confdefs.h. */
8391 _ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8395 $ac_includes_default
8396 typedef void * ac__type_sizeof_;
8397 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8398 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8399 #include <stdio.h>
8400 #include <stdlib.h>
8402 main ()
8405 FILE *f = fopen ("conftest.val", "w");
8406 if (! f)
8407 return 1;
8408 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8410 long int i = longval ();
8411 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8412 return 1;
8413 fprintf (f, "%ld\n", i);
8415 else
8417 unsigned long int i = ulongval ();
8418 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8419 return 1;
8420 fprintf (f, "%lu\n", i);
8422 return ferror (f) || fclose (f) != 0;
8425 return 0;
8427 _ACEOF
8428 rm -f conftest$ac_exeext
8429 if { (ac_try="$ac_link"
8430 case "(($ac_try" in
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8433 esac
8434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_link") 2>&5
8436 ac_status=$?
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8439 { (case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8442 esac
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_try") 2>&5
8445 ac_status=$?
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; }; then
8448 ac_cv_sizeof_void_p=`cat conftest.val`
8449 else
8450 echo "$as_me: program exited with status $ac_status" >&5
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8454 ( exit $ac_status )
8455 if test "$ac_cv_type_void_p" = yes; then
8456 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8457 See \`config.log' for more details." >&5
8458 echo "$as_me: error: cannot compute sizeof (void *)
8459 See \`config.log' for more details." >&2;}
8460 { (exit 77); exit 77; }; }
8461 else
8462 ac_cv_sizeof_void_p=0
8465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8467 rm -f conftest.val
8469 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8470 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8474 cat >>confdefs.h <<_ACEOF
8475 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8476 _ACEOF
8479 { echo "$as_me:$LINENO: checking if we are on a 64-bits computer" >&5
8480 echo $ECHO_N "checking if we are on a 64-bits computer... $ECHO_C" >&6; }
8481 if test "$ac_cv_sizeof_void_p" = "8"; then
8482 { echo "$as_me:$LINENO: result: yes" >&5
8483 echo "${ECHO_T}yes" >&6; }
8484 CONFIG_WORD_LENGTH="8"
8485 CONFIG_WORD_LENGTH_INC="7"
8486 CONFIG_WORD_MASK="0xfffffffffffffff8"
8487 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8488 else
8489 { echo "$as_me:$LINENO: result: no" >&5
8490 echo "${ECHO_T}no" >&6; }
8493 ac_aux_dir=
8494 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
8495 if test -f "$ac_dir/install-sh"; then
8496 ac_aux_dir=$ac_dir
8497 ac_install_sh="$ac_aux_dir/install-sh -c"
8498 break
8499 elif test -f "$ac_dir/install.sh"; then
8500 ac_aux_dir=$ac_dir
8501 ac_install_sh="$ac_aux_dir/install.sh -c"
8502 break
8503 elif test -f "$ac_dir/shtool"; then
8504 ac_aux_dir=$ac_dir
8505 ac_install_sh="$ac_aux_dir/shtool install -c"
8506 break
8508 done
8509 if test -z "$ac_aux_dir"; then
8510 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
8511 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
8512 { (exit 1); exit 1; }; }
8515 # These three variables are undocumented and unsupported,
8516 # and are intended to be withdrawn in a future Autoconf release.
8517 # They can cause serious problems if a builder's source tree is in a directory
8518 # whose full name contains unusual characters.
8519 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
8520 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
8521 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
8524 # Make sure we can run config.sub.
8525 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8526 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
8527 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
8528 { (exit 1); exit 1; }; }
8530 { echo "$as_me:$LINENO: checking build system type" >&5
8531 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
8532 if test "${ac_cv_build+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535 ac_build_alias=$build_alias
8536 test "x$ac_build_alias" = x &&
8537 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
8538 test "x$ac_build_alias" = x &&
8539 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
8540 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
8541 { (exit 1); exit 1; }; }
8542 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8543 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
8544 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
8545 { (exit 1); exit 1; }; }
8548 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
8549 echo "${ECHO_T}$ac_cv_build" >&6; }
8550 case $ac_cv_build in
8551 *-*-*) ;;
8552 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
8553 echo "$as_me: error: invalid value of canonical build" >&2;}
8554 { (exit 1); exit 1; }; };;
8555 esac
8556 build=$ac_cv_build
8557 ac_save_IFS=$IFS; IFS='-'
8558 set x $ac_cv_build
8559 shift
8560 build_cpu=$1
8561 build_vendor=$2
8562 shift; shift
8563 # Remember, the first character of IFS is used to create $*,
8564 # except with old shells:
8565 build_os=$*
8566 IFS=$ac_save_IFS
8567 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
8570 { echo "$as_me:$LINENO: checking host system type" >&5
8571 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
8572 if test "${ac_cv_host+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575 if test "x$host_alias" = x; then
8576 ac_cv_host=$ac_cv_build
8577 else
8578 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8579 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
8580 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
8581 { (exit 1); exit 1; }; }
8585 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8586 echo "${ECHO_T}$ac_cv_host" >&6; }
8587 case $ac_cv_host in
8588 *-*-*) ;;
8589 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
8590 echo "$as_me: error: invalid value of canonical host" >&2;}
8591 { (exit 1); exit 1; }; };;
8592 esac
8593 host=$ac_cv_host
8594 ac_save_IFS=$IFS; IFS='-'
8595 set x $ac_cv_host
8596 shift
8597 host_cpu=$1
8598 host_vendor=$2
8599 shift; shift
8600 # Remember, the first character of IFS is used to create $*,
8601 # except with old shells:
8602 host_os=$*
8603 IFS=$ac_save_IFS
8604 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8607 case "${host}" in
8608 i*86-*-linux* | x86_64-*-linux*)
8609 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
8610 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/Linux host" >&6; }
8611 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8613 i*86-*-freebsd* | x86_64-*-freebsd*)
8614 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
8615 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/BSD host" >&6; }
8616 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8618 i*86-*-solaris*)
8619 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMS Solaris host" >&5
8620 echo "${ECHO_T}final adjustments for an Intel or AMS Solaris host" >&6; }
8621 CONFIG_CXXOPTIMIZE="-O3"
8622 CONFIG_BPATH="-Wl,-R,"
8623 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8625 *mingw*)
8626 { echo "$as_me:$LINENO: result: final adjustments for mingw host" >&5
8627 echo "${ECHO_T}final adjustments for mingw host" >&6; }
8628 CONFIG_OS_COMPAT="Windows"
8629 LDRT="-lmingw32 -lmingwex"
8631 *-*-cygwin)
8632 { echo "$as_me:$LINENO: result: final adjustments for cygwin host" >&5
8633 echo "${ECHO_T}final adjustments for cygwin host" >&6; }
8634 CONFIG_OS="CYGWIN"
8635 CONFIG_BFLAGS="-Wl,-stack,8388608"
8636 # CXX="export CYGWIN=check_case:strict; $CXX"
8637 # AC_SUBST(CXX)
8639 *apple*darwin*)
8640 echo "$ac_t""final adjustments for a MacOS host" 1>&6
8641 CONFIG_OS="MACOS"
8642 CONFIG_CXXFLAGS="-I${prefix}/include"
8643 CONFIG_BSHARED=""
8644 CONFIG_BFLAGS="-framework Cocoa"
8645 CONFIG_BPATH=""
8646 CONFIG_SO="dylib"
8647 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
8649 *darwin*)
8650 echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
8651 CONFIG_CXXFLAGS="-I${prefix}/include"
8652 CONFIG_BSHARED=""
8653 CONFIG_BPATH=""
8654 CONFIG_SO="dylib"
8655 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
8657 powerpc-*-linux*)
8658 { echo "$as_me:$LINENO: result: final adjustments for a PowerPC/GNU-linux host" >&5
8659 echo "${ECHO_T}final adjustments for a PowerPC/GNU-linux host" >&6; }
8660 CONFIG_OS="POWERPC_GNU_LINUX"
8661 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8663 *sun*)
8664 { echo "$as_me:$LINENO: result: final adjustments for a SUN/solaris host" >&5
8665 echo "${ECHO_T}final adjustments for a SUN/solaris host" >&6; }
8666 CONFIG_OS="SUN"
8667 CONFIG_OS_SUFFIX="sun"
8668 CONFIG_BSTATIC=""
8669 CONFIG_BSHARED=""
8670 CONFIG_BPATH="-Wl,-R,"
8671 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8672 CONFIG_WORD_LENGTH="8"
8673 CONFIG_WORD_LENGTH_INC="7"
8674 CONFIG_WORD_MASK="0xfffffff8"
8675 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8676 CONFIG_STD_SETENV=""
8678 sparc*-*-linux*)
8679 { echo "$as_me:$LINENO: result: final adjustments for a Sparc host running GNU/Linux" >&5
8680 echo "${ECHO_T}final adjustments for a Sparc host running GNU/Linux" >&6; }
8681 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8682 CONFIG_WORD_LENGTH="8"
8683 CONFIG_WORD_LENGTH_INC="7"
8684 CONFIG_WORD_MASK="0xfffffff8"
8685 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8686 CONFIG_STD_SETENV=""
8688 *dec*)
8689 { echo "$as_me:$LINENO: result: final adjustments for a DEC/alpha host" >&5
8690 echo "${ECHO_T}final adjustments for a DEC/alpha host" >&6; }
8691 CONFIG_BSTATIC=""
8692 CONFIG_BSHARED="-shared"
8693 CONFIG_STD_SETENV=""
8695 *alpha*-*-linux*)
8696 { echo "$as_me:$LINENO: result: final adjustments for an Alpha GNU/Linux host" >&5
8697 echo "${ECHO_T}final adjustments for an Alpha GNU/Linux host" >&6; }
8698 CONFIG_BSTATIC=""
8699 CONFIG_BSHARED="-shared"
8701 s390-*-linux*)
8702 { echo "$as_me:$LINENO: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
8703 echo "${ECHO_T}final adjustments for an IBM S/390 GNU/Linux host" >&6; }
8704 CONFIG_STD_SETENV=""
8706 ia64-*-linux*)
8707 { echo "$as_me:$LINENO: result: final adjustments for an Itanium GNU/Linux host" >&5
8708 echo "${ECHO_T}final adjustments for an Itanium GNU/Linux host" >&6; }
8709 CONFIG_BSTATIC=""
8710 CONFIG_BSHARED="-shared"
8712 hppa*-*-linux*)
8713 { echo "$as_me:$LINENO: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
8714 echo "${ECHO_T}final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
8715 CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
8716 CONFIG_BSTATIC=""
8717 CONFIG_BSHARED="-shared"
8719 *sgi-irix*)
8720 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
8721 CONFIG_OS="IRIX"
8722 CONFIG_CXXFLAGS=""
8723 X_LIBS=-L/usr/lib32
8724 CONFIG_BSTATIC=""
8725 CONFIG_BSHARED=""
8726 CONFIG_BPATH=""
8727 X11_LDFLAGS="$X_LIBS -lX11"
8728 CONFIG_WORD_MASK="0xfffffff8"
8729 CONFIG_STD_SETENV=""
8730 CONFIG_CHMOD="chmod"
8731 CONFIG_LIB_PATH="LD_LIBRARYN32_PATH"
8733 m68k-*-linux* | mips-*-linux* | mipsel-*-linux* | arm*-*-linux*)
8734 { echo "$as_me:$LINENO: result: final adjustments for a supported GNU/Linux host" >&5
8735 echo "${ECHO_T}final adjustments for a supported GNU/Linux host" >&6; }
8737 *-linux*)
8738 { echo "$as_me:$LINENO: result: final adjustments for a generic GNU/Linux host" >&5
8739 echo "${ECHO_T}final adjustments for a generic GNU/Linux host" >&6; }
8742 { echo "$as_me:$LINENO: result: final adjustments for a generic host" >&5
8743 echo "${ECHO_T}final adjustments for a generic host" >&6; }
8745 esac
8748 case "${host}" in
8749 *apple*darwin10*)
8750 echo "$ac_t""Xcode 3.2 project tweak (only MacOSX 10.6)" 1>&6
8751 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH_ACTUAL"
8753 esac
8756 #--------------------------------------------------------------------
8757 # Temporary fix for link problem
8758 #--------------------------------------------------------------------
8760 case "$GXX_VERSION" in
8761 3.* | 4.*)
8762 CONFIG_BSTATIC="-static"
8763 CONFIG_BSHARED="-dynamic"
8765 esac
8767 #--------------------------------------------------------------------
8768 # Memory allocation options
8769 #--------------------------------------------------------------------
8771 # Check whether --enable-fastalloc was given.
8772 if test "${enable_fastalloc+set}" = set; then
8773 enableval=$enable_fastalloc;
8774 else
8775 enable_fastalloc="yes"
8778 case "$enable_fastalloc" in
8779 yes)
8782 { echo "$as_me:$LINENO: result: disabling fast allocator for small objects" >&5
8783 echo "${ECHO_T}disabling fast allocator for small objects" >&6; }
8785 cat >>confdefs.h <<\_ACEOF
8786 #define NO_FAST_ALLOC 1
8787 _ACEOF
8791 { { echo "$as_me:$LINENO: error: bad option --enable-fastalloc=$enable_fastalloc" >&5
8792 echo "$as_me: error: bad option --enable-fastalloc=$enable_fastalloc" >&2;}
8793 { (exit 1); exit 1; }; }
8795 esac
8797 #--------------------------------------------------------------------
8798 # Experimental options
8799 #--------------------------------------------------------------------
8801 # Check whether --enable-experimental was given.
8802 if test "${enable_experimental+set}" = set; then
8803 enableval=$enable_experimental;
8804 else
8805 enable_experimental="no"
8808 case "$enable_experimental" in
8809 yes)
8810 { echo "$as_me:$LINENO: result: enabling experimental style rewriting code" >&5
8811 echo "${ECHO_T}enabling experimental style rewriting code" >&6; }
8813 cat >>confdefs.h <<\_ACEOF
8814 #define EXPERIMENTAL 1
8815 _ACEOF
8817 CONFIG_EXPERIMENTAL="Memorizer Environment Evaluate"
8820 { echo "$as_me:$LINENO: result: disabling experimental style rewriting code" >&5
8821 echo "${ECHO_T}disabling experimental style rewriting code" >&6; }
8822 CONFIG_EXPERIMENTAL=""
8825 { { echo "$as_me:$LINENO: error: bad option --enable-experimental=$enable_experimental" >&5
8826 echo "$as_me: error: bad option --enable-experimental=$enable_experimental" >&2;}
8827 { (exit 1); exit 1; }; }
8829 esac
8832 #--------------------------------------------------------------------
8833 # MacOS X extensions (spellchecker, image loading)
8834 #--------------------------------------------------------------------
8836 # Check whether --enable-macosx-extensions was given.
8837 if test "${enable_macosx_extensions+set}" = set; then
8838 enableval=$enable_macosx_extensions;
8839 else
8840 enable_macosx_extensions="no"
8843 case "$enable_macosx_extensions" in
8844 yes)
8845 { echo "$as_me:$LINENO: result: enabling Mac OSX extensions" >&5
8846 echo "${ECHO_T}enabling Mac OSX extensions" >&6; }
8848 cat >>confdefs.h <<\_ACEOF
8849 #define MACOSX_EXTENSIONS 1
8850 _ACEOF
8852 CONFIG_MACOS="MacOS"
8855 { echo "$as_me:$LINENO: result: disabling Mac OSX extensions" >&5
8856 echo "${ECHO_T}disabling Mac OSX extensions" >&6; }
8857 CONFIG_MACOS=""
8860 { { echo "$as_me:$LINENO: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&5
8861 echo "$as_me: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&2;}
8862 { (exit 1); exit 1; }; }
8864 esac
8867 #--------------------------------------------------------------------
8868 # Gui selection
8869 #--------------------------------------------------------------------
8871 CONFIG_X11=""
8872 CONFIG_COCOA=""
8873 CONFIG_GUI="X11"
8875 # Check whether --enable-qt was given.
8876 if test "${enable_qt+set}" = set; then
8877 enableval=$enable_qt;
8878 else
8879 enable_qt="no"
8883 case "$enable_qt" in
8884 yes)
8886 if test -r "/c/Qt"; then
8887 MOC="`which moc`"
8888 qt_bin="`dirname $MOC`"
8889 qt_home="`dirname $qt_bin`"
8890 qt_version="`basename $qt_home`"
8891 qt_parent="`dirname $qt_home`"
8892 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."
8893 QT_CXXFLAGS="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
8894 QT_LDFLAGS="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows"
8895 QT_LIBS="-L'c:/Qt/$qt_version/lib' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
8896 if test "$qt_parent" != "/c/Qt"; then
8897 at_cv_qt_build="ko"
8899 else
8904 test x"$TROLL" != x && echo 'ViM rox emacs.'
8907 # Check whether --with-qt was given.
8908 if test "${with_qt+set}" = set; then
8909 withval=$with_qt; QT_PATH=$withval
8910 else
8911 QT_PATH=
8915 # Find Qt.
8916 if test -d /usr/local/Trolltech; then
8917 # Try to find the latest version.
8918 tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
8919 | xargs | sed 's/ */:/g'`
8922 # Find qmake.
8923 if test -z "$QMAKE"; then
8924 for ac_prog in qmake
8926 # Extract the first word of "$ac_prog", so it can be a program name with args.
8927 set dummy $ac_prog; ac_word=$2
8928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8930 if test "${ac_cv_path_QMAKE+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933 case $QMAKE in
8934 [\\/]* | ?:[\\/]*)
8935 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
8938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8939 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
8940 for as_dir in $as_dummy
8942 IFS=$as_save_IFS
8943 test -z "$as_dir" && as_dir=.
8944 for ac_exec_ext in '' $ac_executable_extensions; do
8945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8946 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
8947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8948 break 2
8950 done
8951 done
8952 IFS=$as_save_IFS
8955 esac
8957 QMAKE=$ac_cv_path_QMAKE
8958 if test -n "$QMAKE"; then
8959 { echo "$as_me:$LINENO: result: $QMAKE" >&5
8960 echo "${ECHO_T}$QMAKE" >&6; }
8961 else
8962 { echo "$as_me:$LINENO: result: no" >&5
8963 echo "${ECHO_T}no" >&6; }
8967 test -n "$QMAKE" && break
8968 done
8969 test -n "$QMAKE" || QMAKE="missing"
8971 else
8972 { echo "$as_me:$LINENO: checking for the QMAKE to use with Qt" >&5
8973 echo $ECHO_N "checking for the QMAKE to use with Qt... $ECHO_C" >&6; }
8974 { echo "$as_me:$LINENO: result: $QMAKE" >&5
8975 echo "${ECHO_T}$QMAKE" >&6; }
8977 if test x"$QMAKE" = xmissing; then
8978 { { echo "$as_me:$LINENO: error: Cannot find qmake in your PATH. Try using --with-qt." >&5
8979 echo "$as_me: error: Cannot find qmake in your PATH. Try using --with-qt." >&2;}
8980 { (exit 1); exit 1; }; }
8983 # Find moc (Meta Object Compiler).
8984 if test -z "$MOC"; then
8985 for ac_prog in moc
8987 # Extract the first word of "$ac_prog", so it can be a program name with args.
8988 set dummy $ac_prog; ac_word=$2
8989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8991 if test "${ac_cv_path_MOC+set}" = set; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994 case $MOC in
8995 [\\/]* | ?:[\\/]*)
8996 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
8999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9000 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9001 for as_dir in $as_dummy
9003 IFS=$as_save_IFS
9004 test -z "$as_dir" && as_dir=.
9005 for ac_exec_ext in '' $ac_executable_extensions; do
9006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9007 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
9008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9009 break 2
9011 done
9012 done
9013 IFS=$as_save_IFS
9016 esac
9018 MOC=$ac_cv_path_MOC
9019 if test -n "$MOC"; then
9020 { echo "$as_me:$LINENO: result: $MOC" >&5
9021 echo "${ECHO_T}$MOC" >&6; }
9022 else
9023 { echo "$as_me:$LINENO: result: no" >&5
9024 echo "${ECHO_T}no" >&6; }
9028 test -n "$MOC" && break
9029 done
9030 test -n "$MOC" || MOC="missing"
9032 else
9033 { echo "$as_me:$LINENO: checking for the MOC to use with Qt" >&5
9034 echo $ECHO_N "checking for the MOC to use with Qt... $ECHO_C" >&6; }
9035 { echo "$as_me:$LINENO: result: $MOC" >&5
9036 echo "${ECHO_T}$MOC" >&6; }
9038 if test x"$MOC" = xmissing; then
9039 { { echo "$as_me:$LINENO: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&5
9040 echo "$as_me: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&2;}
9041 { (exit 1); exit 1; }; }
9044 # Find uic (User Interface Compiler).
9045 if test -z "$UIC"; then
9046 for ac_prog in uic
9048 # Extract the first word of "$ac_prog", so it can be a program name with args.
9049 set dummy $ac_prog; ac_word=$2
9050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9052 if test "${ac_cv_path_UIC+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 else
9055 case $UIC in
9056 [\\/]* | ?:[\\/]*)
9057 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
9060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9061 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9062 for as_dir in $as_dummy
9064 IFS=$as_save_IFS
9065 test -z "$as_dir" && as_dir=.
9066 for ac_exec_ext in '' $ac_executable_extensions; do
9067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9068 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
9069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9070 break 2
9072 done
9073 done
9074 IFS=$as_save_IFS
9077 esac
9079 UIC=$ac_cv_path_UIC
9080 if test -n "$UIC"; then
9081 { echo "$as_me:$LINENO: result: $UIC" >&5
9082 echo "${ECHO_T}$UIC" >&6; }
9083 else
9084 { echo "$as_me:$LINENO: result: no" >&5
9085 echo "${ECHO_T}no" >&6; }
9089 test -n "$UIC" && break
9090 done
9091 test -n "$UIC" || UIC="missing"
9093 else
9094 { echo "$as_me:$LINENO: checking for the UIC to use with Qt" >&5
9095 echo $ECHO_N "checking for the UIC to use with Qt... $ECHO_C" >&6; }
9096 { echo "$as_me:$LINENO: result: $UIC" >&5
9097 echo "${ECHO_T}$UIC" >&6; }
9099 if test x"$UIC" = xmissing; then
9100 { { echo "$as_me:$LINENO: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&5
9101 echo "$as_me: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&2;}
9102 { (exit 1); exit 1; }; }
9105 # Find rcc (Qt Resource Compiler).
9106 for ac_prog in rcc
9108 # Extract the first word of "$ac_prog", so it can be a program name with args.
9109 set dummy $ac_prog; ac_word=$2
9110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9112 if test "${ac_cv_path_RCC+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115 case $RCC in
9116 [\\/]* | ?:[\\/]*)
9117 ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
9120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9122 for as_dir in $as_dummy
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9128 ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
9129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 break 2
9132 done
9133 done
9134 IFS=$as_save_IFS
9137 esac
9139 RCC=$ac_cv_path_RCC
9140 if test -n "$RCC"; then
9141 { echo "$as_me:$LINENO: result: $RCC" >&5
9142 echo "${ECHO_T}$RCC" >&6; }
9143 else
9144 { echo "$as_me:$LINENO: result: no" >&5
9145 echo "${ECHO_T}no" >&6; }
9149 test -n "$RCC" && break
9150 done
9151 test -n "$RCC" || RCC="false"
9153 if test x"$UIC" = xfalse; then
9154 { echo "$as_me:$LINENO: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
9155 echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
9158 # If we don't know the path to Qt, guess it from the path to qmake.
9159 if test x"$QT_PATH" = x; then
9160 QT_PATH=`dirname "$QMAKE"`
9162 if test x"$QT_PATH" = x; then
9163 { { echo "$as_me:$LINENO: error: Cannot find the path to your Qt install. Use --with-qt." >&5
9164 echo "$as_me: error: Cannot find the path to your Qt install. Use --with-qt." >&2;}
9165 { (exit 1); exit 1; }; }
9168 { echo "$as_me:$LINENO: checking for the QT_PATH to use with Qt" >&5
9169 echo $ECHO_N "checking for the QT_PATH to use with Qt... $ECHO_C" >&6; }
9170 { echo "$as_me:$LINENO: result: $QT_PATH" >&5
9171 echo "${ECHO_T}$QT_PATH" >&6; }
9173 # Get ready to build a test-app with Qt.
9175 # Look for a writable temporary directory.
9177 if test x"$TMPDIR" = x || test ! -d "$TMPDIR" || test ! -w "$TMPDIR"; then
9178 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
9180 for i in /tmp /var/tmp; do
9181 if test -d "$i" && test -w "$i"; then
9182 TMPDIR=$i
9183 export TMPDIR
9184 echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
9185 break
9187 done
9190 # Kludge!! QMake has a very strange behavior. For instance, if you
9191 # install Qt under your $HOME and run QMake somewhere else under your
9192 # $HOME, it will try to be clever and produce Makefiles with relative
9193 # include paths. In order to avoid this, we will test QMake from a
9194 # temporary directory (usually /tmp). Note that this problem was only
9195 # observed with Qt 4.
9196 my_configure_pwd=`pwd`
9197 my_tmpdir="$TMPDIR/conftest$$.dir"
9198 test -d "$my_tmpdir" || mkdir "$my_tmpdir"
9199 if test -w "$my_tmpdir" && cd "$my_tmpdir"
9200 then
9202 else
9203 { { echo "$as_me:$LINENO: error: Cannot cd to or write in $my_tmpdir" >&5
9204 echo "$as_me: error: Cannot cd to or write in $my_tmpdir" >&2;}
9205 { (exit 1); exit 1; }; }
9207 cat >conftest.h <<_ASEOF
9208 #include <QObject>
9210 class Foo: public QObject
9212 Q_OBJECT;
9213 public:
9214 Foo();
9215 ~Foo() {}
9216 public slots:
9217 void setValue(int value);
9218 signals:
9219 void valueChanged(int newValue);
9220 private:
9221 int value_;
9223 _ASEOF
9225 cat >conftest.cpp <<_ASEOF
9226 #include "conftest.h"
9227 Foo::Foo()
9228 : value_ (42)
9230 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
9233 void Foo::setValue(int value)
9235 value_ = value;
9238 int main()
9240 Foo f;
9242 _ASEOF
9243 if $QMAKE -project; then :; else
9244 { { echo "$as_me:$LINENO: error: Calling $QMAKE -project failed." >&5
9245 echo "$as_me: error: Calling $QMAKE -project failed." >&2;}
9246 { (exit 1); exit 1; }; }
9249 # Find the .pro file generated by qmake.
9250 pro_file='conftest.dir.pro'
9251 test -f $pro_file || pro_file=`echo *.pro`
9252 if test -f "$pro_file"; then :; else
9253 { { echo "$as_me:$LINENO: error: Can't find the .pro file generated by Qmake." >&5
9254 echo "$as_me: error: Can't find the .pro file generated by Qmake." >&2;}
9255 { (exit 1); exit 1; }; }
9264 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
9265 sed 's/^/| /' "$pro_file" >&5
9267 additional_qmake_flags=""
9268 case $host_os in
9269 darwin*)
9270 additional_qmake_flags="-spec macx-g++"
9272 esac
9274 if $QMAKE ${additional_qmake_flags} ; then :; else
9275 { { echo "$as_me:$LINENO: error: Calling $QMAKE failed." >&5
9276 echo "$as_me: error: Calling $QMAKE failed." >&2;}
9277 { (exit 1); exit 1; }; }
9279 # Try to compile a simple Qt app.
9280 { echo "$as_me:$LINENO: checking whether we can build a simple Qt app" >&5
9281 echo $ECHO_N "checking whether we can build a simple Qt app... $ECHO_C" >&6; }
9282 if test "${at_cv_qt_build+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9284 else
9285 at_cv_qt_build=ko
9286 : ${MAKE=make}
9288 if $MAKE >&5 2>&1; then
9289 at_cv_qt_build='ok, looks like Qt 4'
9290 else
9291 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9292 instead" >&5
9293 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
9294 if $MAKE >&5 2>&1; then
9295 at_cv_qt_build='ok, looks like Qt 3'
9296 else
9297 # Sometimes (such as on Debian) build will fail because Qt hasn't been
9298 # installed in debug mode and qmake tries (by default) to build apps in
9299 # debug mode => Try again in release mode.
9300 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
9303 # Tweak the value of CONFIG in the .pro file for +release.
9305 qt_conf=''
9306 for at_mod in +release; do
9307 at_mod=`echo "$at_mod" | sed 's/^-//; tough
9308 s/^+//; beef
9309 :ough
9310 s/^/CONFIG -= /;n
9311 :eef
9312 s/^/CONFIG += /'`
9313 qt_conf="$qt_conf
9314 $at_mod"
9315 done
9316 echo "$qt_conf" | sed 1d >>"$pro_file"
9319 sed 's/<qobject.h>/<QObject>/' conftest.h > tmp.h && mv tmp.h conftest.h
9320 if $MAKE >&5 2>&1; then
9321 at_cv_qt_build='ok, looks like Qt 4, release mode forced'
9322 else
9323 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9324 instead" >&5
9325 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
9326 if $MAKE >&5 2>&1; then
9327 at_cv_qt_build='ok, looks like Qt 3, release mode forced'
9328 else
9329 at_cv_qt_build=ko
9330 echo "$as_me:$LINENO: failed program was:" >&5
9331 sed 's/^/| /' conftest.h >&5
9332 echo "$as_me:$LINENO: failed program was:" >&5
9333 sed 's/^/| /' conftest.cpp >&5
9334 fi # if make with Qt3-style #include and release mode forced.
9335 fi # if make with Qt4-style #include and release mode forced.
9336 fi # if make with Qt3-style #include.
9337 fi # if make with Qt4-style #include.
9340 { echo "$as_me:$LINENO: result: $at_cv_qt_build" >&5
9341 echo "${ECHO_T}$at_cv_qt_build" >&6; }
9342 if test x"$at_cv_qt_build" = xko; then
9343 { { echo "$as_me:$LINENO: error: Cannot build a test Qt program" >&5
9344 echo "$as_me: error: Cannot build a test Qt program" >&2;}
9345 { (exit 1); exit 1; }; }
9347 QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
9350 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
9351 # It starts by removing the beginning of the line, removing references to
9352 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
9353 # all variable uses by QT_.
9354 qt_sed_filter='s///;
9355 s/$(SUBLIBS)//g;
9356 s/^ *//;
9357 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
9359 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
9360 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
9361 # Makefile.Release. The reason is that the main difference is that release
9362 # uses -Os and debug -g. We can override -Os by passing another -O but we
9363 # usually don't override -g.
9364 if test -f Makefile.Release; then
9365 at_mfile='Makefile.Release'
9366 else
9367 at_mfile='Makefile'
9369 if test -f $at_mfile; then :; else
9370 cd "$my_configure_pwd"
9371 { { echo "$as_me:$LINENO: error: Cannot find the Makefile generated by qmake." >&5
9372 echo "$as_me: error: Cannot find the Makefile generated by qmake." >&2;}
9373 { (exit 1); exit 1; }; }
9376 # Find the DEFINES of Qt (should have been named CPPFLAGS).
9377 if test -z "$QT_DEFINES"; then
9378 { echo "$as_me:$LINENO: checking for the DEFINES to use with Qt" >&5
9379 echo $ECHO_N "checking for the DEFINES to use with Qt... $ECHO_C" >&6; }
9380 if test "${at_cv_env_QT_DEFINES+set}" = set; then
9381 echo $ECHO_N "(cached) $ECHO_C" >&6
9382 else
9383 at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9385 { echo "$as_me:$LINENO: result: $at_cv_env_QT_DEFINES" >&5
9386 echo "${ECHO_T}$at_cv_env_QT_DEFINES" >&6; }
9387 QT_DEFINES="$at_cv_env_QT_DEFINES"
9390 { echo "$as_me:$LINENO: checking for the QT_DEFINES to use with Qt" >&5
9391 echo $ECHO_N "checking for the QT_DEFINES to use with Qt... $ECHO_C" >&6; }
9392 { echo "$as_me:$LINENO: result: $QT_DEFINES" >&5
9393 echo "${ECHO_T}$QT_DEFINES" >&6; }
9395 # Find the CFLAGS of Qt (We can use Qt in C?!)
9396 if test -z "$QT_CFLAGS"; then
9397 { echo "$as_me:$LINENO: checking for the CFLAGS to use with Qt" >&5
9398 echo $ECHO_N "checking for the CFLAGS to use with Qt... $ECHO_C" >&6; }
9399 if test "${at_cv_env_QT_CFLAGS+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 else
9402 at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9404 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CFLAGS" >&5
9405 echo "${ECHO_T}$at_cv_env_QT_CFLAGS" >&6; }
9406 QT_CFLAGS="$at_cv_env_QT_CFLAGS"
9409 { echo "$as_me:$LINENO: checking for the QT_CFLAGS to use with Qt" >&5
9410 echo $ECHO_N "checking for the QT_CFLAGS to use with Qt... $ECHO_C" >&6; }
9411 { echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
9412 echo "${ECHO_T}$QT_CFLAGS" >&6; }
9414 # Find the CXXFLAGS of Qt.
9415 if test -z "$QT_CXXFLAGS"; then
9416 { echo "$as_me:$LINENO: checking for the CXXFLAGS to use with Qt" >&5
9417 echo $ECHO_N "checking for the CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9418 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 else
9421 at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9423 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CXXFLAGS" >&5
9424 echo "${ECHO_T}$at_cv_env_QT_CXXFLAGS" >&6; }
9425 QT_CXXFLAGS="$at_cv_env_QT_CXXFLAGS"
9428 { echo "$as_me:$LINENO: checking for the QT_CXXFLAGS to use with Qt" >&5
9429 echo $ECHO_N "checking for the QT_CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9430 { echo "$as_me:$LINENO: result: $QT_CXXFLAGS" >&5
9431 echo "${ECHO_T}$QT_CXXFLAGS" >&6; }
9433 # Find the INCPATH of Qt.
9434 if test -z "$QT_INCPATH"; then
9435 { echo "$as_me:$LINENO: checking for the INCPATH to use with Qt" >&5
9436 echo $ECHO_N "checking for the INCPATH to use with Qt... $ECHO_C" >&6; }
9437 if test "${at_cv_env_QT_INCPATH+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 else
9440 at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9442 { echo "$as_me:$LINENO: result: $at_cv_env_QT_INCPATH" >&5
9443 echo "${ECHO_T}$at_cv_env_QT_INCPATH" >&6; }
9444 QT_INCPATH="$at_cv_env_QT_INCPATH"
9447 { echo "$as_me:$LINENO: checking for the QT_INCPATH to use with Qt" >&5
9448 echo $ECHO_N "checking for the QT_INCPATH to use with Qt... $ECHO_C" >&6; }
9449 { echo "$as_me:$LINENO: result: $QT_INCPATH" >&5
9450 echo "${ECHO_T}$QT_INCPATH" >&6; }
9452 QT_CPPFLAGS="$QT_DEFINES $QT_INCPATH"
9455 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
9456 if test -z "$QT_LDFLAGS"; then
9457 { echo "$as_me:$LINENO: checking for the LDFLAGS to use with Qt" >&5
9458 echo $ECHO_N "checking for the LDFLAGS to use with Qt... $ECHO_C" >&6; }
9459 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462 at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9464 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LDFLAGS" >&5
9465 echo "${ECHO_T}$at_cv_env_QT_LDFLAGS" >&6; }
9466 QT_LDFLAGS="$at_cv_env_QT_LDFLAGS"
9469 QT_LFLAGS=$QT_LDFLAGS
9471 { echo "$as_me:$LINENO: checking for the QT_LDFLAGS to use with Qt" >&5
9472 echo $ECHO_N "checking for the QT_LDFLAGS to use with Qt... $ECHO_C" >&6; }
9473 { echo "$as_me:$LINENO: result: $QT_LDFLAGS" >&5
9474 echo "${ECHO_T}$QT_LDFLAGS" >&6; }
9476 { echo "$as_me:$LINENO: checking whether host operating system is Darwin" >&5
9477 echo $ECHO_N "checking whether host operating system is Darwin... $ECHO_C" >&6; }
9478 at_darwin="no"
9479 case $host_os in
9480 darwin*)
9481 at_darwin="yes"
9483 esac
9484 { echo "$as_me:$LINENO: result: $at_darwin" >&5
9485 echo "${ECHO_T}$at_darwin" >&6; }
9487 # Find the LIBS of Qt.
9488 if test -z "$QT_LIBS"; then
9489 { echo "$as_me:$LINENO: checking for the LIBS to use with Qt" >&5
9490 echo $ECHO_N "checking for the LIBS to use with Qt... $ECHO_C" >&6; }
9491 if test "${at_cv_env_QT_LIBS+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 else
9494 at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9495 if test x$at_darwin = xyes; then
9496 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
9497 # -F properly. The "bug" has been fixed on 22 October 2006
9498 # by Peter O'Gorman but we provide backward compatibility here.
9499 at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
9500 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
9504 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LIBS" >&5
9505 echo "${ECHO_T}$at_cv_env_QT_LIBS" >&6; }
9506 QT_LIBS="$at_cv_env_QT_LIBS"
9509 { echo "$as_me:$LINENO: checking for the QT_LIBS to use with Qt" >&5
9510 echo $ECHO_N "checking for the QT_LIBS to use with Qt... $ECHO_C" >&6; }
9511 { echo "$as_me:$LINENO: result: $QT_LIBS" >&5
9512 echo "${ECHO_T}$QT_LIBS" >&6; }
9514 cd "$my_configure_pwd" || echo 'WTF!'
9515 rm -rf "$my_tmpdir"
9519 if test x"$at_cv_qt_build" = xko; then
9520 { { echo "$as_me:$LINENO: error: cannot find Qt!" >&5
9521 echo "$as_me: error: cannot find Qt!" >&2;}
9522 { (exit 1); exit 1; }; }
9523 else
9524 { echo "$as_me:$LINENO: result: enabling experimental Qt port" >&5
9525 echo "${ECHO_T}enabling experimental Qt port" >&6; }
9526 CONFIG_GUI="QT"
9530 { echo "$as_me:$LINENO: result: disabling experimental Qt port" >&5
9531 echo "${ECHO_T}disabling experimental Qt port" >&6; }
9534 { { echo "$as_me:$LINENO: error: bad option --enable-qt=$enable_qt" >&5
9535 echo "$as_me: error: bad option --enable-qt=$enable_qt" >&2;}
9536 { (exit 1); exit 1; }; }
9538 esac
9540 # Check whether --enable-cocoa was given.
9541 if test "${enable_cocoa+set}" = set; then
9542 enableval=$enable_cocoa;
9543 else
9544 enable_cocoa="no"
9547 case "$enable_cocoa" in
9548 yes)
9549 { echo "$as_me:$LINENO: result: enabling experimental Cocoa port" >&5
9550 echo "${ECHO_T}enabling experimental Cocoa port" >&6; }
9551 COCOA_CFLAGS=""
9552 COCOA_LDFLAGS="-framework Cocoa"
9553 CONFIG_GUI="COCOA"
9556 { echo "$as_me:$LINENO: result: disabling experimental Cocoa port" >&5
9557 echo "${ECHO_T}disabling experimental Cocoa port" >&6; }
9560 { { echo "$as_me:$LINENO: error: bad option --enable-cocoa=$enable_cocoa" >&5
9561 echo "$as_me: error: bad option --enable-cocoa=$enable_cocoa" >&2;}
9562 { (exit 1); exit 1; }; }
9564 esac
9566 case "$CONFIG_GUI" in
9567 X11)
9568 CONFIG_X11="X11 Widkit Ghostscript"
9569 CONFIG_GUI_DEFINE="X11TEXMACS"
9570 # AC_DEFINE(X11TEXMACS, 1, [Use standard X11 port])
9572 COCOA)
9573 CONFIG_COCOA="Cocoa"
9574 CONFIG_GUI_DEFINE="AQUATEXMACS"
9575 # AC_DEFINE(AQUATEXMACS, 1, [Enable experimental Cocoa port])
9578 CONFIG_QT="Qt"
9579 CONFIG_GUI_DEFINE="QTTEXMACS"
9580 # AC_DEFINE(QTTEXMACS, 1, [Enable experimental Qt port])
9582 esac
9597 #--------------------------------------------------------------------
9598 # Debugging options
9599 #--------------------------------------------------------------------
9601 STD_DEBUG_FLAGS="-fno-rtti -fno-exceptions"
9602 if test "$enable_cocoa" = "yes"; then
9603 STD_DEBUG_FLAGS="-fno-exceptions"
9606 { echo "$as_me:$LINENO: checking if compiler supports $STD_DEBUG_FLAGS" >&5
9607 echo $ECHO_N "checking if compiler supports $STD_DEBUG_FLAGS... $ECHO_C" >&6; }
9608 CXXFLAGS="$STD_DEBUG_FLAGS"
9609 cat >conftest.$ac_ext <<_ACEOF
9610 /* confdefs.h. */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9616 int some_variable = 0;
9619 main ()
9624 return 0;
9626 _ACEOF
9627 rm -f conftest.$ac_objext
9628 if { (ac_try="$ac_compile"
9629 case "(($ac_try" in
9630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9632 esac
9633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9634 (eval "$ac_compile") 2>conftest.er1
9635 ac_status=$?
9636 grep -v '^ *+' conftest.er1 >conftest.err
9637 rm -f conftest.er1
9638 cat conftest.err >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); } && {
9641 test -z "$ac_cxx_werror_flag" ||
9642 test ! -s conftest.err
9643 } && test -s conftest.$ac_objext; then
9645 CONFIG_CXXDIALECT="$STD_DEBUG_FLAGS"
9646 { echo "$as_me:$LINENO: result: yes" >&5
9647 echo "${ECHO_T}yes" >&6; }
9649 else
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9654 CONFIG_CXXDIALECT=""
9655 { echo "$as_me:$LINENO: result: no" >&5
9656 echo "${ECHO_T}no" >&6; }
9660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9661 CXXFLAGS=""
9664 # Check whether --enable-debug was given.
9665 if test "${enable_debug+set}" = set; then
9666 enableval=$enable_debug;
9667 else
9668 enable_debug="no"
9672 if test "$enable_debug" = "yes"; then
9673 if test "$GXX" = "yes"; then
9674 enable_debug="-ggdb"
9675 else
9676 enable_debug="-g3"
9680 if test "$enable_debug" = "no"; then
9681 { echo "$as_me:$LINENO: result: disabling debugging" >&5
9682 echo "${ECHO_T}disabling debugging" >&6; }
9683 CONFIG_STRIP="strip"
9684 CONFIG_CXXDEBUG=""
9685 optimize_default="yes"
9686 else
9687 { echo "$as_me:$LINENO: result: enabling debugging, $enable_debug" >&5
9688 echo "${ECHO_T}enabling debugging, $enable_debug" >&6; }
9689 CONFIG_STRIP="true"
9690 CONFIG_CXXDEBUG="$enable_debug"
9691 optimize_default="no"
9694 # Check whether --enable-assert was given.
9695 if test "${enable_assert+set}" = set; then
9696 enableval=$enable_assert;
9697 else
9698 enable_assert="yes"
9702 if test "$enable_assert" = "no"; then
9703 { echo "$as_me:$LINENO: result: disabling assertion checking" >&5
9704 echo "${ECHO_T}disabling assertion checking" >&6; }
9705 else
9706 { echo "$as_me:$LINENO: result: enabling assertion checking" >&5
9707 echo "${ECHO_T}enabling assertion checking" >&6; }
9709 cat >>confdefs.h <<\_ACEOF
9710 #define DEBUG_ASSERT 1
9711 _ACEOF
9715 #--------------------------------------------------------------------
9716 # Warning options
9717 #--------------------------------------------------------------------
9719 case "$GXX_VERSION" in
9720 none)
9721 CONFIG_CXXWARNING="";
9724 CONFIG_CXXWARNING="-Wall -Wno-return-type"
9726 esac
9728 # Check whether --enable-warnings was given.
9729 if test "${enable_warnings+set}" = set; then
9730 enableval=$enable_warnings;
9731 else
9732 enable_warnings="yes"
9735 case "$enable_warnings" in
9736 yes)
9737 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9738 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9740 CONFIG_CXXWARNING=""
9741 { echo "$as_me:$LINENO: result: disabling warning flags" >&5
9742 echo "${ECHO_T}disabling warning flags" >&6; } ;;
9744 CONFIG_CXXWARNING="$enable_warnings"
9745 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9746 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9747 esac
9749 #--------------------------------------------------------------------
9750 # Optimization options
9751 #--------------------------------------------------------------------
9753 if test "$optimize_default" = "yes"; then
9754 case "$GXX_VERSION" in
9755 3.3.3 | 3.3.4 | 4.*)
9757 2.96 | 3.0 | 3.0.* | 3.1 | 3.1.* | 3.2 | 3.2.* | 3.3 | 3.3.*)
9758 case "${host}" in
9759 i*86-*-linux-gnu* | i*86-*-freebsd*)
9760 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9761 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9762 optimize_default="no-inline"
9765 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9766 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9767 optimize_default="no-inline"
9769 esac
9771 esac
9774 # Check whether --enable-optimize was given.
9775 if test "${enable_optimize+set}" = set; then
9776 enableval=$enable_optimize;
9777 else
9778 enable_optimize="$optimize_default"
9782 case "$enable_optimize" in
9783 yes)
9784 # keep optimization options
9785 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9786 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9787 no-inline)
9788 optimize_no_inline="-fno-default-inline -fno-inline"
9789 CONFIG_CXXOPTIMIZE="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
9790 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9791 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9793 CONFIG_CXXOPTIMIZE=""
9794 { echo "$as_me:$LINENO: result: disabling optimizations" >&5
9795 echo "${ECHO_T}disabling optimizations" >&6; } ;;
9797 CONFIG_CXXOPTIMIZE="$enable_optimize"
9798 { echo "$as_me:$LINENO: result: customizing optimizations, $enable_optimize" >&5
9799 echo "${ECHO_T}customizing optimizations, $enable_optimize" >&6; } ;;
9800 esac
9802 #--------------------------------------------------------------------
9803 # Substitute TeXmacs specific configuration parameters
9804 #--------------------------------------------------------------------
9831 #--------------------------------------------------------------------
9832 # Default paths for installation
9833 #--------------------------------------------------------------------
9835 if test "$prefix" = ""; then
9836 prefix=/usr/local
9838 if test "$prefix" = "NONE"; then
9839 prefix=/usr/local
9841 if test "$exec_prefix" = ""; then
9842 exec_prefix='${prefix}'
9844 if test "$exec_prefix" = "NONE"; then
9845 exec_prefix='${prefix}'
9847 if test "$exec_prefix" = '${prefix}'; then
9848 exec_prefix='${prefix}'
9850 if test "$includedir" = ""; then
9851 includedir='${prefix}/include'
9853 if test "$includedir" = "NONE"; then
9854 includedir='${prefix}/include'
9856 if test "$includedir" = '${prefix}/include'; then
9857 includedir='${prefix}/include'
9859 if test "$libdir" = ""; then
9860 libdir='${exec_prefix}/lib'
9862 if test "$libdir" = "NONE"; then
9863 libdir='${exec_prefix}/lib'
9865 if test "$libdir" = '${exec_prefix}/lib'; then
9866 libdir='${exec_prefix}/lib'
9868 if test "$bindir" = ""; then
9869 bindir='${exec_prefix}/bin'
9871 if test "$bindir" = "NONE"; then
9872 bindir=${exec_prefix}/bin
9874 if test "$bindir" = '${exec_prefix}/bin'; then
9875 bindir='${exec_prefix}/bin'
9877 if test "$datarootdir" = ""; then
9878 datarootdir='${prefix}/share'
9880 if test "$datarootdir" = "NONE"; then
9881 datarootdir='${prefix}/share'
9883 if test "$datarootdir" = '${prefix}/share'; then
9884 datarootdir='${prefix}/share'
9886 if test "$datadir" = ""; then
9887 datadir='${prefix}/share'
9889 if test "$datadir" = "NONE"; then
9890 datadir='${prefix}/share'
9892 if test "$datadir" = '${prefix}/share'; then
9893 datadir='${prefix}/share'
9895 if test "$mandir" = ""; then
9896 mandir='${datarootdir}/man'
9898 if test "$mandir" = "NONE"; then
9899 mandir='${datarootdir}/man'
9901 if test "$mandir" = '${datarootdir}/man'; then
9902 mandir='${datarootdir}/man'
9904 if test "$libexecdir" = ""; then
9905 libexecdir='${exec_prefix}/libexec'
9907 if test "$libexecdir" = "NONE"; then
9908 libexecdir='${exec_prefix}/libexec'
9910 if test "$libexecdir" = '${exec_prefix}/libexec'; then
9911 libexecdir='${exec_prefix}/libexec'
9914 curdir="`pwd`"
9915 tmorig=${curdir}
9916 tmdir=${PACKAGE}
9917 tmsrc=${curdir}/${tmdir}
9918 tmbin=${libexecdir}/${tmdir}
9919 tmdata=${datadir}/${tmdir}
9926 if test "$DEVEL_RELEASE" = "1"; then
9927 tmtgz=${PACKAGE}-${DEVEL_VERSION}
9928 else
9929 tmtgz=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
9931 tmrpm=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
9932 if test "$STABLE_RELEASE" = "1"; then
9933 tmstgz=${PACKAGE}-${STABLE_VERSION}
9934 else
9935 tmstgz=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
9937 tmsrpm=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
9938 if test "$WINDOWS_RELEASE" = "1"; then
9939 tmwin=wintexmacs-${WINDOWS_VERSION}
9940 else
9941 tmwin=wintexmacs-${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
9949 #--------------------------------------------------------------------
9950 # Done
9951 #--------------------------------------------------------------------
9953 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"
9955 cat >confcache <<\_ACEOF
9956 # This file is a shell script that caches the results of configure
9957 # tests run on this system so they can be shared between configure
9958 # scripts and configure runs, see configure's option --config-cache.
9959 # It is not useful on other systems. If it contains results you don't
9960 # want to keep, you may remove or edit it.
9962 # config.status only pays attention to the cache file if you give it
9963 # the --recheck option to rerun configure.
9965 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9966 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9967 # following values.
9969 _ACEOF
9971 # The following way of writing the cache mishandles newlines in values,
9972 # but we know of no workaround that is simple, portable, and efficient.
9973 # So, we kill variables containing newlines.
9974 # Ultrix sh set writes to stderr and can't be redirected directly,
9975 # and sets the high bit in the cache file unless we assign to the vars.
9977 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9978 eval ac_val=\$$ac_var
9979 case $ac_val in #(
9980 *${as_nl}*)
9981 case $ac_var in #(
9982 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9983 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9984 esac
9985 case $ac_var in #(
9986 _ | IFS | as_nl) ;; #(
9987 *) $as_unset $ac_var ;;
9988 esac ;;
9989 esac
9990 done
9992 (set) 2>&1 |
9993 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9994 *${as_nl}ac_space=\ *)
9995 # `set' does not quote correctly, so add quotes (double-quote
9996 # substitution turns \\\\ into \\, and sed turns \\ into \).
9997 sed -n \
9998 "s/'/'\\\\''/g;
9999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10000 ;; #(
10002 # `set' quotes correctly as required by POSIX, so do not add quotes.
10003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10005 esac |
10006 sort
10008 sed '
10009 /^ac_cv_env_/b end
10010 t clear
10011 :clear
10012 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10013 t end
10014 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10015 :end' >>confcache
10016 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10017 if test -w "$cache_file"; then
10018 test "x$cache_file" != "x/dev/null" &&
10019 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10020 echo "$as_me: updating cache $cache_file" >&6;}
10021 cat confcache >$cache_file
10022 else
10023 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10024 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10027 rm -f confcache
10029 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10030 # Let make expand exec_prefix.
10031 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10033 DEFS=-DHAVE_CONFIG_H
10035 ac_libobjs=
10036 ac_ltlibobjs=
10037 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10038 # 1. Remove the extension, and $U if already installed.
10039 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10040 ac_i=`echo "$ac_i" | sed "$ac_script"`
10041 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10042 # will be set to the directory where LIBOBJS objects are built.
10043 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10044 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10045 done
10046 LIBOBJS=$ac_libobjs
10048 LTLIBOBJS=$ac_ltlibobjs
10052 : ${CONFIG_STATUS=./config.status}
10053 ac_clean_files_save=$ac_clean_files
10054 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10055 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10056 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10057 cat >$CONFIG_STATUS <<_ACEOF
10058 #! $SHELL
10059 # Generated by $as_me.
10060 # Run this file to recreate the current configuration.
10061 # Compiler output produced by configure, useful for debugging
10062 # configure, is in config.log if it exists.
10064 debug=false
10065 ac_cs_recheck=false
10066 ac_cs_silent=false
10067 SHELL=\${CONFIG_SHELL-$SHELL}
10068 _ACEOF
10070 cat >>$CONFIG_STATUS <<\_ACEOF
10071 ## --------------------- ##
10072 ## M4sh Initialization. ##
10073 ## --------------------- ##
10075 # Be more Bourne compatible
10076 DUALCASE=1; export DUALCASE # for MKS sh
10077 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10078 emulate sh
10079 NULLCMD=:
10080 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10081 # is contrary to our usage. Disable this feature.
10082 alias -g '${1+"$@"}'='"$@"'
10083 setopt NO_GLOB_SUBST
10084 else
10085 case `(set -o) 2>/dev/null` in
10086 *posix*) set -o posix ;;
10087 esac
10094 # PATH needs CR
10095 # Avoid depending upon Character Ranges.
10096 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10097 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10098 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10099 as_cr_digits='0123456789'
10100 as_cr_alnum=$as_cr_Letters$as_cr_digits
10102 # The user is always right.
10103 if test "${PATH_SEPARATOR+set}" != set; then
10104 echo "#! /bin/sh" >conf$$.sh
10105 echo "exit 0" >>conf$$.sh
10106 chmod +x conf$$.sh
10107 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10108 PATH_SEPARATOR=';'
10109 else
10110 PATH_SEPARATOR=:
10112 rm -f conf$$.sh
10115 # Support unset when possible.
10116 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10117 as_unset=unset
10118 else
10119 as_unset=false
10123 # IFS
10124 # We need space, tab and new line, in precisely that order. Quoting is
10125 # there to prevent editors from complaining about space-tab.
10126 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10127 # splitting by setting IFS to empty value.)
10128 as_nl='
10130 IFS=" "" $as_nl"
10132 # Find who we are. Look in the path if we contain no directory separator.
10133 case $0 in
10134 *[\\/]* ) as_myself=$0 ;;
10135 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136 for as_dir in $PATH
10138 IFS=$as_save_IFS
10139 test -z "$as_dir" && as_dir=.
10140 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10141 done
10142 IFS=$as_save_IFS
10145 esac
10146 # We did not find ourselves, most probably we were run as `sh COMMAND'
10147 # in which case we are not to be found in the path.
10148 if test "x$as_myself" = x; then
10149 as_myself=$0
10151 if test ! -f "$as_myself"; then
10152 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10153 { (exit 1); exit 1; }
10156 # Work around bugs in pre-3.0 UWIN ksh.
10157 for as_var in ENV MAIL MAILPATH
10158 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10159 done
10160 PS1='$ '
10161 PS2='> '
10162 PS4='+ '
10164 # NLS nuisances.
10165 for as_var in \
10166 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10167 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10168 LC_TELEPHONE LC_TIME
10170 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10171 eval $as_var=C; export $as_var
10172 else
10173 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10175 done
10177 # Required to use basename.
10178 if expr a : '\(a\)' >/dev/null 2>&1 &&
10179 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10180 as_expr=expr
10181 else
10182 as_expr=false
10185 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10186 as_basename=basename
10187 else
10188 as_basename=false
10192 # Name of the executable.
10193 as_me=`$as_basename -- "$0" ||
10194 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10195 X"$0" : 'X\(//\)$' \| \
10196 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10197 echo X/"$0" |
10198 sed '/^.*\/\([^/][^/]*\)\/*$/{
10199 s//\1/
10202 /^X\/\(\/\/\)$/{
10203 s//\1/
10206 /^X\/\(\/\).*/{
10207 s//\1/
10210 s/.*/./; q'`
10212 # CDPATH.
10213 $as_unset CDPATH
10217 as_lineno_1=$LINENO
10218 as_lineno_2=$LINENO
10219 test "x$as_lineno_1" != "x$as_lineno_2" &&
10220 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10222 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10223 # uniformly replaced by the line number. The first 'sed' inserts a
10224 # line-number line after each line using $LINENO; the second 'sed'
10225 # does the real work. The second script uses 'N' to pair each
10226 # line-number line with the line containing $LINENO, and appends
10227 # trailing '-' during substitution so that $LINENO is not a special
10228 # case at line end.
10229 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10230 # scripts with optimization help from Paolo Bonzini. Blame Lee
10231 # E. McMahon (1931-1989) for sed's syntax. :-)
10232 sed -n '
10234 /[$]LINENO/=
10235 ' <$as_myself |
10236 sed '
10237 s/[$]LINENO.*/&-/
10238 t lineno
10240 :lineno
10242 :loop
10243 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10244 t loop
10245 s/-\n.*//
10246 ' >$as_me.lineno &&
10247 chmod +x "$as_me.lineno" ||
10248 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10249 { (exit 1); exit 1; }; }
10251 # Don't try to exec as it changes $[0], causing all sort of problems
10252 # (the dirname of $[0] is not the place where we might find the
10253 # original and so on. Autoconf is especially sensitive to this).
10254 . "./$as_me.lineno"
10255 # Exit status is that of the last command.
10256 exit
10260 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10261 as_dirname=dirname
10262 else
10263 as_dirname=false
10266 ECHO_C= ECHO_N= ECHO_T=
10267 case `echo -n x` in
10268 -n*)
10269 case `echo 'x\c'` in
10270 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10271 *) ECHO_C='\c';;
10272 esac;;
10274 ECHO_N='-n';;
10275 esac
10277 if expr a : '\(a\)' >/dev/null 2>&1 &&
10278 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10279 as_expr=expr
10280 else
10281 as_expr=false
10284 rm -f conf$$ conf$$.exe conf$$.file
10285 if test -d conf$$.dir; then
10286 rm -f conf$$.dir/conf$$.file
10287 else
10288 rm -f conf$$.dir
10289 mkdir conf$$.dir
10291 echo >conf$$.file
10292 if ln -s conf$$.file conf$$ 2>/dev/null; then
10293 as_ln_s='ln -s'
10294 # ... but there are two gotchas:
10295 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10296 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10297 # In both cases, we have to default to `cp -p'.
10298 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10299 as_ln_s='cp -p'
10300 elif ln conf$$.file conf$$ 2>/dev/null; then
10301 as_ln_s=ln
10302 else
10303 as_ln_s='cp -p'
10305 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10306 rmdir conf$$.dir 2>/dev/null
10308 if mkdir -p . 2>/dev/null; then
10309 as_mkdir_p=:
10310 else
10311 test -d ./-p && rmdir ./-p
10312 as_mkdir_p=false
10315 if test -x / >/dev/null 2>&1; then
10316 as_test_x='test -x'
10317 else
10318 if ls -dL / >/dev/null 2>&1; then
10319 as_ls_L_option=L
10320 else
10321 as_ls_L_option=
10323 as_test_x='
10324 eval sh -c '\''
10325 if test -d "$1"; then
10326 test -d "$1/.";
10327 else
10328 case $1 in
10329 -*)set "./$1";;
10330 esac;
10331 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10332 ???[sx]*):;;*)false;;esac;fi
10333 '\'' sh
10336 as_executable_p=$as_test_x
10338 # Sed expression to map a string onto a valid CPP name.
10339 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10341 # Sed expression to map a string onto a valid variable name.
10342 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10345 exec 6>&1
10347 # Save the log message, to keep $[0] and so on meaningful, and to
10348 # report actual input values of CONFIG_FILES etc. instead of their
10349 # values after options handling.
10350 ac_log="
10351 This file was extended by $as_me, which was
10352 generated by GNU Autoconf 2.61. Invocation command line was
10354 CONFIG_FILES = $CONFIG_FILES
10355 CONFIG_HEADERS = $CONFIG_HEADERS
10356 CONFIG_LINKS = $CONFIG_LINKS
10357 CONFIG_COMMANDS = $CONFIG_COMMANDS
10358 $ $0 $@
10360 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10363 _ACEOF
10365 cat >>$CONFIG_STATUS <<_ACEOF
10366 # Files that config.status was made for.
10367 config_files="$ac_config_files"
10368 config_headers="$ac_config_headers"
10370 _ACEOF
10372 cat >>$CONFIG_STATUS <<\_ACEOF
10373 ac_cs_usage="\
10374 \`$as_me' instantiates files from templates according to the
10375 current configuration.
10377 Usage: $0 [OPTIONS] [FILE]...
10379 -h, --help print this help, then exit
10380 -V, --version print version number and configuration settings, then exit
10381 -q, --quiet do not print progress messages
10382 -d, --debug don't remove temporary files
10383 --recheck update $as_me by reconfiguring in the same conditions
10384 --file=FILE[:TEMPLATE]
10385 instantiate the configuration file FILE
10386 --header=FILE[:TEMPLATE]
10387 instantiate the configuration header FILE
10389 Configuration files:
10390 $config_files
10392 Configuration headers:
10393 $config_headers
10395 Report bugs to <bug-autoconf@gnu.org>."
10397 _ACEOF
10398 cat >>$CONFIG_STATUS <<_ACEOF
10399 ac_cs_version="\\
10400 config.status
10401 configured by $0, generated by GNU Autoconf 2.61,
10402 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10404 Copyright (C) 2006 Free Software Foundation, Inc.
10405 This config.status script is free software; the Free Software Foundation
10406 gives unlimited permission to copy, distribute and modify it."
10408 ac_pwd='$ac_pwd'
10409 srcdir='$srcdir'
10410 _ACEOF
10412 cat >>$CONFIG_STATUS <<\_ACEOF
10413 # If no file are specified by the user, then we need to provide default
10414 # value. By we need to know if files were specified by the user.
10415 ac_need_defaults=:
10416 while test $# != 0
10418 case $1 in
10419 --*=*)
10420 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10421 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10422 ac_shift=:
10425 ac_option=$1
10426 ac_optarg=$2
10427 ac_shift=shift
10429 esac
10431 case $ac_option in
10432 # Handling of the options.
10433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10434 ac_cs_recheck=: ;;
10435 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10436 echo "$ac_cs_version"; exit ;;
10437 --debug | --debu | --deb | --de | --d | -d )
10438 debug=: ;;
10439 --file | --fil | --fi | --f )
10440 $ac_shift
10441 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10442 ac_need_defaults=false;;
10443 --header | --heade | --head | --hea )
10444 $ac_shift
10445 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10446 ac_need_defaults=false;;
10447 --he | --h)
10448 # Conflict between --help and --header
10449 { echo "$as_me: error: ambiguous option: $1
10450 Try \`$0 --help' for more information." >&2
10451 { (exit 1); exit 1; }; };;
10452 --help | --hel | -h )
10453 echo "$ac_cs_usage"; exit ;;
10454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10455 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10456 ac_cs_silent=: ;;
10458 # This is an error.
10459 -*) { echo "$as_me: error: unrecognized option: $1
10460 Try \`$0 --help' for more information." >&2
10461 { (exit 1); exit 1; }; } ;;
10463 *) ac_config_targets="$ac_config_targets $1"
10464 ac_need_defaults=false ;;
10466 esac
10467 shift
10468 done
10470 ac_configure_extra_args=
10472 if $ac_cs_silent; then
10473 exec 6>/dev/null
10474 ac_configure_extra_args="$ac_configure_extra_args --silent"
10477 _ACEOF
10478 cat >>$CONFIG_STATUS <<_ACEOF
10479 if \$ac_cs_recheck; then
10480 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10481 CONFIG_SHELL=$SHELL
10482 export CONFIG_SHELL
10483 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10486 _ACEOF
10487 cat >>$CONFIG_STATUS <<\_ACEOF
10488 exec 5>>config.log
10490 echo
10491 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10492 ## Running $as_me. ##
10493 _ASBOX
10494 echo "$ac_log"
10495 } >&5
10497 _ACEOF
10498 cat >>$CONFIG_STATUS <<_ACEOF
10499 _ACEOF
10501 cat >>$CONFIG_STATUS <<\_ACEOF
10503 # Handling of arguments.
10504 for ac_config_target in $ac_config_targets
10506 case $ac_config_target in
10507 "src/System/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
10508 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in" ;;
10509 "src/makefile") CONFIG_FILES="$CONFIG_FILES src/makefile:src/makefile.in" ;;
10510 "src/System/tm_configure.hpp") CONFIG_FILES="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
10511 "misc/admin/admin.makefile") CONFIG_FILES="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
10512 "misc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
10513 "misc/man/texmacs.1") CONFIG_FILES="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
10514 "misc/rpm/TeXmacs.spec") CONFIG_FILES="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
10515 "misc/scripts/fig2ps") CONFIG_FILES="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
10516 "misc/scripts/texmacs") CONFIG_FILES="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
10517 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
10518 "misc/bundle/Base.xcconfig") CONFIG_FILES="$CONFIG_FILES misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in" ;;
10520 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10521 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10522 { (exit 1); exit 1; }; };;
10523 esac
10524 done
10527 # If the user did not use the arguments to specify the items to instantiate,
10528 # then the envvar interface is used. Set only those that are not.
10529 # We use the long form for the default assignment because of an extremely
10530 # bizarre bug on SunOS 4.1.3.
10531 if $ac_need_defaults; then
10532 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10533 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10536 # Have a temporary directory for convenience. Make it in the build tree
10537 # simply because there is no reason against having it here, and in addition,
10538 # creating and moving files from /tmp can sometimes cause problems.
10539 # Hook for its removal unless debugging.
10540 # Note that there is a small window in which the directory will not be cleaned:
10541 # after its creation but before its name has been assigned to `$tmp'.
10542 $debug ||
10544 tmp=
10545 trap 'exit_status=$?
10546 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10548 trap '{ (exit 1); exit 1; }' 1 2 13 15
10550 # Create a (secure) tmp directory for tmp files.
10553 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10554 test -n "$tmp" && test -d "$tmp"
10555 } ||
10557 tmp=./conf$$-$RANDOM
10558 (umask 077 && mkdir "$tmp")
10559 } ||
10561 echo "$me: cannot create a temporary directory in ." >&2
10562 { (exit 1); exit 1; }
10566 # Set up the sed scripts for CONFIG_FILES section.
10569 # No need to generate the scripts if there are no CONFIG_FILES.
10570 # This happens for instance when ./config.status config.h
10571 if test -n "$CONFIG_FILES"; then
10573 _ACEOF
10577 ac_delim='%!_!# '
10578 for ac_last_try in false false false false false :; do
10579 cat >conf$$subs.sed <<_ACEOF
10580 SHELL!$SHELL$ac_delim
10581 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10582 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10583 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10584 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10585 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10586 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10587 exec_prefix!$exec_prefix$ac_delim
10588 prefix!$prefix$ac_delim
10589 program_transform_name!$program_transform_name$ac_delim
10590 bindir!$bindir$ac_delim
10591 sbindir!$sbindir$ac_delim
10592 libexecdir!$libexecdir$ac_delim
10593 datarootdir!$datarootdir$ac_delim
10594 datadir!$datadir$ac_delim
10595 sysconfdir!$sysconfdir$ac_delim
10596 sharedstatedir!$sharedstatedir$ac_delim
10597 localstatedir!$localstatedir$ac_delim
10598 includedir!$includedir$ac_delim
10599 oldincludedir!$oldincludedir$ac_delim
10600 docdir!$docdir$ac_delim
10601 infodir!$infodir$ac_delim
10602 htmldir!$htmldir$ac_delim
10603 dvidir!$dvidir$ac_delim
10604 pdfdir!$pdfdir$ac_delim
10605 psdir!$psdir$ac_delim
10606 libdir!$libdir$ac_delim
10607 localedir!$localedir$ac_delim
10608 mandir!$mandir$ac_delim
10609 DEFS!$DEFS$ac_delim
10610 ECHO_C!$ECHO_C$ac_delim
10611 ECHO_N!$ECHO_N$ac_delim
10612 ECHO_T!$ECHO_T$ac_delim
10613 LIBS!$LIBS$ac_delim
10614 build_alias!$build_alias$ac_delim
10615 host_alias!$host_alias$ac_delim
10616 target_alias!$target_alias$ac_delim
10617 PACKAGE!$PACKAGE$ac_delim
10618 DEVEL_VERSION!$DEVEL_VERSION$ac_delim
10619 DEVEL_RELEASE!$DEVEL_RELEASE$ac_delim
10620 STABLE_VERSION!$STABLE_VERSION$ac_delim
10621 STABLE_RELEASE!$STABLE_RELEASE$ac_delim
10622 CC!$CC$ac_delim
10623 CFLAGS!$CFLAGS$ac_delim
10624 LDFLAGS!$LDFLAGS$ac_delim
10625 CPPFLAGS!$CPPFLAGS$ac_delim
10626 ac_ct_CC!$ac_ct_CC$ac_delim
10627 EXEEXT!$EXEEXT$ac_delim
10628 OBJEXT!$OBJEXT$ac_delim
10629 CXX!$CXX$ac_delim
10630 CXXFLAGS!$CXXFLAGS$ac_delim
10631 ac_ct_CXX!$ac_ct_CXX$ac_delim
10632 GUILE_CFLAGS!$GUILE_CFLAGS$ac_delim
10633 GUILE_LDFLAGS!$GUILE_LDFLAGS$ac_delim
10634 CONFIG_GUILE_SERIAL!$CONFIG_GUILE_SERIAL$ac_delim
10635 CXXCPP!$CXXCPP$ac_delim
10636 GREP!$GREP$ac_delim
10637 EGREP!$EGREP$ac_delim
10638 XMKMF!$XMKMF$ac_delim
10639 X_CFLAGS!$X_CFLAGS$ac_delim
10640 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
10641 X_LIBS!$X_LIBS$ac_delim
10642 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
10643 CONFIG_BDL!$CONFIG_BDL$ac_delim
10644 CPP!$CPP$ac_delim
10645 ICONV_CFLAGS!$ICONV_CFLAGS$ac_delim
10646 ICONV_LDFLAGS!$ICONV_LDFLAGS$ac_delim
10647 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
10648 FREETYPE_LDFLAGS!$FREETYPE_LDFLAGS$ac_delim
10649 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
10650 CAIRO_LDFLAGS!$CAIRO_LDFLAGS$ac_delim
10651 IMLIB2_CFLAGS!$IMLIB2_CFLAGS$ac_delim
10652 IMLIB2_LDFLAGS!$IMLIB2_LDFLAGS$ac_delim
10653 AXEL_CFLAGS!$AXEL_CFLAGS$ac_delim
10654 AXEL_LDFLAGS!$AXEL_LDFLAGS$ac_delim
10655 build!$build$ac_delim
10656 build_cpu!$build_cpu$ac_delim
10657 build_vendor!$build_vendor$ac_delim
10658 build_os!$build_os$ac_delim
10659 host!$host$ac_delim
10660 host_cpu!$host_cpu$ac_delim
10661 host_vendor!$host_vendor$ac_delim
10662 host_os!$host_os$ac_delim
10663 CONFIG_EXPERIMENTAL!$CONFIG_EXPERIMENTAL$ac_delim
10664 CONFIG_MACOS!$CONFIG_MACOS$ac_delim
10665 QMAKE!$QMAKE$ac_delim
10666 MOC!$MOC$ac_delim
10667 UIC!$UIC$ac_delim
10668 RCC!$RCC$ac_delim
10669 QT_PATH!$QT_PATH$ac_delim
10670 TMPDIR!$TMPDIR$ac_delim
10671 QT_VERSION_MAJOR!$QT_VERSION_MAJOR$ac_delim
10672 QT_DEFINES!$QT_DEFINES$ac_delim
10673 QT_CFLAGS!$QT_CFLAGS$ac_delim
10674 QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
10675 QT_INCPATH!$QT_INCPATH$ac_delim
10676 QT_CPPFLAGS!$QT_CPPFLAGS$ac_delim
10677 _ACEOF
10679 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10680 break
10681 elif $ac_last_try; then
10682 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10683 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10684 { (exit 1); exit 1; }; }
10685 else
10686 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10688 done
10690 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10691 if test -n "$ac_eof"; then
10692 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10693 ac_eof=`expr $ac_eof + 1`
10696 cat >>$CONFIG_STATUS <<_ACEOF
10697 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10698 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10699 _ACEOF
10700 sed '
10701 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10702 s/^/s,@/; s/!/@,|#_!!_#|/
10705 s/'"$ac_delim"'$/,g/; t
10706 s/$/\\/; p
10707 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10708 ' >>$CONFIG_STATUS <conf$$subs.sed
10709 rm -f conf$$subs.sed
10710 cat >>$CONFIG_STATUS <<_ACEOF
10711 CEOF$ac_eof
10712 _ACEOF
10715 ac_delim='%!_!# '
10716 for ac_last_try in false false false false false :; do
10717 cat >conf$$subs.sed <<_ACEOF
10718 QT_LDFLAGS!$QT_LDFLAGS$ac_delim
10719 QT_LFLAGS!$QT_LFLAGS$ac_delim
10720 QT_LIBS!$QT_LIBS$ac_delim
10721 X11_CFLAGS!$X11_CFLAGS$ac_delim
10722 X11_LDFLAGS!$X11_LDFLAGS$ac_delim
10723 COCOA_CFLAGS!$COCOA_CFLAGS$ac_delim
10724 COCOA_LDFLAGS!$COCOA_LDFLAGS$ac_delim
10725 CONFIG_X11!$CONFIG_X11$ac_delim
10726 CONFIG_COCOA!$CONFIG_COCOA$ac_delim
10727 CONFIG_QT!$CONFIG_QT$ac_delim
10728 CONFIG_GUI!$CONFIG_GUI$ac_delim
10729 CONFIG_GUI_DEFINE!$CONFIG_GUI_DEFINE$ac_delim
10730 CONFIG_CXXDIALECT!$CONFIG_CXXDIALECT$ac_delim
10731 CONFIG_OS!$CONFIG_OS$ac_delim
10732 CONFIG_OS_SUFFIX!$CONFIG_OS_SUFFIX$ac_delim
10733 CONFIG_OS_COMPAT!$CONFIG_OS_COMPAT$ac_delim
10734 CONFIG_CXXWARNING!$CONFIG_CXXWARNING$ac_delim
10735 CONFIG_CXXTEMPLATE!$CONFIG_CXXTEMPLATE$ac_delim
10736 CONFIG_CXXOPTIMIZE!$CONFIG_CXXOPTIMIZE$ac_delim
10737 CONFIG_CXXDEBUG!$CONFIG_CXXDEBUG$ac_delim
10738 CONFIG_BFLAGS!$CONFIG_BFLAGS$ac_delim
10739 CONFIG_BSTATIC!$CONFIG_BSTATIC$ac_delim
10740 CONFIG_BSHARED!$CONFIG_BSHARED$ac_delim
10741 CONFIG_BPATH!$CONFIG_BPATH$ac_delim
10742 CONFIG_WORD_LENGTH!$CONFIG_WORD_LENGTH$ac_delim
10743 CONFIG_WORD_LENGTH_INC!$CONFIG_WORD_LENGTH_INC$ac_delim
10744 CONFIG_WORD_MASK!$CONFIG_WORD_MASK$ac_delim
10745 CONFIG_MAX_FAST!$CONFIG_MAX_FAST$ac_delim
10746 CONFIG_CXXFLAGS!$CONFIG_CXXFLAGS$ac_delim
10747 CONFIG_STD_SETENV!$CONFIG_STD_SETENV$ac_delim
10748 CONFIG_SO!$CONFIG_SO$ac_delim
10749 CONFIG_LIB_PATH!$CONFIG_LIB_PATH$ac_delim
10750 CONFIG_STRIP!$CONFIG_STRIP$ac_delim
10751 CONFIG_CHMOD!$CONFIG_CHMOD$ac_delim
10752 LDRT!$LDRT$ac_delim
10753 CONFIG_NATIVE_ARCH_TAG!$CONFIG_NATIVE_ARCH_TAG$ac_delim
10754 tmorig!$tmorig$ac_delim
10755 tmdir!$tmdir$ac_delim
10756 tmsrc!$tmsrc$ac_delim
10757 tmbin!$tmbin$ac_delim
10758 tmdata!$tmdata$ac_delim
10759 tmtgz!$tmtgz$ac_delim
10760 tmrpm!$tmrpm$ac_delim
10761 tmstgz!$tmstgz$ac_delim
10762 tmsrpm!$tmsrpm$ac_delim
10763 tmwin!$tmwin$ac_delim
10764 LIBOBJS!$LIBOBJS$ac_delim
10765 LTLIBOBJS!$LTLIBOBJS$ac_delim
10766 _ACEOF
10768 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
10769 break
10770 elif $ac_last_try; then
10771 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10772 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10773 { (exit 1); exit 1; }; }
10774 else
10775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10777 done
10779 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10780 if test -n "$ac_eof"; then
10781 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10782 ac_eof=`expr $ac_eof + 1`
10785 cat >>$CONFIG_STATUS <<_ACEOF
10786 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10788 _ACEOF
10789 sed '
10790 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10791 s/^/s,@/; s/!/@,|#_!!_#|/
10794 s/'"$ac_delim"'$/,g/; t
10795 s/$/\\/; p
10796 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10797 ' >>$CONFIG_STATUS <conf$$subs.sed
10798 rm -f conf$$subs.sed
10799 cat >>$CONFIG_STATUS <<_ACEOF
10800 :end
10801 s/|#_!!_#|//g
10802 CEOF$ac_eof
10803 _ACEOF
10806 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10807 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10808 # trailing colons and then remove the whole line if VPATH becomes empty
10809 # (actually we leave an empty line to preserve line numbers).
10810 if test "x$srcdir" = x.; then
10811 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10812 s/:*\$(srcdir):*/:/
10813 s/:*\${srcdir}:*/:/
10814 s/:*@srcdir@:*/:/
10815 s/^\([^=]*=[ ]*\):*/\1/
10816 s/:*$//
10817 s/^[^=]*=[ ]*$//
10821 cat >>$CONFIG_STATUS <<\_ACEOF
10822 fi # test -n "$CONFIG_FILES"
10825 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
10827 case $ac_tag in
10828 :[FHLC]) ac_mode=$ac_tag; continue;;
10829 esac
10830 case $ac_mode$ac_tag in
10831 :[FHL]*:*);;
10832 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10833 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10834 { (exit 1); exit 1; }; };;
10835 :[FH]-) ac_tag=-:-;;
10836 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10837 esac
10838 ac_save_IFS=$IFS
10839 IFS=:
10840 set x $ac_tag
10841 IFS=$ac_save_IFS
10842 shift
10843 ac_file=$1
10844 shift
10846 case $ac_mode in
10847 :L) ac_source=$1;;
10848 :[FH])
10849 ac_file_inputs=
10850 for ac_f
10852 case $ac_f in
10853 -) ac_f="$tmp/stdin";;
10854 *) # Look for the file first in the build tree, then in the source tree
10855 # (if the path is not absolute). The absolute path cannot be DOS-style,
10856 # because $ac_f cannot contain `:'.
10857 test -f "$ac_f" ||
10858 case $ac_f in
10859 [\\/$]*) false;;
10860 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10861 esac ||
10862 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10863 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10864 { (exit 1); exit 1; }; };;
10865 esac
10866 ac_file_inputs="$ac_file_inputs $ac_f"
10867 done
10869 # Let's still pretend it is `configure' which instantiates (i.e., don't
10870 # use $as_me), people would be surprised to read:
10871 # /* config.h. Generated by config.status. */
10872 configure_input="Generated from "`IFS=:
10873 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10874 if test x"$ac_file" != x-; then
10875 configure_input="$ac_file. $configure_input"
10876 { echo "$as_me:$LINENO: creating $ac_file" >&5
10877 echo "$as_me: creating $ac_file" >&6;}
10880 case $ac_tag in
10881 *:-:* | *:-) cat >"$tmp/stdin";;
10882 esac
10884 esac
10886 ac_dir=`$as_dirname -- "$ac_file" ||
10887 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10888 X"$ac_file" : 'X\(//\)[^/]' \| \
10889 X"$ac_file" : 'X\(//\)$' \| \
10890 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10891 echo X"$ac_file" |
10892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10893 s//\1/
10896 /^X\(\/\/\)[^/].*/{
10897 s//\1/
10900 /^X\(\/\/\)$/{
10901 s//\1/
10904 /^X\(\/\).*/{
10905 s//\1/
10908 s/.*/./; q'`
10909 { as_dir="$ac_dir"
10910 case $as_dir in #(
10911 -*) as_dir=./$as_dir;;
10912 esac
10913 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10914 as_dirs=
10915 while :; do
10916 case $as_dir in #(
10917 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10918 *) as_qdir=$as_dir;;
10919 esac
10920 as_dirs="'$as_qdir' $as_dirs"
10921 as_dir=`$as_dirname -- "$as_dir" ||
10922 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10923 X"$as_dir" : 'X\(//\)[^/]' \| \
10924 X"$as_dir" : 'X\(//\)$' \| \
10925 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10926 echo X"$as_dir" |
10927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10928 s//\1/
10931 /^X\(\/\/\)[^/].*/{
10932 s//\1/
10935 /^X\(\/\/\)$/{
10936 s//\1/
10939 /^X\(\/\).*/{
10940 s//\1/
10943 s/.*/./; q'`
10944 test -d "$as_dir" && break
10945 done
10946 test -z "$as_dirs" || eval "mkdir $as_dirs"
10947 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10948 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10949 { (exit 1); exit 1; }; }; }
10950 ac_builddir=.
10952 case "$ac_dir" in
10953 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10955 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10956 # A ".." for each directory in $ac_dir_suffix.
10957 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10958 case $ac_top_builddir_sub in
10959 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10960 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10961 esac ;;
10962 esac
10963 ac_abs_top_builddir=$ac_pwd
10964 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10965 # for backward compatibility:
10966 ac_top_builddir=$ac_top_build_prefix
10968 case $srcdir in
10969 .) # We are building in place.
10970 ac_srcdir=.
10971 ac_top_srcdir=$ac_top_builddir_sub
10972 ac_abs_top_srcdir=$ac_pwd ;;
10973 [\\/]* | ?:[\\/]* ) # Absolute name.
10974 ac_srcdir=$srcdir$ac_dir_suffix;
10975 ac_top_srcdir=$srcdir
10976 ac_abs_top_srcdir=$srcdir ;;
10977 *) # Relative name.
10978 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10979 ac_top_srcdir=$ac_top_build_prefix$srcdir
10980 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10981 esac
10982 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10985 case $ac_mode in
10988 # CONFIG_FILE
10991 _ACEOF
10993 cat >>$CONFIG_STATUS <<\_ACEOF
10994 # If the template does not know about datarootdir, expand it.
10995 # FIXME: This hack should be removed a few years after 2.60.
10996 ac_datarootdir_hack=; ac_datarootdir_seen=
10998 case `sed -n '/datarootdir/ {
11002 /@datadir@/p
11003 /@docdir@/p
11004 /@infodir@/p
11005 /@localedir@/p
11006 /@mandir@/p
11007 ' $ac_file_inputs` in
11008 *datarootdir*) ac_datarootdir_seen=yes;;
11009 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11010 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11011 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11012 _ACEOF
11013 cat >>$CONFIG_STATUS <<_ACEOF
11014 ac_datarootdir_hack='
11015 s&@datadir@&$datadir&g
11016 s&@docdir@&$docdir&g
11017 s&@infodir@&$infodir&g
11018 s&@localedir@&$localedir&g
11019 s&@mandir@&$mandir&g
11020 s&\\\${datarootdir}&$datarootdir&g' ;;
11021 esac
11022 _ACEOF
11024 # Neutralize VPATH when `$srcdir' = `.'.
11025 # Shell code in configure.ac might set extrasub.
11026 # FIXME: do we really want to maintain this feature?
11027 cat >>$CONFIG_STATUS <<_ACEOF
11028 sed "$ac_vpsub
11029 $extrasub
11030 _ACEOF
11031 cat >>$CONFIG_STATUS <<\_ACEOF
11033 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11034 s&@configure_input@&$configure_input&;t t
11035 s&@top_builddir@&$ac_top_builddir_sub&;t t
11036 s&@srcdir@&$ac_srcdir&;t t
11037 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11038 s&@top_srcdir@&$ac_top_srcdir&;t t
11039 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11040 s&@builddir@&$ac_builddir&;t t
11041 s&@abs_builddir@&$ac_abs_builddir&;t t
11042 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11043 $ac_datarootdir_hack
11044 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11046 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11047 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11048 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11049 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11050 which seems to be undefined. Please make sure it is defined." >&5
11051 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11052 which seems to be undefined. Please make sure it is defined." >&2;}
11054 rm -f "$tmp/stdin"
11055 case $ac_file in
11056 -) cat "$tmp/out"; rm -f "$tmp/out";;
11057 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11058 esac
11062 # CONFIG_HEADER
11064 _ACEOF
11066 # Transform confdefs.h into a sed script `conftest.defines', that
11067 # substitutes the proper values into config.h.in to produce config.h.
11068 rm -f conftest.defines conftest.tail
11069 # First, append a space to every undef/define line, to ease matching.
11070 echo 's/$/ /' >conftest.defines
11071 # Then, protect against being on the right side of a sed subst, or in
11072 # an unquoted here document, in config.status. If some macros were
11073 # called several times there might be several #defines for the same
11074 # symbol, which is useless. But do not sort them, since the last
11075 # AC_DEFINE must be honored.
11076 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11077 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11078 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11079 # PARAMS is the parameter list in the macro definition--in most cases, it's
11080 # just an empty string.
11081 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11082 ac_dB='\\)[ (].*,\\1define\\2'
11083 ac_dC=' '
11084 ac_dD=' ,'
11086 uniq confdefs.h |
11087 sed -n '
11088 t rset
11089 :rset
11090 s/^[ ]*#[ ]*define[ ][ ]*//
11091 t ok
11094 s/[\\&,]/\\&/g
11095 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11096 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11097 ' >>conftest.defines
11099 # Remove the space that was appended to ease matching.
11100 # Then replace #undef with comments. This is necessary, for
11101 # example, in the case of _POSIX_SOURCE, which is predefined and required
11102 # on some systems where configure will not decide to define it.
11103 # (The regexp can be short, since the line contains either #define or #undef.)
11104 echo 's/ $//
11105 s,^[ #]*u.*,/* & */,' >>conftest.defines
11107 # Break up conftest.defines:
11108 ac_max_sed_lines=50
11110 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11111 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11112 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11113 # et cetera.
11114 ac_in='$ac_file_inputs'
11115 ac_out='"$tmp/out1"'
11116 ac_nxt='"$tmp/out2"'
11118 while :
11120 # Write a here document:
11121 cat >>$CONFIG_STATUS <<_ACEOF
11122 # First, check the format of the line:
11123 cat >"\$tmp/defines.sed" <<\\CEOF
11124 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11125 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11127 :def
11128 _ACEOF
11129 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11130 echo 'CEOF
11131 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11132 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11133 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11134 grep . conftest.tail >/dev/null || break
11135 rm -f conftest.defines
11136 mv conftest.tail conftest.defines
11137 done
11138 rm -f conftest.defines conftest.tail
11140 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11141 cat >>$CONFIG_STATUS <<\_ACEOF
11142 if test x"$ac_file" != x-; then
11143 echo "/* $configure_input */" >"$tmp/config.h"
11144 cat "$ac_result" >>"$tmp/config.h"
11145 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11146 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11147 echo "$as_me: $ac_file is unchanged" >&6;}
11148 else
11149 rm -f $ac_file
11150 mv "$tmp/config.h" $ac_file
11152 else
11153 echo "/* $configure_input */"
11154 cat "$ac_result"
11156 rm -f "$tmp/out12"
11160 esac
11162 done # for ac_tag
11165 { (exit 0); exit 0; }
11166 _ACEOF
11167 chmod +x $CONFIG_STATUS
11168 ac_clean_files=$ac_clean_files_save
11171 # configure is writing to config.log, and then calls config.status.
11172 # config.status does its own redirection, appending to config.log.
11173 # Unfortunately, on DOS this fails, as config.log is still kept open
11174 # by configure, so config.status won't be able to write to it; its
11175 # output is simply discarded. So we exec the FD to /dev/null,
11176 # effectively closing config.log, so it can be properly (re)opened and
11177 # appended to by config.status. When coming back to configure, we
11178 # need to make the FD available again.
11179 if test "$no_create" != yes; then
11180 ac_cs_success=:
11181 ac_config_status_args=
11182 test "$silent" = yes &&
11183 ac_config_status_args="$ac_config_status_args --quiet"
11184 exec 5>/dev/null
11185 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11186 exec 5>>config.log
11187 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11188 # would make configure fail if this is the last instruction.
11189 $ac_cs_success || { (exit 1); exit 1; }