2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 # Factoring default headers for most tests.
555 ac_includes_default
="\
557 #ifdef HAVE_SYS_TYPES_H
558 # include <sys/types.h>
560 #ifdef HAVE_SYS_STAT_H
561 # include <sys/stat.h>
567 # ifdef HAVE_STDLIB_H
572 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 #ifdef HAVE_STRINGS_H
578 # include <strings.h>
580 #ifdef HAVE_INTTYPES_H
581 # include <inttypes.h>
590 ac_subst_vars
='LTLIBOBJS
602 CONFIG_NATIVE_ARCH_TAG
612 CONFIG_WORD_LENGTH_INC
731 program_transform_name
744 enable_option_checking
754 enable_macosx_extensions
764 ac_precious_vars
='build_alias
781 # Initialize some variables set by options.
783 ac_init_version
=false
784 ac_unrecognized_opts
=
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
795 program_transform_name
=s
,x
,x
,
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir
='${exec_prefix}/bin'
810 sbindir
='${exec_prefix}/sbin'
811 libexecdir
='${exec_prefix}/libexec'
812 datarootdir
='${prefix}/share'
813 datadir
='${datarootdir}'
814 sysconfdir
='${prefix}/etc'
815 sharedstatedir
='${prefix}/com'
816 localstatedir
='${prefix}/var'
817 includedir
='${prefix}/include'
818 oldincludedir
='/usr/include'
819 docdir
='${datarootdir}/doc/${PACKAGE}'
820 infodir
='${datarootdir}/info'
825 libdir
='${exec_prefix}/lib'
826 localedir
='${datarootdir}/locale'
827 mandir
='${datarootdir}/man'
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\
$ac_option
841 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 # Accept the important Cygnus configure options, so we can diagnose typos.
847 case $ac_dashdash$ac_option in
851 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
853 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
856 -build |
--build |
--buil |
--bui |
--bu)
857 ac_prev
=build_alias
;;
858 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
859 build_alias
=$ac_optarg ;;
861 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
862 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
863 ac_prev
=cache_file
;;
864 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
865 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
866 cache_file
=$ac_optarg ;;
869 cache_file
=config.cache
;;
871 -datadir |
--datadir |
--datadi |
--datad)
873 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
874 datadir
=$ac_optarg ;;
876 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
877 |
--dataroo |
--dataro |
--datar)
878 ac_prev
=datarootdir
;;
879 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
880 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
881 datarootdir
=$ac_optarg ;;
883 -disable-* |
--disable-*)
884 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
887 as_fn_error
"invalid feature name: $ac_useropt"
888 ac_useropt_orig
=$ac_useropt
889 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
894 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep
=', ';;
897 eval enable_
$ac_useropt=no
;;
899 -docdir |
--docdir |
--docdi |
--doc |
--do)
901 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
904 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
906 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
909 -enable-* |
--enable-*)
910 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
913 as_fn_error
"invalid feature name: $ac_useropt"
914 ac_useropt_orig
=$ac_useropt
915 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
920 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep
=', ';;
923 eval enable_
$ac_useropt=\
$ac_optarg ;;
925 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
926 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
927 |
--exec |
--exe |
--ex)
928 ac_prev
=exec_prefix
;;
929 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
930 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
931 |
--exec=* |
--exe=* |
--ex=*)
932 exec_prefix
=$ac_optarg ;;
934 -gas |
--gas |
--ga |
--g)
935 # Obsolete; use --with-gas.
938 -help |
--help |
--hel |
--he |
-h)
940 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
941 ac_init_help
=recursive
;;
942 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
943 ac_init_help
=short
;;
945 -host |
--host |
--hos |
--ho)
946 ac_prev
=host_alias
;;
947 -host=* |
--host=* |
--hos=* |
--ho=*)
948 host_alias
=$ac_optarg ;;
950 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
952 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
954 htmldir
=$ac_optarg ;;
956 -includedir |
--includedir |
--includedi |
--included |
--include \
957 |
--includ |
--inclu |
--incl |
--inc)
958 ac_prev
=includedir
;;
959 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
960 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
961 includedir
=$ac_optarg ;;
963 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
965 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
966 infodir
=$ac_optarg ;;
968 -libdir |
--libdir |
--libdi |
--libd)
970 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
973 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
974 |
--libexe |
--libex |
--libe)
975 ac_prev
=libexecdir
;;
976 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
977 |
--libexe=* |
--libex=* |
--libe=*)
978 libexecdir
=$ac_optarg ;;
980 -localedir |
--localedir |
--localedi |
--localed |
--locale)
982 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
983 localedir
=$ac_optarg ;;
985 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
986 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
987 ac_prev
=localstatedir
;;
988 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
989 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
990 localstatedir
=$ac_optarg ;;
992 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
994 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
998 # Obsolete; use --without-fp.
1001 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1002 |
--no-cr |
--no-c |
-n)
1005 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1006 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1009 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1010 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1011 |
--oldin |
--oldi |
--old |
--ol |
--o)
1012 ac_prev
=oldincludedir
;;
1013 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1014 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1015 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1016 oldincludedir
=$ac_optarg ;;
1018 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1020 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1021 prefix
=$ac_optarg ;;
1023 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1024 |
--program-pre |
--program-pr |
--program-p)
1025 ac_prev
=program_prefix
;;
1026 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1027 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1028 program_prefix
=$ac_optarg ;;
1030 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1031 |
--program-suf |
--program-su |
--program-s)
1032 ac_prev
=program_suffix
;;
1033 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1034 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1035 program_suffix
=$ac_optarg ;;
1037 -program-transform-name |
--program-transform-name \
1038 |
--program-transform-nam |
--program-transform-na \
1039 |
--program-transform-n |
--program-transform- \
1040 |
--program-transform |
--program-transfor \
1041 |
--program-transfo |
--program-transf \
1042 |
--program-trans |
--program-tran \
1043 |
--progr-tra |
--program-tr |
--program-t)
1044 ac_prev
=program_transform_name
;;
1045 -program-transform-name=* |
--program-transform-name=* \
1046 |
--program-transform-nam=* |
--program-transform-na=* \
1047 |
--program-transform-n=* |
--program-transform-=* \
1048 |
--program-transform=* |
--program-transfor=* \
1049 |
--program-transfo=* |
--program-transf=* \
1050 |
--program-trans=* |
--program-tran=* \
1051 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1052 program_transform_name
=$ac_optarg ;;
1054 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1056 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1057 pdfdir
=$ac_optarg ;;
1059 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1061 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1064 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1065 |
-silent |
--silent |
--silen |
--sile |
--sil)
1068 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1070 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1072 sbindir
=$ac_optarg ;;
1074 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1075 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1076 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1078 ac_prev
=sharedstatedir
;;
1079 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1080 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1081 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1083 sharedstatedir
=$ac_optarg ;;
1085 -site |
--site |
--sit)
1087 -site=* |
--site=* |
--sit=*)
1090 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1092 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1093 srcdir
=$ac_optarg ;;
1095 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1096 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1097 ac_prev
=sysconfdir
;;
1098 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1099 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1100 sysconfdir
=$ac_optarg ;;
1102 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1103 ac_prev
=target_alias
;;
1104 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1105 target_alias
=$ac_optarg ;;
1107 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1110 -version |
--version |
--versio |
--versi |
--vers |
-V)
1111 ac_init_version
=: ;;
1114 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1117 as_fn_error
"invalid package name: $ac_useropt"
1118 ac_useropt_orig
=$ac_useropt
1119 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1124 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep
=', ';;
1127 eval with_
$ac_useropt=\
$ac_optarg ;;
1129 -without-* |
--without-*)
1130 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1133 as_fn_error
"invalid package name: $ac_useropt"
1134 ac_useropt_orig
=$ac_useropt
1135 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1140 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep
=', ';;
1143 eval with_
$ac_useropt=no
;;
1146 # Obsolete; use --with-x.
1149 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1150 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1151 ac_prev
=x_includes
;;
1152 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1153 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1154 x_includes
=$ac_optarg ;;
1156 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1157 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1158 ac_prev
=x_libraries
;;
1159 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1160 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1161 x_libraries
=$ac_optarg ;;
1163 -*) as_fn_error
"unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information."
1168 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1172 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1174 eval $ac_envvar=\
$ac_optarg
1175 export $ac_envvar ;;
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1188 if test -n "$ac_prev"; then
1189 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error
"missing argument to $ac_option"
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1196 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 # Check all directory arguments for consistency.
1202 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val
=\$
$ac_var
1208 # Remove trailing slashes.
1211 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\
$ac_val;;
1214 # Be sure to have absolute directory names.
1216 [\\/$
]* | ?
:[\\/]* ) continue;;
1217 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1219 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1227 target
=$target_alias
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x
; then
1231 if test "x$build_alias" = x
; then
1232 cross_compiling
=maybe
1233 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used." >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1241 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1243 test "$silent" = yes && exec 6>/dev
/null
1246 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di
=`ls -di .` &&
1248 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error
"working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error
"pwd does not report name of working directory"
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted
=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir
=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1286 ac_srcdir_defaulted
=no
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1290 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1292 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1304 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 for ac_var
in $ac_precious_vars; do
1307 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1309 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1314 # Report the --help message.
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1320 \`configure' configures this package to adapt to many kinds of systems.
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1327 Defaults for the options are specified in brackets.
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1351 For better control, use the options below.
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1378 --x-includes=DIR X include files are
in DIR
1379 --x-libraries=DIR X library files are
in DIR
1382 --build=BUILD configure
for building on BUILD
[guessed
]
1383 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1387 if test -n "$ac_init_help"; then
1392 --disable-option-checking ignore unrecognized
--enable/--with options
1393 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1394 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1395 --disable-fastalloc omit fast allocator
for small objects
1396 --enable-experimental support new style rewriting code
1397 --enable-macosx-extensions support new style rewriting code
1398 --enable-pdf-renderer use experimental PDF renderer
for pdf
export
1399 --enable-qt replace X11 by Qt interface
1400 --enable-cocoa replace X11 by Cocoa interface
1401 --enable-debug=ARG
install a debugging
enable executable
-ggdb
1402 --enable-assert exit on failed assertions
in code
1403 --enable-warnings print warning messages during compilation
1404 --enable-optimize=ARG compile with optimizations guessed
1407 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1408 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1409 --with-x use the X Window System
1410 --with-iconv=DIR where to
find iconv system
1411 --with-freetype=ARG with freetype support ARG
=linked
1412 --with-cairo=ARG with cairo support ARG
=no
1413 --with-imlib2=ARG with imlib2 support ARG
=no
1414 --with-axel=ARG with axel support ARG
=no
1415 --with-gs=ARG with ghostscript support ARG
=yes
1416 --with-qt Path to Qt
[Look
in PATH and
/usr
/local
/Trolltech
]
1418 Some influential environment variables
:
1419 CC C compiler
command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1422 nonstandard directory
<lib dir
>
1423 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1424 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1425 you have headers
in a nonstandard directory
<include dir
>
1426 CXX C
++ compiler
command
1427 CXXFLAGS C
++ compiler flags
1428 CXXCPP C
++ preprocessor
1429 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1431 TMPDIR A temporary directory with
write access
[/tmp
]
1433 Use these variables to override the choices made by
`configure' or to help
1434 it to find libraries and programs with nonstandard names/locations.
1436 Report bugs to the package provider.
1441 if test "$ac_init_help" = "recursive"; then
1442 # If there are subdirs, report their specific --help.
1443 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1444 test -d "$ac_dir" ||
1445 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1453 # A ".." for each directory in $ac_dir_suffix.
1454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1455 case $ac_top_builddir_sub in
1456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460 ac_abs_top_builddir=$ac_pwd
1461 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1462 # for backward compatibility:
1463 ac_top_builddir=$ac_top_build_prefix
1466 .) # We are building in place.
1468 ac_top_srcdir=$ac_top_builddir_sub
1469 ac_abs_top_srcdir=$ac_pwd ;;
1470 [\\/]* | ?:[\\/]* ) # Absolute name.
1471 ac_srcdir=$srcdir$ac_dir_suffix;
1472 ac_top_srcdir=$srcdir
1473 ac_abs_top_srcdir=$srcdir ;;
1475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1476 ac_top_srcdir=$ac_top_build_prefix$srcdir
1477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481 cd "$ac_dir" || { ac_status=$?; continue; }
1482 # Check for guested configure.
1483 if test -f "$ac_srcdir/configure.gnu"; then
1485 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1486 elif test -f "$ac_srcdir/configure"; then
1488 $SHELL "$ac_srcdir/configure" --help=recursive
1490 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492 cd "$ac_pwd" || { ac_status=$?; break; }
1496 test -n "$ac_init_help" && exit $ac_status
1497 if $ac_init_version; then
1500 generated by GNU Autoconf 2.64
1502 Copyright (C) 2009 Free Software Foundation, Inc.
1503 This configure script is free software; the Free Software Foundation
1504 gives unlimited permission to copy, distribute and modify it.
1509 ## ------------------------ ##
1510 ## Autoconf initialization. ##
1511 ## ------------------------ ##
1513 # ac_fn_c_try_compile LINENO
1514 # --------------------------
1515 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1516 ac_fn_c_try_compile ()
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 rm -f conftest.$ac_objext
1520 if { { ac_try="$ac_compile"
1522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1523 *) ac_try_echo
=$ac_try;;
1525 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526 $as_echo "$ac_try_echo"; } >&5
1527 (eval "$ac_compile") 2>conftest.err
1529 if test -s conftest.err
; then
1530 grep -v '^ *+' conftest.err
>conftest.er1
1531 cat conftest.er1
>&5
1532 mv -f conftest.er1 conftest.err
1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535 test $ac_status = 0; } && {
1536 test -z "$ac_c_werror_flag" ||
1537 test ! -s conftest.err
1538 } && test -s conftest.
$ac_objext; then :
1541 $as_echo "$as_me: failed program was:" >&5
1542 sed 's/^/| /' conftest.
$ac_ext >&5
1546 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1549 } # ac_fn_c_try_compile
1551 # ac_fn_cxx_try_compile LINENO
1552 # ----------------------------
1553 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_cxx_try_compile
()
1556 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1557 rm -f conftest.
$ac_objext
1558 if { { ac_try
="$ac_compile"
1560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_compile") 2>conftest.err
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_cxx_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest.$ac_objext; then :
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1584 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1587 } # ac_fn_cxx_try_compile
1589 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1590 # ---------------------------------------------
1591 # Tests whether TYPE exists after having included INCLUDES, setting cache
1592 # variable VAR accordingly.
1593 ac_fn_cxx_check_type ()
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1597 $as_echo_n "checking for $2... " >&6; }
1598 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1599 $as_echo_n "(cached) " >&6
1602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h. */
1614 if ac_fn_cxx_try_compile "$LINENO"; then :
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1627 if ac_fn_cxx_try_compile "$LINENO"; then :
1632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1641 } # ac_fn_cxx_check_type
1643 # ac_fn_cxx_try_cpp LINENO
1644 # ------------------------
1645 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_cxx_try_cpp ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_cpp conftest.$ac_ext"
1651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1652 *) ac_try_echo
=$ac_try;;
1654 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1658 if test -s conftest.err
; then
1659 grep -v '^ *+' conftest.err
>conftest.er1
1660 cat conftest.er1
>&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } >/dev
/null
&& {
1665 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1666 test ! -s conftest.err
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.
$ac_ext >&5
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1678 } # ac_fn_cxx_try_cpp
1680 # ac_fn_cxx_try_run LINENO
1681 # ------------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683 # that executables *can* be run.
1684 ac_fn_cxx_try_run
()
1686 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1687 if { { ac_try
="$ac_link"
1689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>&5
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698 { { case "(($ac_try" in
1699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1700 *) ac_try_echo
=$ac_try;;
1702 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_try") 2>&5
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; }; }; then :
1710 $as_echo "$as_me: program exited with status $ac_status" >&5
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.
$ac_ext >&5
1714 ac_retval
=$ac_status
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1720 } # ac_fn_cxx_try_run
1722 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1723 # ---------------------------------------------------------
1724 # Tests whether HEADER exists and can be compiled using the include files in
1725 # INCLUDES, setting the cache variable VAR accordingly.
1726 ac_fn_cxx_check_header_compile
()
1728 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 $as_echo_n "checking for $2... " >&6; }
1731 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1732 $as_echo_n "(cached) " >&6
1734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1739 if ac_fn_cxx_try_compile
"$LINENO"; then :
1744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1751 } # ac_fn_cxx_check_header_compile
1753 # ac_fn_cxx_try_link LINENO
1754 # -------------------------
1755 # Try to link conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_cxx_try_link
()
1758 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1759 rm -f conftest.
$ac_objext conftest
$ac_exeext
1760 if { { ac_try
="$ac_link"
1762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_link") 2>conftest.err
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && {
1776 test -z "$ac_cxx_werror_flag" ||
1777 test ! -s conftest.err
1778 } && test -s conftest$ac_exeext && {
1779 test "$cross_compiling" = yes ||
1780 $as_test_x conftest$ac_exeext
1784 $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1789 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1790 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1791 # interfere with the next link command; also delete a directory that is
1792 # left behind by Apple's compiler. We do this before executing the actions.
1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1797 } # ac_fn_cxx_try_link
1799 # ac_fn_cxx_check_func LINENO FUNC VAR
1800 # ------------------------------------
1801 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1802 ac_fn_cxx_check_func ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1808 $as_echo_n "(cached) " >&6
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1812 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1814 #define $2 innocuous_$2
1816 /* System header to define __stub macros and hopefully few prototypes,
1817 which can conflict with char $2 (); below.
1818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1819 <limits.h> exists even on freestanding compilers. */
1822 # include <limits.h>
1824 # include <assert.h>
1829 /* Override any GCC internal prototype to avoid an error.
1830 Use char because int might match the return type of a GCC
1831 builtin and then its argument prototype would still apply. */
1836 /* The GNU C library defines this for functions which it implements
1837 to always fail with ENOSYS. Some functions are actually named
1838 something starting with __ and the normal name is an alias. */
1839 #if defined __stub_$2 || defined __stub___$2
1851 if ac_fn_cxx_try_link "$LINENO"; then :
1856 rm -f core conftest.err conftest.$ac_objext \
1857 conftest$ac_exeext conftest.$ac_ext
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 } # ac_fn_cxx_check_func
1866 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1867 # ---------------------------------------------------------
1868 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1869 # the include files in INCLUDES and setting the cache variable VAR
1871 ac_fn_cxx_check_header_mongrel ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1878 $as_echo_n "(cached) " >&6
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1884 # Is the header compilable?
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1886 $as_echo_n "checking $2 usability... " >&6; }
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1892 if ac_fn_cxx_try_compile "$LINENO"; then :
1893 ac_header_compiler=yes
1895 ac_header_compiler=no
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1899 $as_echo "$ac_header_compiler" >&6; }
1901 # Is the header present?
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1903 $as_echo_n "checking $2 presence... " >&6; }
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1908 if ac_fn_cxx_try_cpp "$LINENO"; then :
1909 ac_header_preproc=yes
1911 ac_header_preproc=no
1913 rm -f conftest.err conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1915 $as_echo "$ac_header_preproc" >&6; }
1917 # So? What about this header?
1918 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1921 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1923 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1927 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1929 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1931 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1933 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1935 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1941 $as_echo_n "(cached) " >&6
1943 eval "$3=\$ac_header_compiler"
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951 } # ac_fn_cxx_check_header_mongrel
1953 # ac_fn_c_try_cpp LINENO
1954 # ----------------------
1955 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 if { { ac_try="$ac_cpp conftest.$ac_ext"
1961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1962 *) ac_try_echo
=$ac_try;;
1964 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1968 if test -s conftest.err
; then
1969 grep -v '^ *+' conftest.err
>conftest.er1
1970 cat conftest.er1
>&5
1971 mv -f conftest.er1 conftest.err
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } >/dev
/null
&& {
1975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1976 test ! -s conftest.err
1980 $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.
$ac_ext >&5
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1990 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1991 # -------------------------------------------------------
1992 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1993 # the include files in INCLUDES and setting the cache variable VAR
1995 ac_fn_c_check_header_mongrel
()
1997 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1998 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000 $as_echo_n "checking for $2... " >&6; }
2001 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2002 $as_echo_n "(cached) " >&6
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2008 # Is the header compilable?
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2010 $as_echo_n "checking $2 usability... " >&6; }
2011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2016 if ac_fn_c_try_compile
"$LINENO"; then :
2017 ac_header_compiler
=yes
2019 ac_header_compiler
=no
2021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2023 $as_echo "$ac_header_compiler" >&6; }
2025 # Is the header present?
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2027 $as_echo_n "checking $2 presence... " >&6; }
2028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2032 if ac_fn_c_try_cpp
"$LINENO"; then :
2033 ac_header_preproc
=yes
2035 ac_header_preproc
=no
2037 rm -f conftest.err conftest.
$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2039 $as_echo "$ac_header_preproc" >&6; }
2041 # So? What about this header?
2042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2045 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2047 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2051 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2053 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2055 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2057 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2059 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2065 $as_echo_n "(cached) " >&6
2067 eval "$3=\$ac_header_compiler"
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2075 } # ac_fn_c_check_header_mongrel
2077 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2078 # ----------------------------------------------
2079 # Tries to find the compile-time value of EXPR in a program that includes
2080 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2082 ac_fn_cxx_compute_int
()
2084 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2085 if test "$cross_compiling" = yes; then
2086 # Depending upon the size, compute the lo and hi bounds.
2087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2093 static int test_array [1 - 2 * !(($2) >= 0)];
2100 if ac_fn_cxx_try_compile
"$LINENO"; then :
2103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2109 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2116 if ac_fn_cxx_try_compile
"$LINENO"; then :
2117 ac_hi
=$ac_mid; break
2119 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2120 if test $ac_lo -le $ac_mid; then
2124 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2135 static int test_array [1 - 2 * !(($2) < 0)];
2142 if ac_fn_cxx_try_compile
"$LINENO"; then :
2145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2151 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2158 if ac_fn_cxx_try_compile
"$LINENO"; then :
2159 ac_lo
=$ac_mid; break
2161 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2162 if test $ac_mid -le $ac_hi; then
2166 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2176 # Binary search between lo and hi bounds.
2177 while test "x$ac_lo" != "x$ac_hi"; do
2178 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2185 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2192 if ac_fn_cxx_try_compile
"$LINENO"; then :
2195 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2200 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2207 static long int longval () { return $2; }
2208 static unsigned long int ulongval () { return $2; }
2215 FILE *f = fopen ("conftest.val", "w");
2220 long int i = longval ();
2223 fprintf (f, "%ld", i);
2227 unsigned long int i = ulongval ();
2230 fprintf (f, "%lu", i);
2232 /* Do not output a trailing newline, as this causes \r\n confusion
2233 on some platforms. */
2234 return ferror (f) || fclose (f) != 0;
2240 if ac_fn_cxx_try_run
"$LINENO"; then :
2241 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2245 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2246 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2250 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2253 } # ac_fn_cxx_compute_int
2254 cat >config.log
<<_ACEOF
2255 This file contains any messages produced by compilers while
2256 running configure, to aid debugging if configure makes a mistake.
2258 It was created by $as_me, which was
2259 generated by GNU Autoconf 2.64. Invocation command line was
2271 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2272 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2273 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2274 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2275 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2277 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2278 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2280 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2281 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2282 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2283 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2284 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2285 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2286 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2294 test -z "$as_dir" && as_dir
=.
2295 $as_echo "PATH: $as_dir"
2311 # Keep a trace of the command line.
2312 # Strip out --no-create and --no-recursion so they do not pile up.
2313 # Strip out --silent because we don't want to record it for future runs.
2314 # Also quote any args containing shell meta-characters.
2315 # Make two passes to allow for proper duplicate-argument suppression.
2319 ac_must_keep_next
=false
2325 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2326 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2327 |
-silent |
--silent |
--silen |
--sile |
--sil)
2330 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2333 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2335 as_fn_append ac_configure_args1
" '$ac_arg'"
2336 if test $ac_must_keep_next = true
; then
2337 ac_must_keep_next
=false
# Got value, back to normal.
2340 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2341 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2342 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2343 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2344 case "$ac_configure_args0 " in
2345 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2348 -* ) ac_must_keep_next
=true
;;
2351 as_fn_append ac_configure_args
" '$ac_arg'"
2356 { ac_configure_args0
=; unset ac_configure_args0
;}
2357 { ac_configure_args1
=; unset ac_configure_args1
;}
2359 # When interrupted or exit'd, cleanup temporary files, and complete
2360 # config.log. We remove comments because anyway the quotes in there
2361 # would cause problems or look ugly.
2362 # WARNING: Use '\'' to represent an apostrophe within the trap.
2363 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2364 trap 'exit_status=$?
2365 # Save into config.log some information that might help in debugging.
2370 ## ---------------- ##
2371 ## Cache variables. ##
2372 ## ---------------- ##
2375 # The following way of writing the cache mishandles newlines in values,
2377 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2378 eval ac_val=\$$ac_var
2382 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2383 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2386 _ | IFS | as_nl) ;; #(
2387 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2388 *) { eval $ac_var=; unset $ac_var;} ;;
2393 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2394 *${as_nl}ac_space=\ *)
2396 "s/'\''/'\''\\\\'\'''\''/g;
2397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2400 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2408 ## ----------------- ##
2409 ## Output variables. ##
2410 ## ----------------- ##
2413 for ac_var in $ac_subst_vars
2415 eval ac_val=\$$ac_var
2417 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419 $as_echo "$ac_var='\''$ac_val'\''"
2423 if test -n "$ac_subst_files"; then
2425 ## ------------------- ##
2426 ## File substitutions. ##
2427 ## ------------------- ##
2430 for ac_var
in $ac_subst_files
2432 eval ac_val
=\$
$ac_var
2434 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436 $as_echo "$ac_var='\''$ac_val'\''"
2441 if test -s confdefs.h; then
2451 test "$ac_signal" != 0 &&
2452 $as_echo "$as_me: caught signal $ac_signal"
2453 $as_echo "$as_me: exit $exit_status"
2455 rm -f core *.core core.conftest.* &&
2456 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2459 for ac_signal
in 1 2 13 15; do
2460 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2465 rm -f -r conftest
* confdefs.h
2467 $as_echo "/* confdefs.h */" > confdefs.h
2469 # Predefined preprocessor variables.
2471 cat >>confdefs.h
<<_ACEOF
2472 #define PACKAGE_NAME "$PACKAGE_NAME"
2475 cat >>confdefs.h
<<_ACEOF
2476 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2479 cat >>confdefs.h
<<_ACEOF
2480 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2483 cat >>confdefs.h
<<_ACEOF
2484 #define PACKAGE_STRING "$PACKAGE_STRING"
2487 cat >>confdefs.h
<<_ACEOF
2488 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2491 cat >>confdefs.h
<<_ACEOF
2492 #define PACKAGE_URL "$PACKAGE_URL"
2496 # Let the site file select an alternate cache file if it wants to.
2497 # Prefer an explicitly selected file to automatically selected ones.
2500 if test -n "$CONFIG_SITE"; then
2501 ac_site_file1
=$CONFIG_SITE
2502 elif test "x$prefix" != xNONE
; then
2503 ac_site_file1
=$prefix/share
/config.site
2504 ac_site_file2
=$prefix/etc
/config.site
2506 ac_site_file1
=$ac_default_prefix/share
/config.site
2507 ac_site_file2
=$ac_default_prefix/etc
/config.site
2509 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2511 test "x$ac_site_file" = xNONE
&& continue
2512 if test -r "$ac_site_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2514 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2515 sed 's/^/| /' "$ac_site_file" >&5
2520 if test -r "$cache_file"; then
2521 # Some versions of bash will fail to source /dev/null (special
2522 # files actually), so we avoid doing that.
2523 if test -f "$cache_file"; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2525 $as_echo "$as_me: loading cache $cache_file" >&6;}
2527 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2528 *) .
"./$cache_file";;
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2533 $as_echo "$as_me: creating cache $cache_file" >&6;}
2537 # Check that the precious variables saved in the cache have kept the same
2539 ac_cache_corrupted
=false
2540 for ac_var
in $ac_precious_vars; do
2541 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2542 eval ac_new_set
=\
$ac_env_${ac_var}_set
2543 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2544 eval ac_new_val
=\
$ac_env_${ac_var}_value
2545 case $ac_old_set,$ac_new_set in
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2549 ac_cache_corrupted
=: ;;
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2552 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2553 ac_cache_corrupted
=: ;;
2556 if test "x$ac_old_val" != "x$ac_new_val"; then
2557 # differences in whitespace do not lead to failure.
2558 ac_old_val_w
=`echo x $ac_old_val`
2559 ac_new_val_w
=`echo x $ac_new_val`
2560 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2562 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2563 ac_cache_corrupted
=:
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2566 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2567 eval $ac_var=\
$ac_old_val
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2570 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2572 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2575 # Pass precious variables to config.status.
2576 if test "$ac_new_set" = set; then
2578 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2579 *) ac_arg
=$ac_var=$ac_new_val ;;
2581 case " $ac_configure_args " in
2582 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2583 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2587 if $ac_cache_corrupted; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2591 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2592 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2594 ## -------------------- ##
2595 ## Main body of script. ##
2596 ## -------------------- ##
2599 ac_cpp
='$CPP $CPPFLAGS'
2600 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2605 ac_config_headers
="$ac_config_headers src/System/config.h:src/System/config.in"
2608 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2609 for ac_t
in install-sh
install.sh shtool
; do
2610 if test -f "$ac_dir/$ac_t"; then
2612 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2617 if test -z "$ac_aux_dir"; then
2618 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2621 # These three variables are undocumented and unsupported,
2622 # and are intended to be withdrawn in a future Autoconf release.
2623 # They can cause serious problems if a builder's source tree is in a directory
2624 # whose full name contains unusual characters.
2625 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2626 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2627 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2630 # Make sure we can run config.sub.
2631 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2632 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2635 $as_echo_n "checking build system type... " >&6; }
2636 if test "${ac_cv_build+set}" = set; then :
2637 $as_echo_n "(cached) " >&6
2639 ac_build_alias
=$build_alias
2640 test "x$ac_build_alias" = x
&&
2641 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2642 test "x$ac_build_alias" = x
&&
2643 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
2644 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2645 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2649 $as_echo "$ac_cv_build" >&6; }
2650 case $ac_cv_build in
2652 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
2655 ac_save_IFS
=$IFS; IFS
='-'
2661 # Remember, the first character of IFS is used to create $*,
2662 # except with old shells:
2665 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2669 $as_echo_n "checking host system type... " >&6; }
2670 if test "${ac_cv_host+set}" = set; then :
2671 $as_echo_n "(cached) " >&6
2673 if test "x$host_alias" = x
; then
2674 ac_cv_host
=$ac_cv_build
2676 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2677 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2682 $as_echo "$ac_cv_host" >&6; }
2685 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
2688 ac_save_IFS
=$IFS; IFS
='-'
2694 # Remember, the first character of IFS is used to create $*,
2695 # except with old shells:
2698 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2703 DEVEL_VERSION
="1.0.7.5"
2705 STABLE_VERSION
="1.0.7"
2707 WINDOWS_VERSION
="1.0.5"
2715 #--------------------------------------------------------------------
2716 # Checks for C++ compiler
2717 #--------------------------------------------------------------------
2720 ac_cpp
='$CPP $CPPFLAGS'
2721 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2724 if test -n "$ac_tool_prefix"; then
2725 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2726 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if test "${ac_cv_prog_CC+set}" = set; then :
2730 $as_echo_n "(cached) " >&6
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC
="$CC" # Let the user override the test.
2735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir
=.
2740 for ac_exec_ext
in '' $ac_executable_extensions; do
2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 if test -n "$CC"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2755 $as_echo "$CC" >&6; }
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2763 if test -z "$ac_cv_prog_CC"; then
2765 # Extract the first word of "gcc", so it can be a program name with args.
2766 set dummy gcc
; ac_word
=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2770 $as_echo_n "(cached) " >&6
2772 if test -n "$ac_ct_CC"; then
2773 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2779 test -z "$as_dir" && as_dir
=.
2780 for ac_exec_ext
in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_ac_ct_CC
="gcc"
2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2793 if test -n "$ac_ct_CC"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2795 $as_echo "$ac_ct_CC" >&6; }
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2801 if test "x$ac_ct_CC" = x
; then
2804 case $cross_compiling:$ac_tool_warned in
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2808 ac_tool_warned
=yes ;;
2816 if test -z "$CC"; then
2817 if test -n "$ac_tool_prefix"; then
2818 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2819 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_CC+set}" = set; then :
2823 $as_echo_n "(cached) " >&6
2825 if test -n "$CC"; then
2826 ac_cv_prog_CC
="$CC" # Let the user override the test.
2828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir
=.
2833 for ac_exec_ext
in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 if test -n "$CC"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2848 $as_echo "$CC" >&6; }
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2857 if test -z "$CC"; then
2858 # Extract the first word of "cc", so it can be a program name with args.
2859 set dummy cc
; ac_word
=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if test "${ac_cv_prog_CC+set}" = set; then :
2863 $as_echo_n "(cached) " >&6
2865 if test -n "$CC"; then
2866 ac_cv_prog_CC
="$CC" # Let the user override the test.
2869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2873 test -z "$as_dir" && as_dir
=.
2874 for ac_exec_ext
in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2877 ac_prog_rejected
=yes
2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 if test $ac_prog_rejected = yes; then
2889 # We found a bogon in the path, so make sure we never use it.
2890 set dummy
$ac_cv_prog_CC
2892 if test $# != 0; then
2893 # We chose a different compiler from the bogus one.
2894 # However, it has the same basename, so the bogon will be chosen
2895 # first if we set CC to just the basename; use the full file name.
2897 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2903 if test -n "$CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2913 if test -z "$CC"; then
2914 if test -n "$ac_tool_prefix"; then
2915 for ac_prog
in cl.exe
2917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2918 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if test "${ac_cv_prog_CC+set}" = set; then :
2922 $as_echo_n "(cached) " >&6
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC
="$CC" # Let the user override the test.
2927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2931 test -z "$as_dir" && as_dir
=.
2932 for ac_exec_ext
in '' $ac_executable_extensions; do
2933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 if test -n "$CC"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2947 $as_echo "$CC" >&6; }
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950 $as_echo "no" >&6; }
2954 test -n "$CC" && break
2957 if test -z "$CC"; then
2959 for ac_prog
in cl.exe
2961 # Extract the first word of "$ac_prog", so it can be a program name with args.
2962 set dummy
$ac_prog; ac_word
=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2966 $as_echo_n "(cached) " >&6
2968 if test -n "$ac_ct_CC"; then
2969 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2975 test -z "$as_dir" && as_dir
=.
2976 for ac_exec_ext
in '' $ac_executable_extensions; do
2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978 ac_cv_prog_ac_ct_CC
="$ac_prog"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2989 if test -n "$ac_ct_CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2991 $as_echo "$ac_ct_CC" >&6; }
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2998 test -n "$ac_ct_CC" && break
3001 if test "x$ac_ct_CC" = x
; then
3004 case $cross_compiling:$ac_tool_warned in
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3008 ac_tool_warned
=yes ;;
3017 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 as_fn_error
"no acceptable C compiler found in \$PATH
3020 See \`config.log' for more details." "$LINENO" 5; }
3022 # Provide some information about the compiler.
3023 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3026 for ac_option
in --version -v -V -qversion; do
3027 { { ac_try
="$ac_compiler $ac_option >&5"
3029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3036 if test -s conftest.err; then
3038 ... rest of stderr output deleted ...
3039 10q' conftest.err >conftest.er1
3040 cat conftest.er1 >&5
3041 rm -f conftest.er1 conftest.err
3043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3044 test $ac_status = 0; }
3047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3048 /* end confdefs.h. */
3053 FILE *f = fopen ("conftest.out", "w");
3054 return ferror (f) || fclose (f) != 0;
3060 ac_clean_files_save=$ac_clean_files
3061 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3062 # Try to create an executable without -o first, disregard a.out.
3063 # It will help us diagnose broken compilers, and finding out an intuition
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3066 $as_echo_n "checking for C compiler default output file name... " >&6; }
3067 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3069 # The possible output files:
3070 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3073 for ac_file in $ac_files
3076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3077 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3082 if { { ac_try="$ac_link_default"
3084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3085 *) ac_try_echo
=$ac_try;;
3087 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3088 $as_echo "$ac_try_echo"; } >&5
3089 (eval "$ac_link_default") 2>&5
3091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3092 test $ac_status = 0; }; then :
3093 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3094 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3095 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3096 # so that the user can short-circuit this test for compilers unknown to
3098 for ac_file
in $ac_files ''
3100 test -f "$ac_file" ||
continue
3102 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3105 # We found the default executable, but exeext='' is most
3109 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3111 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3113 # We set ac_cv_exeext here because the later test for it is not
3114 # safe: cross compilers may not add the suffix if given an `-o'
3115 # argument, so we may need to know it at that point already.
3116 # Even if this section looks crufty: it has the advantage of
3123 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3129 $as_echo "$ac_file" >&6; }
3130 if test -z "$ac_file"; then :
3131 $as_echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.
$ac_ext >&5
3134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136 { as_fn_set_status
77
3137 as_fn_error
"C compiler cannot create executables
3138 See \`config.log' for more details." "$LINENO" 5; }; }
3140 ac_exeext
=$ac_cv_exeext
3142 # Check that the compiler produces executables we can run. If not, either
3143 # the compiler is broken, or we cross compile.
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3145 $as_echo_n "checking whether the C compiler works... " >&6; }
3146 # If not cross compiling, check that we can run a simple program.
3147 if test "$cross_compiling" != yes; then
3148 if { ac_try
='./$ac_file'
3149 { { case "(($ac_try" in
3150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 $as_echo "$ac_try_echo"; } >&5
3155 (eval "$ac_try") 2>&5
3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }; }; then
3161 if test "$cross_compiling" = maybe; then
3164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 as_fn_error "cannot run C compiled programs.
3167 If you meant to cross compile
, use \
`--host'.
3168 See \`config.log
' for more details." "$LINENO" 5; }
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3173 $as_echo "yes" >&6; }
3175 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3176 ac_clean_files=$ac_clean_files_save
3177 # Check that the compiler produces executables we can run. If not, either
3178 # the compiler is broken, or we cross compile.
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3180 $as_echo_n "checking whether we are cross compiling... " >&6; }
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3182 $as_echo "$cross_compiling" >&6; }
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3185 $as_echo_n "checking for suffix of executables... " >&6; }
3186 if { { ac_try="$ac_link"
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 $as_echo "$ac_try_echo"; } >&5
3193 (eval "$ac_link") 2>&5
3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }; then :
3197 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3198 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3199 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3201 for ac_file
in conftest.exe conftest conftest.
*; do
3202 test -f "$ac_file" ||
continue
3204 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3205 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3214 See \`config.log' for more details." "$LINENO" 5; }
3216 rm -f conftest
$ac_cv_exeext
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3218 $as_echo "$ac_cv_exeext" >&6; }
3220 rm -f conftest.
$ac_ext
3221 EXEEXT
=$ac_cv_exeext
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3224 $as_echo_n "checking for suffix of object files... " >&6; }
3225 if test "${ac_cv_objext+set}" = set; then :
3226 $as_echo_n "(cached) " >&6
3228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3239 rm -f conftest.o conftest.obj
3240 if { { ac_try
="$ac_compile"
3242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_compile") 2>&5
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }; then :
3251 for ac_file in conftest.o conftest.obj conftest.*; do
3252 test -f "$ac_file" || continue;
3254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3255 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3260 $as_echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265 as_fn_error "cannot compute suffix of object files
: cannot compile
3266 See \
`config.log' for more details." "$LINENO" 5; }
3268 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3271 $as_echo "$ac_cv_objext" >&6; }
3272 OBJEXT=$ac_cv_objext
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3275 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3276 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3277 $as_echo_n "(cached) " >&6
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h. */
3293 if ac_fn_c_try_compile "$LINENO"; then :
3298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3303 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3304 if test $ac_compiler_gnu = yes; then
3309 ac_test_CFLAGS=${CFLAGS+set}
3310 ac_save_CFLAGS=$CFLAGS
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3312 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3313 if test "${ac_cv_prog_cc_g+set}" = set; then :
3314 $as_echo_n "(cached) " >&6
3316 ac_save_c_werror_flag=$ac_c_werror_flag
3317 ac_c_werror_flag=yes
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3331 if ac_fn_c_try_compile "$LINENO"; then :
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3346 if ac_fn_c_try_compile "$LINENO"; then :
3349 ac_c_werror_flag=$ac_save_c_werror_flag
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3362 if ac_fn_c_try_compile "$LINENO"; then :
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370 ac_c_werror_flag=$ac_save_c_werror_flag
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3373 $as_echo "$ac_cv_prog_cc_g" >&6; }
3374 if test "$ac_test_CFLAGS" = set; then
3375 CFLAGS=$ac_save_CFLAGS
3376 elif test $ac_cv_prog_cc_g = yes; then
3377 if test "$GCC" = yes; then
3383 if test "$GCC" = yes; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3390 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3391 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3392 $as_echo_n "(cached) " >&6
3394 ac_cv_prog_cc_c89=no
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3400 #include <sys/types.h>
3401 #include <sys/stat.h>
3402 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3403 struct buf { int x; };
3404 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3405 static char *e (p, i)
3411 static char *f (char * (*g) (char **, int), char **p, ...)
3416 s = g (p, va_arg (v,int));
3421 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3422 function prototypes and stuff, but not '\xHH' hex character constants.
3423 These don't provoke an error unfortunately, instead are silently treated
3424 as 'x'. The following induces an error, until -std is added to get
3425 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3426 array size at least. It's necessary to write '\x00'==0 to get something
3427 that's true only with -std. */
3428 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3430 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3431 inside strings and character constants. */
3433 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3435 int test (int i, double x);
3436 struct s1 {int (*f) (int a);};
3437 struct s2 {int (*f) (double a);};
3438 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3444 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3449 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3450 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3452 CC="$ac_save_CC $ac_arg"
3453 if ac_fn_c_try_compile "$LINENO"; then :
3454 ac_cv_prog_cc_c89=$ac_arg
3456 rm -f core conftest.err conftest.$ac_objext
3457 test "x$ac_cv_prog_cc_c89" != "xno" && break
3459 rm -f conftest.$ac_ext
3464 case "x$ac_cv_prog_cc_c89" in
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3467 $as_echo "none needed" >&6; } ;;
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3470 $as_echo "unsupported" >&6; } ;;
3472 CC="$CC $ac_cv_prog_cc_c89"
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3474 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3476 if test "x$ac_cv_prog_cc_c89" != xno; then :
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487 ac_cpp='$CXXCPP $CPPFLAGS'
3488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3491 if test -z "$CXX"; then
3492 if test -n "$CCC"; then
3495 if test -n "$ac_tool_prefix"; then
3496 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3499 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_CXX+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3505 if test -n "$CXX"; then
3506 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 if test -n "$CXX"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3528 $as_echo "$CXX" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3535 test -n "$CXX" && break
3538 if test -z "$CXX"; then
3540 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3542 # Extract the first word of "$ac_prog", so it can be a program name with args.
3543 set dummy $ac_prog; ac_word=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3549 if test -n "$ac_ct_CXX"; then
3550 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3559 ac_cv_prog_ac_ct_CXX="$ac_prog"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3570 if test -n "$ac_ct_CXX"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3572 $as_echo "$ac_ct_CXX" >&6; }
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3579 test -n "$ac_ct_CXX" && break
3582 if test "x$ac_ct_CXX" = x; then
3585 case $cross_compiling:$ac_tool_warned in
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589 ac_tool_warned=yes ;;
3597 # Provide some information about the compiler.
3598 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3601 for ac_option in --version -v -V -qversion; do
3602 { { ac_try="$ac_compiler $ac_option >&5"
3604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3605 *) ac_try_echo
=$ac_try;;
3607 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608 $as_echo "$ac_try_echo"; } >&5
3609 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3611 if test -s conftest.err
; then
3613 ... rest of stderr output deleted ...
3614 10q' conftest.err
>conftest.er1
3615 cat conftest.er1
>&5
3616 rm -f conftest.er1 conftest.err
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3623 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3624 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3625 $as_echo_n "(cached) " >&6
3627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3641 if ac_fn_cxx_try_compile
"$LINENO"; then :
3646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3647 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3651 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3652 if test $ac_compiler_gnu = yes; then
3657 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3658 ac_save_CXXFLAGS
=$CXXFLAGS
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3660 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3661 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3662 $as_echo_n "(cached) " >&6
3664 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3665 ac_cxx_werror_flag
=yes
3668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3679 if ac_fn_cxx_try_compile
"$LINENO"; then :
3680 ac_cv_prog_cxx_g
=yes
3683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3694 if ac_fn_cxx_try_compile
"$LINENO"; then :
3697 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3710 if ac_fn_cxx_try_compile
"$LINENO"; then :
3711 ac_cv_prog_cxx_g
=yes
3713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3718 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3721 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3722 if test "$ac_test_CXXFLAGS" = set; then
3723 CXXFLAGS
=$ac_save_CXXFLAGS
3724 elif test $ac_cv_prog_cxx_g = yes; then
3725 if test "$GXX" = yes; then
3731 if test "$GXX" = yes; then
3738 ac_cpp
='$CPP $CPPFLAGS'
3739 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3744 ac_cpp
='$CXXCPP $CPPFLAGS'
3745 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU C++ compiler is default" >&5
3751 $as_echo_n "checking whether GNU C++ compiler is default... " >&6; }
3754 GCC_VERSION
=`$CC -dumpversion`
3755 GXX_VERSION
=`$CXX -dumpversion`
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3757 $as_echo "yes" >&6; }
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of gcc" >&5
3759 $as_echo_n "checking version of gcc... " >&6; }
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
3761 $as_echo "$GCC_VERSION" >&6; }
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of g++" >&5
3763 $as_echo_n "checking version of g++... " >&6; }
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GXX_VERSION" >&5
3765 $as_echo "$GXX_VERSION" >&6; }
3766 case "$GXX_VERSION" in
3768 echo "old style GNU compiler"
3769 $as_echo "#define OLD_GNU_COMPILER /**/" >>confdefs.h
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find GNU C++ compiler" >&5
3780 $as_echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
3784 #--------------------------------------------------------------------
3786 #--------------------------------------------------------------------
3788 if test -z "$GUILE_CFLAGS" -a -z "$GUILE_LDFLAGS"; then
3790 ## The GUILE_FLAGS macro.
3791 ## First, let's just see if we can find Guile at all.
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile" >&5
3793 $as_echo_n "checking for Guile... " >&6; }
3794 guile-config link
> /dev
/null ||
{
3795 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
3798 GUILE_ORIGINAL_CFLAGS
="`guile-config compile`"
3799 GUILE_CFLAGS
="$GUILE_ORIGINAL_CFLAGS"
3800 GUILE_VARIANT_CFLAGS
="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
3801 GUILE_LDFLAGS
="`guile-config link`"
3802 GUILE_VARIANT_LDFLAGS
="-L`guile-config info libdir` -lguile -lreadline -ltermcap"
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3806 $as_echo "yes" >&6; }
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of guile" >&5
3810 $as_echo_n "checking version of guile... " >&6; }
3811 if test -z "$GUILE_VERSION" ; then
3812 GUILE_VERSION
=`guile --version | grep 'Guile \([0-9]\)' | sed 's/Guile \([0-9]*\)/\1/'`
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_VERSION" >&5
3815 $as_echo "$GUILE_VERSION" >&6; }
3817 case "$GUILE_VERSION" in
3818 1.0* |
1.1* |
1.2* |
1.3* |
1.4* |
1.5*)
3819 CONFIG_GUILE_SERIAL
="A"
3822 CONFIG_GUILE_SERIAL
="B"
3825 CONFIG_GUILE_SERIAL
="C"
3830 #--------------------------------------------------------------------
3831 # Checks for standard functionality
3832 #--------------------------------------------------------------------
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++-compatible X header files" >&5
3837 $as_echo_n "checking for C++-compatible X header files... " >&6; }
3838 ac_save_cppflags
="$CPPFLAGS"
3839 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
3840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #include <X11/Xlib.h>
3843 #include <X11/Xutil.h>
3852 if ac_fn_cxx_try_compile
"$LINENO"; then :
3859 /usr
/X11R
6/include \
3860 /usr
/X11R
5/include \
3861 /usr
/X11R
4/include \
3864 /usr
/include
/X11R6 \
3865 /usr
/include
/X11R5 \
3866 /usr
/include
/X11R4 \
3868 /usr
/local
/X11
/include \
3869 /usr
/local
/X11R
6/include \
3870 /usr
/local
/X11R
5/include \
3871 /usr
/local
/X11R
4/include \
3873 /usr
/local
/include
/X11 \
3874 /usr
/local
/include
/X11R6 \
3875 /usr
/local
/include
/X11R5 \
3876 /usr
/local
/include
/X11R4 \
3880 /usr
/XFree86
/include
/X11 \
3883 /usr
/local
/include \
3884 /usr
/unsupported
/include \
3885 /usr
/athena
/include \
3886 /usr
/local
/x11r
5/include \
3887 /usr
/lpp
/Xamples
/include \
3889 /usr
/openwin
/include \
3890 /usr
/openwin
/share
/include \
3893 if test -r "$ac_dir/X11/Xlib.h"; then
3894 tm_x_includes
=$ac_dir
3898 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3899 < "$tm_x_includes/X11/Xlib.h" > X11
/Xlib.h
3900 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3901 < "$tm_x_includes/X11/Xutil.h" > X11
/Xutil.h
3902 X_CFLAGS
="-I.. $X_CFLAGS"
3905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3906 CPPFLAGS
="$ac_save_cppflags"
3909 ac_cpp
='$CXXCPP $CPPFLAGS'
3910 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3914 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3915 if test -z "$CXXCPP"; then
3916 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
3917 $as_echo_n "(cached) " >&6
3919 # Double quotes because CXXCPP needs to be expanded
3920 for CXXCPP
in "$CXX -E" "/lib/cpp"
3923 for ac_cxx_preproc_warn_flag
in '' yes
3925 # Use a header file that comes with gcc, so configuring glibc
3926 # with a fresh cross-compiler works.
3927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3928 # <limits.h> exists even on freestanding compilers.
3929 # On the NeXT, cc -E runs the code through the compiler's parser,
3930 # not just through cpp. "Syntax error" is here to catch this case.
3931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3934 # include <limits.h>
3936 # include <assert.h>
3940 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3943 # Broken: fails on valid input.
3946 rm -f conftest.err conftest.
$ac_ext
3948 # OK, works on sane cases. Now check whether nonexistent headers
3949 # can be detected and how.
3950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3952 #include <ac_nonexistent.h>
3954 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3955 # Broken: success on invalid input.
3958 # Passes both tests.
3962 rm -f conftest.err conftest.
$ac_ext
3965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3966 rm -f conftest.err conftest.
$ac_ext
3967 if $ac_preproc_ok; then :
3972 ac_cv_prog_CXXCPP
=$CXXCPP
3975 CXXCPP
=$ac_cv_prog_CXXCPP
3977 ac_cv_prog_CXXCPP
=$CXXCPP
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3980 $as_echo "$CXXCPP" >&6; }
3982 for ac_cxx_preproc_warn_flag
in '' yes
3984 # Use a header file that comes with gcc, so configuring glibc
3985 # with a fresh cross-compiler works.
3986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3987 # <limits.h> exists even on freestanding compilers.
3988 # On the NeXT, cc -E runs the code through the compiler's parser,
3989 # not just through cpp. "Syntax error" is here to catch this case.
3990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3993 # include <limits.h>
3995 # include <assert.h>
3999 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4002 # Broken: fails on valid input.
4005 rm -f conftest.err conftest.
$ac_ext
4007 # OK, works on sane cases. Now check whether nonexistent headers
4008 # can be detected and how.
4009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4011 #include <ac_nonexistent.h>
4013 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4014 # Broken: success on invalid input.
4017 # Passes both tests.
4021 rm -f conftest.err conftest.
$ac_ext
4024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4025 rm -f conftest.err conftest.
$ac_ext
4026 if $ac_preproc_ok; then :
4029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4031 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
4032 See \`config.log' for more details." "$LINENO" 5; }
4036 ac_cpp
='$CXXCPP $CPPFLAGS'
4037 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4043 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4044 if test "${ac_cv_path_GREP+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4047 if test -z "$GREP"; then
4048 ac_path_GREP_found
=false
4049 # Loop through the user's path and test for each of PROGNAME-LIST
4050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4051 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4054 test -z "$as_dir" && as_dir
=.
4055 for ac_prog
in grep ggrep
; do
4056 for ac_exec_ext
in '' $ac_executable_extensions; do
4057 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4058 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4059 # Check for GNU ac_path_GREP and select it if it is found.
4060 # Check for GNU $ac_path_GREP
4061 case `"$ac_path_GREP" --version 2>&1` in
4063 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4066 $as_echo_n 0123456789 >"conftest.in"
4069 cat "conftest.in" "conftest.in" >"conftest.tmp"
4070 mv "conftest.tmp" "conftest.in"
4071 cp "conftest.in" "conftest.nl"
4072 $as_echo 'GREP' >> "conftest.nl"
4073 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4074 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4075 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4076 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4077 # Best one so far, save it but keep looking for a better one
4078 ac_cv_path_GREP
="$ac_path_GREP"
4079 ac_path_GREP_max
=$ac_count
4081 # 10*(2^10) chars as input seems more than enough
4082 test $ac_count -gt 10 && break
4084 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4087 $ac_path_GREP_found && break 3
4092 if test -z "$ac_cv_path_GREP"; then
4093 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4096 ac_cv_path_GREP
=$GREP
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4101 $as_echo "$ac_cv_path_GREP" >&6; }
4102 GREP
="$ac_cv_path_GREP"
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4106 $as_echo_n "checking for egrep... " >&6; }
4107 if test "${ac_cv_path_EGREP+set}" = set; then :
4108 $as_echo_n "(cached) " >&6
4110 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4111 then ac_cv_path_EGREP
="$GREP -E"
4113 if test -z "$EGREP"; then
4114 ac_path_EGREP_found
=false
4115 # Loop through the user's path and test for each of PROGNAME-LIST
4116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4117 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4120 test -z "$as_dir" && as_dir
=.
4121 for ac_prog
in egrep; do
4122 for ac_exec_ext
in '' $ac_executable_extensions; do
4123 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4124 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4125 # Check for GNU ac_path_EGREP and select it if it is found.
4126 # Check for GNU $ac_path_EGREP
4127 case `"$ac_path_EGREP" --version 2>&1` in
4129 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4132 $as_echo_n 0123456789 >"conftest.in"
4135 cat "conftest.in" "conftest.in" >"conftest.tmp"
4136 mv "conftest.tmp" "conftest.in"
4137 cp "conftest.in" "conftest.nl"
4138 $as_echo 'EGREP' >> "conftest.nl"
4139 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4140 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4141 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4142 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4143 # Best one so far, save it but keep looking for a better one
4144 ac_cv_path_EGREP
="$ac_path_EGREP"
4145 ac_path_EGREP_max
=$ac_count
4147 # 10*(2^10) chars as input seems more than enough
4148 test $ac_count -gt 10 && break
4150 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4153 $ac_path_EGREP_found && break 3
4158 if test -z "$ac_cv_path_EGREP"; then
4159 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4162 ac_cv_path_EGREP
=$EGREP
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4168 $as_echo "$ac_cv_path_EGREP" >&6; }
4169 EGREP
="$ac_cv_path_EGREP"
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4173 $as_echo_n "checking for ANSI C header files... " >&6; }
4174 if test "${ac_cv_header_stdc+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4192 if ac_fn_cxx_try_compile
"$LINENO"; then :
4193 ac_cv_header_stdc
=yes
4195 ac_cv_header_stdc
=no
4197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4199 if test $ac_cv_header_stdc = yes; then
4200 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4207 $EGREP "memchr" >/dev
/null
2>&1; then :
4210 ac_cv_header_stdc
=no
4216 if test $ac_cv_header_stdc = yes; then
4217 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4224 $EGREP "free" >/dev
/null
2>&1; then :
4227 ac_cv_header_stdc
=no
4233 if test $ac_cv_header_stdc = yes; then
4234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4235 if test "$cross_compiling" = yes; then :
4238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4242 #if ((' ' & 0x0FF) == 0x020)
4243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4246 # define ISLOWER(c) \
4247 (('a' <= (c) && (c) <= 'i') \
4248 || ('j' <= (c) && (c) <= 'r') \
4249 || ('s' <= (c) && (c) <= 'z'))
4250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4258 for (i = 0; i < 256; i++)
4259 if (XOR (islower (i), ISLOWER (i))
4260 || toupper (i) != TOUPPER (i))
4265 if ac_fn_cxx_try_run
"$LINENO"; then :
4268 ac_cv_header_stdc
=no
4270 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4271 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4277 $as_echo "$ac_cv_header_stdc" >&6; }
4278 if test $ac_cv_header_stdc = yes; then
4280 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4284 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4285 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4286 inttypes.h stdint.h unistd.h
4288 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4289 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4291 eval as_val
=\$
$as_ac_Header
4292 if test "x$as_val" = x
""yes; then :
4293 cat >>confdefs.h
<<_ACEOF
4294 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4302 ac_fn_cxx_check_type
"$LINENO" "FILE" "ac_cv_type_FILE" "$ac_includes_default"
4303 if test "x$ac_cv_type_FILE" = x
""yes; then :
4305 cat >>confdefs.h
<<_ACEOF
4312 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
4313 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
4315 cat >>confdefs.h
<<_ACEOF
4316 #define HAVE_INTPTR_T 1
4322 ac_fn_cxx_check_type
"$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
4323 if test "x$ac_cv_type_time_t" = x
""yes; then :
4325 cat >>confdefs.h
<<_ACEOF
4326 #define HAVE_TIME_T 1
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4333 $as_echo_n "checking for X... " >&6; }
4336 # Check whether --with-x was given.
4337 if test "${with_x+set}" = set; then :
4341 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4342 if test "x$with_x" = xno
; then
4343 # The user explicitly disabled X.
4346 case $x_includes,$x_libraries in #(
4347 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
4348 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4351 # One or both of the vars are not set, and there is no cached value.
4352 ac_x_includes
=no ac_x_libraries
=no
4353 rm -f -r conftest.dir
4354 if mkdir conftest.dir
; then
4356 cat >Imakefile
<<'_ACEOF'
4358 @echo incroot='${INCROOT}'
4360 @echo usrlibdir='${USRLIBDIR}'
4362 @echo libdir='${LIBDIR}'
4364 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
4365 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4366 for ac_var
in incroot usrlibdir libdir
; do
4367 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4369 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4370 for ac_extension
in a so sl dylib la dll
; do
4371 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4372 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4373 ac_im_usrlibdir
=$ac_im_libdir; break
4376 # Screen out bogus values from the imake configuration. They are
4377 # bogus both because they are the default anyway, and because
4378 # using them would break gcc on systems where it needs fixed includes.
4379 case $ac_im_incroot in
4380 /usr
/include
) ac_x_includes
= ;;
4381 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
4383 case $ac_im_usrlibdir in
4384 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
4385 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
4389 rm -f -r conftest.dir
4392 # Standard set of common directories for X headers.
4393 # Check X11 before X11Rn because it is often a symlink to the current release.
4407 /usr/local/X11/include
4408 /usr/local/X11R7/include
4409 /usr/local/X11R6/include
4410 /usr/local/X11R5/include
4411 /usr/local/X11R4/include
4413 /usr/local/include/X11
4414 /usr/local/include/X11R7
4415 /usr/local/include/X11R6
4416 /usr/local/include/X11R5
4417 /usr/local/include/X11R4
4421 /usr/XFree86/include/X11
4425 /usr/unsupported/include
4427 /usr/local/x11r5/include
4428 /usr/lpp/Xamples/include
4430 /usr/openwin/include
4431 /usr/openwin/share/include'
4433 if test "$ac_x_includes" = no
; then
4434 # Guess where to find include files, by looking for Xlib.h.
4435 # First, try using that file with no special directory specified.
4436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4438 #include <X11/Xlib.h>
4440 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4441 # We can compile using X headers with no special include directory.
4444 for ac_dir
in $ac_x_header_dirs; do
4445 if test -r "$ac_dir/X11/Xlib.h"; then
4446 ac_x_includes
=$ac_dir
4451 rm -f conftest.err conftest.
$ac_ext
4452 fi # $ac_x_includes = no
4454 if test "$ac_x_libraries" = no
; then
4455 # Check for the libraries.
4456 # See if we find them without any special options.
4457 # Don't add to $LIBS permanently.
4460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462 #include <X11/Xlib.h>
4471 if ac_fn_cxx_try_link
"$LINENO"; then :
4473 # We can link X programs with no special library path.
4477 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4479 # Don't even attempt the hair of trying to link an X program!
4480 for ac_extension
in a so sl dylib la dll
; do
4481 if test -r "$ac_dir/libX11.$ac_extension"; then
4482 ac_x_libraries
=$ac_dir
4488 rm -f core conftest.err conftest.
$ac_objext \
4489 conftest
$ac_exeext conftest.
$ac_ext
4490 fi # $ac_x_libraries = no
4492 case $ac_x_includes,$ac_x_libraries in #(
4494 # Didn't find X, or a directory has "'" in its name.
4495 ac_cv_have_x
="have_x=no";; #(
4497 # Record where we found X for the cache.
4498 ac_cv_have_x
="have_x=yes\
4499 ac_x_includes='$ac_x_includes'\
4500 ac_x_libraries='$ac_x_libraries'"
4506 eval "$ac_cv_have_x"
4509 if test "$have_x" != yes; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4511 $as_echo "$have_x" >&6; }
4514 # If each of the values was on the command line, it overrides each guess.
4515 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
4516 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
4517 # Update the cache value to reflect the command line values.
4518 ac_cv_have_x
="have_x=yes\
4519 ac_x_includes='$x_includes'\
4520 ac_x_libraries='$x_libraries'"
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4522 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4525 if test "$no_x" = yes; then
4526 # Not all programs may use this symbol, but it does not hurt to define it.
4528 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
4530 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
4532 if test -n "$x_includes"; then
4533 X_CFLAGS
="$X_CFLAGS -I$x_includes"
4536 # It would also be nice to do this for all -L options, not just this one.
4537 if test -n "$x_libraries"; then
4538 X_LIBS
="$X_LIBS -L$x_libraries"
4539 # For Solaris; some versions of Sun CC require a space after -R and
4540 # others require no space. Words are not sufficient . . . .
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
4542 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
4543 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
4544 ac_xsave_cxx_werror_flag
=$ac_cxx_werror_flag
4545 ac_cxx_werror_flag
=yes
4546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4557 if ac_fn_cxx_try_link
"$LINENO"; then :
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4560 X_LIBS
="$X_LIBS -R$x_libraries"
4562 LIBS
="$ac_xsave_LIBS -R $x_libraries"
4563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4574 if ac_fn_cxx_try_link
"$LINENO"; then :
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4576 $as_echo "yes" >&6; }
4577 X_LIBS
="$X_LIBS -R $x_libraries"
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
4580 $as_echo "neither works" >&6; }
4582 rm -f core conftest.err conftest.
$ac_objext \
4583 conftest
$ac_exeext conftest.
$ac_ext
4585 rm -f core conftest.err conftest.
$ac_objext \
4586 conftest
$ac_exeext conftest.
$ac_ext
4587 ac_cxx_werror_flag
=$ac_xsave_cxx_werror_flag
4591 # Check for system-dependent libraries X programs must link with.
4592 # Do this before checking for the system-independent R6 libraries
4593 # (-lICE), since we may need -lsocket or whatever for X linking.
4595 if test "$ISC" = yes; then
4596 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
4598 # Martyn Johnson says this is needed for Ultrix, if the X
4599 # libraries were built with DECnet support. And Karl Berry says
4600 # the Alpha needs dnet_stub (dnet does not exist).
4601 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
4602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4605 /* Override any GCC internal prototype to avoid an error.
4606 Use char because int might match the return type of a GCC
4607 builtin and then its argument prototype would still apply. */
4611 char XOpenDisplay ();
4615 return XOpenDisplay ();
4620 if ac_fn_cxx_try_link
"$LINENO"; then :
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
4624 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4625 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
4628 ac_check_lib_save_LIBS
=$LIBS
4630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4633 /* Override any GCC internal prototype to avoid an error.
4634 Use char because int might match the return type of a GCC
4635 builtin and then its argument prototype would still apply. */
4643 return dnet_ntoa ();
4648 if ac_fn_cxx_try_link
"$LINENO"; then :
4649 ac_cv_lib_dnet_dnet_ntoa
=yes
4651 ac_cv_lib_dnet_dnet_ntoa
=no
4653 rm -f core conftest.err conftest.
$ac_objext \
4654 conftest
$ac_exeext conftest.
$ac_ext
4655 LIBS
=$ac_check_lib_save_LIBS
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4658 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4659 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
4660 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
4663 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
4665 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4666 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
4667 $as_echo_n "(cached) " >&6
4669 ac_check_lib_save_LIBS
=$LIBS
4670 LIBS
="-ldnet_stub $LIBS"
4671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4674 /* Override any GCC internal prototype to avoid an error.
4675 Use char because int might match the return type of a GCC
4676 builtin and then its argument prototype would still apply. */
4684 return dnet_ntoa ();
4689 if ac_fn_cxx_try_link
"$LINENO"; then :
4690 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
4692 ac_cv_lib_dnet_stub_dnet_ntoa
=no
4694 rm -f core conftest.err conftest.
$ac_objext \
4695 conftest
$ac_exeext conftest.
$ac_ext
4696 LIBS
=$ac_check_lib_save_LIBS
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4699 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4700 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x
""yes; then :
4701 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
4706 rm -f core conftest.err conftest.
$ac_objext \
4707 conftest
$ac_exeext conftest.
$ac_ext
4708 LIBS
="$ac_xsave_LIBS"
4710 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4711 # to get the SysV transport functions.
4712 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4714 # The nsl library prevents programs from opening the X display
4715 # on Irix 5.2, according to T.E. Dickey.
4716 # The functions gethostbyname, getservbyname, and inet_addr are
4717 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4718 ac_fn_cxx_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4719 if test "x$ac_cv_func_gethostbyname" = x
""yes; then :
4723 if test $ac_cv_func_gethostbyname = no
; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4725 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4726 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
4729 ac_check_lib_save_LIBS
=$LIBS
4731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4734 /* Override any GCC internal prototype to avoid an error.
4735 Use char because int might match the return type of a GCC
4736 builtin and then its argument prototype would still apply. */
4740 char gethostbyname ();
4744 return gethostbyname ();
4749 if ac_fn_cxx_try_link
"$LINENO"; then :
4750 ac_cv_lib_nsl_gethostbyname
=yes
4752 ac_cv_lib_nsl_gethostbyname
=no
4754 rm -f core conftest.err conftest.
$ac_objext \
4755 conftest
$ac_exeext conftest.
$ac_ext
4756 LIBS
=$ac_check_lib_save_LIBS
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4759 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4760 if test "x$ac_cv_lib_nsl_gethostbyname" = x
""yes; then :
4761 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4764 if test $ac_cv_lib_nsl_gethostbyname = no
; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
4766 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
4767 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4770 ac_check_lib_save_LIBS
=$LIBS
4772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4775 /* Override any GCC internal prototype to avoid an error.
4776 Use char because int might match the return type of a GCC
4777 builtin and then its argument prototype would still apply. */
4781 char gethostbyname ();
4785 return gethostbyname ();
4790 if ac_fn_cxx_try_link
"$LINENO"; then :
4791 ac_cv_lib_bsd_gethostbyname
=yes
4793 ac_cv_lib_bsd_gethostbyname
=no
4795 rm -f core conftest.err conftest.
$ac_objext \
4796 conftest
$ac_exeext conftest.
$ac_ext
4797 LIBS
=$ac_check_lib_save_LIBS
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
4800 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
4801 if test "x$ac_cv_lib_bsd_gethostbyname" = x
""yes; then :
4802 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
4808 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4809 # socket/setsockopt and other routines are undefined under SCO ODT
4810 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4811 # on later versions), says Simon Leinen: it contains gethostby*
4812 # variants that don't use the name server (or something). -lsocket
4813 # must be given before -lnsl if both are needed. We assume that
4814 # if connect needs -lnsl, so does gethostbyname.
4815 ac_fn_cxx_check_func
"$LINENO" "connect" "ac_cv_func_connect"
4816 if test "x$ac_cv_func_connect" = x
""yes; then :
4820 if test $ac_cv_func_connect = no
; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
4822 $as_echo_n "checking for connect in -lsocket... " >&6; }
4823 if test "${ac_cv_lib_socket_connect+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4826 ac_check_lib_save_LIBS
=$LIBS
4827 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4831 /* Override any GCC internal prototype to avoid an error.
4832 Use char because int might match the return type of a GCC
4833 builtin and then its argument prototype would still apply. */
4846 if ac_fn_cxx_try_link
"$LINENO"; then :
4847 ac_cv_lib_socket_connect
=yes
4849 ac_cv_lib_socket_connect
=no
4851 rm -f core conftest.err conftest.
$ac_objext \
4852 conftest
$ac_exeext conftest.
$ac_ext
4853 LIBS
=$ac_check_lib_save_LIBS
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
4856 $as_echo "$ac_cv_lib_socket_connect" >&6; }
4857 if test "x$ac_cv_lib_socket_connect" = x
""yes; then :
4858 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
4863 # Guillermo Gomez says -lposix is necessary on A/UX.
4864 ac_fn_cxx_check_func
"$LINENO" "remove" "ac_cv_func_remove"
4865 if test "x$ac_cv_func_remove" = x
""yes; then :
4869 if test $ac_cv_func_remove = no
; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
4871 $as_echo_n "checking for remove in -lposix... " >&6; }
4872 if test "${ac_cv_lib_posix_remove+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4875 ac_check_lib_save_LIBS
=$LIBS
4876 LIBS
="-lposix $LIBS"
4877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4880 /* Override any GCC internal prototype to avoid an error.
4881 Use char because int might match the return type of a GCC
4882 builtin and then its argument prototype would still apply. */
4895 if ac_fn_cxx_try_link
"$LINENO"; then :
4896 ac_cv_lib_posix_remove
=yes
4898 ac_cv_lib_posix_remove
=no
4900 rm -f core conftest.err conftest.
$ac_objext \
4901 conftest
$ac_exeext conftest.
$ac_ext
4902 LIBS
=$ac_check_lib_save_LIBS
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
4905 $as_echo "$ac_cv_lib_posix_remove" >&6; }
4906 if test "x$ac_cv_lib_posix_remove" = x
""yes; then :
4907 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
4912 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4913 ac_fn_cxx_check_func
"$LINENO" "shmat" "ac_cv_func_shmat"
4914 if test "x$ac_cv_func_shmat" = x
""yes; then :
4918 if test $ac_cv_func_shmat = no
; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
4920 $as_echo_n "checking for shmat in -lipc... " >&6; }
4921 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
4922 $as_echo_n "(cached) " >&6
4924 ac_check_lib_save_LIBS
=$LIBS
4926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4929 /* Override any GCC internal prototype to avoid an error.
4930 Use char because int might match the return type of a GCC
4931 builtin and then its argument prototype would still apply. */
4944 if ac_fn_cxx_try_link
"$LINENO"; then :
4945 ac_cv_lib_ipc_shmat
=yes
4947 ac_cv_lib_ipc_shmat
=no
4949 rm -f core conftest.err conftest.
$ac_objext \
4950 conftest
$ac_exeext conftest.
$ac_ext
4951 LIBS
=$ac_check_lib_save_LIBS
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
4954 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
4955 if test "x$ac_cv_lib_ipc_shmat" = x
""yes; then :
4956 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
4962 # Check for libraries that X11R6 Xt/Xaw programs need.
4963 ac_save_LDFLAGS
=$LDFLAGS
4964 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
4965 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4966 # check for ICE first), but we must link in the order -lSM -lICE or
4967 # we get undefined symbols. So assume we have SM if we have ICE.
4968 # These have to be linked with before -lX11, unlike the other
4969 # libraries we check for below, so use a different variable.
4970 # John Interrante, Karl Berry
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
4972 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
4973 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4976 ac_check_lib_save_LIBS
=$LIBS
4977 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
4978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4981 /* Override any GCC internal prototype to avoid an error.
4982 Use char because int might match the return type of a GCC
4983 builtin and then its argument prototype would still apply. */
4987 char IceConnectionNumber ();
4991 return IceConnectionNumber ();
4996 if ac_fn_cxx_try_link
"$LINENO"; then :
4997 ac_cv_lib_ICE_IceConnectionNumber
=yes
4999 ac_cv_lib_ICE_IceConnectionNumber
=no
5001 rm -f core conftest.err conftest.
$ac_objext \
5002 conftest
$ac_exeext conftest.
$ac_ext
5003 LIBS
=$ac_check_lib_save_LIBS
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5006 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5007 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x
""yes; then :
5008 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
5011 LDFLAGS
=$ac_save_LDFLAGS
5015 for ac_header
in pty.h util.h
5017 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5018 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5019 eval as_val
=\$
$as_ac_Header
5020 if test "x$as_val" = x
""yes; then :
5021 cat >>confdefs.h
<<_ACEOF
5022 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5029 for ac_func
in gettimeofday
5031 ac_fn_cxx_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
5032 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
5033 cat >>confdefs.h
<<_ACEOF
5034 #define HAVE_GETTIMEOFDAY 1
5041 #--------------------------------------------------------------------
5042 # Checks for dl library
5043 #--------------------------------------------------------------------
5045 ac_fn_cxx_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
5046 if test "x$ac_cv_func_dlopen" = x
""yes; then :
5050 if test "$ac_cv_func_dl" = "yes"; then
5052 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5056 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5057 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5058 $as_echo_n "(cached) " >&6
5060 ac_check_lib_save_LIBS
=$LIBS
5062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5065 /* Override any GCC internal prototype to avoid an error.
5066 Use char because int might match the return type of a GCC
5067 builtin and then its argument prototype would still apply. */
5080 if ac_fn_cxx_try_link
"$LINENO"; then :
5081 ac_cv_lib_dl_dlopen
=yes
5083 ac_cv_lib_dl_dlopen
=no
5085 rm -f core conftest.err conftest.
$ac_objext \
5086 conftest
$ac_exeext conftest.
$ac_ext
5087 LIBS
=$ac_check_lib_save_LIBS
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5090 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5091 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
5092 cat >>confdefs.h
<<_ACEOF
5093 #define HAVE_LIBDL 1
5100 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5101 for ac_func
in dlopen
5103 ac_fn_cxx_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
5104 if test "x$ac_cv_func_dlopen" = x
""yes; then :
5105 cat >>confdefs.h
<<_ACEOF
5106 #define HAVE_DLOPEN 1
5114 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
5118 $as_echo_n "checking for dld_link in -ldld... " >&6; }
5119 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
5120 $as_echo_n "(cached) " >&6
5122 ac_check_lib_save_LIBS
=$LIBS
5124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5127 /* Override any GCC internal prototype to avoid an error.
5128 Use char because int might match the return type of a GCC
5129 builtin and then its argument prototype would still apply. */
5142 if ac_fn_cxx_try_link
"$LINENO"; then :
5143 ac_cv_lib_dld_dld_link
=yes
5145 ac_cv_lib_dld_dld_link
=no
5147 rm -f core conftest.err conftest.
$ac_objext \
5148 conftest
$ac_exeext conftest.
$ac_ext
5149 LIBS
=$ac_check_lib_save_LIBS
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
5152 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
5153 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
5154 cat >>confdefs.h
<<_ACEOF
5155 #define HAVE_LIBDLD 1
5162 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
5165 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5168 for ac_func
in shl_load
5170 ac_fn_cxx_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
5171 if test "x$ac_cv_func_shl_load" = x
""yes; then :
5172 cat >>confdefs.h
<<_ACEOF
5173 #define HAVE_SHL_LOAD 1
5179 if test "$ac_cv_func_shl_load" = "yes"; then
5182 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5185 for ac_func
in dlopen
5187 ac_fn_cxx_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
5188 if test "x$ac_cv_func_dlopen" = x
""yes; then :
5189 cat >>confdefs.h
<<_ACEOF
5190 #define HAVE_DLOPEN 1
5196 if test "$ac_cv_func_dlopen" = "yes"; then
5198 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5207 #--------------------------------------------------------------------
5208 # Checks for iconv library
5209 #--------------------------------------------------------------------
5212 # Check whether --with-iconv was given.
5213 if test "${with_iconv+set}" = set; then :
5214 withval
=$with_iconv;
5219 # Modified from GNOME's libxml2 configure.in
5222 ac_cpp
='$CPP $CPPFLAGS'
5223 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5224 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5225 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5226 # compile C to avoid the 'const char**' problem
5228 SAVE_CPPFLAGS
="$CPPFLAGS"
5229 SAVE_LDFLAGS
="$LDFLAGS"
5231 if test "$with_iconv" = "no" ; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling iconv support" >&5
5233 $as_echo "disabling iconv support" >&6; }
5235 if test -n "$ICONV_CFLAGS" -a -n "$ICONV_LDFLAGS"; then
5236 CPPFLAGS
="$ICONV_CFLAGS" # for AC_TRY_LINK
5237 LDFLAGS
="$ICONV_LDFLAGS"
5239 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
5240 CPPFLAGS
="-I$with_iconv/include" # for AC_TRY_LINK
5241 LDFLAGS
="-L$with_iconv/lib"
5242 ICONV_CFLAGS
="-I$with_iconv/include"
5243 ICONV_LDFLAGS
="-L$with_iconv/lib"
5247 ac_cpp
='$CPP $CPPFLAGS'
5248 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5249 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5250 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5252 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5253 # On Suns, sometimes $CPP names a directory.
5254 if test -n "$CPP" && test -d "$CPP"; then
5257 if test -z "$CPP"; then
5258 if test "${ac_cv_prog_CPP+set}" = set; then :
5259 $as_echo_n "(cached) " >&6
5261 # Double quotes because CPP needs to be expanded
5262 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5265 for ac_c_preproc_warn_flag
in '' yes
5267 # Use a header file that comes with gcc, so configuring glibc
5268 # with a fresh cross-compiler works.
5269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5270 # <limits.h> exists even on freestanding compilers.
5271 # On the NeXT, cc -E runs the code through the compiler's parser,
5272 # not just through cpp. "Syntax error" is here to catch this case.
5273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5276 # include <limits.h>
5278 # include <assert.h>
5282 if ac_fn_c_try_cpp
"$LINENO"; then :
5285 # Broken: fails on valid input.
5288 rm -f conftest.err conftest.
$ac_ext
5290 # OK, works on sane cases. Now check whether nonexistent headers
5291 # can be detected and how.
5292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5294 #include <ac_nonexistent.h>
5296 if ac_fn_c_try_cpp
"$LINENO"; then :
5297 # Broken: success on invalid input.
5300 # Passes both tests.
5304 rm -f conftest.err conftest.
$ac_ext
5307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5308 rm -f conftest.err conftest.
$ac_ext
5309 if $ac_preproc_ok; then :
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5322 $as_echo "$CPP" >&6; }
5324 for ac_c_preproc_warn_flag
in '' yes
5326 # Use a header file that comes with gcc, so configuring glibc
5327 # with a fresh cross-compiler works.
5328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5329 # <limits.h> exists even on freestanding compilers.
5330 # On the NeXT, cc -E runs the code through the compiler's parser,
5331 # not just through cpp. "Syntax error" is here to catch this case.
5332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5335 # include <limits.h>
5337 # include <assert.h>
5341 if ac_fn_c_try_cpp
"$LINENO"; then :
5344 # Broken: fails on valid input.
5347 rm -f conftest.err conftest.
$ac_ext
5349 # OK, works on sane cases. Now check whether nonexistent headers
5350 # can be detected and how.
5351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5353 #include <ac_nonexistent.h>
5355 if ac_fn_c_try_cpp
"$LINENO"; then :
5356 # Broken: success on invalid input.
5359 # Passes both tests.
5363 rm -f conftest.err conftest.
$ac_ext
5366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5367 rm -f conftest.err conftest.
$ac_ext
5368 if $ac_preproc_ok; then :
5371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5373 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5374 See \`config.log' for more details." "$LINENO" 5; }
5378 ac_cpp
='$CPP $CPPFLAGS'
5379 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5380 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5381 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5384 ac_fn_c_check_header_mongrel
"$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5385 if test "x$ac_cv_header_iconv_h" = x
""yes; then :
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5387 $as_echo_n "checking for iconv... " >&6; }
5390 # ac_fn_c_try_link LINENO
5391 # -----------------------
5392 # Try to link conftest.$ac_ext, and return whether this succeeded.
5395 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5396 rm -f conftest.
$ac_objext conftest
$ac_exeext
5397 if { { ac_try
="$ac_link"
5399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5403 $as_echo "$ac_try_echo"; } >&5
5404 (eval "$ac_link") 2>conftest.err
5406 if test -s conftest.err; then
5407 grep -v '^ *+' conftest.err >conftest.er1
5408 cat conftest.er1 >&5
5409 mv -f conftest.er1 conftest.err
5411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5412 test $ac_status = 0; } && {
5413 test -z "$ac_c_werror_flag" ||
5414 test ! -s conftest.err
5415 } && test -s conftest$ac_exeext && {
5416 test "$cross_compiling" = yes ||
5417 $as_test_x conftest$ac_exeext
5421 $as_echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5426 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
5427 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
5428 # interfere with the next link command; also delete a directory that is
5429 # left behind by Apple's compiler. We do this before executing the actions.
5430 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
5431 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5434 } # ac_fn_c_try_link
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5445 iconv_t cd = iconv_open ("","");
5446 iconv (cd, NULL, NULL, NULL, NULL);
5452 if ac_fn_c_try_link "$LINENO"; then :
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5455 $as_echo "yes" >&6; }
5457 $as_echo "#define USE_ICONV 1" >>confdefs.h
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
5465 $as_echo_n "checking for iconv in -liconv... " >&6; }
5466 # LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
5467 LIBS="-liconv" # for AC_TRY_LINK
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5478 iconv_t cd = iconv_open ("","");
5479 iconv (cd, NULL, NULL, NULL, NULL);
5485 if ac_fn_c_try_link "$LINENO"; then :
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5488 $as_echo "yes" >&6; }
5490 $as_echo "#define USE_ICONV 1" >>confdefs.h
5492 ICONV_LDFLAGS="${ICONV_LDFLAGS/-liconv} -liconv"
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: absence of iconv may crash HTML import" >&5
5499 $as_echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
5502 rm -f core conftest.err conftest.$ac_objext \
5503 conftest$ac_exeext conftest.$ac_ext
5505 rm -f core conftest.err conftest.$ac_objext \
5506 conftest$ac_exeext conftest.$ac_ext
5512 CPPFLAGS="$SAVE_CPPFLAGS"
5513 LDFLAGS="$SAVE_LDFLAGS"
5516 ac_cpp='$CXXCPP $CPPFLAGS'
5517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5520 # restore C++ language
5524 #--------------------------------------------------------------------
5525 # Checks for freetype library
5526 #--------------------------------------------------------------------
5529 # Check whether --with-freetype was given.
5530 if test "${with_freetype+set}" = set; then :
5531 withval=$with_freetype;
5535 SAVE_CPPFLAGS="$CPPFLAGS"
5536 SAVE_LDFLAGS="$LDFLAGS"
5538 if test "$with_freetype" = "no" ; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling freetype support" >&5
5540 $as_echo "disabling freetype support" >&6; }
5542 if test -z "$FREETYPE_CFLAGS"; then
5543 FREETYPE_CFLAGS=`freetype-config
--cflags`
5545 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
5546 if test -z "$FREETYPE_LDFLAGS"; then
5547 FREETYPE_LDFLAGS=`freetype-config
--libs`
5549 LIBS="$LDFLAGS $FREETYPE_LDFLAGS"
5550 ac_fn_cxx_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
5551 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5
5553 $as_echo_n "checking for freetype... " >&6; }
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5557 #include <ft2build.h>
5558 #include FT_FREETYPE_H
5564 FT_Library ft_library;
5565 (void) FT_Init_FreeType (&ft_library);
5571 if ac_fn_cxx_try_link "$LINENO"; then :
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5574 $as_echo "yes" >&6; }
5576 $as_echo "#define USE_FREETYPE 1" >>confdefs.h
5578 FREETYPE_CFLAGS="$CPPFLAGS"
5579 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
5580 FREETYPE_LDFLAGS="$LIBS"
5582 $as_echo "#define LINKED_FREETYPE 1" >>confdefs.h
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5591 rm -f core conftest.err conftest.$ac_objext \
5592 conftest$ac_exeext conftest.$ac_ext
5598 CPPFLAGS="$SAVE_CPPFLAGS"
5599 LDFLAGS="$SAVE_LDFLAGS"
5605 #--------------------------------------------------------------------
5606 # Checks for Cairo library
5607 #--------------------------------------------------------------------
5610 # Check whether --with-cairo was given.
5611 if test "${with_cairo+set}" = set; then :
5612 withval=$with_cairo;
5616 SAVE_CPPFLAGS="$CPPFLAGS"
5617 SAVE_LDFLAGS="$LDFLAGS"
5619 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling cairo support" >&5
5621 $as_echo "disabling cairo support" >&6; }
5623 CPPFLAGS=`pkg-config
--cflags cairo
`
5624 LIBS=`pkg-config
--libs cairo
`
5625 ac_fn_cxx_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
5626 if test "x$ac_cv_header_cairo_h" = x""yes; then :
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
5628 $as_echo_n "checking for cairo... " >&6; }
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5638 cairo_surface_t *surface;
5639 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
5645 if ac_fn_cxx_try_link "$LINENO"; then :
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5648 $as_echo "yes" >&6; }
5650 $as_echo "#define USE_CAIRO 1" >>confdefs.h
5652 CAIRO_CFLAGS="$CPPFLAGS"
5653 if test "$with_cairo" = "linked" ; then
5654 CAIRO_LDFLAGS="$LIBS"
5656 $as_echo "#define LINKED_CAIRO 1" >>confdefs.h
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5665 rm -f core conftest.err conftest.$ac_objext \
5666 conftest$ac_exeext conftest.$ac_ext
5672 CPPFLAGS="$SAVE_CPPFLAGS"
5673 LDFLAGS="$SAVE_LDFLAGS"
5679 #--------------------------------------------------------------------
5680 # Checks for Imlib2 library
5681 #--------------------------------------------------------------------
5684 # Check whether --with-imlib2 was given.
5685 if test "${with_imlib2+set}" = set; then :
5686 withval=$with_imlib2;
5690 SAVE_CPPFLAGS="$CPPFLAGS"
5691 SAVE_LDFLAGS="$LDFLAGS"
5693 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling imlib2 support" >&5
5695 $as_echo "disabling imlib2 support" >&6; }
5697 CPPFLAGS=`imlib2-config
--cflags`
5698 LIBS=`imlib2-config
--libs`
5699 ac_fn_cxx_check_header_mongrel "$LINENO" "Imlib2.h" "ac_cv_header_Imlib2_h" "$ac_includes_default"
5700 if test "x$ac_cv_header_Imlib2_h" = x""yes; then :
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for imlib2" >&5
5702 $as_echo_n "checking for imlib2... " >&6; }
5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5706 #include <X11/Xlib.h>
5715 Imlib_Image image= imlib_load_image("");
5721 if ac_fn_cxx_try_link "$LINENO"; then :
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5724 $as_echo "yes" >&6; }
5726 $as_echo "#define USE_IMLIB2 1" >>confdefs.h
5728 IMLIB2_CFLAGS="$CPPFLAGS"
5729 if test "$with_imlib2" = "linked" ; then
5730 IMLIB2_LDFLAGS="$LIBS"
5732 $as_echo "#define LINKED_IMLIB2 1" >>confdefs.h
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5741 rm -f core conftest.err conftest.$ac_objext \
5742 conftest$ac_exeext conftest.$ac_ext
5748 CPPFLAGS="$SAVE_CPPFLAGS"
5749 LDFLAGS="$SAVE_LDFLAGS"
5755 #--------------------------------------------------------------------
5756 # Checks for Axel library
5757 #--------------------------------------------------------------------
5760 # Check whether --with-axel was given.
5761 if test "${with_axel+set}" = set; then :
5766 SAVE_CPPFLAGS="$CPPFLAGS"
5767 SAVE_LDFLAGS="$LDFLAGS"
5769 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling axel support" >&5
5771 $as_echo "disabling axel support" >&6; }
5773 CPPFLAGS=`axel-config
--cflags`
5774 LIBS=`axel-config
--libs`
5775 ac_fn_cxx_check_header_mongrel "$LINENO" "QGui/Viewer.h" "ac_cv_header_QGui_Viewer_h" "$ac_includes_default"
5776 if test "x$ac_cv_header_QGui_Viewer_h" = x""yes; then :
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for axel" >&5
5778 $as_echo_n "checking for axel... " >&6; }
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5782 #include <QGui/Viewer.h>
5794 if ac_fn_cxx_try_link "$LINENO"; then :
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5797 $as_echo "yes" >&6; }
5799 $as_echo "#define USE_AXEL 1" >>confdefs.h
5801 AXEL_CFLAGS="$CPPFLAGS"
5802 if test "$with_axel" = "linked" ; then
5803 AXEL_LDFLAGS="$LIBS"
5805 $as_echo "#define LINKED_AXEL 1" >>confdefs.h
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812 $as_echo "no" >&6; }
5814 rm -f core conftest.err conftest.$ac_objext \
5815 conftest$ac_exeext conftest.$ac_ext
5821 CPPFLAGS="$SAVE_CPPFLAGS"
5822 LDFLAGS="$SAVE_LDFLAGS"
5828 #--------------------------------------------------------------------
5829 # Checks for ghostscript library
5830 #--------------------------------------------------------------------
5833 # Check whether --with-gs was given.
5834 if test "${with_gs+set}" = set; then :
5839 if test "$with_gs" = "no" ; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling ghostscript support" >&5
5841 $as_echo "disabling ghostscript support" >&6; }
5845 GS_EXE="gswin32c.exe"
5846 GS_DLL="gsdll32.dll"
5847 # Extract the first word of "${GS_EXE}", so it can be a program name with args.
5848 set dummy ${GS_EXE}; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_prog_HAS_GS_EXE+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5854 if test -n "$HAS_GS_EXE"; then
5855 ac_cv_prog_HAS_GS_EXE="$HAS_GS_EXE" # Let the user override the test.
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_HAS_GS_EXE="yes"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 test -z "$ac_cv_prog_HAS_GS_EXE" && ac_cv_prog_HAS_GS_EXE="no"
5875 HAS_GS_EXE=$ac_cv_prog_HAS_GS_EXE
5876 if test -n "$HAS_GS_EXE"; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GS_EXE" >&5
5878 $as_echo "$HAS_GS_EXE" >&6; }
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }
5885 # Extract the first word of "${GS_DLL}", so it can be a program name with args.
5886 set dummy ${GS_DLL}; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if test "${ac_cv_prog_HAS_GS_LIB+set}" = set; then :
5890 $as_echo_n "(cached) " >&6
5892 if test -n "$HAS_GS_LIB"; then
5893 ac_cv_prog_HAS_GS_LIB="$HAS_GS_LIB" # Let the user override the test.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_HAS_GS_LIB="yes"
5903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 test -z "$ac_cv_prog_HAS_GS_LIB" && ac_cv_prog_HAS_GS_LIB="no"
5913 HAS_GS_LIB=$ac_cv_prog_HAS_GS_LIB
5914 if test -n "$HAS_GS_LIB"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GS_LIB" >&5
5916 $as_echo "$HAS_GS_LIB" >&6; }
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5925 # Extract the first word of "gs", so it can be a program name with args.
5926 set dummy gs; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if test "${ac_cv_prog_HAS_GS_EXE+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5932 if test -n "$HAS_GS_EXE"; then
5933 ac_cv_prog_HAS_GS_EXE="$HAS_GS_EXE" # Let the user override the test.
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_prog_HAS_GS_EXE="yes"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 test -z "$ac_cv_prog_HAS_GS_EXE" && ac_cv_prog_HAS_GS_EXE="no"
5953 HAS_GS_EXE=$ac_cv_prog_HAS_GS_EXE
5954 if test -n "$HAS_GS_EXE"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GS_EXE" >&5
5956 $as_echo "$HAS_GS_EXE" >&6; }
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5966 if test "x${HAS_GS_EXE}" = "xyes" -a "x${HAS_GS_LIB}" = "xyes"; then
5968 $as_echo "#define USE_GS 1" >>confdefs.h
5970 CONFIG_GS="Ghostscript"
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling ghostscript support" >&5
5976 $as_echo "disabling ghostscript support" >&6; }
5980 #--------------------------------------------------------------------
5981 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
5982 #--------------------------------------------------------------------
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ... arguments behave correctly" >&5
5985 $as_echo_n "checking whether ... arguments behave correctly... " >&6; }
5986 if test -z "$GUILE_CFLAGS"; then
5987 CXXFLAGS="`guile-config compile
`"
5989 CXXFLAGS="$GUILE_CFLAGS"
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5994 #include <guile/gh.h>
5995 #include <libguile.h>
5996 typedef SCM (*FN)(...);
5997 static SCM identity (SCM x) { return x; }
5998 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
6009 if ac_fn_cxx_try_compile "$LINENO"; then :
6012 $as_echo "#define DOTS_OK 1" >>confdefs.h
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6015 $as_echo "yes" >&6; }
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the size_t of guile strings" >&5
6027 $as_echo_n "checking the size_t of guile strings... " >&6; }
6028 if test -z "$GUILE_CFLAGS"; then
6029 CXXFLAGS="`guile-config compile
`"
6031 CXXFLAGS="$GUILE_CFLAGS"
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6036 #include <guile/gh.h>
6037 #include <libguile.h>
6038 void print_string (SCM s) {
6040 char* r= gh_scm2newstr (s, &len_r); }
6051 if ac_fn_cxx_try_compile "$LINENO"; then :
6054 $as_echo "#define guile_str_size_t int" >>confdefs.h
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
6057 $as_echo "int" >&6; }
6062 $as_echo "#define guile_str_size_t size_t" >>confdefs.h
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t" >&5
6065 $as_echo "size_t" >&6; }
6068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if statically linking with guile works" >&5
6072 $as_echo_n "checking if statically linking with guile works... " >&6; }
6073 SAVE_CPPFLAGS="$CPPFLAGS"
6074 SAVE_LDFLAGS="$LDFLAGS"
6076 CPPFLAGS="$GUILE_CFLAGS"
6078 LIBS="$GUILE_LDFLAGS"
6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6082 #include <guile/gh.h>
6090 static void my_main (int argc, char** argv) {}
6091 static void install_guile () {
6093 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
6095 gh_enter (0, NULL, my_main);
6099 dummy::install_guile ();
6105 if ac_fn_cxx_try_link "$LINENO"; then :
6106 tm_link_guile_static="yes"
6108 tm_link_guile_static="no"
6110 rm -f core conftest.err conftest.$ac_objext \
6111 conftest$ac_exeext conftest.$ac_ext
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$tm_link_guile_static\"" >&5
6114 $as_echo "\"$tm_link_guile_static\"" >&6; }
6115 if test "$tm_link_guile_static" = "no" ; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it works with -lltdl" >&5
6117 $as_echo_n "checking if it works with -lltdl... " >&6; }
6118 LIBS="$GUILE_LDFLAGS -lltdl"
6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h. */
6122 #include <guile/gh.h>
6130 static void my_main (int argc, char** argv) {}
6131 static void install_guile () {
6133 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
6135 gh_enter (0, NULL, my_main);
6139 dummy::install_guile ();
6145 if ac_fn_cxx_try_link "$LINENO"; then :
6146 tm_link_guile_static_ltdl="yes"
6148 tm_link_guile_static_ltdl="no"
6150 rm -f core conftest.err conftest.$ac_objext \
6151 conftest$ac_exeext conftest.$ac_ext
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$tm_link_guile_static_ltdl\"" >&5
6154 $as_echo "\"$tm_link_guile_static_ltdl\"" >&6; }
6155 if test "$tm_link_guile_static_ltdl" = "yes" ; then
6156 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl"
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it works with -lltdl -ldl" >&5
6159 $as_echo_n "checking if it works with -lltdl -ldl... " >&6; }
6160 LIBS="$GUILE_LDFLAGS -lltdl -ldl"
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6164 #include <guile/gh.h>
6172 static void my_main (int argc, char** argv) {}
6173 static void install_guile () {
6175 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
6177 gh_enter (0, NULL, my_main);
6181 dummy::install_guile ();
6187 if ac_fn_cxx_try_link "$LINENO"; then :
6188 tm_link_guile_static_ltdl_ldl="yes"
6190 tm_link_guile_static_ltdl_ldl="no"
6192 rm -f core conftest.err conftest.$ac_objext \
6193 conftest$ac_exeext conftest.$ac_ext
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
6196 $as_echo "\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
6197 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
6198 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to link statically with guile" >&5
6201 $as_echo "$as_me: WARNING: unable to link statically with guile" >&2;}
6205 CPPFLAGS="$SAVE_CPPFLAGS"
6206 LDFLAGS="$SAVE_LDFLAGS"
6209 #--------------------------------------------------------------------
6210 # Handle different systems case by case
6211 #--------------------------------------------------------------------
6213 CONFIG_OS="GNU_LINUX"
6214 CONFIG_OS_SUFFIX="gnu-linux"
6215 CONFIG_OS_COMPAT="Unix"
6218 CONFIG_CXXTEMPLATE=""
6219 CONFIG_STD_SETENV="#define STD_SETENV"
6221 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
6222 CONFIG_CHMOD="chmod -f"
6223 CONFIG_CXXOPTIMIZE="-O2"
6224 CONFIG_BSTATIC="-Wl,-Bstatic"
6225 CONFIG_BSHARED="-Wl,-Bdynamic"
6227 CONFIG_BPATH="-Wl,-rpath,"
6229 CONFIG_WORD_LENGTH="4"
6230 CONFIG_WORD_LENGTH_INC="3"
6231 CONFIG_WORD_MASK="0xfffffffc"
6232 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
6233 # tweak for XCode project
6234 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH"
6236 X11_CFLAGS="$X_CFLAGS"
6237 X11_LDFLAGS="$X_LIBS -lXext -lX11"
6239 # The cast to long int works around a bug in the HP C Compiler
6240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6241 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
6242 # This bug is HP SR number 8606223364.
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6244 $as_echo_n "checking size of void *... " >&6; }
6245 if test "${ac_cv_sizeof_void_p+set}" = set; then :
6246 $as_echo_n "(cached) " >&6
6248 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6251 if test "$ac_cv_type_void_p" = yes; then
6252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6253 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
6254 { as_fn_set_status 77
6255 as_fn_error "cannot compute sizeof (void *)
6256 See \`config.log
' for more details." "$LINENO" 5; }; }
6258 ac_cv_sizeof_void_p=0
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6264 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6268 cat >>confdefs.h <<_ACEOF
6269 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are on a 64-bits computer" >&5
6274 $as_echo_n "checking if we are on a 64-bits computer... " >&6; }
6275 if test "$ac_cv_sizeof_void_p" = "8"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6277 $as_echo "yes" >&6; }
6278 CONFIG_WORD_LENGTH="8"
6279 CONFIG_WORD_LENGTH_INC="7"
6280 CONFIG_WORD_MASK="0xfffffffffffffff8"
6281 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6284 $as_echo "no" >&6; }
6288 i*86-*-linux* | x86_64-*-linux*)
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
6290 $as_echo "final adjustments for an Intel or AMD GNU/Linux host" >&6; }
6291 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6293 i*86-*-freebsd* | x86_64-*-freebsd*)
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
6295 $as_echo "final adjustments for an Intel or AMD GNU/BSD host" >&6; }
6296 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMS Solaris host" >&5
6300 $as_echo "final adjustments for an Intel or AMS Solaris host" >&6; }
6301 CONFIG_CXXOPTIMIZE="-O3"
6302 CONFIG_BPATH="-Wl,-R,"
6303 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for mingw host" >&5
6307 $as_echo "final adjustments for mingw host" >&6; }
6308 CONFIG_OS_COMPAT="Windows"
6309 CONFIG_LDRT="-lmingw32 -lmingwex -mwindows"
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for cygwin host" >&5
6313 $as_echo "final adjustments for cygwin host" >&6; }
6315 CONFIG_BFLAGS="-Wl,-stack,8388608"
6316 # CXX="export CYGWIN=check_case:strict; $CXX"
6320 echo "$ac_t""final adjustments for a MacOS host" 1>&6
6322 CONFIG_CXXFLAGS="-I${prefix}/include"
6324 CONFIG_BFLAGS="-framework Cocoa"
6327 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
6330 echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
6331 CONFIG_CXXFLAGS="-I${prefix}/include"
6335 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a PowerPC/GNU-linux host" >&5
6339 $as_echo "final adjustments for a PowerPC/GNU-linux host" >&6; }
6340 CONFIG_OS="POWERPC_GNU_LINUX"
6341 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a SUN/solaris host" >&5
6345 $as_echo "final adjustments for a SUN/solaris host" >&6; }
6347 CONFIG_OS_SUFFIX="sun"
6350 CONFIG_BPATH="-Wl,-R,"
6351 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
6352 CONFIG_WORD_LENGTH="8"
6353 CONFIG_WORD_LENGTH_INC="7"
6354 CONFIG_WORD_MASK="0xfffffff8"
6355 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6356 CONFIG_STD_SETENV=""
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a Sparc host running GNU/Linux" >&5
6360 $as_echo "final adjustments for a Sparc host running GNU/Linux" >&6; }
6361 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6362 CONFIG_WORD_LENGTH="8"
6363 CONFIG_WORD_LENGTH_INC="7"
6364 CONFIG_WORD_MASK="0xfffffff8"
6365 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6366 CONFIG_STD_SETENV=""
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a DEC/alpha host" >&5
6370 $as_echo "final adjustments for a DEC/alpha host" >&6; }
6372 CONFIG_BSHARED="-shared"
6373 CONFIG_STD_SETENV=""
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Alpha GNU/Linux host" >&5
6377 $as_echo "final adjustments for an Alpha GNU/Linux host" >&6; }
6379 CONFIG_BSHARED="-shared"
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
6383 $as_echo "final adjustments for an IBM S/390 GNU/Linux host" >&6; }
6384 CONFIG_STD_SETENV=""
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Itanium GNU/Linux host" >&5
6388 $as_echo "final adjustments for an Itanium GNU/Linux host" >&6; }
6390 CONFIG_BSHARED="-shared"
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
6394 $as_echo "final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
6395 CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
6397 CONFIG_BSHARED="-shared"
6400 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
6407 X11_LDFLAGS="$X_LIBS -lX11"
6408 CONFIG_WORD_MASK="0xfffffff8"
6409 CONFIG_STD_SETENV=""
6410 CONFIG_CHMOD="chmod"
6411 CONFIG_LIB_PATH="LD_LIBRARYN32_PATH"
6413 m68k-*-linux* | mips-*-linux* | mipsel-*-linux* | arm*-*-linux*)
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a supported GNU/Linux host" >&5
6415 $as_echo "final adjustments for a supported GNU/Linux host" >&6; }
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a generic GNU/Linux host" >&5
6419 $as_echo "final adjustments for a generic GNU/Linux host" >&6; }
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a generic host" >&5
6423 $as_echo "final adjustments for a generic host" >&6; }
6429 echo "$ac_t""Xcode 3.2 project tweak (only MacOSX 10.6)" 1>&6
6430 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH_ACTUAL"
6434 #--------------------------------------------------------------------
6435 # Temporary fix for link problem
6436 #--------------------------------------------------------------------
6438 case "$GXX_VERSION" in
6440 CONFIG_BSTATIC="-static"
6441 CONFIG_BSHARED="-dynamic"
6445 #--------------------------------------------------------------------
6446 # Memory allocation options
6447 #--------------------------------------------------------------------
6449 # Check whether --enable-fastalloc was given.
6450 if test "${enable_fastalloc+set}" = set; then :
6451 enableval=$enable_fastalloc;
6453 enable_fastalloc="yes"
6456 case "$enable_fastalloc" in
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling fast allocator for small objects" >&5
6461 $as_echo "disabling fast allocator for small objects" >&6; }
6463 $as_echo "#define NO_FAST_ALLOC 1" >>confdefs.h
6467 as_fn_error "bad option --enable-fastalloc=$enable_fastalloc" "$LINENO" 5
6471 #--------------------------------------------------------------------
6472 # Experimental options
6473 #--------------------------------------------------------------------
6475 # Check whether --enable-experimental was given.
6476 if test "${enable_experimental+set}" = set; then :
6477 enableval=$enable_experimental;
6479 enable_experimental="no"
6482 case "$enable_experimental" in
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental style rewriting code" >&5
6485 $as_echo "enabling experimental style rewriting code" >&6; }
6487 $as_echo "#define EXPERIMENTAL 1" >>confdefs.h
6489 CONFIG_EXPERIMENTAL="Memorizer Environment Evaluate"
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental style rewriting code" >&5
6493 $as_echo "disabling experimental style rewriting code" >&6; }
6494 CONFIG_EXPERIMENTAL=""
6497 as_fn_error "bad option --enable-experimental=$enable_experimental" "$LINENO" 5
6502 #--------------------------------------------------------------------
6503 # MacOS X extensions (spellchecker, image loading)
6504 #--------------------------------------------------------------------
6506 # Check whether --enable-macosx-extensions was given.
6507 if test "${enable_macosx_extensions+set}" = set; then :
6508 enableval=$enable_macosx_extensions;
6510 enable_macosx_extensions="no"
6513 case "$enable_macosx_extensions" in
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling Mac OSX extensions" >&5
6516 $as_echo "enabling Mac OSX extensions" >&6; }
6518 $as_echo "#define MACOSX_EXTENSIONS 1" >>confdefs.h
6520 CONFIG_MACOS="MacOS"
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling Mac OSX extensions" >&5
6524 $as_echo "disabling Mac OSX extensions" >&6; }
6528 as_fn_error "bad option --enable-macosx-extensions=$enable_macosx_extensions" "$LINENO" 5
6533 #--------------------------------------------------------------------
6534 # Experimental PDF renderer
6535 #--------------------------------------------------------------------
6537 # Check whether --enable-pdf-renderer was given.
6538 if test "${enable_pdf_renderer+set}" = set; then :
6539 enableval=$enable_pdf_renderer;
6541 enable_pdf_renderer="no"
6544 case "$enable_pdf_renderer" in
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental PDF renderer" >&5
6547 $as_echo "enabling experimental PDF renderer" >&6; }
6549 $as_echo "#define PDF_RENDERER 1" >>confdefs.h
6551 CONFIG_PDF="Pdf Pdf/dvipdfmx"
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental PDF renderer" >&5
6555 $as_echo "disabling experimental PDF renderer" >&6; }
6559 as_fn_error "bad option --enable-pdf-renderer=$enable_pdf_renderer" "$LINENO" 5
6564 #--------------------------------------------------------------------
6566 #--------------------------------------------------------------------
6572 # Check whether --enable-qt was given.
6573 if test "${enable_qt+set}" = set; then :
6574 enableval=$enable_qt;
6580 case "$enable_qt" in
6583 if test -r "/c/Qt"; then
6585 qt_bin="`dirname $MOC`"
6586 qt_home="`dirname $qt_bin`"
6587 qt_version="`basename $qt_home`"
6588 qt_parent="`dirname $qt_home`"
6589 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."
6590 QT_CXXFLAGS="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
6591 QT_LDFLAGS="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows"
6592 QT_LIBS="-L'c
:/Qt
/$qt_version/lib
' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
6593 if test "$qt_parent" != "/c/Qt"; then
6601 test x"$TROLL" != x && echo 'ViM rox emacs.
'
6604 # Check whether --with-qt was given.
6605 if test "${with_qt+set}" = set; then :
6606 withval=$with_qt; QT_PATH=$withval
6613 if test -d /usr/local/Trolltech; then
6614 # Try to find the latest version.
6615 tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
6616 | xargs | sed 's
/ */:/g
'`
6620 if test -z "$QMAKE"; then
6621 for ac_prog in qmake
6623 # Extract the first word of "$ac_prog", so it can be a program name with args.
6624 set dummy $ac_prog; ac_word=$2
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if test "${ac_cv_path_QMAKE+set}" = set; then :
6628 $as_echo_n "(cached) " >&6
6632 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
6637 for as_dir in $as_dummy
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
6644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 QMAKE=$ac_cv_path_QMAKE
6655 if test -n "$QMAKE"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
6657 $as_echo "$QMAKE" >&6; }
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6664 test -n "$QMAKE" && break
6666 test -n "$QMAKE" || QMAKE="missing"
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QMAKE to use with Qt" >&5
6670 $as_echo_n "checking for the QMAKE to use with Qt... " >&6; }
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
6672 $as_echo "$QMAKE" >&6; }
6674 if test x"$QMAKE" = xmissing; then
6675 as_fn_error "Cannot find qmake in your PATH. Try using --with-qt." "$LINENO" 5
6678 # Find moc (Meta Object Compiler).
6679 if test -z "$MOC"; then
6682 # Extract the first word of "$ac_prog", so it can be a program name with args.
6683 set dummy $ac_prog; ac_word=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if test "${ac_cv_path_MOC+set}" = set; then :
6687 $as_echo_n "(cached) " >&6
6691 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
6696 for as_dir in $as_dummy
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6702 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 if test -n "$MOC"; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
6716 $as_echo "$MOC" >&6; }
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6723 test -n "$MOC" && break
6725 test -n "$MOC" || MOC="missing"
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the MOC to use with Qt" >&5
6729 $as_echo_n "checking for the MOC to use with Qt... " >&6; }
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
6731 $as_echo "$MOC" >&6; }
6733 if test x"$MOC" = xmissing; then
6734 as_fn_error "Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
6737 # Find uic (User Interface Compiler).
6738 if test -z "$UIC"; then
6741 # Extract the first word of "$ac_prog", so it can be a program name with args.
6742 set dummy $ac_prog; ac_word=$2
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744 $as_echo_n "checking for $ac_word... " >&6; }
6745 if test "${ac_cv_path_UIC+set}" = set; then :
6746 $as_echo_n "(cached) " >&6
6750 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
6755 for as_dir in $as_dummy
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6761 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 if test -n "$UIC"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
6775 $as_echo "$UIC" >&6; }
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6782 test -n "$UIC" && break
6784 test -n "$UIC" || UIC="missing"
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the UIC to use with Qt" >&5
6788 $as_echo_n "checking for the UIC to use with Qt... " >&6; }
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
6790 $as_echo "$UIC" >&6; }
6792 if test x"$UIC" = xmissing; then
6793 as_fn_error "Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
6796 # Find rcc (Qt Resource Compiler).
6799 # Extract the first word of "$ac_prog", so it can be a program name with args.
6800 set dummy $ac_prog; ac_word=$2
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802 $as_echo_n "checking for $ac_word... " >&6; }
6803 if test "${ac_cv_path_RCC+set}" = set; then :
6804 $as_echo_n "(cached) " >&6
6808 ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
6813 for as_dir in $as_dummy
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6819 ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 if test -n "$RCC"; then
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
6833 $as_echo "$RCC" >&6; }
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 $as_echo "no" >&6; }
6840 test -n "$RCC" && break
6842 test -n "$RCC" || RCC="false"
6844 if test x"$UIC" = xfalse; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
6846 $as_echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
6849 # If we don't know the path to Qt
, guess it from the path to qmake.
6850 if test x
"$QT_PATH" = x
; then
6851 QT_PATH
=`dirname "$QMAKE"`
6853 if test x
"$QT_PATH" = x
; then
6854 as_fn_error
"Cannot find the path to your Qt install. Use --with-qt." "$LINENO" 5
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_PATH to use with Qt" >&5
6858 $as_echo_n "checking for the QT_PATH to use with Qt... " >&6; }
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_PATH" >&5
6860 $as_echo "$QT_PATH" >&6; }
6862 # Get ready to build a test-app with Qt.
6864 # Look for a writable temporary directory.
6866 if test x
"$TMPDIR" = x ||
test ! -d "$TMPDIR" ||
test ! -w "$TMPDIR"; then
6867 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
6869 for i
in /tmp
/var
/tmp
; do
6870 if test -d "$i" && test -w "$i"; then
6873 echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
6879 # Kludge!! QMake has a very strange behavior. For instance, if you
6880 # install Qt under your $HOME and run QMake somewhere else under your
6881 # $HOME, it will try to be clever and produce Makefiles with relative
6882 # include paths. In order to avoid this, we will test QMake from a
6883 # temporary directory (usually /tmp). Note that this problem was only
6884 # observed with Qt 4.
6885 my_configure_pwd
=`pwd`
6886 my_tmpdir
="$TMPDIR/conftest$$.dir"
6887 test -d "$my_tmpdir" || mkdir
"$my_tmpdir"
6888 if test -w "$my_tmpdir" && cd "$my_tmpdir"
6892 as_fn_error
"Cannot cd to or write in $my_tmpdir" "$LINENO" 5
6894 cat >conftest.h
<<_ASEOF
6897 class Foo: public QObject
6904 void setValue(int value);
6906 void valueChanged(int newValue);
6912 cat >conftest.cpp
<<_ASEOF
6913 #include "conftest.h"
6917 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
6920 void Foo::setValue(int value)
6930 if $QMAKE -project; then :; else
6931 as_fn_error
"Calling $QMAKE -project failed." "$LINENO" 5
6934 # Find the .pro file generated by qmake.
6935 pro_file
='conftest.dir.pro'
6936 test -f $pro_file || pro_file
=`echo *.pro`
6937 if test -f "$pro_file"; then :; else
6938 as_fn_error
"Can't find the .pro file generated by Qmake." "$LINENO" 5
6947 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
6948 sed 's/^/| /' "$pro_file" >&5
6950 additional_qmake_flags
=""
6953 additional_qmake_flags
="-spec macx-g++"
6957 if $QMAKE ${additional_qmake_flags} ; then :; else
6958 as_fn_error
"Calling $QMAKE failed." "$LINENO" 5
6960 # Try to compile a simple Qt app.
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a simple Qt app" >&5
6962 $as_echo_n "checking whether we can build a simple Qt app... " >&6; }
6963 if test "${at_cv_qt_build+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
6969 if $MAKE >&5 2>&1; then
6970 at_cv_qt_build
='ok, looks like Qt 4'
6972 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
6974 sed 's/<QObject>/<qobject.h>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
6975 if $MAKE >&5 2>&1; then
6976 at_cv_qt_build
='ok, looks like Qt 3'
6978 # Sometimes (such as on Debian) build will fail because Qt hasn't been
6979 # installed in debug mode and qmake tries (by default) to build apps in
6980 # debug mode => Try again in release mode.
6981 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
6984 # Tweak the value of CONFIG in the .pro file for +release.
6987 for at_mod
in +release
; do
6988 at_mod
=`echo "$at_mod" | sed 's/^-//; tough
6997 echo "$qt_conf" |
sed 1d
>>"$pro_file"
7000 sed 's/<qobject.h>/<QObject>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
7001 if $MAKE >&5 2>&1; then
7002 at_cv_qt_build
='ok, looks like Qt 4, release mode forced'
7004 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
7006 sed 's/<QObject>/<qobject.h>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
7007 if $MAKE >&5 2>&1; then
7008 at_cv_qt_build
='ok, looks like Qt 3, release mode forced'
7011 echo "$as_me:$LINENO: failed program was:" >&5
7012 sed 's/^/| /' conftest.h
>&5
7013 echo "$as_me:$LINENO: failed program was:" >&5
7014 sed 's/^/| /' conftest.cpp
>&5
7015 fi # if make with Qt3-style #include and release mode forced.
7016 fi # if make with Qt4-style #include and release mode forced.
7017 fi # if make with Qt3-style #include.
7018 fi # if make with Qt4-style #include.
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_qt_build" >&5
7022 $as_echo "$at_cv_qt_build" >&6; }
7023 if test x
"$at_cv_qt_build" = xko
; then
7024 as_fn_error
"Cannot build a test Qt program" "$LINENO" 5
7026 QT_VERSION_MAJOR
=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
7029 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
7030 # It starts by removing the beginning of the line, removing references to
7031 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
7032 # all variable uses by QT_.
7033 qt_sed_filter
='s///;
7036 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
7038 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
7039 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
7040 # Makefile.Release. The reason is that the main difference is that release
7041 # uses -Os and debug -g. We can override -Os by passing another -O but we
7042 # usually don't override -g.
7043 if test -f Makefile.Release
; then
7044 at_mfile
='Makefile.Release'
7048 if test -f $at_mfile; then :; else
7049 cd "$my_configure_pwd"
7050 as_fn_error
"Cannot find the Makefile generated by qmake." "$LINENO" 5
7053 # Find the DEFINES of Qt (should have been named CPPFLAGS).
7054 if test -z "$QT_DEFINES"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the DEFINES to use with Qt" >&5
7056 $as_echo_n "checking for the DEFINES to use with Qt... " >&6; }
7057 if test "${at_cv_env_QT_DEFINES+set}" = set; then :
7058 $as_echo_n "(cached) " >&6
7060 at_cv_env_QT_DEFINES
=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_DEFINES" >&5
7063 $as_echo "$at_cv_env_QT_DEFINES" >&6; }
7064 QT_DEFINES
="$at_cv_env_QT_DEFINES"
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_DEFINES to use with Qt" >&5
7068 $as_echo_n "checking for the QT_DEFINES to use with Qt... " >&6; }
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_DEFINES" >&5
7070 $as_echo "$QT_DEFINES" >&6; }
7072 # Find the CFLAGS of Qt (We can use Qt in C?!)
7073 if test -z "$QT_CFLAGS"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CFLAGS to use with Qt" >&5
7075 $as_echo_n "checking for the CFLAGS to use with Qt... " >&6; }
7076 if test "${at_cv_env_QT_CFLAGS+set}" = set; then :
7077 $as_echo_n "(cached) " >&6
7079 at_cv_env_QT_CFLAGS
=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CFLAGS" >&5
7082 $as_echo "$at_cv_env_QT_CFLAGS" >&6; }
7083 QT_CFLAGS
="$at_cv_env_QT_CFLAGS"
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_CFLAGS to use with Qt" >&5
7087 $as_echo_n "checking for the QT_CFLAGS to use with Qt... " >&6; }
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
7089 $as_echo "$QT_CFLAGS" >&6; }
7091 # Find the CXXFLAGS of Qt.
7092 if test -z "$QT_CXXFLAGS"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CXXFLAGS to use with Qt" >&5
7094 $as_echo_n "checking for the CXXFLAGS to use with Qt... " >&6; }
7095 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then :
7096 $as_echo_n "(cached) " >&6
7098 at_cv_env_QT_CXXFLAGS
=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CXXFLAGS" >&5
7101 $as_echo "$at_cv_env_QT_CXXFLAGS" >&6; }
7102 QT_CXXFLAGS
="$at_cv_env_QT_CXXFLAGS"
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_CXXFLAGS to use with Qt" >&5
7106 $as_echo_n "checking for the QT_CXXFLAGS to use with Qt... " >&6; }
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CXXFLAGS" >&5
7108 $as_echo "$QT_CXXFLAGS" >&6; }
7110 # Find the INCPATH of Qt.
7111 if test -z "$QT_INCPATH"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the INCPATH to use with Qt" >&5
7113 $as_echo_n "checking for the INCPATH to use with Qt... " >&6; }
7114 if test "${at_cv_env_QT_INCPATH+set}" = set; then :
7115 $as_echo_n "(cached) " >&6
7117 at_cv_env_QT_INCPATH
=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_INCPATH" >&5
7120 $as_echo "$at_cv_env_QT_INCPATH" >&6; }
7121 QT_INCPATH
="$at_cv_env_QT_INCPATH"
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_INCPATH to use with Qt" >&5
7125 $as_echo_n "checking for the QT_INCPATH to use with Qt... " >&6; }
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_INCPATH" >&5
7127 $as_echo "$QT_INCPATH" >&6; }
7129 QT_CPPFLAGS
="$QT_DEFINES $QT_INCPATH"
7132 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
7133 if test -z "$QT_LDFLAGS"; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LDFLAGS to use with Qt" >&5
7135 $as_echo_n "checking for the LDFLAGS to use with Qt... " >&6; }
7136 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then :
7137 $as_echo_n "(cached) " >&6
7139 at_cv_env_QT_LDFLAGS
=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LDFLAGS" >&5
7142 $as_echo "$at_cv_env_QT_LDFLAGS" >&6; }
7143 QT_LDFLAGS
="$at_cv_env_QT_LDFLAGS"
7146 QT_LFLAGS
=$QT_LDFLAGS
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_LDFLAGS to use with Qt" >&5
7149 $as_echo_n "checking for the QT_LDFLAGS to use with Qt... " >&6; }
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LDFLAGS" >&5
7151 $as_echo "$QT_LDFLAGS" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host operating system is Darwin" >&5
7154 $as_echo_n "checking whether host operating system is Darwin... " >&6; }
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_darwin" >&5
7162 $as_echo "$at_darwin" >&6; }
7164 # Find the LIBS of Qt.
7165 if test -z "$QT_LIBS"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LIBS to use with Qt" >&5
7167 $as_echo_n "checking for the LIBS to use with Qt... " >&6; }
7168 if test "${at_cv_env_QT_LIBS+set}" = set; then :
7169 $as_echo_n "(cached) " >&6
7171 at_cv_env_QT_LIBS
=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
7172 if test x
$at_darwin = xyes
; then
7173 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
7174 # -F properly. The "bug" has been fixed on 22 October 2006
7175 # by Peter O'Gorman but we provide backward compatibility here.
7176 at_cv_env_QT_LIBS
=`echo "$at_cv_env_QT_LIBS" \
7177 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LIBS" >&5
7182 $as_echo "$at_cv_env_QT_LIBS" >&6; }
7183 QT_LIBS
="$at_cv_env_QT_LIBS"
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_LIBS to use with Qt" >&5
7187 $as_echo_n "checking for the QT_LIBS to use with Qt... " >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
7189 $as_echo "$QT_LIBS" >&6; }
7191 cd "$my_configure_pwd" ||
echo 'WTF!'
7196 if test x
"$at_cv_qt_build" = xko
; then
7197 as_fn_error
"cannot find Qt!" "$LINENO" 5
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental Qt port" >&5
7200 $as_echo "enabling experimental Qt port" >&6; }
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental Qt port" >&5
7206 $as_echo "disabling experimental Qt port" >&6; }
7209 as_fn_error
"bad option --enable-qt=$enable_qt" "$LINENO" 5
7213 # Check whether --enable-cocoa was given.
7214 if test "${enable_cocoa+set}" = set; then :
7215 enableval
=$enable_cocoa;
7220 case "$enable_cocoa" in
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental Cocoa port" >&5
7223 $as_echo "enabling experimental Cocoa port" >&6; }
7225 COCOA_LDFLAGS
="-framework Cocoa"
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental Cocoa port" >&5
7230 $as_echo "disabling experimental Cocoa port" >&6; }
7233 as_fn_error
"bad option --enable-cocoa=$enable_cocoa" "$LINENO" 5
7237 case "$CONFIG_GUI" in
7239 CONFIG_X11
="X11 Widkit"
7240 if test "x${CONFIG_GS}" != "xGhostscript"; then
7241 CONFIG_X11
="$CONFIG_X11 Ghostscript"
7243 CONFIG_GUI_DEFINE
="X11TEXMACS"
7244 # AC_DEFINE(X11TEXMACS, 1, [Use standard X11 port])
7247 CONFIG_COCOA
="Cocoa"
7248 CONFIG_GUI_DEFINE
="AQUATEXMACS"
7249 # AC_DEFINE(AQUATEXMACS, 1, [Enable experimental Cocoa port])
7253 CONFIG_GUI_DEFINE
="QTTEXMACS"
7254 # AC_DEFINE(QTTEXMACS, 1, [Enable experimental Qt port])
7271 #--------------------------------------------------------------------
7273 #--------------------------------------------------------------------
7275 STD_DEBUG_FLAGS
="-fno-rtti -fno-exceptions"
7276 if test "$enable_cocoa" = "yes"; then
7277 STD_DEBUG_FLAGS
="-fno-exceptions"
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports $STD_DEBUG_FLAGS" >&5
7281 $as_echo_n "checking if compiler supports $STD_DEBUG_FLAGS... " >&6; }
7282 CXXFLAGS
="$STD_DEBUG_FLAGS"
7283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7286 int some_variable = 0;
7297 if ac_fn_cxx_try_compile
"$LINENO"; then :
7299 CONFIG_CXXDIALECT
="$STD_DEBUG_FLAGS"
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7301 $as_echo "yes" >&6; }
7305 CONFIG_CXXDIALECT
=""
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7314 # Check whether --enable-debug was given.
7315 if test "${enable_debug+set}" = set; then :
7316 enableval
=$enable_debug;
7322 if test "$enable_debug" = "yes"; then
7323 if test "$GXX" = "yes"; then
7324 enable_debug
="-ggdb"
7330 if test "$enable_debug" = "no"; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling debugging" >&5
7332 $as_echo "disabling debugging" >&6; }
7333 CONFIG_STRIP
="strip"
7335 optimize_default
="yes"
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling debugging, $enable_debug" >&5
7338 $as_echo "enabling debugging, $enable_debug" >&6; }
7340 CONFIG_CXXDEBUG
="$enable_debug"
7341 optimize_default
="no"
7344 # Check whether --enable-assert was given.
7345 if test "${enable_assert+set}" = set; then :
7346 enableval
=$enable_assert;
7352 if test "$enable_assert" = "no"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling assertion checking" >&5
7354 $as_echo "disabling assertion checking" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling assertion checking" >&5
7357 $as_echo "enabling assertion checking" >&6; }
7359 $as_echo "#define DEBUG_ASSERT 1" >>confdefs.h
7363 #--------------------------------------------------------------------
7365 #--------------------------------------------------------------------
7367 case "$GXX_VERSION" in
7369 CONFIG_CXXWARNING
="";
7372 CONFIG_CXXWARNING
="-Wall -Wno-return-type"
7376 # Check whether --enable-warnings was given.
7377 if test "${enable_warnings+set}" = set; then :
7378 enableval
=$enable_warnings;
7380 enable_warnings
="yes"
7383 case "$enable_warnings" in
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling warning flags $CONFIG_CXXWARNING" >&5
7386 $as_echo "enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
7388 CONFIG_CXXWARNING
=""
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling warning flags" >&5
7390 $as_echo "disabling warning flags" >&6; } ;;
7392 CONFIG_CXXWARNING
="$enable_warnings"
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling warning flags $CONFIG_CXXWARNING" >&5
7394 $as_echo "enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
7397 #--------------------------------------------------------------------
7398 # Optimization options
7399 #--------------------------------------------------------------------
7401 if test "$optimize_default" = "yes"; then
7402 case "$GXX_VERSION" in
7403 3.3.3 |
3.3.4 |
4.
*)
7405 2.96 |
3.0 |
3.0.
* |
3.1 |
3.1.
* |
3.2 |
3.2.
* |
3.3 |
3.3.
*)
7407 i
*86-*-linux-gnu* | i
*86-*-freebsd*)
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using g++ 3.*, optimize without inline by default" >&5
7409 $as_echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
7410 optimize_default
="no-inline"
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using g++ 3.*, optimize without inline by default" >&5
7414 $as_echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
7415 optimize_default
="no-inline"
7422 # Check whether --enable-optimize was given.
7423 if test "${enable_optimize+set}" = set; then :
7424 enableval
=$enable_optimize;
7426 enable_optimize
="$optimize_default"
7430 case "$enable_optimize" in
7432 # keep optimization options
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
7434 $as_echo "enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
7436 optimize_no_inline
="-fno-default-inline -fno-inline"
7437 CONFIG_CXXOPTIMIZE
="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
7439 $as_echo "enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
7441 CONFIG_CXXOPTIMIZE
=""
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling optimizations" >&5
7443 $as_echo "disabling optimizations" >&6; } ;;
7445 CONFIG_CXXOPTIMIZE
="$enable_optimize"
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: customizing optimizations, $enable_optimize" >&5
7447 $as_echo "customizing optimizations, $enable_optimize" >&6; } ;;
7450 #--------------------------------------------------------------------
7451 # Substitute TeXmacs specific configuration parameters
7452 #--------------------------------------------------------------------
7478 #--------------------------------------------------------------------
7479 # Default paths for installation
7480 #--------------------------------------------------------------------
7482 if test "$prefix" = ""; then
7485 if test "$prefix" = "NONE"; then
7488 if test "$exec_prefix" = ""; then
7489 exec_prefix
='${prefix}'
7491 if test "$exec_prefix" = "NONE"; then
7492 exec_prefix
='${prefix}'
7494 if test "$exec_prefix" = '${prefix}'; then
7495 exec_prefix
='${prefix}'
7497 if test "$includedir" = ""; then
7498 includedir
='${prefix}/include'
7500 if test "$includedir" = "NONE"; then
7501 includedir
='${prefix}/include'
7503 if test "$includedir" = '${prefix}/include'; then
7504 includedir
='${prefix}/include'
7506 if test "$libdir" = ""; then
7507 libdir
='${exec_prefix}/lib'
7509 if test "$libdir" = "NONE"; then
7510 libdir
='${exec_prefix}/lib'
7512 if test "$libdir" = '${exec_prefix}/lib'; then
7513 libdir
='${exec_prefix}/lib'
7515 if test "$bindir" = ""; then
7516 bindir
='${exec_prefix}/bin'
7518 if test "$bindir" = "NONE"; then
7519 bindir
=${exec_prefix}/bin
7521 if test "$bindir" = '${exec_prefix}/bin'; then
7522 bindir
='${exec_prefix}/bin'
7524 if test "$datarootdir" = ""; then
7525 datarootdir
='${prefix}/share'
7527 if test "$datarootdir" = "NONE"; then
7528 datarootdir
='${prefix}/share'
7530 if test "$datarootdir" = '${prefix}/share'; then
7531 datarootdir
='${prefix}/share'
7533 if test "$datadir" = ""; then
7534 datadir
='${prefix}/share'
7536 if test "$datadir" = "NONE"; then
7537 datadir
='${prefix}/share'
7539 if test "$datadir" = '${prefix}/share'; then
7540 datadir
='${prefix}/share'
7542 if test "$mandir" = ""; then
7543 mandir
='${datarootdir}/man'
7545 if test "$mandir" = "NONE"; then
7546 mandir
='${datarootdir}/man'
7548 if test "$mandir" = '${datarootdir}/man'; then
7549 mandir
='${datarootdir}/man'
7551 if test "$libexecdir" = ""; then
7552 libexecdir
='${exec_prefix}/libexec'
7554 if test "$libexecdir" = "NONE"; then
7555 libexecdir
='${exec_prefix}/libexec'
7557 if test "$libexecdir" = '${exec_prefix}/libexec'; then
7558 libexecdir
='${exec_prefix}/libexec'
7564 tmsrc
=${curdir}/${tmdir}
7565 tmbin
=${libexecdir}/${tmdir}
7566 tmdata
=${datadir}/${tmdir}
7573 if test "$DEVEL_RELEASE" = "1"; then
7574 tmtgz
=${PACKAGE}-${DEVEL_VERSION}
7576 tmtgz
=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
7578 tmrpm
=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
7579 if test "$STABLE_RELEASE" = "1"; then
7580 tmstgz
=${PACKAGE}-${STABLE_VERSION}
7582 tmstgz
=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
7584 tmsrpm
=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
7585 if test "$WINDOWS_RELEASE" = "1"; then
7586 tmwin
=wintexmacs-
${WINDOWS_VERSION}
7588 tmwin
=wintexmacs-
${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
7596 #--------------------------------------------------------------------
7598 #--------------------------------------------------------------------
7600 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"
7602 cat >confcache
<<\_ACEOF
7603 # This file is a shell script that caches the results of configure
7604 # tests run on this system so they can be shared between configure
7605 # scripts and configure runs, see configure's option --config-cache.
7606 # It is not useful on other systems. If it contains results you don't
7607 # want to keep, you may remove or edit it.
7609 # config.status only pays attention to the cache file if you give it
7610 # the --recheck option to rerun configure.
7612 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7613 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7618 # The following way of writing the cache mishandles newlines in values,
7619 # but we know of no workaround that is simple, portable, and efficient.
7620 # So, we kill variables containing newlines.
7621 # Ultrix sh set writes to stderr and can't be redirected directly,
7622 # and sets the high bit in the cache file unless we assign to the vars.
7624 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7625 eval ac_val
=\$
$ac_var
7629 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7630 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7633 _ | IFS | as_nl
) ;; #(
7634 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7635 *) { eval $ac_var=; unset $ac_var;} ;;
7641 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7642 *${as_nl}ac_space
=\
*)
7643 # `set' does not quote correctly, so add quotes: double-quote
7644 # substitution turns \\\\ into \\, and sed turns \\ into \.
7647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7650 # `set' quotes correctly as required by POSIX, so do not add quotes.
7651 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7660 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7662 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7664 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7665 if test -w "$cache_file"; then
7666 test "x$cache_file" != "x/dev/null" &&
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7668 $as_echo "$as_me: updating cache $cache_file" >&6;}
7669 cat confcache
>$cache_file
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7672 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7677 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7678 # Let make expand exec_prefix.
7679 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7681 DEFS
=-DHAVE_CONFIG_H
7685 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7686 # 1. Remove the extension, and $U if already installed.
7687 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7688 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7689 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7690 # will be set to the directory where LIBOBJS objects are built.
7691 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7692 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7696 LTLIBOBJS
=$ac_ltlibobjs
7700 : ${CONFIG_STATUS=./config.status}
7702 ac_clean_files_save
=$ac_clean_files
7703 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7705 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7707 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7709 # Generated by $as_me.
7710 # Run this file to recreate the current configuration.
7711 # Compiler output produced by configure, useful for debugging
7712 # configure, is in config.log if it exists.
7718 SHELL=\${CONFIG_SHELL-$SHELL}
7721 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7722 ## -------------------- ##
7723 ## M4sh Initialization. ##
7724 ## -------------------- ##
7726 # Be more Bourne compatible
7727 DUALCASE
=1; export DUALCASE
# for MKS sh
7728 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7731 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7732 # is contrary to our usage. Disable this feature.
7733 alias -g '${1+"$@"}'='"$@"'
7734 setopt NO_GLOB_SUBST
7736 case `(set -o) 2>/dev/null` in #(
7748 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7749 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7750 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7752 # Prefer a ksh shell builtin over an external printf program on Solaris,
7753 # but without wasting forks for bash or zsh.
7754 if test -z "$BASH_VERSION$ZSH_VERSION" \
7755 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7756 as_echo='print
-r --'
7757 as_echo_n='print
-rn --'
7758 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7759 as_echo='printf %s
\n'
7760 as_echo_n='printf %s
'
7762 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7763 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7764 as_echo_n='/usr
/ucb
/echo -n'
7766 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7767 as_echo_n_body='eval
7771 expr "X$arg" : "X\\(.*\\)$as_nl";
7772 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7774 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7776 export as_echo_n_body
7777 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7780 as_echo='sh
-c $as_echo_body as_echo
'
7783 # The user is always right.
7784 if test "${PATH_SEPARATOR+set}" != set; then
7786 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7787 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7794 # We need space, tab and new line, in precisely that order. Quoting is
7795 # there to prevent editors from complaining about space-tab.
7796 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7797 # splitting by setting IFS to empty value.)
7800 # Find who we are. Look in the path if we contain no directory separator.
7802 *[\\/]* ) as_myself=$0 ;;
7803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 test -z "$as_dir" && as_dir=.
7808 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7814 # We did not find ourselves, most probably we were run as `sh COMMAND'
7815 # in which case we are not to be found in the path.
7816 if test "x$as_myself" = x
; then
7819 if test ! -f "$as_myself"; then
7820 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7824 # Unset variables that we do not need and which cause bugs (e.g. in
7825 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7826 # suppresses any "Segmentation fault" message there. '((' could
7827 # trigger a bug in pdksh 5.2.14.
7828 for as_var
in BASH_ENV ENV MAIL MAILPATH
7829 do eval test x\
${$as_var+set} = xset \
7830 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7843 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7846 # as_fn_error ERROR [LINENO LOG_FD]
7847 # ---------------------------------
7848 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7849 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7850 # script with status $?, using 1 if that was 0.
7853 as_status
=$?
; test $as_status -eq 0 && as_status
=1
7855 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7856 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7858 $as_echo "$as_me: error: $1" >&2
7859 as_fn_exit
$as_status
7863 # as_fn_set_status STATUS
7864 # -----------------------
7865 # Set $? to STATUS, without forking.
7869 } # as_fn_set_status
7873 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7883 # Portably unset VAR.
7886 { eval $1=; unset $1;}
7888 as_unset
=as_fn_unset
7889 # as_fn_append VAR VALUE
7890 # ----------------------
7891 # Append the text in VALUE to the end of the definition contained in VAR. Take
7892 # advantage of any shell optimizations that allow amortized linear growth over
7893 # repeated appends, instead of the typical quadratic growth present in naive
7895 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7896 eval 'as_fn_append ()
7907 # as_fn_arith ARG...
7908 # ------------------
7909 # Perform arithmetic evaluation on the ARGs, and store the result in the
7910 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7911 # must be portable across $(()) and expr.
7912 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7913 eval 'as_fn_arith ()
7920 as_val
=`expr "$@" || test $? -eq 1`
7925 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7926 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7932 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7933 as_basename
=basename
7938 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7944 as_me
=`$as_basename -- "$0" ||
7945 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7946 X"$0" : 'X\(//\)$' \| \
7947 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7949 sed '/^.*\/\([^/][^/]*\)\/*$/{
7963 # Avoid depending upon Character Ranges.
7964 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7965 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7966 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7967 as_cr_digits
='0123456789'
7968 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7970 ECHO_C
= ECHO_N
= ECHO_T
=
7971 case `echo -n x` in #(((((
7973 case `echo 'xy\c'` in
7974 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7976 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7983 rm -f conf$$ conf$$.exe conf$$.
file
7984 if test -d conf$$.dir
; then
7985 rm -f conf$$.dir
/conf$$.
file
7988 mkdir conf$$.dir
2>/dev
/null
7990 if (echo >conf$$.
file) 2>/dev
/null
; then
7991 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7993 # ... but there are two gotchas:
7994 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7995 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7996 # In both cases, we have to default to `cp -p'.
7997 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7999 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8007 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8008 rmdir conf$$.dir
2>/dev
/null
8013 # Create "$as_dir" as a directory, including parents if necessary.
8018 -*) as_dir
=.
/$as_dir;;
8020 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8024 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8025 *) as_qdir
=$as_dir;;
8027 as_dirs
="'$as_qdir' $as_dirs"
8028 as_dir
=`$as_dirname -- "$as_dir" ||
8029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8030 X"$as_dir" : 'X\(//\)[^/]' \| \
8031 X"$as_dir" : 'X\(//\)$' \| \
8032 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8033 $as_echo X"$as_dir" |
8034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8051 test -d "$as_dir" && break
8053 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8054 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
8058 if mkdir
-p .
2>/dev
/null
; then
8059 as_mkdir_p
='mkdir -p "$as_dir"'
8061 test -d .
/-p && rmdir .
/-p
8065 if test -x / >/dev
/null
2>&1; then
8068 if ls -dL / >/dev
/null
2>&1; then
8075 if test -d "$1"; then
8081 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8082 ???[sx]*):;;*)false;;esac;fi
8086 as_executable_p
=$as_test_x
8088 # Sed expression to map a string onto a valid CPP name.
8089 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8091 # Sed expression to map a string onto a valid variable name.
8092 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8096 ## ----------------------------------- ##
8097 ## Main body of $CONFIG_STATUS script. ##
8098 ## ----------------------------------- ##
8100 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8103 # Save the log message, to keep $0 and so on meaningful, and to
8104 # report actual input values of CONFIG_FILES etc. instead of their
8105 # values after options handling.
8107 This file was extended by $as_me, which was
8108 generated by GNU Autoconf 2.64. Invocation command line was
8110 CONFIG_FILES = $CONFIG_FILES
8111 CONFIG_HEADERS = $CONFIG_HEADERS
8112 CONFIG_LINKS = $CONFIG_LINKS
8113 CONFIG_COMMANDS = $CONFIG_COMMANDS
8116 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8121 case $ac_config_files in *"
8122 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8125 case $ac_config_headers in *"
8126 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8131 # Files that config.status was made for.
8132 config_files="$ac_config_files"
8133 config_headers="$ac_config_headers"
8137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8139 \`$as_me' instantiates files and other configuration actions
8140 from templates according to the current configuration. Unless the files
8141 and actions are specified as TAGs, all are instantiated by default.
8143 Usage: $0 [OPTION]... [TAG]...
8145 -h, --help print this help, then exit
8146 -V, --version print version number and configuration settings, then exit
8147 -q, --quiet, --silent
8148 do not print progress messages
8149 -d, --debug don't remove temporary files
8150 --recheck update $as_me by reconfiguring in the same conditions
8151 --file=FILE[:TEMPLATE]
8152 instantiate the configuration file FILE
8153 --header=FILE[:TEMPLATE]
8154 instantiate the configuration header FILE
8156 Configuration files:
8159 Configuration headers:
8162 Report bugs to the package provider."
8165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8168 configured by $0, generated by GNU Autoconf 2.64,
8169 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8171 Copyright (C) 2009 Free Software Foundation, Inc.
8172 This config.status script is free software; the Free Software Foundation
8173 gives unlimited permission to copy, distribute and modify it."
8177 test -n "\$AWK" || AWK=awk
8180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8181 # The default lists apply if the user does not specify any file.
8187 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8188 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8199 # Handling of the options.
8200 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8202 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8203 $as_echo "$ac_cs_version"; exit ;;
8204 --debug |
--debu |
--deb |
--de |
--d |
-d )
8206 --file |
--fil |
--fi |
--f )
8209 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8211 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8212 ac_need_defaults
=false
;;
8213 --header |
--heade |
--head |
--hea )
8216 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8218 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8219 ac_need_defaults
=false
;;
8221 # Conflict between --help and --header
8222 as_fn_error
"ambiguous option: \`$1'
8223 Try \`$0 --help' for more information.";;
8224 --help |
--hel |
-h )
8225 $as_echo "$ac_cs_usage"; exit ;;
8226 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8227 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8231 -*) as_fn_error
"unrecognized option: \`$1'
8232 Try \`$0 --help' for more information." ;;
8234 *) as_fn_append ac_config_targets
" $1"
8235 ac_need_defaults
=false
;;
8241 ac_configure_extra_args
=
8243 if $ac_cs_silent; then
8245 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8250 if \$ac_cs_recheck; then
8251 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8253 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8254 CONFIG_SHELL='$SHELL'
8260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8264 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8265 ## Running $as_me. ##
8271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8276 # Handling of arguments.
8277 for ac_config_target
in $ac_config_targets
8279 case $ac_config_target in
8280 "src/System/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
8281 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile:Makefile.in" ;;
8282 "src/makefile") CONFIG_FILES
="$CONFIG_FILES src/makefile:src/makefile.in" ;;
8283 "src/System/tm_configure.hpp") CONFIG_FILES
="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
8284 "misc/admin/admin.makefile") CONFIG_FILES
="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
8285 "misc/doxygen/Doxyfile") CONFIG_FILES
="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
8286 "misc/man/texmacs.1") CONFIG_FILES
="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
8287 "misc/rpm/TeXmacs.spec") CONFIG_FILES
="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
8288 "misc/scripts/fig2ps") CONFIG_FILES
="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
8289 "misc/scripts/texmacs") CONFIG_FILES
="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
8290 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES
="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
8291 "misc/bundle/Base.xcconfig") CONFIG_FILES
="$CONFIG_FILES misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in" ;;
8293 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8298 # If the user did not use the arguments to specify the items to instantiate,
8299 # then the envvar interface is used. Set only those that are not.
8300 # We use the long form for the default assignment because of an extremely
8301 # bizarre bug on SunOS 4.1.3.
8302 if $ac_need_defaults; then
8303 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8304 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8307 # Have a temporary directory for convenience. Make it in the build tree
8308 # simply because there is no reason against having it here, and in addition,
8309 # creating and moving files from /tmp can sometimes cause problems.
8310 # Hook for its removal unless debugging.
8311 # Note that there is a small window in which the directory will not be cleaned:
8312 # after its creation but before its name has been assigned to `$tmp'.
8316 trap 'exit_status=$?
8317 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8319 trap 'as_fn_exit 1' 1 2 13 15
8321 # Create a (secure) tmp directory for tmp files.
8324 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8325 test -n "$tmp" && test -d "$tmp"
8328 tmp
=.
/conf$$
-$RANDOM
8329 (umask 077 && mkdir
"$tmp")
8330 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
8332 # Set up the scripts for CONFIG_FILES section.
8333 # No need to generate them if there are no CONFIG_FILES.
8334 # This happens for instance with `./config.status config.h'.
8335 if test -n "$CONFIG_FILES"; then
8338 ac_cr
=`echo X | tr X '\015'`
8339 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8340 # But we know of no other shell where ac_cr would be empty at this
8341 # point, so we can use a bashism as a fallback.
8342 if test "x$ac_cr" = x
; then
8343 eval ac_cr
=\$
\'\\r
\'
8345 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8346 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8352 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8357 echo "cat >conf$$subs.awk <<_ACEOF" &&
8358 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8361 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8362 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8364 for ac_last_try in false false false false false :; do
8365 . ./conf$$subs.sh ||
8366 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8368 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8369 if test $ac_delim_n = $ac_delim_num; then
8371 elif $ac_last_try; then
8372 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8374 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8380 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
8384 s/^/S["/; s
/!.
*/"]=/
8394 s/\(.\{148\}\).*/\1/
8396 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8401 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8408 s/\(.\{148\}\).*/\1/
8410 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8414 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8419 ' <conf$$subs.awk | sed '
8424 ' >>$CONFIG_STATUS || ac_write_fail=1
8425 rm -f conf$$subs.awk
8426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8428 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
8429 for (key in S) S_is_set[key] = 1
8435 nfields = split(line, field, "@
")
8437 len = length(field[1])
8438 for (i = 2; i < nfields; i++) {
8440 keylen = length(key)
8441 if (S_is_set[key]) {
8443 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8444 len += length(value) + length(field[++i])
8455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8456 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8457 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8460 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
8461 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
8464 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8465 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
8466 # trailing colons and then remove the whole line if VPATH becomes empty
8467 # (actually we leave an empty line to preserve line numbers).
8468 if test "x
$srcdir" = x.; then
8469 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8473 s/^\([^=]*=[ ]*\):*/\1/
8479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8480 fi # test -n "$CONFIG_FILES"
8482 # Set up the scripts for CONFIG_HEADERS section.
8483 # No need to generate them if there are no CONFIG_HEADERS.
8484 # This happens for instance with `./config.status Makefile'.
8485 if test -n "$CONFIG_HEADERS"; then
8486 cat >"$tmp/defines.
awk" <<\_ACAWK ||
8490 # Transform confdefs.h into an awk script `defines.awk', embedded as
8491 # here-document in config.status, that substitutes the proper values into
8492 # config.h.in to produce config.h.
8494 # Create a delimiter string that does not exist in confdefs.h, to ease
8495 # handling of long lines.
8497 for ac_last_try in false false :; do
8498 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
8499 if test -z "$ac_t"; then
8501 elif $ac_last_try; then
8502 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
8504 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8508 # For the awk script, D is an array of macro values keyed by name,
8509 # likewise P contains macro parameters if any. Preserve backslash
8510 # newline sequences.
8512 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8514 s/.\{148\}/&'"$ac_delim"'/g
8517 s/^[ ]*#[ ]*define[ ][ ]*/ /
8524 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8526 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8530 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8531 D["\
1"]=" \
3\\\\\\n
"\\/p
8533 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8538 s/.\{148\}/&'"$ac_delim"'/g
8543 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8546 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8548 ' <confdefs.h | sed '
8549 s/'"$ac_delim"'/"\\\
8550 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8553 for (key in D) D_is_set[key] = 1
8556 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8558 split(line, arg, " ")
8559 if (arg[1] == "#") {
8563 defundef
= substr
(arg
[1], 2)
8566 split(mac1
, mac2
, "(") #)
8568 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8569 if (D_is_set
[macro
]) {
8570 # Preserve the white space surrounding the "#".
8571 print prefix
"define", macro P
[macro
] D
[macro
]
8574 # Replace #undef with comments. This is necessary, for example,
8575 # in the case of _POSIX_SOURCE, which is predefined and required
8576 # on some systems where configure will not decide to define it.
8577 if (defundef
== "undef") {
8578 print
"/*", prefix defundef
, macro
, "*/"
8586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8587 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
8588 fi # test -n "$CONFIG_HEADERS"
8591 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
8596 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8598 case $ac_mode$ac_tag in
8600 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8601 :[FH
]-) ac_tag
=-:-;;
8602 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8619 -) ac_f
="$tmp/stdin";;
8620 *) # Look for the file first in the build tree, then in the source tree
8621 # (if the path is not absolute). The absolute path cannot be DOS-style,
8622 # because $ac_f cannot contain `:'.
8626 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8628 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
8630 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8631 as_fn_append ac_file_inputs
" '$ac_f'"
8634 # Let's still pretend it is `configure' which instantiates (i.e., don't
8635 # use $as_me), people would be surprised to read:
8636 # /* config.h. Generated by config.status. */
8637 configure_input
='Generated from '`
8638 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8640 if test x
"$ac_file" != x-
; then
8641 configure_input
="$ac_file. $configure_input"
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8643 $as_echo "$as_me: creating $ac_file" >&6;}
8645 # Neutralize special characters interpreted by sed in replacement strings.
8646 case $configure_input in #(
8647 *\
&* |
*\|
* |
*\\* )
8648 ac_sed_conf_input
=`$as_echo "$configure_input" |
8649 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8650 *) ac_sed_conf_input
=$configure_input;;
8654 *:-:* |
*:-) cat >"$tmp/stdin" \
8655 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
8660 ac_dir
=`$as_dirname -- "$ac_file" ||
8661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8662 X"$ac_file" : 'X\(//\)[^/]' \| \
8663 X"$ac_file" : 'X\(//\)$' \| \
8664 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8665 $as_echo X"$ac_file" |
8666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8683 as_dir
="$ac_dir"; as_fn_mkdir_p
8687 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8689 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8690 # A ".." for each directory in $ac_dir_suffix.
8691 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8692 case $ac_top_builddir_sub in
8693 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8694 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8697 ac_abs_top_builddir
=$ac_pwd
8698 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8699 # for backward compatibility:
8700 ac_top_builddir
=$ac_top_build_prefix
8703 .
) # We are building in place.
8705 ac_top_srcdir
=$ac_top_builddir_sub
8706 ac_abs_top_srcdir
=$ac_pwd ;;
8707 [\\/]* | ?
:[\\/]* ) # Absolute name.
8708 ac_srcdir
=$srcdir$ac_dir_suffix;
8709 ac_top_srcdir
=$srcdir
8710 ac_abs_top_srcdir
=$srcdir ;;
8712 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8713 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8714 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8716 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8728 # If the template does not know about datarootdir, expand it.
8729 # FIXME: This hack should be removed a few years after 2.60.
8730 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8741 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8742 *datarootdir
*) ac_datarootdir_seen
=yes;;
8743 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8745 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8748 ac_datarootdir_hack='
8749 s&@datadir@&$datadir&g
8750 s&@docdir@&$docdir&g
8751 s&@infodir@&$infodir&g
8752 s&@localedir@&$localedir&g
8753 s&@mandir@&$mandir&g
8754 s&\\\${datarootdir}&$datarootdir&g' ;;
8758 # Neutralize VPATH when `$srcdir' = `.'.
8759 # Shell code in configure.ac might set extrasub.
8760 # FIXME: do we really want to maintain this feature?
8761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8762 ac_sed_extra="$ac_vpsub
8765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8767 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8768 s|@configure_input@|
$ac_sed_conf_input|
;t t
8769 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8770 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8771 s
&@srcdir@
&$ac_srcdir&;t t
8772 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8773 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8774 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8775 s
&@builddir@
&$ac_builddir&;t t
8776 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8777 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8778 $ac_datarootdir_hack
8780 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
8781 || as_fn_error "could not create
$ac_file" "$LINENO" 5
8783 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8784 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8785 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8787 which seems to be undefined. Please make sure it is defined." >&5
8788 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8789 which seems to be undefined. Please make sure it is defined." >&2;}
8793 -) cat "$tmp/out" && rm -f "$tmp/out";;
8794 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8796 || as_fn_error "could not create $ac_file" "$LINENO" 5
8802 if test x"$ac_file" != x-; then
8804 $as_echo "/* $configure_input */" \
8805 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8806 } >"$tmp/config.h" \
8807 || as_fn_error "could not create $ac_file" "$LINENO" 5
8808 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8810 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8813 mv "$tmp/config.h" "$ac_file" \
8814 || as_fn_error "could not create $ac_file" "$LINENO" 5
8817 $as_echo "/* $configure_input */" \
8818 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8819 || as_fn_error "could not create -" "$LINENO" 5
8831 ac_clean_files=$ac_clean_files_save
8833 test $ac_write_fail = 0 ||
8834 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8837 # configure is writing to config.log, and then calls config.status.
8838 # config.status does its own redirection, appending to config.log.
8839 # Unfortunately, on DOS this fails, as config.log is still kept open
8840 # by configure, so config.status won't be able to
write to it
; its
8841 # output is simply discarded. So we exec the FD to /dev/null,
8842 # effectively closing config.log, so it can be properly (re)opened and
8843 # appended to by config.status. When coming back to configure, we
8844 # need to make the FD available again.
8845 if test "$no_create" != yes; then
8847 ac_config_status_args
=
8848 test "$silent" = yes &&
8849 ac_config_status_args
="$ac_config_status_args --quiet"
8851 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8853 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8854 # would make configure fail if this is the last instruction.
8855 $ac_cs_success || as_fn_exit $?
8857 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8859 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}