Fix Xcode warnings, part I
[texmacs.git] / src / configure
blobb58b315f143197abae188062315a3413c5077f39
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 tmorig
748 tmdir
749 tmsrc
750 tmbin
751 tmdata
752 tmtgz
753 tmrpm
754 tmstgz
755 tmsrpm
756 tmwin
757 LIBOBJS
758 LTLIBOBJS'
759 ac_subst_files=''
760 ac_precious_vars='build_alias
761 host_alias
762 target_alias
764 CFLAGS
765 LDFLAGS
766 LIBS
767 CPPFLAGS
769 CXXFLAGS
771 CXXCPP
772 XMKMF
774 TMPDIR'
777 # Initialize some variables set by options.
778 ac_init_help=
779 ac_init_version=false
780 # The variables have the same names as the options, with
781 # dashes changed to underlines.
782 cache_file=/dev/null
783 exec_prefix=NONE
784 no_create=
785 no_recursion=
786 prefix=NONE
787 program_prefix=NONE
788 program_suffix=NONE
789 program_transform_name=s,x,x,
790 silent=
791 site=
792 srcdir=
793 verbose=
794 x_includes=NONE
795 x_libraries=NONE
797 # Installation directory options.
798 # These are left unexpanded so users can "make install exec_prefix=/foo"
799 # and all the variables that are supposed to be based on exec_prefix
800 # by default will actually change.
801 # Use braces instead of parens because sh, perl, etc. also accept them.
802 # (The list follows the same order as the GNU Coding Standards.)
803 bindir='${exec_prefix}/bin'
804 sbindir='${exec_prefix}/sbin'
805 libexecdir='${exec_prefix}/libexec'
806 datarootdir='${prefix}/share'
807 datadir='${datarootdir}'
808 sysconfdir='${prefix}/etc'
809 sharedstatedir='${prefix}/com'
810 localstatedir='${prefix}/var'
811 includedir='${prefix}/include'
812 oldincludedir='/usr/include'
813 docdir='${datarootdir}/doc/${PACKAGE}'
814 infodir='${datarootdir}/info'
815 htmldir='${docdir}'
816 dvidir='${docdir}'
817 pdfdir='${docdir}'
818 psdir='${docdir}'
819 libdir='${exec_prefix}/lib'
820 localedir='${datarootdir}/locale'
821 mandir='${datarootdir}/man'
823 ac_prev=
824 ac_dashdash=
825 for ac_option
827 # If the previous option needs an argument, assign it.
828 if test -n "$ac_prev"; then
829 eval $ac_prev=\$ac_option
830 ac_prev=
831 continue
834 case $ac_option in
835 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836 *) ac_optarg=yes ;;
837 esac
839 # Accept the important Cygnus configure options, so we can diagnose typos.
841 case $ac_dashdash$ac_option in
843 ac_dashdash=yes ;;
845 -bindir | --bindir | --bindi | --bind | --bin | --bi)
846 ac_prev=bindir ;;
847 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
848 bindir=$ac_optarg ;;
850 -build | --build | --buil | --bui | --bu)
851 ac_prev=build_alias ;;
852 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
853 build_alias=$ac_optarg ;;
855 -cache-file | --cache-file | --cache-fil | --cache-fi \
856 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
857 ac_prev=cache_file ;;
858 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
859 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
860 cache_file=$ac_optarg ;;
862 --config-cache | -C)
863 cache_file=config.cache ;;
865 -datadir | --datadir | --datadi | --datad)
866 ac_prev=datadir ;;
867 -datadir=* | --datadir=* | --datadi=* | --datad=*)
868 datadir=$ac_optarg ;;
870 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
871 | --dataroo | --dataro | --datar)
872 ac_prev=datarootdir ;;
873 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
874 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
875 datarootdir=$ac_optarg ;;
877 -disable-* | --disable-*)
878 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
879 # Reject names that are not valid shell variable names.
880 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
881 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
882 { (exit 1); exit 1; }; }
883 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
884 eval enable_$ac_feature=no ;;
886 -docdir | --docdir | --docdi | --doc | --do)
887 ac_prev=docdir ;;
888 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889 docdir=$ac_optarg ;;
891 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892 ac_prev=dvidir ;;
893 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894 dvidir=$ac_optarg ;;
896 -enable-* | --enable-*)
897 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
900 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
901 { (exit 1); exit 1; }; }
902 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
903 eval enable_$ac_feature=\$ac_optarg ;;
905 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
906 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
907 | --exec | --exe | --ex)
908 ac_prev=exec_prefix ;;
909 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
910 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
911 | --exec=* | --exe=* | --ex=*)
912 exec_prefix=$ac_optarg ;;
914 -gas | --gas | --ga | --g)
915 # Obsolete; use --with-gas.
916 with_gas=yes ;;
918 -help | --help | --hel | --he | -h)
919 ac_init_help=long ;;
920 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
921 ac_init_help=recursive ;;
922 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
923 ac_init_help=short ;;
925 -host | --host | --hos | --ho)
926 ac_prev=host_alias ;;
927 -host=* | --host=* | --hos=* | --ho=*)
928 host_alias=$ac_optarg ;;
930 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
931 ac_prev=htmldir ;;
932 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
933 | --ht=*)
934 htmldir=$ac_optarg ;;
936 -includedir | --includedir | --includedi | --included | --include \
937 | --includ | --inclu | --incl | --inc)
938 ac_prev=includedir ;;
939 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
940 | --includ=* | --inclu=* | --incl=* | --inc=*)
941 includedir=$ac_optarg ;;
943 -infodir | --infodir | --infodi | --infod | --info | --inf)
944 ac_prev=infodir ;;
945 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
946 infodir=$ac_optarg ;;
948 -libdir | --libdir | --libdi | --libd)
949 ac_prev=libdir ;;
950 -libdir=* | --libdir=* | --libdi=* | --libd=*)
951 libdir=$ac_optarg ;;
953 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
954 | --libexe | --libex | --libe)
955 ac_prev=libexecdir ;;
956 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
957 | --libexe=* | --libex=* | --libe=*)
958 libexecdir=$ac_optarg ;;
960 -localedir | --localedir | --localedi | --localed | --locale)
961 ac_prev=localedir ;;
962 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
963 localedir=$ac_optarg ;;
965 -localstatedir | --localstatedir | --localstatedi | --localstated \
966 | --localstate | --localstat | --localsta | --localst | --locals)
967 ac_prev=localstatedir ;;
968 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
969 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
970 localstatedir=$ac_optarg ;;
972 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
973 ac_prev=mandir ;;
974 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975 mandir=$ac_optarg ;;
977 -nfp | --nfp | --nf)
978 # Obsolete; use --without-fp.
979 with_fp=no ;;
981 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982 | --no-cr | --no-c | -n)
983 no_create=yes ;;
985 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987 no_recursion=yes ;;
989 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
990 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
991 | --oldin | --oldi | --old | --ol | --o)
992 ac_prev=oldincludedir ;;
993 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
994 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
995 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
996 oldincludedir=$ac_optarg ;;
998 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
999 ac_prev=prefix ;;
1000 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001 prefix=$ac_optarg ;;
1003 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1004 | --program-pre | --program-pr | --program-p)
1005 ac_prev=program_prefix ;;
1006 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1007 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1008 program_prefix=$ac_optarg ;;
1010 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1011 | --program-suf | --program-su | --program-s)
1012 ac_prev=program_suffix ;;
1013 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1014 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1015 program_suffix=$ac_optarg ;;
1017 -program-transform-name | --program-transform-name \
1018 | --program-transform-nam | --program-transform-na \
1019 | --program-transform-n | --program-transform- \
1020 | --program-transform | --program-transfor \
1021 | --program-transfo | --program-transf \
1022 | --program-trans | --program-tran \
1023 | --progr-tra | --program-tr | --program-t)
1024 ac_prev=program_transform_name ;;
1025 -program-transform-name=* | --program-transform-name=* \
1026 | --program-transform-nam=* | --program-transform-na=* \
1027 | --program-transform-n=* | --program-transform-=* \
1028 | --program-transform=* | --program-transfor=* \
1029 | --program-transfo=* | --program-transf=* \
1030 | --program-trans=* | --program-tran=* \
1031 | --progr-tra=* | --program-tr=* | --program-t=*)
1032 program_transform_name=$ac_optarg ;;
1034 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1035 ac_prev=pdfdir ;;
1036 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1037 pdfdir=$ac_optarg ;;
1039 -psdir | --psdir | --psdi | --psd | --ps)
1040 ac_prev=psdir ;;
1041 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1042 psdir=$ac_optarg ;;
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1046 silent=yes ;;
1048 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1049 ac_prev=sbindir ;;
1050 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1051 | --sbi=* | --sb=*)
1052 sbindir=$ac_optarg ;;
1054 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1055 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1056 | --sharedst | --shareds | --shared | --share | --shar \
1057 | --sha | --sh)
1058 ac_prev=sharedstatedir ;;
1059 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1060 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1061 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1062 | --sha=* | --sh=*)
1063 sharedstatedir=$ac_optarg ;;
1065 -site | --site | --sit)
1066 ac_prev=site ;;
1067 -site=* | --site=* | --sit=*)
1068 site=$ac_optarg ;;
1070 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1071 ac_prev=srcdir ;;
1072 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1073 srcdir=$ac_optarg ;;
1075 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1076 | --syscon | --sysco | --sysc | --sys | --sy)
1077 ac_prev=sysconfdir ;;
1078 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1079 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1080 sysconfdir=$ac_optarg ;;
1082 -target | --target | --targe | --targ | --tar | --ta | --t)
1083 ac_prev=target_alias ;;
1084 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1085 target_alias=$ac_optarg ;;
1087 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1088 verbose=yes ;;
1090 -version | --version | --versio | --versi | --vers | -V)
1091 ac_init_version=: ;;
1093 -with-* | --with-*)
1094 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1097 { echo "$as_me: error: invalid package name: $ac_package" >&2
1098 { (exit 1); exit 1; }; }
1099 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1100 eval with_$ac_package=\$ac_optarg ;;
1102 -without-* | --without-*)
1103 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1106 { echo "$as_me: error: invalid package name: $ac_package" >&2
1107 { (exit 1); exit 1; }; }
1108 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1109 eval with_$ac_package=no ;;
1111 --x)
1112 # Obsolete; use --with-x.
1113 with_x=yes ;;
1115 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1116 | --x-incl | --x-inc | --x-in | --x-i)
1117 ac_prev=x_includes ;;
1118 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1119 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1120 x_includes=$ac_optarg ;;
1122 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1123 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1124 ac_prev=x_libraries ;;
1125 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1126 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1127 x_libraries=$ac_optarg ;;
1129 -*) { echo "$as_me: error: unrecognized option: $ac_option
1130 Try \`$0 --help' for more information." >&2
1131 { (exit 1); exit 1; }; }
1134 *=*)
1135 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1139 { (exit 1); exit 1; }; }
1140 eval $ac_envvar=\$ac_optarg
1141 export $ac_envvar ;;
1144 # FIXME: should be removed in autoconf 3.0.
1145 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1146 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1147 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1148 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1151 esac
1152 done
1154 if test -n "$ac_prev"; then
1155 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1156 { echo "$as_me: error: missing argument to $ac_option" >&2
1157 { (exit 1); exit 1; }; }
1160 # Be sure to have absolute directory names.
1161 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1162 datadir sysconfdir sharedstatedir localstatedir includedir \
1163 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1164 libdir localedir mandir
1166 eval ac_val=\$$ac_var
1167 case $ac_val in
1168 [\\/$]* | ?:[\\/]* ) continue;;
1169 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1170 esac
1171 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1172 { (exit 1); exit 1; }; }
1173 done
1175 # There might be people who depend on the old broken behavior: `$host'
1176 # used to hold the argument of --host etc.
1177 # FIXME: To remove some day.
1178 build=$build_alias
1179 host=$host_alias
1180 target=$target_alias
1182 # FIXME: To remove some day.
1183 if test "x$host_alias" != x; then
1184 if test "x$build_alias" = x; then
1185 cross_compiling=maybe
1186 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1187 If a cross compiler is detected then cross compile mode will be used." >&2
1188 elif test "x$build_alias" != "x$host_alias"; then
1189 cross_compiling=yes
1193 ac_tool_prefix=
1194 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1196 test "$silent" = yes && exec 6>/dev/null
1199 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1200 ac_ls_di=`ls -di .` &&
1201 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1202 { echo "$as_me: error: Working directory cannot be determined" >&2
1203 { (exit 1); exit 1; }; }
1204 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1205 { echo "$as_me: error: pwd does not report name of working directory" >&2
1206 { (exit 1); exit 1; }; }
1209 # Find the source files, if location was not specified.
1210 if test -z "$srcdir"; then
1211 ac_srcdir_defaulted=yes
1212 # Try the directory containing this script, then the parent directory.
1213 ac_confdir=`$as_dirname -- "$0" ||
1214 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1215 X"$0" : 'X\(//\)[^/]' \| \
1216 X"$0" : 'X\(//\)$' \| \
1217 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1218 echo X"$0" |
1219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1220 s//\1/
1223 /^X\(\/\/\)[^/].*/{
1224 s//\1/
1227 /^X\(\/\/\)$/{
1228 s//\1/
1231 /^X\(\/\).*/{
1232 s//\1/
1235 s/.*/./; q'`
1236 srcdir=$ac_confdir
1237 if test ! -r "$srcdir/$ac_unique_file"; then
1238 srcdir=..
1240 else
1241 ac_srcdir_defaulted=no
1243 if test ! -r "$srcdir/$ac_unique_file"; then
1244 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1245 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1246 { (exit 1); exit 1; }; }
1248 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1249 ac_abs_confdir=`(
1250 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1251 { (exit 1); exit 1; }; }
1252 pwd)`
1253 # When building in place, set srcdir=.
1254 if test "$ac_abs_confdir" = "$ac_pwd"; then
1255 srcdir=.
1257 # Remove unnecessary trailing slashes from srcdir.
1258 # Double slashes in file names in object file debugging info
1259 # mess up M-x gdb in Emacs.
1260 case $srcdir in
1261 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1262 esac
1263 for ac_var in $ac_precious_vars; do
1264 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1265 eval ac_env_${ac_var}_value=\$${ac_var}
1266 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1268 done
1271 # Report the --help message.
1273 if test "$ac_init_help" = "long"; then
1274 # Omit some internal or obsolete options to make the list less imposing.
1275 # This message is too long to be a string in the A/UX 3.1 sh.
1276 cat <<_ACEOF
1277 \`configure' configures this package to adapt to many kinds of systems.
1279 Usage: $0 [OPTION]... [VAR=VALUE]...
1281 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1282 VAR=VALUE. See below for descriptions of some of the useful variables.
1284 Defaults for the options are specified in brackets.
1286 Configuration:
1287 -h, --help display this help and exit
1288 --help=short display options specific to this package
1289 --help=recursive display the short help of all the included packages
1290 -V, --version display version information and exit
1291 -q, --quiet, --silent do not print \`checking...' messages
1292 --cache-file=FILE cache test results in FILE [disabled]
1293 -C, --config-cache alias for \`--cache-file=config.cache'
1294 -n, --no-create do not create output files
1295 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1297 Installation directories:
1298 --prefix=PREFIX install architecture-independent files in PREFIX
1299 [$ac_default_prefix]
1300 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1301 [PREFIX]
1303 By default, \`make install' will install all the files in
1304 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1305 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1306 for instance \`--prefix=\$HOME'.
1308 For better control, use the options below.
1310 Fine tuning of the installation directories:
1311 --bindir=DIR user executables [EPREFIX/bin]
1312 --sbindir=DIR system admin executables [EPREFIX/sbin]
1313 --libexecdir=DIR program executables [EPREFIX/libexec]
1314 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1315 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1316 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1317 --libdir=DIR object code libraries [EPREFIX/lib]
1318 --includedir=DIR C header files [PREFIX/include]
1319 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1320 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1321 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1322 --infodir=DIR info documentation [DATAROOTDIR/info]
1323 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1324 --mandir=DIR man documentation [DATAROOTDIR/man]
1325 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1326 --htmldir=DIR html documentation [DOCDIR]
1327 --dvidir=DIR dvi documentation [DOCDIR]
1328 --pdfdir=DIR pdf documentation [DOCDIR]
1329 --psdir=DIR ps documentation [DOCDIR]
1330 _ACEOF
1332 cat <<\_ACEOF
1334 X features:
1335 --x-includes=DIR X include files are in DIR
1336 --x-libraries=DIR X library files are in DIR
1338 System types:
1339 --build=BUILD configure for building on BUILD [guessed]
1340 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1341 _ACEOF
1344 if test -n "$ac_init_help"; then
1346 cat <<\_ACEOF
1348 Optional Features:
1349 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1350 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1351 --disable-fastalloc omit fast allocator for small objects
1352 --enable-experimental support new style rewriting code
1353 --enable-macosx-extensions support new style rewriting code
1354 --enable-qt replace X11 by Qt interface
1355 --enable-cocoa replace X11 by Cocoa interface
1356 --enable-debug=ARG install a debugging enable executable -ggdb
1357 --enable-assert exit on failed assertions in code
1358 --enable-warnings print warning messages during compilation
1359 --enable-optimize=ARG compile with optimizations guessed
1361 Optional Packages:
1362 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1363 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1364 --with-x use the X Window System
1365 --with-iconv=DIR where to find iconv system
1366 --with-freetype=ARG with freetype support ARG=linked
1367 --with-cairo=ARG with cairo support ARG=no
1368 --with-imlib2=ARG with imlib2 support ARG=no
1369 --with-axel=ARG with axel support ARG=no
1370 --with-qt Path to Qt [Look in PATH and /usr/local/Trolltech]
1372 Some influential environment variables:
1373 CC C compiler command
1374 CFLAGS C compiler flags
1375 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1376 nonstandard directory <lib dir>
1377 LIBS libraries to pass to the linker, e.g. -l<library>
1378 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1379 you have headers in a nonstandard directory <include dir>
1380 CXX C++ compiler command
1381 CXXFLAGS C++ compiler flags
1382 CXXCPP C++ preprocessor
1383 XMKMF Path to xmkmf, Makefile generator for X Window System
1384 CPP C preprocessor
1385 TMPDIR A temporary directory with write access [/tmp]
1387 Use these variables to override the choices made by `configure' or to help
1388 it to find libraries and programs with nonstandard names/locations.
1390 _ACEOF
1391 ac_status=$?
1394 if test "$ac_init_help" = "recursive"; then
1395 # If there are subdirs, report their specific --help.
1396 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1397 test -d "$ac_dir" || continue
1398 ac_builddir=.
1400 case "$ac_dir" in
1401 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1404 # A ".." for each directory in $ac_dir_suffix.
1405 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1406 case $ac_top_builddir_sub in
1407 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1408 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1409 esac ;;
1410 esac
1411 ac_abs_top_builddir=$ac_pwd
1412 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1413 # for backward compatibility:
1414 ac_top_builddir=$ac_top_build_prefix
1416 case $srcdir in
1417 .) # We are building in place.
1418 ac_srcdir=.
1419 ac_top_srcdir=$ac_top_builddir_sub
1420 ac_abs_top_srcdir=$ac_pwd ;;
1421 [\\/]* | ?:[\\/]* ) # Absolute name.
1422 ac_srcdir=$srcdir$ac_dir_suffix;
1423 ac_top_srcdir=$srcdir
1424 ac_abs_top_srcdir=$srcdir ;;
1425 *) # Relative name.
1426 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1427 ac_top_srcdir=$ac_top_build_prefix$srcdir
1428 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1429 esac
1430 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1432 cd "$ac_dir" || { ac_status=$?; continue; }
1433 # Check for guested configure.
1434 if test -f "$ac_srcdir/configure.gnu"; then
1435 echo &&
1436 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1437 elif test -f "$ac_srcdir/configure"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure" --help=recursive
1440 else
1441 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1442 fi || ac_status=$?
1443 cd "$ac_pwd" || { ac_status=$?; break; }
1444 done
1447 test -n "$ac_init_help" && exit $ac_status
1448 if $ac_init_version; then
1449 cat <<\_ACEOF
1450 configure
1451 generated by GNU Autoconf 2.61
1453 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1454 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1455 This configure script is free software; the Free Software Foundation
1456 gives unlimited permission to copy, distribute and modify it.
1457 _ACEOF
1458 exit
1460 cat >config.log <<_ACEOF
1461 This file contains any messages produced by compilers while
1462 running configure, to aid debugging if configure makes a mistake.
1464 It was created by $as_me, which was
1465 generated by GNU Autoconf 2.61. Invocation command line was
1467 $ $0 $@
1469 _ACEOF
1470 exec 5>>config.log
1472 cat <<_ASUNAME
1473 ## --------- ##
1474 ## Platform. ##
1475 ## --------- ##
1477 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1478 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1479 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1480 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1481 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1483 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1484 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1486 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1487 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1488 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1489 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1490 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1491 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1492 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1494 _ASUNAME
1496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497 for as_dir in $PATH
1499 IFS=$as_save_IFS
1500 test -z "$as_dir" && as_dir=.
1501 echo "PATH: $as_dir"
1502 done
1503 IFS=$as_save_IFS
1505 } >&5
1507 cat >&5 <<_ACEOF
1510 ## ----------- ##
1511 ## Core tests. ##
1512 ## ----------- ##
1514 _ACEOF
1517 # Keep a trace of the command line.
1518 # Strip out --no-create and --no-recursion so they do not pile up.
1519 # Strip out --silent because we don't want to record it for future runs.
1520 # Also quote any args containing shell meta-characters.
1521 # Make two passes to allow for proper duplicate-argument suppression.
1522 ac_configure_args=
1523 ac_configure_args0=
1524 ac_configure_args1=
1525 ac_must_keep_next=false
1526 for ac_pass in 1 2
1528 for ac_arg
1530 case $ac_arg in
1531 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1533 | -silent | --silent | --silen | --sile | --sil)
1534 continue ;;
1535 *\'*)
1536 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1537 esac
1538 case $ac_pass in
1539 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1541 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1542 if test $ac_must_keep_next = true; then
1543 ac_must_keep_next=false # Got value, back to normal.
1544 else
1545 case $ac_arg in
1546 *=* | --config-cache | -C | -disable-* | --disable-* \
1547 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1548 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1549 | -with-* | --with-* | -without-* | --without-* | --x)
1550 case "$ac_configure_args0 " in
1551 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1552 esac
1554 -* ) ac_must_keep_next=true ;;
1555 esac
1557 ac_configure_args="$ac_configure_args '$ac_arg'"
1559 esac
1560 done
1561 done
1562 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1563 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1565 # When interrupted or exit'd, cleanup temporary files, and complete
1566 # config.log. We remove comments because anyway the quotes in there
1567 # would cause problems or look ugly.
1568 # WARNING: Use '\'' to represent an apostrophe within the trap.
1569 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1570 trap 'exit_status=$?
1571 # Save into config.log some information that might help in debugging.
1573 echo
1575 cat <<\_ASBOX
1576 ## ---------------- ##
1577 ## Cache variables. ##
1578 ## ---------------- ##
1579 _ASBOX
1580 echo
1581 # The following way of writing the cache mishandles newlines in values,
1583 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1584 eval ac_val=\$$ac_var
1585 case $ac_val in #(
1586 *${as_nl}*)
1587 case $ac_var in #(
1588 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1589 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1590 esac
1591 case $ac_var in #(
1592 _ | IFS | as_nl) ;; #(
1593 *) $as_unset $ac_var ;;
1594 esac ;;
1595 esac
1596 done
1597 (set) 2>&1 |
1598 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1599 *${as_nl}ac_space=\ *)
1600 sed -n \
1601 "s/'\''/'\''\\\\'\'''\''/g;
1602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1603 ;; #(
1605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1607 esac |
1608 sort
1610 echo
1612 cat <<\_ASBOX
1613 ## ----------------- ##
1614 ## Output variables. ##
1615 ## ----------------- ##
1616 _ASBOX
1617 echo
1618 for ac_var in $ac_subst_vars
1620 eval ac_val=\$$ac_var
1621 case $ac_val in
1622 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1623 esac
1624 echo "$ac_var='\''$ac_val'\''"
1625 done | sort
1626 echo
1628 if test -n "$ac_subst_files"; then
1629 cat <<\_ASBOX
1630 ## ------------------- ##
1631 ## File substitutions. ##
1632 ## ------------------- ##
1633 _ASBOX
1634 echo
1635 for ac_var in $ac_subst_files
1637 eval ac_val=\$$ac_var
1638 case $ac_val in
1639 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1640 esac
1641 echo "$ac_var='\''$ac_val'\''"
1642 done | sort
1643 echo
1646 if test -s confdefs.h; then
1647 cat <<\_ASBOX
1648 ## ----------- ##
1649 ## confdefs.h. ##
1650 ## ----------- ##
1651 _ASBOX
1652 echo
1653 cat confdefs.h
1654 echo
1656 test "$ac_signal" != 0 &&
1657 echo "$as_me: caught signal $ac_signal"
1658 echo "$as_me: exit $exit_status"
1659 } >&5
1660 rm -f core *.core core.conftest.* &&
1661 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1662 exit $exit_status
1664 for ac_signal in 1 2 13 15; do
1665 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1666 done
1667 ac_signal=0
1669 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1670 rm -f -r conftest* confdefs.h
1672 # Predefined preprocessor variables.
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_NAME "$PACKAGE_NAME"
1676 _ACEOF
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1681 _ACEOF
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1686 _ACEOF
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_STRING "$PACKAGE_STRING"
1691 _ACEOF
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1696 _ACEOF
1699 # Let the site file select an alternate cache file if it wants to.
1700 # Prefer explicitly selected file to automatically selected ones.
1701 if test -n "$CONFIG_SITE"; then
1702 set x "$CONFIG_SITE"
1703 elif test "x$prefix" != xNONE; then
1704 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1705 else
1706 set x "$ac_default_prefix/share/config.site" \
1707 "$ac_default_prefix/etc/config.site"
1709 shift
1710 for ac_site_file
1712 if test -r "$ac_site_file"; then
1713 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1714 echo "$as_me: loading site script $ac_site_file" >&6;}
1715 sed 's/^/| /' "$ac_site_file" >&5
1716 . "$ac_site_file"
1718 done
1720 if test -r "$cache_file"; then
1721 # Some versions of bash will fail to source /dev/null (special
1722 # files actually), so we avoid doing that.
1723 if test -f "$cache_file"; then
1724 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1725 echo "$as_me: loading cache $cache_file" >&6;}
1726 case $cache_file in
1727 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1728 *) . "./$cache_file";;
1729 esac
1731 else
1732 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1733 echo "$as_me: creating cache $cache_file" >&6;}
1734 >$cache_file
1737 # Check that the precious variables saved in the cache have kept the same
1738 # value.
1739 ac_cache_corrupted=false
1740 for ac_var in $ac_precious_vars; do
1741 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1742 eval ac_new_set=\$ac_env_${ac_var}_set
1743 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1744 eval ac_new_val=\$ac_env_${ac_var}_value
1745 case $ac_old_set,$ac_new_set in
1746 set,)
1747 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1748 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1749 ac_cache_corrupted=: ;;
1750 ,set)
1751 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1752 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1753 ac_cache_corrupted=: ;;
1754 ,);;
1756 if test "x$ac_old_val" != "x$ac_new_val"; then
1757 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1758 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1759 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1760 echo "$as_me: former value: $ac_old_val" >&2;}
1761 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1762 echo "$as_me: current value: $ac_new_val" >&2;}
1763 ac_cache_corrupted=:
1764 fi;;
1765 esac
1766 # Pass precious variables to config.status.
1767 if test "$ac_new_set" = set; then
1768 case $ac_new_val in
1769 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1770 *) ac_arg=$ac_var=$ac_new_val ;;
1771 esac
1772 case " $ac_configure_args " in
1773 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1774 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1775 esac
1777 done
1778 if $ac_cache_corrupted; then
1779 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1780 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1781 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1782 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1783 { (exit 1); exit 1; }; }
1802 ac_ext=c
1803 ac_cpp='$CPP $CPPFLAGS'
1804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809 ac_config_headers="$ac_config_headers src/System/config.h:src/System/config.in"
1812 PACKAGE="TeXmacs"
1813 DEVEL_VERSION="1.0.7.3"
1814 DEVEL_RELEASE="1"
1815 STABLE_VERSION="1.0.7"
1816 STABLE_RELEASE="1"
1817 WINDOWS_VERSION="1.0.5"
1818 WINDOWS_RELEASE="1"
1825 #--------------------------------------------------------------------
1826 # Checks for C++ compiler
1827 #--------------------------------------------------------------------
1829 ac_ext=c
1830 ac_cpp='$CPP $CPPFLAGS'
1831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1834 if test -n "$ac_tool_prefix"; then
1835 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1836 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1839 if test "${ac_cv_prog_CC+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842 if test -n "$CC"; then
1843 ac_cv_prog_CC="$CC" # Let the user override the test.
1844 else
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 for as_dir in $PATH
1848 IFS=$as_save_IFS
1849 test -z "$as_dir" && as_dir=.
1850 for ac_exec_ext in '' $ac_executable_extensions; do
1851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1852 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854 break 2
1856 done
1857 done
1858 IFS=$as_save_IFS
1862 CC=$ac_cv_prog_CC
1863 if test -n "$CC"; then
1864 { echo "$as_me:$LINENO: result: $CC" >&5
1865 echo "${ECHO_T}$CC" >&6; }
1866 else
1867 { echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6; }
1873 if test -z "$ac_cv_prog_CC"; then
1874 ac_ct_CC=$CC
1875 # Extract the first word of "gcc", so it can be a program name with args.
1876 set dummy gcc; ac_word=$2
1877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 else
1882 if test -n "$ac_ct_CC"; then
1883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1884 else
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 for as_dir in $PATH
1888 IFS=$as_save_IFS
1889 test -z "$as_dir" && as_dir=.
1890 for ac_exec_ext in '' $ac_executable_extensions; do
1891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1892 ac_cv_prog_ac_ct_CC="gcc"
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 break 2
1896 done
1897 done
1898 IFS=$as_save_IFS
1902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1903 if test -n "$ac_ct_CC"; then
1904 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1905 echo "${ECHO_T}$ac_ct_CC" >&6; }
1906 else
1907 { echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6; }
1911 if test "x$ac_ct_CC" = x; then
1912 CC=""
1913 else
1914 case $cross_compiling:$ac_tool_warned in
1915 yes:)
1916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1917 whose name does not start with the host triplet. If you think this
1918 configuration is useful to you, please write to autoconf@gnu.org." >&5
1919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1920 whose name does not start with the host triplet. If you think this
1921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1922 ac_tool_warned=yes ;;
1923 esac
1924 CC=$ac_ct_CC
1926 else
1927 CC="$ac_cv_prog_CC"
1930 if test -z "$CC"; then
1931 if test -n "$ac_tool_prefix"; then
1932 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1933 set dummy ${ac_tool_prefix}cc; ac_word=$2
1934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1936 if test "${ac_cv_prog_CC+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939 if test -n "$CC"; then
1940 ac_cv_prog_CC="$CC" # Let the user override the test.
1941 else
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1949 ac_cv_prog_CC="${ac_tool_prefix}cc"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 break 2
1953 done
1954 done
1955 IFS=$as_save_IFS
1959 CC=$ac_cv_prog_CC
1960 if test -n "$CC"; then
1961 { echo "$as_me:$LINENO: result: $CC" >&5
1962 echo "${ECHO_T}$CC" >&6; }
1963 else
1964 { echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6; }
1971 if test -z "$CC"; then
1972 # Extract the first word of "cc", so it can be a program name with args.
1973 set dummy cc; ac_word=$2
1974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979 if test -n "$CC"; then
1980 ac_cv_prog_CC="$CC" # Let the user override the test.
1981 else
1982 ac_prog_rejected=no
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1986 IFS=$as_save_IFS
1987 test -z "$as_dir" && as_dir=.
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1991 ac_prog_rejected=yes
1992 continue
1994 ac_cv_prog_CC="cc"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 break 2
1998 done
1999 done
2000 IFS=$as_save_IFS
2002 if test $ac_prog_rejected = yes; then
2003 # We found a bogon in the path, so make sure we never use it.
2004 set dummy $ac_cv_prog_CC
2005 shift
2006 if test $# != 0; then
2007 # We chose a different compiler from the bogus one.
2008 # However, it has the same basename, so the bogon will be chosen
2009 # first if we set CC to just the basename; use the full file name.
2010 shift
2011 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2016 CC=$ac_cv_prog_CC
2017 if test -n "$CC"; then
2018 { echo "$as_me:$LINENO: result: $CC" >&5
2019 echo "${ECHO_T}$CC" >&6; }
2020 else
2021 { echo "$as_me:$LINENO: result: no" >&5
2022 echo "${ECHO_T}no" >&6; }
2027 if test -z "$CC"; then
2028 if test -n "$ac_tool_prefix"; then
2029 for ac_prog in cl.exe
2031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2035 if test "${ac_cv_prog_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038 if test -n "$CC"; then
2039 ac_cv_prog_CC="$CC" # Let the user override the test.
2040 else
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2044 IFS=$as_save_IFS
2045 test -z "$as_dir" && as_dir=.
2046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2048 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 break 2
2052 done
2053 done
2054 IFS=$as_save_IFS
2058 CC=$ac_cv_prog_CC
2059 if test -n "$CC"; then
2060 { echo "$as_me:$LINENO: result: $CC" >&5
2061 echo "${ECHO_T}$CC" >&6; }
2062 else
2063 { echo "$as_me:$LINENO: result: no" >&5
2064 echo "${ECHO_T}no" >&6; }
2068 test -n "$CC" && break
2069 done
2071 if test -z "$CC"; then
2072 ac_ct_CC=$CC
2073 for ac_prog in cl.exe
2075 # Extract the first word of "$ac_prog", so it can be a program name with args.
2076 set dummy $ac_prog; ac_word=$2
2077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082 if test -n "$ac_ct_CC"; then
2083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084 else
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2092 ac_cv_prog_ac_ct_CC="$ac_prog"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 break 2
2096 done
2097 done
2098 IFS=$as_save_IFS
2102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103 if test -n "$ac_ct_CC"; then
2104 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105 echo "${ECHO_T}$ac_ct_CC" >&6; }
2106 else
2107 { echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6; }
2112 test -n "$ac_ct_CC" && break
2113 done
2115 if test "x$ac_ct_CC" = x; then
2116 CC=""
2117 else
2118 case $cross_compiling:$ac_tool_warned in
2119 yes:)
2120 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2121 whose name does not start with the host triplet. If you think this
2122 configuration is useful to you, please write to autoconf@gnu.org." >&5
2123 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2124 whose name does not start with the host triplet. If you think this
2125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2126 ac_tool_warned=yes ;;
2127 esac
2128 CC=$ac_ct_CC
2135 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2136 See \`config.log' for more details." >&5
2137 echo "$as_me: error: no acceptable C compiler found in \$PATH
2138 See \`config.log' for more details." >&2;}
2139 { (exit 1); exit 1; }; }
2141 # Provide some information about the compiler.
2142 echo "$as_me:$LINENO: checking for C compiler version" >&5
2143 ac_compiler=`set X $ac_compile; echo $2`
2144 { (ac_try="$ac_compiler --version >&5"
2145 case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148 esac
2149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2150 (eval "$ac_compiler --version >&5") 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2154 { (ac_try="$ac_compiler -v >&5"
2155 case "(($ac_try" in
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2158 esac
2159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2160 (eval "$ac_compiler -v >&5") 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }
2164 { (ac_try="$ac_compiler -V >&5"
2165 case "(($ac_try" in
2166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167 *) ac_try_echo=$ac_try;;
2168 esac
2169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2170 (eval "$ac_compiler -V >&5") 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }
2175 cat >conftest.$ac_ext <<_ACEOF
2176 /* confdefs.h. */
2177 _ACEOF
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h. */
2183 main ()
2187 return 0;
2189 _ACEOF
2190 ac_clean_files_save=$ac_clean_files
2191 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2192 # Try to create an executable without -o first, disregard a.out.
2193 # It will help us diagnose broken compilers, and finding out an intuition
2194 # of exeext.
2195 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2196 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2197 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2199 # List of possible output files, starting from the most likely.
2200 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2201 # only as a last resort. b.out is created by i960 compilers.
2202 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2204 # The IRIX 6 linker writes into existing files which may not be
2205 # executable, retaining their permissions. Remove them first so a
2206 # subsequent execution test works.
2207 ac_rmfiles=
2208 for ac_file in $ac_files
2210 case $ac_file in
2211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2212 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2213 esac
2214 done
2215 rm -f $ac_rmfiles
2217 if { (ac_try="$ac_link_default"
2218 case "(($ac_try" in
2219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2221 esac
2222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2223 (eval "$ac_link_default") 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; then
2227 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2228 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2229 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2230 # so that the user can short-circuit this test for compilers unknown to
2231 # Autoconf.
2232 for ac_file in $ac_files ''
2234 test -f "$ac_file" || continue
2235 case $ac_file in
2236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2238 [ab].out )
2239 # We found the default executable, but exeext='' is most
2240 # certainly right.
2241 break;;
2242 *.* )
2243 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2244 then :; else
2245 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2247 # We set ac_cv_exeext here because the later test for it is not
2248 # safe: cross compilers may not add the suffix if given an `-o'
2249 # argument, so we may need to know it at that point already.
2250 # Even if this section looks crufty: it has the advantage of
2251 # actually working.
2252 break;;
2254 break;;
2255 esac
2256 done
2257 test "$ac_cv_exeext" = no && ac_cv_exeext=
2259 else
2260 ac_file=''
2263 { echo "$as_me:$LINENO: result: $ac_file" >&5
2264 echo "${ECHO_T}$ac_file" >&6; }
2265 if test -z "$ac_file"; then
2266 echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.$ac_ext >&5
2269 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: C compiler cannot create executables
2272 See \`config.log' for more details." >&2;}
2273 { (exit 77); exit 77; }; }
2276 ac_exeext=$ac_cv_exeext
2278 # Check that the compiler produces executables we can run. If not, either
2279 # the compiler is broken, or we cross compile.
2280 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2281 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2282 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2283 # If not cross compiling, check that we can run a simple program.
2284 if test "$cross_compiling" != yes; then
2285 if { ac_try='./$ac_file'
2286 { (case "(($ac_try" in
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2289 esac
2290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2291 (eval "$ac_try") 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; }; then
2295 cross_compiling=no
2296 else
2297 if test "$cross_compiling" = maybe; then
2298 cross_compiling=yes
2299 else
2300 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2301 If you meant to cross compile, use \`--host'.
2302 See \`config.log' for more details." >&5
2303 echo "$as_me: error: cannot run C compiled programs.
2304 If you meant to cross compile, use \`--host'.
2305 See \`config.log' for more details." >&2;}
2306 { (exit 1); exit 1; }; }
2310 { echo "$as_me:$LINENO: result: yes" >&5
2311 echo "${ECHO_T}yes" >&6; }
2313 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2314 ac_clean_files=$ac_clean_files_save
2315 # Check that the compiler produces executables we can run. If not, either
2316 # the compiler is broken, or we cross compile.
2317 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2318 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2319 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2320 echo "${ECHO_T}$cross_compiling" >&6; }
2322 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2323 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2324 if { (ac_try="$ac_link"
2325 case "(($ac_try" in
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2328 esac
2329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330 (eval "$ac_link") 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2335 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2336 # work properly (i.e., refer to `conftest.exe'), while it won't with
2337 # `rm'.
2338 for ac_file in conftest.exe conftest conftest.*; do
2339 test -f "$ac_file" || continue
2340 case $ac_file in
2341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2342 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2343 break;;
2344 * ) break;;
2345 esac
2346 done
2347 else
2348 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2351 See \`config.log' for more details." >&2;}
2352 { (exit 1); exit 1; }; }
2355 rm -f conftest$ac_cv_exeext
2356 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2357 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2359 rm -f conftest.$ac_ext
2360 EXEEXT=$ac_cv_exeext
2361 ac_exeext=$EXEEXT
2362 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2363 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2364 if test "${ac_cv_objext+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 cat >conftest.$ac_ext <<_ACEOF
2368 /* confdefs.h. */
2369 _ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2375 main ()
2379 return 0;
2381 _ACEOF
2382 rm -f conftest.o conftest.obj
2383 if { (ac_try="$ac_compile"
2384 case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2387 esac
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compile") 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; then
2393 for ac_file in conftest.o conftest.obj conftest.*; do
2394 test -f "$ac_file" || continue;
2395 case $ac_file in
2396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2397 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2398 break;;
2399 esac
2400 done
2401 else
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2405 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2408 See \`config.log' for more details." >&2;}
2409 { (exit 1); exit 1; }; }
2412 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2414 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2415 echo "${ECHO_T}$ac_cv_objext" >&6; }
2416 OBJEXT=$ac_cv_objext
2417 ac_objext=$OBJEXT
2418 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2419 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2420 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 else
2423 cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h. */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2431 main ()
2433 #ifndef __GNUC__
2434 choke me
2435 #endif
2438 return 0;
2440 _ACEOF
2441 rm -f conftest.$ac_objext
2442 if { (ac_try="$ac_compile"
2443 case "(($ac_try" in
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2446 esac
2447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448 (eval "$ac_compile") 2>conftest.er1
2449 ac_status=$?
2450 grep -v '^ *+' conftest.er1 >conftest.err
2451 rm -f conftest.er1
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } && {
2455 test -z "$ac_c_werror_flag" ||
2456 test ! -s conftest.err
2457 } && test -s conftest.$ac_objext; then
2458 ac_compiler_gnu=yes
2459 else
2460 echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2463 ac_compiler_gnu=no
2466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2470 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2471 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2472 GCC=`test $ac_compiler_gnu = yes && echo yes`
2473 ac_test_CFLAGS=${CFLAGS+set}
2474 ac_save_CFLAGS=$CFLAGS
2475 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2476 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_cc_g+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480 ac_save_c_werror_flag=$ac_c_werror_flag
2481 ac_c_werror_flag=yes
2482 ac_cv_prog_cc_g=no
2483 CFLAGS="-g"
2484 cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h. */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2492 main ()
2496 return 0;
2498 _ACEOF
2499 rm -f conftest.$ac_objext
2500 if { (ac_try="$ac_compile"
2501 case "(($ac_try" in
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2504 esac
2505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2506 (eval "$ac_compile") 2>conftest.er1
2507 ac_status=$?
2508 grep -v '^ *+' conftest.er1 >conftest.err
2509 rm -f conftest.er1
2510 cat conftest.err >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } && {
2513 test -z "$ac_c_werror_flag" ||
2514 test ! -s conftest.err
2515 } && test -s conftest.$ac_objext; then
2516 ac_cv_prog_cc_g=yes
2517 else
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2521 CFLAGS=""
2522 cat >conftest.$ac_ext <<_ACEOF
2523 /* confdefs.h. */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2530 main ()
2534 return 0;
2536 _ACEOF
2537 rm -f conftest.$ac_objext
2538 if { (ac_try="$ac_compile"
2539 case "(($ac_try" in
2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2542 esac
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544 (eval "$ac_compile") 2>conftest.er1
2545 ac_status=$?
2546 grep -v '^ *+' conftest.er1 >conftest.err
2547 rm -f conftest.er1
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } && {
2551 test -z "$ac_c_werror_flag" ||
2552 test ! -s conftest.err
2553 } && test -s conftest.$ac_objext; then
2555 else
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2559 ac_c_werror_flag=$ac_save_c_werror_flag
2560 CFLAGS="-g"
2561 cat >conftest.$ac_ext <<_ACEOF
2562 /* confdefs.h. */
2563 _ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h. */
2569 main ()
2573 return 0;
2575 _ACEOF
2576 rm -f conftest.$ac_objext
2577 if { (ac_try="$ac_compile"
2578 case "(($ac_try" in
2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2581 esac
2582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583 (eval "$ac_compile") 2>conftest.er1
2584 ac_status=$?
2585 grep -v '^ *+' conftest.er1 >conftest.err
2586 rm -f conftest.er1
2587 cat conftest.err >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); } && {
2590 test -z "$ac_c_werror_flag" ||
2591 test ! -s conftest.err
2592 } && test -s conftest.$ac_objext; then
2593 ac_cv_prog_cc_g=yes
2594 else
2595 echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 ac_c_werror_flag=$ac_save_c_werror_flag
2610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2611 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2612 if test "$ac_test_CFLAGS" = set; then
2613 CFLAGS=$ac_save_CFLAGS
2614 elif test $ac_cv_prog_cc_g = yes; then
2615 if test "$GCC" = yes; then
2616 CFLAGS="-g -O2"
2617 else
2618 CFLAGS="-g"
2620 else
2621 if test "$GCC" = yes; then
2622 CFLAGS="-O2"
2623 else
2624 CFLAGS=
2627 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2628 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_cc_c89+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632 ac_cv_prog_cc_c89=no
2633 ac_save_CC=$CC
2634 cat >conftest.$ac_ext <<_ACEOF
2635 /* confdefs.h. */
2636 _ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h. */
2640 #include <stdarg.h>
2641 #include <stdio.h>
2642 #include <sys/types.h>
2643 #include <sys/stat.h>
2644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2645 struct buf { int x; };
2646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2647 static char *e (p, i)
2648 char **p;
2649 int i;
2651 return p[i];
2653 static char *f (char * (*g) (char **, int), char **p, ...)
2655 char *s;
2656 va_list v;
2657 va_start (v,p);
2658 s = g (p, va_arg (v,int));
2659 va_end (v);
2660 return s;
2663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2664 function prototypes and stuff, but not '\xHH' hex character constants.
2665 These don't provoke an error unfortunately, instead are silently treated
2666 as 'x'. The following induces an error, until -std is added to get
2667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2668 array size at least. It's necessary to write '\x00'==0 to get something
2669 that's true only with -std. */
2670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2673 inside strings and character constants. */
2674 #define FOO(x) 'x'
2675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2677 int test (int i, double x);
2678 struct s1 {int (*f) (int a);};
2679 struct s2 {int (*f) (double a);};
2680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2681 int argc;
2682 char **argv;
2684 main ()
2686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2688 return 0;
2690 _ACEOF
2691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2694 CC="$ac_save_CC $ac_arg"
2695 rm -f conftest.$ac_objext
2696 if { (ac_try="$ac_compile"
2697 case "(($ac_try" in
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2700 esac
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_compile") 2>conftest.er1
2703 ac_status=$?
2704 grep -v '^ *+' conftest.er1 >conftest.err
2705 rm -f conftest.er1
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } && {
2709 test -z "$ac_c_werror_flag" ||
2710 test ! -s conftest.err
2711 } && test -s conftest.$ac_objext; then
2712 ac_cv_prog_cc_c89=$ac_arg
2713 else
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2720 rm -f core conftest.err conftest.$ac_objext
2721 test "x$ac_cv_prog_cc_c89" != "xno" && break
2722 done
2723 rm -f conftest.$ac_ext
2724 CC=$ac_save_CC
2727 # AC_CACHE_VAL
2728 case "x$ac_cv_prog_cc_c89" in
2730 { echo "$as_me:$LINENO: result: none needed" >&5
2731 echo "${ECHO_T}none needed" >&6; } ;;
2732 xno)
2733 { echo "$as_me:$LINENO: result: unsupported" >&5
2734 echo "${ECHO_T}unsupported" >&6; } ;;
2736 CC="$CC $ac_cv_prog_cc_c89"
2737 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2738 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2739 esac
2742 ac_ext=c
2743 ac_cpp='$CPP $CPPFLAGS'
2744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748 ac_ext=cpp
2749 ac_cpp='$CXXCPP $CPPFLAGS'
2750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2753 if test -z "$CXX"; then
2754 if test -n "$CCC"; then
2755 CXX=$CCC
2756 else
2757 if test -n "$ac_tool_prefix"; then
2758 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2760 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2761 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2764 if test "${ac_cv_prog_CXX+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767 if test -n "$CXX"; then
2768 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2781 done
2782 done
2783 IFS=$as_save_IFS
2787 CXX=$ac_cv_prog_CXX
2788 if test -n "$CXX"; then
2789 { echo "$as_me:$LINENO: result: $CXX" >&5
2790 echo "${ECHO_T}$CXX" >&6; }
2791 else
2792 { echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6; }
2797 test -n "$CXX" && break
2798 done
2800 if test -z "$CXX"; then
2801 ac_ct_CXX=$CXX
2802 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2804 # Extract the first word of "$ac_prog", so it can be a program name with args.
2805 set dummy $ac_prog; ac_word=$2
2806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2808 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811 if test -n "$ac_ct_CXX"; then
2812 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_ac_ct_CXX="$ac_prog"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2825 done
2826 done
2827 IFS=$as_save_IFS
2831 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2832 if test -n "$ac_ct_CXX"; then
2833 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2834 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2835 else
2836 { echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6; }
2841 test -n "$ac_ct_CXX" && break
2842 done
2844 if test "x$ac_ct_CXX" = x; then
2845 CXX="g++"
2846 else
2847 case $cross_compiling:$ac_tool_warned in
2848 yes:)
2849 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2850 whose name does not start with the host triplet. If you think this
2851 configuration is useful to you, please write to autoconf@gnu.org." >&5
2852 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2853 whose name does not start with the host triplet. If you think this
2854 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2855 ac_tool_warned=yes ;;
2856 esac
2857 CXX=$ac_ct_CXX
2863 # Provide some information about the compiler.
2864 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2865 ac_compiler=`set X $ac_compile; echo $2`
2866 { (ac_try="$ac_compiler --version >&5"
2867 case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2870 esac
2871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2872 (eval "$ac_compiler --version >&5") 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }
2876 { (ac_try="$ac_compiler -v >&5"
2877 case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880 esac
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compiler -v >&5") 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }
2886 { (ac_try="$ac_compiler -V >&5"
2887 case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compiler -V >&5") 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2897 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2898 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2899 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902 cat >conftest.$ac_ext <<_ACEOF
2903 /* confdefs.h. */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2910 main ()
2912 #ifndef __GNUC__
2913 choke me
2914 #endif
2917 return 0;
2919 _ACEOF
2920 rm -f conftest.$ac_objext
2921 if { (ac_try="$ac_compile"
2922 case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925 esac
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_compile") 2>conftest.er1
2928 ac_status=$?
2929 grep -v '^ *+' conftest.er1 >conftest.err
2930 rm -f conftest.er1
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } && {
2934 test -z "$ac_cxx_werror_flag" ||
2935 test ! -s conftest.err
2936 } && test -s conftest.$ac_objext; then
2937 ac_compiler_gnu=yes
2938 else
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2942 ac_compiler_gnu=no
2945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2946 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2949 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2950 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2951 GXX=`test $ac_compiler_gnu = yes && echo yes`
2952 ac_test_CXXFLAGS=${CXXFLAGS+set}
2953 ac_save_CXXFLAGS=$CXXFLAGS
2954 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2955 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2956 if test "${ac_cv_prog_cxx_g+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2960 ac_cxx_werror_flag=yes
2961 ac_cv_prog_cxx_g=no
2962 CXXFLAGS="-g"
2963 cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h. */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2971 main ()
2975 return 0;
2977 _ACEOF
2978 rm -f conftest.$ac_objext
2979 if { (ac_try="$ac_compile"
2980 case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983 esac
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_compile") 2>conftest.er1
2986 ac_status=$?
2987 grep -v '^ *+' conftest.er1 >conftest.err
2988 rm -f conftest.er1
2989 cat conftest.err >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } && {
2992 test -z "$ac_cxx_werror_flag" ||
2993 test ! -s conftest.err
2994 } && test -s conftest.$ac_objext; then
2995 ac_cv_prog_cxx_g=yes
2996 else
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 CXXFLAGS=""
3001 cat >conftest.$ac_ext <<_ACEOF
3002 /* confdefs.h. */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3009 main ()
3013 return 0;
3015 _ACEOF
3016 rm -f conftest.$ac_objext
3017 if { (ac_try="$ac_compile"
3018 case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_compile") 2>conftest.er1
3024 ac_status=$?
3025 grep -v '^ *+' conftest.er1 >conftest.err
3026 rm -f conftest.er1
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } && {
3030 test -z "$ac_cxx_werror_flag" ||
3031 test ! -s conftest.err
3032 } && test -s conftest.$ac_objext; then
3034 else
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3038 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3039 CXXFLAGS="-g"
3040 cat >conftest.$ac_ext <<_ACEOF
3041 /* confdefs.h. */
3042 _ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3048 main ()
3052 return 0;
3054 _ACEOF
3055 rm -f conftest.$ac_objext
3056 if { (ac_try="$ac_compile"
3057 case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060 esac
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_compile") 2>conftest.er1
3063 ac_status=$?
3064 grep -v '^ *+' conftest.er1 >conftest.err
3065 rm -f conftest.er1
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } && {
3069 test -z "$ac_cxx_werror_flag" ||
3070 test ! -s conftest.err
3071 } && test -s conftest.$ac_objext; then
3072 ac_cv_prog_cxx_g=yes
3073 else
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3089 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3090 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3091 if test "$ac_test_CXXFLAGS" = set; then
3092 CXXFLAGS=$ac_save_CXXFLAGS
3093 elif test $ac_cv_prog_cxx_g = yes; then
3094 if test "$GXX" = yes; then
3095 CXXFLAGS="-g -O2"
3096 else
3097 CXXFLAGS="-g"
3099 else
3100 if test "$GXX" = yes; then
3101 CXXFLAGS="-O2"
3102 else
3103 CXXFLAGS=
3106 ac_ext=c
3107 ac_cpp='$CPP $CPPFLAGS'
3108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3112 ac_ext=cpp
3113 ac_cpp='$CXXCPP $CPPFLAGS'
3114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3120 { echo "$as_me:$LINENO: checking whether GNU C++ compiler is default" >&5
3121 echo $ECHO_N "checking whether GNU C++ compiler is default... $ECHO_C" >&6; }
3122 case "$GXX" in
3123 yes )
3124 GCC_VERSION=`$CC -dumpversion`
3125 GXX_VERSION=`$CXX -dumpversion`
3126 { echo "$as_me:$LINENO: result: yes" >&5
3127 echo "${ECHO_T}yes" >&6; }
3128 { echo "$as_me:$LINENO: checking version of gcc" >&5
3129 echo $ECHO_N "checking version of gcc... $ECHO_C" >&6; }
3130 { echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
3131 echo "${ECHO_T}$GCC_VERSION" >&6; }
3132 { echo "$as_me:$LINENO: checking version of g++" >&5
3133 echo $ECHO_N "checking version of g++... $ECHO_C" >&6; }
3134 { echo "$as_me:$LINENO: result: $GXX_VERSION" >&5
3135 echo "${ECHO_T}$GXX_VERSION" >&6; }
3136 case "$GXX_VERSION" in
3137 0* | 1* | 2*)
3138 echo "old style GNU compiler"
3139 cat >>confdefs.h <<\_ACEOF
3140 #define OLD_GNU_COMPILER
3141 _ACEOF
3144 esac
3147 GCC_VERSION="none"
3148 GXX_VERSION="none"
3149 { echo "$as_me:$LINENO: result: no" >&5
3150 echo "${ECHO_T}no" >&6; }
3151 { echo "$as_me:$LINENO: WARNING: cannot find GNU C++ compiler" >&5
3152 echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
3154 esac
3156 #--------------------------------------------------------------------
3157 # Checks for Guile
3158 #--------------------------------------------------------------------
3160 if test -z "$GUILE_CFLAGS" -a -z "$GUILE_LDFLAGS"; then
3162 ## The GUILE_FLAGS macro.
3163 ## First, let's just see if we can find Guile at all.
3164 { echo "$as_me:$LINENO: checking for Guile" >&5
3165 echo $ECHO_N "checking for Guile... $ECHO_C" >&6; }
3166 guile-config link > /dev/null || {
3167 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
3168 exit 1
3170 GUILE_ORIGINAL_CFLAGS="`guile-config compile`"
3171 GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
3172 GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
3173 GUILE_LDFLAGS="`guile-config link`"
3174 GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir` -lguile -lreadline -ltermcap"
3177 { echo "$as_me:$LINENO: result: yes" >&5
3178 echo "${ECHO_T}yes" >&6; }
3181 { echo "$as_me:$LINENO: checking version of guile" >&5
3182 echo $ECHO_N "checking version of guile... $ECHO_C" >&6; }
3183 if test -z "$GUILE_VERSION" ; then
3184 GUILE_VERSION=`guile --version | grep 'Guile \([0-9]\)' | sed 's/Guile \([0-9]*\)/\1/'`
3186 { echo "$as_me:$LINENO: result: $GUILE_VERSION" >&5
3187 echo "${ECHO_T}$GUILE_VERSION" >&6; }
3189 case "$GUILE_VERSION" in
3190 1.0* | 1.1* | 1.2* | 1.3* | 1.4* | 1.5*)
3191 CONFIG_GUILE_SERIAL="A"
3193 1.6* | 1.7*)
3194 CONFIG_GUILE_SERIAL="B"
3197 CONFIG_GUILE_SERIAL="C"
3199 esac
3202 #--------------------------------------------------------------------
3203 # Checks for standard functionality
3204 #--------------------------------------------------------------------
3208 { echo "$as_me:$LINENO: checking for C++-compatible X header files" >&5
3209 echo $ECHO_N "checking for C++-compatible X header files... $ECHO_C" >&6; }
3210 ac_save_cppflags="$CPPFLAGS"
3211 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3212 cat >conftest.$ac_ext <<_ACEOF
3213 /* confdefs.h. */
3214 _ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h. */
3218 #include <X11/Xlib.h>
3219 #include <X11/Xutil.h>
3221 main ()
3225 return 0;
3227 _ACEOF
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compile") 2>conftest.er1
3236 ac_status=$?
3237 grep -v '^ *+' conftest.er1 >conftest.err
3238 rm -f conftest.er1
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } && {
3242 test -z "$ac_cxx_werror_flag" ||
3243 test ! -s conftest.err
3244 } && test -s conftest.$ac_objext; then
3245 echo yes
3246 else
3247 echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3250 rm -rf X11
3251 mkdir X11
3252 for ac_dir in \
3253 /usr/X11/include \
3254 /usr/X11R6/include \
3255 /usr/X11R5/include \
3256 /usr/X11R4/include \
3258 /usr/include/X11 \
3259 /usr/include/X11R6 \
3260 /usr/include/X11R5 \
3261 /usr/include/X11R4 \
3263 /usr/local/X11/include \
3264 /usr/local/X11R6/include \
3265 /usr/local/X11R5/include \
3266 /usr/local/X11R4/include \
3268 /usr/local/include/X11 \
3269 /usr/local/include/X11R6 \
3270 /usr/local/include/X11R5 \
3271 /usr/local/include/X11R4 \
3273 /usr/X386/include \
3274 /usr/x386/include \
3275 /usr/XFree86/include/X11 \
3277 /usr/include \
3278 /usr/local/include \
3279 /usr/unsupported/include \
3280 /usr/athena/include \
3281 /usr/local/x11r5/include \
3282 /usr/lpp/Xamples/include \
3284 /usr/openwin/include \
3285 /usr/openwin/share/include \
3288 if test -r "$ac_dir/X11/Xlib.h"; then
3289 tm_x_includes=$ac_dir
3290 break
3292 done
3293 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3294 < "$tm_x_includes/X11/Xlib.h" > X11/Xlib.h
3295 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3296 < "$tm_x_includes/X11/Xutil.h" > X11/Xutil.h
3297 X_CFLAGS="-I.. $X_CFLAGS"
3298 echo "no; fixing"
3301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 CPPFLAGS="$ac_save_cppflags"
3304 ac_ext=cpp
3305 ac_cpp='$CXXCPP $CPPFLAGS'
3306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3309 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3310 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3311 if test -z "$CXXCPP"; then
3312 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315 # Double quotes because CXXCPP needs to be expanded
3316 for CXXCPP in "$CXX -E" "/lib/cpp"
3318 ac_preproc_ok=false
3319 for ac_cxx_preproc_warn_flag in '' yes
3321 # Use a header file that comes with gcc, so configuring glibc
3322 # with a fresh cross-compiler works.
3323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3324 # <limits.h> exists even on freestanding compilers.
3325 # On the NeXT, cc -E runs the code through the compiler's parser,
3326 # not just through cpp. "Syntax error" is here to catch this case.
3327 cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h. */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3333 #ifdef __STDC__
3334 # include <limits.h>
3335 #else
3336 # include <assert.h>
3337 #endif
3338 Syntax error
3339 _ACEOF
3340 if { (ac_try="$ac_cpp conftest.$ac_ext"
3341 case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } >/dev/null && {
3353 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3354 test ! -s conftest.err
3355 }; then
3357 else
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3361 # Broken: fails on valid input.
3362 continue
3365 rm -f conftest.err conftest.$ac_ext
3367 # OK, works on sane cases. Now check whether nonexistent headers
3368 # can be detected and how.
3369 cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h. */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3375 #include <ac_nonexistent.h>
3376 _ACEOF
3377 if { (ac_try="$ac_cpp conftest.$ac_ext"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } >/dev/null && {
3390 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3391 test ! -s conftest.err
3392 }; then
3393 # Broken: success on invalid input.
3394 continue
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 # Passes both tests.
3400 ac_preproc_ok=:
3401 break
3404 rm -f conftest.err conftest.$ac_ext
3406 done
3407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3408 rm -f conftest.err conftest.$ac_ext
3409 if $ac_preproc_ok; then
3410 break
3413 done
3414 ac_cv_prog_CXXCPP=$CXXCPP
3417 CXXCPP=$ac_cv_prog_CXXCPP
3418 else
3419 ac_cv_prog_CXXCPP=$CXXCPP
3421 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
3422 echo "${ECHO_T}$CXXCPP" >&6; }
3423 ac_preproc_ok=false
3424 for ac_cxx_preproc_warn_flag in '' yes
3426 # Use a header file that comes with gcc, so configuring glibc
3427 # with a fresh cross-compiler works.
3428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429 # <limits.h> exists even on freestanding compilers.
3430 # On the NeXT, cc -E runs the code through the compiler's parser,
3431 # not just through cpp. "Syntax error" is here to catch this case.
3432 cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h. */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3438 #ifdef __STDC__
3439 # include <limits.h>
3440 #else
3441 # include <assert.h>
3442 #endif
3443 Syntax error
3444 _ACEOF
3445 if { (ac_try="$ac_cpp conftest.$ac_ext"
3446 case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449 esac
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452 ac_status=$?
3453 grep -v '^ *+' conftest.er1 >conftest.err
3454 rm -f conftest.er1
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } >/dev/null && {
3458 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3459 test ! -s conftest.err
3460 }; then
3462 else
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 # Broken: fails on valid input.
3467 continue
3470 rm -f conftest.err conftest.$ac_ext
3472 # OK, works on sane cases. Now check whether nonexistent headers
3473 # can be detected and how.
3474 cat >conftest.$ac_ext <<_ACEOF
3475 /* confdefs.h. */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 #include <ac_nonexistent.h>
3481 _ACEOF
3482 if { (ac_try="$ac_cpp conftest.$ac_ext"
3483 case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3489 ac_status=$?
3490 grep -v '^ *+' conftest.er1 >conftest.err
3491 rm -f conftest.er1
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } >/dev/null && {
3495 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3496 test ! -s conftest.err
3497 }; then
3498 # Broken: success on invalid input.
3499 continue
3500 else
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3504 # Passes both tests.
3505 ac_preproc_ok=:
3506 break
3509 rm -f conftest.err conftest.$ac_ext
3511 done
3512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3513 rm -f conftest.err conftest.$ac_ext
3514 if $ac_preproc_ok; then
3516 else
3517 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3518 See \`config.log' for more details." >&5
3519 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3520 See \`config.log' for more details." >&2;}
3521 { (exit 1); exit 1; }; }
3524 ac_ext=cpp
3525 ac_cpp='$CXXCPP $CPPFLAGS'
3526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3531 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3532 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3533 if test "${ac_cv_path_GREP+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536 # Extract the first word of "grep ggrep" to use in msg output
3537 if test -z "$GREP"; then
3538 set dummy grep ggrep; ac_prog_name=$2
3539 if test "${ac_cv_path_GREP+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542 ac_path_GREP_found=false
3543 # Loop through the user's path and test for each of PROGNAME-LIST
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_prog in grep ggrep; do
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3552 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3553 # Check for GNU ac_path_GREP and select it if it is found.
3554 # Check for GNU $ac_path_GREP
3555 case `"$ac_path_GREP" --version 2>&1` in
3556 *GNU*)
3557 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3559 ac_count=0
3560 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3561 while :
3563 cat "conftest.in" "conftest.in" >"conftest.tmp"
3564 mv "conftest.tmp" "conftest.in"
3565 cp "conftest.in" "conftest.nl"
3566 echo 'GREP' >> "conftest.nl"
3567 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3569 ac_count=`expr $ac_count + 1`
3570 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3571 # Best one so far, save it but keep looking for a better one
3572 ac_cv_path_GREP="$ac_path_GREP"
3573 ac_path_GREP_max=$ac_count
3575 # 10*(2^10) chars as input seems more than enough
3576 test $ac_count -gt 10 && break
3577 done
3578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3579 esac
3582 $ac_path_GREP_found && break 3
3583 done
3584 done
3586 done
3587 IFS=$as_save_IFS
3592 GREP="$ac_cv_path_GREP"
3593 if test -z "$GREP"; then
3594 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3595 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3596 { (exit 1); exit 1; }; }
3599 else
3600 ac_cv_path_GREP=$GREP
3605 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3606 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3607 GREP="$ac_cv_path_GREP"
3610 { echo "$as_me:$LINENO: checking for egrep" >&5
3611 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3612 if test "${ac_cv_path_EGREP+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 else
3615 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3616 then ac_cv_path_EGREP="$GREP -E"
3617 else
3618 # Extract the first word of "egrep" to use in msg output
3619 if test -z "$EGREP"; then
3620 set dummy egrep; ac_prog_name=$2
3621 if test "${ac_cv_path_EGREP+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624 ac_path_EGREP_found=false
3625 # Loop through the user's path and test for each of PROGNAME-LIST
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
3631 for ac_prog in egrep; do
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3634 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3635 # Check for GNU ac_path_EGREP and select it if it is found.
3636 # Check for GNU $ac_path_EGREP
3637 case `"$ac_path_EGREP" --version 2>&1` in
3638 *GNU*)
3639 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3641 ac_count=0
3642 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3643 while :
3645 cat "conftest.in" "conftest.in" >"conftest.tmp"
3646 mv "conftest.tmp" "conftest.in"
3647 cp "conftest.in" "conftest.nl"
3648 echo 'EGREP' >> "conftest.nl"
3649 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3651 ac_count=`expr $ac_count + 1`
3652 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3653 # Best one so far, save it but keep looking for a better one
3654 ac_cv_path_EGREP="$ac_path_EGREP"
3655 ac_path_EGREP_max=$ac_count
3657 # 10*(2^10) chars as input seems more than enough
3658 test $ac_count -gt 10 && break
3659 done
3660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3661 esac
3664 $ac_path_EGREP_found && break 3
3665 done
3666 done
3668 done
3669 IFS=$as_save_IFS
3674 EGREP="$ac_cv_path_EGREP"
3675 if test -z "$EGREP"; then
3676 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3677 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3678 { (exit 1); exit 1; }; }
3681 else
3682 ac_cv_path_EGREP=$EGREP
3688 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3689 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3690 EGREP="$ac_cv_path_EGREP"
3693 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3694 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3695 if test "${ac_cv_header_stdc+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698 cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h. */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3704 #include <stdlib.h>
3705 #include <stdarg.h>
3706 #include <string.h>
3707 #include <float.h>
3710 main ()
3714 return 0;
3716 _ACEOF
3717 rm -f conftest.$ac_objext
3718 if { (ac_try="$ac_compile"
3719 case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722 esac
3723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3724 (eval "$ac_compile") 2>conftest.er1
3725 ac_status=$?
3726 grep -v '^ *+' conftest.er1 >conftest.err
3727 rm -f conftest.er1
3728 cat conftest.err >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } && {
3731 test -z "$ac_cxx_werror_flag" ||
3732 test ! -s conftest.err
3733 } && test -s conftest.$ac_objext; then
3734 ac_cv_header_stdc=yes
3735 else
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 ac_cv_header_stdc=no
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 if test $ac_cv_header_stdc = yes; then
3745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3746 cat >conftest.$ac_ext <<_ACEOF
3747 /* confdefs.h. */
3748 _ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3752 #include <string.h>
3754 _ACEOF
3755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3756 $EGREP "memchr" >/dev/null 2>&1; then
3758 else
3759 ac_cv_header_stdc=no
3761 rm -f conftest*
3765 if test $ac_cv_header_stdc = yes; then
3766 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3767 cat >conftest.$ac_ext <<_ACEOF
3768 /* confdefs.h. */
3769 _ACEOF
3770 cat confdefs.h >>conftest.$ac_ext
3771 cat >>conftest.$ac_ext <<_ACEOF
3772 /* end confdefs.h. */
3773 #include <stdlib.h>
3775 _ACEOF
3776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3777 $EGREP "free" >/dev/null 2>&1; then
3779 else
3780 ac_cv_header_stdc=no
3782 rm -f conftest*
3786 if test $ac_cv_header_stdc = yes; then
3787 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3788 if test "$cross_compiling" = yes; then
3790 else
3791 cat >conftest.$ac_ext <<_ACEOF
3792 /* confdefs.h. */
3793 _ACEOF
3794 cat confdefs.h >>conftest.$ac_ext
3795 cat >>conftest.$ac_ext <<_ACEOF
3796 /* end confdefs.h. */
3797 #include <ctype.h>
3798 #include <stdlib.h>
3799 #if ((' ' & 0x0FF) == 0x020)
3800 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3801 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3802 #else
3803 # define ISLOWER(c) \
3804 (('a' <= (c) && (c) <= 'i') \
3805 || ('j' <= (c) && (c) <= 'r') \
3806 || ('s' <= (c) && (c) <= 'z'))
3807 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3808 #endif
3810 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3812 main ()
3814 int i;
3815 for (i = 0; i < 256; i++)
3816 if (XOR (islower (i), ISLOWER (i))
3817 || toupper (i) != TOUPPER (i))
3818 return 2;
3819 return 0;
3821 _ACEOF
3822 rm -f conftest$ac_exeext
3823 if { (ac_try="$ac_link"
3824 case "(($ac_try" in
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3827 esac
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829 (eval "$ac_link") 2>&5
3830 ac_status=$?
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3833 { (case "(($ac_try" in
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3836 esac
3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_try") 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3843 else
3844 echo "$as_me: program exited with status $ac_status" >&5
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3848 ( exit $ac_status )
3849 ac_cv_header_stdc=no
3851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3857 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3858 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3859 if test $ac_cv_header_stdc = yes; then
3861 cat >>confdefs.h <<\_ACEOF
3862 #define STDC_HEADERS 1
3863 _ACEOF
3867 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3877 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3878 inttypes.h stdint.h unistd.h
3880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886 cat >conftest.$ac_ext <<_ACEOF
3887 /* confdefs.h. */
3888 _ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 $ac_includes_default
3894 #include <$ac_header>
3895 _ACEOF
3896 rm -f conftest.$ac_objext
3897 if { (ac_try="$ac_compile"
3898 case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901 esac
3902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3903 (eval "$ac_compile") 2>conftest.er1
3904 ac_status=$?
3905 grep -v '^ *+' conftest.er1 >conftest.err
3906 rm -f conftest.er1
3907 cat conftest.err >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } && {
3910 test -z "$ac_cxx_werror_flag" ||
3911 test ! -s conftest.err
3912 } && test -s conftest.$ac_objext; then
3913 eval "$as_ac_Header=yes"
3914 else
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3918 eval "$as_ac_Header=no"
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 ac_res=`eval echo '${'$as_ac_Header'}'`
3924 { echo "$as_me:$LINENO: result: $ac_res" >&5
3925 echo "${ECHO_T}$ac_res" >&6; }
3926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3927 cat >>confdefs.h <<_ACEOF
3928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3929 _ACEOF
3933 done
3936 { echo "$as_me:$LINENO: checking for FILE" >&5
3937 echo $ECHO_N "checking for FILE... $ECHO_C" >&6; }
3938 if test "${ac_cv_type_FILE+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941 cat >conftest.$ac_ext <<_ACEOF
3942 /* confdefs.h. */
3943 _ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3947 $ac_includes_default
3948 typedef FILE ac__type_new_;
3950 main ()
3952 if ((ac__type_new_ *) 0)
3953 return 0;
3954 if (sizeof (ac__type_new_))
3955 return 0;
3957 return 0;
3959 _ACEOF
3960 rm -f conftest.$ac_objext
3961 if { (ac_try="$ac_compile"
3962 case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965 esac
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_compile") 2>conftest.er1
3968 ac_status=$?
3969 grep -v '^ *+' conftest.er1 >conftest.err
3970 rm -f conftest.er1
3971 cat conftest.err >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } && {
3974 test -z "$ac_cxx_werror_flag" ||
3975 test ! -s conftest.err
3976 } && test -s conftest.$ac_objext; then
3977 ac_cv_type_FILE=yes
3978 else
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3982 ac_cv_type_FILE=no
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 { echo "$as_me:$LINENO: result: $ac_cv_type_FILE" >&5
3988 echo "${ECHO_T}$ac_cv_type_FILE" >&6; }
3989 if test $ac_cv_type_FILE = yes; then
3991 cat >>confdefs.h <<_ACEOF
3992 #define HAVE_FILE 1
3993 _ACEOF
3998 { echo "$as_me:$LINENO: checking for intptr_t" >&5
3999 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
4000 if test "${ac_cv_type_intptr_t+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003 cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h. */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 $ac_includes_default
4010 typedef intptr_t ac__type_new_;
4012 main ()
4014 if ((ac__type_new_ *) 0)
4015 return 0;
4016 if (sizeof (ac__type_new_))
4017 return 0;
4019 return 0;
4021 _ACEOF
4022 rm -f conftest.$ac_objext
4023 if { (ac_try="$ac_compile"
4024 case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027 esac
4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029 (eval "$ac_compile") 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } && {
4036 test -z "$ac_cxx_werror_flag" ||
4037 test ! -s conftest.err
4038 } && test -s conftest.$ac_objext; then
4039 ac_cv_type_intptr_t=yes
4040 else
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4044 ac_cv_type_intptr_t=no
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
4050 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
4051 if test $ac_cv_type_intptr_t = yes; then
4053 cat >>confdefs.h <<_ACEOF
4054 #define HAVE_INTPTR_T 1
4055 _ACEOF
4060 { echo "$as_me:$LINENO: checking for time_t" >&5
4061 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
4062 if test "${ac_cv_type_time_t+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065 cat >conftest.$ac_ext <<_ACEOF
4066 /* confdefs.h. */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4071 $ac_includes_default
4072 typedef time_t ac__type_new_;
4074 main ()
4076 if ((ac__type_new_ *) 0)
4077 return 0;
4078 if (sizeof (ac__type_new_))
4079 return 0;
4081 return 0;
4083 _ACEOF
4084 rm -f conftest.$ac_objext
4085 if { (ac_try="$ac_compile"
4086 case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089 esac
4090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091 (eval "$ac_compile") 2>conftest.er1
4092 ac_status=$?
4093 grep -v '^ *+' conftest.er1 >conftest.err
4094 rm -f conftest.er1
4095 cat conftest.err >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } && {
4098 test -z "$ac_cxx_werror_flag" ||
4099 test ! -s conftest.err
4100 } && test -s conftest.$ac_objext; then
4101 ac_cv_type_time_t=yes
4102 else
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4106 ac_cv_type_time_t=no
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
4112 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
4113 if test $ac_cv_type_time_t = yes; then
4115 cat >>confdefs.h <<_ACEOF
4116 #define HAVE_TIME_T 1
4117 _ACEOF
4122 { echo "$as_me:$LINENO: checking for X" >&5
4123 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4126 # Check whether --with-x was given.
4127 if test "${with_x+set}" = set; then
4128 withval=$with_x;
4131 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4132 if test "x$with_x" = xno; then
4133 # The user explicitly disabled X.
4134 have_x=disabled
4135 else
4136 case $x_includes,$x_libraries in #(
4137 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4138 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4139 { (exit 1); exit 1; }; };; #(
4140 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143 # One or both of the vars are not set, and there is no cached value.
4144 ac_x_includes=no ac_x_libraries=no
4145 rm -f -r conftest.dir
4146 if mkdir conftest.dir; then
4147 cd conftest.dir
4148 cat >Imakefile <<'_ACEOF'
4149 incroot:
4150 @echo incroot='${INCROOT}'
4151 usrlibdir:
4152 @echo usrlibdir='${USRLIBDIR}'
4153 libdir:
4154 @echo libdir='${LIBDIR}'
4155 _ACEOF
4156 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4157 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4158 for ac_var in incroot usrlibdir libdir; do
4159 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4160 done
4161 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4162 for ac_extension in a so sl; do
4163 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4164 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4165 ac_im_usrlibdir=$ac_im_libdir; break
4167 done
4168 # Screen out bogus values from the imake configuration. They are
4169 # bogus both because they are the default anyway, and because
4170 # using them would break gcc on systems where it needs fixed includes.
4171 case $ac_im_incroot in
4172 /usr/include) ac_x_includes= ;;
4173 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4174 esac
4175 case $ac_im_usrlibdir in
4176 /usr/lib | /lib) ;;
4177 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4178 esac
4180 cd ..
4181 rm -f -r conftest.dir
4184 # Standard set of common directories for X headers.
4185 # Check X11 before X11Rn because it is often a symlink to the current release.
4186 ac_x_header_dirs='
4187 /usr/X11/include
4188 /usr/X11R6/include
4189 /usr/X11R5/include
4190 /usr/X11R4/include
4192 /usr/include/X11
4193 /usr/include/X11R6
4194 /usr/include/X11R5
4195 /usr/include/X11R4
4197 /usr/local/X11/include
4198 /usr/local/X11R6/include
4199 /usr/local/X11R5/include
4200 /usr/local/X11R4/include
4202 /usr/local/include/X11
4203 /usr/local/include/X11R6
4204 /usr/local/include/X11R5
4205 /usr/local/include/X11R4
4207 /usr/X386/include
4208 /usr/x386/include
4209 /usr/XFree86/include/X11
4211 /usr/include
4212 /usr/local/include
4213 /usr/unsupported/include
4214 /usr/athena/include
4215 /usr/local/x11r5/include
4216 /usr/lpp/Xamples/include
4218 /usr/openwin/include
4219 /usr/openwin/share/include'
4221 if test "$ac_x_includes" = no; then
4222 # Guess where to find include files, by looking for Xlib.h.
4223 # First, try using that file with no special directory specified.
4224 cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h. */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 #include <X11/Xlib.h>
4231 _ACEOF
4232 if { (ac_try="$ac_cpp conftest.$ac_ext"
4233 case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236 esac
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4239 ac_status=$?
4240 grep -v '^ *+' conftest.er1 >conftest.err
4241 rm -f conftest.er1
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } >/dev/null && {
4245 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4246 test ! -s conftest.err
4247 }; then
4248 # We can compile using X headers with no special include directory.
4249 ac_x_includes=
4250 else
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 for ac_dir in $ac_x_header_dirs; do
4255 if test -r "$ac_dir/X11/Xlib.h"; then
4256 ac_x_includes=$ac_dir
4257 break
4259 done
4262 rm -f conftest.err conftest.$ac_ext
4263 fi # $ac_x_includes = no
4265 if test "$ac_x_libraries" = no; then
4266 # Check for the libraries.
4267 # See if we find them without any special options.
4268 # Don't add to $LIBS permanently.
4269 ac_save_LIBS=$LIBS
4270 LIBS="-lX11 $LIBS"
4271 cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h. */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 #include <X11/Xlib.h>
4279 main ()
4281 XrmInitialize ()
4283 return 0;
4285 _ACEOF
4286 rm -f conftest.$ac_objext conftest$ac_exeext
4287 if { (ac_try="$ac_link"
4288 case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291 esac
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_link") 2>conftest.er1
4294 ac_status=$?
4295 grep -v '^ *+' conftest.er1 >conftest.err
4296 rm -f conftest.er1
4297 cat conftest.err >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } && {
4300 test -z "$ac_cxx_werror_flag" ||
4301 test ! -s conftest.err
4302 } && test -s conftest$ac_exeext &&
4303 $as_test_x conftest$ac_exeext; then
4304 LIBS=$ac_save_LIBS
4305 # We can link X programs with no special library path.
4306 ac_x_libraries=
4307 else
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4311 LIBS=$ac_save_LIBS
4312 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4314 # Don't even attempt the hair of trying to link an X program!
4315 for ac_extension in a so sl; do
4316 if test -r "$ac_dir/libX11.$ac_extension"; then
4317 ac_x_libraries=$ac_dir
4318 break 2
4320 done
4321 done
4324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4325 conftest$ac_exeext conftest.$ac_ext
4326 fi # $ac_x_libraries = no
4328 case $ac_x_includes,$ac_x_libraries in #(
4329 no,* | *,no | *\'*)
4330 # Didn't find X, or a directory has "'" in its name.
4331 ac_cv_have_x="have_x=no";; #(
4333 # Record where we found X for the cache.
4334 ac_cv_have_x="have_x=yes\
4335 ac_x_includes='$ac_x_includes'\
4336 ac_x_libraries='$ac_x_libraries'"
4337 esac
4339 ;; #(
4340 *) have_x=yes;;
4341 esac
4342 eval "$ac_cv_have_x"
4343 fi # $with_x != no
4345 if test "$have_x" != yes; then
4346 { echo "$as_me:$LINENO: result: $have_x" >&5
4347 echo "${ECHO_T}$have_x" >&6; }
4348 no_x=yes
4349 else
4350 # If each of the values was on the command line, it overrides each guess.
4351 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4352 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4353 # Update the cache value to reflect the command line values.
4354 ac_cv_have_x="have_x=yes\
4355 ac_x_includes='$x_includes'\
4356 ac_x_libraries='$x_libraries'"
4357 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4358 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4361 if test "$no_x" = yes; then
4362 # Not all programs may use this symbol, but it does not hurt to define it.
4364 cat >>confdefs.h <<\_ACEOF
4365 #define X_DISPLAY_MISSING 1
4366 _ACEOF
4368 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4369 else
4370 if test -n "$x_includes"; then
4371 X_CFLAGS="$X_CFLAGS -I$x_includes"
4374 # It would also be nice to do this for all -L options, not just this one.
4375 if test -n "$x_libraries"; then
4376 X_LIBS="$X_LIBS -L$x_libraries"
4377 # For Solaris; some versions of Sun CC require a space after -R and
4378 # others require no space. Words are not sufficient . . . .
4379 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4380 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4381 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4382 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
4383 ac_cxx_werror_flag=yes
4384 cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h. */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4392 main ()
4396 return 0;
4398 _ACEOF
4399 rm -f conftest.$ac_objext conftest$ac_exeext
4400 if { (ac_try="$ac_link"
4401 case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4404 esac
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_link") 2>conftest.er1
4407 ac_status=$?
4408 grep -v '^ *+' conftest.er1 >conftest.err
4409 rm -f conftest.er1
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } && {
4413 test -z "$ac_cxx_werror_flag" ||
4414 test ! -s conftest.err
4415 } && test -s conftest$ac_exeext &&
4416 $as_test_x conftest$ac_exeext; then
4417 { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4419 X_LIBS="$X_LIBS -R$x_libraries"
4420 else
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4424 LIBS="$ac_xsave_LIBS -R $x_libraries"
4425 cat >conftest.$ac_ext <<_ACEOF
4426 /* confdefs.h. */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4433 main ()
4437 return 0;
4439 _ACEOF
4440 rm -f conftest.$ac_objext conftest$ac_exeext
4441 if { (ac_try="$ac_link"
4442 case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445 esac
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_link") 2>conftest.er1
4448 ac_status=$?
4449 grep -v '^ *+' conftest.er1 >conftest.err
4450 rm -f conftest.er1
4451 cat conftest.err >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } && {
4454 test -z "$ac_cxx_werror_flag" ||
4455 test ! -s conftest.err
4456 } && test -s conftest$ac_exeext &&
4457 $as_test_x conftest$ac_exeext; then
4458 { echo "$as_me:$LINENO: result: yes" >&5
4459 echo "${ECHO_T}yes" >&6; }
4460 X_LIBS="$X_LIBS -R $x_libraries"
4461 else
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 { echo "$as_me:$LINENO: result: neither works" >&5
4466 echo "${ECHO_T}neither works" >&6; }
4469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4470 conftest$ac_exeext conftest.$ac_ext
4473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4474 conftest$ac_exeext conftest.$ac_ext
4475 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
4476 LIBS=$ac_xsave_LIBS
4479 # Check for system-dependent libraries X programs must link with.
4480 # Do this before checking for the system-independent R6 libraries
4481 # (-lICE), since we may need -lsocket or whatever for X linking.
4483 if test "$ISC" = yes; then
4484 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4485 else
4486 # Martyn Johnson says this is needed for Ultrix, if the X
4487 # libraries were built with DECnet support. And Karl Berry says
4488 # the Alpha needs dnet_stub (dnet does not exist).
4489 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4490 cat >conftest.$ac_ext <<_ACEOF
4491 /* confdefs.h. */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4497 /* Override any GCC internal prototype to avoid an error.
4498 Use char because int might match the return type of a GCC
4499 builtin and then its argument prototype would still apply. */
4500 #ifdef __cplusplus
4501 extern "C"
4502 #endif
4503 char XOpenDisplay ();
4505 main ()
4507 return XOpenDisplay ();
4509 return 0;
4511 _ACEOF
4512 rm -f conftest.$ac_objext conftest$ac_exeext
4513 if { (ac_try="$ac_link"
4514 case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4517 esac
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_link") 2>conftest.er1
4520 ac_status=$?
4521 grep -v '^ *+' conftest.er1 >conftest.err
4522 rm -f conftest.er1
4523 cat conftest.err >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } && {
4526 test -z "$ac_cxx_werror_flag" ||
4527 test ! -s conftest.err
4528 } && test -s conftest$ac_exeext &&
4529 $as_test_x conftest$ac_exeext; then
4531 else
4532 echo "$as_me: failed program was:" >&5
4533 sed 's/^/| /' conftest.$ac_ext >&5
4535 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4536 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4537 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540 ac_check_lib_save_LIBS=$LIBS
4541 LIBS="-ldnet $LIBS"
4542 cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h. */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4549 /* Override any GCC internal prototype to avoid an error.
4550 Use char because int might match the return type of a GCC
4551 builtin and then its argument prototype would still apply. */
4552 #ifdef __cplusplus
4553 extern "C"
4554 #endif
4555 char dnet_ntoa ();
4557 main ()
4559 return dnet_ntoa ();
4561 return 0;
4563 _ACEOF
4564 rm -f conftest.$ac_objext conftest$ac_exeext
4565 if { (ac_try="$ac_link"
4566 case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569 esac
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_link") 2>conftest.er1
4572 ac_status=$?
4573 grep -v '^ *+' conftest.er1 >conftest.err
4574 rm -f conftest.er1
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } && {
4578 test -z "$ac_cxx_werror_flag" ||
4579 test ! -s conftest.err
4580 } && test -s conftest$ac_exeext &&
4581 $as_test_x conftest$ac_exeext; then
4582 ac_cv_lib_dnet_dnet_ntoa=yes
4583 else
4584 echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4587 ac_cv_lib_dnet_dnet_ntoa=no
4590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4591 conftest$ac_exeext conftest.$ac_ext
4592 LIBS=$ac_check_lib_save_LIBS
4594 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4595 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4596 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4597 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4600 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4601 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4602 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4603 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606 ac_check_lib_save_LIBS=$LIBS
4607 LIBS="-ldnet_stub $LIBS"
4608 cat >conftest.$ac_ext <<_ACEOF
4609 /* confdefs.h. */
4610 _ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h. */
4615 /* Override any GCC internal prototype to avoid an error.
4616 Use char because int might match the return type of a GCC
4617 builtin and then its argument prototype would still apply. */
4618 #ifdef __cplusplus
4619 extern "C"
4620 #endif
4621 char dnet_ntoa ();
4623 main ()
4625 return dnet_ntoa ();
4627 return 0;
4629 _ACEOF
4630 rm -f conftest.$ac_objext conftest$ac_exeext
4631 if { (ac_try="$ac_link"
4632 case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635 esac
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_link") 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } && {
4644 test -z "$ac_cxx_werror_flag" ||
4645 test ! -s conftest.err
4646 } && test -s conftest$ac_exeext &&
4647 $as_test_x conftest$ac_exeext; then
4648 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4649 else
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653 ac_cv_lib_dnet_stub_dnet_ntoa=no
4656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4657 conftest$ac_exeext conftest.$ac_ext
4658 LIBS=$ac_check_lib_save_LIBS
4660 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4661 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4662 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4663 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4670 conftest$ac_exeext conftest.$ac_ext
4671 LIBS="$ac_xsave_LIBS"
4673 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4674 # to get the SysV transport functions.
4675 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4676 # needs -lnsl.
4677 # The nsl library prevents programs from opening the X display
4678 # on Irix 5.2, according to T.E. Dickey.
4679 # The functions gethostbyname, getservbyname, and inet_addr are
4680 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4681 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4682 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4683 if test "${ac_cv_func_gethostbyname+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686 cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h. */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4694 #define gethostbyname innocuous_gethostbyname
4696 /* System header to define __stub macros and hopefully few prototypes,
4697 which can conflict with char gethostbyname (); below.
4698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4699 <limits.h> exists even on freestanding compilers. */
4701 #ifdef __STDC__
4702 # include <limits.h>
4703 #else
4704 # include <assert.h>
4705 #endif
4707 #undef gethostbyname
4709 /* Override any GCC internal prototype to avoid an error.
4710 Use char because int might match the return type of a GCC
4711 builtin and then its argument prototype would still apply. */
4712 #ifdef __cplusplus
4713 extern "C"
4714 #endif
4715 char gethostbyname ();
4716 /* The GNU C library defines this for functions which it implements
4717 to always fail with ENOSYS. Some functions are actually named
4718 something starting with __ and the normal name is an alias. */
4719 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4720 choke me
4721 #endif
4724 main ()
4726 return gethostbyname ();
4728 return 0;
4730 _ACEOF
4731 rm -f conftest.$ac_objext conftest$ac_exeext
4732 if { (ac_try="$ac_link"
4733 case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736 esac
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_link") 2>conftest.er1
4739 ac_status=$?
4740 grep -v '^ *+' conftest.er1 >conftest.err
4741 rm -f conftest.er1
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } && {
4745 test -z "$ac_cxx_werror_flag" ||
4746 test ! -s conftest.err
4747 } && test -s conftest$ac_exeext &&
4748 $as_test_x conftest$ac_exeext; then
4749 ac_cv_func_gethostbyname=yes
4750 else
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4754 ac_cv_func_gethostbyname=no
4757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4758 conftest$ac_exeext conftest.$ac_ext
4760 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4761 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4763 if test $ac_cv_func_gethostbyname = no; then
4764 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4765 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4766 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769 ac_check_lib_save_LIBS=$LIBS
4770 LIBS="-lnsl $LIBS"
4771 cat >conftest.$ac_ext <<_ACEOF
4772 /* confdefs.h. */
4773 _ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4778 /* Override any GCC internal prototype to avoid an error.
4779 Use char because int might match the return type of a GCC
4780 builtin and then its argument prototype would still apply. */
4781 #ifdef __cplusplus
4782 extern "C"
4783 #endif
4784 char gethostbyname ();
4786 main ()
4788 return gethostbyname ();
4790 return 0;
4792 _ACEOF
4793 rm -f conftest.$ac_objext conftest$ac_exeext
4794 if { (ac_try="$ac_link"
4795 case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4798 esac
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_link") 2>conftest.er1
4801 ac_status=$?
4802 grep -v '^ *+' conftest.er1 >conftest.err
4803 rm -f conftest.er1
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } && {
4807 test -z "$ac_cxx_werror_flag" ||
4808 test ! -s conftest.err
4809 } && test -s conftest$ac_exeext &&
4810 $as_test_x conftest$ac_exeext; then
4811 ac_cv_lib_nsl_gethostbyname=yes
4812 else
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4816 ac_cv_lib_nsl_gethostbyname=no
4819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4820 conftest$ac_exeext conftest.$ac_ext
4821 LIBS=$ac_check_lib_save_LIBS
4823 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4824 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4825 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4826 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4829 if test $ac_cv_lib_nsl_gethostbyname = no; then
4830 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4831 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4832 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835 ac_check_lib_save_LIBS=$LIBS
4836 LIBS="-lbsd $LIBS"
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h. */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4844 /* Override any GCC internal prototype to avoid an error.
4845 Use char because int might match the return type of a GCC
4846 builtin and then its argument prototype would still apply. */
4847 #ifdef __cplusplus
4848 extern "C"
4849 #endif
4850 char gethostbyname ();
4852 main ()
4854 return gethostbyname ();
4856 return 0;
4858 _ACEOF
4859 rm -f conftest.$ac_objext conftest$ac_exeext
4860 if { (ac_try="$ac_link"
4861 case "(($ac_try" in
4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4864 esac
4865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4866 (eval "$ac_link") 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } && {
4873 test -z "$ac_cxx_werror_flag" ||
4874 test ! -s conftest.err
4875 } && test -s conftest$ac_exeext &&
4876 $as_test_x conftest$ac_exeext; then
4877 ac_cv_lib_bsd_gethostbyname=yes
4878 else
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4882 ac_cv_lib_bsd_gethostbyname=no
4885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4886 conftest$ac_exeext conftest.$ac_ext
4887 LIBS=$ac_check_lib_save_LIBS
4889 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4890 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4891 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4892 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4898 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4899 # socket/setsockopt and other routines are undefined under SCO ODT
4900 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4901 # on later versions), says Simon Leinen: it contains gethostby*
4902 # variants that don't use the name server (or something). -lsocket
4903 # must be given before -lnsl if both are needed. We assume that
4904 # if connect needs -lnsl, so does gethostbyname.
4905 { echo "$as_me:$LINENO: checking for connect" >&5
4906 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4907 if test "${ac_cv_func_connect+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910 cat >conftest.$ac_ext <<_ACEOF
4911 /* confdefs.h. */
4912 _ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4916 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4918 #define connect innocuous_connect
4920 /* System header to define __stub macros and hopefully few prototypes,
4921 which can conflict with char connect (); below.
4922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4923 <limits.h> exists even on freestanding compilers. */
4925 #ifdef __STDC__
4926 # include <limits.h>
4927 #else
4928 # include <assert.h>
4929 #endif
4931 #undef connect
4933 /* Override any GCC internal prototype to avoid an error.
4934 Use char because int might match the return type of a GCC
4935 builtin and then its argument prototype would still apply. */
4936 #ifdef __cplusplus
4937 extern "C"
4938 #endif
4939 char connect ();
4940 /* The GNU C library defines this for functions which it implements
4941 to always fail with ENOSYS. Some functions are actually named
4942 something starting with __ and the normal name is an alias. */
4943 #if defined __stub_connect || defined __stub___connect
4944 choke me
4945 #endif
4948 main ()
4950 return connect ();
4952 return 0;
4954 _ACEOF
4955 rm -f conftest.$ac_objext conftest$ac_exeext
4956 if { (ac_try="$ac_link"
4957 case "(($ac_try" in
4958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959 *) ac_try_echo=$ac_try;;
4960 esac
4961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4962 (eval "$ac_link") 2>conftest.er1
4963 ac_status=$?
4964 grep -v '^ *+' conftest.er1 >conftest.err
4965 rm -f conftest.er1
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } && {
4969 test -z "$ac_cxx_werror_flag" ||
4970 test ! -s conftest.err
4971 } && test -s conftest$ac_exeext &&
4972 $as_test_x conftest$ac_exeext; then
4973 ac_cv_func_connect=yes
4974 else
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4978 ac_cv_func_connect=no
4981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4982 conftest$ac_exeext conftest.$ac_ext
4984 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4985 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4987 if test $ac_cv_func_connect = no; then
4988 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4989 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4990 if test "${ac_cv_lib_socket_connect+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993 ac_check_lib_save_LIBS=$LIBS
4994 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h. */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5002 /* Override any GCC internal prototype to avoid an error.
5003 Use char because int might match the return type of a GCC
5004 builtin and then its argument prototype would still apply. */
5005 #ifdef __cplusplus
5006 extern "C"
5007 #endif
5008 char connect ();
5010 main ()
5012 return connect ();
5014 return 0;
5016 _ACEOF
5017 rm -f conftest.$ac_objext conftest$ac_exeext
5018 if { (ac_try="$ac_link"
5019 case "(($ac_try" in
5020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5022 esac
5023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024 (eval "$ac_link") 2>conftest.er1
5025 ac_status=$?
5026 grep -v '^ *+' conftest.er1 >conftest.err
5027 rm -f conftest.er1
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } && {
5031 test -z "$ac_cxx_werror_flag" ||
5032 test ! -s conftest.err
5033 } && test -s conftest$ac_exeext &&
5034 $as_test_x conftest$ac_exeext; then
5035 ac_cv_lib_socket_connect=yes
5036 else
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5040 ac_cv_lib_socket_connect=no
5043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5044 conftest$ac_exeext conftest.$ac_ext
5045 LIBS=$ac_check_lib_save_LIBS
5047 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5048 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5049 if test $ac_cv_lib_socket_connect = yes; then
5050 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5055 # Guillermo Gomez says -lposix is necessary on A/UX.
5056 { echo "$as_me:$LINENO: checking for remove" >&5
5057 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5058 if test "${ac_cv_func_remove+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 else
5061 cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h. */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5069 #define remove innocuous_remove
5071 /* System header to define __stub macros and hopefully few prototypes,
5072 which can conflict with char remove (); below.
5073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5074 <limits.h> exists even on freestanding compilers. */
5076 #ifdef __STDC__
5077 # include <limits.h>
5078 #else
5079 # include <assert.h>
5080 #endif
5082 #undef remove
5084 /* Override any GCC internal prototype to avoid an error.
5085 Use char because int might match the return type of a GCC
5086 builtin and then its argument prototype would still apply. */
5087 #ifdef __cplusplus
5088 extern "C"
5089 #endif
5090 char remove ();
5091 /* The GNU C library defines this for functions which it implements
5092 to always fail with ENOSYS. Some functions are actually named
5093 something starting with __ and the normal name is an alias. */
5094 #if defined __stub_remove || defined __stub___remove
5095 choke me
5096 #endif
5099 main ()
5101 return remove ();
5103 return 0;
5105 _ACEOF
5106 rm -f conftest.$ac_objext conftest$ac_exeext
5107 if { (ac_try="$ac_link"
5108 case "(($ac_try" in
5109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5110 *) ac_try_echo=$ac_try;;
5111 esac
5112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5113 (eval "$ac_link") 2>conftest.er1
5114 ac_status=$?
5115 grep -v '^ *+' conftest.er1 >conftest.err
5116 rm -f conftest.er1
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && {
5120 test -z "$ac_cxx_werror_flag" ||
5121 test ! -s conftest.err
5122 } && test -s conftest$ac_exeext &&
5123 $as_test_x conftest$ac_exeext; then
5124 ac_cv_func_remove=yes
5125 else
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5129 ac_cv_func_remove=no
5132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5133 conftest$ac_exeext conftest.$ac_ext
5135 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5136 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5138 if test $ac_cv_func_remove = no; then
5139 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5140 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5141 if test "${ac_cv_lib_posix_remove+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144 ac_check_lib_save_LIBS=$LIBS
5145 LIBS="-lposix $LIBS"
5146 cat >conftest.$ac_ext <<_ACEOF
5147 /* confdefs.h. */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5153 /* Override any GCC internal prototype to avoid an error.
5154 Use char because int might match the return type of a GCC
5155 builtin and then its argument prototype would still apply. */
5156 #ifdef __cplusplus
5157 extern "C"
5158 #endif
5159 char remove ();
5161 main ()
5163 return remove ();
5165 return 0;
5167 _ACEOF
5168 rm -f conftest.$ac_objext conftest$ac_exeext
5169 if { (ac_try="$ac_link"
5170 case "(($ac_try" in
5171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172 *) ac_try_echo=$ac_try;;
5173 esac
5174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5175 (eval "$ac_link") 2>conftest.er1
5176 ac_status=$?
5177 grep -v '^ *+' conftest.er1 >conftest.err
5178 rm -f conftest.er1
5179 cat conftest.err >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } && {
5182 test -z "$ac_cxx_werror_flag" ||
5183 test ! -s conftest.err
5184 } && test -s conftest$ac_exeext &&
5185 $as_test_x conftest$ac_exeext; then
5186 ac_cv_lib_posix_remove=yes
5187 else
5188 echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5191 ac_cv_lib_posix_remove=no
5194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5195 conftest$ac_exeext conftest.$ac_ext
5196 LIBS=$ac_check_lib_save_LIBS
5198 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5199 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5200 if test $ac_cv_lib_posix_remove = yes; then
5201 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5206 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5207 { echo "$as_me:$LINENO: checking for shmat" >&5
5208 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5209 if test "${ac_cv_func_shmat+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 cat >conftest.$ac_ext <<_ACEOF
5213 /* confdefs.h. */
5214 _ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5218 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5220 #define shmat innocuous_shmat
5222 /* System header to define __stub macros and hopefully few prototypes,
5223 which can conflict with char shmat (); below.
5224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5225 <limits.h> exists even on freestanding compilers. */
5227 #ifdef __STDC__
5228 # include <limits.h>
5229 #else
5230 # include <assert.h>
5231 #endif
5233 #undef shmat
5235 /* Override any GCC internal prototype to avoid an error.
5236 Use char because int might match the return type of a GCC
5237 builtin and then its argument prototype would still apply. */
5238 #ifdef __cplusplus
5239 extern "C"
5240 #endif
5241 char shmat ();
5242 /* The GNU C library defines this for functions which it implements
5243 to always fail with ENOSYS. Some functions are actually named
5244 something starting with __ and the normal name is an alias. */
5245 #if defined __stub_shmat || defined __stub___shmat
5246 choke me
5247 #endif
5250 main ()
5252 return shmat ();
5254 return 0;
5256 _ACEOF
5257 rm -f conftest.$ac_objext conftest$ac_exeext
5258 if { (ac_try="$ac_link"
5259 case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5262 esac
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_link") 2>conftest.er1
5265 ac_status=$?
5266 grep -v '^ *+' conftest.er1 >conftest.err
5267 rm -f conftest.er1
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } && {
5271 test -z "$ac_cxx_werror_flag" ||
5272 test ! -s conftest.err
5273 } && test -s conftest$ac_exeext &&
5274 $as_test_x conftest$ac_exeext; then
5275 ac_cv_func_shmat=yes
5276 else
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5280 ac_cv_func_shmat=no
5283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5284 conftest$ac_exeext conftest.$ac_ext
5286 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5287 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5289 if test $ac_cv_func_shmat = no; then
5290 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5291 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5292 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295 ac_check_lib_save_LIBS=$LIBS
5296 LIBS="-lipc $LIBS"
5297 cat >conftest.$ac_ext <<_ACEOF
5298 /* confdefs.h. */
5299 _ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5304 /* Override any GCC internal prototype to avoid an error.
5305 Use char because int might match the return type of a GCC
5306 builtin and then its argument prototype would still apply. */
5307 #ifdef __cplusplus
5308 extern "C"
5309 #endif
5310 char shmat ();
5312 main ()
5314 return shmat ();
5316 return 0;
5318 _ACEOF
5319 rm -f conftest.$ac_objext conftest$ac_exeext
5320 if { (ac_try="$ac_link"
5321 case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5324 esac
5325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_link") 2>conftest.er1
5327 ac_status=$?
5328 grep -v '^ *+' conftest.er1 >conftest.err
5329 rm -f conftest.er1
5330 cat conftest.err >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } && {
5333 test -z "$ac_cxx_werror_flag" ||
5334 test ! -s conftest.err
5335 } && test -s conftest$ac_exeext &&
5336 $as_test_x conftest$ac_exeext; then
5337 ac_cv_lib_ipc_shmat=yes
5338 else
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5342 ac_cv_lib_ipc_shmat=no
5345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5346 conftest$ac_exeext conftest.$ac_ext
5347 LIBS=$ac_check_lib_save_LIBS
5349 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5350 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5351 if test $ac_cv_lib_ipc_shmat = yes; then
5352 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5358 # Check for libraries that X11R6 Xt/Xaw programs need.
5359 ac_save_LDFLAGS=$LDFLAGS
5360 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5361 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5362 # check for ICE first), but we must link in the order -lSM -lICE or
5363 # we get undefined symbols. So assume we have SM if we have ICE.
5364 # These have to be linked with before -lX11, unlike the other
5365 # libraries we check for below, so use a different variable.
5366 # John Interrante, Karl Berry
5367 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5368 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5369 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372 ac_check_lib_save_LIBS=$LIBS
5373 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5374 cat >conftest.$ac_ext <<_ACEOF
5375 /* confdefs.h. */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5381 /* Override any GCC internal prototype to avoid an error.
5382 Use char because int might match the return type of a GCC
5383 builtin and then its argument prototype would still apply. */
5384 #ifdef __cplusplus
5385 extern "C"
5386 #endif
5387 char IceConnectionNumber ();
5389 main ()
5391 return IceConnectionNumber ();
5393 return 0;
5395 _ACEOF
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (ac_try="$ac_link"
5398 case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5401 esac
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_link") 2>conftest.er1
5404 ac_status=$?
5405 grep -v '^ *+' conftest.er1 >conftest.err
5406 rm -f conftest.er1
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } && {
5410 test -z "$ac_cxx_werror_flag" ||
5411 test ! -s conftest.err
5412 } && test -s conftest$ac_exeext &&
5413 $as_test_x conftest$ac_exeext; then
5414 ac_cv_lib_ICE_IceConnectionNumber=yes
5415 else
5416 echo "$as_me: failed program was:" >&5
5417 sed 's/^/| /' conftest.$ac_ext >&5
5419 ac_cv_lib_ICE_IceConnectionNumber=no
5422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5423 conftest$ac_exeext conftest.$ac_ext
5424 LIBS=$ac_check_lib_save_LIBS
5426 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5427 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5428 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5429 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5432 LDFLAGS=$ac_save_LDFLAGS
5438 for ac_header in pty.h util.h
5440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 ac_res=`eval echo '${'$as_ac_Header'}'`
5448 { echo "$as_me:$LINENO: result: $ac_res" >&5
5449 echo "${ECHO_T}$ac_res" >&6; }
5450 else
5451 # Is the header compilable?
5452 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5454 cat >conftest.$ac_ext <<_ACEOF
5455 /* confdefs.h. */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 $ac_includes_default
5461 #include <$ac_header>
5462 _ACEOF
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5465 case "(($ac_try" in
5466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467 *) ac_try_echo=$ac_try;;
5468 esac
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470 (eval "$ac_compile") 2>conftest.er1
5471 ac_status=$?
5472 grep -v '^ *+' conftest.er1 >conftest.err
5473 rm -f conftest.er1
5474 cat conftest.err >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } && {
5477 test -z "$ac_cxx_werror_flag" ||
5478 test ! -s conftest.err
5479 } && test -s conftest.$ac_objext; then
5480 ac_header_compiler=yes
5481 else
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 ac_header_compiler=no
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5490 echo "${ECHO_T}$ac_header_compiler" >&6; }
5492 # Is the header present?
5493 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h. */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501 #include <$ac_header>
5502 _ACEOF
5503 if { (ac_try="$ac_cpp conftest.$ac_ext"
5504 case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507 esac
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } >/dev/null && {
5516 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5517 test ! -s conftest.err
5518 }; then
5519 ac_header_preproc=yes
5520 else
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 ac_header_preproc=no
5527 rm -f conftest.err conftest.$ac_ext
5528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5529 echo "${ECHO_T}$ac_header_preproc" >&6; }
5531 # So? What about this header?
5532 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5533 yes:no: )
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5538 ac_header_preproc=yes
5540 no:yes:* )
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5555 esac
5556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561 eval "$as_ac_Header=\$ac_header_preproc"
5563 ac_res=`eval echo '${'$as_ac_Header'}'`
5564 { echo "$as_me:$LINENO: result: $ac_res" >&5
5565 echo "${ECHO_T}$ac_res" >&6; }
5568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5569 cat >>confdefs.h <<_ACEOF
5570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5571 _ACEOF
5575 done
5578 for ac_func in gettimeofday
5580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 else
5586 cat >conftest.$ac_ext <<_ACEOF
5587 /* confdefs.h. */
5588 _ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5594 #define $ac_func innocuous_$ac_func
5596 /* System header to define __stub macros and hopefully few prototypes,
5597 which can conflict with char $ac_func (); below.
5598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5599 <limits.h> exists even on freestanding compilers. */
5601 #ifdef __STDC__
5602 # include <limits.h>
5603 #else
5604 # include <assert.h>
5605 #endif
5607 #undef $ac_func
5609 /* Override any GCC internal prototype to avoid an error.
5610 Use char because int might match the return type of a GCC
5611 builtin and then its argument prototype would still apply. */
5612 #ifdef __cplusplus
5613 extern "C"
5614 #endif
5615 char $ac_func ();
5616 /* The GNU C library defines this for functions which it implements
5617 to always fail with ENOSYS. Some functions are actually named
5618 something starting with __ and the normal name is an alias. */
5619 #if defined __stub_$ac_func || defined __stub___$ac_func
5620 choke me
5621 #endif
5624 main ()
5626 return $ac_func ();
5628 return 0;
5630 _ACEOF
5631 rm -f conftest.$ac_objext conftest$ac_exeext
5632 if { (ac_try="$ac_link"
5633 case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636 esac
5637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_link") 2>conftest.er1
5639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } && {
5645 test -z "$ac_cxx_werror_flag" ||
5646 test ! -s conftest.err
5647 } && test -s conftest$ac_exeext &&
5648 $as_test_x conftest$ac_exeext; then
5649 eval "$as_ac_var=yes"
5650 else
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 eval "$as_ac_var=no"
5657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5658 conftest$ac_exeext conftest.$ac_ext
5660 ac_res=`eval echo '${'$as_ac_var'}'`
5661 { echo "$as_me:$LINENO: result: $ac_res" >&5
5662 echo "${ECHO_T}$ac_res" >&6; }
5663 if test `eval echo '${'$as_ac_var'}'` = yes; then
5664 cat >>confdefs.h <<_ACEOF
5665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5666 _ACEOF
5669 done
5672 #--------------------------------------------------------------------
5673 # Checks for dl library
5674 #--------------------------------------------------------------------
5676 { echo "$as_me:$LINENO: checking for dlopen" >&5
5677 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
5678 if test "${ac_cv_func_dlopen+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 else
5681 cat >conftest.$ac_ext <<_ACEOF
5682 /* confdefs.h. */
5683 _ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5687 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
5688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5689 #define dlopen innocuous_dlopen
5691 /* System header to define __stub macros and hopefully few prototypes,
5692 which can conflict with char dlopen (); below.
5693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5694 <limits.h> exists even on freestanding compilers. */
5696 #ifdef __STDC__
5697 # include <limits.h>
5698 #else
5699 # include <assert.h>
5700 #endif
5702 #undef dlopen
5704 /* Override any GCC internal prototype to avoid an error.
5705 Use char because int might match the return type of a GCC
5706 builtin and then its argument prototype would still apply. */
5707 #ifdef __cplusplus
5708 extern "C"
5709 #endif
5710 char dlopen ();
5711 /* The GNU C library defines this for functions which it implements
5712 to always fail with ENOSYS. Some functions are actually named
5713 something starting with __ and the normal name is an alias. */
5714 #if defined __stub_dlopen || defined __stub___dlopen
5715 choke me
5716 #endif
5719 main ()
5721 return dlopen ();
5723 return 0;
5725 _ACEOF
5726 rm -f conftest.$ac_objext conftest$ac_exeext
5727 if { (ac_try="$ac_link"
5728 case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5731 esac
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_link") 2>conftest.er1
5734 ac_status=$?
5735 grep -v '^ *+' conftest.er1 >conftest.err
5736 rm -f conftest.er1
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } && {
5740 test -z "$ac_cxx_werror_flag" ||
5741 test ! -s conftest.err
5742 } && test -s conftest$ac_exeext &&
5743 $as_test_x conftest$ac_exeext; then
5744 ac_cv_func_dlopen=yes
5745 else
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5749 ac_cv_func_dlopen=no
5752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5753 conftest$ac_exeext conftest.$ac_ext
5755 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
5756 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
5758 if test "$ac_cv_func_dl" = "yes"; then
5760 cat >>confdefs.h <<\_ACEOF
5761 #define DYNAMIC_LINKING 1
5762 _ACEOF
5764 else
5766 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5767 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5768 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 ac_check_lib_save_LIBS=$LIBS
5772 LIBS="-ldl $LIBS"
5773 cat >conftest.$ac_ext <<_ACEOF
5774 /* confdefs.h. */
5775 _ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5780 /* Override any GCC internal prototype to avoid an error.
5781 Use char because int might match the return type of a GCC
5782 builtin and then its argument prototype would still apply. */
5783 #ifdef __cplusplus
5784 extern "C"
5785 #endif
5786 char dlopen ();
5788 main ()
5790 return dlopen ();
5792 return 0;
5794 _ACEOF
5795 rm -f conftest.$ac_objext conftest$ac_exeext
5796 if { (ac_try="$ac_link"
5797 case "(($ac_try" in
5798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5800 esac
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_link") 2>conftest.er1
5803 ac_status=$?
5804 grep -v '^ *+' conftest.er1 >conftest.err
5805 rm -f conftest.er1
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } && {
5809 test -z "$ac_cxx_werror_flag" ||
5810 test ! -s conftest.err
5811 } && test -s conftest$ac_exeext &&
5812 $as_test_x conftest$ac_exeext; then
5813 ac_cv_lib_dl_dlopen=yes
5814 else
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5818 ac_cv_lib_dl_dlopen=no
5821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5822 conftest$ac_exeext conftest.$ac_ext
5823 LIBS=$ac_check_lib_save_LIBS
5825 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5826 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5827 if test $ac_cv_lib_dl_dlopen = yes; then
5828 cat >>confdefs.h <<_ACEOF
5829 #define HAVE_LIBDL 1
5830 _ACEOF
5832 LIBS="-ldl $LIBS"
5836 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5838 for ac_func in dlopen
5840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5841 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5843 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 else
5846 cat >conftest.$ac_ext <<_ACEOF
5847 /* confdefs.h. */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5854 #define $ac_func innocuous_$ac_func
5856 /* System header to define __stub macros and hopefully few prototypes,
5857 which can conflict with char $ac_func (); below.
5858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5859 <limits.h> exists even on freestanding compilers. */
5861 #ifdef __STDC__
5862 # include <limits.h>
5863 #else
5864 # include <assert.h>
5865 #endif
5867 #undef $ac_func
5869 /* Override any GCC internal prototype to avoid an error.
5870 Use char because int might match the return type of a GCC
5871 builtin and then its argument prototype would still apply. */
5872 #ifdef __cplusplus
5873 extern "C"
5874 #endif
5875 char $ac_func ();
5876 /* The GNU C library defines this for functions which it implements
5877 to always fail with ENOSYS. Some functions are actually named
5878 something starting with __ and the normal name is an alias. */
5879 #if defined __stub_$ac_func || defined __stub___$ac_func
5880 choke me
5881 #endif
5884 main ()
5886 return $ac_func ();
5888 return 0;
5890 _ACEOF
5891 rm -f conftest.$ac_objext conftest$ac_exeext
5892 if { (ac_try="$ac_link"
5893 case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896 esac
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_link") 2>conftest.er1
5899 ac_status=$?
5900 grep -v '^ *+' conftest.er1 >conftest.err
5901 rm -f conftest.er1
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && {
5905 test -z "$ac_cxx_werror_flag" ||
5906 test ! -s conftest.err
5907 } && test -s conftest$ac_exeext &&
5908 $as_test_x conftest$ac_exeext; then
5909 eval "$as_ac_var=yes"
5910 else
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5914 eval "$as_ac_var=no"
5917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5918 conftest$ac_exeext conftest.$ac_ext
5920 ac_res=`eval echo '${'$as_ac_var'}'`
5921 { echo "$as_me:$LINENO: result: $ac_res" >&5
5922 echo "${ECHO_T}$ac_res" >&6; }
5923 if test `eval echo '${'$as_ac_var'}'` = yes; then
5924 cat >>confdefs.h <<_ACEOF
5925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5926 _ACEOF
5929 done
5931 CONFIG_BDL="-ldl"
5933 cat >>confdefs.h <<\_ACEOF
5934 #define DYNAMIC_LINKING 1
5935 _ACEOF
5937 else
5939 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
5940 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
5941 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 else
5944 ac_check_lib_save_LIBS=$LIBS
5945 LIBS="-ldld $LIBS"
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h. */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5953 /* Override any GCC internal prototype to avoid an error.
5954 Use char because int might match the return type of a GCC
5955 builtin and then its argument prototype would still apply. */
5956 #ifdef __cplusplus
5957 extern "C"
5958 #endif
5959 char dld_link ();
5961 main ()
5963 return dld_link ();
5965 return 0;
5967 _ACEOF
5968 rm -f conftest.$ac_objext conftest$ac_exeext
5969 if { (ac_try="$ac_link"
5970 case "(($ac_try" in
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5973 esac
5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_link") 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } && {
5982 test -z "$ac_cxx_werror_flag" ||
5983 test ! -s conftest.err
5984 } && test -s conftest$ac_exeext &&
5985 $as_test_x conftest$ac_exeext; then
5986 ac_cv_lib_dld_dld_link=yes
5987 else
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 ac_cv_lib_dld_dld_link=no
5994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5995 conftest$ac_exeext conftest.$ac_ext
5996 LIBS=$ac_check_lib_save_LIBS
5998 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
5999 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
6000 if test $ac_cv_lib_dld_dld_link = yes; then
6001 cat >>confdefs.h <<_ACEOF
6002 #define HAVE_LIBDLD 1
6003 _ACEOF
6005 LIBS="-ldld $LIBS"
6009 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
6010 CONFIG_BDL="-ldl"
6012 cat >>confdefs.h <<\_ACEOF
6013 #define DYNAMIC_LINKING 1
6014 _ACEOF
6016 else
6018 for ac_func in shl_load
6020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026 cat >conftest.$ac_ext <<_ACEOF
6027 /* confdefs.h. */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6034 #define $ac_func innocuous_$ac_func
6036 /* System header to define __stub macros and hopefully few prototypes,
6037 which can conflict with char $ac_func (); below.
6038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6039 <limits.h> exists even on freestanding compilers. */
6041 #ifdef __STDC__
6042 # include <limits.h>
6043 #else
6044 # include <assert.h>
6045 #endif
6047 #undef $ac_func
6049 /* Override any GCC internal prototype to avoid an error.
6050 Use char because int might match the return type of a GCC
6051 builtin and then its argument prototype would still apply. */
6052 #ifdef __cplusplus
6053 extern "C"
6054 #endif
6055 char $ac_func ();
6056 /* The GNU C library defines this for functions which it implements
6057 to always fail with ENOSYS. Some functions are actually named
6058 something starting with __ and the normal name is an alias. */
6059 #if defined __stub_$ac_func || defined __stub___$ac_func
6060 choke me
6061 #endif
6064 main ()
6066 return $ac_func ();
6068 return 0;
6070 _ACEOF
6071 rm -f conftest.$ac_objext conftest$ac_exeext
6072 if { (ac_try="$ac_link"
6073 case "(($ac_try" in
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6076 esac
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_link") 2>conftest.er1
6079 ac_status=$?
6080 grep -v '^ *+' conftest.er1 >conftest.err
6081 rm -f conftest.er1
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } && {
6085 test -z "$ac_cxx_werror_flag" ||
6086 test ! -s conftest.err
6087 } && test -s conftest$ac_exeext &&
6088 $as_test_x conftest$ac_exeext; then
6089 eval "$as_ac_var=yes"
6090 else
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6094 eval "$as_ac_var=no"
6097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6098 conftest$ac_exeext conftest.$ac_ext
6100 ac_res=`eval echo '${'$as_ac_var'}'`
6101 { echo "$as_me:$LINENO: result: $ac_res" >&5
6102 echo "${ECHO_T}$ac_res" >&6; }
6103 if test `eval echo '${'$as_ac_var'}'` = yes; then
6104 cat >>confdefs.h <<_ACEOF
6105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6106 _ACEOF
6109 done
6111 if test "$ac_cv_func_shl_load" = "yes"; then
6112 CONFIG_BDL="-ldl"
6114 cat >>confdefs.h <<\_ACEOF
6115 #define DYNAMIC_LINKING 1
6116 _ACEOF
6118 else
6120 for ac_func in dlopen
6122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 else
6128 cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h. */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6136 #define $ac_func innocuous_$ac_func
6138 /* System header to define __stub macros and hopefully few prototypes,
6139 which can conflict with char $ac_func (); below.
6140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6141 <limits.h> exists even on freestanding compilers. */
6143 #ifdef __STDC__
6144 # include <limits.h>
6145 #else
6146 # include <assert.h>
6147 #endif
6149 #undef $ac_func
6151 /* Override any GCC internal prototype to avoid an error.
6152 Use char because int might match the return type of a GCC
6153 builtin and then its argument prototype would still apply. */
6154 #ifdef __cplusplus
6155 extern "C"
6156 #endif
6157 char $ac_func ();
6158 /* The GNU C library defines this for functions which it implements
6159 to always fail with ENOSYS. Some functions are actually named
6160 something starting with __ and the normal name is an alias. */
6161 #if defined __stub_$ac_func || defined __stub___$ac_func
6162 choke me
6163 #endif
6166 main ()
6168 return $ac_func ();
6170 return 0;
6172 _ACEOF
6173 rm -f conftest.$ac_objext conftest$ac_exeext
6174 if { (ac_try="$ac_link"
6175 case "(($ac_try" in
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6178 esac
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_link") 2>conftest.er1
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_cxx_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest$ac_exeext &&
6190 $as_test_x conftest$ac_exeext; then
6191 eval "$as_ac_var=yes"
6192 else
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6196 eval "$as_ac_var=no"
6199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6200 conftest$ac_exeext conftest.$ac_ext
6202 ac_res=`eval echo '${'$as_ac_var'}'`
6203 { echo "$as_me:$LINENO: result: $ac_res" >&5
6204 echo "${ECHO_T}$ac_res" >&6; }
6205 if test `eval echo '${'$as_ac_var'}'` = yes; then
6206 cat >>confdefs.h <<_ACEOF
6207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6208 _ACEOF
6211 done
6213 if test "$ac_cv_func_dlopen" = "yes"; then
6215 cat >>confdefs.h <<\_ACEOF
6216 #define DYNAMIC_LINKING 1
6217 _ACEOF
6226 #--------------------------------------------------------------------
6227 # Checks for iconv library
6228 #--------------------------------------------------------------------
6231 # Check whether --with-iconv was given.
6232 if test "${with_iconv+set}" = set; then
6233 withval=$with_iconv;
6237 # Check for iconv
6238 # Modified from GNOME's libxml2 configure.in
6240 ac_ext=c
6241 ac_cpp='$CPP $CPPFLAGS'
6242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6245 # compile C to avoid the 'const char**' problem
6247 SAVE_CPPFLAGS="$CPPFLAGS"
6248 SAVE_LDFLAGS="$LDFLAGS"
6249 SAVE_LIBS="$LIBS"
6250 if test "$with_iconv" = "no" ; then
6251 { echo "$as_me:$LINENO: result: disabling iconv support" >&5
6252 echo "${ECHO_T}disabling iconv support" >&6; }
6253 else
6254 if test -n "$ICONV_CFLAGS" -a -n "$ICONV_LDFLAGS"; then
6255 CPPFLAGS="$ICONV_CFLAGS" # for AC_TRY_LINK
6256 LDFLAGS="$ICONV_LDFLAGS"
6258 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
6259 CPPFLAGS="-I$with_iconv/include" # for AC_TRY_LINK
6260 LDFLAGS="-L$with_iconv/lib"
6261 ICONV_CFLAGS="-I$with_iconv/include"
6262 ICONV_LDFLAGS="-L$with_iconv/lib"
6265 ac_ext=c
6266 ac_cpp='$CPP $CPPFLAGS'
6267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6270 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6271 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6272 # On Suns, sometimes $CPP names a directory.
6273 if test -n "$CPP" && test -d "$CPP"; then
6274 CPP=
6276 if test -z "$CPP"; then
6277 if test "${ac_cv_prog_CPP+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280 # Double quotes because CPP needs to be expanded
6281 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6283 ac_preproc_ok=false
6284 for ac_c_preproc_warn_flag in '' yes
6286 # Use a header file that comes with gcc, so configuring glibc
6287 # with a fresh cross-compiler works.
6288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6289 # <limits.h> exists even on freestanding compilers.
6290 # On the NeXT, cc -E runs the code through the compiler's parser,
6291 # not just through cpp. "Syntax error" is here to catch this case.
6292 cat >conftest.$ac_ext <<_ACEOF
6293 /* confdefs.h. */
6294 _ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298 #ifdef __STDC__
6299 # include <limits.h>
6300 #else
6301 # include <assert.h>
6302 #endif
6303 Syntax error
6304 _ACEOF
6305 if { (ac_try="$ac_cpp conftest.$ac_ext"
6306 case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6312 ac_status=$?
6313 grep -v '^ *+' conftest.er1 >conftest.err
6314 rm -f conftest.er1
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } >/dev/null && {
6318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6319 test ! -s conftest.err
6320 }; then
6322 else
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6326 # Broken: fails on valid input.
6327 continue
6330 rm -f conftest.err conftest.$ac_ext
6332 # OK, works on sane cases. Now check whether nonexistent headers
6333 # can be detected and how.
6334 cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h. */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 #include <ac_nonexistent.h>
6341 _ACEOF
6342 if { (ac_try="$ac_cpp conftest.$ac_ext"
6343 case "(($ac_try" in
6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6346 esac
6347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6349 ac_status=$?
6350 grep -v '^ *+' conftest.er1 >conftest.err
6351 rm -f conftest.er1
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } >/dev/null && {
6355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6356 test ! -s conftest.err
6357 }; then
6358 # Broken: success on invalid input.
6359 continue
6360 else
6361 echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6364 # Passes both tests.
6365 ac_preproc_ok=:
6366 break
6369 rm -f conftest.err conftest.$ac_ext
6371 done
6372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6373 rm -f conftest.err conftest.$ac_ext
6374 if $ac_preproc_ok; then
6375 break
6378 done
6379 ac_cv_prog_CPP=$CPP
6382 CPP=$ac_cv_prog_CPP
6383 else
6384 ac_cv_prog_CPP=$CPP
6386 { echo "$as_me:$LINENO: result: $CPP" >&5
6387 echo "${ECHO_T}$CPP" >&6; }
6388 ac_preproc_ok=false
6389 for ac_c_preproc_warn_flag in '' yes
6391 # Use a header file that comes with gcc, so configuring glibc
6392 # with a fresh cross-compiler works.
6393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6394 # <limits.h> exists even on freestanding compilers.
6395 # On the NeXT, cc -E runs the code through the compiler's parser,
6396 # not just through cpp. "Syntax error" is here to catch this case.
6397 cat >conftest.$ac_ext <<_ACEOF
6398 /* confdefs.h. */
6399 _ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6403 #ifdef __STDC__
6404 # include <limits.h>
6405 #else
6406 # include <assert.h>
6407 #endif
6408 Syntax error
6409 _ACEOF
6410 if { (ac_try="$ac_cpp conftest.$ac_ext"
6411 case "(($ac_try" in
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6414 esac
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6417 ac_status=$?
6418 grep -v '^ *+' conftest.er1 >conftest.err
6419 rm -f conftest.er1
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } >/dev/null && {
6423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6424 test ! -s conftest.err
6425 }; then
6427 else
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6431 # Broken: fails on valid input.
6432 continue
6435 rm -f conftest.err conftest.$ac_ext
6437 # OK, works on sane cases. Now check whether nonexistent headers
6438 # can be detected and how.
6439 cat >conftest.$ac_ext <<_ACEOF
6440 /* confdefs.h. */
6441 _ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6445 #include <ac_nonexistent.h>
6446 _ACEOF
6447 if { (ac_try="$ac_cpp conftest.$ac_ext"
6448 case "(($ac_try" in
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6451 esac
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6454 ac_status=$?
6455 grep -v '^ *+' conftest.er1 >conftest.err
6456 rm -f conftest.er1
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } >/dev/null && {
6460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6461 test ! -s conftest.err
6462 }; then
6463 # Broken: success on invalid input.
6464 continue
6465 else
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6469 # Passes both tests.
6470 ac_preproc_ok=:
6471 break
6474 rm -f conftest.err conftest.$ac_ext
6476 done
6477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6478 rm -f conftest.err conftest.$ac_ext
6479 if $ac_preproc_ok; then
6481 else
6482 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6483 See \`config.log' for more details." >&5
6484 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6485 See \`config.log' for more details." >&2;}
6486 { (exit 1); exit 1; }; }
6489 ac_ext=c
6490 ac_cpp='$CPP $CPPFLAGS'
6491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6496 if test "${ac_cv_header_iconv_h+set}" = set; then
6497 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6498 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6499 if test "${ac_cv_header_iconv_h+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6503 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6504 else
6505 # Is the header compilable?
6506 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
6507 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
6508 cat >conftest.$ac_ext <<_ACEOF
6509 /* confdefs.h. */
6510 _ACEOF
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h. */
6514 $ac_includes_default
6515 #include <iconv.h>
6516 _ACEOF
6517 rm -f conftest.$ac_objext
6518 if { (ac_try="$ac_compile"
6519 case "(($ac_try" in
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6522 esac
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_compile") 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } && {
6531 test -z "$ac_c_werror_flag" ||
6532 test ! -s conftest.err
6533 } && test -s conftest.$ac_objext; then
6534 ac_header_compiler=yes
6535 else
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6539 ac_header_compiler=no
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6544 echo "${ECHO_T}$ac_header_compiler" >&6; }
6546 # Is the header present?
6547 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
6548 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
6549 cat >conftest.$ac_ext <<_ACEOF
6550 /* confdefs.h. */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6555 #include <iconv.h>
6556 _ACEOF
6557 if { (ac_try="$ac_cpp conftest.$ac_ext"
6558 case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561 esac
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6564 ac_status=$?
6565 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -f conftest.er1
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } >/dev/null && {
6570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6571 test ! -s conftest.err
6572 }; then
6573 ac_header_preproc=yes
6574 else
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 ac_header_preproc=no
6581 rm -f conftest.err conftest.$ac_ext
6582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6583 echo "${ECHO_T}$ac_header_preproc" >&6; }
6585 # So? What about this header?
6586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6587 yes:no: )
6588 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
6589 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6590 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
6591 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
6592 ac_header_preproc=yes
6594 no:yes:* )
6595 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
6596 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
6597 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
6598 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
6599 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
6600 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
6601 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
6602 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
6603 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
6604 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
6605 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
6606 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
6609 esac
6610 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6611 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6612 if test "${ac_cv_header_iconv_h+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615 ac_cv_header_iconv_h=$ac_header_preproc
6617 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6618 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6621 if test $ac_cv_header_iconv_h = yes; then
6622 { echo "$as_me:$LINENO: checking for iconv" >&5
6623 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6625 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h. */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6632 #include <stdlib.h>
6633 #include <iconv.h>
6636 main ()
6639 iconv_t cd = iconv_open ("","");
6640 iconv (cd, NULL, NULL, NULL, NULL);
6643 return 0;
6645 _ACEOF
6646 rm -f conftest.$ac_objext conftest$ac_exeext
6647 if { (ac_try="$ac_link"
6648 case "(($ac_try" in
6649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650 *) ac_try_echo=$ac_try;;
6651 esac
6652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6653 (eval "$ac_link") 2>conftest.er1
6654 ac_status=$?
6655 grep -v '^ *+' conftest.er1 >conftest.err
6656 rm -f conftest.er1
6657 cat conftest.err >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } && {
6660 test -z "$ac_c_werror_flag" ||
6661 test ! -s conftest.err
6662 } && test -s conftest$ac_exeext &&
6663 $as_test_x conftest$ac_exeext; then
6665 { echo "$as_me:$LINENO: result: yes" >&5
6666 echo "${ECHO_T}yes" >&6; }
6668 cat >>confdefs.h <<\_ACEOF
6669 #define USE_ICONV 1
6670 _ACEOF
6673 else
6674 echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6678 { echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6; }
6680 { echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
6681 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6; }
6682 # LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
6683 LIBS="-liconv" # for AC_TRY_LINK
6684 cat >conftest.$ac_ext <<_ACEOF
6685 /* confdefs.h. */
6686 _ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6691 #include <stdlib.h>
6692 #include <iconv.h>
6695 main ()
6698 iconv_t cd = iconv_open ("","");
6699 iconv (cd, NULL, NULL, NULL, NULL);
6702 return 0;
6704 _ACEOF
6705 rm -f conftest.$ac_objext conftest$ac_exeext
6706 if { (ac_try="$ac_link"
6707 case "(($ac_try" in
6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709 *) ac_try_echo=$ac_try;;
6710 esac
6711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6712 (eval "$ac_link") 2>conftest.er1
6713 ac_status=$?
6714 grep -v '^ *+' conftest.er1 >conftest.err
6715 rm -f conftest.er1
6716 cat conftest.err >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && {
6719 test -z "$ac_c_werror_flag" ||
6720 test ! -s conftest.err
6721 } && test -s conftest$ac_exeext &&
6722 $as_test_x conftest$ac_exeext; then
6724 { echo "$as_me:$LINENO: result: yes" >&5
6725 echo "${ECHO_T}yes" >&6; }
6727 cat >>confdefs.h <<\_ACEOF
6728 #define USE_ICONV 1
6729 _ACEOF
6731 ICONV_LDFLAGS="${ICONV_LDFLAGS/-liconv} -liconv"
6733 else
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6738 { echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6; }
6740 { echo "$as_me:$LINENO: WARNING: absence of iconv may crash HTML import" >&5
6741 echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
6745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6746 conftest$ac_exeext conftest.$ac_ext
6749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6750 conftest$ac_exeext conftest.$ac_ext
6756 CPPFLAGS="$SAVE_CPPFLAGS"
6757 LDFLAGS="$SAVE_LDFLAGS"
6758 LIBS="$SAVE_LIBS"
6759 ac_ext=cpp
6760 ac_cpp='$CXXCPP $CPPFLAGS'
6761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6764 # restore C++ language
6768 #--------------------------------------------------------------------
6769 # Checks for freetype library
6770 #--------------------------------------------------------------------
6773 # Check whether --with-freetype was given.
6774 if test "${with_freetype+set}" = set; then
6775 withval=$with_freetype;
6779 SAVE_CPPFLAGS="$CPPFLAGS"
6780 SAVE_LDFLAGS="$LDFLAGS"
6781 SAVE_LIBS="$LIBS"
6782 if test "$with_freetype" = "no" ; then
6783 { echo "$as_me:$LINENO: result: disabling freetype support" >&5
6784 echo "${ECHO_T}disabling freetype support" >&6; }
6785 else
6786 if test -z "$FREETYPE_CFLAGS"; then
6787 FREETYPE_CFLAGS=`freetype-config --cflags`
6789 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
6790 if test -z "$FREETYPE_LDFLAGS"; then
6791 FREETYPE_LDFLAGS=`freetype-config --libs`
6793 LIBS="$LDFLAGS $FREETYPE_LDFLAGS"
6794 if test "${ac_cv_header_ft2build_h+set}" = set; then
6795 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6796 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6797 if test "${ac_cv_header_ft2build_h+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6801 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6802 else
6803 # Is the header compilable?
6804 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
6805 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
6806 cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h. */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 $ac_includes_default
6813 #include <ft2build.h>
6814 _ACEOF
6815 rm -f conftest.$ac_objext
6816 if { (ac_try="$ac_compile"
6817 case "(($ac_try" in
6818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6819 *) ac_try_echo=$ac_try;;
6820 esac
6821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6822 (eval "$ac_compile") 2>conftest.er1
6823 ac_status=$?
6824 grep -v '^ *+' conftest.er1 >conftest.err
6825 rm -f conftest.er1
6826 cat conftest.err >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } && {
6829 test -z "$ac_cxx_werror_flag" ||
6830 test ! -s conftest.err
6831 } && test -s conftest.$ac_objext; then
6832 ac_header_compiler=yes
6833 else
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6837 ac_header_compiler=no
6840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6842 echo "${ECHO_T}$ac_header_compiler" >&6; }
6844 # Is the header present?
6845 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
6846 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
6847 cat >conftest.$ac_ext <<_ACEOF
6848 /* confdefs.h. */
6849 _ACEOF
6850 cat confdefs.h >>conftest.$ac_ext
6851 cat >>conftest.$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6853 #include <ft2build.h>
6854 _ACEOF
6855 if { (ac_try="$ac_cpp conftest.$ac_ext"
6856 case "(($ac_try" in
6857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6858 *) ac_try_echo=$ac_try;;
6859 esac
6860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6862 ac_status=$?
6863 grep -v '^ *+' conftest.er1 >conftest.err
6864 rm -f conftest.er1
6865 cat conftest.err >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } >/dev/null && {
6868 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6869 test ! -s conftest.err
6870 }; then
6871 ac_header_preproc=yes
6872 else
6873 echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6876 ac_header_preproc=no
6879 rm -f conftest.err conftest.$ac_ext
6880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6881 echo "${ECHO_T}$ac_header_preproc" >&6; }
6883 # So? What about this header?
6884 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6885 yes:no: )
6886 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
6887 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6888 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
6889 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
6890 ac_header_preproc=yes
6892 no:yes:* )
6893 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
6894 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
6895 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
6896 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
6897 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
6898 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
6899 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
6900 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
6901 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
6902 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
6903 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
6904 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
6907 esac
6908 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6909 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6910 if test "${ac_cv_header_ft2build_h+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 else
6913 ac_cv_header_ft2build_h=$ac_header_preproc
6915 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6916 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6919 if test $ac_cv_header_ft2build_h = yes; then
6920 { echo "$as_me:$LINENO: checking for freetype" >&5
6921 echo $ECHO_N "checking for freetype... $ECHO_C" >&6; }
6922 cat >conftest.$ac_ext <<_ACEOF
6923 /* confdefs.h. */
6924 _ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h. */
6929 #include <ft2build.h>
6930 #include FT_FREETYPE_H
6933 main ()
6936 FT_Library ft_library;
6937 (void) FT_Init_FreeType (&ft_library);
6940 return 0;
6942 _ACEOF
6943 rm -f conftest.$ac_objext conftest$ac_exeext
6944 if { (ac_try="$ac_link"
6945 case "(($ac_try" in
6946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947 *) ac_try_echo=$ac_try;;
6948 esac
6949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6950 (eval "$ac_link") 2>conftest.er1
6951 ac_status=$?
6952 grep -v '^ *+' conftest.er1 >conftest.err
6953 rm -f conftest.er1
6954 cat conftest.err >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } && {
6957 test -z "$ac_cxx_werror_flag" ||
6958 test ! -s conftest.err
6959 } && test -s conftest$ac_exeext &&
6960 $as_test_x conftest$ac_exeext; then
6962 { echo "$as_me:$LINENO: result: yes" >&5
6963 echo "${ECHO_T}yes" >&6; }
6965 cat >>confdefs.h <<\_ACEOF
6966 #define USE_FREETYPE 1
6967 _ACEOF
6969 FREETYPE_CFLAGS="$CPPFLAGS"
6970 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
6971 FREETYPE_LDFLAGS="$LIBS"
6973 cat >>confdefs.h <<\_ACEOF
6974 #define LINKED_FREETYPE 1
6975 _ACEOF
6979 else
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6984 { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6989 conftest$ac_exeext conftest.$ac_ext
6995 CPPFLAGS="$SAVE_CPPFLAGS"
6996 LDFLAGS="$SAVE_LDFLAGS"
6997 LIBS="$SAVE_LIBS"
7002 #--------------------------------------------------------------------
7003 # Checks for Cairo library
7004 #--------------------------------------------------------------------
7007 # Check whether --with-cairo was given.
7008 if test "${with_cairo+set}" = set; then
7009 withval=$with_cairo;
7013 SAVE_CPPFLAGS="$CPPFLAGS"
7014 SAVE_LDFLAGS="$LDFLAGS"
7015 SAVE_LIBS="$LIBS"
7016 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
7017 { echo "$as_me:$LINENO: result: disabling cairo support" >&5
7018 echo "${ECHO_T}disabling cairo support" >&6; }
7019 else
7020 CPPFLAGS=`pkg-config --cflags cairo`
7021 LIBS=`pkg-config --libs cairo`
7022 if test "${ac_cv_header_cairo_h+set}" = set; then
7023 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7024 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7025 if test "${ac_cv_header_cairo_h+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7029 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7030 else
7031 # Is the header compilable?
7032 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
7033 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
7034 cat >conftest.$ac_ext <<_ACEOF
7035 /* confdefs.h. */
7036 _ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7040 $ac_includes_default
7041 #include <cairo.h>
7042 _ACEOF
7043 rm -f conftest.$ac_objext
7044 if { (ac_try="$ac_compile"
7045 case "(($ac_try" in
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7048 esac
7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050 (eval "$ac_compile") 2>conftest.er1
7051 ac_status=$?
7052 grep -v '^ *+' conftest.er1 >conftest.err
7053 rm -f conftest.er1
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } && {
7057 test -z "$ac_cxx_werror_flag" ||
7058 test ! -s conftest.err
7059 } && test -s conftest.$ac_objext; then
7060 ac_header_compiler=yes
7061 else
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7065 ac_header_compiler=no
7068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7069 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7070 echo "${ECHO_T}$ac_header_compiler" >&6; }
7072 # Is the header present?
7073 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
7074 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
7075 cat >conftest.$ac_ext <<_ACEOF
7076 /* confdefs.h. */
7077 _ACEOF
7078 cat confdefs.h >>conftest.$ac_ext
7079 cat >>conftest.$ac_ext <<_ACEOF
7080 /* end confdefs.h. */
7081 #include <cairo.h>
7082 _ACEOF
7083 if { (ac_try="$ac_cpp conftest.$ac_ext"
7084 case "(($ac_try" in
7085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7086 *) ac_try_echo=$ac_try;;
7087 esac
7088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7090 ac_status=$?
7091 grep -v '^ *+' conftest.er1 >conftest.err
7092 rm -f conftest.er1
7093 cat conftest.err >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } >/dev/null && {
7096 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7097 test ! -s conftest.err
7098 }; then
7099 ac_header_preproc=yes
7100 else
7101 echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7104 ac_header_preproc=no
7107 rm -f conftest.err conftest.$ac_ext
7108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7109 echo "${ECHO_T}$ac_header_preproc" >&6; }
7111 # So? What about this header?
7112 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7113 yes:no: )
7114 { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
7115 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7116 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
7117 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
7118 ac_header_preproc=yes
7120 no:yes:* )
7121 { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
7122 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
7123 { echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
7124 echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
7125 { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
7126 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
7127 { echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
7128 echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
7129 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
7130 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
7131 { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
7132 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
7135 esac
7136 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7137 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7138 if test "${ac_cv_header_cairo_h+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141 ac_cv_header_cairo_h=$ac_header_preproc
7143 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7144 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7147 if test $ac_cv_header_cairo_h = yes; then
7148 { echo "$as_me:$LINENO: checking for cairo" >&5
7149 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
7150 cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h. */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7157 #include <cairo.h>
7160 main ()
7163 cairo_surface_t *surface;
7164 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
7167 return 0;
7169 _ACEOF
7170 rm -f conftest.$ac_objext conftest$ac_exeext
7171 if { (ac_try="$ac_link"
7172 case "(($ac_try" in
7173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7174 *) ac_try_echo=$ac_try;;
7175 esac
7176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7177 (eval "$ac_link") 2>conftest.er1
7178 ac_status=$?
7179 grep -v '^ *+' conftest.er1 >conftest.err
7180 rm -f conftest.er1
7181 cat conftest.err >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } && {
7184 test -z "$ac_cxx_werror_flag" ||
7185 test ! -s conftest.err
7186 } && test -s conftest$ac_exeext &&
7187 $as_test_x conftest$ac_exeext; then
7189 { echo "$as_me:$LINENO: result: yes" >&5
7190 echo "${ECHO_T}yes" >&6; }
7192 cat >>confdefs.h <<\_ACEOF
7193 #define USE_CAIRO 1
7194 _ACEOF
7196 CAIRO_CFLAGS="$CPPFLAGS"
7197 if test "$with_cairo" = "linked" ; then
7198 CAIRO_LDFLAGS="$LIBS"
7200 cat >>confdefs.h <<\_ACEOF
7201 #define LINKED_CAIRO 1
7202 _ACEOF
7206 else
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7211 { echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6; }
7215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7216 conftest$ac_exeext conftest.$ac_ext
7222 CPPFLAGS="$SAVE_CPPFLAGS"
7223 LDFLAGS="$SAVE_LDFLAGS"
7224 LIBS="$SAVE_LIBS"
7229 #--------------------------------------------------------------------
7230 # Checks for Imlib2 library
7231 #--------------------------------------------------------------------
7234 # Check whether --with-imlib2 was given.
7235 if test "${with_imlib2+set}" = set; then
7236 withval=$with_imlib2;
7240 SAVE_CPPFLAGS="$CPPFLAGS"
7241 SAVE_LDFLAGS="$LDFLAGS"
7242 SAVE_LIBS="$LIBS"
7243 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
7244 { echo "$as_me:$LINENO: result: disabling imlib2 support" >&5
7245 echo "${ECHO_T}disabling imlib2 support" >&6; }
7246 else
7247 CPPFLAGS=`imlib2-config --cflags`
7248 LIBS=`imlib2-config --libs`
7249 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7250 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7251 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7252 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7256 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7257 else
7258 # Is the header compilable?
7259 { echo "$as_me:$LINENO: checking Imlib2.h usability" >&5
7260 echo $ECHO_N "checking Imlib2.h usability... $ECHO_C" >&6; }
7261 cat >conftest.$ac_ext <<_ACEOF
7262 /* confdefs.h. */
7263 _ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7267 $ac_includes_default
7268 #include <Imlib2.h>
7269 _ACEOF
7270 rm -f conftest.$ac_objext
7271 if { (ac_try="$ac_compile"
7272 case "(($ac_try" in
7273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274 *) ac_try_echo=$ac_try;;
7275 esac
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277 (eval "$ac_compile") 2>conftest.er1
7278 ac_status=$?
7279 grep -v '^ *+' conftest.er1 >conftest.err
7280 rm -f conftest.er1
7281 cat conftest.err >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } && {
7284 test -z "$ac_cxx_werror_flag" ||
7285 test ! -s conftest.err
7286 } && test -s conftest.$ac_objext; then
7287 ac_header_compiler=yes
7288 else
7289 echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.$ac_ext >&5
7292 ac_header_compiler=no
7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7297 echo "${ECHO_T}$ac_header_compiler" >&6; }
7299 # Is the header present?
7300 { echo "$as_me:$LINENO: checking Imlib2.h presence" >&5
7301 echo $ECHO_N "checking Imlib2.h presence... $ECHO_C" >&6; }
7302 cat >conftest.$ac_ext <<_ACEOF
7303 /* confdefs.h. */
7304 _ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 #include <Imlib2.h>
7309 _ACEOF
7310 if { (ac_try="$ac_cpp conftest.$ac_ext"
7311 case "(($ac_try" in
7312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7313 *) ac_try_echo=$ac_try;;
7314 esac
7315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7317 ac_status=$?
7318 grep -v '^ *+' conftest.er1 >conftest.err
7319 rm -f conftest.er1
7320 cat conftest.err >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } >/dev/null && {
7323 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7324 test ! -s conftest.err
7325 }; then
7326 ac_header_preproc=yes
7327 else
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7331 ac_header_preproc=no
7334 rm -f conftest.err conftest.$ac_ext
7335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7336 echo "${ECHO_T}$ac_header_preproc" >&6; }
7338 # So? What about this header?
7339 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7340 yes:no: )
7341 { echo "$as_me:$LINENO: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&5
7342 echo "$as_me: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7343 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the compiler's result" >&5
7344 echo "$as_me: WARNING: Imlib2.h: proceeding with the compiler's result" >&2;}
7345 ac_header_preproc=yes
7347 no:yes:* )
7348 { echo "$as_me:$LINENO: WARNING: Imlib2.h: present but cannot be compiled" >&5
7349 echo "$as_me: WARNING: Imlib2.h: present but cannot be compiled" >&2;}
7350 { echo "$as_me:$LINENO: WARNING: Imlib2.h: check for missing prerequisite headers?" >&5
7351 echo "$as_me: WARNING: Imlib2.h: check for missing prerequisite headers?" >&2;}
7352 { echo "$as_me:$LINENO: WARNING: Imlib2.h: see the Autoconf documentation" >&5
7353 echo "$as_me: WARNING: Imlib2.h: see the Autoconf documentation" >&2;}
7354 { echo "$as_me:$LINENO: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&5
7355 echo "$as_me: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&2;}
7356 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&5
7357 echo "$as_me: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&2;}
7358 { echo "$as_me:$LINENO: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&5
7359 echo "$as_me: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&2;}
7362 esac
7363 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7364 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7365 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368 ac_cv_header_Imlib2_h=$ac_header_preproc
7370 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7371 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7374 if test $ac_cv_header_Imlib2_h = yes; then
7375 { echo "$as_me:$LINENO: checking for imlib2" >&5
7376 echo $ECHO_N "checking for imlib2... $ECHO_C" >&6; }
7377 cat >conftest.$ac_ext <<_ACEOF
7378 /* confdefs.h. */
7379 _ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7384 #include <X11/Xlib.h>
7385 #include <Imlib2.h>
7386 #include <stdio.h>
7387 #include <string.h>
7390 main ()
7393 Imlib_Image image= imlib_load_image("");
7396 return 0;
7398 _ACEOF
7399 rm -f conftest.$ac_objext conftest$ac_exeext
7400 if { (ac_try="$ac_link"
7401 case "(($ac_try" in
7402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403 *) ac_try_echo=$ac_try;;
7404 esac
7405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7406 (eval "$ac_link") 2>conftest.er1
7407 ac_status=$?
7408 grep -v '^ *+' conftest.er1 >conftest.err
7409 rm -f conftest.er1
7410 cat conftest.err >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } && {
7413 test -z "$ac_cxx_werror_flag" ||
7414 test ! -s conftest.err
7415 } && test -s conftest$ac_exeext &&
7416 $as_test_x conftest$ac_exeext; then
7418 { echo "$as_me:$LINENO: result: yes" >&5
7419 echo "${ECHO_T}yes" >&6; }
7421 cat >>confdefs.h <<\_ACEOF
7422 #define USE_IMLIB2 1
7423 _ACEOF
7425 IMLIB2_CFLAGS="$CPPFLAGS"
7426 if test "$with_imlib2" = "linked" ; then
7427 IMLIB2_LDFLAGS="$LIBS"
7429 cat >>confdefs.h <<\_ACEOF
7430 #define LINKED_IMLIB2 1
7431 _ACEOF
7435 else
7436 echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7440 { echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6; }
7444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7445 conftest$ac_exeext conftest.$ac_ext
7451 CPPFLAGS="$SAVE_CPPFLAGS"
7452 LDFLAGS="$SAVE_LDFLAGS"
7453 LIBS="$SAVE_LIBS"
7458 #--------------------------------------------------------------------
7459 # Checks for Axel library
7460 #--------------------------------------------------------------------
7463 # Check whether --with-axel was given.
7464 if test "${with_axel+set}" = set; then
7465 withval=$with_axel;
7469 SAVE_CPPFLAGS="$CPPFLAGS"
7470 SAVE_LDFLAGS="$LDFLAGS"
7471 SAVE_LIBS="$LIBS"
7472 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
7473 { echo "$as_me:$LINENO: result: disabling axel support" >&5
7474 echo "${ECHO_T}disabling axel support" >&6; }
7475 else
7476 CPPFLAGS=`axel-config --cflags`
7477 LIBS=`axel-config --libs`
7478 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7479 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7480 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7481 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7485 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7486 else
7487 # Is the header compilable?
7488 { echo "$as_me:$LINENO: checking QGui/Viewer.h usability" >&5
7489 echo $ECHO_N "checking QGui/Viewer.h usability... $ECHO_C" >&6; }
7490 cat >conftest.$ac_ext <<_ACEOF
7491 /* confdefs.h. */
7492 _ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7496 $ac_includes_default
7497 #include <QGui/Viewer.h>
7498 _ACEOF
7499 rm -f conftest.$ac_objext
7500 if { (ac_try="$ac_compile"
7501 case "(($ac_try" in
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7504 esac
7505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7506 (eval "$ac_compile") 2>conftest.er1
7507 ac_status=$?
7508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } && {
7513 test -z "$ac_cxx_werror_flag" ||
7514 test ! -s conftest.err
7515 } && test -s conftest.$ac_objext; then
7516 ac_header_compiler=yes
7517 else
7518 echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.$ac_ext >&5
7521 ac_header_compiler=no
7524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7526 echo "${ECHO_T}$ac_header_compiler" >&6; }
7528 # Is the header present?
7529 { echo "$as_me:$LINENO: checking QGui/Viewer.h presence" >&5
7530 echo $ECHO_N "checking QGui/Viewer.h presence... $ECHO_C" >&6; }
7531 cat >conftest.$ac_ext <<_ACEOF
7532 /* confdefs.h. */
7533 _ACEOF
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h. */
7537 #include <QGui/Viewer.h>
7538 _ACEOF
7539 if { (ac_try="$ac_cpp conftest.$ac_ext"
7540 case "(($ac_try" in
7541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7542 *) ac_try_echo=$ac_try;;
7543 esac
7544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7546 ac_status=$?
7547 grep -v '^ *+' conftest.er1 >conftest.err
7548 rm -f conftest.er1
7549 cat conftest.err >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } >/dev/null && {
7552 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7553 test ! -s conftest.err
7554 }; then
7555 ac_header_preproc=yes
7556 else
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7560 ac_header_preproc=no
7563 rm -f conftest.err conftest.$ac_ext
7564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7565 echo "${ECHO_T}$ac_header_preproc" >&6; }
7567 # So? What about this header?
7568 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7569 yes:no: )
7570 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&5
7571 echo "$as_me: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7572 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&5
7573 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&2;}
7574 ac_header_preproc=yes
7576 no:yes:* )
7577 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: present but cannot be compiled" >&5
7578 echo "$as_me: WARNING: QGui/Viewer.h: present but cannot be compiled" >&2;}
7579 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&5
7580 echo "$as_me: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&2;}
7581 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&5
7582 echo "$as_me: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&2;}
7583 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&5
7584 echo "$as_me: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&2;}
7585 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&5
7586 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&2;}
7587 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&5
7588 echo "$as_me: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&2;}
7591 esac
7592 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7593 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7594 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597 ac_cv_header_QGui_Viewer_h=$ac_header_preproc
7599 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7600 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7603 if test $ac_cv_header_QGui_Viewer_h = yes; then
7604 { echo "$as_me:$LINENO: checking for axel" >&5
7605 echo $ECHO_N "checking for axel... $ECHO_C" >&6; }
7606 cat >conftest.$ac_ext <<_ACEOF
7607 /* confdefs.h. */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7613 #include <QGui/Viewer.h>
7616 main ()
7619 Viewer viewer(0);
7622 return 0;
7624 _ACEOF
7625 rm -f conftest.$ac_objext conftest$ac_exeext
7626 if { (ac_try="$ac_link"
7627 case "(($ac_try" in
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7630 esac
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632 (eval "$ac_link") 2>conftest.er1
7633 ac_status=$?
7634 grep -v '^ *+' conftest.er1 >conftest.err
7635 rm -f conftest.er1
7636 cat conftest.err >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } && {
7639 test -z "$ac_cxx_werror_flag" ||
7640 test ! -s conftest.err
7641 } && test -s conftest$ac_exeext &&
7642 $as_test_x conftest$ac_exeext; then
7644 { echo "$as_me:$LINENO: result: yes" >&5
7645 echo "${ECHO_T}yes" >&6; }
7647 cat >>confdefs.h <<\_ACEOF
7648 #define USE_AXEL 1
7649 _ACEOF
7651 AXEL_CFLAGS="$CPPFLAGS"
7652 if test "$with_axel" = "linked" ; then
7653 AXEL_LDFLAGS="$LIBS"
7655 cat >>confdefs.h <<\_ACEOF
7656 #define LINKED_AXEL 1
7657 _ACEOF
7661 else
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7666 { echo "$as_me:$LINENO: result: no" >&5
7667 echo "${ECHO_T}no" >&6; }
7670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7671 conftest$ac_exeext conftest.$ac_ext
7677 CPPFLAGS="$SAVE_CPPFLAGS"
7678 LDFLAGS="$SAVE_LDFLAGS"
7679 LIBS="$SAVE_LIBS"
7684 #--------------------------------------------------------------------
7685 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
7686 #--------------------------------------------------------------------
7688 { echo "$as_me:$LINENO: checking whether ... arguments behave correctly" >&5
7689 echo $ECHO_N "checking whether ... arguments behave correctly... $ECHO_C" >&6; }
7690 if test -z "$GUILE_CFLAGS"; then
7691 CXXFLAGS="`guile-config compile`"
7692 else
7693 CXXFLAGS="$GUILE_CFLAGS"
7695 cat >conftest.$ac_ext <<_ACEOF
7696 /* confdefs.h. */
7697 _ACEOF
7698 cat confdefs.h >>conftest.$ac_ext
7699 cat >>conftest.$ac_ext <<_ACEOF
7700 /* end confdefs.h. */
7702 #include <guile/gh.h>
7703 #include <libguile.h>
7704 typedef SCM (*FN)(...);
7705 static SCM identity (SCM x) { return x; }
7706 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
7709 main ()
7714 return 0;
7716 _ACEOF
7717 rm -f conftest.$ac_objext
7718 if { (ac_try="$ac_compile"
7719 case "(($ac_try" in
7720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7721 *) ac_try_echo=$ac_try;;
7722 esac
7723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7724 (eval "$ac_compile") 2>conftest.er1
7725 ac_status=$?
7726 grep -v '^ *+' conftest.er1 >conftest.err
7727 rm -f conftest.er1
7728 cat conftest.err >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } && {
7731 test -z "$ac_cxx_werror_flag" ||
7732 test ! -s conftest.err
7733 } && test -s conftest.$ac_objext; then
7736 cat >>confdefs.h <<\_ACEOF
7737 #define DOTS_OK 1
7738 _ACEOF
7740 { echo "$as_me:$LINENO: result: yes" >&5
7741 echo "${ECHO_T}yes" >&6; }
7743 else
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7748 { echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6; }
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 CXXFLAGS=""
7756 { echo "$as_me:$LINENO: checking the size_t of guile strings" >&5
7757 echo $ECHO_N "checking the size_t of guile strings... $ECHO_C" >&6; }
7758 if test -z "$GUILE_CFLAGS"; then
7759 CXXFLAGS="`guile-config compile`"
7760 else
7761 CXXFLAGS="$GUILE_CFLAGS"
7763 cat >conftest.$ac_ext <<_ACEOF
7764 /* confdefs.h. */
7765 _ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7770 #include <guile/gh.h>
7771 #include <libguile.h>
7772 void print_string (SCM s) {
7773 int len_r;
7774 char* r= gh_scm2newstr (s, &len_r); }
7777 main ()
7782 return 0;
7784 _ACEOF
7785 rm -f conftest.$ac_objext
7786 if { (ac_try="$ac_compile"
7787 case "(($ac_try" in
7788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7789 *) ac_try_echo=$ac_try;;
7790 esac
7791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7792 (eval "$ac_compile") 2>conftest.er1
7793 ac_status=$?
7794 grep -v '^ *+' conftest.er1 >conftest.err
7795 rm -f conftest.er1
7796 cat conftest.err >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); } && {
7799 test -z "$ac_cxx_werror_flag" ||
7800 test ! -s conftest.err
7801 } && test -s conftest.$ac_objext; then
7804 cat >>confdefs.h <<\_ACEOF
7805 #define guile_str_size_t int
7806 _ACEOF
7808 { echo "$as_me:$LINENO: result: int" >&5
7809 echo "${ECHO_T}int" >&6; }
7811 else
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7817 cat >>confdefs.h <<\_ACEOF
7818 #define guile_str_size_t size_t
7819 _ACEOF
7821 { echo "$as_me:$LINENO: result: size_t" >&5
7822 echo "${ECHO_T}size_t" >&6; }
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827 CXXFLAGS=""
7829 { echo "$as_me:$LINENO: checking if statically linking with guile works" >&5
7830 echo $ECHO_N "checking if statically linking with guile works... $ECHO_C" >&6; }
7831 SAVE_CPPFLAGS="$CPPFLAGS"
7832 SAVE_LDFLAGS="$LDFLAGS"
7833 SAVE_LIBS="$LIBS"
7834 CPPFLAGS="$GUILE_CFLAGS"
7835 LDFLAGS="-static"
7836 LIBS="$GUILE_LDFLAGS"
7837 cat >conftest.$ac_ext <<_ACEOF
7838 /* confdefs.h. */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7844 #include <guile/gh.h>
7845 $CONFIG_DOTS
7848 main ()
7851 struct dummy {
7852 static void my_main (int argc, char** argv) {}
7853 static void install_guile () {
7854 #ifdef DOTS_OK
7855 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7856 #else
7857 gh_enter (0, NULL, my_main);
7858 #endif
7861 dummy::install_guile ();
7864 return 0;
7866 _ACEOF
7867 rm -f conftest.$ac_objext conftest$ac_exeext
7868 if { (ac_try="$ac_link"
7869 case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7872 esac
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_link") 2>conftest.er1
7875 ac_status=$?
7876 grep -v '^ *+' conftest.er1 >conftest.err
7877 rm -f conftest.er1
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } && {
7881 test -z "$ac_cxx_werror_flag" ||
7882 test ! -s conftest.err
7883 } && test -s conftest$ac_exeext &&
7884 $as_test_x conftest$ac_exeext; then
7885 tm_link_guile_static="yes"
7886 else
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7890 tm_link_guile_static="no"
7893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7894 conftest$ac_exeext conftest.$ac_ext
7896 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static\"" >&5
7897 echo "${ECHO_T}\"$tm_link_guile_static\"" >&6; }
7898 if test "$tm_link_guile_static" = "no" ; then
7899 { echo "$as_me:$LINENO: checking if it works with -lltdl" >&5
7900 echo $ECHO_N "checking if it works with -lltdl... $ECHO_C" >&6; }
7901 LIBS="$GUILE_LDFLAGS -lltdl"
7902 cat >conftest.$ac_ext <<_ACEOF
7903 /* confdefs.h. */
7904 _ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7909 #include <guile/gh.h>
7910 $CONFIG_DOTS
7913 main ()
7916 struct dummy {
7917 static void my_main (int argc, char** argv) {}
7918 static void install_guile () {
7919 #ifdef DOTS_OK
7920 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7921 #else
7922 gh_enter (0, NULL, my_main);
7923 #endif
7926 dummy::install_guile ();
7929 return 0;
7931 _ACEOF
7932 rm -f conftest.$ac_objext conftest$ac_exeext
7933 if { (ac_try="$ac_link"
7934 case "(($ac_try" in
7935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936 *) ac_try_echo=$ac_try;;
7937 esac
7938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7939 (eval "$ac_link") 2>conftest.er1
7940 ac_status=$?
7941 grep -v '^ *+' conftest.er1 >conftest.err
7942 rm -f conftest.er1
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } && {
7946 test -z "$ac_cxx_werror_flag" ||
7947 test ! -s conftest.err
7948 } && test -s conftest$ac_exeext &&
7949 $as_test_x conftest$ac_exeext; then
7950 tm_link_guile_static_ltdl="yes"
7951 else
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7955 tm_link_guile_static_ltdl="no"
7958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7959 conftest$ac_exeext conftest.$ac_ext
7961 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl\"" >&5
7962 echo "${ECHO_T}\"$tm_link_guile_static_ltdl\"" >&6; }
7963 if test "$tm_link_guile_static_ltdl" = "yes" ; then
7964 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl"
7965 else
7966 { echo "$as_me:$LINENO: checking if it works with -lltdl -ldl" >&5
7967 echo $ECHO_N "checking if it works with -lltdl -ldl... $ECHO_C" >&6; }
7968 LIBS="$GUILE_LDFLAGS -lltdl -ldl"
7969 cat >conftest.$ac_ext <<_ACEOF
7970 /* confdefs.h. */
7971 _ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7976 #include <guile/gh.h>
7977 $CONFIG_DOTS
7980 main ()
7983 struct dummy {
7984 static void my_main (int argc, char** argv) {}
7985 static void install_guile () {
7986 #ifdef DOTS_OK
7987 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7988 #else
7989 gh_enter (0, NULL, my_main);
7990 #endif
7993 dummy::install_guile ();
7996 return 0;
7998 _ACEOF
7999 rm -f conftest.$ac_objext conftest$ac_exeext
8000 if { (ac_try="$ac_link"
8001 case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8004 esac
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_link") 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } && {
8013 test -z "$ac_cxx_werror_flag" ||
8014 test ! -s conftest.err
8015 } && test -s conftest$ac_exeext &&
8016 $as_test_x conftest$ac_exeext; then
8017 tm_link_guile_static_ltdl_ldl="yes"
8018 else
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8022 tm_link_guile_static_ltdl_ldl="no"
8025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8026 conftest$ac_exeext conftest.$ac_ext
8028 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
8029 echo "${ECHO_T}\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
8030 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
8031 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
8032 else
8033 { echo "$as_me:$LINENO: WARNING: unable to link statically with guile" >&5
8034 echo "$as_me: WARNING: unable to link statically with guile" >&2;}
8038 CPPFLAGS="$SAVE_CPPFLAGS"
8039 LDFLAGS="$SAVE_LDFLAGS"
8040 LIBS="$SAVE_LIBS"
8042 #--------------------------------------------------------------------
8043 # Handle different systems case by case
8044 #--------------------------------------------------------------------
8046 CONFIG_OS="GNU_LINUX"
8047 CONFIG_OS_SUFFIX="gnu-linux"
8048 CONFIG_OS_COMPAT="Unix"
8049 CONFIG_MACOS=""
8050 CONFIG_CXXFLAGS=""
8051 CONFIG_CXXTEMPLATE=""
8052 CONFIG_STD_SETENV="#define STD_SETENV"
8053 CONFIG_SO="so"
8054 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
8055 CONFIG_CHMOD="chmod -f"
8056 CONFIG_CXXOPTIMIZE="-O2"
8057 CONFIG_BSTATIC="-Wl,-Bstatic"
8058 CONFIG_BSHARED="-Wl,-Bdynamic"
8059 CONFIG_BFLAGS=""
8060 CONFIG_BPATH="-Wl,-rpath,"
8061 CONFIG_WORD_LENGTH="4"
8062 CONFIG_WORD_LENGTH_INC="3"
8063 CONFIG_WORD_MASK="0xfffffffc"
8064 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
8066 X11_CFLAGS="$X_CFLAGS"
8067 X11_LDFLAGS="$X_LIBS -lXext -lX11"
8069 { echo "$as_me:$LINENO: checking for void *" >&5
8070 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8071 if test "${ac_cv_type_void_p+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074 cat >conftest.$ac_ext <<_ACEOF
8075 /* confdefs.h. */
8076 _ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8080 $ac_includes_default
8081 typedef void * ac__type_new_;
8083 main ()
8085 if ((ac__type_new_ *) 0)
8086 return 0;
8087 if (sizeof (ac__type_new_))
8088 return 0;
8090 return 0;
8092 _ACEOF
8093 rm -f conftest.$ac_objext
8094 if { (ac_try="$ac_compile"
8095 case "(($ac_try" in
8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097 *) ac_try_echo=$ac_try;;
8098 esac
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_compile") 2>conftest.er1
8101 ac_status=$?
8102 grep -v '^ *+' conftest.er1 >conftest.err
8103 rm -f conftest.er1
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } && {
8107 test -z "$ac_cxx_werror_flag" ||
8108 test ! -s conftest.err
8109 } && test -s conftest.$ac_objext; then
8110 ac_cv_type_void_p=yes
8111 else
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8115 ac_cv_type_void_p=no
8118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8121 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8123 # The cast to long int works around a bug in the HP C Compiler
8124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8126 # This bug is HP SR number 8606223364.
8127 { echo "$as_me:$LINENO: checking size of void *" >&5
8128 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8129 if test "${ac_cv_sizeof_void_p+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132 if test "$cross_compiling" = yes; then
8133 # Depending upon the size, compute the lo and hi bounds.
8134 cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h. */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 $ac_includes_default
8141 typedef void * ac__type_sizeof_;
8143 main ()
8145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8146 test_array [0] = 0
8149 return 0;
8151 _ACEOF
8152 rm -f conftest.$ac_objext
8153 if { (ac_try="$ac_compile"
8154 case "(($ac_try" in
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8157 esac
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_compile") 2>conftest.er1
8160 ac_status=$?
8161 grep -v '^ *+' conftest.er1 >conftest.err
8162 rm -f conftest.er1
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } && {
8166 test -z "$ac_cxx_werror_flag" ||
8167 test ! -s conftest.err
8168 } && test -s conftest.$ac_objext; then
8169 ac_lo=0 ac_mid=0
8170 while :; do
8171 cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h. */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 $ac_includes_default
8178 typedef void * ac__type_sizeof_;
8180 main ()
8182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8183 test_array [0] = 0
8186 return 0;
8188 _ACEOF
8189 rm -f conftest.$ac_objext
8190 if { (ac_try="$ac_compile"
8191 case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8194 esac
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_compile") 2>conftest.er1
8197 ac_status=$?
8198 grep -v '^ *+' conftest.er1 >conftest.err
8199 rm -f conftest.er1
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } && {
8203 test -z "$ac_cxx_werror_flag" ||
8204 test ! -s conftest.err
8205 } && test -s conftest.$ac_objext; then
8206 ac_hi=$ac_mid; break
8207 else
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8211 ac_lo=`expr $ac_mid + 1`
8212 if test $ac_lo -le $ac_mid; then
8213 ac_lo= ac_hi=
8214 break
8216 ac_mid=`expr 2 '*' $ac_mid + 1`
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 done
8221 else
8222 echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8225 cat >conftest.$ac_ext <<_ACEOF
8226 /* confdefs.h. */
8227 _ACEOF
8228 cat confdefs.h >>conftest.$ac_ext
8229 cat >>conftest.$ac_ext <<_ACEOF
8230 /* end confdefs.h. */
8231 $ac_includes_default
8232 typedef void * ac__type_sizeof_;
8234 main ()
8236 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8237 test_array [0] = 0
8240 return 0;
8242 _ACEOF
8243 rm -f conftest.$ac_objext
8244 if { (ac_try="$ac_compile"
8245 case "(($ac_try" in
8246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8247 *) ac_try_echo=$ac_try;;
8248 esac
8249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8250 (eval "$ac_compile") 2>conftest.er1
8251 ac_status=$?
8252 grep -v '^ *+' conftest.er1 >conftest.err
8253 rm -f conftest.er1
8254 cat conftest.err >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } && {
8257 test -z "$ac_cxx_werror_flag" ||
8258 test ! -s conftest.err
8259 } && test -s conftest.$ac_objext; then
8260 ac_hi=-1 ac_mid=-1
8261 while :; do
8262 cat >conftest.$ac_ext <<_ACEOF
8263 /* confdefs.h. */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8268 $ac_includes_default
8269 typedef void * ac__type_sizeof_;
8271 main ()
8273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8274 test_array [0] = 0
8277 return 0;
8279 _ACEOF
8280 rm -f conftest.$ac_objext
8281 if { (ac_try="$ac_compile"
8282 case "(($ac_try" in
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8285 esac
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_compile") 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && {
8294 test -z "$ac_cxx_werror_flag" ||
8295 test ! -s conftest.err
8296 } && test -s conftest.$ac_objext; then
8297 ac_lo=$ac_mid; break
8298 else
8299 echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8302 ac_hi=`expr '(' $ac_mid ')' - 1`
8303 if test $ac_mid -le $ac_hi; then
8304 ac_lo= ac_hi=
8305 break
8307 ac_mid=`expr 2 '*' $ac_mid`
8310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311 done
8312 else
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8316 ac_lo= ac_hi=
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 # Binary search between lo and hi bounds.
8324 while test "x$ac_lo" != "x$ac_hi"; do
8325 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8326 cat >conftest.$ac_ext <<_ACEOF
8327 /* confdefs.h. */
8328 _ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8332 $ac_includes_default
8333 typedef void * ac__type_sizeof_;
8335 main ()
8337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8338 test_array [0] = 0
8341 return 0;
8343 _ACEOF
8344 rm -f conftest.$ac_objext
8345 if { (ac_try="$ac_compile"
8346 case "(($ac_try" in
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8349 esac
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_compile") 2>conftest.er1
8352 ac_status=$?
8353 grep -v '^ *+' conftest.er1 >conftest.err
8354 rm -f conftest.er1
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } && {
8358 test -z "$ac_cxx_werror_flag" ||
8359 test ! -s conftest.err
8360 } && test -s conftest.$ac_objext; then
8361 ac_hi=$ac_mid
8362 else
8363 echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8366 ac_lo=`expr '(' $ac_mid ')' + 1`
8369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370 done
8371 case $ac_lo in
8372 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8373 '') if test "$ac_cv_type_void_p" = yes; then
8374 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8375 See \`config.log' for more details." >&5
8376 echo "$as_me: error: cannot compute sizeof (void *)
8377 See \`config.log' for more details." >&2;}
8378 { (exit 77); exit 77; }; }
8379 else
8380 ac_cv_sizeof_void_p=0
8381 fi ;;
8382 esac
8383 else
8384 cat >conftest.$ac_ext <<_ACEOF
8385 /* confdefs.h. */
8386 _ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8390 $ac_includes_default
8391 typedef void * ac__type_sizeof_;
8392 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8393 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8394 #include <stdio.h>
8395 #include <stdlib.h>
8397 main ()
8400 FILE *f = fopen ("conftest.val", "w");
8401 if (! f)
8402 return 1;
8403 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8405 long int i = longval ();
8406 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8407 return 1;
8408 fprintf (f, "%ld\n", i);
8410 else
8412 unsigned long int i = ulongval ();
8413 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8414 return 1;
8415 fprintf (f, "%lu\n", i);
8417 return ferror (f) || fclose (f) != 0;
8420 return 0;
8422 _ACEOF
8423 rm -f conftest$ac_exeext
8424 if { (ac_try="$ac_link"
8425 case "(($ac_try" in
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8428 esac
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_link") 2>&5
8431 ac_status=$?
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8434 { (case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8437 esac
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_try") 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
8443 ac_cv_sizeof_void_p=`cat conftest.val`
8444 else
8445 echo "$as_me: program exited with status $ac_status" >&5
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 ( exit $ac_status )
8450 if test "$ac_cv_type_void_p" = yes; then
8451 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8452 See \`config.log' for more details." >&5
8453 echo "$as_me: error: cannot compute sizeof (void *)
8454 See \`config.log' for more details." >&2;}
8455 { (exit 77); exit 77; }; }
8456 else
8457 ac_cv_sizeof_void_p=0
8460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8462 rm -f conftest.val
8464 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8465 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8469 cat >>confdefs.h <<_ACEOF
8470 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8471 _ACEOF
8474 { echo "$as_me:$LINENO: checking if we are on a 64-bits computer" >&5
8475 echo $ECHO_N "checking if we are on a 64-bits computer... $ECHO_C" >&6; }
8476 if test "$ac_cv_sizeof_void_p" = "8"; then
8477 { echo "$as_me:$LINENO: result: yes" >&5
8478 echo "${ECHO_T}yes" >&6; }
8479 CONFIG_WORD_LENGTH="8"
8480 CONFIG_WORD_LENGTH_INC="7"
8481 CONFIG_WORD_MASK="0xfffffffffffffff8"
8482 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8483 else
8484 { echo "$as_me:$LINENO: result: no" >&5
8485 echo "${ECHO_T}no" >&6; }
8488 ac_aux_dir=
8489 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
8490 if test -f "$ac_dir/install-sh"; then
8491 ac_aux_dir=$ac_dir
8492 ac_install_sh="$ac_aux_dir/install-sh -c"
8493 break
8494 elif test -f "$ac_dir/install.sh"; then
8495 ac_aux_dir=$ac_dir
8496 ac_install_sh="$ac_aux_dir/install.sh -c"
8497 break
8498 elif test -f "$ac_dir/shtool"; then
8499 ac_aux_dir=$ac_dir
8500 ac_install_sh="$ac_aux_dir/shtool install -c"
8501 break
8503 done
8504 if test -z "$ac_aux_dir"; then
8505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
8506 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
8507 { (exit 1); exit 1; }; }
8510 # These three variables are undocumented and unsupported,
8511 # and are intended to be withdrawn in a future Autoconf release.
8512 # They can cause serious problems if a builder's source tree is in a directory
8513 # whose full name contains unusual characters.
8514 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
8515 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
8516 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
8519 # Make sure we can run config.sub.
8520 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8521 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
8522 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
8523 { (exit 1); exit 1; }; }
8525 { echo "$as_me:$LINENO: checking build system type" >&5
8526 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
8527 if test "${ac_cv_build+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 else
8530 ac_build_alias=$build_alias
8531 test "x$ac_build_alias" = x &&
8532 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
8533 test "x$ac_build_alias" = x &&
8534 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
8535 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
8536 { (exit 1); exit 1; }; }
8537 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8538 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
8539 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
8540 { (exit 1); exit 1; }; }
8543 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
8544 echo "${ECHO_T}$ac_cv_build" >&6; }
8545 case $ac_cv_build in
8546 *-*-*) ;;
8547 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
8548 echo "$as_me: error: invalid value of canonical build" >&2;}
8549 { (exit 1); exit 1; }; };;
8550 esac
8551 build=$ac_cv_build
8552 ac_save_IFS=$IFS; IFS='-'
8553 set x $ac_cv_build
8554 shift
8555 build_cpu=$1
8556 build_vendor=$2
8557 shift; shift
8558 # Remember, the first character of IFS is used to create $*,
8559 # except with old shells:
8560 build_os=$*
8561 IFS=$ac_save_IFS
8562 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
8565 { echo "$as_me:$LINENO: checking host system type" >&5
8566 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
8567 if test "${ac_cv_host+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8569 else
8570 if test "x$host_alias" = x; then
8571 ac_cv_host=$ac_cv_build
8572 else
8573 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8574 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
8575 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
8576 { (exit 1); exit 1; }; }
8580 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8581 echo "${ECHO_T}$ac_cv_host" >&6; }
8582 case $ac_cv_host in
8583 *-*-*) ;;
8584 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
8585 echo "$as_me: error: invalid value of canonical host" >&2;}
8586 { (exit 1); exit 1; }; };;
8587 esac
8588 host=$ac_cv_host
8589 ac_save_IFS=$IFS; IFS='-'
8590 set x $ac_cv_host
8591 shift
8592 host_cpu=$1
8593 host_vendor=$2
8594 shift; shift
8595 # Remember, the first character of IFS is used to create $*,
8596 # except with old shells:
8597 host_os=$*
8598 IFS=$ac_save_IFS
8599 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8602 case "${host}" in
8603 i*86-*-linux* | x86_64-*-linux*)
8604 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
8605 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/Linux host" >&6; }
8606 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8608 i*86-*-freebsd* | x86_64-*-freebsd*)
8609 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
8610 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/BSD host" >&6; }
8611 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8613 i*86-*-solaris*)
8614 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMS Solaris host" >&5
8615 echo "${ECHO_T}final adjustments for an Intel or AMS Solaris host" >&6; }
8616 CONFIG_CXXOPTIMIZE="-O3"
8617 CONFIG_BPATH="-Wl,-R,"
8618 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8620 *mingw*)
8621 { echo "$as_me:$LINENO: result: final adjustments for mingw host" >&5
8622 echo "${ECHO_T}final adjustments for mingw host" >&6; }
8623 CONFIG_OS_COMPAT="Windows"
8624 LDRT="-lmingw32 -lmingwex"
8626 *-*-cygwin)
8627 { echo "$as_me:$LINENO: result: final adjustments for cygwin host" >&5
8628 echo "${ECHO_T}final adjustments for cygwin host" >&6; }
8629 CONFIG_OS="CYGWIN"
8630 CONFIG_BFLAGS="-Wl,-stack,8388608"
8631 # CXX="export CYGWIN=check_case:strict; $CXX"
8632 # AC_SUBST(CXX)
8634 *apple*darwin*)
8635 echo "$ac_t""final adjustments for a MacOS host" 1>&6
8636 CONFIG_OS="MACOS"
8637 CONFIG_CXXFLAGS="-I${prefix}/include"
8638 CONFIG_BSHARED=""
8639 CONFIG_BFLAGS="-framework Cocoa"
8640 CONFIG_BPATH=""
8641 CONFIG_SO="dylib"
8642 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
8644 *darwin*)
8645 echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
8646 CONFIG_CXXFLAGS="-I${prefix}/include"
8647 CONFIG_BSHARED=""
8648 CONFIG_BPATH=""
8649 CONFIG_SO="dylib"
8650 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
8652 powerpc-*-linux*)
8653 { echo "$as_me:$LINENO: result: final adjustments for a PowerPC/GNU-linux host" >&5
8654 echo "${ECHO_T}final adjustments for a PowerPC/GNU-linux host" >&6; }
8655 CONFIG_OS="POWERPC_GNU_LINUX"
8656 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8658 *sun*)
8659 { echo "$as_me:$LINENO: result: final adjustments for a SUN/solaris host" >&5
8660 echo "${ECHO_T}final adjustments for a SUN/solaris host" >&6; }
8661 CONFIG_OS="SUN"
8662 CONFIG_OS_SUFFIX="sun"
8663 CONFIG_BSTATIC=""
8664 CONFIG_BSHARED=""
8665 CONFIG_BPATH="-Wl,-R,"
8666 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8667 CONFIG_WORD_LENGTH="8"
8668 CONFIG_WORD_LENGTH_INC="7"
8669 CONFIG_WORD_MASK="0xfffffff8"
8670 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8671 CONFIG_STD_SETENV=""
8673 sparc*-*-linux*)
8674 { echo "$as_me:$LINENO: result: final adjustments for a Sparc host running GNU/Linux" >&5
8675 echo "${ECHO_T}final adjustments for a Sparc host running GNU/Linux" >&6; }
8676 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8677 CONFIG_WORD_LENGTH="8"
8678 CONFIG_WORD_LENGTH_INC="7"
8679 CONFIG_WORD_MASK="0xfffffff8"
8680 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8681 CONFIG_STD_SETENV=""
8683 *dec*)
8684 { echo "$as_me:$LINENO: result: final adjustments for a DEC/alpha host" >&5
8685 echo "${ECHO_T}final adjustments for a DEC/alpha host" >&6; }
8686 CONFIG_BSTATIC=""
8687 CONFIG_BSHARED="-shared"
8688 CONFIG_STD_SETENV=""
8690 *alpha*-*-linux*)
8691 { echo "$as_me:$LINENO: result: final adjustments for an Alpha GNU/Linux host" >&5
8692 echo "${ECHO_T}final adjustments for an Alpha GNU/Linux host" >&6; }
8693 CONFIG_BSTATIC=""
8694 CONFIG_BSHARED="-shared"
8696 s390-*-linux*)
8697 { echo "$as_me:$LINENO: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
8698 echo "${ECHO_T}final adjustments for an IBM S/390 GNU/Linux host" >&6; }
8699 CONFIG_STD_SETENV=""
8701 ia64-*-linux*)
8702 { echo "$as_me:$LINENO: result: final adjustments for an Itanium GNU/Linux host" >&5
8703 echo "${ECHO_T}final adjustments for an Itanium GNU/Linux host" >&6; }
8704 CONFIG_BSTATIC=""
8705 CONFIG_BSHARED="-shared"
8707 hppa*-*-linux*)
8708 { echo "$as_me:$LINENO: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
8709 echo "${ECHO_T}final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
8710 CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
8711 CONFIG_BSTATIC=""
8712 CONFIG_BSHARED="-shared"
8714 *sgi-irix*)
8715 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
8716 CONFIG_OS="IRIX"
8717 CONFIG_CXXFLAGS=""
8718 X_LIBS=-L/usr/lib32
8719 CONFIG_BSTATIC=""
8720 CONFIG_BSHARED=""
8721 CONFIG_BPATH=""
8722 X11_LDFLAGS="$X_LIBS -lX11"
8723 CONFIG_WORD_MASK="0xfffffff8"
8724 CONFIG_STD_SETENV=""
8725 CONFIG_CHMOD="chmod"
8726 CONFIG_LIB_PATH="LD_LIBRARYN32_PATH"
8728 m68k-*-linux* | mips-*-linux* | mipsel-*-linux* | arm*-*-linux*)
8729 { echo "$as_me:$LINENO: result: final adjustments for a supported GNU/Linux host" >&5
8730 echo "${ECHO_T}final adjustments for a supported GNU/Linux host" >&6; }
8732 *-linux*)
8733 { echo "$as_me:$LINENO: result: final adjustments for a generic GNU/Linux host" >&5
8734 echo "${ECHO_T}final adjustments for a generic GNU/Linux host" >&6; }
8737 { echo "$as_me:$LINENO: result: final adjustments for a generic host" >&5
8738 echo "${ECHO_T}final adjustments for a generic host" >&6; }
8740 esac
8742 #--------------------------------------------------------------------
8743 # Temporary fix for link problem
8744 #--------------------------------------------------------------------
8746 case "$GXX_VERSION" in
8747 3.* | 4.*)
8748 CONFIG_BSTATIC="-static"
8749 CONFIG_BSHARED="-dynamic"
8751 esac
8753 #--------------------------------------------------------------------
8754 # Memory allocation options
8755 #--------------------------------------------------------------------
8757 # Check whether --enable-fastalloc was given.
8758 if test "${enable_fastalloc+set}" = set; then
8759 enableval=$enable_fastalloc;
8760 else
8761 enable_fastalloc="yes"
8764 case "$enable_fastalloc" in
8765 yes)
8768 { echo "$as_me:$LINENO: result: disabling fast allocator for small objects" >&5
8769 echo "${ECHO_T}disabling fast allocator for small objects" >&6; }
8771 cat >>confdefs.h <<\_ACEOF
8772 #define NO_FAST_ALLOC 1
8773 _ACEOF
8777 { { echo "$as_me:$LINENO: error: bad option --enable-fastalloc=$enable_fastalloc" >&5
8778 echo "$as_me: error: bad option --enable-fastalloc=$enable_fastalloc" >&2;}
8779 { (exit 1); exit 1; }; }
8781 esac
8783 #--------------------------------------------------------------------
8784 # Experimental options
8785 #--------------------------------------------------------------------
8787 # Check whether --enable-experimental was given.
8788 if test "${enable_experimental+set}" = set; then
8789 enableval=$enable_experimental;
8790 else
8791 enable_experimental="no"
8794 case "$enable_experimental" in
8795 yes)
8796 { echo "$as_me:$LINENO: result: enabling experimental style rewriting code" >&5
8797 echo "${ECHO_T}enabling experimental style rewriting code" >&6; }
8799 cat >>confdefs.h <<\_ACEOF
8800 #define EXPERIMENTAL 1
8801 _ACEOF
8803 CONFIG_EXPERIMENTAL="Memorizer Environment Evaluate"
8806 { echo "$as_me:$LINENO: result: disabling experimental style rewriting code" >&5
8807 echo "${ECHO_T}disabling experimental style rewriting code" >&6; }
8808 CONFIG_EXPERIMENTAL=""
8811 { { echo "$as_me:$LINENO: error: bad option --enable-experimental=$enable_experimental" >&5
8812 echo "$as_me: error: bad option --enable-experimental=$enable_experimental" >&2;}
8813 { (exit 1); exit 1; }; }
8815 esac
8818 #--------------------------------------------------------------------
8819 # MacOS X extensions (spellchecker, image loading)
8820 #--------------------------------------------------------------------
8822 # Check whether --enable-macosx-extensions was given.
8823 if test "${enable_macosx_extensions+set}" = set; then
8824 enableval=$enable_macosx_extensions;
8825 else
8826 enable_macosx_extensions="no"
8829 case "$enable_macosx_extensions" in
8830 yes)
8831 { echo "$as_me:$LINENO: result: enabling Mac OSX extensions" >&5
8832 echo "${ECHO_T}enabling Mac OSX extensions" >&6; }
8834 cat >>confdefs.h <<\_ACEOF
8835 #define MACOSX_EXTENSIONS 1
8836 _ACEOF
8838 CONFIG_MACOS="MacOS"
8841 { echo "$as_me:$LINENO: result: disabling Mac OSX extensions" >&5
8842 echo "${ECHO_T}disabling Mac OSX extensions" >&6; }
8843 CONFIG_MACOS=""
8846 { { echo "$as_me:$LINENO: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&5
8847 echo "$as_me: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&2;}
8848 { (exit 1); exit 1; }; }
8850 esac
8853 #--------------------------------------------------------------------
8854 # Gui selection
8855 #--------------------------------------------------------------------
8857 CONFIG_X11=""
8858 CONFIG_COCOA=""
8859 CONFIG_GUI="X11"
8861 # Check whether --enable-qt was given.
8862 if test "${enable_qt+set}" = set; then
8863 enableval=$enable_qt;
8864 else
8865 enable_qt="no"
8869 case "$enable_qt" in
8870 yes)
8872 if test -r "/c/Qt"; then
8873 MOC="`which moc`"
8874 qt_bin="`dirname $MOC`"
8875 qt_home="`dirname $qt_bin`"
8876 qt_version="`basename $qt_home`"
8877 qt_parent="`dirname $qt_home`"
8878 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."
8879 QT_CXXFLAGS="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
8880 QT_LDFLAGS="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows"
8881 QT_LIBS="-L'c:/Qt/$qt_version/lib' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
8882 if test "$qt_parent" != "/c/Qt"; then
8883 at_cv_qt_build="ko"
8885 else
8890 test x"$TROLL" != x && echo 'ViM rox emacs.'
8893 # Check whether --with-qt was given.
8894 if test "${with_qt+set}" = set; then
8895 withval=$with_qt; QT_PATH=$withval
8896 else
8897 QT_PATH=
8901 # Find Qt.
8902 if test -d /usr/local/Trolltech; then
8903 # Try to find the latest version.
8904 tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
8905 | xargs | sed 's/ */:/g'`
8908 # Find qmake.
8909 if test -z "$QMAKE"; then
8910 for ac_prog in qmake
8912 # Extract the first word of "$ac_prog", so it can be a program name with args.
8913 set dummy $ac_prog; ac_word=$2
8914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8916 if test "${ac_cv_path_QMAKE+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 else
8919 case $QMAKE in
8920 [\\/]* | ?:[\\/]*)
8921 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
8924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8925 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
8926 for as_dir in $as_dummy
8928 IFS=$as_save_IFS
8929 test -z "$as_dir" && as_dir=.
8930 for ac_exec_ext in '' $ac_executable_extensions; do
8931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8932 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
8933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8934 break 2
8936 done
8937 done
8938 IFS=$as_save_IFS
8941 esac
8943 QMAKE=$ac_cv_path_QMAKE
8944 if test -n "$QMAKE"; then
8945 { echo "$as_me:$LINENO: result: $QMAKE" >&5
8946 echo "${ECHO_T}$QMAKE" >&6; }
8947 else
8948 { echo "$as_me:$LINENO: result: no" >&5
8949 echo "${ECHO_T}no" >&6; }
8953 test -n "$QMAKE" && break
8954 done
8955 test -n "$QMAKE" || QMAKE="missing"
8957 else
8958 { echo "$as_me:$LINENO: checking for the QMAKE to use with Qt" >&5
8959 echo $ECHO_N "checking for the QMAKE to use with Qt... $ECHO_C" >&6; }
8960 { echo "$as_me:$LINENO: result: $QMAKE" >&5
8961 echo "${ECHO_T}$QMAKE" >&6; }
8963 if test x"$QMAKE" = xmissing; then
8964 { { echo "$as_me:$LINENO: error: Cannot find qmake in your PATH. Try using --with-qt." >&5
8965 echo "$as_me: error: Cannot find qmake in your PATH. Try using --with-qt." >&2;}
8966 { (exit 1); exit 1; }; }
8969 # Find moc (Meta Object Compiler).
8970 if test -z "$MOC"; then
8971 for ac_prog in moc
8973 # Extract the first word of "$ac_prog", so it can be a program name with args.
8974 set dummy $ac_prog; ac_word=$2
8975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8977 if test "${ac_cv_path_MOC+set}" = set; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 else
8980 case $MOC in
8981 [\\/]* | ?:[\\/]*)
8982 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
8987 for as_dir in $as_dummy
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8993 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
8994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8995 break 2
8997 done
8998 done
8999 IFS=$as_save_IFS
9002 esac
9004 MOC=$ac_cv_path_MOC
9005 if test -n "$MOC"; then
9006 { echo "$as_me:$LINENO: result: $MOC" >&5
9007 echo "${ECHO_T}$MOC" >&6; }
9008 else
9009 { echo "$as_me:$LINENO: result: no" >&5
9010 echo "${ECHO_T}no" >&6; }
9014 test -n "$MOC" && break
9015 done
9016 test -n "$MOC" || MOC="missing"
9018 else
9019 { echo "$as_me:$LINENO: checking for the MOC to use with Qt" >&5
9020 echo $ECHO_N "checking for the MOC to use with Qt... $ECHO_C" >&6; }
9021 { echo "$as_me:$LINENO: result: $MOC" >&5
9022 echo "${ECHO_T}$MOC" >&6; }
9024 if test x"$MOC" = xmissing; then
9025 { { echo "$as_me:$LINENO: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&5
9026 echo "$as_me: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&2;}
9027 { (exit 1); exit 1; }; }
9030 # Find uic (User Interface Compiler).
9031 if test -z "$UIC"; then
9032 for ac_prog in uic
9034 # Extract the first word of "$ac_prog", so it can be a program name with args.
9035 set dummy $ac_prog; ac_word=$2
9036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9038 if test "${ac_cv_path_UIC+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 else
9041 case $UIC in
9042 [\\/]* | ?:[\\/]*)
9043 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
9046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9048 for as_dir in $as_dummy
9050 IFS=$as_save_IFS
9051 test -z "$as_dir" && as_dir=.
9052 for ac_exec_ext in '' $ac_executable_extensions; do
9053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9054 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
9055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9056 break 2
9058 done
9059 done
9060 IFS=$as_save_IFS
9063 esac
9065 UIC=$ac_cv_path_UIC
9066 if test -n "$UIC"; then
9067 { echo "$as_me:$LINENO: result: $UIC" >&5
9068 echo "${ECHO_T}$UIC" >&6; }
9069 else
9070 { echo "$as_me:$LINENO: result: no" >&5
9071 echo "${ECHO_T}no" >&6; }
9075 test -n "$UIC" && break
9076 done
9077 test -n "$UIC" || UIC="missing"
9079 else
9080 { echo "$as_me:$LINENO: checking for the UIC to use with Qt" >&5
9081 echo $ECHO_N "checking for the UIC to use with Qt... $ECHO_C" >&6; }
9082 { echo "$as_me:$LINENO: result: $UIC" >&5
9083 echo "${ECHO_T}$UIC" >&6; }
9085 if test x"$UIC" = xmissing; then
9086 { { echo "$as_me:$LINENO: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&5
9087 echo "$as_me: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&2;}
9088 { (exit 1); exit 1; }; }
9091 # Find rcc (Qt Resource Compiler).
9092 for ac_prog in rcc
9094 # Extract the first word of "$ac_prog", so it can be a program name with args.
9095 set dummy $ac_prog; ac_word=$2
9096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9098 if test "${ac_cv_path_RCC+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101 case $RCC in
9102 [\\/]* | ?:[\\/]*)
9103 ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9108 for as_dir in $as_dummy
9110 IFS=$as_save_IFS
9111 test -z "$as_dir" && as_dir=.
9112 for ac_exec_ext in '' $ac_executable_extensions; do
9113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9114 ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
9115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9116 break 2
9118 done
9119 done
9120 IFS=$as_save_IFS
9123 esac
9125 RCC=$ac_cv_path_RCC
9126 if test -n "$RCC"; then
9127 { echo "$as_me:$LINENO: result: $RCC" >&5
9128 echo "${ECHO_T}$RCC" >&6; }
9129 else
9130 { echo "$as_me:$LINENO: result: no" >&5
9131 echo "${ECHO_T}no" >&6; }
9135 test -n "$RCC" && break
9136 done
9137 test -n "$RCC" || RCC="false"
9139 if test x"$UIC" = xfalse; then
9140 { echo "$as_me:$LINENO: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
9141 echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
9144 # If we don't know the path to Qt, guess it from the path to qmake.
9145 if test x"$QT_PATH" = x; then
9146 QT_PATH=`dirname "$QMAKE"`
9148 if test x"$QT_PATH" = x; then
9149 { { echo "$as_me:$LINENO: error: Cannot find the path to your Qt install. Use --with-qt." >&5
9150 echo "$as_me: error: Cannot find the path to your Qt install. Use --with-qt." >&2;}
9151 { (exit 1); exit 1; }; }
9154 { echo "$as_me:$LINENO: checking for the QT_PATH to use with Qt" >&5
9155 echo $ECHO_N "checking for the QT_PATH to use with Qt... $ECHO_C" >&6; }
9156 { echo "$as_me:$LINENO: result: $QT_PATH" >&5
9157 echo "${ECHO_T}$QT_PATH" >&6; }
9159 # Get ready to build a test-app with Qt.
9161 # Look for a writable temporary directory.
9163 if test x"$TMPDIR" = x || test ! -d "$TMPDIR" || test ! -w "$TMPDIR"; then
9164 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
9166 for i in /tmp /var/tmp; do
9167 if test -d "$i" && test -w "$i"; then
9168 TMPDIR=$i
9169 export TMPDIR
9170 echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
9171 break
9173 done
9176 # Kludge!! QMake has a very strange behavior. For instance, if you
9177 # install Qt under your $HOME and run QMake somewhere else under your
9178 # $HOME, it will try to be clever and produce Makefiles with relative
9179 # include paths. In order to avoid this, we will test QMake from a
9180 # temporary directory (usually /tmp). Note that this problem was only
9181 # observed with Qt 4.
9182 my_configure_pwd=`pwd`
9183 my_tmpdir="$TMPDIR/conftest$$.dir"
9184 test -d "$my_tmpdir" || mkdir "$my_tmpdir"
9185 if test -w "$my_tmpdir" && cd "$my_tmpdir"
9186 then
9188 else
9189 { { echo "$as_me:$LINENO: error: Cannot cd to or write in $my_tmpdir" >&5
9190 echo "$as_me: error: Cannot cd to or write in $my_tmpdir" >&2;}
9191 { (exit 1); exit 1; }; }
9193 cat >conftest.h <<_ASEOF
9194 #include <QObject>
9196 class Foo: public QObject
9198 Q_OBJECT;
9199 public:
9200 Foo();
9201 ~Foo() {}
9202 public slots:
9203 void setValue(int value);
9204 signals:
9205 void valueChanged(int newValue);
9206 private:
9207 int value_;
9209 _ASEOF
9211 cat >conftest.cpp <<_ASEOF
9212 #include "conftest.h"
9213 Foo::Foo()
9214 : value_ (42)
9216 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
9219 void Foo::setValue(int value)
9221 value_ = value;
9224 int main()
9226 Foo f;
9228 _ASEOF
9229 if $QMAKE -project; then :; else
9230 { { echo "$as_me:$LINENO: error: Calling $QMAKE -project failed." >&5
9231 echo "$as_me: error: Calling $QMAKE -project failed." >&2;}
9232 { (exit 1); exit 1; }; }
9235 # Find the .pro file generated by qmake.
9236 pro_file='conftest.dir.pro'
9237 test -f $pro_file || pro_file=`echo *.pro`
9238 if test -f "$pro_file"; then :; else
9239 { { echo "$as_me:$LINENO: error: Can't find the .pro file generated by Qmake." >&5
9240 echo "$as_me: error: Can't find the .pro file generated by Qmake." >&2;}
9241 { (exit 1); exit 1; }; }
9250 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
9251 sed 's/^/| /' "$pro_file" >&5
9253 additional_qmake_flags=""
9254 case $host_os in
9255 darwin*)
9256 additional_qmake_flags="-spec macx-g++"
9258 esac
9260 if $QMAKE ${additional_qmake_flags} ; then :; else
9261 { { echo "$as_me:$LINENO: error: Calling $QMAKE failed." >&5
9262 echo "$as_me: error: Calling $QMAKE failed." >&2;}
9263 { (exit 1); exit 1; }; }
9265 # Try to compile a simple Qt app.
9266 { echo "$as_me:$LINENO: checking whether we can build a simple Qt app" >&5
9267 echo $ECHO_N "checking whether we can build a simple Qt app... $ECHO_C" >&6; }
9268 if test "${at_cv_qt_build+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9271 at_cv_qt_build=ko
9272 : ${MAKE=make}
9274 if $MAKE >&5 2>&1; then
9275 at_cv_qt_build='ok, looks like Qt 4'
9276 else
9277 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9278 instead" >&5
9279 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
9280 if $MAKE >&5 2>&1; then
9281 at_cv_qt_build='ok, looks like Qt 3'
9282 else
9283 # Sometimes (such as on Debian) build will fail because Qt hasn't been
9284 # installed in debug mode and qmake tries (by default) to build apps in
9285 # debug mode => Try again in release mode.
9286 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
9289 # Tweak the value of CONFIG in the .pro file for +release.
9291 qt_conf=''
9292 for at_mod in +release; do
9293 at_mod=`echo "$at_mod" | sed 's/^-//; tough
9294 s/^+//; beef
9295 :ough
9296 s/^/CONFIG -= /;n
9297 :eef
9298 s/^/CONFIG += /'`
9299 qt_conf="$qt_conf
9300 $at_mod"
9301 done
9302 echo "$qt_conf" | sed 1d >>"$pro_file"
9305 sed 's/<qobject.h>/<QObject>/' conftest.h > tmp.h && mv tmp.h conftest.h
9306 if $MAKE >&5 2>&1; then
9307 at_cv_qt_build='ok, looks like Qt 4, release mode forced'
9308 else
9309 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9310 instead" >&5
9311 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
9312 if $MAKE >&5 2>&1; then
9313 at_cv_qt_build='ok, looks like Qt 3, release mode forced'
9314 else
9315 at_cv_qt_build=ko
9316 echo "$as_me:$LINENO: failed program was:" >&5
9317 sed 's/^/| /' conftest.h >&5
9318 echo "$as_me:$LINENO: failed program was:" >&5
9319 sed 's/^/| /' conftest.cpp >&5
9320 fi # if make with Qt3-style #include and release mode forced.
9321 fi # if make with Qt4-style #include and release mode forced.
9322 fi # if make with Qt3-style #include.
9323 fi # if make with Qt4-style #include.
9326 { echo "$as_me:$LINENO: result: $at_cv_qt_build" >&5
9327 echo "${ECHO_T}$at_cv_qt_build" >&6; }
9328 if test x"$at_cv_qt_build" = xko; then
9329 { { echo "$as_me:$LINENO: error: Cannot build a test Qt program" >&5
9330 echo "$as_me: error: Cannot build a test Qt program" >&2;}
9331 { (exit 1); exit 1; }; }
9333 QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
9336 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
9337 # It starts by removing the beginning of the line, removing references to
9338 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
9339 # all variable uses by QT_.
9340 qt_sed_filter='s///;
9341 s/$(SUBLIBS)//g;
9342 s/^ *//;
9343 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
9345 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
9346 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
9347 # Makefile.Release. The reason is that the main difference is that release
9348 # uses -Os and debug -g. We can override -Os by passing another -O but we
9349 # usually don't override -g.
9350 if test -f Makefile.Release; then
9351 at_mfile='Makefile.Release'
9352 else
9353 at_mfile='Makefile'
9355 if test -f $at_mfile; then :; else
9356 cd "$my_configure_pwd"
9357 { { echo "$as_me:$LINENO: error: Cannot find the Makefile generated by qmake." >&5
9358 echo "$as_me: error: Cannot find the Makefile generated by qmake." >&2;}
9359 { (exit 1); exit 1; }; }
9362 # Find the DEFINES of Qt (should have been named CPPFLAGS).
9363 if test -z "$QT_DEFINES"; then
9364 { echo "$as_me:$LINENO: checking for the DEFINES to use with Qt" >&5
9365 echo $ECHO_N "checking for the DEFINES to use with Qt... $ECHO_C" >&6; }
9366 if test "${at_cv_env_QT_DEFINES+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 else
9369 at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9371 { echo "$as_me:$LINENO: result: $at_cv_env_QT_DEFINES" >&5
9372 echo "${ECHO_T}$at_cv_env_QT_DEFINES" >&6; }
9373 QT_DEFINES="$at_cv_env_QT_DEFINES"
9376 { echo "$as_me:$LINENO: checking for the QT_DEFINES to use with Qt" >&5
9377 echo $ECHO_N "checking for the QT_DEFINES to use with Qt... $ECHO_C" >&6; }
9378 { echo "$as_me:$LINENO: result: $QT_DEFINES" >&5
9379 echo "${ECHO_T}$QT_DEFINES" >&6; }
9381 # Find the CFLAGS of Qt (We can use Qt in C?!)
9382 if test -z "$QT_CFLAGS"; then
9383 { echo "$as_me:$LINENO: checking for the CFLAGS to use with Qt" >&5
9384 echo $ECHO_N "checking for the CFLAGS to use with Qt... $ECHO_C" >&6; }
9385 if test "${at_cv_env_QT_CFLAGS+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 else
9388 at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9390 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CFLAGS" >&5
9391 echo "${ECHO_T}$at_cv_env_QT_CFLAGS" >&6; }
9392 QT_CFLAGS="$at_cv_env_QT_CFLAGS"
9395 { echo "$as_me:$LINENO: checking for the QT_CFLAGS to use with Qt" >&5
9396 echo $ECHO_N "checking for the QT_CFLAGS to use with Qt... $ECHO_C" >&6; }
9397 { echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
9398 echo "${ECHO_T}$QT_CFLAGS" >&6; }
9400 # Find the CXXFLAGS of Qt.
9401 if test -z "$QT_CXXFLAGS"; then
9402 { echo "$as_me:$LINENO: checking for the CXXFLAGS to use with Qt" >&5
9403 echo $ECHO_N "checking for the CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9404 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9406 else
9407 at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9409 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CXXFLAGS" >&5
9410 echo "${ECHO_T}$at_cv_env_QT_CXXFLAGS" >&6; }
9411 QT_CXXFLAGS="$at_cv_env_QT_CXXFLAGS"
9414 { echo "$as_me:$LINENO: checking for the QT_CXXFLAGS to use with Qt" >&5
9415 echo $ECHO_N "checking for the QT_CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9416 { echo "$as_me:$LINENO: result: $QT_CXXFLAGS" >&5
9417 echo "${ECHO_T}$QT_CXXFLAGS" >&6; }
9419 # Find the INCPATH of Qt.
9420 if test -z "$QT_INCPATH"; then
9421 { echo "$as_me:$LINENO: checking for the INCPATH to use with Qt" >&5
9422 echo $ECHO_N "checking for the INCPATH to use with Qt... $ECHO_C" >&6; }
9423 if test "${at_cv_env_QT_INCPATH+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426 at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9428 { echo "$as_me:$LINENO: result: $at_cv_env_QT_INCPATH" >&5
9429 echo "${ECHO_T}$at_cv_env_QT_INCPATH" >&6; }
9430 QT_INCPATH="$at_cv_env_QT_INCPATH"
9433 { echo "$as_me:$LINENO: checking for the QT_INCPATH to use with Qt" >&5
9434 echo $ECHO_N "checking for the QT_INCPATH to use with Qt... $ECHO_C" >&6; }
9435 { echo "$as_me:$LINENO: result: $QT_INCPATH" >&5
9436 echo "${ECHO_T}$QT_INCPATH" >&6; }
9438 QT_CPPFLAGS="$QT_DEFINES $QT_INCPATH"
9441 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
9442 if test -z "$QT_LDFLAGS"; then
9443 { echo "$as_me:$LINENO: checking for the LDFLAGS to use with Qt" >&5
9444 echo $ECHO_N "checking for the LDFLAGS to use with Qt... $ECHO_C" >&6; }
9445 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448 at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9450 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LDFLAGS" >&5
9451 echo "${ECHO_T}$at_cv_env_QT_LDFLAGS" >&6; }
9452 QT_LDFLAGS="$at_cv_env_QT_LDFLAGS"
9455 QT_LFLAGS=$QT_LDFLAGS
9457 { echo "$as_me:$LINENO: checking for the QT_LDFLAGS to use with Qt" >&5
9458 echo $ECHO_N "checking for the QT_LDFLAGS to use with Qt... $ECHO_C" >&6; }
9459 { echo "$as_me:$LINENO: result: $QT_LDFLAGS" >&5
9460 echo "${ECHO_T}$QT_LDFLAGS" >&6; }
9462 { echo "$as_me:$LINENO: checking whether host operating system is Darwin" >&5
9463 echo $ECHO_N "checking whether host operating system is Darwin... $ECHO_C" >&6; }
9464 at_darwin="no"
9465 case $host_os in
9466 darwin*)
9467 at_darwin="yes"
9469 esac
9470 { echo "$as_me:$LINENO: result: $at_darwin" >&5
9471 echo "${ECHO_T}$at_darwin" >&6; }
9473 # Find the LIBS of Qt.
9474 if test -z "$QT_LIBS"; then
9475 { echo "$as_me:$LINENO: checking for the LIBS to use with Qt" >&5
9476 echo $ECHO_N "checking for the LIBS to use with Qt... $ECHO_C" >&6; }
9477 if test "${at_cv_env_QT_LIBS+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480 at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9481 if test x$at_darwin = xyes; then
9482 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
9483 # -F properly. The "bug" has been fixed on 22 October 2006
9484 # by Peter O'Gorman but we provide backward compatibility here.
9485 at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
9486 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
9490 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LIBS" >&5
9491 echo "${ECHO_T}$at_cv_env_QT_LIBS" >&6; }
9492 QT_LIBS="$at_cv_env_QT_LIBS"
9495 { echo "$as_me:$LINENO: checking for the QT_LIBS to use with Qt" >&5
9496 echo $ECHO_N "checking for the QT_LIBS to use with Qt... $ECHO_C" >&6; }
9497 { echo "$as_me:$LINENO: result: $QT_LIBS" >&5
9498 echo "${ECHO_T}$QT_LIBS" >&6; }
9500 cd "$my_configure_pwd" || echo 'WTF!'
9501 rm -rf "$my_tmpdir"
9505 if test x"$at_cv_qt_build" = xko; then
9506 { { echo "$as_me:$LINENO: error: cannot find Qt!" >&5
9507 echo "$as_me: error: cannot find Qt!" >&2;}
9508 { (exit 1); exit 1; }; }
9509 else
9510 { echo "$as_me:$LINENO: result: enabling experimental Qt port" >&5
9511 echo "${ECHO_T}enabling experimental Qt port" >&6; }
9512 CONFIG_GUI="QT"
9516 { echo "$as_me:$LINENO: result: disabling experimental Qt port" >&5
9517 echo "${ECHO_T}disabling experimental Qt port" >&6; }
9520 { { echo "$as_me:$LINENO: error: bad option --enable-qt=$enable_qt" >&5
9521 echo "$as_me: error: bad option --enable-qt=$enable_qt" >&2;}
9522 { (exit 1); exit 1; }; }
9524 esac
9526 # Check whether --enable-cocoa was given.
9527 if test "${enable_cocoa+set}" = set; then
9528 enableval=$enable_cocoa;
9529 else
9530 enable_cocoa="no"
9533 case "$enable_cocoa" in
9534 yes)
9535 { echo "$as_me:$LINENO: result: enabling experimental Cocoa port" >&5
9536 echo "${ECHO_T}enabling experimental Cocoa port" >&6; }
9537 COCOA_CFLAGS=""
9538 COCOA_LDFLAGS="-framework Cocoa"
9539 CONFIG_GUI="COCOA"
9542 { echo "$as_me:$LINENO: result: disabling experimental Cocoa port" >&5
9543 echo "${ECHO_T}disabling experimental Cocoa port" >&6; }
9546 { { echo "$as_me:$LINENO: error: bad option --enable-cocoa=$enable_cocoa" >&5
9547 echo "$as_me: error: bad option --enable-cocoa=$enable_cocoa" >&2;}
9548 { (exit 1); exit 1; }; }
9550 esac
9552 case "$CONFIG_GUI" in
9553 X11)
9554 CONFIG_X11="X11 Widkit Ghostscript"
9555 CONFIG_GUI_DEFINE="X11TEXMACS"
9556 # AC_DEFINE(X11TEXMACS, 1, [Use standard X11 port])
9558 COCOA)
9559 CONFIG_COCOA="Cocoa"
9560 CONFIG_GUI_DEFINE="AQUATEXMACS"
9561 # AC_DEFINE(AQUATEXMACS, 1, [Enable experimental Cocoa port])
9564 CONFIG_QT="Qt"
9565 CONFIG_GUI_DEFINE="QTTEXMACS"
9566 # AC_DEFINE(QTTEXMACS, 1, [Enable experimental Qt port])
9568 esac
9583 #--------------------------------------------------------------------
9584 # Debugging options
9585 #--------------------------------------------------------------------
9587 STD_DEBUG_FLAGS="-fno-rtti -fno-exceptions"
9588 if test "$enable_cocoa" = "yes"; then
9589 STD_DEBUG_FLAGS="-fno-exceptions"
9592 { echo "$as_me:$LINENO: checking if compiler supports $STD_DEBUG_FLAGS" >&5
9593 echo $ECHO_N "checking if compiler supports $STD_DEBUG_FLAGS... $ECHO_C" >&6; }
9594 CXXFLAGS="$STD_DEBUG_FLAGS"
9595 cat >conftest.$ac_ext <<_ACEOF
9596 /* confdefs.h. */
9597 _ACEOF
9598 cat confdefs.h >>conftest.$ac_ext
9599 cat >>conftest.$ac_ext <<_ACEOF
9600 /* end confdefs.h. */
9602 int some_variable = 0;
9605 main ()
9610 return 0;
9612 _ACEOF
9613 rm -f conftest.$ac_objext
9614 if { (ac_try="$ac_compile"
9615 case "(($ac_try" in
9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9618 esac
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_compile") 2>conftest.er1
9621 ac_status=$?
9622 grep -v '^ *+' conftest.er1 >conftest.err
9623 rm -f conftest.er1
9624 cat conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } && {
9627 test -z "$ac_cxx_werror_flag" ||
9628 test ! -s conftest.err
9629 } && test -s conftest.$ac_objext; then
9631 CONFIG_CXXDIALECT="$STD_DEBUG_FLAGS"
9632 { echo "$as_me:$LINENO: result: yes" >&5
9633 echo "${ECHO_T}yes" >&6; }
9635 else
9636 echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.$ac_ext >&5
9640 CONFIG_CXXDIALECT=""
9641 { echo "$as_me:$LINENO: result: no" >&5
9642 echo "${ECHO_T}no" >&6; }
9646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9647 CXXFLAGS=""
9650 # Check whether --enable-debug was given.
9651 if test "${enable_debug+set}" = set; then
9652 enableval=$enable_debug;
9653 else
9654 enable_debug="no"
9658 if test "$enable_debug" = "yes"; then
9659 if test "$GXX" = "yes"; then
9660 enable_debug="-ggdb"
9661 else
9662 enable_debug="-g3"
9666 if test "$enable_debug" = "no"; then
9667 { echo "$as_me:$LINENO: result: disabling debugging" >&5
9668 echo "${ECHO_T}disabling debugging" >&6; }
9669 CONFIG_STRIP="strip"
9670 CONFIG_CXXDEBUG=""
9671 optimize_default="yes"
9672 else
9673 { echo "$as_me:$LINENO: result: enabling debugging, $enable_debug" >&5
9674 echo "${ECHO_T}enabling debugging, $enable_debug" >&6; }
9675 CONFIG_STRIP="true"
9676 CONFIG_CXXDEBUG="$enable_debug"
9677 optimize_default="no"
9680 # Check whether --enable-assert was given.
9681 if test "${enable_assert+set}" = set; then
9682 enableval=$enable_assert;
9683 else
9684 enable_assert="yes"
9688 if test "$enable_assert" = "no"; then
9689 { echo "$as_me:$LINENO: result: disabling assertion checking" >&5
9690 echo "${ECHO_T}disabling assertion checking" >&6; }
9691 else
9692 { echo "$as_me:$LINENO: result: enabling assertion checking" >&5
9693 echo "${ECHO_T}enabling assertion checking" >&6; }
9695 cat >>confdefs.h <<\_ACEOF
9696 #define DEBUG_ASSERT 1
9697 _ACEOF
9701 #--------------------------------------------------------------------
9702 # Warning options
9703 #--------------------------------------------------------------------
9705 case "$GXX_VERSION" in
9706 none)
9707 CONFIG_CXXWARNING="";
9710 CONFIG_CXXWARNING="-Wall -Wno-return-type"
9712 esac
9714 # Check whether --enable-warnings was given.
9715 if test "${enable_warnings+set}" = set; then
9716 enableval=$enable_warnings;
9717 else
9718 enable_warnings="yes"
9721 case "$enable_warnings" in
9722 yes)
9723 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9724 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9726 CONFIG_CXXWARNING=""
9727 { echo "$as_me:$LINENO: result: disabling warning flags" >&5
9728 echo "${ECHO_T}disabling warning flags" >&6; } ;;
9730 CONFIG_CXXWARNING="$enable_warnings"
9731 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9732 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9733 esac
9735 #--------------------------------------------------------------------
9736 # Optimization options
9737 #--------------------------------------------------------------------
9739 if test "$optimize_default" = "yes"; then
9740 case "$GXX_VERSION" in
9741 3.3.3 | 3.3.4 | 4.*)
9743 2.96 | 3.0 | 3.0.* | 3.1 | 3.1.* | 3.2 | 3.2.* | 3.3 | 3.3.*)
9744 case "${host}" in
9745 i*86-*-linux-gnu* | i*86-*-freebsd*)
9746 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9747 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9748 optimize_default="no-inline"
9751 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9752 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9753 optimize_default="no-inline"
9755 esac
9757 esac
9760 # Check whether --enable-optimize was given.
9761 if test "${enable_optimize+set}" = set; then
9762 enableval=$enable_optimize;
9763 else
9764 enable_optimize="$optimize_default"
9768 case "$enable_optimize" in
9769 yes)
9770 # keep optimization options
9771 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9772 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9773 no-inline)
9774 optimize_no_inline="-fno-default-inline -fno-inline"
9775 CONFIG_CXXOPTIMIZE="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
9776 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9777 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9779 CONFIG_CXXOPTIMIZE=""
9780 { echo "$as_me:$LINENO: result: disabling optimizations" >&5
9781 echo "${ECHO_T}disabling optimizations" >&6; } ;;
9783 CONFIG_CXXOPTIMIZE="$enable_optimize"
9784 { echo "$as_me:$LINENO: result: customizing optimizations, $enable_optimize" >&5
9785 echo "${ECHO_T}customizing optimizations, $enable_optimize" >&6; } ;;
9786 esac
9788 #--------------------------------------------------------------------
9789 # Substitute TeXmacs specific configuration parameters
9790 #--------------------------------------------------------------------
9815 #--------------------------------------------------------------------
9816 # Default paths for installation
9817 #--------------------------------------------------------------------
9819 if test "$prefix" = ""; then
9820 prefix=/usr/local
9822 if test "$prefix" = "NONE"; then
9823 prefix=/usr/local
9825 if test "$exec_prefix" = ""; then
9826 exec_prefix='${prefix}'
9828 if test "$exec_prefix" = "NONE"; then
9829 exec_prefix='${prefix}'
9831 if test "$exec_prefix" = '${prefix}'; then
9832 exec_prefix='${prefix}'
9834 if test "$includedir" = ""; then
9835 includedir='${prefix}/include'
9837 if test "$includedir" = "NONE"; then
9838 includedir='${prefix}/include'
9840 if test "$includedir" = '${prefix}/include'; then
9841 includedir='${prefix}/include'
9843 if test "$libdir" = ""; then
9844 libdir='${exec_prefix}/lib'
9846 if test "$libdir" = "NONE"; then
9847 libdir='${exec_prefix}/lib'
9849 if test "$libdir" = '${exec_prefix}/lib'; then
9850 libdir='${exec_prefix}/lib'
9852 if test "$bindir" = ""; then
9853 bindir='${exec_prefix}/bin'
9855 if test "$bindir" = "NONE"; then
9856 bindir=${exec_prefix}/bin
9858 if test "$bindir" = '${exec_prefix}/bin'; then
9859 bindir='${exec_prefix}/bin'
9861 if test "$datarootdir" = ""; then
9862 datarootdir='${prefix}/share'
9864 if test "$datarootdir" = "NONE"; then
9865 datarootdir='${prefix}/share'
9867 if test "$datarootdir" = '${prefix}/share'; then
9868 datarootdir='${prefix}/share'
9870 if test "$datadir" = ""; then
9871 datadir='${prefix}/share'
9873 if test "$datadir" = "NONE"; then
9874 datadir='${prefix}/share'
9876 if test "$datadir" = '${prefix}/share'; then
9877 datadir='${prefix}/share'
9879 if test "$mandir" = ""; then
9880 mandir='${datarootdir}/man'
9882 if test "$mandir" = "NONE"; then
9883 mandir='${datarootdir}/man'
9885 if test "$mandir" = '${datarootdir}/man'; then
9886 mandir='${datarootdir}/man'
9888 if test "$libexecdir" = ""; then
9889 libexecdir='${exec_prefix}/libexec'
9891 if test "$libexecdir" = "NONE"; then
9892 libexecdir='${exec_prefix}/libexec'
9894 if test "$libexecdir" = '${exec_prefix}/libexec'; then
9895 libexecdir='${exec_prefix}/libexec'
9898 curdir="`pwd`"
9899 tmorig=${curdir}
9900 tmdir=${PACKAGE}
9901 tmsrc=${curdir}/${tmdir}
9902 tmbin=${libexecdir}/${tmdir}
9903 tmdata=${datadir}/${tmdir}
9910 if test "$DEVEL_RELEASE" = "1"; then
9911 tmtgz=${PACKAGE}-${DEVEL_VERSION}
9912 else
9913 tmtgz=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
9915 tmrpm=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
9916 if test "$STABLE_RELEASE" = "1"; then
9917 tmstgz=${PACKAGE}-${STABLE_VERSION}
9918 else
9919 tmstgz=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
9921 tmsrpm=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
9922 if test "$WINDOWS_RELEASE" = "1"; then
9923 tmwin=wintexmacs-${WINDOWS_VERSION}
9924 else
9925 tmwin=wintexmacs-${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
9933 #--------------------------------------------------------------------
9934 # Done
9935 #--------------------------------------------------------------------
9937 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"
9939 cat >confcache <<\_ACEOF
9940 # This file is a shell script that caches the results of configure
9941 # tests run on this system so they can be shared between configure
9942 # scripts and configure runs, see configure's option --config-cache.
9943 # It is not useful on other systems. If it contains results you don't
9944 # want to keep, you may remove or edit it.
9946 # config.status only pays attention to the cache file if you give it
9947 # the --recheck option to rerun configure.
9949 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9950 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9951 # following values.
9953 _ACEOF
9955 # The following way of writing the cache mishandles newlines in values,
9956 # but we know of no workaround that is simple, portable, and efficient.
9957 # So, we kill variables containing newlines.
9958 # Ultrix sh set writes to stderr and can't be redirected directly,
9959 # and sets the high bit in the cache file unless we assign to the vars.
9961 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9962 eval ac_val=\$$ac_var
9963 case $ac_val in #(
9964 *${as_nl}*)
9965 case $ac_var in #(
9966 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9967 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9968 esac
9969 case $ac_var in #(
9970 _ | IFS | as_nl) ;; #(
9971 *) $as_unset $ac_var ;;
9972 esac ;;
9973 esac
9974 done
9976 (set) 2>&1 |
9977 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9978 *${as_nl}ac_space=\ *)
9979 # `set' does not quote correctly, so add quotes (double-quote
9980 # substitution turns \\\\ into \\, and sed turns \\ into \).
9981 sed -n \
9982 "s/'/'\\\\''/g;
9983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9984 ;; #(
9986 # `set' quotes correctly as required by POSIX, so do not add quotes.
9987 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9989 esac |
9990 sort
9992 sed '
9993 /^ac_cv_env_/b end
9994 t clear
9995 :clear
9996 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9997 t end
9998 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9999 :end' >>confcache
10000 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10001 if test -w "$cache_file"; then
10002 test "x$cache_file" != "x/dev/null" &&
10003 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10004 echo "$as_me: updating cache $cache_file" >&6;}
10005 cat confcache >$cache_file
10006 else
10007 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10008 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10011 rm -f confcache
10013 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10014 # Let make expand exec_prefix.
10015 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10017 DEFS=-DHAVE_CONFIG_H
10019 ac_libobjs=
10020 ac_ltlibobjs=
10021 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10022 # 1. Remove the extension, and $U if already installed.
10023 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10024 ac_i=`echo "$ac_i" | sed "$ac_script"`
10025 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10026 # will be set to the directory where LIBOBJS objects are built.
10027 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10028 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10029 done
10030 LIBOBJS=$ac_libobjs
10032 LTLIBOBJS=$ac_ltlibobjs
10036 : ${CONFIG_STATUS=./config.status}
10037 ac_clean_files_save=$ac_clean_files
10038 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10039 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10040 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10041 cat >$CONFIG_STATUS <<_ACEOF
10042 #! $SHELL
10043 # Generated by $as_me.
10044 # Run this file to recreate the current configuration.
10045 # Compiler output produced by configure, useful for debugging
10046 # configure, is in config.log if it exists.
10048 debug=false
10049 ac_cs_recheck=false
10050 ac_cs_silent=false
10051 SHELL=\${CONFIG_SHELL-$SHELL}
10052 _ACEOF
10054 cat >>$CONFIG_STATUS <<\_ACEOF
10055 ## --------------------- ##
10056 ## M4sh Initialization. ##
10057 ## --------------------- ##
10059 # Be more Bourne compatible
10060 DUALCASE=1; export DUALCASE # for MKS sh
10061 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10062 emulate sh
10063 NULLCMD=:
10064 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10065 # is contrary to our usage. Disable this feature.
10066 alias -g '${1+"$@"}'='"$@"'
10067 setopt NO_GLOB_SUBST
10068 else
10069 case `(set -o) 2>/dev/null` in
10070 *posix*) set -o posix ;;
10071 esac
10078 # PATH needs CR
10079 # Avoid depending upon Character Ranges.
10080 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10081 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10082 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10083 as_cr_digits='0123456789'
10084 as_cr_alnum=$as_cr_Letters$as_cr_digits
10086 # The user is always right.
10087 if test "${PATH_SEPARATOR+set}" != set; then
10088 echo "#! /bin/sh" >conf$$.sh
10089 echo "exit 0" >>conf$$.sh
10090 chmod +x conf$$.sh
10091 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10092 PATH_SEPARATOR=';'
10093 else
10094 PATH_SEPARATOR=:
10096 rm -f conf$$.sh
10099 # Support unset when possible.
10100 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10101 as_unset=unset
10102 else
10103 as_unset=false
10107 # IFS
10108 # We need space, tab and new line, in precisely that order. Quoting is
10109 # there to prevent editors from complaining about space-tab.
10110 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10111 # splitting by setting IFS to empty value.)
10112 as_nl='
10114 IFS=" "" $as_nl"
10116 # Find who we are. Look in the path if we contain no directory separator.
10117 case $0 in
10118 *[\\/]* ) as_myself=$0 ;;
10119 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10120 for as_dir in $PATH
10122 IFS=$as_save_IFS
10123 test -z "$as_dir" && as_dir=.
10124 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10125 done
10126 IFS=$as_save_IFS
10129 esac
10130 # We did not find ourselves, most probably we were run as `sh COMMAND'
10131 # in which case we are not to be found in the path.
10132 if test "x$as_myself" = x; then
10133 as_myself=$0
10135 if test ! -f "$as_myself"; then
10136 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10137 { (exit 1); exit 1; }
10140 # Work around bugs in pre-3.0 UWIN ksh.
10141 for as_var in ENV MAIL MAILPATH
10142 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10143 done
10144 PS1='$ '
10145 PS2='> '
10146 PS4='+ '
10148 # NLS nuisances.
10149 for as_var in \
10150 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10151 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10152 LC_TELEPHONE LC_TIME
10154 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10155 eval $as_var=C; export $as_var
10156 else
10157 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10159 done
10161 # Required to use basename.
10162 if expr a : '\(a\)' >/dev/null 2>&1 &&
10163 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10164 as_expr=expr
10165 else
10166 as_expr=false
10169 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10170 as_basename=basename
10171 else
10172 as_basename=false
10176 # Name of the executable.
10177 as_me=`$as_basename -- "$0" ||
10178 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10179 X"$0" : 'X\(//\)$' \| \
10180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10181 echo X/"$0" |
10182 sed '/^.*\/\([^/][^/]*\)\/*$/{
10183 s//\1/
10186 /^X\/\(\/\/\)$/{
10187 s//\1/
10190 /^X\/\(\/\).*/{
10191 s//\1/
10194 s/.*/./; q'`
10196 # CDPATH.
10197 $as_unset CDPATH
10201 as_lineno_1=$LINENO
10202 as_lineno_2=$LINENO
10203 test "x$as_lineno_1" != "x$as_lineno_2" &&
10204 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10206 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10207 # uniformly replaced by the line number. The first 'sed' inserts a
10208 # line-number line after each line using $LINENO; the second 'sed'
10209 # does the real work. The second script uses 'N' to pair each
10210 # line-number line with the line containing $LINENO, and appends
10211 # trailing '-' during substitution so that $LINENO is not a special
10212 # case at line end.
10213 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10214 # scripts with optimization help from Paolo Bonzini. Blame Lee
10215 # E. McMahon (1931-1989) for sed's syntax. :-)
10216 sed -n '
10218 /[$]LINENO/=
10219 ' <$as_myself |
10220 sed '
10221 s/[$]LINENO.*/&-/
10222 t lineno
10224 :lineno
10226 :loop
10227 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10228 t loop
10229 s/-\n.*//
10230 ' >$as_me.lineno &&
10231 chmod +x "$as_me.lineno" ||
10232 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10233 { (exit 1); exit 1; }; }
10235 # Don't try to exec as it changes $[0], causing all sort of problems
10236 # (the dirname of $[0] is not the place where we might find the
10237 # original and so on. Autoconf is especially sensitive to this).
10238 . "./$as_me.lineno"
10239 # Exit status is that of the last command.
10240 exit
10244 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10245 as_dirname=dirname
10246 else
10247 as_dirname=false
10250 ECHO_C= ECHO_N= ECHO_T=
10251 case `echo -n x` in
10252 -n*)
10253 case `echo 'x\c'` in
10254 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10255 *) ECHO_C='\c';;
10256 esac;;
10258 ECHO_N='-n';;
10259 esac
10261 if expr a : '\(a\)' >/dev/null 2>&1 &&
10262 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10263 as_expr=expr
10264 else
10265 as_expr=false
10268 rm -f conf$$ conf$$.exe conf$$.file
10269 if test -d conf$$.dir; then
10270 rm -f conf$$.dir/conf$$.file
10271 else
10272 rm -f conf$$.dir
10273 mkdir conf$$.dir
10275 echo >conf$$.file
10276 if ln -s conf$$.file conf$$ 2>/dev/null; then
10277 as_ln_s='ln -s'
10278 # ... but there are two gotchas:
10279 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10280 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10281 # In both cases, we have to default to `cp -p'.
10282 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10283 as_ln_s='cp -p'
10284 elif ln conf$$.file conf$$ 2>/dev/null; then
10285 as_ln_s=ln
10286 else
10287 as_ln_s='cp -p'
10289 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10290 rmdir conf$$.dir 2>/dev/null
10292 if mkdir -p . 2>/dev/null; then
10293 as_mkdir_p=:
10294 else
10295 test -d ./-p && rmdir ./-p
10296 as_mkdir_p=false
10299 if test -x / >/dev/null 2>&1; then
10300 as_test_x='test -x'
10301 else
10302 if ls -dL / >/dev/null 2>&1; then
10303 as_ls_L_option=L
10304 else
10305 as_ls_L_option=
10307 as_test_x='
10308 eval sh -c '\''
10309 if test -d "$1"; then
10310 test -d "$1/.";
10311 else
10312 case $1 in
10313 -*)set "./$1";;
10314 esac;
10315 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10316 ???[sx]*):;;*)false;;esac;fi
10317 '\'' sh
10320 as_executable_p=$as_test_x
10322 # Sed expression to map a string onto a valid CPP name.
10323 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10325 # Sed expression to map a string onto a valid variable name.
10326 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10329 exec 6>&1
10331 # Save the log message, to keep $[0] and so on meaningful, and to
10332 # report actual input values of CONFIG_FILES etc. instead of their
10333 # values after options handling.
10334 ac_log="
10335 This file was extended by $as_me, which was
10336 generated by GNU Autoconf 2.61. Invocation command line was
10338 CONFIG_FILES = $CONFIG_FILES
10339 CONFIG_HEADERS = $CONFIG_HEADERS
10340 CONFIG_LINKS = $CONFIG_LINKS
10341 CONFIG_COMMANDS = $CONFIG_COMMANDS
10342 $ $0 $@
10344 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10347 _ACEOF
10349 cat >>$CONFIG_STATUS <<_ACEOF
10350 # Files that config.status was made for.
10351 config_files="$ac_config_files"
10352 config_headers="$ac_config_headers"
10354 _ACEOF
10356 cat >>$CONFIG_STATUS <<\_ACEOF
10357 ac_cs_usage="\
10358 \`$as_me' instantiates files from templates according to the
10359 current configuration.
10361 Usage: $0 [OPTIONS] [FILE]...
10363 -h, --help print this help, then exit
10364 -V, --version print version number and configuration settings, then exit
10365 -q, --quiet do not print progress messages
10366 -d, --debug don't remove temporary files
10367 --recheck update $as_me by reconfiguring in the same conditions
10368 --file=FILE[:TEMPLATE]
10369 instantiate the configuration file FILE
10370 --header=FILE[:TEMPLATE]
10371 instantiate the configuration header FILE
10373 Configuration files:
10374 $config_files
10376 Configuration headers:
10377 $config_headers
10379 Report bugs to <bug-autoconf@gnu.org>."
10381 _ACEOF
10382 cat >>$CONFIG_STATUS <<_ACEOF
10383 ac_cs_version="\\
10384 config.status
10385 configured by $0, generated by GNU Autoconf 2.61,
10386 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10388 Copyright (C) 2006 Free Software Foundation, Inc.
10389 This config.status script is free software; the Free Software Foundation
10390 gives unlimited permission to copy, distribute and modify it."
10392 ac_pwd='$ac_pwd'
10393 srcdir='$srcdir'
10394 _ACEOF
10396 cat >>$CONFIG_STATUS <<\_ACEOF
10397 # If no file are specified by the user, then we need to provide default
10398 # value. By we need to know if files were specified by the user.
10399 ac_need_defaults=:
10400 while test $# != 0
10402 case $1 in
10403 --*=*)
10404 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10405 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10406 ac_shift=:
10409 ac_option=$1
10410 ac_optarg=$2
10411 ac_shift=shift
10413 esac
10415 case $ac_option in
10416 # Handling of the options.
10417 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10418 ac_cs_recheck=: ;;
10419 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10420 echo "$ac_cs_version"; exit ;;
10421 --debug | --debu | --deb | --de | --d | -d )
10422 debug=: ;;
10423 --file | --fil | --fi | --f )
10424 $ac_shift
10425 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10426 ac_need_defaults=false;;
10427 --header | --heade | --head | --hea )
10428 $ac_shift
10429 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10430 ac_need_defaults=false;;
10431 --he | --h)
10432 # Conflict between --help and --header
10433 { echo "$as_me: error: ambiguous option: $1
10434 Try \`$0 --help' for more information." >&2
10435 { (exit 1); exit 1; }; };;
10436 --help | --hel | -h )
10437 echo "$ac_cs_usage"; exit ;;
10438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10439 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10440 ac_cs_silent=: ;;
10442 # This is an error.
10443 -*) { echo "$as_me: error: unrecognized option: $1
10444 Try \`$0 --help' for more information." >&2
10445 { (exit 1); exit 1; }; } ;;
10447 *) ac_config_targets="$ac_config_targets $1"
10448 ac_need_defaults=false ;;
10450 esac
10451 shift
10452 done
10454 ac_configure_extra_args=
10456 if $ac_cs_silent; then
10457 exec 6>/dev/null
10458 ac_configure_extra_args="$ac_configure_extra_args --silent"
10461 _ACEOF
10462 cat >>$CONFIG_STATUS <<_ACEOF
10463 if \$ac_cs_recheck; then
10464 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10465 CONFIG_SHELL=$SHELL
10466 export CONFIG_SHELL
10467 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10470 _ACEOF
10471 cat >>$CONFIG_STATUS <<\_ACEOF
10472 exec 5>>config.log
10474 echo
10475 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10476 ## Running $as_me. ##
10477 _ASBOX
10478 echo "$ac_log"
10479 } >&5
10481 _ACEOF
10482 cat >>$CONFIG_STATUS <<_ACEOF
10483 _ACEOF
10485 cat >>$CONFIG_STATUS <<\_ACEOF
10487 # Handling of arguments.
10488 for ac_config_target in $ac_config_targets
10490 case $ac_config_target in
10491 "src/System/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
10492 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in" ;;
10493 "src/makefile") CONFIG_FILES="$CONFIG_FILES src/makefile:src/makefile.in" ;;
10494 "src/System/tm_configure.hpp") CONFIG_FILES="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
10495 "misc/admin/admin.makefile") CONFIG_FILES="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
10496 "misc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
10497 "misc/man/texmacs.1") CONFIG_FILES="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
10498 "misc/rpm/TeXmacs.spec") CONFIG_FILES="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
10499 "misc/scripts/fig2ps") CONFIG_FILES="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
10500 "misc/scripts/texmacs") CONFIG_FILES="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
10501 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
10502 "misc/bundle/Base.xcconfig") CONFIG_FILES="$CONFIG_FILES misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in" ;;
10504 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10505 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10506 { (exit 1); exit 1; }; };;
10507 esac
10508 done
10511 # If the user did not use the arguments to specify the items to instantiate,
10512 # then the envvar interface is used. Set only those that are not.
10513 # We use the long form for the default assignment because of an extremely
10514 # bizarre bug on SunOS 4.1.3.
10515 if $ac_need_defaults; then
10516 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10517 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10520 # Have a temporary directory for convenience. Make it in the build tree
10521 # simply because there is no reason against having it here, and in addition,
10522 # creating and moving files from /tmp can sometimes cause problems.
10523 # Hook for its removal unless debugging.
10524 # Note that there is a small window in which the directory will not be cleaned:
10525 # after its creation but before its name has been assigned to `$tmp'.
10526 $debug ||
10528 tmp=
10529 trap 'exit_status=$?
10530 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10532 trap '{ (exit 1); exit 1; }' 1 2 13 15
10534 # Create a (secure) tmp directory for tmp files.
10537 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10538 test -n "$tmp" && test -d "$tmp"
10539 } ||
10541 tmp=./conf$$-$RANDOM
10542 (umask 077 && mkdir "$tmp")
10543 } ||
10545 echo "$me: cannot create a temporary directory in ." >&2
10546 { (exit 1); exit 1; }
10550 # Set up the sed scripts for CONFIG_FILES section.
10553 # No need to generate the scripts if there are no CONFIG_FILES.
10554 # This happens for instance when ./config.status config.h
10555 if test -n "$CONFIG_FILES"; then
10557 _ACEOF
10561 ac_delim='%!_!# '
10562 for ac_last_try in false false false false false :; do
10563 cat >conf$$subs.sed <<_ACEOF
10564 SHELL!$SHELL$ac_delim
10565 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10566 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10567 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10568 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10569 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10570 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10571 exec_prefix!$exec_prefix$ac_delim
10572 prefix!$prefix$ac_delim
10573 program_transform_name!$program_transform_name$ac_delim
10574 bindir!$bindir$ac_delim
10575 sbindir!$sbindir$ac_delim
10576 libexecdir!$libexecdir$ac_delim
10577 datarootdir!$datarootdir$ac_delim
10578 datadir!$datadir$ac_delim
10579 sysconfdir!$sysconfdir$ac_delim
10580 sharedstatedir!$sharedstatedir$ac_delim
10581 localstatedir!$localstatedir$ac_delim
10582 includedir!$includedir$ac_delim
10583 oldincludedir!$oldincludedir$ac_delim
10584 docdir!$docdir$ac_delim
10585 infodir!$infodir$ac_delim
10586 htmldir!$htmldir$ac_delim
10587 dvidir!$dvidir$ac_delim
10588 pdfdir!$pdfdir$ac_delim
10589 psdir!$psdir$ac_delim
10590 libdir!$libdir$ac_delim
10591 localedir!$localedir$ac_delim
10592 mandir!$mandir$ac_delim
10593 DEFS!$DEFS$ac_delim
10594 ECHO_C!$ECHO_C$ac_delim
10595 ECHO_N!$ECHO_N$ac_delim
10596 ECHO_T!$ECHO_T$ac_delim
10597 LIBS!$LIBS$ac_delim
10598 build_alias!$build_alias$ac_delim
10599 host_alias!$host_alias$ac_delim
10600 target_alias!$target_alias$ac_delim
10601 PACKAGE!$PACKAGE$ac_delim
10602 DEVEL_VERSION!$DEVEL_VERSION$ac_delim
10603 DEVEL_RELEASE!$DEVEL_RELEASE$ac_delim
10604 STABLE_VERSION!$STABLE_VERSION$ac_delim
10605 STABLE_RELEASE!$STABLE_RELEASE$ac_delim
10606 CC!$CC$ac_delim
10607 CFLAGS!$CFLAGS$ac_delim
10608 LDFLAGS!$LDFLAGS$ac_delim
10609 CPPFLAGS!$CPPFLAGS$ac_delim
10610 ac_ct_CC!$ac_ct_CC$ac_delim
10611 EXEEXT!$EXEEXT$ac_delim
10612 OBJEXT!$OBJEXT$ac_delim
10613 CXX!$CXX$ac_delim
10614 CXXFLAGS!$CXXFLAGS$ac_delim
10615 ac_ct_CXX!$ac_ct_CXX$ac_delim
10616 GUILE_CFLAGS!$GUILE_CFLAGS$ac_delim
10617 GUILE_LDFLAGS!$GUILE_LDFLAGS$ac_delim
10618 CONFIG_GUILE_SERIAL!$CONFIG_GUILE_SERIAL$ac_delim
10619 CXXCPP!$CXXCPP$ac_delim
10620 GREP!$GREP$ac_delim
10621 EGREP!$EGREP$ac_delim
10622 XMKMF!$XMKMF$ac_delim
10623 X_CFLAGS!$X_CFLAGS$ac_delim
10624 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
10625 X_LIBS!$X_LIBS$ac_delim
10626 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
10627 CONFIG_BDL!$CONFIG_BDL$ac_delim
10628 CPP!$CPP$ac_delim
10629 ICONV_CFLAGS!$ICONV_CFLAGS$ac_delim
10630 ICONV_LDFLAGS!$ICONV_LDFLAGS$ac_delim
10631 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
10632 FREETYPE_LDFLAGS!$FREETYPE_LDFLAGS$ac_delim
10633 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
10634 CAIRO_LDFLAGS!$CAIRO_LDFLAGS$ac_delim
10635 IMLIB2_CFLAGS!$IMLIB2_CFLAGS$ac_delim
10636 IMLIB2_LDFLAGS!$IMLIB2_LDFLAGS$ac_delim
10637 AXEL_CFLAGS!$AXEL_CFLAGS$ac_delim
10638 AXEL_LDFLAGS!$AXEL_LDFLAGS$ac_delim
10639 build!$build$ac_delim
10640 build_cpu!$build_cpu$ac_delim
10641 build_vendor!$build_vendor$ac_delim
10642 build_os!$build_os$ac_delim
10643 host!$host$ac_delim
10644 host_cpu!$host_cpu$ac_delim
10645 host_vendor!$host_vendor$ac_delim
10646 host_os!$host_os$ac_delim
10647 CONFIG_EXPERIMENTAL!$CONFIG_EXPERIMENTAL$ac_delim
10648 CONFIG_MACOS!$CONFIG_MACOS$ac_delim
10649 QMAKE!$QMAKE$ac_delim
10650 MOC!$MOC$ac_delim
10651 UIC!$UIC$ac_delim
10652 RCC!$RCC$ac_delim
10653 QT_PATH!$QT_PATH$ac_delim
10654 TMPDIR!$TMPDIR$ac_delim
10655 QT_VERSION_MAJOR!$QT_VERSION_MAJOR$ac_delim
10656 QT_DEFINES!$QT_DEFINES$ac_delim
10657 QT_CFLAGS!$QT_CFLAGS$ac_delim
10658 QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
10659 QT_INCPATH!$QT_INCPATH$ac_delim
10660 QT_CPPFLAGS!$QT_CPPFLAGS$ac_delim
10661 _ACEOF
10663 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10664 break
10665 elif $ac_last_try; then
10666 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10667 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10668 { (exit 1); exit 1; }; }
10669 else
10670 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10672 done
10674 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10675 if test -n "$ac_eof"; then
10676 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10677 ac_eof=`expr $ac_eof + 1`
10680 cat >>$CONFIG_STATUS <<_ACEOF
10681 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10682 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10683 _ACEOF
10684 sed '
10685 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10686 s/^/s,@/; s/!/@,|#_!!_#|/
10689 s/'"$ac_delim"'$/,g/; t
10690 s/$/\\/; p
10691 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10692 ' >>$CONFIG_STATUS <conf$$subs.sed
10693 rm -f conf$$subs.sed
10694 cat >>$CONFIG_STATUS <<_ACEOF
10695 CEOF$ac_eof
10696 _ACEOF
10699 ac_delim='%!_!# '
10700 for ac_last_try in false false false false false :; do
10701 cat >conf$$subs.sed <<_ACEOF
10702 QT_LDFLAGS!$QT_LDFLAGS$ac_delim
10703 QT_LFLAGS!$QT_LFLAGS$ac_delim
10704 QT_LIBS!$QT_LIBS$ac_delim
10705 X11_CFLAGS!$X11_CFLAGS$ac_delim
10706 X11_LDFLAGS!$X11_LDFLAGS$ac_delim
10707 COCOA_CFLAGS!$COCOA_CFLAGS$ac_delim
10708 COCOA_LDFLAGS!$COCOA_LDFLAGS$ac_delim
10709 CONFIG_X11!$CONFIG_X11$ac_delim
10710 CONFIG_COCOA!$CONFIG_COCOA$ac_delim
10711 CONFIG_QT!$CONFIG_QT$ac_delim
10712 CONFIG_GUI!$CONFIG_GUI$ac_delim
10713 CONFIG_GUI_DEFINE!$CONFIG_GUI_DEFINE$ac_delim
10714 CONFIG_CXXDIALECT!$CONFIG_CXXDIALECT$ac_delim
10715 CONFIG_OS!$CONFIG_OS$ac_delim
10716 CONFIG_OS_SUFFIX!$CONFIG_OS_SUFFIX$ac_delim
10717 CONFIG_OS_COMPAT!$CONFIG_OS_COMPAT$ac_delim
10718 CONFIG_CXXWARNING!$CONFIG_CXXWARNING$ac_delim
10719 CONFIG_CXXTEMPLATE!$CONFIG_CXXTEMPLATE$ac_delim
10720 CONFIG_CXXOPTIMIZE!$CONFIG_CXXOPTIMIZE$ac_delim
10721 CONFIG_CXXDEBUG!$CONFIG_CXXDEBUG$ac_delim
10722 CONFIG_BFLAGS!$CONFIG_BFLAGS$ac_delim
10723 CONFIG_BSTATIC!$CONFIG_BSTATIC$ac_delim
10724 CONFIG_BSHARED!$CONFIG_BSHARED$ac_delim
10725 CONFIG_BPATH!$CONFIG_BPATH$ac_delim
10726 CONFIG_WORD_LENGTH!$CONFIG_WORD_LENGTH$ac_delim
10727 CONFIG_WORD_LENGTH_INC!$CONFIG_WORD_LENGTH_INC$ac_delim
10728 CONFIG_WORD_MASK!$CONFIG_WORD_MASK$ac_delim
10729 CONFIG_MAX_FAST!$CONFIG_MAX_FAST$ac_delim
10730 CONFIG_CXXFLAGS!$CONFIG_CXXFLAGS$ac_delim
10731 CONFIG_STD_SETENV!$CONFIG_STD_SETENV$ac_delim
10732 CONFIG_SO!$CONFIG_SO$ac_delim
10733 CONFIG_LIB_PATH!$CONFIG_LIB_PATH$ac_delim
10734 CONFIG_STRIP!$CONFIG_STRIP$ac_delim
10735 CONFIG_CHMOD!$CONFIG_CHMOD$ac_delim
10736 LDRT!$LDRT$ac_delim
10737 tmorig!$tmorig$ac_delim
10738 tmdir!$tmdir$ac_delim
10739 tmsrc!$tmsrc$ac_delim
10740 tmbin!$tmbin$ac_delim
10741 tmdata!$tmdata$ac_delim
10742 tmtgz!$tmtgz$ac_delim
10743 tmrpm!$tmrpm$ac_delim
10744 tmstgz!$tmstgz$ac_delim
10745 tmsrpm!$tmsrpm$ac_delim
10746 tmwin!$tmwin$ac_delim
10747 LIBOBJS!$LIBOBJS$ac_delim
10748 LTLIBOBJS!$LTLIBOBJS$ac_delim
10749 _ACEOF
10751 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 47; then
10752 break
10753 elif $ac_last_try; then
10754 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10755 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10756 { (exit 1); exit 1; }; }
10757 else
10758 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10760 done
10762 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10763 if test -n "$ac_eof"; then
10764 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10765 ac_eof=`expr $ac_eof + 1`
10768 cat >>$CONFIG_STATUS <<_ACEOF
10769 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10770 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10771 _ACEOF
10772 sed '
10773 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10774 s/^/s,@/; s/!/@,|#_!!_#|/
10777 s/'"$ac_delim"'$/,g/; t
10778 s/$/\\/; p
10779 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10780 ' >>$CONFIG_STATUS <conf$$subs.sed
10781 rm -f conf$$subs.sed
10782 cat >>$CONFIG_STATUS <<_ACEOF
10783 :end
10784 s/|#_!!_#|//g
10785 CEOF$ac_eof
10786 _ACEOF
10789 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10790 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10791 # trailing colons and then remove the whole line if VPATH becomes empty
10792 # (actually we leave an empty line to preserve line numbers).
10793 if test "x$srcdir" = x.; then
10794 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10795 s/:*\$(srcdir):*/:/
10796 s/:*\${srcdir}:*/:/
10797 s/:*@srcdir@:*/:/
10798 s/^\([^=]*=[ ]*\):*/\1/
10799 s/:*$//
10800 s/^[^=]*=[ ]*$//
10804 cat >>$CONFIG_STATUS <<\_ACEOF
10805 fi # test -n "$CONFIG_FILES"
10808 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
10810 case $ac_tag in
10811 :[FHLC]) ac_mode=$ac_tag; continue;;
10812 esac
10813 case $ac_mode$ac_tag in
10814 :[FHL]*:*);;
10815 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10816 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10817 { (exit 1); exit 1; }; };;
10818 :[FH]-) ac_tag=-:-;;
10819 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10820 esac
10821 ac_save_IFS=$IFS
10822 IFS=:
10823 set x $ac_tag
10824 IFS=$ac_save_IFS
10825 shift
10826 ac_file=$1
10827 shift
10829 case $ac_mode in
10830 :L) ac_source=$1;;
10831 :[FH])
10832 ac_file_inputs=
10833 for ac_f
10835 case $ac_f in
10836 -) ac_f="$tmp/stdin";;
10837 *) # Look for the file first in the build tree, then in the source tree
10838 # (if the path is not absolute). The absolute path cannot be DOS-style,
10839 # because $ac_f cannot contain `:'.
10840 test -f "$ac_f" ||
10841 case $ac_f in
10842 [\\/$]*) false;;
10843 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10844 esac ||
10845 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10846 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10847 { (exit 1); exit 1; }; };;
10848 esac
10849 ac_file_inputs="$ac_file_inputs $ac_f"
10850 done
10852 # Let's still pretend it is `configure' which instantiates (i.e., don't
10853 # use $as_me), people would be surprised to read:
10854 # /* config.h. Generated by config.status. */
10855 configure_input="Generated from "`IFS=:
10856 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10857 if test x"$ac_file" != x-; then
10858 configure_input="$ac_file. $configure_input"
10859 { echo "$as_me:$LINENO: creating $ac_file" >&5
10860 echo "$as_me: creating $ac_file" >&6;}
10863 case $ac_tag in
10864 *:-:* | *:-) cat >"$tmp/stdin";;
10865 esac
10867 esac
10869 ac_dir=`$as_dirname -- "$ac_file" ||
10870 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10871 X"$ac_file" : 'X\(//\)[^/]' \| \
10872 X"$ac_file" : 'X\(//\)$' \| \
10873 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10874 echo X"$ac_file" |
10875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10876 s//\1/
10879 /^X\(\/\/\)[^/].*/{
10880 s//\1/
10883 /^X\(\/\/\)$/{
10884 s//\1/
10887 /^X\(\/\).*/{
10888 s//\1/
10891 s/.*/./; q'`
10892 { as_dir="$ac_dir"
10893 case $as_dir in #(
10894 -*) as_dir=./$as_dir;;
10895 esac
10896 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10897 as_dirs=
10898 while :; do
10899 case $as_dir in #(
10900 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10901 *) as_qdir=$as_dir;;
10902 esac
10903 as_dirs="'$as_qdir' $as_dirs"
10904 as_dir=`$as_dirname -- "$as_dir" ||
10905 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10906 X"$as_dir" : 'X\(//\)[^/]' \| \
10907 X"$as_dir" : 'X\(//\)$' \| \
10908 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10909 echo X"$as_dir" |
10910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10911 s//\1/
10914 /^X\(\/\/\)[^/].*/{
10915 s//\1/
10918 /^X\(\/\/\)$/{
10919 s//\1/
10922 /^X\(\/\).*/{
10923 s//\1/
10926 s/.*/./; q'`
10927 test -d "$as_dir" && break
10928 done
10929 test -z "$as_dirs" || eval "mkdir $as_dirs"
10930 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10931 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10932 { (exit 1); exit 1; }; }; }
10933 ac_builddir=.
10935 case "$ac_dir" in
10936 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10938 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10939 # A ".." for each directory in $ac_dir_suffix.
10940 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10941 case $ac_top_builddir_sub in
10942 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10943 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10944 esac ;;
10945 esac
10946 ac_abs_top_builddir=$ac_pwd
10947 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10948 # for backward compatibility:
10949 ac_top_builddir=$ac_top_build_prefix
10951 case $srcdir in
10952 .) # We are building in place.
10953 ac_srcdir=.
10954 ac_top_srcdir=$ac_top_builddir_sub
10955 ac_abs_top_srcdir=$ac_pwd ;;
10956 [\\/]* | ?:[\\/]* ) # Absolute name.
10957 ac_srcdir=$srcdir$ac_dir_suffix;
10958 ac_top_srcdir=$srcdir
10959 ac_abs_top_srcdir=$srcdir ;;
10960 *) # Relative name.
10961 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10962 ac_top_srcdir=$ac_top_build_prefix$srcdir
10963 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10964 esac
10965 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10968 case $ac_mode in
10971 # CONFIG_FILE
10974 _ACEOF
10976 cat >>$CONFIG_STATUS <<\_ACEOF
10977 # If the template does not know about datarootdir, expand it.
10978 # FIXME: This hack should be removed a few years after 2.60.
10979 ac_datarootdir_hack=; ac_datarootdir_seen=
10981 case `sed -n '/datarootdir/ {
10985 /@datadir@/p
10986 /@docdir@/p
10987 /@infodir@/p
10988 /@localedir@/p
10989 /@mandir@/p
10990 ' $ac_file_inputs` in
10991 *datarootdir*) ac_datarootdir_seen=yes;;
10992 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10993 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10994 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10995 _ACEOF
10996 cat >>$CONFIG_STATUS <<_ACEOF
10997 ac_datarootdir_hack='
10998 s&@datadir@&$datadir&g
10999 s&@docdir@&$docdir&g
11000 s&@infodir@&$infodir&g
11001 s&@localedir@&$localedir&g
11002 s&@mandir@&$mandir&g
11003 s&\\\${datarootdir}&$datarootdir&g' ;;
11004 esac
11005 _ACEOF
11007 # Neutralize VPATH when `$srcdir' = `.'.
11008 # Shell code in configure.ac might set extrasub.
11009 # FIXME: do we really want to maintain this feature?
11010 cat >>$CONFIG_STATUS <<_ACEOF
11011 sed "$ac_vpsub
11012 $extrasub
11013 _ACEOF
11014 cat >>$CONFIG_STATUS <<\_ACEOF
11016 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11017 s&@configure_input@&$configure_input&;t t
11018 s&@top_builddir@&$ac_top_builddir_sub&;t t
11019 s&@srcdir@&$ac_srcdir&;t t
11020 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11021 s&@top_srcdir@&$ac_top_srcdir&;t t
11022 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11023 s&@builddir@&$ac_builddir&;t t
11024 s&@abs_builddir@&$ac_abs_builddir&;t t
11025 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11026 $ac_datarootdir_hack
11027 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11029 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11030 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11031 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11032 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11033 which seems to be undefined. Please make sure it is defined." >&5
11034 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11035 which seems to be undefined. Please make sure it is defined." >&2;}
11037 rm -f "$tmp/stdin"
11038 case $ac_file in
11039 -) cat "$tmp/out"; rm -f "$tmp/out";;
11040 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11041 esac
11045 # CONFIG_HEADER
11047 _ACEOF
11049 # Transform confdefs.h into a sed script `conftest.defines', that
11050 # substitutes the proper values into config.h.in to produce config.h.
11051 rm -f conftest.defines conftest.tail
11052 # First, append a space to every undef/define line, to ease matching.
11053 echo 's/$/ /' >conftest.defines
11054 # Then, protect against being on the right side of a sed subst, or in
11055 # an unquoted here document, in config.status. If some macros were
11056 # called several times there might be several #defines for the same
11057 # symbol, which is useless. But do not sort them, since the last
11058 # AC_DEFINE must be honored.
11059 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11060 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11061 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11062 # PARAMS is the parameter list in the macro definition--in most cases, it's
11063 # just an empty string.
11064 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11065 ac_dB='\\)[ (].*,\\1define\\2'
11066 ac_dC=' '
11067 ac_dD=' ,'
11069 uniq confdefs.h |
11070 sed -n '
11071 t rset
11072 :rset
11073 s/^[ ]*#[ ]*define[ ][ ]*//
11074 t ok
11077 s/[\\&,]/\\&/g
11078 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11079 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11080 ' >>conftest.defines
11082 # Remove the space that was appended to ease matching.
11083 # Then replace #undef with comments. This is necessary, for
11084 # example, in the case of _POSIX_SOURCE, which is predefined and required
11085 # on some systems where configure will not decide to define it.
11086 # (The regexp can be short, since the line contains either #define or #undef.)
11087 echo 's/ $//
11088 s,^[ #]*u.*,/* & */,' >>conftest.defines
11090 # Break up conftest.defines:
11091 ac_max_sed_lines=50
11093 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11094 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11095 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11096 # et cetera.
11097 ac_in='$ac_file_inputs'
11098 ac_out='"$tmp/out1"'
11099 ac_nxt='"$tmp/out2"'
11101 while :
11103 # Write a here document:
11104 cat >>$CONFIG_STATUS <<_ACEOF
11105 # First, check the format of the line:
11106 cat >"\$tmp/defines.sed" <<\\CEOF
11107 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11108 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11110 :def
11111 _ACEOF
11112 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11113 echo 'CEOF
11114 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11115 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11116 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11117 grep . conftest.tail >/dev/null || break
11118 rm -f conftest.defines
11119 mv conftest.tail conftest.defines
11120 done
11121 rm -f conftest.defines conftest.tail
11123 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11124 cat >>$CONFIG_STATUS <<\_ACEOF
11125 if test x"$ac_file" != x-; then
11126 echo "/* $configure_input */" >"$tmp/config.h"
11127 cat "$ac_result" >>"$tmp/config.h"
11128 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11129 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11130 echo "$as_me: $ac_file is unchanged" >&6;}
11131 else
11132 rm -f $ac_file
11133 mv "$tmp/config.h" $ac_file
11135 else
11136 echo "/* $configure_input */"
11137 cat "$ac_result"
11139 rm -f "$tmp/out12"
11143 esac
11145 done # for ac_tag
11148 { (exit 0); exit 0; }
11149 _ACEOF
11150 chmod +x $CONFIG_STATUS
11151 ac_clean_files=$ac_clean_files_save
11154 # configure is writing to config.log, and then calls config.status.
11155 # config.status does its own redirection, appending to config.log.
11156 # Unfortunately, on DOS this fails, as config.log is still kept open
11157 # by configure, so config.status won't be able to write to it; its
11158 # output is simply discarded. So we exec the FD to /dev/null,
11159 # effectively closing config.log, so it can be properly (re)opened and
11160 # appended to by config.status. When coming back to configure, we
11161 # need to make the FD available again.
11162 if test "$no_create" != yes; then
11163 ac_cs_success=:
11164 ac_config_status_args=
11165 test "$silent" = yes &&
11166 ac_config_status_args="$ac_config_status_args --quiet"
11167 exec 5>/dev/null
11168 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11169 exec 5>>config.log
11170 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11171 # would make configure fail if this is the last instruction.
11172 $ac_cs_success || { (exit 1); exit 1; }