Implementation of 'system' based on Qt
[texmacs.git] / src / configure
blob30eb8a353a959ac27a00895687f0f80febfe90ac
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
6246 SAVE_CPPFLAGS="$CPPFLAGS"
6247 SAVE_LDFLAGS="$LDFLAGS"
6248 SAVE_LIBS="$LIBS"
6249 if test "$with_iconv" = "no" ; then
6250 { echo "$as_me:$LINENO: result: disabling iconv support" >&5
6251 echo "${ECHO_T}disabling iconv support" >&6; }
6252 else
6253 if test -n "$ICONV_CFLAGS" -a -n "$ICONV_LDFLAGS"; then
6254 CPPFLAGS="$ICONV_CFLAGS" # for AC_TRY_LINK
6256 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
6257 CPPFLAGS="-I$with_iconv/include" # for AC_TRY_LINK
6258 ICONV_CFLAGS="-I$with_iconv/include"
6259 ICONV_LDFLAGS="-L$with_iconv/lib"
6262 ac_ext=c
6263 ac_cpp='$CPP $CPPFLAGS'
6264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6267 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6268 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6269 # On Suns, sometimes $CPP names a directory.
6270 if test -n "$CPP" && test -d "$CPP"; then
6271 CPP=
6273 if test -z "$CPP"; then
6274 if test "${ac_cv_prog_CPP+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277 # Double quotes because CPP needs to be expanded
6278 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6280 ac_preproc_ok=false
6281 for ac_c_preproc_warn_flag in '' yes
6283 # Use a header file that comes with gcc, so configuring glibc
6284 # with a fresh cross-compiler works.
6285 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6286 # <limits.h> exists even on freestanding compilers.
6287 # On the NeXT, cc -E runs the code through the compiler's parser,
6288 # not just through cpp. "Syntax error" is here to catch this case.
6289 cat >conftest.$ac_ext <<_ACEOF
6290 /* confdefs.h. */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h. */
6295 #ifdef __STDC__
6296 # include <limits.h>
6297 #else
6298 # include <assert.h>
6299 #endif
6300 Syntax error
6301 _ACEOF
6302 if { (ac_try="$ac_cpp conftest.$ac_ext"
6303 case "(($ac_try" in
6304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305 *) ac_try_echo=$ac_try;;
6306 esac
6307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6309 ac_status=$?
6310 grep -v '^ *+' conftest.er1 >conftest.err
6311 rm -f conftest.er1
6312 cat conftest.err >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } >/dev/null && {
6315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6316 test ! -s conftest.err
6317 }; then
6319 else
6320 echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6323 # Broken: fails on valid input.
6324 continue
6327 rm -f conftest.err conftest.$ac_ext
6329 # OK, works on sane cases. Now check whether nonexistent headers
6330 # can be detected and how.
6331 cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h. */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6337 #include <ac_nonexistent.h>
6338 _ACEOF
6339 if { (ac_try="$ac_cpp conftest.$ac_ext"
6340 case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6343 esac
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6346 ac_status=$?
6347 grep -v '^ *+' conftest.er1 >conftest.err
6348 rm -f conftest.er1
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } >/dev/null && {
6352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6353 test ! -s conftest.err
6354 }; then
6355 # Broken: success on invalid input.
6356 continue
6357 else
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6361 # Passes both tests.
6362 ac_preproc_ok=:
6363 break
6366 rm -f conftest.err conftest.$ac_ext
6368 done
6369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6370 rm -f conftest.err conftest.$ac_ext
6371 if $ac_preproc_ok; then
6372 break
6375 done
6376 ac_cv_prog_CPP=$CPP
6379 CPP=$ac_cv_prog_CPP
6380 else
6381 ac_cv_prog_CPP=$CPP
6383 { echo "$as_me:$LINENO: result: $CPP" >&5
6384 echo "${ECHO_T}$CPP" >&6; }
6385 ac_preproc_ok=false
6386 for ac_c_preproc_warn_flag in '' yes
6388 # Use a header file that comes with gcc, so configuring glibc
6389 # with a fresh cross-compiler works.
6390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6391 # <limits.h> exists even on freestanding compilers.
6392 # On the NeXT, cc -E runs the code through the compiler's parser,
6393 # not just through cpp. "Syntax error" is here to catch this case.
6394 cat >conftest.$ac_ext <<_ACEOF
6395 /* confdefs.h. */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6400 #ifdef __STDC__
6401 # include <limits.h>
6402 #else
6403 # include <assert.h>
6404 #endif
6405 Syntax error
6406 _ACEOF
6407 if { (ac_try="$ac_cpp conftest.$ac_ext"
6408 case "(($ac_try" in
6409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6410 *) ac_try_echo=$ac_try;;
6411 esac
6412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6414 ac_status=$?
6415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } >/dev/null && {
6420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6421 test ! -s conftest.err
6422 }; then
6424 else
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6428 # Broken: fails on valid input.
6429 continue
6432 rm -f conftest.err conftest.$ac_ext
6434 # OK, works on sane cases. Now check whether nonexistent headers
6435 # can be detected and how.
6436 cat >conftest.$ac_ext <<_ACEOF
6437 /* confdefs.h. */
6438 _ACEOF
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h. */
6442 #include <ac_nonexistent.h>
6443 _ACEOF
6444 if { (ac_try="$ac_cpp conftest.$ac_ext"
6445 case "(($ac_try" in
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6448 esac
6449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6451 ac_status=$?
6452 grep -v '^ *+' conftest.er1 >conftest.err
6453 rm -f conftest.er1
6454 cat conftest.err >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } >/dev/null && {
6457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6458 test ! -s conftest.err
6459 }; then
6460 # Broken: success on invalid input.
6461 continue
6462 else
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6466 # Passes both tests.
6467 ac_preproc_ok=:
6468 break
6471 rm -f conftest.err conftest.$ac_ext
6473 done
6474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6475 rm -f conftest.err conftest.$ac_ext
6476 if $ac_preproc_ok; then
6478 else
6479 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6480 See \`config.log' for more details." >&5
6481 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6482 See \`config.log' for more details." >&2;}
6483 { (exit 1); exit 1; }; }
6486 ac_ext=c
6487 ac_cpp='$CPP $CPPFLAGS'
6488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6493 if test "${ac_cv_header_iconv_h+set}" = set; then
6494 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6495 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6496 if test "${ac_cv_header_iconv_h+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6499 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6500 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6501 else
6502 # Is the header compilable?
6503 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
6504 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
6505 cat >conftest.$ac_ext <<_ACEOF
6506 /* confdefs.h. */
6507 _ACEOF
6508 cat confdefs.h >>conftest.$ac_ext
6509 cat >>conftest.$ac_ext <<_ACEOF
6510 /* end confdefs.h. */
6511 $ac_includes_default
6512 #include <iconv.h>
6513 _ACEOF
6514 rm -f conftest.$ac_objext
6515 if { (ac_try="$ac_compile"
6516 case "(($ac_try" in
6517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6519 esac
6520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521 (eval "$ac_compile") 2>conftest.er1
6522 ac_status=$?
6523 grep -v '^ *+' conftest.er1 >conftest.err
6524 rm -f conftest.er1
6525 cat conftest.err >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } && {
6528 test -z "$ac_c_werror_flag" ||
6529 test ! -s conftest.err
6530 } && test -s conftest.$ac_objext; then
6531 ac_header_compiler=yes
6532 else
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 ac_header_compiler=no
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6541 echo "${ECHO_T}$ac_header_compiler" >&6; }
6543 # Is the header present?
6544 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
6545 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
6546 cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h. */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6552 #include <iconv.h>
6553 _ACEOF
6554 if { (ac_try="$ac_cpp conftest.$ac_ext"
6555 case "(($ac_try" in
6556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6557 *) ac_try_echo=$ac_try;;
6558 esac
6559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6561 ac_status=$?
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } >/dev/null && {
6567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6568 test ! -s conftest.err
6569 }; then
6570 ac_header_preproc=yes
6571 else
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 ac_header_preproc=no
6578 rm -f conftest.err conftest.$ac_ext
6579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6580 echo "${ECHO_T}$ac_header_preproc" >&6; }
6582 # So? What about this header?
6583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6584 yes:no: )
6585 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
6586 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6587 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
6588 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
6589 ac_header_preproc=yes
6591 no:yes:* )
6592 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
6593 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
6594 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
6595 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
6596 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
6597 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
6598 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
6599 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
6601 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
6603 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
6606 esac
6607 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6608 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6609 if test "${ac_cv_header_iconv_h+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 else
6612 ac_cv_header_iconv_h=$ac_header_preproc
6614 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6615 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6618 if test $ac_cv_header_iconv_h = yes; then
6619 { echo "$as_me:$LINENO: checking for iconv" >&5
6620 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6622 cat >conftest.$ac_ext <<_ACEOF
6623 /* confdefs.h. */
6624 _ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6629 #include <stdlib.h>
6630 #include <iconv.h>
6633 main ()
6636 iconv_t cd = iconv_open ("","");
6637 iconv (cd, NULL, NULL, NULL, NULL);
6640 return 0;
6642 _ACEOF
6643 rm -f conftest.$ac_objext conftest$ac_exeext
6644 if { (ac_try="$ac_link"
6645 case "(($ac_try" in
6646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647 *) ac_try_echo=$ac_try;;
6648 esac
6649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6650 (eval "$ac_link") 2>conftest.er1
6651 ac_status=$?
6652 grep -v '^ *+' conftest.er1 >conftest.err
6653 rm -f conftest.er1
6654 cat conftest.err >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } && {
6657 test -z "$ac_c_werror_flag" ||
6658 test ! -s conftest.err
6659 } && test -s conftest$ac_exeext &&
6660 $as_test_x conftest$ac_exeext; then
6662 { echo "$as_me:$LINENO: result: yes" >&5
6663 echo "${ECHO_T}yes" >&6; }
6665 cat >>confdefs.h <<\_ACEOF
6666 #define USE_ICONV 1
6667 _ACEOF
6670 else
6671 echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6675 { echo "$as_me:$LINENO: result: no" >&5
6676 echo "${ECHO_T}no" >&6; }
6677 { echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
6678 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6; }
6679 LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
6680 LIBS="-liconv" # for AC_TRY_LINK
6681 cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h. */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6688 #include <stdlib.h>
6689 #include <iconv.h>
6692 main ()
6695 iconv_t cd = iconv_open ("","");
6696 iconv (cd, NULL, NULL, NULL, NULL);
6699 return 0;
6701 _ACEOF
6702 rm -f conftest.$ac_objext conftest$ac_exeext
6703 if { (ac_try="$ac_link"
6704 case "(($ac_try" in
6705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6706 *) ac_try_echo=$ac_try;;
6707 esac
6708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6709 (eval "$ac_link") 2>conftest.er1
6710 ac_status=$?
6711 grep -v '^ *+' conftest.er1 >conftest.err
6712 rm -f conftest.er1
6713 cat conftest.err >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } && {
6716 test -z "$ac_c_werror_flag" ||
6717 test ! -s conftest.err
6718 } && test -s conftest$ac_exeext &&
6719 $as_test_x conftest$ac_exeext; then
6721 { echo "$as_me:$LINENO: result: yes" >&5
6722 echo "${ECHO_T}yes" >&6; }
6724 cat >>confdefs.h <<\_ACEOF
6725 #define USE_ICONV 1
6726 _ACEOF
6728 ICONV_LDFLAGS="${ICONV_LDFLAGS/-liconv} -liconv"
6730 else
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6735 { echo "$as_me:$LINENO: result: no" >&5
6736 echo "${ECHO_T}no" >&6; }
6737 { echo "$as_me:$LINENO: WARNING: absence of iconv may crash HTML import" >&5
6738 echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
6742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6743 conftest$ac_exeext conftest.$ac_ext
6746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6747 conftest$ac_exeext conftest.$ac_ext
6753 CPPFLAGS="$SAVE_CPPFLAGS"
6754 LDFLAGS="$SAVE_LDFLAGS"
6755 LIBS="$SAVE_LIBS"
6756 ac_ext=cpp
6757 ac_cpp='$CXXCPP $CPPFLAGS'
6758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6761 # restore C++ language
6765 #--------------------------------------------------------------------
6766 # Checks for freetype library
6767 #--------------------------------------------------------------------
6770 # Check whether --with-freetype was given.
6771 if test "${with_freetype+set}" = set; then
6772 withval=$with_freetype;
6776 SAVE_CPPFLAGS="$CPPFLAGS"
6777 SAVE_LDFLAGS="$LDFLAGS"
6778 SAVE_LIBS="$LIBS"
6779 if test "$with_freetype" = "no" ; then
6780 { echo "$as_me:$LINENO: result: disabling freetype support" >&5
6781 echo "${ECHO_T}disabling freetype support" >&6; }
6782 else
6783 if test -z "$FREETYPE_CFLAGS"; then
6784 FREETYPE_CFLAGS=`freetype-config --cflags`
6786 CPPFLAGS="$FREETYPE_CFLAGS"
6787 if test -z "$FREETYPE_LDFLAGS"; then
6788 FREETYPE_LDFLAGS=`freetype-config --libs`
6790 LIBS="$FREETYPE_LDFLAGS"
6791 if test "${ac_cv_header_ft2build_h+set}" = set; then
6792 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6793 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6794 if test "${ac_cv_header_ft2build_h+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6798 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6799 else
6800 # Is the header compilable?
6801 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
6802 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
6803 cat >conftest.$ac_ext <<_ACEOF
6804 /* confdefs.h. */
6805 _ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6809 $ac_includes_default
6810 #include <ft2build.h>
6811 _ACEOF
6812 rm -f conftest.$ac_objext
6813 if { (ac_try="$ac_compile"
6814 case "(($ac_try" in
6815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6816 *) ac_try_echo=$ac_try;;
6817 esac
6818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6819 (eval "$ac_compile") 2>conftest.er1
6820 ac_status=$?
6821 grep -v '^ *+' conftest.er1 >conftest.err
6822 rm -f conftest.er1
6823 cat conftest.err >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } && {
6826 test -z "$ac_cxx_werror_flag" ||
6827 test ! -s conftest.err
6828 } && test -s conftest.$ac_objext; then
6829 ac_header_compiler=yes
6830 else
6831 echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6834 ac_header_compiler=no
6837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6839 echo "${ECHO_T}$ac_header_compiler" >&6; }
6841 # Is the header present?
6842 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
6843 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
6844 cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h. */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 #include <ft2build.h>
6851 _ACEOF
6852 if { (ac_try="$ac_cpp conftest.$ac_ext"
6853 case "(($ac_try" in
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6856 esac
6857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6859 ac_status=$?
6860 grep -v '^ *+' conftest.er1 >conftest.err
6861 rm -f conftest.er1
6862 cat conftest.err >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } >/dev/null && {
6865 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6866 test ! -s conftest.err
6867 }; then
6868 ac_header_preproc=yes
6869 else
6870 echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6873 ac_header_preproc=no
6876 rm -f conftest.err conftest.$ac_ext
6877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6878 echo "${ECHO_T}$ac_header_preproc" >&6; }
6880 # So? What about this header?
6881 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6882 yes:no: )
6883 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
6884 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6885 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
6886 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
6887 ac_header_preproc=yes
6889 no:yes:* )
6890 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
6891 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
6892 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
6893 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
6894 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
6895 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
6896 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
6897 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
6898 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
6899 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
6900 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
6901 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
6904 esac
6905 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6906 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6907 if test "${ac_cv_header_ft2build_h+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 else
6910 ac_cv_header_ft2build_h=$ac_header_preproc
6912 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6913 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6916 if test $ac_cv_header_ft2build_h = yes; then
6917 { echo "$as_me:$LINENO: checking for freetype" >&5
6918 echo $ECHO_N "checking for freetype... $ECHO_C" >&6; }
6919 cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h. */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6926 #include <ft2build.h>
6927 #include FT_FREETYPE_H
6930 main ()
6933 FT_Library ft_library;
6934 (void) FT_Init_FreeType (&ft_library);
6937 return 0;
6939 _ACEOF
6940 rm -f conftest.$ac_objext conftest$ac_exeext
6941 if { (ac_try="$ac_link"
6942 case "(($ac_try" in
6943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6944 *) ac_try_echo=$ac_try;;
6945 esac
6946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6947 (eval "$ac_link") 2>conftest.er1
6948 ac_status=$?
6949 grep -v '^ *+' conftest.er1 >conftest.err
6950 rm -f conftest.er1
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } && {
6954 test -z "$ac_cxx_werror_flag" ||
6955 test ! -s conftest.err
6956 } && test -s conftest$ac_exeext &&
6957 $as_test_x conftest$ac_exeext; then
6959 { echo "$as_me:$LINENO: result: yes" >&5
6960 echo "${ECHO_T}yes" >&6; }
6962 cat >>confdefs.h <<\_ACEOF
6963 #define USE_FREETYPE 1
6964 _ACEOF
6966 FREETYPE_CFLAGS="$CPPFLAGS"
6967 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
6968 FREETYPE_LDFLAGS="$LIBS"
6970 cat >>confdefs.h <<\_ACEOF
6971 #define LINKED_FREETYPE 1
6972 _ACEOF
6976 else
6977 echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.$ac_ext >&5
6981 { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6986 conftest$ac_exeext conftest.$ac_ext
6992 CPPFLAGS="$SAVE_CPPFLAGS"
6993 LDFLAGS="$SAVE_LDFLAGS"
6994 LIBS="$SAVE_LIBS"
6999 #--------------------------------------------------------------------
7000 # Checks for Cairo library
7001 #--------------------------------------------------------------------
7004 # Check whether --with-cairo was given.
7005 if test "${with_cairo+set}" = set; then
7006 withval=$with_cairo;
7010 SAVE_CPPFLAGS="$CPPFLAGS"
7011 SAVE_LDFLAGS="$LDFLAGS"
7012 SAVE_LIBS="$LIBS"
7013 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
7014 { echo "$as_me:$LINENO: result: disabling cairo support" >&5
7015 echo "${ECHO_T}disabling cairo support" >&6; }
7016 else
7017 CPPFLAGS=`pkg-config --cflags cairo`
7018 LIBS=`pkg-config --libs cairo`
7019 if test "${ac_cv_header_cairo_h+set}" = set; then
7020 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7021 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7022 if test "${ac_cv_header_cairo_h+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7026 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7027 else
7028 # Is the header compilable?
7029 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
7030 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
7031 cat >conftest.$ac_ext <<_ACEOF
7032 /* confdefs.h. */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 $ac_includes_default
7038 #include <cairo.h>
7039 _ACEOF
7040 rm -f conftest.$ac_objext
7041 if { (ac_try="$ac_compile"
7042 case "(($ac_try" in
7043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044 *) ac_try_echo=$ac_try;;
7045 esac
7046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7047 (eval "$ac_compile") 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } && {
7054 test -z "$ac_cxx_werror_flag" ||
7055 test ! -s conftest.err
7056 } && test -s conftest.$ac_objext; then
7057 ac_header_compiler=yes
7058 else
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7062 ac_header_compiler=no
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7067 echo "${ECHO_T}$ac_header_compiler" >&6; }
7069 # Is the header present?
7070 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
7071 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
7072 cat >conftest.$ac_ext <<_ACEOF
7073 /* confdefs.h. */
7074 _ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h. */
7078 #include <cairo.h>
7079 _ACEOF
7080 if { (ac_try="$ac_cpp conftest.$ac_ext"
7081 case "(($ac_try" in
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7084 esac
7085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7087 ac_status=$?
7088 grep -v '^ *+' conftest.er1 >conftest.err
7089 rm -f conftest.er1
7090 cat conftest.err >&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); } >/dev/null && {
7093 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7094 test ! -s conftest.err
7095 }; then
7096 ac_header_preproc=yes
7097 else
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7101 ac_header_preproc=no
7104 rm -f conftest.err conftest.$ac_ext
7105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7106 echo "${ECHO_T}$ac_header_preproc" >&6; }
7108 # So? What about this header?
7109 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7110 yes:no: )
7111 { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
7112 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7113 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
7114 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
7115 ac_header_preproc=yes
7117 no:yes:* )
7118 { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
7119 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
7120 { echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
7121 echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
7122 { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
7123 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
7124 { echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
7125 echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
7126 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
7127 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
7128 { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
7129 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
7132 esac
7133 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7134 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7135 if test "${ac_cv_header_cairo_h+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7138 ac_cv_header_cairo_h=$ac_header_preproc
7140 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7141 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7144 if test $ac_cv_header_cairo_h = yes; then
7145 { echo "$as_me:$LINENO: checking for cairo" >&5
7146 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
7147 cat >conftest.$ac_ext <<_ACEOF
7148 /* confdefs.h. */
7149 _ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h. */
7154 #include <cairo.h>
7157 main ()
7160 cairo_surface_t *surface;
7161 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
7164 return 0;
7166 _ACEOF
7167 rm -f conftest.$ac_objext conftest$ac_exeext
7168 if { (ac_try="$ac_link"
7169 case "(($ac_try" in
7170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171 *) ac_try_echo=$ac_try;;
7172 esac
7173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7174 (eval "$ac_link") 2>conftest.er1
7175 ac_status=$?
7176 grep -v '^ *+' conftest.er1 >conftest.err
7177 rm -f conftest.er1
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } && {
7181 test -z "$ac_cxx_werror_flag" ||
7182 test ! -s conftest.err
7183 } && test -s conftest$ac_exeext &&
7184 $as_test_x conftest$ac_exeext; then
7186 { echo "$as_me:$LINENO: result: yes" >&5
7187 echo "${ECHO_T}yes" >&6; }
7189 cat >>confdefs.h <<\_ACEOF
7190 #define USE_CAIRO 1
7191 _ACEOF
7193 CAIRO_CFLAGS="$CPPFLAGS"
7194 if test "$with_cairo" = "linked" ; then
7195 CAIRO_LDFLAGS="$LIBS"
7197 cat >>confdefs.h <<\_ACEOF
7198 #define LINKED_CAIRO 1
7199 _ACEOF
7203 else
7204 echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7208 { echo "$as_me:$LINENO: result: no" >&5
7209 echo "${ECHO_T}no" >&6; }
7212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7213 conftest$ac_exeext conftest.$ac_ext
7219 CPPFLAGS="$SAVE_CPPFLAGS"
7220 LDFLAGS="$SAVE_LDFLAGS"
7221 LIBS="$SAVE_LIBS"
7226 #--------------------------------------------------------------------
7227 # Checks for Imlib2 library
7228 #--------------------------------------------------------------------
7231 # Check whether --with-imlib2 was given.
7232 if test "${with_imlib2+set}" = set; then
7233 withval=$with_imlib2;
7237 SAVE_CPPFLAGS="$CPPFLAGS"
7238 SAVE_LDFLAGS="$LDFLAGS"
7239 SAVE_LIBS="$LIBS"
7240 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
7241 { echo "$as_me:$LINENO: result: disabling imlib2 support" >&5
7242 echo "${ECHO_T}disabling imlib2 support" >&6; }
7243 else
7244 CPPFLAGS=`imlib2-config --cflags`
7245 LIBS=`imlib2-config --libs`
7246 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7247 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7248 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7249 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7253 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7254 else
7255 # Is the header compilable?
7256 { echo "$as_me:$LINENO: checking Imlib2.h usability" >&5
7257 echo $ECHO_N "checking Imlib2.h usability... $ECHO_C" >&6; }
7258 cat >conftest.$ac_ext <<_ACEOF
7259 /* confdefs.h. */
7260 _ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7264 $ac_includes_default
7265 #include <Imlib2.h>
7266 _ACEOF
7267 rm -f conftest.$ac_objext
7268 if { (ac_try="$ac_compile"
7269 case "(($ac_try" in
7270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271 *) ac_try_echo=$ac_try;;
7272 esac
7273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7274 (eval "$ac_compile") 2>conftest.er1
7275 ac_status=$?
7276 grep -v '^ *+' conftest.er1 >conftest.err
7277 rm -f conftest.er1
7278 cat conftest.err >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } && {
7281 test -z "$ac_cxx_werror_flag" ||
7282 test ! -s conftest.err
7283 } && test -s conftest.$ac_objext; then
7284 ac_header_compiler=yes
7285 else
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7289 ac_header_compiler=no
7292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7294 echo "${ECHO_T}$ac_header_compiler" >&6; }
7296 # Is the header present?
7297 { echo "$as_me:$LINENO: checking Imlib2.h presence" >&5
7298 echo $ECHO_N "checking Imlib2.h presence... $ECHO_C" >&6; }
7299 cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h. */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 #include <Imlib2.h>
7306 _ACEOF
7307 if { (ac_try="$ac_cpp conftest.$ac_ext"
7308 case "(($ac_try" in
7309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7310 *) ac_try_echo=$ac_try;;
7311 esac
7312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7314 ac_status=$?
7315 grep -v '^ *+' conftest.er1 >conftest.err
7316 rm -f conftest.er1
7317 cat conftest.err >&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); } >/dev/null && {
7320 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7321 test ! -s conftest.err
7322 }; then
7323 ac_header_preproc=yes
7324 else
7325 echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7328 ac_header_preproc=no
7331 rm -f conftest.err conftest.$ac_ext
7332 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7333 echo "${ECHO_T}$ac_header_preproc" >&6; }
7335 # So? What about this header?
7336 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7337 yes:no: )
7338 { echo "$as_me:$LINENO: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&5
7339 echo "$as_me: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7340 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the compiler's result" >&5
7341 echo "$as_me: WARNING: Imlib2.h: proceeding with the compiler's result" >&2;}
7342 ac_header_preproc=yes
7344 no:yes:* )
7345 { echo "$as_me:$LINENO: WARNING: Imlib2.h: present but cannot be compiled" >&5
7346 echo "$as_me: WARNING: Imlib2.h: present but cannot be compiled" >&2;}
7347 { echo "$as_me:$LINENO: WARNING: Imlib2.h: check for missing prerequisite headers?" >&5
7348 echo "$as_me: WARNING: Imlib2.h: check for missing prerequisite headers?" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: Imlib2.h: see the Autoconf documentation" >&5
7350 echo "$as_me: WARNING: Imlib2.h: see the Autoconf documentation" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&5
7352 echo "$as_me: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&2;}
7353 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&5
7354 echo "$as_me: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&2;}
7355 { echo "$as_me:$LINENO: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&5
7356 echo "$as_me: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&2;}
7359 esac
7360 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7361 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7362 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365 ac_cv_header_Imlib2_h=$ac_header_preproc
7367 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7368 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7371 if test $ac_cv_header_Imlib2_h = yes; then
7372 { echo "$as_me:$LINENO: checking for imlib2" >&5
7373 echo $ECHO_N "checking for imlib2... $ECHO_C" >&6; }
7374 cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h. */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7381 #include <X11/Xlib.h>
7382 #include <Imlib2.h>
7383 #include <stdio.h>
7384 #include <string.h>
7387 main ()
7390 Imlib_Image image= imlib_load_image("");
7393 return 0;
7395 _ACEOF
7396 rm -f conftest.$ac_objext conftest$ac_exeext
7397 if { (ac_try="$ac_link"
7398 case "(($ac_try" in
7399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7400 *) ac_try_echo=$ac_try;;
7401 esac
7402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403 (eval "$ac_link") 2>conftest.er1
7404 ac_status=$?
7405 grep -v '^ *+' conftest.er1 >conftest.err
7406 rm -f conftest.er1
7407 cat conftest.err >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && {
7410 test -z "$ac_cxx_werror_flag" ||
7411 test ! -s conftest.err
7412 } && test -s conftest$ac_exeext &&
7413 $as_test_x conftest$ac_exeext; then
7415 { echo "$as_me:$LINENO: result: yes" >&5
7416 echo "${ECHO_T}yes" >&6; }
7418 cat >>confdefs.h <<\_ACEOF
7419 #define USE_IMLIB2 1
7420 _ACEOF
7422 IMLIB2_CFLAGS="$CPPFLAGS"
7423 if test "$with_imlib2" = "linked" ; then
7424 IMLIB2_LDFLAGS="$LIBS"
7426 cat >>confdefs.h <<\_ACEOF
7427 #define LINKED_IMLIB2 1
7428 _ACEOF
7432 else
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7437 { echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6; }
7441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7442 conftest$ac_exeext conftest.$ac_ext
7448 CPPFLAGS="$SAVE_CPPFLAGS"
7449 LDFLAGS="$SAVE_LDFLAGS"
7450 LIBS="$SAVE_LIBS"
7455 #--------------------------------------------------------------------
7456 # Checks for Axel library
7457 #--------------------------------------------------------------------
7460 # Check whether --with-axel was given.
7461 if test "${with_axel+set}" = set; then
7462 withval=$with_axel;
7466 SAVE_CPPFLAGS="$CPPFLAGS"
7467 SAVE_LDFLAGS="$LDFLAGS"
7468 SAVE_LIBS="$LIBS"
7469 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
7470 { echo "$as_me:$LINENO: result: disabling axel support" >&5
7471 echo "${ECHO_T}disabling axel support" >&6; }
7472 else
7473 CPPFLAGS=`axel-config --cflags`
7474 LIBS=`axel-config --libs`
7475 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7476 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7477 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7478 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7482 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7483 else
7484 # Is the header compilable?
7485 { echo "$as_me:$LINENO: checking QGui/Viewer.h usability" >&5
7486 echo $ECHO_N "checking QGui/Viewer.h usability... $ECHO_C" >&6; }
7487 cat >conftest.$ac_ext <<_ACEOF
7488 /* confdefs.h. */
7489 _ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7493 $ac_includes_default
7494 #include <QGui/Viewer.h>
7495 _ACEOF
7496 rm -f conftest.$ac_objext
7497 if { (ac_try="$ac_compile"
7498 case "(($ac_try" in
7499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7501 esac
7502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7503 (eval "$ac_compile") 2>conftest.er1
7504 ac_status=$?
7505 grep -v '^ *+' conftest.er1 >conftest.err
7506 rm -f conftest.er1
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } && {
7510 test -z "$ac_cxx_werror_flag" ||
7511 test ! -s conftest.err
7512 } && test -s conftest.$ac_objext; then
7513 ac_header_compiler=yes
7514 else
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7518 ac_header_compiler=no
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7523 echo "${ECHO_T}$ac_header_compiler" >&6; }
7525 # Is the header present?
7526 { echo "$as_me:$LINENO: checking QGui/Viewer.h presence" >&5
7527 echo $ECHO_N "checking QGui/Viewer.h presence... $ECHO_C" >&6; }
7528 cat >conftest.$ac_ext <<_ACEOF
7529 /* confdefs.h. */
7530 _ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7534 #include <QGui/Viewer.h>
7535 _ACEOF
7536 if { (ac_try="$ac_cpp conftest.$ac_ext"
7537 case "(($ac_try" in
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7540 esac
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7543 ac_status=$?
7544 grep -v '^ *+' conftest.er1 >conftest.err
7545 rm -f conftest.er1
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } >/dev/null && {
7549 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7550 test ! -s conftest.err
7551 }; then
7552 ac_header_preproc=yes
7553 else
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7557 ac_header_preproc=no
7560 rm -f conftest.err conftest.$ac_ext
7561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7562 echo "${ECHO_T}$ac_header_preproc" >&6; }
7564 # So? What about this header?
7565 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7566 yes:no: )
7567 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&5
7568 echo "$as_me: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7569 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&5
7570 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&2;}
7571 ac_header_preproc=yes
7573 no:yes:* )
7574 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: present but cannot be compiled" >&5
7575 echo "$as_me: WARNING: QGui/Viewer.h: present but cannot be compiled" >&2;}
7576 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&5
7577 echo "$as_me: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&2;}
7578 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&5
7579 echo "$as_me: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&2;}
7580 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&5
7581 echo "$as_me: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&2;}
7582 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&5
7583 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&5
7585 echo "$as_me: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&2;}
7588 esac
7589 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7590 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7591 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594 ac_cv_header_QGui_Viewer_h=$ac_header_preproc
7596 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7597 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7600 if test $ac_cv_header_QGui_Viewer_h = yes; then
7601 { echo "$as_me:$LINENO: checking for axel" >&5
7602 echo $ECHO_N "checking for axel... $ECHO_C" >&6; }
7603 cat >conftest.$ac_ext <<_ACEOF
7604 /* confdefs.h. */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7610 #include <QGui/Viewer.h>
7613 main ()
7616 Viewer viewer(0);
7619 return 0;
7621 _ACEOF
7622 rm -f conftest.$ac_objext conftest$ac_exeext
7623 if { (ac_try="$ac_link"
7624 case "(($ac_try" in
7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7627 esac
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_link") 2>conftest.er1
7630 ac_status=$?
7631 grep -v '^ *+' conftest.er1 >conftest.err
7632 rm -f conftest.er1
7633 cat conftest.err >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && {
7636 test -z "$ac_cxx_werror_flag" ||
7637 test ! -s conftest.err
7638 } && test -s conftest$ac_exeext &&
7639 $as_test_x conftest$ac_exeext; then
7641 { echo "$as_me:$LINENO: result: yes" >&5
7642 echo "${ECHO_T}yes" >&6; }
7644 cat >>confdefs.h <<\_ACEOF
7645 #define USE_AXEL 1
7646 _ACEOF
7648 AXEL_CFLAGS="$CPPFLAGS"
7649 if test "$with_axel" = "linked" ; then
7650 AXEL_LDFLAGS="$LIBS"
7652 cat >>confdefs.h <<\_ACEOF
7653 #define LINKED_AXEL 1
7654 _ACEOF
7658 else
7659 echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7663 { echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6; }
7667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7668 conftest$ac_exeext conftest.$ac_ext
7674 CPPFLAGS="$SAVE_CPPFLAGS"
7675 LDFLAGS="$SAVE_LDFLAGS"
7676 LIBS="$SAVE_LIBS"
7681 #--------------------------------------------------------------------
7682 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
7683 #--------------------------------------------------------------------
7685 { echo "$as_me:$LINENO: checking whether ... arguments behave correctly" >&5
7686 echo $ECHO_N "checking whether ... arguments behave correctly... $ECHO_C" >&6; }
7687 if test -z "$GUILE_CFLAGS"; then
7688 CXXFLAGS="`guile-config compile`"
7689 else
7690 CXXFLAGS="$GUILE_CFLAGS"
7692 cat >conftest.$ac_ext <<_ACEOF
7693 /* confdefs.h. */
7694 _ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7699 #include <guile/gh.h>
7700 #include <libguile.h>
7701 typedef SCM (*FN)(...);
7702 static SCM identity (SCM x) { return x; }
7703 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
7706 main ()
7711 return 0;
7713 _ACEOF
7714 rm -f conftest.$ac_objext
7715 if { (ac_try="$ac_compile"
7716 case "(($ac_try" in
7717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718 *) ac_try_echo=$ac_try;;
7719 esac
7720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721 (eval "$ac_compile") 2>conftest.er1
7722 ac_status=$?
7723 grep -v '^ *+' conftest.er1 >conftest.err
7724 rm -f conftest.er1
7725 cat conftest.err >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } && {
7728 test -z "$ac_cxx_werror_flag" ||
7729 test ! -s conftest.err
7730 } && test -s conftest.$ac_objext; then
7733 cat >>confdefs.h <<\_ACEOF
7734 #define DOTS_OK 1
7735 _ACEOF
7737 { echo "$as_me:$LINENO: result: yes" >&5
7738 echo "${ECHO_T}yes" >&6; }
7740 else
7741 echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7745 { echo "$as_me:$LINENO: result: no" >&5
7746 echo "${ECHO_T}no" >&6; }
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 CXXFLAGS=""
7753 { echo "$as_me:$LINENO: checking the size_t of guile strings" >&5
7754 echo $ECHO_N "checking the size_t of guile strings... $ECHO_C" >&6; }
7755 if test -z "$GUILE_CFLAGS"; then
7756 CXXFLAGS="`guile-config compile`"
7757 else
7758 CXXFLAGS="$GUILE_CFLAGS"
7760 cat >conftest.$ac_ext <<_ACEOF
7761 /* confdefs.h. */
7762 _ACEOF
7763 cat confdefs.h >>conftest.$ac_ext
7764 cat >>conftest.$ac_ext <<_ACEOF
7765 /* end confdefs.h. */
7767 #include <guile/gh.h>
7768 #include <libguile.h>
7769 void print_string (SCM s) {
7770 int len_r;
7771 char* r= gh_scm2newstr (s, &len_r); }
7774 main ()
7779 return 0;
7781 _ACEOF
7782 rm -f conftest.$ac_objext
7783 if { (ac_try="$ac_compile"
7784 case "(($ac_try" in
7785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786 *) ac_try_echo=$ac_try;;
7787 esac
7788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789 (eval "$ac_compile") 2>conftest.er1
7790 ac_status=$?
7791 grep -v '^ *+' conftest.er1 >conftest.err
7792 rm -f conftest.er1
7793 cat conftest.err >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } && {
7796 test -z "$ac_cxx_werror_flag" ||
7797 test ! -s conftest.err
7798 } && test -s conftest.$ac_objext; then
7801 cat >>confdefs.h <<\_ACEOF
7802 #define guile_str_size_t int
7803 _ACEOF
7805 { echo "$as_me:$LINENO: result: int" >&5
7806 echo "${ECHO_T}int" >&6; }
7808 else
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7814 cat >>confdefs.h <<\_ACEOF
7815 #define guile_str_size_t size_t
7816 _ACEOF
7818 { echo "$as_me:$LINENO: result: size_t" >&5
7819 echo "${ECHO_T}size_t" >&6; }
7823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824 CXXFLAGS=""
7826 { echo "$as_me:$LINENO: checking if statically linking with guile works" >&5
7827 echo $ECHO_N "checking if statically linking with guile works... $ECHO_C" >&6; }
7828 SAVE_CPPFLAGS="$CPPFLAGS"
7829 SAVE_LDFLAGS="$LDFLAGS"
7830 SAVE_LIBS="$LIBS"
7831 CPPFLAGS="$GUILE_CFLAGS"
7832 LDFLAGS="-static"
7833 LIBS="$GUILE_LDFLAGS"
7834 cat >conftest.$ac_ext <<_ACEOF
7835 /* confdefs.h. */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7841 #include <guile/gh.h>
7842 $CONFIG_DOTS
7845 main ()
7848 struct dummy {
7849 static void my_main (int argc, char** argv) {}
7850 static void install_guile () {
7851 #ifdef DOTS_OK
7852 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7853 #else
7854 gh_enter (0, NULL, my_main);
7855 #endif
7858 dummy::install_guile ();
7861 return 0;
7863 _ACEOF
7864 rm -f conftest.$ac_objext conftest$ac_exeext
7865 if { (ac_try="$ac_link"
7866 case "(($ac_try" in
7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868 *) ac_try_echo=$ac_try;;
7869 esac
7870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871 (eval "$ac_link") 2>conftest.er1
7872 ac_status=$?
7873 grep -v '^ *+' conftest.er1 >conftest.err
7874 rm -f conftest.er1
7875 cat conftest.err >&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); } && {
7878 test -z "$ac_cxx_werror_flag" ||
7879 test ! -s conftest.err
7880 } && test -s conftest$ac_exeext &&
7881 $as_test_x conftest$ac_exeext; then
7882 tm_link_guile_static="yes"
7883 else
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7887 tm_link_guile_static="no"
7890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7891 conftest$ac_exeext conftest.$ac_ext
7893 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static\"" >&5
7894 echo "${ECHO_T}\"$tm_link_guile_static\"" >&6; }
7895 if test "$tm_link_guile_static" = "no" ; then
7896 { echo "$as_me:$LINENO: checking if it works with -lltdl" >&5
7897 echo $ECHO_N "checking if it works with -lltdl... $ECHO_C" >&6; }
7898 LIBS="$GUILE_LDFLAGS -lltdl"
7899 cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h. */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7906 #include <guile/gh.h>
7907 $CONFIG_DOTS
7910 main ()
7913 struct dummy {
7914 static void my_main (int argc, char** argv) {}
7915 static void install_guile () {
7916 #ifdef DOTS_OK
7917 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7918 #else
7919 gh_enter (0, NULL, my_main);
7920 #endif
7923 dummy::install_guile ();
7926 return 0;
7928 _ACEOF
7929 rm -f conftest.$ac_objext conftest$ac_exeext
7930 if { (ac_try="$ac_link"
7931 case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7934 esac
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_link") 2>conftest.er1
7937 ac_status=$?
7938 grep -v '^ *+' conftest.er1 >conftest.err
7939 rm -f conftest.er1
7940 cat conftest.err >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } && {
7943 test -z "$ac_cxx_werror_flag" ||
7944 test ! -s conftest.err
7945 } && test -s conftest$ac_exeext &&
7946 $as_test_x conftest$ac_exeext; then
7947 tm_link_guile_static_ltdl="yes"
7948 else
7949 echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7952 tm_link_guile_static_ltdl="no"
7955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7956 conftest$ac_exeext conftest.$ac_ext
7958 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl\"" >&5
7959 echo "${ECHO_T}\"$tm_link_guile_static_ltdl\"" >&6; }
7960 if test "$tm_link_guile_static_ltdl" = "yes" ; then
7961 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl"
7962 else
7963 { echo "$as_me:$LINENO: checking if it works with -lltdl -ldl" >&5
7964 echo $ECHO_N "checking if it works with -lltdl -ldl... $ECHO_C" >&6; }
7965 LIBS="$GUILE_LDFLAGS -lltdl -ldl"
7966 cat >conftest.$ac_ext <<_ACEOF
7967 /* confdefs.h. */
7968 _ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7973 #include <guile/gh.h>
7974 $CONFIG_DOTS
7977 main ()
7980 struct dummy {
7981 static void my_main (int argc, char** argv) {}
7982 static void install_guile () {
7983 #ifdef DOTS_OK
7984 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7985 #else
7986 gh_enter (0, NULL, my_main);
7987 #endif
7990 dummy::install_guile ();
7993 return 0;
7995 _ACEOF
7996 rm -f conftest.$ac_objext conftest$ac_exeext
7997 if { (ac_try="$ac_link"
7998 case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8001 esac
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_link") 2>conftest.er1
8004 ac_status=$?
8005 grep -v '^ *+' conftest.er1 >conftest.err
8006 rm -f conftest.er1
8007 cat conftest.err >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } && {
8010 test -z "$ac_cxx_werror_flag" ||
8011 test ! -s conftest.err
8012 } && test -s conftest$ac_exeext &&
8013 $as_test_x conftest$ac_exeext; then
8014 tm_link_guile_static_ltdl_ldl="yes"
8015 else
8016 echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8019 tm_link_guile_static_ltdl_ldl="no"
8022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8023 conftest$ac_exeext conftest.$ac_ext
8025 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
8026 echo "${ECHO_T}\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
8027 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
8028 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
8029 else
8030 { echo "$as_me:$LINENO: WARNING: unable to link statically with guile" >&5
8031 echo "$as_me: WARNING: unable to link statically with guile" >&2;}
8035 CPPFLAGS="$SAVE_CPFLAGS"
8036 LDFLAGS="$SAVE_LDFLAGS"
8037 LIBS="$SAVE_LIBS"
8039 #--------------------------------------------------------------------
8040 # Handle different systems case by case
8041 #--------------------------------------------------------------------
8043 CONFIG_OS="GNU_LINUX"
8044 CONFIG_OS_SUFFIX="gnu-linux"
8045 CONFIG_OS_COMPAT="Unix"
8046 CONFIG_MACOS=""
8047 CONFIG_CXXFLAGS=""
8048 CONFIG_CXXTEMPLATE=""
8049 CONFIG_STD_SETENV="#define STD_SETENV"
8050 CONFIG_SO="so"
8051 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
8052 CONFIG_CHMOD="chmod -f"
8053 CONFIG_CXXOPTIMIZE="-O2"
8054 CONFIG_BSTATIC="-Wl,-Bstatic"
8055 CONFIG_BSHARED="-Wl,-Bdynamic"
8056 CONFIG_BFLAGS=""
8057 CONFIG_BPATH="-Wl,-rpath,"
8058 CONFIG_WORD_LENGTH="4"
8059 CONFIG_WORD_LENGTH_INC="3"
8060 CONFIG_WORD_MASK="0xfffffffc"
8061 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
8063 X11_CFLAGS="$X_CFLAGS"
8064 X11_LDFLAGS="$X_LIBS -lXext -lX11"
8066 { echo "$as_me:$LINENO: checking for void *" >&5
8067 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8068 if test "${ac_cv_type_void_p+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071 cat >conftest.$ac_ext <<_ACEOF
8072 /* confdefs.h. */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8077 $ac_includes_default
8078 typedef void * ac__type_new_;
8080 main ()
8082 if ((ac__type_new_ *) 0)
8083 return 0;
8084 if (sizeof (ac__type_new_))
8085 return 0;
8087 return 0;
8089 _ACEOF
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8092 case "(($ac_try" in
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8095 esac
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8098 ac_status=$?
8099 grep -v '^ *+' conftest.er1 >conftest.err
8100 rm -f conftest.er1
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_cxx_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.$ac_objext; then
8107 ac_cv_type_void_p=yes
8108 else
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8112 ac_cv_type_void_p=no
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8117 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8118 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8120 # The cast to long int works around a bug in the HP C Compiler
8121 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8122 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8123 # This bug is HP SR number 8606223364.
8124 { echo "$as_me:$LINENO: checking size of void *" >&5
8125 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8126 if test "${ac_cv_sizeof_void_p+set}" = set; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 else
8129 if test "$cross_compiling" = yes; then
8130 # Depending upon the size, compute the lo and hi bounds.
8131 cat >conftest.$ac_ext <<_ACEOF
8132 /* confdefs.h. */
8133 _ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8137 $ac_includes_default
8138 typedef void * ac__type_sizeof_;
8140 main ()
8142 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8143 test_array [0] = 0
8146 return 0;
8148 _ACEOF
8149 rm -f conftest.$ac_objext
8150 if { (ac_try="$ac_compile"
8151 case "(($ac_try" in
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8154 esac
8155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8156 (eval "$ac_compile") 2>conftest.er1
8157 ac_status=$?
8158 grep -v '^ *+' conftest.er1 >conftest.err
8159 rm -f conftest.er1
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } && {
8163 test -z "$ac_cxx_werror_flag" ||
8164 test ! -s conftest.err
8165 } && test -s conftest.$ac_objext; then
8166 ac_lo=0 ac_mid=0
8167 while :; do
8168 cat >conftest.$ac_ext <<_ACEOF
8169 /* confdefs.h. */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8174 $ac_includes_default
8175 typedef void * ac__type_sizeof_;
8177 main ()
8179 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8180 test_array [0] = 0
8183 return 0;
8185 _ACEOF
8186 rm -f conftest.$ac_objext
8187 if { (ac_try="$ac_compile"
8188 case "(($ac_try" in
8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8191 esac
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_compile") 2>conftest.er1
8194 ac_status=$?
8195 grep -v '^ *+' conftest.er1 >conftest.err
8196 rm -f conftest.er1
8197 cat conftest.err >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); } && {
8200 test -z "$ac_cxx_werror_flag" ||
8201 test ! -s conftest.err
8202 } && test -s conftest.$ac_objext; then
8203 ac_hi=$ac_mid; break
8204 else
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8208 ac_lo=`expr $ac_mid + 1`
8209 if test $ac_lo -le $ac_mid; then
8210 ac_lo= ac_hi=
8211 break
8213 ac_mid=`expr 2 '*' $ac_mid + 1`
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217 done
8218 else
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8222 cat >conftest.$ac_ext <<_ACEOF
8223 /* confdefs.h. */
8224 _ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h. */
8228 $ac_includes_default
8229 typedef void * ac__type_sizeof_;
8231 main ()
8233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8234 test_array [0] = 0
8237 return 0;
8239 _ACEOF
8240 rm -f conftest.$ac_objext
8241 if { (ac_try="$ac_compile"
8242 case "(($ac_try" in
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8245 esac
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_compile") 2>conftest.er1
8248 ac_status=$?
8249 grep -v '^ *+' conftest.er1 >conftest.err
8250 rm -f conftest.er1
8251 cat conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } && {
8254 test -z "$ac_cxx_werror_flag" ||
8255 test ! -s conftest.err
8256 } && test -s conftest.$ac_objext; then
8257 ac_hi=-1 ac_mid=-1
8258 while :; do
8259 cat >conftest.$ac_ext <<_ACEOF
8260 /* confdefs.h. */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265 $ac_includes_default
8266 typedef void * ac__type_sizeof_;
8268 main ()
8270 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8271 test_array [0] = 0
8274 return 0;
8276 _ACEOF
8277 rm -f conftest.$ac_objext
8278 if { (ac_try="$ac_compile"
8279 case "(($ac_try" in
8280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281 *) ac_try_echo=$ac_try;;
8282 esac
8283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284 (eval "$ac_compile") 2>conftest.er1
8285 ac_status=$?
8286 grep -v '^ *+' conftest.er1 >conftest.err
8287 rm -f conftest.er1
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } && {
8291 test -z "$ac_cxx_werror_flag" ||
8292 test ! -s conftest.err
8293 } && test -s conftest.$ac_objext; then
8294 ac_lo=$ac_mid; break
8295 else
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8299 ac_hi=`expr '(' $ac_mid ')' - 1`
8300 if test $ac_mid -le $ac_hi; then
8301 ac_lo= ac_hi=
8302 break
8304 ac_mid=`expr 2 '*' $ac_mid`
8307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308 done
8309 else
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8313 ac_lo= ac_hi=
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320 # Binary search between lo and hi bounds.
8321 while test "x$ac_lo" != "x$ac_hi"; do
8322 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8323 cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h. */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 $ac_includes_default
8330 typedef void * ac__type_sizeof_;
8332 main ()
8334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8335 test_array [0] = 0
8338 return 0;
8340 _ACEOF
8341 rm -f conftest.$ac_objext
8342 if { (ac_try="$ac_compile"
8343 case "(($ac_try" in
8344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345 *) ac_try_echo=$ac_try;;
8346 esac
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348 (eval "$ac_compile") 2>conftest.er1
8349 ac_status=$?
8350 grep -v '^ *+' conftest.er1 >conftest.err
8351 rm -f conftest.er1
8352 cat conftest.err >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } && {
8355 test -z "$ac_cxx_werror_flag" ||
8356 test ! -s conftest.err
8357 } && test -s conftest.$ac_objext; then
8358 ac_hi=$ac_mid
8359 else
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8363 ac_lo=`expr '(' $ac_mid ')' + 1`
8366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8367 done
8368 case $ac_lo in
8369 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8370 '') if test "$ac_cv_type_void_p" = yes; then
8371 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8372 See \`config.log' for more details." >&5
8373 echo "$as_me: error: cannot compute sizeof (void *)
8374 See \`config.log' for more details." >&2;}
8375 { (exit 77); exit 77; }; }
8376 else
8377 ac_cv_sizeof_void_p=0
8378 fi ;;
8379 esac
8380 else
8381 cat >conftest.$ac_ext <<_ACEOF
8382 /* confdefs.h. */
8383 _ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8387 $ac_includes_default
8388 typedef void * ac__type_sizeof_;
8389 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8390 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8391 #include <stdio.h>
8392 #include <stdlib.h>
8394 main ()
8397 FILE *f = fopen ("conftest.val", "w");
8398 if (! f)
8399 return 1;
8400 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8402 long int i = longval ();
8403 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8404 return 1;
8405 fprintf (f, "%ld\n", i);
8407 else
8409 unsigned long int i = ulongval ();
8410 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8411 return 1;
8412 fprintf (f, "%lu\n", i);
8414 return ferror (f) || fclose (f) != 0;
8417 return 0;
8419 _ACEOF
8420 rm -f conftest$ac_exeext
8421 if { (ac_try="$ac_link"
8422 case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8425 esac
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_link") 2>&5
8428 ac_status=$?
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8431 { (case "(($ac_try" in
8432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433 *) ac_try_echo=$ac_try;;
8434 esac
8435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436 (eval "$ac_try") 2>&5
8437 ac_status=$?
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); }; }; then
8440 ac_cv_sizeof_void_p=`cat conftest.val`
8441 else
8442 echo "$as_me: program exited with status $ac_status" >&5
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8446 ( exit $ac_status )
8447 if test "$ac_cv_type_void_p" = yes; then
8448 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8449 See \`config.log' for more details." >&5
8450 echo "$as_me: error: cannot compute sizeof (void *)
8451 See \`config.log' for more details." >&2;}
8452 { (exit 77); exit 77; }; }
8453 else
8454 ac_cv_sizeof_void_p=0
8457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8459 rm -f conftest.val
8461 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8462 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8466 cat >>confdefs.h <<_ACEOF
8467 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8468 _ACEOF
8471 { echo "$as_me:$LINENO: checking if we are on a 64-bits computer" >&5
8472 echo $ECHO_N "checking if we are on a 64-bits computer... $ECHO_C" >&6; }
8473 if test "$ac_cv_sizeof_void_p" = "8"; then
8474 { echo "$as_me:$LINENO: result: yes" >&5
8475 echo "${ECHO_T}yes" >&6; }
8476 CONFIG_WORD_LENGTH="8"
8477 CONFIG_WORD_LENGTH_INC="7"
8478 CONFIG_WORD_MASK="0xfffffffffffffff8"
8479 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8480 else
8481 { echo "$as_me:$LINENO: result: no" >&5
8482 echo "${ECHO_T}no" >&6; }
8485 ac_aux_dir=
8486 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
8487 if test -f "$ac_dir/install-sh"; then
8488 ac_aux_dir=$ac_dir
8489 ac_install_sh="$ac_aux_dir/install-sh -c"
8490 break
8491 elif test -f "$ac_dir/install.sh"; then
8492 ac_aux_dir=$ac_dir
8493 ac_install_sh="$ac_aux_dir/install.sh -c"
8494 break
8495 elif test -f "$ac_dir/shtool"; then
8496 ac_aux_dir=$ac_dir
8497 ac_install_sh="$ac_aux_dir/shtool install -c"
8498 break
8500 done
8501 if test -z "$ac_aux_dir"; then
8502 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
8503 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
8504 { (exit 1); exit 1; }; }
8507 # These three variables are undocumented and unsupported,
8508 # and are intended to be withdrawn in a future Autoconf release.
8509 # They can cause serious problems if a builder's source tree is in a directory
8510 # whose full name contains unusual characters.
8511 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
8512 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
8513 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
8516 # Make sure we can run config.sub.
8517 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8518 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
8519 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
8520 { (exit 1); exit 1; }; }
8522 { echo "$as_me:$LINENO: checking build system type" >&5
8523 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
8524 if test "${ac_cv_build+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527 ac_build_alias=$build_alias
8528 test "x$ac_build_alias" = x &&
8529 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
8530 test "x$ac_build_alias" = x &&
8531 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
8532 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
8533 { (exit 1); exit 1; }; }
8534 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8535 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
8536 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
8537 { (exit 1); exit 1; }; }
8540 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
8541 echo "${ECHO_T}$ac_cv_build" >&6; }
8542 case $ac_cv_build in
8543 *-*-*) ;;
8544 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
8545 echo "$as_me: error: invalid value of canonical build" >&2;}
8546 { (exit 1); exit 1; }; };;
8547 esac
8548 build=$ac_cv_build
8549 ac_save_IFS=$IFS; IFS='-'
8550 set x $ac_cv_build
8551 shift
8552 build_cpu=$1
8553 build_vendor=$2
8554 shift; shift
8555 # Remember, the first character of IFS is used to create $*,
8556 # except with old shells:
8557 build_os=$*
8558 IFS=$ac_save_IFS
8559 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
8562 { echo "$as_me:$LINENO: checking host system type" >&5
8563 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
8564 if test "${ac_cv_host+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 else
8567 if test "x$host_alias" = x; then
8568 ac_cv_host=$ac_cv_build
8569 else
8570 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8571 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
8572 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
8573 { (exit 1); exit 1; }; }
8577 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8578 echo "${ECHO_T}$ac_cv_host" >&6; }
8579 case $ac_cv_host in
8580 *-*-*) ;;
8581 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
8582 echo "$as_me: error: invalid value of canonical host" >&2;}
8583 { (exit 1); exit 1; }; };;
8584 esac
8585 host=$ac_cv_host
8586 ac_save_IFS=$IFS; IFS='-'
8587 set x $ac_cv_host
8588 shift
8589 host_cpu=$1
8590 host_vendor=$2
8591 shift; shift
8592 # Remember, the first character of IFS is used to create $*,
8593 # except with old shells:
8594 host_os=$*
8595 IFS=$ac_save_IFS
8596 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8599 case "${host}" in
8600 i*86-*-linux* | x86_64-*-linux*)
8601 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
8602 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/Linux host" >&6; }
8603 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8605 i*86-*-freebsd* | x86_64-*-freebsd*)
8606 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
8607 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/BSD host" >&6; }
8608 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8610 i*86-*-solaris*)
8611 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMS Solaris host" >&5
8612 echo "${ECHO_T}final adjustments for an Intel or AMS Solaris host" >&6; }
8613 CONFIG_CXXOPTIMIZE="-O3"
8614 CONFIG_BPATH="-Wl,-R,"
8615 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8617 *mingw*)
8618 { echo "$as_me:$LINENO: result: final adjustments for mingw host" >&5
8619 echo "${ECHO_T}final adjustments for mingw host" >&6; }
8620 CONFIG_OS_COMPAT="Windows"
8621 LDRT="-lmingwex"
8623 *-*-cygwin)
8624 { echo "$as_me:$LINENO: result: final adjustments for cygwin host" >&5
8625 echo "${ECHO_T}final adjustments for cygwin host" >&6; }
8626 CONFIG_OS="CYGWIN"
8627 CONFIG_BFLAGS="-Wl,-stack,8388608"
8628 # CXX="export CYGWIN=check_case:strict; $CXX"
8629 # AC_SUBST(CXX)
8631 *apple*darwin*)
8632 echo "$ac_t""final adjustments for a MacOS host" 1>&6
8633 CONFIG_OS="MACOS"
8634 CONFIG_CXXFLAGS="-I${prefix}/include"
8635 CONFIG_BSHARED=""
8636 CONFIG_BFLAGS="-framework Cocoa"
8637 CONFIG_BPATH=""
8638 CONFIG_SO="dylib"
8639 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
8641 *darwin*)
8642 echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
8643 CONFIG_CXXFLAGS="-I${prefix}/include"
8644 CONFIG_BSHARED=""
8645 CONFIG_BPATH=""
8646 CONFIG_SO="dylib"
8647 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
8649 powerpc-*-linux*)
8650 { echo "$as_me:$LINENO: result: final adjustments for a PowerPC/GNU-linux host" >&5
8651 echo "${ECHO_T}final adjustments for a PowerPC/GNU-linux host" >&6; }
8652 CONFIG_OS="POWERPC_GNU_LINUX"
8653 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8655 *sun*)
8656 { echo "$as_me:$LINENO: result: final adjustments for a SUN/solaris host" >&5
8657 echo "${ECHO_T}final adjustments for a SUN/solaris host" >&6; }
8658 CONFIG_OS="SUN"
8659 CONFIG_OS_SUFFIX="sun"
8660 CONFIG_BSTATIC=""
8661 CONFIG_BSHARED=""
8662 CONFIG_BPATH="-Wl,-R,"
8663 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8664 CONFIG_WORD_LENGTH="8"
8665 CONFIG_WORD_LENGTH_INC="7"
8666 CONFIG_WORD_MASK="0xfffffff8"
8667 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8668 CONFIG_STD_SETENV=""
8670 sparc*-*-linux*)
8671 { echo "$as_me:$LINENO: result: final adjustments for a Sparc host running GNU/Linux" >&5
8672 echo "${ECHO_T}final adjustments for a Sparc host running GNU/Linux" >&6; }
8673 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8674 CONFIG_WORD_LENGTH="8"
8675 CONFIG_WORD_LENGTH_INC="7"
8676 CONFIG_WORD_MASK="0xfffffff8"
8677 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8678 CONFIG_STD_SETENV=""
8680 *dec*)
8681 { echo "$as_me:$LINENO: result: final adjustments for a DEC/alpha host" >&5
8682 echo "${ECHO_T}final adjustments for a DEC/alpha host" >&6; }
8683 CONFIG_BSTATIC=""
8684 CONFIG_BSHARED="-shared"
8685 CONFIG_STD_SETENV=""
8687 *alpha*-*-linux*)
8688 { echo "$as_me:$LINENO: result: final adjustments for an Alpha GNU/Linux host" >&5
8689 echo "${ECHO_T}final adjustments for an Alpha GNU/Linux host" >&6; }
8690 CONFIG_BSTATIC=""
8691 CONFIG_BSHARED="-shared"
8693 s390-*-linux*)
8694 { echo "$as_me:$LINENO: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
8695 echo "${ECHO_T}final adjustments for an IBM S/390 GNU/Linux host" >&6; }
8696 CONFIG_STD_SETENV=""
8698 ia64-*-linux*)
8699 { echo "$as_me:$LINENO: result: final adjustments for an Itanium GNU/Linux host" >&5
8700 echo "${ECHO_T}final adjustments for an Itanium GNU/Linux host" >&6; }
8701 CONFIG_BSTATIC=""
8702 CONFIG_BSHARED="-shared"
8704 hppa*-*-linux*)
8705 { echo "$as_me:$LINENO: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
8706 echo "${ECHO_T}final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
8707 CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
8708 CONFIG_BSTATIC=""
8709 CONFIG_BSHARED="-shared"
8711 *sgi-irix*)
8712 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
8713 CONFIG_OS="IRIX"
8714 CONFIG_CXXFLAGS=""
8715 X_LIBS=-L/usr/lib32
8716 CONFIG_BSTATIC=""
8717 CONFIG_BSHARED=""
8718 CONFIG_BPATH=""
8719 X11_LDFLAGS="$X_LIBS -lX11"
8720 CONFIG_WORD_MASK="0xfffffff8"
8721 CONFIG_STD_SETENV=""
8722 CONFIG_CHMOD="chmod"
8723 CONFIG_LIB_PATH="LD_LIBRARYN32_PATH"
8725 m68k-*-linux* | mips-*-linux* | mipsel-*-linux* | arm*-*-linux*)
8726 { echo "$as_me:$LINENO: result: final adjustments for a supported GNU/Linux host" >&5
8727 echo "${ECHO_T}final adjustments for a supported GNU/Linux host" >&6; }
8729 *-linux*)
8730 { echo "$as_me:$LINENO: result: final adjustments for a generic GNU/Linux host" >&5
8731 echo "${ECHO_T}final adjustments for a generic GNU/Linux host" >&6; }
8734 { echo "$as_me:$LINENO: result: final adjustments for a generic host" >&5
8735 echo "${ECHO_T}final adjustments for a generic host" >&6; }
8737 esac
8739 #--------------------------------------------------------------------
8740 # Temporary fix for link problem
8741 #--------------------------------------------------------------------
8743 case "$GXX_VERSION" in
8744 3.* | 4.*)
8745 CONFIG_BSTATIC="-static"
8746 CONFIG_BSHARED="-dynamic"
8748 esac
8750 #--------------------------------------------------------------------
8751 # Memory allocation options
8752 #--------------------------------------------------------------------
8754 # Check whether --enable-fastalloc was given.
8755 if test "${enable_fastalloc+set}" = set; then
8756 enableval=$enable_fastalloc;
8757 else
8758 enable_fastalloc="yes"
8761 case "$enable_fastalloc" in
8762 yes)
8765 { echo "$as_me:$LINENO: result: disabling fast allocator for small objects" >&5
8766 echo "${ECHO_T}disabling fast allocator for small objects" >&6; }
8768 cat >>confdefs.h <<\_ACEOF
8769 #define NO_FAST_ALLOC 1
8770 _ACEOF
8774 { { echo "$as_me:$LINENO: error: bad option --enable-fastalloc=$enable_fastalloc" >&5
8775 echo "$as_me: error: bad option --enable-fastalloc=$enable_fastalloc" >&2;}
8776 { (exit 1); exit 1; }; }
8778 esac
8780 #--------------------------------------------------------------------
8781 # Experimental options
8782 #--------------------------------------------------------------------
8784 # Check whether --enable-experimental was given.
8785 if test "${enable_experimental+set}" = set; then
8786 enableval=$enable_experimental;
8787 else
8788 enable_experimental="no"
8791 case "$enable_experimental" in
8792 yes)
8793 { echo "$as_me:$LINENO: result: enabling experimental style rewriting code" >&5
8794 echo "${ECHO_T}enabling experimental style rewriting code" >&6; }
8796 cat >>confdefs.h <<\_ACEOF
8797 #define EXPERIMENTAL 1
8798 _ACEOF
8800 CONFIG_EXPERIMENTAL="Memorizer Environment Evaluate"
8803 { echo "$as_me:$LINENO: result: disabling experimental style rewriting code" >&5
8804 echo "${ECHO_T}disabling experimental style rewriting code" >&6; }
8805 CONFIG_EXPERIMENTAL=""
8808 { { echo "$as_me:$LINENO: error: bad option --enable-experimental=$enable_experimental" >&5
8809 echo "$as_me: error: bad option --enable-experimental=$enable_experimental" >&2;}
8810 { (exit 1); exit 1; }; }
8812 esac
8815 #--------------------------------------------------------------------
8816 # MacOS X extensions (spellchecker, image loading)
8817 #--------------------------------------------------------------------
8819 # Check whether --enable-macosx-extensions was given.
8820 if test "${enable_macosx_extensions+set}" = set; then
8821 enableval=$enable_macosx_extensions;
8822 else
8823 enable_macosx_extensions="no"
8826 case "$enable_macosx_extensions" in
8827 yes)
8828 { echo "$as_me:$LINENO: result: enabling Mac OSX extensions" >&5
8829 echo "${ECHO_T}enabling Mac OSX extensions" >&6; }
8831 cat >>confdefs.h <<\_ACEOF
8832 #define MACOSX_EXTENSIONS 1
8833 _ACEOF
8835 CONFIG_MACOS="MacOS"
8838 { echo "$as_me:$LINENO: result: disabling Mac OSX extensions" >&5
8839 echo "${ECHO_T}disabling Mac OSX extensions" >&6; }
8840 CONFIG_MACOS=""
8843 { { echo "$as_me:$LINENO: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&5
8844 echo "$as_me: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&2;}
8845 { (exit 1); exit 1; }; }
8847 esac
8850 #--------------------------------------------------------------------
8851 # Gui selection
8852 #--------------------------------------------------------------------
8854 CONFIG_X11=""
8855 CONFIG_COCOA=""
8856 CONFIG_GUI="X11"
8858 # Check whether --enable-qt was given.
8859 if test "${enable_qt+set}" = set; then
8860 enableval=$enable_qt;
8861 else
8862 enable_qt="no"
8866 case "$enable_qt" in
8867 yes)
8869 if test -r "/c/Qt"; then
8870 MOC="`which moc`"
8871 qt_bin="`dirname $MOC`"
8872 qt_home="`dirname $qt_bin`"
8873 qt_version="`basename $qt_home`"
8874 qt_parent="`dirname $qt_home`"
8875 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."
8876 QT_CXXFLAGS="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
8877 QT_LDFLAGS="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows"
8878 QT_LIBS="-L'c:/Qt/$qt_version/lib' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
8879 if test "$qt_parent" != "/c/Qt"; then
8880 at_cv_qt_build="ko"
8882 else
8887 test x"$TROLL" != x && echo 'ViM rox emacs.'
8890 # Check whether --with-qt was given.
8891 if test "${with_qt+set}" = set; then
8892 withval=$with_qt; QT_PATH=$withval
8893 else
8894 QT_PATH=
8898 # Find Qt.
8899 if test -d /usr/local/Trolltech; then
8900 # Try to find the latest version.
8901 tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
8902 | xargs | sed 's/ */:/g'`
8905 # Find qmake.
8906 if test -z "$QMAKE"; then
8907 for ac_prog in qmake
8909 # Extract the first word of "$ac_prog", so it can be a program name with args.
8910 set dummy $ac_prog; ac_word=$2
8911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8913 if test "${ac_cv_path_QMAKE+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916 case $QMAKE in
8917 [\\/]* | ?:[\\/]*)
8918 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
8921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8922 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
8923 for as_dir in $as_dummy
8925 IFS=$as_save_IFS
8926 test -z "$as_dir" && as_dir=.
8927 for ac_exec_ext in '' $ac_executable_extensions; do
8928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8929 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
8930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8931 break 2
8933 done
8934 done
8935 IFS=$as_save_IFS
8938 esac
8940 QMAKE=$ac_cv_path_QMAKE
8941 if test -n "$QMAKE"; then
8942 { echo "$as_me:$LINENO: result: $QMAKE" >&5
8943 echo "${ECHO_T}$QMAKE" >&6; }
8944 else
8945 { echo "$as_me:$LINENO: result: no" >&5
8946 echo "${ECHO_T}no" >&6; }
8950 test -n "$QMAKE" && break
8951 done
8952 test -n "$QMAKE" || QMAKE="missing"
8954 else
8955 { echo "$as_me:$LINENO: checking for the QMAKE to use with Qt" >&5
8956 echo $ECHO_N "checking for the QMAKE to use with Qt... $ECHO_C" >&6; }
8957 { echo "$as_me:$LINENO: result: $QMAKE" >&5
8958 echo "${ECHO_T}$QMAKE" >&6; }
8960 if test x"$QMAKE" = xmissing; then
8961 { { echo "$as_me:$LINENO: error: Cannot find qmake in your PATH. Try using --with-qt." >&5
8962 echo "$as_me: error: Cannot find qmake in your PATH. Try using --with-qt." >&2;}
8963 { (exit 1); exit 1; }; }
8966 # Find moc (Meta Object Compiler).
8967 if test -z "$MOC"; then
8968 for ac_prog in moc
8970 # Extract the first word of "$ac_prog", so it can be a program name with args.
8971 set dummy $ac_prog; ac_word=$2
8972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8974 if test "${ac_cv_path_MOC+set}" = set; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 else
8977 case $MOC in
8978 [\\/]* | ?:[\\/]*)
8979 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
8982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
8984 for as_dir in $as_dummy
8986 IFS=$as_save_IFS
8987 test -z "$as_dir" && as_dir=.
8988 for ac_exec_ext in '' $ac_executable_extensions; do
8989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8990 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
8991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8992 break 2
8994 done
8995 done
8996 IFS=$as_save_IFS
8999 esac
9001 MOC=$ac_cv_path_MOC
9002 if test -n "$MOC"; then
9003 { echo "$as_me:$LINENO: result: $MOC" >&5
9004 echo "${ECHO_T}$MOC" >&6; }
9005 else
9006 { echo "$as_me:$LINENO: result: no" >&5
9007 echo "${ECHO_T}no" >&6; }
9011 test -n "$MOC" && break
9012 done
9013 test -n "$MOC" || MOC="missing"
9015 else
9016 { echo "$as_me:$LINENO: checking for the MOC to use with Qt" >&5
9017 echo $ECHO_N "checking for the MOC to use with Qt... $ECHO_C" >&6; }
9018 { echo "$as_me:$LINENO: result: $MOC" >&5
9019 echo "${ECHO_T}$MOC" >&6; }
9021 if test x"$MOC" = xmissing; then
9022 { { echo "$as_me:$LINENO: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&5
9023 echo "$as_me: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&2;}
9024 { (exit 1); exit 1; }; }
9027 # Find uic (User Interface Compiler).
9028 if test -z "$UIC"; then
9029 for ac_prog in uic
9031 # Extract the first word of "$ac_prog", so it can be a program name with args.
9032 set dummy $ac_prog; ac_word=$2
9033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9035 if test "${ac_cv_path_UIC+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 else
9038 case $UIC in
9039 [\\/]* | ?:[\\/]*)
9040 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
9043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9044 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9045 for as_dir in $as_dummy
9047 IFS=$as_save_IFS
9048 test -z "$as_dir" && as_dir=.
9049 for ac_exec_ext in '' $ac_executable_extensions; do
9050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9051 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
9052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9053 break 2
9055 done
9056 done
9057 IFS=$as_save_IFS
9060 esac
9062 UIC=$ac_cv_path_UIC
9063 if test -n "$UIC"; then
9064 { echo "$as_me:$LINENO: result: $UIC" >&5
9065 echo "${ECHO_T}$UIC" >&6; }
9066 else
9067 { echo "$as_me:$LINENO: result: no" >&5
9068 echo "${ECHO_T}no" >&6; }
9072 test -n "$UIC" && break
9073 done
9074 test -n "$UIC" || UIC="missing"
9076 else
9077 { echo "$as_me:$LINENO: checking for the UIC to use with Qt" >&5
9078 echo $ECHO_N "checking for the UIC to use with Qt... $ECHO_C" >&6; }
9079 { echo "$as_me:$LINENO: result: $UIC" >&5
9080 echo "${ECHO_T}$UIC" >&6; }
9082 if test x"$UIC" = xmissing; then
9083 { { echo "$as_me:$LINENO: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&5
9084 echo "$as_me: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&2;}
9085 { (exit 1); exit 1; }; }
9088 # Find rcc (Qt Resource Compiler).
9089 for ac_prog in rcc
9091 # Extract the first word of "$ac_prog", so it can be a program name with args.
9092 set dummy $ac_prog; ac_word=$2
9093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9095 if test "${ac_cv_path_RCC+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098 case $RCC in
9099 [\\/]* | ?:[\\/]*)
9100 ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
9103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9104 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9105 for as_dir in $as_dummy
9107 IFS=$as_save_IFS
9108 test -z "$as_dir" && as_dir=.
9109 for ac_exec_ext in '' $ac_executable_extensions; do
9110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9111 ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
9112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9113 break 2
9115 done
9116 done
9117 IFS=$as_save_IFS
9120 esac
9122 RCC=$ac_cv_path_RCC
9123 if test -n "$RCC"; then
9124 { echo "$as_me:$LINENO: result: $RCC" >&5
9125 echo "${ECHO_T}$RCC" >&6; }
9126 else
9127 { echo "$as_me:$LINENO: result: no" >&5
9128 echo "${ECHO_T}no" >&6; }
9132 test -n "$RCC" && break
9133 done
9134 test -n "$RCC" || RCC="false"
9136 if test x"$UIC" = xfalse; then
9137 { echo "$as_me:$LINENO: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
9138 echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
9141 # If we don't know the path to Qt, guess it from the path to qmake.
9142 if test x"$QT_PATH" = x; then
9143 QT_PATH=`dirname "$QMAKE"`
9145 if test x"$QT_PATH" = x; then
9146 { { echo "$as_me:$LINENO: error: Cannot find the path to your Qt install. Use --with-qt." >&5
9147 echo "$as_me: error: Cannot find the path to your Qt install. Use --with-qt." >&2;}
9148 { (exit 1); exit 1; }; }
9151 { echo "$as_me:$LINENO: checking for the QT_PATH to use with Qt" >&5
9152 echo $ECHO_N "checking for the QT_PATH to use with Qt... $ECHO_C" >&6; }
9153 { echo "$as_me:$LINENO: result: $QT_PATH" >&5
9154 echo "${ECHO_T}$QT_PATH" >&6; }
9156 # Get ready to build a test-app with Qt.
9158 # Look for a writable temporary directory.
9160 if test x"$TMPDIR" = x || test ! -d "$TMPDIR" || test ! -w "$TMPDIR"; then
9161 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
9163 for i in /tmp /var/tmp; do
9164 if test -d "$i" && test -w "$i"; then
9165 TMPDIR=$i
9166 export TMPDIR
9167 echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
9168 break
9170 done
9173 # Kludge!! QMake has a very strange behavior. For instance, if you
9174 # install Qt under your $HOME and run QMake somewhere else under your
9175 # $HOME, it will try to be clever and produce Makefiles with relative
9176 # include paths. In order to avoid this, we will test QMake from a
9177 # temporary directory (usually /tmp). Note that this problem was only
9178 # observed with Qt 4.
9179 my_configure_pwd=`pwd`
9180 my_tmpdir="$TMPDIR/conftest$$.dir"
9181 test -d "$my_tmpdir" || mkdir "$my_tmpdir"
9182 if test -w "$my_tmpdir" && cd "$my_tmpdir"
9183 then
9185 else
9186 { { echo "$as_me:$LINENO: error: Cannot cd to or write in $my_tmpdir" >&5
9187 echo "$as_me: error: Cannot cd to or write in $my_tmpdir" >&2;}
9188 { (exit 1); exit 1; }; }
9190 cat >conftest.h <<_ASEOF
9191 #include <QObject>
9193 class Foo: public QObject
9195 Q_OBJECT;
9196 public:
9197 Foo();
9198 ~Foo() {}
9199 public slots:
9200 void setValue(int value);
9201 signals:
9202 void valueChanged(int newValue);
9203 private:
9204 int value_;
9206 _ASEOF
9208 cat >conftest.cpp <<_ASEOF
9209 #include "conftest.h"
9210 Foo::Foo()
9211 : value_ (42)
9213 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
9216 void Foo::setValue(int value)
9218 value_ = value;
9221 int main()
9223 Foo f;
9225 _ASEOF
9226 if $QMAKE -project; then :; else
9227 { { echo "$as_me:$LINENO: error: Calling $QMAKE -project failed." >&5
9228 echo "$as_me: error: Calling $QMAKE -project failed." >&2;}
9229 { (exit 1); exit 1; }; }
9232 # Find the .pro file generated by qmake.
9233 pro_file='conftest.dir.pro'
9234 test -f $pro_file || pro_file=`echo *.pro`
9235 if test -f "$pro_file"; then :; else
9236 { { echo "$as_me:$LINENO: error: Can't find the .pro file generated by Qmake." >&5
9237 echo "$as_me: error: Can't find the .pro file generated by Qmake." >&2;}
9238 { (exit 1); exit 1; }; }
9247 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
9248 sed 's/^/| /' "$pro_file" >&5
9250 additional_qmake_flags=""
9251 case $host_os in
9252 darwin*)
9253 additional_qmake_flags="-spec macx-g++"
9255 esac
9257 if $QMAKE ${additional_qmake_flags} ; then :; else
9258 { { echo "$as_me:$LINENO: error: Calling $QMAKE failed." >&5
9259 echo "$as_me: error: Calling $QMAKE failed." >&2;}
9260 { (exit 1); exit 1; }; }
9262 # Try to compile a simple Qt app.
9263 { echo "$as_me:$LINENO: checking whether we can build a simple Qt app" >&5
9264 echo $ECHO_N "checking whether we can build a simple Qt app... $ECHO_C" >&6; }
9265 if test "${at_cv_qt_build+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9268 at_cv_qt_build=ko
9269 : ${MAKE=make}
9271 if $MAKE >&5 2>&1; then
9272 at_cv_qt_build='ok, looks like Qt 4'
9273 else
9274 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9275 instead" >&5
9276 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
9277 if $MAKE >&5 2>&1; then
9278 at_cv_qt_build='ok, looks like Qt 3'
9279 else
9280 # Sometimes (such as on Debian) build will fail because Qt hasn't been
9281 # installed in debug mode and qmake tries (by default) to build apps in
9282 # debug mode => Try again in release mode.
9283 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
9286 # Tweak the value of CONFIG in the .pro file for +release.
9288 qt_conf=''
9289 for at_mod in +release; do
9290 at_mod=`echo "$at_mod" | sed 's/^-//; tough
9291 s/^+//; beef
9292 :ough
9293 s/^/CONFIG -= /;n
9294 :eef
9295 s/^/CONFIG += /'`
9296 qt_conf="$qt_conf
9297 $at_mod"
9298 done
9299 echo "$qt_conf" | sed 1d >>"$pro_file"
9302 sed 's/<qobject.h>/<QObject>/' conftest.h > tmp.h && mv tmp.h conftest.h
9303 if $MAKE >&5 2>&1; then
9304 at_cv_qt_build='ok, looks like Qt 4, release mode forced'
9305 else
9306 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9307 instead" >&5
9308 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
9309 if $MAKE >&5 2>&1; then
9310 at_cv_qt_build='ok, looks like Qt 3, release mode forced'
9311 else
9312 at_cv_qt_build=ko
9313 echo "$as_me:$LINENO: failed program was:" >&5
9314 sed 's/^/| /' conftest.h >&5
9315 echo "$as_me:$LINENO: failed program was:" >&5
9316 sed 's/^/| /' conftest.cpp >&5
9317 fi # if make with Qt3-style #include and release mode forced.
9318 fi # if make with Qt4-style #include and release mode forced.
9319 fi # if make with Qt3-style #include.
9320 fi # if make with Qt4-style #include.
9323 { echo "$as_me:$LINENO: result: $at_cv_qt_build" >&5
9324 echo "${ECHO_T}$at_cv_qt_build" >&6; }
9325 if test x"$at_cv_qt_build" = xko; then
9326 { { echo "$as_me:$LINENO: error: Cannot build a test Qt program" >&5
9327 echo "$as_me: error: Cannot build a test Qt program" >&2;}
9328 { (exit 1); exit 1; }; }
9330 QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
9333 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
9334 # It starts by removing the beginning of the line, removing references to
9335 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
9336 # all variable uses by QT_.
9337 qt_sed_filter='s///;
9338 s/$(SUBLIBS)//g;
9339 s/^ *//;
9340 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
9342 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
9343 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
9344 # Makefile.Release. The reason is that the main difference is that release
9345 # uses -Os and debug -g. We can override -Os by passing another -O but we
9346 # usually don't override -g.
9347 if test -f Makefile.Release; then
9348 at_mfile='Makefile.Release'
9349 else
9350 at_mfile='Makefile'
9352 if test -f $at_mfile; then :; else
9353 cd "$my_configure_pwd"
9354 { { echo "$as_me:$LINENO: error: Cannot find the Makefile generated by qmake." >&5
9355 echo "$as_me: error: Cannot find the Makefile generated by qmake." >&2;}
9356 { (exit 1); exit 1; }; }
9359 # Find the DEFINES of Qt (should have been named CPPFLAGS).
9360 if test -z "$QT_DEFINES"; then
9361 { echo "$as_me:$LINENO: checking for the DEFINES to use with Qt" >&5
9362 echo $ECHO_N "checking for the DEFINES to use with Qt... $ECHO_C" >&6; }
9363 if test "${at_cv_env_QT_DEFINES+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 else
9366 at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9368 { echo "$as_me:$LINENO: result: $at_cv_env_QT_DEFINES" >&5
9369 echo "${ECHO_T}$at_cv_env_QT_DEFINES" >&6; }
9370 QT_DEFINES="$at_cv_env_QT_DEFINES"
9373 { echo "$as_me:$LINENO: checking for the QT_DEFINES to use with Qt" >&5
9374 echo $ECHO_N "checking for the QT_DEFINES to use with Qt... $ECHO_C" >&6; }
9375 { echo "$as_me:$LINENO: result: $QT_DEFINES" >&5
9376 echo "${ECHO_T}$QT_DEFINES" >&6; }
9378 # Find the CFLAGS of Qt (We can use Qt in C?!)
9379 if test -z "$QT_CFLAGS"; then
9380 { echo "$as_me:$LINENO: checking for the CFLAGS to use with Qt" >&5
9381 echo $ECHO_N "checking for the CFLAGS to use with Qt... $ECHO_C" >&6; }
9382 if test "${at_cv_env_QT_CFLAGS+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385 at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9387 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CFLAGS" >&5
9388 echo "${ECHO_T}$at_cv_env_QT_CFLAGS" >&6; }
9389 QT_CFLAGS="$at_cv_env_QT_CFLAGS"
9392 { echo "$as_me:$LINENO: checking for the QT_CFLAGS to use with Qt" >&5
9393 echo $ECHO_N "checking for the QT_CFLAGS to use with Qt... $ECHO_C" >&6; }
9394 { echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
9395 echo "${ECHO_T}$QT_CFLAGS" >&6; }
9397 # Find the CXXFLAGS of Qt.
9398 if test -z "$QT_CXXFLAGS"; then
9399 { echo "$as_me:$LINENO: checking for the CXXFLAGS to use with Qt" >&5
9400 echo $ECHO_N "checking for the CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9401 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404 at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9406 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CXXFLAGS" >&5
9407 echo "${ECHO_T}$at_cv_env_QT_CXXFLAGS" >&6; }
9408 QT_CXXFLAGS="$at_cv_env_QT_CXXFLAGS"
9411 { echo "$as_me:$LINENO: checking for the QT_CXXFLAGS to use with Qt" >&5
9412 echo $ECHO_N "checking for the QT_CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9413 { echo "$as_me:$LINENO: result: $QT_CXXFLAGS" >&5
9414 echo "${ECHO_T}$QT_CXXFLAGS" >&6; }
9416 # Find the INCPATH of Qt.
9417 if test -z "$QT_INCPATH"; then
9418 { echo "$as_me:$LINENO: checking for the INCPATH to use with Qt" >&5
9419 echo $ECHO_N "checking for the INCPATH to use with Qt... $ECHO_C" >&6; }
9420 if test "${at_cv_env_QT_INCPATH+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423 at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9425 { echo "$as_me:$LINENO: result: $at_cv_env_QT_INCPATH" >&5
9426 echo "${ECHO_T}$at_cv_env_QT_INCPATH" >&6; }
9427 QT_INCPATH="$at_cv_env_QT_INCPATH"
9430 { echo "$as_me:$LINENO: checking for the QT_INCPATH to use with Qt" >&5
9431 echo $ECHO_N "checking for the QT_INCPATH to use with Qt... $ECHO_C" >&6; }
9432 { echo "$as_me:$LINENO: result: $QT_INCPATH" >&5
9433 echo "${ECHO_T}$QT_INCPATH" >&6; }
9435 QT_CPPFLAGS="$QT_DEFINES $QT_INCPATH"
9438 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
9439 if test -z "$QT_LDFLAGS"; then
9440 { echo "$as_me:$LINENO: checking for the LDFLAGS to use with Qt" >&5
9441 echo $ECHO_N "checking for the LDFLAGS to use with Qt... $ECHO_C" >&6; }
9442 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 else
9445 at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9447 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LDFLAGS" >&5
9448 echo "${ECHO_T}$at_cv_env_QT_LDFLAGS" >&6; }
9449 QT_LDFLAGS="$at_cv_env_QT_LDFLAGS"
9452 QT_LFLAGS=$QT_LDFLAGS
9454 { echo "$as_me:$LINENO: checking for the QT_LDFLAGS to use with Qt" >&5
9455 echo $ECHO_N "checking for the QT_LDFLAGS to use with Qt... $ECHO_C" >&6; }
9456 { echo "$as_me:$LINENO: result: $QT_LDFLAGS" >&5
9457 echo "${ECHO_T}$QT_LDFLAGS" >&6; }
9459 { echo "$as_me:$LINENO: checking whether host operating system is Darwin" >&5
9460 echo $ECHO_N "checking whether host operating system is Darwin... $ECHO_C" >&6; }
9461 at_darwin="no"
9462 case $host_os in
9463 darwin*)
9464 at_darwin="yes"
9466 esac
9467 { echo "$as_me:$LINENO: result: $at_darwin" >&5
9468 echo "${ECHO_T}$at_darwin" >&6; }
9470 # Find the LIBS of Qt.
9471 if test -z "$QT_LIBS"; then
9472 { echo "$as_me:$LINENO: checking for the LIBS to use with Qt" >&5
9473 echo $ECHO_N "checking for the LIBS to use with Qt... $ECHO_C" >&6; }
9474 if test "${at_cv_env_QT_LIBS+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477 at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9478 if test x$at_darwin = xyes; then
9479 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
9480 # -F properly. The "bug" has been fixed on 22 October 2006
9481 # by Peter O'Gorman but we provide backward compatibility here.
9482 at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
9483 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
9487 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LIBS" >&5
9488 echo "${ECHO_T}$at_cv_env_QT_LIBS" >&6; }
9489 QT_LIBS="$at_cv_env_QT_LIBS"
9492 { echo "$as_me:$LINENO: checking for the QT_LIBS to use with Qt" >&5
9493 echo $ECHO_N "checking for the QT_LIBS to use with Qt... $ECHO_C" >&6; }
9494 { echo "$as_me:$LINENO: result: $QT_LIBS" >&5
9495 echo "${ECHO_T}$QT_LIBS" >&6; }
9497 cd "$my_configure_pwd" || echo 'WTF!'
9498 rm -rf "$my_tmpdir"
9502 if test x"$at_cv_qt_build" = xko; then
9503 { { echo "$as_me:$LINENO: error: cannot find Qt!" >&5
9504 echo "$as_me: error: cannot find Qt!" >&2;}
9505 { (exit 1); exit 1; }; }
9506 else
9507 { echo "$as_me:$LINENO: result: enabling experimental Qt port" >&5
9508 echo "${ECHO_T}enabling experimental Qt port" >&6; }
9509 CONFIG_GUI="QT"
9513 { echo "$as_me:$LINENO: result: disabling experimental Qt port" >&5
9514 echo "${ECHO_T}disabling experimental Qt port" >&6; }
9517 { { echo "$as_me:$LINENO: error: bad option --enable-qt=$enable_qt" >&5
9518 echo "$as_me: error: bad option --enable-qt=$enable_qt" >&2;}
9519 { (exit 1); exit 1; }; }
9521 esac
9523 # Check whether --enable-cocoa was given.
9524 if test "${enable_cocoa+set}" = set; then
9525 enableval=$enable_cocoa;
9526 else
9527 enable_cocoa="no"
9530 case "$enable_cocoa" in
9531 yes)
9532 { echo "$as_me:$LINENO: result: enabling experimental Cocoa port" >&5
9533 echo "${ECHO_T}enabling experimental Cocoa port" >&6; }
9534 COCOA_CFLAGS=""
9535 COCOA_LDFLAGS="-framework Cocoa"
9536 CONFIG_GUI="COCOA"
9539 { echo "$as_me:$LINENO: result: disabling experimental Cocoa port" >&5
9540 echo "${ECHO_T}disabling experimental Cocoa port" >&6; }
9543 { { echo "$as_me:$LINENO: error: bad option --enable-cocoa=$enable_cocoa" >&5
9544 echo "$as_me: error: bad option --enable-cocoa=$enable_cocoa" >&2;}
9545 { (exit 1); exit 1; }; }
9547 esac
9549 case "$CONFIG_GUI" in
9550 X11)
9551 CONFIG_X11="X11 Widkit Ghostscript"
9552 CONFIG_GUI_DEFINE="X11TEXMACS"
9553 # AC_DEFINE(X11TEXMACS, 1, [Use standard X11 port])
9555 COCOA)
9556 CONFIG_COCOA="Cocoa"
9557 CONFIG_GUI_DEFINE="AQUATEXMACS"
9558 # AC_DEFINE(AQUATEXMACS, 1, [Enable experimental Cocoa port])
9561 CONFIG_QT="Qt"
9562 CONFIG_GUI_DEFINE="QTTEXMACS"
9563 # AC_DEFINE(QTTEXMACS, 1, [Enable experimental Qt port])
9565 esac
9578 #--------------------------------------------------------------------
9579 # Debugging options
9580 #--------------------------------------------------------------------
9582 STD_DEBUG_FLAGS="-fno-rtti -fno-exceptions"
9583 if test "$enable_cocoa" = "yes"; then
9584 STD_DEBUG_FLAGS="-fno-exceptions"
9587 { echo "$as_me:$LINENO: checking if compiler supports $STD_DEBUG_FLAGS" >&5
9588 echo $ECHO_N "checking if compiler supports $STD_DEBUG_FLAGS... $ECHO_C" >&6; }
9589 CXXFLAGS="$STD_DEBUG_FLAGS"
9590 cat >conftest.$ac_ext <<_ACEOF
9591 /* confdefs.h. */
9592 _ACEOF
9593 cat confdefs.h >>conftest.$ac_ext
9594 cat >>conftest.$ac_ext <<_ACEOF
9595 /* end confdefs.h. */
9597 int some_variable = 0;
9600 main ()
9605 return 0;
9607 _ACEOF
9608 rm -f conftest.$ac_objext
9609 if { (ac_try="$ac_compile"
9610 case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9613 esac
9614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_compile") 2>conftest.er1
9616 ac_status=$?
9617 grep -v '^ *+' conftest.er1 >conftest.err
9618 rm -f conftest.er1
9619 cat conftest.err >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } && {
9622 test -z "$ac_cxx_werror_flag" ||
9623 test ! -s conftest.err
9624 } && test -s conftest.$ac_objext; then
9626 CONFIG_CXXDIALECT="$STD_DEBUG_FLAGS"
9627 { echo "$as_me:$LINENO: result: yes" >&5
9628 echo "${ECHO_T}yes" >&6; }
9630 else
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9635 CONFIG_CXXDIALECT=""
9636 { echo "$as_me:$LINENO: result: no" >&5
9637 echo "${ECHO_T}no" >&6; }
9641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9642 CXXFLAGS=""
9645 # Check whether --enable-debug was given.
9646 if test "${enable_debug+set}" = set; then
9647 enableval=$enable_debug;
9648 else
9649 enable_debug="no"
9653 if test "$enable_debug" = "yes"; then
9654 if test "$GXX" = "yes"; then
9655 enable_debug="-ggdb"
9656 else
9657 enable_debug="-g3"
9661 if test "$enable_debug" = "no"; then
9662 { echo "$as_me:$LINENO: result: disabling debugging" >&5
9663 echo "${ECHO_T}disabling debugging" >&6; }
9664 CONFIG_STRIP="strip"
9665 CONFIG_CXXDEBUG=""
9666 optimize_default="yes"
9667 else
9668 { echo "$as_me:$LINENO: result: enabling debugging, $enable_debug" >&5
9669 echo "${ECHO_T}enabling debugging, $enable_debug" >&6; }
9670 CONFIG_STRIP="true"
9671 CONFIG_CXXDEBUG="$enable_debug"
9672 optimize_default="no"
9675 # Check whether --enable-assert was given.
9676 if test "${enable_assert+set}" = set; then
9677 enableval=$enable_assert;
9678 else
9679 enable_assert="yes"
9683 if test "$enable_assert" = "no"; then
9684 { echo "$as_me:$LINENO: result: disabling assertion checking" >&5
9685 echo "${ECHO_T}disabling assertion checking" >&6; }
9686 else
9687 { echo "$as_me:$LINENO: result: enabling assertion checking" >&5
9688 echo "${ECHO_T}enabling assertion checking" >&6; }
9690 cat >>confdefs.h <<\_ACEOF
9691 #define DEBUG_ASSERT 1
9692 _ACEOF
9696 #--------------------------------------------------------------------
9697 # Warning options
9698 #--------------------------------------------------------------------
9700 case "$GXX_VERSION" in
9701 none)
9702 CONFIG_CXXWARNING="";
9705 CONFIG_CXXWARNING="-Wall -Wno-return-type"
9707 esac
9709 # Check whether --enable-warnings was given.
9710 if test "${enable_warnings+set}" = set; then
9711 enableval=$enable_warnings;
9712 else
9713 enable_warnings="yes"
9716 case "$enable_warnings" in
9717 yes)
9718 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9719 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9721 CONFIG_CXXWARNING=""
9722 { echo "$as_me:$LINENO: result: disabling warning flags" >&5
9723 echo "${ECHO_T}disabling warning flags" >&6; } ;;
9725 CONFIG_CXXWARNING="$enable_warnings"
9726 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9727 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9728 esac
9730 #--------------------------------------------------------------------
9731 # Optimization options
9732 #--------------------------------------------------------------------
9734 if test "$optimize_default" = "yes"; then
9735 case "$GXX_VERSION" in
9736 3.3.3 | 3.3.4 | 4.*)
9738 2.96 | 3.0 | 3.0.* | 3.1 | 3.1.* | 3.2 | 3.2.* | 3.3 | 3.3.*)
9739 case "${host}" in
9740 i*86-*-linux-gnu* | i*86-*-freebsd*)
9741 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9742 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9743 optimize_default="no-inline"
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"
9750 esac
9752 esac
9755 # Check whether --enable-optimize was given.
9756 if test "${enable_optimize+set}" = set; then
9757 enableval=$enable_optimize;
9758 else
9759 enable_optimize="$optimize_default"
9763 case "$enable_optimize" in
9764 yes)
9765 # keep optimization options
9766 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9767 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9768 no-inline)
9769 optimize_no_inline="-fno-default-inline -fno-inline"
9770 CONFIG_CXXOPTIMIZE="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
9771 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9772 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9774 CONFIG_CXXOPTIMIZE=""
9775 { echo "$as_me:$LINENO: result: disabling optimizations" >&5
9776 echo "${ECHO_T}disabling optimizations" >&6; } ;;
9778 CONFIG_CXXOPTIMIZE="$enable_optimize"
9779 { echo "$as_me:$LINENO: result: customizing optimizations, $enable_optimize" >&5
9780 echo "${ECHO_T}customizing optimizations, $enable_optimize" >&6; } ;;
9781 esac
9783 #--------------------------------------------------------------------
9784 # Substitute TeXmacs specific configuration parameters
9785 #--------------------------------------------------------------------
9810 #--------------------------------------------------------------------
9811 # Default paths for installation
9812 #--------------------------------------------------------------------
9814 if test "$prefix" = ""; then
9815 prefix=/usr/local
9817 if test "$prefix" = "NONE"; then
9818 prefix=/usr/local
9820 if test "$exec_prefix" = ""; then
9821 exec_prefix='${prefix}'
9823 if test "$exec_prefix" = "NONE"; then
9824 exec_prefix='${prefix}'
9826 if test "$exec_prefix" = '${prefix}'; then
9827 exec_prefix='${prefix}'
9829 if test "$includedir" = ""; then
9830 includedir='${prefix}/include'
9832 if test "$includedir" = "NONE"; then
9833 includedir='${prefix}/include'
9835 if test "$includedir" = '${prefix}/include'; then
9836 includedir='${prefix}/include'
9838 if test "$libdir" = ""; then
9839 libdir='${exec_prefix}/lib'
9841 if test "$libdir" = "NONE"; then
9842 libdir='${exec_prefix}/lib'
9844 if test "$libdir" = '${exec_prefix}/lib'; then
9845 libdir='${exec_prefix}/lib'
9847 if test "$bindir" = ""; then
9848 bindir='${exec_prefix}/bin'
9850 if test "$bindir" = "NONE"; then
9851 bindir=${exec_prefix}/bin
9853 if test "$bindir" = '${exec_prefix}/bin'; then
9854 bindir='${exec_prefix}/bin'
9856 if test "$datarootdir" = ""; then
9857 datarootdir='${prefix}/share'
9859 if test "$datarootdir" = "NONE"; then
9860 datarootdir='${prefix}/share'
9862 if test "$datarootdir" = '${prefix}/share'; then
9863 datarootdir='${prefix}/share'
9865 if test "$datadir" = ""; then
9866 datadir='${prefix}/share'
9868 if test "$datadir" = "NONE"; then
9869 datadir='${prefix}/share'
9871 if test "$datadir" = '${prefix}/share'; then
9872 datadir='${prefix}/share'
9874 if test "$mandir" = ""; then
9875 mandir='${datarootdir}/man'
9877 if test "$mandir" = "NONE"; then
9878 mandir='${datarootdir}/man'
9880 if test "$mandir" = '${datarootdir}/man'; then
9881 mandir='${datarootdir}/man'
9883 if test "$libexecdir" = ""; then
9884 libexecdir='${exec_prefix}/libexec'
9886 if test "$libexecdir" = "NONE"; then
9887 libexecdir='${exec_prefix}/libexec'
9889 if test "$libexecdir" = '${exec_prefix}/libexec'; then
9890 libexecdir='${exec_prefix}/libexec'
9893 curdir="`pwd`"
9894 tmorig=${curdir}
9895 tmdir=${PACKAGE}
9896 tmsrc=${curdir}/${tmdir}
9897 tmbin=${libexecdir}/${tmdir}
9898 tmdata=${datadir}/${tmdir}
9905 if test "$DEVEL_RELEASE" = "1"; then
9906 tmtgz=${PACKAGE}-${DEVEL_VERSION}
9907 else
9908 tmtgz=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
9910 tmrpm=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
9911 if test "$STABLE_RELEASE" = "1"; then
9912 tmstgz=${PACKAGE}-${STABLE_VERSION}
9913 else
9914 tmstgz=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
9916 tmsrpm=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
9917 if test "$WINDOWS_RELEASE" = "1"; then
9918 tmwin=wintexmacs-${WINDOWS_VERSION}
9919 else
9920 tmwin=wintexmacs-${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
9928 #--------------------------------------------------------------------
9929 # Done
9930 #--------------------------------------------------------------------
9932 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"
9934 cat >confcache <<\_ACEOF
9935 # This file is a shell script that caches the results of configure
9936 # tests run on this system so they can be shared between configure
9937 # scripts and configure runs, see configure's option --config-cache.
9938 # It is not useful on other systems. If it contains results you don't
9939 # want to keep, you may remove or edit it.
9941 # config.status only pays attention to the cache file if you give it
9942 # the --recheck option to rerun configure.
9944 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9945 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9946 # following values.
9948 _ACEOF
9950 # The following way of writing the cache mishandles newlines in values,
9951 # but we know of no workaround that is simple, portable, and efficient.
9952 # So, we kill variables containing newlines.
9953 # Ultrix sh set writes to stderr and can't be redirected directly,
9954 # and sets the high bit in the cache file unless we assign to the vars.
9956 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9957 eval ac_val=\$$ac_var
9958 case $ac_val in #(
9959 *${as_nl}*)
9960 case $ac_var in #(
9961 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9962 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9963 esac
9964 case $ac_var in #(
9965 _ | IFS | as_nl) ;; #(
9966 *) $as_unset $ac_var ;;
9967 esac ;;
9968 esac
9969 done
9971 (set) 2>&1 |
9972 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9973 *${as_nl}ac_space=\ *)
9974 # `set' does not quote correctly, so add quotes (double-quote
9975 # substitution turns \\\\ into \\, and sed turns \\ into \).
9976 sed -n \
9977 "s/'/'\\\\''/g;
9978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9979 ;; #(
9981 # `set' quotes correctly as required by POSIX, so do not add quotes.
9982 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9984 esac |
9985 sort
9987 sed '
9988 /^ac_cv_env_/b end
9989 t clear
9990 :clear
9991 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9992 t end
9993 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9994 :end' >>confcache
9995 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9996 if test -w "$cache_file"; then
9997 test "x$cache_file" != "x/dev/null" &&
9998 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9999 echo "$as_me: updating cache $cache_file" >&6;}
10000 cat confcache >$cache_file
10001 else
10002 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10003 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10006 rm -f confcache
10008 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10009 # Let make expand exec_prefix.
10010 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10012 DEFS=-DHAVE_CONFIG_H
10014 ac_libobjs=
10015 ac_ltlibobjs=
10016 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10017 # 1. Remove the extension, and $U if already installed.
10018 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10019 ac_i=`echo "$ac_i" | sed "$ac_script"`
10020 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10021 # will be set to the directory where LIBOBJS objects are built.
10022 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10023 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10024 done
10025 LIBOBJS=$ac_libobjs
10027 LTLIBOBJS=$ac_ltlibobjs
10031 : ${CONFIG_STATUS=./config.status}
10032 ac_clean_files_save=$ac_clean_files
10033 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10034 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10035 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10036 cat >$CONFIG_STATUS <<_ACEOF
10037 #! $SHELL
10038 # Generated by $as_me.
10039 # Run this file to recreate the current configuration.
10040 # Compiler output produced by configure, useful for debugging
10041 # configure, is in config.log if it exists.
10043 debug=false
10044 ac_cs_recheck=false
10045 ac_cs_silent=false
10046 SHELL=\${CONFIG_SHELL-$SHELL}
10047 _ACEOF
10049 cat >>$CONFIG_STATUS <<\_ACEOF
10050 ## --------------------- ##
10051 ## M4sh Initialization. ##
10052 ## --------------------- ##
10054 # Be more Bourne compatible
10055 DUALCASE=1; export DUALCASE # for MKS sh
10056 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10057 emulate sh
10058 NULLCMD=:
10059 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10060 # is contrary to our usage. Disable this feature.
10061 alias -g '${1+"$@"}'='"$@"'
10062 setopt NO_GLOB_SUBST
10063 else
10064 case `(set -o) 2>/dev/null` in
10065 *posix*) set -o posix ;;
10066 esac
10073 # PATH needs CR
10074 # Avoid depending upon Character Ranges.
10075 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10076 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10077 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10078 as_cr_digits='0123456789'
10079 as_cr_alnum=$as_cr_Letters$as_cr_digits
10081 # The user is always right.
10082 if test "${PATH_SEPARATOR+set}" != set; then
10083 echo "#! /bin/sh" >conf$$.sh
10084 echo "exit 0" >>conf$$.sh
10085 chmod +x conf$$.sh
10086 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10087 PATH_SEPARATOR=';'
10088 else
10089 PATH_SEPARATOR=:
10091 rm -f conf$$.sh
10094 # Support unset when possible.
10095 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10096 as_unset=unset
10097 else
10098 as_unset=false
10102 # IFS
10103 # We need space, tab and new line, in precisely that order. Quoting is
10104 # there to prevent editors from complaining about space-tab.
10105 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10106 # splitting by setting IFS to empty value.)
10107 as_nl='
10109 IFS=" "" $as_nl"
10111 # Find who we are. Look in the path if we contain no directory separator.
10112 case $0 in
10113 *[\\/]* ) as_myself=$0 ;;
10114 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10115 for as_dir in $PATH
10117 IFS=$as_save_IFS
10118 test -z "$as_dir" && as_dir=.
10119 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10120 done
10121 IFS=$as_save_IFS
10124 esac
10125 # We did not find ourselves, most probably we were run as `sh COMMAND'
10126 # in which case we are not to be found in the path.
10127 if test "x$as_myself" = x; then
10128 as_myself=$0
10130 if test ! -f "$as_myself"; then
10131 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10132 { (exit 1); exit 1; }
10135 # Work around bugs in pre-3.0 UWIN ksh.
10136 for as_var in ENV MAIL MAILPATH
10137 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10138 done
10139 PS1='$ '
10140 PS2='> '
10141 PS4='+ '
10143 # NLS nuisances.
10144 for as_var in \
10145 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10146 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10147 LC_TELEPHONE LC_TIME
10149 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10150 eval $as_var=C; export $as_var
10151 else
10152 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10154 done
10156 # Required to use basename.
10157 if expr a : '\(a\)' >/dev/null 2>&1 &&
10158 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10159 as_expr=expr
10160 else
10161 as_expr=false
10164 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10165 as_basename=basename
10166 else
10167 as_basename=false
10171 # Name of the executable.
10172 as_me=`$as_basename -- "$0" ||
10173 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10174 X"$0" : 'X\(//\)$' \| \
10175 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10176 echo X/"$0" |
10177 sed '/^.*\/\([^/][^/]*\)\/*$/{
10178 s//\1/
10181 /^X\/\(\/\/\)$/{
10182 s//\1/
10185 /^X\/\(\/\).*/{
10186 s//\1/
10189 s/.*/./; q'`
10191 # CDPATH.
10192 $as_unset CDPATH
10196 as_lineno_1=$LINENO
10197 as_lineno_2=$LINENO
10198 test "x$as_lineno_1" != "x$as_lineno_2" &&
10199 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10201 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10202 # uniformly replaced by the line number. The first 'sed' inserts a
10203 # line-number line after each line using $LINENO; the second 'sed'
10204 # does the real work. The second script uses 'N' to pair each
10205 # line-number line with the line containing $LINENO, and appends
10206 # trailing '-' during substitution so that $LINENO is not a special
10207 # case at line end.
10208 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10209 # scripts with optimization help from Paolo Bonzini. Blame Lee
10210 # E. McMahon (1931-1989) for sed's syntax. :-)
10211 sed -n '
10213 /[$]LINENO/=
10214 ' <$as_myself |
10215 sed '
10216 s/[$]LINENO.*/&-/
10217 t lineno
10219 :lineno
10221 :loop
10222 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10223 t loop
10224 s/-\n.*//
10225 ' >$as_me.lineno &&
10226 chmod +x "$as_me.lineno" ||
10227 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10228 { (exit 1); exit 1; }; }
10230 # Don't try to exec as it changes $[0], causing all sort of problems
10231 # (the dirname of $[0] is not the place where we might find the
10232 # original and so on. Autoconf is especially sensitive to this).
10233 . "./$as_me.lineno"
10234 # Exit status is that of the last command.
10235 exit
10239 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10240 as_dirname=dirname
10241 else
10242 as_dirname=false
10245 ECHO_C= ECHO_N= ECHO_T=
10246 case `echo -n x` in
10247 -n*)
10248 case `echo 'x\c'` in
10249 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10250 *) ECHO_C='\c';;
10251 esac;;
10253 ECHO_N='-n';;
10254 esac
10256 if expr a : '\(a\)' >/dev/null 2>&1 &&
10257 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10258 as_expr=expr
10259 else
10260 as_expr=false
10263 rm -f conf$$ conf$$.exe conf$$.file
10264 if test -d conf$$.dir; then
10265 rm -f conf$$.dir/conf$$.file
10266 else
10267 rm -f conf$$.dir
10268 mkdir conf$$.dir
10270 echo >conf$$.file
10271 if ln -s conf$$.file conf$$ 2>/dev/null; then
10272 as_ln_s='ln -s'
10273 # ... but there are two gotchas:
10274 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10275 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10276 # In both cases, we have to default to `cp -p'.
10277 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10278 as_ln_s='cp -p'
10279 elif ln conf$$.file conf$$ 2>/dev/null; then
10280 as_ln_s=ln
10281 else
10282 as_ln_s='cp -p'
10284 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10285 rmdir conf$$.dir 2>/dev/null
10287 if mkdir -p . 2>/dev/null; then
10288 as_mkdir_p=:
10289 else
10290 test -d ./-p && rmdir ./-p
10291 as_mkdir_p=false
10294 if test -x / >/dev/null 2>&1; then
10295 as_test_x='test -x'
10296 else
10297 if ls -dL / >/dev/null 2>&1; then
10298 as_ls_L_option=L
10299 else
10300 as_ls_L_option=
10302 as_test_x='
10303 eval sh -c '\''
10304 if test -d "$1"; then
10305 test -d "$1/.";
10306 else
10307 case $1 in
10308 -*)set "./$1";;
10309 esac;
10310 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10311 ???[sx]*):;;*)false;;esac;fi
10312 '\'' sh
10315 as_executable_p=$as_test_x
10317 # Sed expression to map a string onto a valid CPP name.
10318 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10320 # Sed expression to map a string onto a valid variable name.
10321 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10324 exec 6>&1
10326 # Save the log message, to keep $[0] and so on meaningful, and to
10327 # report actual input values of CONFIG_FILES etc. instead of their
10328 # values after options handling.
10329 ac_log="
10330 This file was extended by $as_me, which was
10331 generated by GNU Autoconf 2.61. Invocation command line was
10333 CONFIG_FILES = $CONFIG_FILES
10334 CONFIG_HEADERS = $CONFIG_HEADERS
10335 CONFIG_LINKS = $CONFIG_LINKS
10336 CONFIG_COMMANDS = $CONFIG_COMMANDS
10337 $ $0 $@
10339 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10342 _ACEOF
10344 cat >>$CONFIG_STATUS <<_ACEOF
10345 # Files that config.status was made for.
10346 config_files="$ac_config_files"
10347 config_headers="$ac_config_headers"
10349 _ACEOF
10351 cat >>$CONFIG_STATUS <<\_ACEOF
10352 ac_cs_usage="\
10353 \`$as_me' instantiates files from templates according to the
10354 current configuration.
10356 Usage: $0 [OPTIONS] [FILE]...
10358 -h, --help print this help, then exit
10359 -V, --version print version number and configuration settings, then exit
10360 -q, --quiet do not print progress messages
10361 -d, --debug don't remove temporary files
10362 --recheck update $as_me by reconfiguring in the same conditions
10363 --file=FILE[:TEMPLATE]
10364 instantiate the configuration file FILE
10365 --header=FILE[:TEMPLATE]
10366 instantiate the configuration header FILE
10368 Configuration files:
10369 $config_files
10371 Configuration headers:
10372 $config_headers
10374 Report bugs to <bug-autoconf@gnu.org>."
10376 _ACEOF
10377 cat >>$CONFIG_STATUS <<_ACEOF
10378 ac_cs_version="\\
10379 config.status
10380 configured by $0, generated by GNU Autoconf 2.61,
10381 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10383 Copyright (C) 2006 Free Software Foundation, Inc.
10384 This config.status script is free software; the Free Software Foundation
10385 gives unlimited permission to copy, distribute and modify it."
10387 ac_pwd='$ac_pwd'
10388 srcdir='$srcdir'
10389 _ACEOF
10391 cat >>$CONFIG_STATUS <<\_ACEOF
10392 # If no file are specified by the user, then we need to provide default
10393 # value. By we need to know if files were specified by the user.
10394 ac_need_defaults=:
10395 while test $# != 0
10397 case $1 in
10398 --*=*)
10399 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10400 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10401 ac_shift=:
10404 ac_option=$1
10405 ac_optarg=$2
10406 ac_shift=shift
10408 esac
10410 case $ac_option in
10411 # Handling of the options.
10412 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10413 ac_cs_recheck=: ;;
10414 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10415 echo "$ac_cs_version"; exit ;;
10416 --debug | --debu | --deb | --de | --d | -d )
10417 debug=: ;;
10418 --file | --fil | --fi | --f )
10419 $ac_shift
10420 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10421 ac_need_defaults=false;;
10422 --header | --heade | --head | --hea )
10423 $ac_shift
10424 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10425 ac_need_defaults=false;;
10426 --he | --h)
10427 # Conflict between --help and --header
10428 { echo "$as_me: error: ambiguous option: $1
10429 Try \`$0 --help' for more information." >&2
10430 { (exit 1); exit 1; }; };;
10431 --help | --hel | -h )
10432 echo "$ac_cs_usage"; exit ;;
10433 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10434 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10435 ac_cs_silent=: ;;
10437 # This is an error.
10438 -*) { echo "$as_me: error: unrecognized option: $1
10439 Try \`$0 --help' for more information." >&2
10440 { (exit 1); exit 1; }; } ;;
10442 *) ac_config_targets="$ac_config_targets $1"
10443 ac_need_defaults=false ;;
10445 esac
10446 shift
10447 done
10449 ac_configure_extra_args=
10451 if $ac_cs_silent; then
10452 exec 6>/dev/null
10453 ac_configure_extra_args="$ac_configure_extra_args --silent"
10456 _ACEOF
10457 cat >>$CONFIG_STATUS <<_ACEOF
10458 if \$ac_cs_recheck; then
10459 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10460 CONFIG_SHELL=$SHELL
10461 export CONFIG_SHELL
10462 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10465 _ACEOF
10466 cat >>$CONFIG_STATUS <<\_ACEOF
10467 exec 5>>config.log
10469 echo
10470 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10471 ## Running $as_me. ##
10472 _ASBOX
10473 echo "$ac_log"
10474 } >&5
10476 _ACEOF
10477 cat >>$CONFIG_STATUS <<_ACEOF
10478 _ACEOF
10480 cat >>$CONFIG_STATUS <<\_ACEOF
10482 # Handling of arguments.
10483 for ac_config_target in $ac_config_targets
10485 case $ac_config_target in
10486 "src/System/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
10487 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in" ;;
10488 "src/makefile") CONFIG_FILES="$CONFIG_FILES src/makefile:src/makefile.in" ;;
10489 "src/System/tm_configure.hpp") CONFIG_FILES="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
10490 "misc/admin/admin.makefile") CONFIG_FILES="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
10491 "misc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
10492 "misc/man/texmacs.1") CONFIG_FILES="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
10493 "misc/rpm/TeXmacs.spec") CONFIG_FILES="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
10494 "misc/scripts/fig2ps") CONFIG_FILES="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
10495 "misc/scripts/texmacs") CONFIG_FILES="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
10496 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
10497 "misc/bundle/Base.xcconfig") CONFIG_FILES="$CONFIG_FILES misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in" ;;
10499 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10500 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10501 { (exit 1); exit 1; }; };;
10502 esac
10503 done
10506 # If the user did not use the arguments to specify the items to instantiate,
10507 # then the envvar interface is used. Set only those that are not.
10508 # We use the long form for the default assignment because of an extremely
10509 # bizarre bug on SunOS 4.1.3.
10510 if $ac_need_defaults; then
10511 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10512 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10515 # Have a temporary directory for convenience. Make it in the build tree
10516 # simply because there is no reason against having it here, and in addition,
10517 # creating and moving files from /tmp can sometimes cause problems.
10518 # Hook for its removal unless debugging.
10519 # Note that there is a small window in which the directory will not be cleaned:
10520 # after its creation but before its name has been assigned to `$tmp'.
10521 $debug ||
10523 tmp=
10524 trap 'exit_status=$?
10525 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10527 trap '{ (exit 1); exit 1; }' 1 2 13 15
10529 # Create a (secure) tmp directory for tmp files.
10532 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10533 test -n "$tmp" && test -d "$tmp"
10534 } ||
10536 tmp=./conf$$-$RANDOM
10537 (umask 077 && mkdir "$tmp")
10538 } ||
10540 echo "$me: cannot create a temporary directory in ." >&2
10541 { (exit 1); exit 1; }
10545 # Set up the sed scripts for CONFIG_FILES section.
10548 # No need to generate the scripts if there are no CONFIG_FILES.
10549 # This happens for instance when ./config.status config.h
10550 if test -n "$CONFIG_FILES"; then
10552 _ACEOF
10556 ac_delim='%!_!# '
10557 for ac_last_try in false false false false false :; do
10558 cat >conf$$subs.sed <<_ACEOF
10559 SHELL!$SHELL$ac_delim
10560 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10561 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10562 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10563 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10564 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10565 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10566 exec_prefix!$exec_prefix$ac_delim
10567 prefix!$prefix$ac_delim
10568 program_transform_name!$program_transform_name$ac_delim
10569 bindir!$bindir$ac_delim
10570 sbindir!$sbindir$ac_delim
10571 libexecdir!$libexecdir$ac_delim
10572 datarootdir!$datarootdir$ac_delim
10573 datadir!$datadir$ac_delim
10574 sysconfdir!$sysconfdir$ac_delim
10575 sharedstatedir!$sharedstatedir$ac_delim
10576 localstatedir!$localstatedir$ac_delim
10577 includedir!$includedir$ac_delim
10578 oldincludedir!$oldincludedir$ac_delim
10579 docdir!$docdir$ac_delim
10580 infodir!$infodir$ac_delim
10581 htmldir!$htmldir$ac_delim
10582 dvidir!$dvidir$ac_delim
10583 pdfdir!$pdfdir$ac_delim
10584 psdir!$psdir$ac_delim
10585 libdir!$libdir$ac_delim
10586 localedir!$localedir$ac_delim
10587 mandir!$mandir$ac_delim
10588 DEFS!$DEFS$ac_delim
10589 ECHO_C!$ECHO_C$ac_delim
10590 ECHO_N!$ECHO_N$ac_delim
10591 ECHO_T!$ECHO_T$ac_delim
10592 LIBS!$LIBS$ac_delim
10593 build_alias!$build_alias$ac_delim
10594 host_alias!$host_alias$ac_delim
10595 target_alias!$target_alias$ac_delim
10596 PACKAGE!$PACKAGE$ac_delim
10597 DEVEL_VERSION!$DEVEL_VERSION$ac_delim
10598 DEVEL_RELEASE!$DEVEL_RELEASE$ac_delim
10599 STABLE_VERSION!$STABLE_VERSION$ac_delim
10600 STABLE_RELEASE!$STABLE_RELEASE$ac_delim
10601 CC!$CC$ac_delim
10602 CFLAGS!$CFLAGS$ac_delim
10603 LDFLAGS!$LDFLAGS$ac_delim
10604 CPPFLAGS!$CPPFLAGS$ac_delim
10605 ac_ct_CC!$ac_ct_CC$ac_delim
10606 EXEEXT!$EXEEXT$ac_delim
10607 OBJEXT!$OBJEXT$ac_delim
10608 CXX!$CXX$ac_delim
10609 CXXFLAGS!$CXXFLAGS$ac_delim
10610 ac_ct_CXX!$ac_ct_CXX$ac_delim
10611 GUILE_CFLAGS!$GUILE_CFLAGS$ac_delim
10612 GUILE_LDFLAGS!$GUILE_LDFLAGS$ac_delim
10613 CONFIG_GUILE_SERIAL!$CONFIG_GUILE_SERIAL$ac_delim
10614 CXXCPP!$CXXCPP$ac_delim
10615 GREP!$GREP$ac_delim
10616 EGREP!$EGREP$ac_delim
10617 XMKMF!$XMKMF$ac_delim
10618 X_CFLAGS!$X_CFLAGS$ac_delim
10619 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
10620 X_LIBS!$X_LIBS$ac_delim
10621 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
10622 CONFIG_BDL!$CONFIG_BDL$ac_delim
10623 CPP!$CPP$ac_delim
10624 ICONV_CFLAGS!$ICONV_CFLAGS$ac_delim
10625 ICONV_LDFLAGS!$ICONV_LDFLAGS$ac_delim
10626 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
10627 FREETYPE_LDFLAGS!$FREETYPE_LDFLAGS$ac_delim
10628 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
10629 CAIRO_LDFLAGS!$CAIRO_LDFLAGS$ac_delim
10630 IMLIB2_CFLAGS!$IMLIB2_CFLAGS$ac_delim
10631 IMLIB2_LDFLAGS!$IMLIB2_LDFLAGS$ac_delim
10632 AXEL_CFLAGS!$AXEL_CFLAGS$ac_delim
10633 AXEL_LDFLAGS!$AXEL_LDFLAGS$ac_delim
10634 build!$build$ac_delim
10635 build_cpu!$build_cpu$ac_delim
10636 build_vendor!$build_vendor$ac_delim
10637 build_os!$build_os$ac_delim
10638 host!$host$ac_delim
10639 host_cpu!$host_cpu$ac_delim
10640 host_vendor!$host_vendor$ac_delim
10641 host_os!$host_os$ac_delim
10642 CONFIG_EXPERIMENTAL!$CONFIG_EXPERIMENTAL$ac_delim
10643 CONFIG_MACOS!$CONFIG_MACOS$ac_delim
10644 QMAKE!$QMAKE$ac_delim
10645 MOC!$MOC$ac_delim
10646 UIC!$UIC$ac_delim
10647 RCC!$RCC$ac_delim
10648 QT_PATH!$QT_PATH$ac_delim
10649 TMPDIR!$TMPDIR$ac_delim
10650 QT_VERSION_MAJOR!$QT_VERSION_MAJOR$ac_delim
10651 QT_DEFINES!$QT_DEFINES$ac_delim
10652 QT_CFLAGS!$QT_CFLAGS$ac_delim
10653 QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
10654 QT_INCPATH!$QT_INCPATH$ac_delim
10655 QT_CPPFLAGS!$QT_CPPFLAGS$ac_delim
10656 _ACEOF
10658 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10659 break
10660 elif $ac_last_try; then
10661 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10662 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10663 { (exit 1); exit 1; }; }
10664 else
10665 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10667 done
10669 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10670 if test -n "$ac_eof"; then
10671 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10672 ac_eof=`expr $ac_eof + 1`
10675 cat >>$CONFIG_STATUS <<_ACEOF
10676 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10677 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10678 _ACEOF
10679 sed '
10680 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10681 s/^/s,@/; s/!/@,|#_!!_#|/
10684 s/'"$ac_delim"'$/,g/; t
10685 s/$/\\/; p
10686 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10687 ' >>$CONFIG_STATUS <conf$$subs.sed
10688 rm -f conf$$subs.sed
10689 cat >>$CONFIG_STATUS <<_ACEOF
10690 CEOF$ac_eof
10691 _ACEOF
10694 ac_delim='%!_!# '
10695 for ac_last_try in false false false false false :; do
10696 cat >conf$$subs.sed <<_ACEOF
10697 QT_LDFLAGS!$QT_LDFLAGS$ac_delim
10698 QT_LFLAGS!$QT_LFLAGS$ac_delim
10699 QT_LIBS!$QT_LIBS$ac_delim
10700 X11_CFLAGS!$X11_CFLAGS$ac_delim
10701 X11_LDFLAGS!$X11_LDFLAGS$ac_delim
10702 COCOA_CFLAGS!$COCOA_CFLAGS$ac_delim
10703 COCOA_LDFLAGS!$COCOA_LDFLAGS$ac_delim
10704 CONFIG_X11!$CONFIG_X11$ac_delim
10705 CONFIG_COCOA!$CONFIG_COCOA$ac_delim
10706 CONFIG_QT!$CONFIG_QT$ac_delim
10707 CONFIG_GUI!$CONFIG_GUI$ac_delim
10708 CONFIG_GUI_DEFINE!$CONFIG_GUI_DEFINE$ac_delim
10709 CONFIG_CXXDIALECT!$CONFIG_CXXDIALECT$ac_delim
10710 CONFIG_OS!$CONFIG_OS$ac_delim
10711 CONFIG_OS_SUFFIX!$CONFIG_OS_SUFFIX$ac_delim
10712 CONFIG_OS_COMPAT!$CONFIG_OS_COMPAT$ac_delim
10713 CONFIG_CXXWARNING!$CONFIG_CXXWARNING$ac_delim
10714 CONFIG_CXXTEMPLATE!$CONFIG_CXXTEMPLATE$ac_delim
10715 CONFIG_CXXOPTIMIZE!$CONFIG_CXXOPTIMIZE$ac_delim
10716 CONFIG_CXXDEBUG!$CONFIG_CXXDEBUG$ac_delim
10717 CONFIG_BFLAGS!$CONFIG_BFLAGS$ac_delim
10718 CONFIG_BSTATIC!$CONFIG_BSTATIC$ac_delim
10719 CONFIG_BSHARED!$CONFIG_BSHARED$ac_delim
10720 CONFIG_BPATH!$CONFIG_BPATH$ac_delim
10721 CONFIG_WORD_LENGTH!$CONFIG_WORD_LENGTH$ac_delim
10722 CONFIG_WORD_LENGTH_INC!$CONFIG_WORD_LENGTH_INC$ac_delim
10723 CONFIG_WORD_MASK!$CONFIG_WORD_MASK$ac_delim
10724 CONFIG_MAX_FAST!$CONFIG_MAX_FAST$ac_delim
10725 CONFIG_CXXFLAGS!$CONFIG_CXXFLAGS$ac_delim
10726 CONFIG_STD_SETENV!$CONFIG_STD_SETENV$ac_delim
10727 CONFIG_SO!$CONFIG_SO$ac_delim
10728 CONFIG_LIB_PATH!$CONFIG_LIB_PATH$ac_delim
10729 CONFIG_STRIP!$CONFIG_STRIP$ac_delim
10730 CONFIG_CHMOD!$CONFIG_CHMOD$ac_delim
10731 LDRT!$LDRT$ac_delim
10732 tmorig!$tmorig$ac_delim
10733 tmdir!$tmdir$ac_delim
10734 tmsrc!$tmsrc$ac_delim
10735 tmbin!$tmbin$ac_delim
10736 tmdata!$tmdata$ac_delim
10737 tmtgz!$tmtgz$ac_delim
10738 tmrpm!$tmrpm$ac_delim
10739 tmstgz!$tmstgz$ac_delim
10740 tmsrpm!$tmsrpm$ac_delim
10741 tmwin!$tmwin$ac_delim
10742 LIBOBJS!$LIBOBJS$ac_delim
10743 LTLIBOBJS!$LTLIBOBJS$ac_delim
10744 _ACEOF
10746 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 47; then
10747 break
10748 elif $ac_last_try; then
10749 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10750 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10751 { (exit 1); exit 1; }; }
10752 else
10753 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10755 done
10757 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10758 if test -n "$ac_eof"; then
10759 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10760 ac_eof=`expr $ac_eof + 1`
10763 cat >>$CONFIG_STATUS <<_ACEOF
10764 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10765 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10766 _ACEOF
10767 sed '
10768 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10769 s/^/s,@/; s/!/@,|#_!!_#|/
10772 s/'"$ac_delim"'$/,g/; t
10773 s/$/\\/; p
10774 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10775 ' >>$CONFIG_STATUS <conf$$subs.sed
10776 rm -f conf$$subs.sed
10777 cat >>$CONFIG_STATUS <<_ACEOF
10778 :end
10779 s/|#_!!_#|//g
10780 CEOF$ac_eof
10781 _ACEOF
10784 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10785 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10786 # trailing colons and then remove the whole line if VPATH becomes empty
10787 # (actually we leave an empty line to preserve line numbers).
10788 if test "x$srcdir" = x.; then
10789 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10790 s/:*\$(srcdir):*/:/
10791 s/:*\${srcdir}:*/:/
10792 s/:*@srcdir@:*/:/
10793 s/^\([^=]*=[ ]*\):*/\1/
10794 s/:*$//
10795 s/^[^=]*=[ ]*$//
10799 cat >>$CONFIG_STATUS <<\_ACEOF
10800 fi # test -n "$CONFIG_FILES"
10803 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
10805 case $ac_tag in
10806 :[FHLC]) ac_mode=$ac_tag; continue;;
10807 esac
10808 case $ac_mode$ac_tag in
10809 :[FHL]*:*);;
10810 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10811 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10812 { (exit 1); exit 1; }; };;
10813 :[FH]-) ac_tag=-:-;;
10814 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10815 esac
10816 ac_save_IFS=$IFS
10817 IFS=:
10818 set x $ac_tag
10819 IFS=$ac_save_IFS
10820 shift
10821 ac_file=$1
10822 shift
10824 case $ac_mode in
10825 :L) ac_source=$1;;
10826 :[FH])
10827 ac_file_inputs=
10828 for ac_f
10830 case $ac_f in
10831 -) ac_f="$tmp/stdin";;
10832 *) # Look for the file first in the build tree, then in the source tree
10833 # (if the path is not absolute). The absolute path cannot be DOS-style,
10834 # because $ac_f cannot contain `:'.
10835 test -f "$ac_f" ||
10836 case $ac_f in
10837 [\\/$]*) false;;
10838 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10839 esac ||
10840 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10841 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10842 { (exit 1); exit 1; }; };;
10843 esac
10844 ac_file_inputs="$ac_file_inputs $ac_f"
10845 done
10847 # Let's still pretend it is `configure' which instantiates (i.e., don't
10848 # use $as_me), people would be surprised to read:
10849 # /* config.h. Generated by config.status. */
10850 configure_input="Generated from "`IFS=:
10851 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10852 if test x"$ac_file" != x-; then
10853 configure_input="$ac_file. $configure_input"
10854 { echo "$as_me:$LINENO: creating $ac_file" >&5
10855 echo "$as_me: creating $ac_file" >&6;}
10858 case $ac_tag in
10859 *:-:* | *:-) cat >"$tmp/stdin";;
10860 esac
10862 esac
10864 ac_dir=`$as_dirname -- "$ac_file" ||
10865 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10866 X"$ac_file" : 'X\(//\)[^/]' \| \
10867 X"$ac_file" : 'X\(//\)$' \| \
10868 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10869 echo X"$ac_file" |
10870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10871 s//\1/
10874 /^X\(\/\/\)[^/].*/{
10875 s//\1/
10878 /^X\(\/\/\)$/{
10879 s//\1/
10882 /^X\(\/\).*/{
10883 s//\1/
10886 s/.*/./; q'`
10887 { as_dir="$ac_dir"
10888 case $as_dir in #(
10889 -*) as_dir=./$as_dir;;
10890 esac
10891 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10892 as_dirs=
10893 while :; do
10894 case $as_dir in #(
10895 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10896 *) as_qdir=$as_dir;;
10897 esac
10898 as_dirs="'$as_qdir' $as_dirs"
10899 as_dir=`$as_dirname -- "$as_dir" ||
10900 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10901 X"$as_dir" : 'X\(//\)[^/]' \| \
10902 X"$as_dir" : 'X\(//\)$' \| \
10903 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10904 echo X"$as_dir" |
10905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10906 s//\1/
10909 /^X\(\/\/\)[^/].*/{
10910 s//\1/
10913 /^X\(\/\/\)$/{
10914 s//\1/
10917 /^X\(\/\).*/{
10918 s//\1/
10921 s/.*/./; q'`
10922 test -d "$as_dir" && break
10923 done
10924 test -z "$as_dirs" || eval "mkdir $as_dirs"
10925 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10926 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10927 { (exit 1); exit 1; }; }; }
10928 ac_builddir=.
10930 case "$ac_dir" in
10931 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10933 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10934 # A ".." for each directory in $ac_dir_suffix.
10935 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10936 case $ac_top_builddir_sub in
10937 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10938 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10939 esac ;;
10940 esac
10941 ac_abs_top_builddir=$ac_pwd
10942 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10943 # for backward compatibility:
10944 ac_top_builddir=$ac_top_build_prefix
10946 case $srcdir in
10947 .) # We are building in place.
10948 ac_srcdir=.
10949 ac_top_srcdir=$ac_top_builddir_sub
10950 ac_abs_top_srcdir=$ac_pwd ;;
10951 [\\/]* | ?:[\\/]* ) # Absolute name.
10952 ac_srcdir=$srcdir$ac_dir_suffix;
10953 ac_top_srcdir=$srcdir
10954 ac_abs_top_srcdir=$srcdir ;;
10955 *) # Relative name.
10956 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10957 ac_top_srcdir=$ac_top_build_prefix$srcdir
10958 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10959 esac
10960 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10963 case $ac_mode in
10966 # CONFIG_FILE
10969 _ACEOF
10971 cat >>$CONFIG_STATUS <<\_ACEOF
10972 # If the template does not know about datarootdir, expand it.
10973 # FIXME: This hack should be removed a few years after 2.60.
10974 ac_datarootdir_hack=; ac_datarootdir_seen=
10976 case `sed -n '/datarootdir/ {
10980 /@datadir@/p
10981 /@docdir@/p
10982 /@infodir@/p
10983 /@localedir@/p
10984 /@mandir@/p
10985 ' $ac_file_inputs` in
10986 *datarootdir*) ac_datarootdir_seen=yes;;
10987 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10988 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10989 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10990 _ACEOF
10991 cat >>$CONFIG_STATUS <<_ACEOF
10992 ac_datarootdir_hack='
10993 s&@datadir@&$datadir&g
10994 s&@docdir@&$docdir&g
10995 s&@infodir@&$infodir&g
10996 s&@localedir@&$localedir&g
10997 s&@mandir@&$mandir&g
10998 s&\\\${datarootdir}&$datarootdir&g' ;;
10999 esac
11000 _ACEOF
11002 # Neutralize VPATH when `$srcdir' = `.'.
11003 # Shell code in configure.ac might set extrasub.
11004 # FIXME: do we really want to maintain this feature?
11005 cat >>$CONFIG_STATUS <<_ACEOF
11006 sed "$ac_vpsub
11007 $extrasub
11008 _ACEOF
11009 cat >>$CONFIG_STATUS <<\_ACEOF
11011 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11012 s&@configure_input@&$configure_input&;t t
11013 s&@top_builddir@&$ac_top_builddir_sub&;t t
11014 s&@srcdir@&$ac_srcdir&;t t
11015 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11016 s&@top_srcdir@&$ac_top_srcdir&;t t
11017 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11018 s&@builddir@&$ac_builddir&;t t
11019 s&@abs_builddir@&$ac_abs_builddir&;t t
11020 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11021 $ac_datarootdir_hack
11022 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11024 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11025 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11026 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11027 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11028 which seems to be undefined. Please make sure it is defined." >&5
11029 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11030 which seems to be undefined. Please make sure it is defined." >&2;}
11032 rm -f "$tmp/stdin"
11033 case $ac_file in
11034 -) cat "$tmp/out"; rm -f "$tmp/out";;
11035 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11036 esac
11040 # CONFIG_HEADER
11042 _ACEOF
11044 # Transform confdefs.h into a sed script `conftest.defines', that
11045 # substitutes the proper values into config.h.in to produce config.h.
11046 rm -f conftest.defines conftest.tail
11047 # First, append a space to every undef/define line, to ease matching.
11048 echo 's/$/ /' >conftest.defines
11049 # Then, protect against being on the right side of a sed subst, or in
11050 # an unquoted here document, in config.status. If some macros were
11051 # called several times there might be several #defines for the same
11052 # symbol, which is useless. But do not sort them, since the last
11053 # AC_DEFINE must be honored.
11054 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11055 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11056 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11057 # PARAMS is the parameter list in the macro definition--in most cases, it's
11058 # just an empty string.
11059 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11060 ac_dB='\\)[ (].*,\\1define\\2'
11061 ac_dC=' '
11062 ac_dD=' ,'
11064 uniq confdefs.h |
11065 sed -n '
11066 t rset
11067 :rset
11068 s/^[ ]*#[ ]*define[ ][ ]*//
11069 t ok
11072 s/[\\&,]/\\&/g
11073 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11074 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11075 ' >>conftest.defines
11077 # Remove the space that was appended to ease matching.
11078 # Then replace #undef with comments. This is necessary, for
11079 # example, in the case of _POSIX_SOURCE, which is predefined and required
11080 # on some systems where configure will not decide to define it.
11081 # (The regexp can be short, since the line contains either #define or #undef.)
11082 echo 's/ $//
11083 s,^[ #]*u.*,/* & */,' >>conftest.defines
11085 # Break up conftest.defines:
11086 ac_max_sed_lines=50
11088 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11089 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11090 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11091 # et cetera.
11092 ac_in='$ac_file_inputs'
11093 ac_out='"$tmp/out1"'
11094 ac_nxt='"$tmp/out2"'
11096 while :
11098 # Write a here document:
11099 cat >>$CONFIG_STATUS <<_ACEOF
11100 # First, check the format of the line:
11101 cat >"\$tmp/defines.sed" <<\\CEOF
11102 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11103 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11105 :def
11106 _ACEOF
11107 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11108 echo 'CEOF
11109 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11110 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11111 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11112 grep . conftest.tail >/dev/null || break
11113 rm -f conftest.defines
11114 mv conftest.tail conftest.defines
11115 done
11116 rm -f conftest.defines conftest.tail
11118 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11119 cat >>$CONFIG_STATUS <<\_ACEOF
11120 if test x"$ac_file" != x-; then
11121 echo "/* $configure_input */" >"$tmp/config.h"
11122 cat "$ac_result" >>"$tmp/config.h"
11123 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11124 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11125 echo "$as_me: $ac_file is unchanged" >&6;}
11126 else
11127 rm -f $ac_file
11128 mv "$tmp/config.h" $ac_file
11130 else
11131 echo "/* $configure_input */"
11132 cat "$ac_result"
11134 rm -f "$tmp/out12"
11138 esac
11140 done # for ac_tag
11143 { (exit 0); exit 0; }
11144 _ACEOF
11145 chmod +x $CONFIG_STATUS
11146 ac_clean_files=$ac_clean_files_save
11149 # configure is writing to config.log, and then calls config.status.
11150 # config.status does its own redirection, appending to config.log.
11151 # Unfortunately, on DOS this fails, as config.log is still kept open
11152 # by configure, so config.status won't be able to write to it; its
11153 # output is simply discarded. So we exec the FD to /dev/null,
11154 # effectively closing config.log, so it can be properly (re)opened and
11155 # appended to by config.status. When coming back to configure, we
11156 # need to make the FD available again.
11157 if test "$no_create" != yes; then
11158 ac_cs_success=:
11159 ac_config_status_args=
11160 test "$silent" = yes &&
11161 ac_config_status_args="$ac_config_status_args --quiet"
11162 exec 5>/dev/null
11163 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11164 exec 5>>config.log
11165 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11166 # would make configure fail if this is the last instruction.
11167 $ac_cs_success || { (exit 1); exit 1; }